]> git.lizzy.rs Git - nothing.git/blob - src/script/gc.c
Add script/gc module
[nothing.git] / src / script / gc.c
1 #include <assert.h>
2 #include <stdlib.h>
3
4 #include "expr.h"
5 #include "gc.h"
6
7 Gc *create_gc(void)
8 {
9     return NULL;
10 }
11
12 void destroy_gc(Gc *gc)
13 {
14     assert(gc);
15 }
16
17 void gc_add_atom(Gc *gc, const struct Atom *atom)
18 {
19     assert(gc);
20     assert(atom);
21 }
22
23 void gc_add_cons(Gc *gc, const struct Cons *cons)
24 {
25     assert(gc);
26     assert(cons);
27 }
28
29 void gc_collect(Gc *gc, struct Expr root)
30 {
31     assert(gc);
32     (void) root;
33 }