xo-reader2: bugfix: checkpoint before allocating SSMs
This commit is contained in:
parent
ce655ed6bd
commit
66d9bc5cd6
18 changed files with 78 additions and 36 deletions
|
|
@ -30,9 +30,11 @@ namespace xo {
|
|||
ParserStack * parent);
|
||||
|
||||
/** create new top of stack for syntax @p ssm, using memory from @p mm.
|
||||
* previous stack given by @p parent
|
||||
* previous stack given by @p parent.
|
||||
* Checkpoint @p ckp will refer to stack _before_ allocating @p ssm
|
||||
**/
|
||||
static ParserStack * push(ParserStack * stack,
|
||||
DArena::Checkpoint ckp,
|
||||
DArena & mm,
|
||||
obj<ASyntaxStateMachine> ssm);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue