diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-09-03 20:36:22 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-09-03 20:36:22 +0900 |
| commit | 980d73ce25b116e645b16e9ed37dcf55fdffad7a (patch) | |
| tree | 1039ecaa3a98b443a6818d660763051be1f5a54b /src/ast.h | |
| parent | 256cbd88c53d15884f3519ce75890c7bd1626cb2 (diff) | |
| download | ducc-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.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |
