add c_char type

closes #875
This commit is contained in:
Andrew Kelley
2023-04-12 21:03:36 -07:00
parent 856a9c2e31
commit e2fe1907ec
11 changed files with 62 additions and 2 deletions

View File

@@ -1358,6 +1358,7 @@ pub const CType = extern union {
else if (ty.isAbiInt()) switch (ty.tag()) {
.usize => self.init(.uintptr_t),
.isize => self.init(.intptr_t),
.c_char => self.init(.char),
.c_short => self.init(.short),
.c_ushort => self.init(.@"unsigned short"),
.c_int => self.init(.int),