diff options
| author | Yuan Fu | 2023-08-31 16:00:54 -0700 |
|---|---|---|
| committer | Yuan Fu | 2023-08-31 16:00:54 -0700 |
| commit | 18b292140ee781d8331d4fcf1046394c164d844f (patch) | |
| tree | 5db3dd91bd55040b82bbff93903d7fb9cea168e0 /src | |
| parent | ec4d29c4494f32acf0ff7c5632a1d951d957f084 (diff) | |
| download | emacs-18b292140ee781d8331d4fcf1046394c164d844f.tar.gz emacs-18b292140ee781d8331d4fcf1046394c164d844f.zip | |
; * src/treesit.c: Add ts function boilerplate
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 19aacc2da7f..cb2113b3faf 100644 --- a/src/treesit.c +++ b/src/treesit.c | |||
| @@ -80,6 +80,7 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */ | |||
| 80 | #undef ts_tree_cursor_current_node | 80 | #undef ts_tree_cursor_current_node |
| 81 | #undef ts_tree_cursor_delete | 81 | #undef ts_tree_cursor_delete |
| 82 | #undef ts_tree_cursor_goto_first_child | 82 | #undef ts_tree_cursor_goto_first_child |
| 83 | #undef ts_tree_cursor_goto_first_child_for_byte | ||
| 83 | #undef ts_tree_cursor_goto_next_sibling | 84 | #undef ts_tree_cursor_goto_next_sibling |
| 84 | #undef ts_tree_cursor_goto_parent | 85 | #undef ts_tree_cursor_goto_parent |
| 85 | #undef ts_tree_cursor_new | 86 | #undef ts_tree_cursor_new |
| @@ -147,6 +148,7 @@ DEF_DLL_FN (TSTreeCursor, ts_tree_cursor_copy, (const TSTreeCursor *)); | |||
| 147 | DEF_DLL_FN (TSNode, ts_tree_cursor_current_node, (const TSTreeCursor *)); | 148 | DEF_DLL_FN (TSNode, ts_tree_cursor_current_node, (const TSTreeCursor *)); |
| 148 | DEF_DLL_FN (void, ts_tree_cursor_delete, (const TSTreeCursor *)); | 149 | DEF_DLL_FN (void, ts_tree_cursor_delete, (const TSTreeCursor *)); |
| 149 | DEF_DLL_FN (bool, ts_tree_cursor_goto_first_child, (TSTreeCursor *)); | 150 | DEF_DLL_FN (bool, ts_tree_cursor_goto_first_child, (TSTreeCursor *)); |
| 151 | DEF_DLL_FN (int64_t, ts_tree_cursor_goto_first_child_for_byte, (TSTreeCursor *, uint32_t)); | ||
| 150 | DEF_DLL_FN (bool, ts_tree_cursor_goto_next_sibling, (TSTreeCursor *)); | 152 | DEF_DLL_FN (bool, ts_tree_cursor_goto_next_sibling, (TSTreeCursor *)); |
| 151 | DEF_DLL_FN (bool, ts_tree_cursor_goto_parent, (TSTreeCursor *)); | 153 | DEF_DLL_FN (bool, ts_tree_cursor_goto_parent, (TSTreeCursor *)); |
| 152 | DEF_DLL_FN (TSTreeCursor, ts_tree_cursor_new, (TSNode)); | 154 | DEF_DLL_FN (TSTreeCursor, ts_tree_cursor_new, (TSNode)); |
| @@ -210,6 +212,7 @@ init_treesit_functions (void) | |||
| 210 | LOAD_DLL_FN (library, ts_tree_cursor_current_node); | 212 | LOAD_DLL_FN (library, ts_tree_cursor_current_node); |
| 211 | LOAD_DLL_FN (library, ts_tree_cursor_delete); | 213 | LOAD_DLL_FN (library, ts_tree_cursor_delete); |
| 212 | LOAD_DLL_FN (library, ts_tree_cursor_goto_first_child); | 214 | LOAD_DLL_FN (library, ts_tree_cursor_goto_first_child); |
| 215 | LOAD_DLL_FN (library, ts_tree_cursor_goto_first_child_for_byte); | ||
| 213 | LOAD_DLL_FN (library, ts_tree_cursor_goto_next_sibling); | 216 | LOAD_DLL_FN (library, ts_tree_cursor_goto_next_sibling); |
| 214 | LOAD_DLL_FN (library, ts_tree_cursor_goto_parent); | 217 | LOAD_DLL_FN (library, ts_tree_cursor_goto_parent); |
| 215 | LOAD_DLL_FN (library, ts_tree_cursor_new); | 218 | LOAD_DLL_FN (library, ts_tree_cursor_new); |
| @@ -267,6 +270,7 @@ init_treesit_functions (void) | |||
| 267 | #define ts_tree_cursor_current_node fn_ts_tree_cursor_current_node | 270 | #define ts_tree_cursor_current_node fn_ts_tree_cursor_current_node |
| 268 | #define ts_tree_cursor_delete fn_ts_tree_cursor_delete | 271 | #define ts_tree_cursor_delete fn_ts_tree_cursor_delete |
| 269 | #define ts_tree_cursor_goto_first_child fn_ts_tree_cursor_goto_first_child | 272 | #define ts_tree_cursor_goto_first_child fn_ts_tree_cursor_goto_first_child |
| 273 | #define ts_tree_cursor_goto_first_child_for_byte fn_ts_tree_cursor_goto_first_child_for_byte | ||
| 270 | #define ts_tree_cursor_goto_next_sibling fn_ts_tree_cursor_goto_next_sibling | 274 | #define ts_tree_cursor_goto_next_sibling fn_ts_tree_cursor_goto_next_sibling |
| 271 | #define ts_tree_cursor_goto_parent fn_ts_tree_cursor_goto_parent | 275 | #define ts_tree_cursor_goto_parent fn_ts_tree_cursor_goto_parent |
| 272 | #define ts_tree_cursor_new fn_ts_tree_cursor_new | 276 | #define ts_tree_cursor_new fn_ts_tree_cursor_new |