[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
feature/tree-sitter b162faba0b 18/26: Fix compile warnings and errors in
From: |
Yuan Fu |
Subject: |
feature/tree-sitter b162faba0b 18/26: Fix compile warnings and errors in treesit.c |
Date: |
Thu, 16 Jun 2022 14:53:51 -0400 (EDT) |
branch: feature/tree-sitter
commit b162faba0bc04b8584af6f536bef8d0525076a28
Author: Yuan Fu <yuan@debian-BULLSEYE-live-builder-AMD64>
Commit: Yuan Fu <yuan@debian-BULLSEYE-live-builder-AMD64>
Fix compile warnings and errors in treesit.c
* src/treesit.c (ts_initialize): Fix.
(Ftreesit_parser_set_included_ranges): Fix.
(Ftreesit_query_compile): Fix.
---
src/treesit.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/treesit.c b/src/treesit.c
index df8c992bb5..dc64aef425 100644
--- a/src/treesit.c
+++ b/src/treesit.c
@@ -123,7 +123,7 @@ ts_calloc_wrapper (size_t n, size_t size)
}
static void
-ts_initialize ()
+ts_initialize (void)
{
if (!ts_initialized)
{
@@ -766,7 +766,7 @@ is nil, set PARSER to parse the whole buffer. */)
/* If RANGES is nil, make parser to parse the whole document.
To do that we give tree-sitter a 0 length, the range is a
dummy. */
- TSRange ts_range = {0, 0, 0, 0};
+ TSRange ts_range = {{0, 0}, {0, 0}, 0, 0};
success = ts_parser_set_included_ranges
(XTS_PARSER (parser)->parser, &ts_range , 0);
}
@@ -1527,7 +1527,7 @@ goes wrong. You can use `treesit-query-validate' to
debug the
query. */)
(Lisp_Object language, Lisp_Object query)
{
- if (!Ftreesit_query_p (query))
+ if (NILP (Ftreesit_query_p (query)))
wrong_type_argument (Qtreesit_query_p, query);
CHECK_SYMBOL (language);
if (TS_COMPILED_QUERY_P (query))
- feature/tree-sitter 8aa04aac65 07/26: ; * lisp/treesit.el (treesit-defun-query): Improve docstring., (continued)
- feature/tree-sitter 8aa04aac65 07/26: ; * lisp/treesit.el (treesit-defun-query): Improve docstring., Yuan Fu, 2022/06/16
- feature/tree-sitter e171ef933f 10/26: Support compiled queries in treesit-query-capture, Yuan Fu, 2022/06/16
- feature/tree-sitter b3de8850e0 06/26: Use the up-only parameter in treesit navigation functions, Yuan Fu, 2022/06/16
- feature/tree-sitter 016e4ca7a7 12/26: ; * doc/lispref/parsing.texi: Minor fix-up., Yuan Fu, 2022/06/16
- feature/tree-sitter a7288594f4 14/26: Change treesit-check-query and mention it in documentation, Yuan Fu, 2022/06/16
- feature/tree-sitter 0332b8e2c5 21/26: ; * src/treesit.c (ts_check_buffer_size): Improve error message., Yuan Fu, 2022/06/16
- feature/tree-sitter c5b172ec58 03/26: * configure.ac (HAVE_TREE_SITTER): Not set TREE_SITTER_LIBS., Yuan Fu, 2022/06/16
- feature/tree-sitter bd1b27b7c7 23/26: ; Minor optimization in treesit range function, Yuan Fu, 2022/06/16
- feature/tree-sitter 33f7e10a29 26/26: Add treesit test for previous change, Yuan Fu, 2022/06/16
- feature/tree-sitter 184d212042 16/26: Merge branch 'feature/tree-sitter-depth-control' into feature/tree-sitter, Yuan Fu, 2022/06/16
- feature/tree-sitter b162faba0b 18/26: Fix compile warnings and errors in treesit.c,
Yuan Fu <=
- feature/tree-sitter d729e3e3fc 19/26: * src/treesit.c (ts_check_range_argument): Check for point-min/max., Yuan Fu, 2022/06/16
- feature/tree-sitter 98bfb24081 17/26: Merge remote-tracking branch 'savannah/master' into feature/tree-sitter, Yuan Fu, 2022/06/16
- feature/tree-sitter 7cee82a91d 24/26: Fix treesit function ts_record_change and friends, Yuan Fu, 2022/06/16
- feature/tree-sitter d6b00f7ed9 20/26: ; * src/treesit.c (ts_read_buffer): Clarify comments., Yuan Fu, 2022/06/16
- feature/tree-sitter dd65d1c396 25/26: Consolidate treesit parser create functions, Yuan Fu, 2022/06/16
- feature/tree-sitter a4d7bcccba 22/26: ; * src/treesit.c: Add comment to explain design decisions., Yuan Fu, 2022/06/16