scc

Simple C99 Compiler
Log | Files | Refs | README | LICENSE

commit ca4d7fb86e6e291245af6f857c1d83e70b757959
parent 262b22d30948622d5a0ddd068cfd49d3ba11c623
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Thu, 19 May 2016 08:31:50 +0200

[cc1] Move typeprops to the enum section

Diffstat:
cc1/cc1.h | 20++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/cc1/cc1.h b/cc1/cc1.h @@ -30,16 +30,6 @@ struct keyword { unsigned char token, value; }; -enum typeprops { - TDEFINED = 1 << 0, /* type defined */ - TSIGNED = 1 << 1, /* signedness of the type */ - TPRINTED = 1 << 2, /* the type was already printed */ - TINTEGER = 1 << 3, /* the type is INT of enum */ - TARITH = 1 << 4, /* the type is INT, ENUM or FLOAT */ - TAGGREG = 1 << 5, /* the type is struct or union */ - TK_R = 1 << 6, /* this is a K&R-function */ -}; - struct type { unsigned char op; /* type builder operator */ char ns; /* namespace for struct members */ @@ -112,6 +102,16 @@ struct input { * Definition of enumerations */ +enum typeprops { + TDEFINED = 1 << 0, /* type defined */ + TSIGNED = 1 << 1, /* signedness of the type */ + TPRINTED = 1 << 2, /* the type was already printed */ + TINTEGER = 1 << 3, /* the type is INT of enum */ + TARITH = 1 << 4, /* the type is INT, ENUM or FLOAT */ + TAGGREG = 1 << 5, /* the type is struct or union */ + TK_R = 1 << 6, /* this is a K&R-function */ +}; + /* data type letters */ enum { L_INT8 = 'C',