Skip to content

Commit

Permalink
Use array header for strings and arrays
Browse files Browse the repository at this point in the history
Co-authored-by: Marshall <[email protected]>
  • Loading branch information
maxbrunsfeld and maxdeviant committed Mar 18, 2024
1 parent 5347eda commit 834c420
Show file tree
Hide file tree
Showing 5 changed files with 446 additions and 185 deletions.
11 changes: 7 additions & 4 deletions src/parser.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#include "tree_sitter/parser.h"

#if defined(__GNUC__) || defined(__clang__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
#endif

Expand Down Expand Up @@ -2250,11 +2249,15 @@ bool tree_sitter_html_external_scanner_scan(void *, TSLexer *, const bool *);
unsigned tree_sitter_html_external_scanner_serialize(void *, char *);
void tree_sitter_html_external_scanner_deserialize(void *, const char *, unsigned);

#ifdef _WIN32
#define extern __declspec(dllexport)
#ifdef TREE_SITTER_HIDE_SYMBOLS
#define TS_PUBLIC
#elif defined(_WIN32)
#define TS_PUBLIC __declspec(dllexport)
#else
#define TS_PUBLIC __attribute__((visibility("default")))
#endif

extern const TSLanguage *tree_sitter_html(void) {
TS_PUBLIC const TSLanguage *tree_sitter_html() {
static const TSLanguage language = {
.version = LANGUAGE_VERSION,
.symbol_count = SYMBOL_COUNT,
Expand Down
Loading

0 comments on commit 834c420

Please sign in to comment.