aboutsummaryrefslogtreecommitdiff
path: root/environment.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-02-17 18:38:29 -0500
committerBruce Hill <bruce@bruce-hill.com>2024-02-17 18:38:29 -0500
commit7355b2f7fe6f5dda2aee8feca025350146ccd0f5 (patch)
tree8c0b7658e55a0fa634100ac4828fe4aaf6a0d27a /environment.c
parent1dcfbdc5c79c26b0f5d5997bed755e93f47e2ec1 (diff)
Change things up to use type params for all array and table methods
Diffstat (limited to 'environment.c')
-rw-r--r--environment.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/environment.c b/environment.c
index d6bb4c65..7e909cc4 100644
--- a/environment.c
+++ b/environment.c
@@ -51,10 +51,7 @@ env_t *new_compilation_unit(void)
table_t namespace;
} global_types[] = {
{"Bool", Type(BoolType), "Bool_t", "Bool", {}},
- {"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)}),
- ), &StrToVoidStarTable_type)},
+ {"Int", Type(IntType, .bits=64), "Int_t", "Int", {}},
};
for (size_t i = 0; i < sizeof(global_types)/sizeof(global_types[0]); i++) {