diff options
| author | Mistivia <i@mistivia.com> | 2025-06-26 02:32:34 +0800 |
|---|---|---|
| committer | Mistivia <i@mistivia.com> | 2025-06-26 02:33:07 +0800 |
| commit | 99f3260a98a6b727bfa64ff66c19ca051acef450 (patch) | |
| tree | 1416f98814bac3b3e1bafb478a966d5be9b235ae /src/interp.h | |
| parent | 01529085de32d2e718992a26f8215b269a831d26 (diff) | |
use hash table in top level symbol lookup
Diffstat (limited to 'src/interp.h')
| -rw-r--r-- | src/interp.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/interp.h b/src/interp.h index 3feecfa..0a489cb 100644 --- a/src/interp.h +++ b/src/interp.h @@ -14,16 +14,11 @@ typedef struct parser Parser; struct interp; typedef struct interp Interp; -typedef struct { - SExpRef name; - SExpRef binding; -} TopBinding; - -VECTOR_DEF(TopBinding); +HASH_TABLE_DEF(SExpRef, SExpRef); struct interp { SExpVector objs; - TopBindingVector topbindings; + SExpRef2SExpRefHashTable topbindings; IntVector empty_space; String2IntHashTable symbols; SExpRef stack; |
