diff options
author | Michael Forney <mforney@mforney.org> | 2019-04-05 14:13:29 -0700 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2019-04-06 12:01:37 -0700 |
commit | 7e5a07cfff793e5656d9868cae9cc5281f92e0d0 (patch) | |
tree | 762a99ff7cb5a8c5b52dc33af7ced2005955370d /cc.h | |
parent | 2f19124e5a36e4cd796841238dadfb8750789f78 (diff) |
Separate unqualified type and qualifiers in struct expr
Diffstat (limited to 'cc.h')
-rw-r--r-- | cc.h | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -296,8 +296,14 @@ enum exprkind { struct expr { enum exprkind kind; - _Bool lvalue, decayed; + /* whether this expression is an lvalue */ + _Bool lvalue; + /* whether this expression is a pointer decayed from an array or function designator */ + _Bool decayed; + /* the unqualified type of the expression */ struct type *type; + /* the type qualifiers of the object this expression refers to (ignored for non-lvalues) */ + enum typequal qual; struct expr *next; union { struct { |