diff options
author | Bad Diode <bd@badd10de.dev> | 2021-10-21 18:23:18 +0200 |
---|---|---|
committer | Bad Diode <bd@badd10de.dev> | 2021-10-21 18:23:18 +0200 |
commit | 2625019add3d16d3ee5d210bcebdd999d3b0cc32 (patch) | |
tree | 5c53af4f92ed4e924d4817cccfd834e81354c150 /src/bootstrap/environment.h | |
parent | 61f617fe39f891f3dfc5b4815e20ef70a0497a64 (diff) | |
download | bdl-2625019add3d16d3ee5d210bcebdd999d3b0cc32.tar.gz bdl-2625019add3d16d3ee5d210bcebdd999d3b0cc32.zip |
Change environments to be a hash tablev0.7
Diffstat (limited to 'src/bootstrap/environment.h')
-rw-r--r-- | src/bootstrap/environment.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/bootstrap/environment.h b/src/bootstrap/environment.h index 2d6a34e..5ee21ad 100644 --- a/src/bootstrap/environment.h +++ b/src/bootstrap/environment.h | |||
@@ -3,14 +3,9 @@ | |||
3 | 3 | ||
4 | #include "objects.h" | 4 | #include "objects.h" |
5 | 5 | ||
6 | typedef struct EnvEntry { | ||
7 | Object *symbol; | ||
8 | Object *value; | ||
9 | } EnvEntry; | ||
10 | |||
11 | typedef struct Environment { | 6 | typedef struct Environment { |
12 | struct Environment *parent; | 7 | struct Environment *parent; |
13 | EnvEntry *entries; | 8 | HashTable *table; |
14 | bool marked; | 9 | bool marked; |
15 | } Environment; | 10 | } Environment; |
16 | 11 | ||