Allocate and free trees using an object pool

This commit is contained in:
Max Brunsfeld 2017-10-05 17:32:21 -07:00
parent 53152658ce
commit addeb6c4c1
11 changed files with 287 additions and 230 deletions

View file

@ -48,7 +48,7 @@ typedef StackIterateAction (*StackIterateCallback)(void *, TSStateId state,
/*
* Create a parse stack.
*/
Stack *ts_stack_new();
Stack *ts_stack_new(TreePool *);
/*
* Release any resources reserved by a parse stack.