commit 27f32f26b32d9dd4138f30a23baaea237984c58c
parent 2482f4dbbb8a8fdc1a1bc398d5b8ca6f5af1fbd6
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date: Thu, 6 Aug 2015 14:18:35 -0400
get rid of the iteration macro
Diffstat:
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/lisc/parse.c b/lisc/parse.c
@@ -25,13 +25,12 @@ OpDesc opdesc[OLast] = {
[OXDiv] = { "xdiv", 1, U },
[OXCmp] = { "xcmp", 2, U },
- #define I(X) X(eq), X(sle), X(slt), X(sgt), X(sge), X(ne)
- #define CMP(c) [OCmp+C##c] = { "c" #c, 2, U }
- #define SET(c) [OXSet+C##c] = { "xset" #c, 0, U }
- I(CMP), I(SET)
- #undef CMP
- #undef SET
- #undef I
+ #define X(c) \
+ [OCmp+C##c] = { "c" #c, 2, U }, \
+ [OXSet+C##c] = { "xset" #c, 0, U }
+
+ X(eq), X(sle), X(slt), X(sgt), X(sge), X(ne),
+ #undef X
};
typedef enum {