diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2025-03-22 16:55:57 +0200 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2025-03-22 16:55:57 +0200 |
| commit | 0db19dcfafe5b2b3cbebaec9098ec50b9d6b1102 (patch) | |
| tree | 0314951c6082354bce47f7d2da4c55736dd53705 /src/actualize.c | |
| parent | 7b5abecd2bef6b7441b0d850f95d451b441a6f76 (diff) | |
| download | ek-0db19dcfafe5b2b3cbebaec9098ec50b9d6b1102.tar.gz ek-0db19dcfafe5b2b3cbebaec9098ec50b9d6b1102.zip | |
use new hashmap
Diffstat (limited to 'src/actualize.c')
| -rw-r--r-- | src/actualize.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/actualize.c b/src/actualize.c index a846d10..dae9cd9 100644 --- a/src/actualize.c +++ b/src/actualize.c @@ -390,7 +390,7 @@ static int copy_var(bool public, struct scope *to, struct ast *def) static int copy_symbols(bool public, struct scope *to, struct scope *from) { foreach(exported, n, &from->exported_symbols) { - struct ast *def = *n; + struct ast *def = n->data; switch (def->k) { case AST_PROC_DEF: if (copy_proc(public, to, def)) @@ -499,7 +499,7 @@ static int copy_chain(bool public, struct scope *to, struct ast *def) static int copy_types(bool public, struct scope *to, struct scope *from) { foreach(exported, n, &from->exported_types) { - struct ast *def = *n; + struct ast *def = n->data; switch (def->k) { case AST_STRUCT_DEF: if (copy_type(public, to, def, struct_id(def))) @@ -538,7 +538,7 @@ static int copy_types(bool public, struct scope *to, struct scope *from) static int copy_macros(bool public, struct scope *to, struct scope *from) { foreach(exported, n, &from->exported_macros) { - struct ast *def = *n; + struct ast *def = n->data; struct ast *exists = file_scope_find_macro(to, macro_def_id(def)); if (!exists) { |
