From 7f4b9c2d8039701b0579b7c060a918f8548aa7cd Mon Sep 17 00:00:00 2001 From: Amaan Qureshi Date: Mon, 14 Oct 2024 23:49:10 -0400 Subject: [PATCH] chore: regenerate --- src/node-types.json | 1 + src/tree_sitter/alloc.h | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/node-types.json b/src/node-types.json index c0e9f98..5d307ac 100644 --- a/src/node-types.json +++ b/src/node-types.json @@ -2413,6 +2413,7 @@ { "type": "module", "named": true, + "root": true, "fields": {}, "children": { "multiple": true, diff --git a/src/tree_sitter/alloc.h b/src/tree_sitter/alloc.h index 1f4466d..1abdd12 100644 --- a/src/tree_sitter/alloc.h +++ b/src/tree_sitter/alloc.h @@ -12,10 +12,10 @@ extern "C" { // Allow clients to override allocation functions #ifdef TREE_SITTER_REUSE_ALLOCATOR -extern void *(*ts_current_malloc)(size_t); -extern void *(*ts_current_calloc)(size_t, size_t); -extern void *(*ts_current_realloc)(void *, size_t); -extern void (*ts_current_free)(void *); +extern void *(*ts_current_malloc)(size_t size); +extern void *(*ts_current_calloc)(size_t count, size_t size); +extern void *(*ts_current_realloc)(void *ptr, size_t size); +extern void (*ts_current_free)(void *ptr); #ifndef ts_malloc #define ts_malloc ts_current_malloc