mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-09 14:07:34 +02:00
Added missing prototypes, init mark in make_cons
This commit is contained in:
parent
8945773e1c
commit
2de1ce0d5c
1 changed files with 3 additions and 1 deletions
|
@ -146,6 +146,8 @@ void gc_thread_data_free(gc_thread_data *thd);
|
||||||
// Prototypes for mutator/collector:
|
// Prototypes for mutator/collector:
|
||||||
void gc_mut_update(gc_thread_data *thd, object old_obj, object value);
|
void gc_mut_update(gc_thread_data *thd, object old_obj, object value);
|
||||||
void gc_mut_cooperate(gc_thread_data *thd);
|
void gc_mut_cooperate(gc_thread_data *thd);
|
||||||
|
void gc_stack_mark_refs_gray(gc_thread_data *thd, object obj);
|
||||||
|
void gc_stack_mark_gray(gc_thread_data *thd, object obj);
|
||||||
void gc_mark_gray(gc_thread_data *thd, object obj);
|
void gc_mark_gray(gc_thread_data *thd, object obj);
|
||||||
void gc_collector_trace();
|
void gc_collector_trace();
|
||||||
void gc_mark_black(object obj);
|
void gc_mark_black(object obj);
|
||||||
|
@ -342,7 +344,7 @@ typedef cons_type *list;
|
||||||
#define cddddr(x) (cdr(cdr(cdr(cdr(x)))))
|
#define cddddr(x) (cdr(cdr(cdr(cdr(x)))))
|
||||||
|
|
||||||
#define make_cons(n,a,d) \
|
#define make_cons(n,a,d) \
|
||||||
cons_type n; n.tag = cons_tag; n.cons_car = a; n.cons_cdr = d;
|
cons_type n; n.hdr.mark = gc_color_red; n.tag = cons_tag; n.cons_car = a; n.cons_cdr = d;
|
||||||
|
|
||||||
/* Closure types */
|
/* Closure types */
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue