aboutsummaryrefslogtreecommitdiffstats
path: root/src/bootstrap/singletons.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bootstrap/singletons.c')
-rw-r--r--src/bootstrap/singletons.c17
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.
6static GC gc;
7
8// Special singleton Objects.
9static Object *obj_nil;
10static Object *obj_true;
11static Object *obj_false;
12static Object *obj_err;
13static Object *obj_quote;
14static Object *proc_if;
15
16// Global environment.
17static Environment *global_env;