commentation
This commit is contained in:
parent
9585a5946e
commit
34c6d868b9
1 changed files with 1 additions and 1 deletions
|
|
@ -32,7 +32,7 @@ HLREngine *fork_engine(const HLREngine *engine)
|
||||||
eng2->input = engine->input;
|
eng2->input = engine->input;
|
||||||
|
|
||||||
// shallow-copy the stack
|
// shallow-copy the stack
|
||||||
// this works because h_slist_push and h_slist_pop never modify
|
// this works because h_slist_push and h_slist_drop never modify
|
||||||
// the underlying structure of HSlistNodes, only the head pointer.
|
// the underlying structure of HSlistNodes, only the head pointer.
|
||||||
// in fact, this gives us prefix sharing for free.
|
// in fact, this gives us prefix sharing for free.
|
||||||
eng2->stack = h_arena_malloc(engine->tarena, sizeof(HSlist));
|
eng2->stack = h_arena_malloc(engine->tarena, sizeof(HSlist));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue