From b9b051e933712428d8d0b0a9999a9a2fdc0d71be Mon Sep 17 00:00:00 2001 From: Mingkai Dong Date: Sat, 18 Dec 2021 11:26:18 +0800 Subject: [PATCH] Remove ts_allocator from api.h Since we have exposed the function to set allocator, we don't need to expose the global variable in `api.h`. --- lib/include/tree_sitter/api.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/include/tree_sitter/api.h b/lib/include/tree_sitter/api.h index f1192e34..c7de7662 100644 --- a/lib/include/tree_sitter/api.h +++ b/lib/include/tree_sitter/api.h @@ -145,12 +145,6 @@ typedef struct { /* Section - Parser */ /********************/ - -/** - * The allocator. - */ -extern TSAllocator *ts_allocator; - /** * Switch to a new allocator. *