refactor: rename TS_REUSE_ALLOCATOR flag

TREE_SITTER_REUSE_ALLOCATOR is more consistent
This commit is contained in:
ObserverOfTime 2024-02-27 21:41:11 +02:00 committed by Amaan Qureshi
parent 46520eda58
commit 502dacf220
3 changed files with 3 additions and 5 deletions

View file

@ -21,7 +21,7 @@ TS_PUBLIC extern void *(*ts_current_realloc)(void *, size_t);
TS_PUBLIC extern void (*ts_current_free)(void *);
// Allow clients to override allocation functions
#ifdef TS_REUSE_ALLOCATOR
#ifdef TREE_SITTER_REUSE_ALLOCATOR
#ifndef ts_malloc
#define ts_malloc ts_current_malloc