aboutsummaryrefslogtreecommitdiff
path: root/cc.h
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2019-04-05 14:13:29 -0700
committerMichael Forney <mforney@mforney.org>2019-04-06 12:01:37 -0700
commit7e5a07cfff793e5656d9868cae9cc5281f92e0d0 (patch)
tree762a99ff7cb5a8c5b52dc33af7ced2005955370d /cc.h
parent2f19124e5a36e4cd796841238dadfb8750789f78 (diff)
Separate unqualified type and qualifiers in struct expr
Diffstat (limited to 'cc.h')
-rw-r--r--cc.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/cc.h b/cc.h
index 511ad41..85b50b5 100644
--- a/cc.h
+++ b/cc.h
@@ -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 {