aboutsummaryrefslogtreecommitdiff
path: root/environment.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-02-18 01:02:39 -0500
committerBruce Hill <bruce@bruce-hill.com>2024-02-18 01:02:39 -0500
commit5ebbfc205ae1f78f9f13d1453523212c9c9e646b (patch)
tree33b1ff590fcb810b30d0fd9ff0224654e66da49e /environment.c
parent221be79e88e968db93d02ee388e7a3d1c60c6368 (diff)
Add some more types
Diffstat (limited to 'environment.c')
-rw-r--r--environment.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/environment.c b/environment.c
index 7e909cc4..72c49809 100644
--- a/environment.c
+++ b/environment.c
@@ -52,6 +52,12 @@ env_t *new_compilation_unit(void)
} global_types[] = {
{"Bool", Type(BoolType), "Bool_t", "Bool", {}},
{"Int", Type(IntType, .bits=64), "Int_t", "Int", {}},
+ {"Int32", Type(IntType, .bits=32), "Int32_t", "Int", {}},
+ {"Int16", Type(IntType, .bits=16), "Int16_t", "Int", {}},
+ {"Int8", Type(IntType, .bits=8), "Int8_t", "Int", {}},
+ {"Num", Type(NumType, .bits=64), "Num_t", "Num", {}},
+ {"Num32", Type(NumType, .bits=32), "Num32_t", "Num32", {}},
+ {"Str", Type(StringType), "Str_t", "Str", {}},
};
for (size_t i = 0; i < sizeof(global_types)/sizeof(global_types[0]); i++) {