aboutsummaryrefslogtreecommitdiff
path: root/cc.h
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2024-03-22 01:50:07 -0700
committerMichael Forney <mforney@mforney.org>2024-03-22 01:50:07 -0700
commit92c59818b538ae7ca4973b5e0bafa8b7efadcb78 (patch)
treee0545b1df179827448e05fa8e6bd965870e94ed8 /cc.h
parentf24b8ba07d0b2a5f4d81979aa6812bcdf410a365 (diff)
Implement C23 nullptr constant
Diffstat (limited to 'cc.h')
-rw-r--r--cc.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/cc.h b/cc.h
index 51b7cdc..bd05deb 100644
--- a/cc.h
+++ b/cc.h
@@ -166,7 +166,8 @@ enum typekind {
TYPEARRAY,
TYPEFUNC,
TYPESTRUCT,
- TYPEUNION
+ TYPEUNION,
+ TYPENULLPTR,
};
enum typeprop {
@@ -446,6 +447,7 @@ extern struct type typeint, typeuint;
extern struct type typelong, typeulong;
extern struct type typellong, typeullong;
extern struct type typefloat, typedouble, typeldouble;
+extern struct type typenullptr;
extern struct type *typeadjvalist;
/* targ */