Initial (bad) gc
This commit is contained in:
@ -36,13 +36,17 @@ struct LispStack {
|
||||
|
||||
extern struct LispStack the_stack;
|
||||
|
||||
static ALWAYS_INLINE struct StackFrame *LISP_STACK_TOP() {
|
||||
static ALWAYS_INLINE struct StackFrame *LISP_STACK_TOP(void) {
|
||||
return the_stack.depth ? &the_stack.frames[the_stack.depth - 1] : NULL;
|
||||
}
|
||||
|
||||
void lisp_init_stack(void);
|
||||
void push_stack_frame(LispVal *name, LispVal *fobj, LispVal *args);
|
||||
void pop_stack_frame(void);
|
||||
void add_local_reference_no_recurse(LispVal *obj);
|
||||
void add_local_reference(LispVal *obj);
|
||||
|
||||
// used by the GC
|
||||
void compact_stack_frame(struct StackFrame *restrict frame);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user