From 92c59818b538ae7ca4973b5e0bafa8b7efadcb78 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Fri, 22 Mar 2024 01:50:07 -0700 Subject: Implement C23 nullptr constant --- cc.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cc.h') 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 */ -- cgit v1.2.3