diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-06-06 16:28:53 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-06-06 16:28:53 -0400 |
| commit | 8c7d53008072dfda8b9d60be92fae1a8046fae5d (patch) | |
| tree | 769407e0461b3c989c27a740c423827a21adfa91 /environment.h | |
| parent | 31c8d0af1597b6b4996a90808b1b8c0983db309e (diff) | |
Split header compilation into a separate function
Diffstat (limited to 'environment.h')
| -rw-r--r-- | environment.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/environment.h b/environment.h index 301ffbb5..0582dfc0 100644 --- a/environment.h +++ b/environment.h @@ -8,10 +8,7 @@ #include "builtins/table.h" typedef struct { - CORD imports; - CORD typedefs; - CORD typecode; - CORD fndefs; + CORD local_typedefs; CORD staticdefs; CORD funcs; CORD typeinfos; @@ -49,6 +46,7 @@ typedef struct { } binding_t; env_t *new_compilation_unit(void); +env_t *load_module_env(env_t *env, ast_t *ast); env_t *global_scope(env_t *env); env_t *fresh_scope(env_t *env); env_t *for_scope(env_t *env, ast_t *ast); |
