aboutsummaryrefslogtreecommitdiff
path: root/type.c
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 /type.c
parentf24b8ba07d0b2a5f4d81979aa6812bcdf410a365 (diff)
Implement C23 nullptr constant
Diffstat (limited to 'type.c')
-rw-r--r--type.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/type.c b/type.c
index 02e9a82..5f6e417 100644
--- a/type.c
+++ b/type.c
@@ -39,6 +39,8 @@ struct type typefloat = FLTTYPE(TYPEFLOAT, 4);
struct type typedouble = FLTTYPE(TYPEDOUBLE, 8);
struct type typeldouble = FLTTYPE(TYPELDOUBLE, 16);
+struct type typenullptr = {.kind = TYPENULLPTR, .size = 8, .align = 8, .prop = PROPSCALAR};
+
struct type *typeadjvalist;
struct type *