diff options
author | Bad Diode <bd@badd10de.dev> | 2021-10-18 12:31:20 +0200 |
---|---|---|
committer | Bad Diode <bd@badd10de.dev> | 2021-10-18 12:31:20 +0200 |
commit | 043a96a6b7cf55f7ef58fb5ebf8ad87b7d50b571 (patch) | |
tree | 14861de314cfa5587103bd3cf21a761dd0e8248e /src/bootstrap/singletons.c | |
parent | 6f34133b0661849bccf891ea0aa4d04f45ca9a9a (diff) | |
download | bdl-043a96a6b7cf55f7ef58fb5ebf8ad87b7d50b571.tar.gz bdl-043a96a6b7cf55f7ef58fb5ebf8ad87b7d50b571.zip |
Add header files for all modules
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; | ||