From 980d73ce25b116e645b16e9ed37dcf55fdffad7a Mon Sep 17 00:00:00 2001 From: nsfisis Date: Wed, 3 Sep 2025 20:36:22 +0900 Subject: feat: support native bool/true/false --- src/ast.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ast.h') diff --git a/src/ast.h b/src/ast.h index f5fc98f..e0d8410 100644 --- a/src/ast.h +++ b/src/ast.h @@ -32,6 +32,7 @@ typedef enum { TypeKind_float, TypeKind_double, TypeKind_ldouble, + TypeKind_bool, TypeKind_struct, TypeKind_union, TypeKind_enum, @@ -67,7 +68,7 @@ Type* type_new_array(Type* elem, int size); Type* type_new_static_string(int len); Type* type_array_to_ptr(Type* ty); Type* type_new_func(Type* result, AstNode* params); -BOOL type_is_unsized(Type* ty); +bool type_is_unsized(Type* ty); int type_sizeof_struct(Type* ty); int type_sizeof_union(Type* ty); -- cgit v1.2.3-70-g09d2