Initial tricolor implementation
This commit is contained in:
@ -14,11 +14,11 @@ void lisp_init_stack(void) {
|
||||
the_stack.frames =
|
||||
lisp_malloc(sizeof(struct StackFrame) * the_stack.max_depth);
|
||||
for (size_t i = 0; i < the_stack.max_depth; ++i) {
|
||||
the_stack.frames->local_refs.num_refs = 0;
|
||||
the_stack.frames->local_refs.num_blocks = 1;
|
||||
the_stack.frames->local_refs.blocks =
|
||||
the_stack.frames[i].local_refs.num_refs = 0;
|
||||
the_stack.frames[i].local_refs.num_blocks = 1;
|
||||
the_stack.frames[i].local_refs.blocks =
|
||||
lisp_malloc(sizeof(struct LocalReferencesBlock *));
|
||||
the_stack.frames->local_refs.blocks[0] =
|
||||
the_stack.frames[i].local_refs.blocks[0] =
|
||||
lisp_malloc(sizeof(struct LocalReferencesBlock));
|
||||
}
|
||||
the_stack.nogc_retval = Qnil;
|
||||
|
||||
Reference in New Issue
Block a user