From b38f2d82a80ea203f37c88746639a0efa8b66fbf Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Wed, 24 Apr 2019 22:17:41 -0700 Subject: Use a common member for expression op --- cc.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'cc.h') 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 { -- cgit v1.2.3