diff options
| author | Eli Zaretskii | 2023-02-01 14:13:54 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2023-02-01 14:13:54 +0200 |
| commit | f91bf9df892417a2e4add6d0d77ac5123a579bfc (patch) | |
| tree | c0cf3790dfa11fd075c21b49866a4c0aa2a04d5d /src | |
| parent | f7fcc62b78a7617b12f3d1f39801e0eef69ee3b6 (diff) | |
| download | emacs-f91bf9df892417a2e4add6d0d77ac5123a579bfc.tar.gz emacs-f91bf9df892417a2e4add6d0d77ac5123a579bfc.zip | |
Unbreak the MS-Windows build
* src/treesit.c (ts_query_pattern_count) [WINDOWSNT]: Load from
the library and define as macro.
Diffstat (limited to 'src')
| -rw-r--r-- | src/treesit.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/treesit.c b/src/treesit.c index b163685419f..405aec1f47e 100644 --- a/src/treesit.c +++ b/src/treesit.c | |||
| @@ -72,6 +72,7 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */ | |||
| 72 | #undef ts_query_cursor_set_byte_range | 72 | #undef ts_query_cursor_set_byte_range |
| 73 | #undef ts_query_delete | 73 | #undef ts_query_delete |
| 74 | #undef ts_query_new | 74 | #undef ts_query_new |
| 75 | #undef ts_query_pattern_count | ||
| 75 | #undef ts_query_predicates_for_pattern | 76 | #undef ts_query_predicates_for_pattern |
| 76 | #undef ts_query_string_value_for_id | 77 | #undef ts_query_string_value_for_id |
| 77 | #undef ts_set_allocator | 78 | #undef ts_set_allocator |
| @@ -135,6 +136,7 @@ DEF_DLL_FN (void, ts_query_cursor_set_byte_range, | |||
| 135 | DEF_DLL_FN (void, ts_query_delete, (TSQuery *)); | 136 | DEF_DLL_FN (void, ts_query_delete, (TSQuery *)); |
| 136 | DEF_DLL_FN (TSQuery *, ts_query_new, | 137 | DEF_DLL_FN (TSQuery *, ts_query_new, |
| 137 | (const TSLanguage *, const char *, uint32_t, uint32_t *, TSQueryError *)); | 138 | (const TSLanguage *, const char *, uint32_t, uint32_t *, TSQueryError *)); |
| 139 | DEF_DLL_FN (uint32_t, ts_query_pattern_count, (const TSQuery *)); | ||
| 138 | DEF_DLL_FN (const TSQueryPredicateStep *, ts_query_predicates_for_pattern, | 140 | DEF_DLL_FN (const TSQueryPredicateStep *, ts_query_predicates_for_pattern, |
| 139 | ( const TSQuery *, uint32_t, uint32_t *)); | 141 | ( const TSQuery *, uint32_t, uint32_t *)); |
| 140 | DEF_DLL_FN (const char *, ts_query_string_value_for_id, | 142 | DEF_DLL_FN (const char *, ts_query_string_value_for_id, |
| @@ -200,6 +202,7 @@ init_treesit_functions (void) | |||
| 200 | LOAD_DLL_FN (library, ts_query_cursor_set_byte_range); | 202 | LOAD_DLL_FN (library, ts_query_cursor_set_byte_range); |
| 201 | LOAD_DLL_FN (library, ts_query_delete); | 203 | LOAD_DLL_FN (library, ts_query_delete); |
| 202 | LOAD_DLL_FN (library, ts_query_new); | 204 | LOAD_DLL_FN (library, ts_query_new); |
| 205 | LOAD_DLL_FN (library, ts_query_pattern_count); | ||
| 203 | LOAD_DLL_FN (library, ts_query_predicates_for_pattern); | 206 | LOAD_DLL_FN (library, ts_query_predicates_for_pattern); |
| 204 | LOAD_DLL_FN (library, ts_query_string_value_for_id); | 207 | LOAD_DLL_FN (library, ts_query_string_value_for_id); |
| 205 | LOAD_DLL_FN (library, ts_set_allocator); | 208 | LOAD_DLL_FN (library, ts_set_allocator); |
| @@ -256,6 +259,7 @@ init_treesit_functions (void) | |||
| 256 | #define ts_query_cursor_set_byte_range fn_ts_query_cursor_set_byte_range | 259 | #define ts_query_cursor_set_byte_range fn_ts_query_cursor_set_byte_range |
| 257 | #define ts_query_delete fn_ts_query_delete | 260 | #define ts_query_delete fn_ts_query_delete |
| 258 | #define ts_query_new fn_ts_query_new | 261 | #define ts_query_new fn_ts_query_new |
| 262 | #define ts_query_pattern_count fn_ts_query_pattern_count | ||
| 259 | #define ts_query_predicates_for_pattern fn_ts_query_predicates_for_pattern | 263 | #define ts_query_predicates_for_pattern fn_ts_query_predicates_for_pattern |
| 260 | #define ts_query_string_value_for_id fn_ts_query_string_value_for_id | 264 | #define ts_query_string_value_for_id fn_ts_query_string_value_for_id |
| 261 | #define ts_set_allocator fn_ts_set_allocator | 265 | #define ts_set_allocator fn_ts_set_allocator |