@gram-data/tree-sitter-gram 0.1.7 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +4 -4
- package/grammar.js +32 -33
- package/package.json +13 -16
- package/prebuilds/darwin-arm64/@gram-data+tree-sitter-gram.node +0 -0
- package/prebuilds/darwin-x64/@gram-data+tree-sitter-gram.node +0 -0
- package/prebuilds/linux-arm64/@gram-data+tree-sitter-gram.node +0 -0
- package/prebuilds/linux-x64/@gram-data+tree-sitter-gram.node +0 -0
- package/prebuilds/win32-arm64/@gram-data+tree-sitter-gram.node +0 -0
- package/prebuilds/win32-x64/@gram-data+tree-sitter-gram.node +0 -0
- package/src/grammar.json +107 -292
- package/src/node-types.json +163 -160
- package/src/parser.c +1869 -2330
- package/src/tree_sitter/alloc.h +4 -4
package/src/tree_sitter/alloc.h
CHANGED
|
@@ -12,10 +12,10 @@ extern "C" {
|
|
|
12
12
|
// Allow clients to override allocation functions
|
|
13
13
|
#ifdef TREE_SITTER_REUSE_ALLOCATOR
|
|
14
14
|
|
|
15
|
-
extern void *(*ts_current_malloc)(size_t);
|
|
16
|
-
extern void *(*ts_current_calloc)(size_t, size_t);
|
|
17
|
-
extern void *(*ts_current_realloc)(void
|
|
18
|
-
extern void (*ts_current_free)(void *);
|
|
15
|
+
extern void *(*ts_current_malloc)(size_t size);
|
|
16
|
+
extern void *(*ts_current_calloc)(size_t count, size_t size);
|
|
17
|
+
extern void *(*ts_current_realloc)(void *ptr, size_t size);
|
|
18
|
+
extern void (*ts_current_free)(void *ptr);
|
|
19
19
|
|
|
20
20
|
#ifndef ts_malloc
|
|
21
21
|
#define ts_malloc ts_current_malloc
|