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/environment.c | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) (limited to 'src/bootstrap/environment.c') diff --git a/src/bootstrap/environment.c b/src/bootstrap/environment.c index d5e954b..3fe8be1 100644 --- a/src/bootstrap/environment.c +++ b/src/bootstrap/environment.c @@ -1,21 +1,6 @@ -typedef struct EnvEntry { - Object *symbol; - Object *value; -} EnvEntry; - -typedef struct Environment { - struct Environment *parent; - EnvEntry *buf; - size_t size; - size_t cap; - bool marked; -} Environment; - -static Environment *global_env; - -#define ENV_BUF_CAP 8 - -Environment *alloc_env(void); +#include "environment.h" +#include "gc.h" +#include "errors.h" Environment * env_create(Environment *parent) { -- cgit v1.2.1