summaryrefslogtreecommitdiff
path: root/types.h
diff options
context:
space:
mode:
Diffstat (limited to 'types.h')
-rw-r--r--types.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/types.h b/types.h
index 8ceaa32..3e40d9c 100644
--- a/types.h
+++ b/types.h
@@ -31,9 +31,15 @@ typedef double Floating;
#if __STDC_VERSION__ >= 199901 || defined _MSC_VER
#define LONGLONG_AVAILABLE 1
typedef long long longlong;
+typedef unsigned long long ulonglong;
+#define LONGLONG_FMT "%lld"
+#define ULONGLONG_FMT "%llu"
#else
#define LONGLONG_AVAILABLE 0
typedef long longlong;
+typedef unsigned long ulonglong;
+#define LONGLONG_FMT "%ld"
+#define ULONGLONG_FMT "%lu"
#endif
@@ -315,6 +321,7 @@ typedef enum {
KW_TYPEOF,
KW_SIZEOF,
KW_ALIGNOF,
+ KW_NULL,
KW_COUNT
} Keyword;
@@ -329,7 +336,7 @@ static const char *const keywords[KW_COUNT] = {
"int", "i8", "i16", "i32", "i64",
"u8", "u16", "u32", "u64", "float", "f32", "f64", "void",
"Type", "Namespace", "char", "bool", "true", "false", "nms", "use",
- "typeof", "sizeof", "alignof"
+ "typeof", "sizeof", "alignof", "null"
};
typedef enum {