From 043a96a6b7cf55f7ef58fb5ebf8ad87b7d50b571 Mon Sep 17 00:00:00 2001 From: Bad Diode Date: Mon, 18 Oct 2021 12:31:20 +0200 Subject: Add header files for all modules --- src/bootstrap/singletons.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/bootstrap/singletons.c (limited to 'src/bootstrap/singletons.c') 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 @@ +#include "environment.h" +#include "gc.h" +#include "objects.h" + +// Global garbage collector singleton. +static GC gc; + +// Special singleton Objects. +static Object *obj_nil; +static Object *obj_true; +static Object *obj_false; +static Object *obj_err; +static Object *obj_quote; +static Object *proc_if; + +// Global environment. +static Environment *global_env; -- cgit v1.2.1