From 5ebbfc205ae1f78f9f13d1453523212c9c9e646b Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 18 Feb 2024 01:02:39 -0500 Subject: Add some more types --- environment.c | 6 ++++++ 1 file changed, 6 insertions(+) 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++) { -- cgit v1.2.3