aboutsummaryrefslogtreecommitdiff
path: root/cc.h
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2019-04-24 22:17:41 -0700
committerMichael Forney <mforney@mforney.org>2019-04-24 22:32:22 -0700
commitb38f2d82a80ea203f37c88746639a0efa8b66fbf (patch)
treefd1ef9145ec3f18b67f90f233653eb5f65119a3f /cc.h
parentb95f69c821941fc73ff1bf397c549189bd5fce9a (diff)
Use a common member for expression op
Diffstat (limited to 'cc.h')
-rw-r--r--cc.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/cc.h b/cc.h
index e0f6d84..d008e80 100644
--- a/cc.h
+++ b/cc.h
@@ -305,6 +305,7 @@ struct expr {
struct type *type;
/* the type qualifiers of the object this expression refers to (ignored for non-lvalues) */
enum typequal qual;
+ enum tokenkind op;
struct expr *next;
union {
struct {
@@ -330,19 +331,16 @@ struct expr {
struct init *init;
} compound;
struct {
- enum tokenkind op;
_Bool post;
struct expr *base;
} incdec;
struct {
- enum tokenkind op;
struct expr *base;
} unary;
struct {
struct expr *e;
} cast;
struct {
- enum tokenkind op;
struct expr *l, *r;
} binary;
struct {