diff options
author | Michael Forney <mforney@mforney.org> | 2019-04-20 19:19:05 -0700 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2019-04-20 19:19:55 -0700 |
commit | b345b989c87aa0515bfd1d9206c3c80831923b1c (patch) | |
tree | 7dabd472629d59c07a6af71f97658bef265a5e81 /cc.h | |
parent | cbff9bf03861b8d63f598d3370c82a96511a754c (diff) |
Make basic types have their own kind
Diffstat (limited to 'cc.h')
-rw-r--r-- | cc.h | 23 |
1 files changed, 10 insertions, 13 deletions
@@ -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 { |