diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-02-17 14:29:21 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-02-17 14:29:21 -0500 |
| commit | 81ed05c7f8b410630db28c7041bc8c58ffe7e258 (patch) | |
| tree | 2c9c9908d563e3749e63d4c93192e35b330cf4b5 | |
| parent | 94771950981a6f90b425e849d60dc9755ea868c1 (diff) | |
Fixing up table stuff
| -rw-r--r-- | builtins/table.h | 2 | ||||
| -rw-r--r-- | environment.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/builtins/table.h b/builtins/table.h index 974d1191..4c33e499 100644 --- a/builtins/table.h +++ b/builtins/table.h @@ -31,4 +31,6 @@ void Table_str_remove(table_t *t, const char *key); #define Table_length(t) ((t)->entries.length) +extern TypeInfo StrToVoidStarTable_type; + // vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1 diff --git a/environment.c b/environment.c index 7ec0773c..7c4e47c2 100644 --- a/environment.c +++ b/environment.c @@ -49,7 +49,7 @@ env_t *new_environment(void) {"Int", Type(IntType, .bits=64), "Int_t", "Int", Table_from_entries(*(array_t*)ARRAY( new(ns_entry_t, "min", {"Int.min", Type(IntType, .bits=64)}), new(ns_entry_t, "max", {"Int.max", Type(IntType, .bits=64)}), - ), &Str_type.type)}, + ), &StrToVoidStarTable_type)}, }; for (size_t i = 0; i < sizeof(global_types)/sizeof(global_types[0]); i++) { |
