diff options
Diffstat (limited to 'src/bootstrap/singletons.c')
-rw-r--r-- | src/bootstrap/singletons.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/bootstrap/singletons.c b/src/bootstrap/singletons.c new file mode 100644 index 0000000..eb9c397 --- /dev/null +++ b/src/bootstrap/singletons.c | |||
@@ -0,0 +1,17 @@ | |||
1 | #include "environment.h" | ||
2 | #include "gc.h" | ||
3 | #include "objects.h" | ||
4 | |||
5 | // Global garbage collector singleton. | ||
6 | static GC gc; | ||
7 | |||
8 | // Special singleton Objects. | ||
9 | static Object *obj_nil; | ||
10 | static Object *obj_true; | ||
11 | static Object *obj_false; | ||
12 | static Object *obj_err; | ||
13 | static Object *obj_quote; | ||
14 | static Object *proc_if; | ||
15 | |||
16 | // Global environment. | ||
17 | static Environment *global_env; | ||