Change boolean size to 1 byte
This commit is contained in:
@@ -496,7 +496,7 @@ void csource_to_string(Str8 *dst, const CSource *csource) {
|
||||
wapp_mem_arena_allocator_destroy(&arena);
|
||||
}
|
||||
|
||||
b32 cheaderinclude_to_string(Str8 *dst, const CHeaderInclude *cheaderinclude) {
|
||||
b8 cheaderinclude_to_string(Str8 *dst, const CHeaderInclude *cheaderinclude) {
|
||||
wapp_debug_assert(dst != NULL && cheaderinclude != NULL, "`dst` and `cheaderinclude` should not be NULL");
|
||||
|
||||
switch (cheaderinclude->kind) {
|
||||
|
||||
@@ -152,7 +152,7 @@ struct cenumval {
|
||||
struct cenum {
|
||||
Str8 name;
|
||||
CEnumValList values;
|
||||
b32 add_typedef;
|
||||
b8 add_typedef;
|
||||
};
|
||||
|
||||
struct cmacro {
|
||||
@@ -188,7 +188,7 @@ struct carg {
|
||||
CDataType type;
|
||||
CPointer pointer;
|
||||
CQualifier qualifier;
|
||||
b32 is_array;
|
||||
b8 is_array;
|
||||
};
|
||||
|
||||
struct cfunc {
|
||||
@@ -230,8 +230,8 @@ struct cheader_include {
|
||||
|
||||
struct cinclude {
|
||||
CHeaderInclude header;
|
||||
b32 is_local;
|
||||
b32 same_dir;
|
||||
b8 is_local;
|
||||
b8 same_dir;
|
||||
};
|
||||
|
||||
struct cobject {
|
||||
@@ -275,6 +275,6 @@ void define_cfunc(Str8 *dst, const CFunc *cfunc);
|
||||
void cinclude_to_string(Str8 *dst, const CInclude *cinclude);
|
||||
void cheader_to_string(Str8 *dst, const CHeader *cheader);
|
||||
void csource_to_string(Str8 *dst, const CSource *csource);
|
||||
b32 cheaderinclude_to_string(Str8 *dst, const CHeaderInclude *cheaderinclude);
|
||||
b8 cheaderinclude_to_string(Str8 *dst, const CHeaderInclude *cheaderinclude);
|
||||
|
||||
#endif // !DATATYPES_H
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
typedef enum {
|
||||
CTYPE_VOID,
|
||||
CTYPE_B32,
|
||||
CTYPE_B8,
|
||||
CTYPE_CHAR,
|
||||
CTYPE_C8,
|
||||
CTYPE_C16,
|
||||
@@ -30,7 +30,7 @@ typedef enum {
|
||||
} CType;
|
||||
wapp_intern Str8RO ctypes[COUNT_CTYPE] = {
|
||||
[CTYPE_VOID] = wapp_str8_lit_ro("void"),
|
||||
[CTYPE_B32] = wapp_str8_lit_ro("b32"),
|
||||
[CTYPE_B8] = wapp_str8_lit_ro("b8"),
|
||||
[CTYPE_CHAR] = wapp_str8_lit_ro("char"),
|
||||
[CTYPE_C8] = wapp_str8_lit_ro("c8"),
|
||||
[CTYPE_C16] = wapp_str8_lit_ro("c16"),
|
||||
|
||||
Reference in New Issue
Block a user