aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ast.h
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-09-03 20:36:22 +0900
committernsfisis <nsfisis@gmail.com>2025-09-03 20:36:22 +0900
commit980d73ce25b116e645b16e9ed37dcf55fdffad7a (patch)
tree1039ecaa3a98b443a6818d660763051be1f5a54b /src/ast.h
parent256cbd88c53d15884f3519ce75890c7bd1626cb2 (diff)
downloadducc-980d73ce25b116e645b16e9ed37dcf55fdffad7a.tar.gz
ducc-980d73ce25b116e645b16e9ed37dcf55fdffad7a.tar.zst
ducc-980d73ce25b116e645b16e9ed37dcf55fdffad7a.zip
feat: support native bool/true/false
Diffstat (limited to 'src/ast.h')
-rw-r--r--src/ast.h3
1 files changed, 2 insertions, 1 deletions
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);