aboutsummaryrefslogtreecommitdiff
path: root/cc.h
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2019-04-20 19:19:05 -0700
committerMichael Forney <mforney@mforney.org>2019-04-20 19:19:55 -0700
commitb345b989c87aa0515bfd1d9206c3c80831923b1c (patch)
tree7dabd472629d59c07a6af71f97658bef265a5e81 /cc.h
parentcbff9bf03861b8d63f598d3370c82a96511a754c (diff)
Make basic types have their own kind
Diffstat (limited to 'cc.h')
-rw-r--r--cc.h23
1 files changed, 10 insertions, 13 deletions
diff --git a/cc.h b/cc.h
index c2ee78f..9de12b3 100644
--- a/cc.h
+++ b/cc.h
@@ -133,7 +133,16 @@ enum typekind {
TYPENONE,
TYPEVOID,
- TYPEBASIC,
+ TYPEBOOL,
+ TYPECHAR,
+ TYPESHORT,
+ TYPEINT,
+ TYPEENUM,
+ TYPELONG,
+ TYPELLONG,
+ TYPEFLOAT,
+ TYPEDOUBLE,
+ TYPELDOUBLE,
TYPEPOINTER,
TYPEARRAY,
TYPEFUNC,
@@ -191,18 +200,6 @@ struct type {
_Bool incomplete;
union {
struct {
- enum {
- BASICBOOL,
- BASICCHAR,
- BASICSHORT,
- BASICINT,
- BASICENUM,
- BASICLONG,
- BASICLLONG,
- BASICFLOAT,
- BASICDOUBLE,
- BASICLDOUBLE,
- } kind;
_Bool issigned, iscomplex;
} basic;
struct {