Add overrides for aliasing int types to their bit width (int->i32)

This commit is contained in:
Curle 2021-01-17 06:36:11 +00:00
parent 39ee1b6028
commit 0c148f6e0c
No known key found for this signature in database
GPG Key ID: 58A5C4688ECE6E7C

View File

@ -179,6 +179,14 @@ static int ReadKeyword(char* Str) {
break; break;
case 'i': case 'i':
// alias char, int and long types
if(!strcmp(Str, "i8"))
return TY_CHAR;
if(!strcmp(Str, "i32"))
return TY_INT;
if(!strcmp(Str, "i64"))
return TY_LONG;
if(!strcmp(Str, "int")) if(!strcmp(Str, "int"))
return TY_INT; return TY_INT;