diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-02-17 14:28:12 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-02-17 14:28:12 -0500 |
| commit | 94771950981a6f90b425e849d60dc9755ea868c1 (patch) | |
| tree | 635c98a922d05b93aac053e9e6b82019d0424f8e | |
| parent | cf88dc8af57d404153554479e7a8a73f4d74d026 (diff) | |
Fixing things up
| -rw-r--r-- | builtins/table.c | 1 | ||||
| -rw-r--r-- | environment.c | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/builtins/table.c b/builtins/table.c index 1c696a31..cf73b256 100644 --- a/builtins/table.c +++ b/builtins/table.c @@ -21,6 +21,7 @@ #include "../SipHash/halfsiphash.h" #include "../util.h" #include "array.h" +#include "string.h" #include "table.h" #include "types.h" diff --git a/environment.c b/environment.c index c3ecabc7..7ec0773c 100644 --- a/environment.c +++ b/environment.c @@ -3,6 +3,7 @@ #include "environment.h" #include "builtins/table.h" +#include "builtins/string.h" #include "util.h" typedef struct { @@ -48,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)}), - ), NULL)}, + ), &Str_type.type)}, }; for (size_t i = 0; i < sizeof(global_types)/sizeof(global_types[0]); i++) { |
