diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-02-18 01:02:39 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-02-18 01:02:39 -0500 |
| commit | 5ebbfc205ae1f78f9f13d1453523212c9c9e646b (patch) | |
| tree | 33b1ff590fcb810b30d0fd9ff0224654e66da49e | |
| parent | 221be79e88e968db93d02ee388e7a3d1c60c6368 (diff) | |
Add some more types
| -rw-r--r-- | environment.c | 6 |
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++) { |
