summaryrefslogtreecommitdiff
path: root/chibicc.h
diff options
context:
space:
mode:
authorMatthew Sotoudeh <matthew@masot.net>2023-07-30 18:18:25 -0700
committerMatthew Sotoudeh <matthew@masot.net>2023-07-30 18:18:25 -0700
commit44662c62f444fc50fe523d987199f6a10c9a693c (patch)
treeb52a68243ef283471c53d224fd3f0ae87f8c0d0f /chibicc.h
parentf2297c20b69d942fd1e8fdcdd8f4d142c71de662 (diff)
add support for passing through sizeof & alignofs
Diffstat (limited to 'chibicc.h')
-rw-r--r--chibicc.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/chibicc.h b/chibicc.h
index 522c214..2782481 100644
--- a/chibicc.h
+++ b/chibicc.h
@@ -281,6 +281,10 @@ struct Node {
// Numeric literal
int64_t val;
long double fval;
+
+ // sizeof(...) or alignof(...)
+ Type *is_sizeof;
+ Type *is_alignof;
};
Node *new_cast(Node *expr, Type *ty);
@@ -465,6 +469,7 @@ void hashmap_test(void);
extern bool opt_fpic;
extern bool opt_fcommon;
extern bool opt_line_numbers;
+extern bool opt_type_builtins;
extern char *base_file;
//
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback