Allocate and free trees using an object pool
This commit is contained in:
parent
53152658ce
commit
addeb6c4c1
11 changed files with 287 additions and 230 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue