diff options
author | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2015-08-06 14:18:35 -0400 |
---|---|---|
committer | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2015-09-15 23:01:30 -0400 |
commit | 27f32f26b32d9dd4138f30a23baaea237984c58c (patch) | |
tree | 52dd9db9b6c8e69b2883f69855fa1cde2a2d34df /lisc/parse.c | |
parent | 2482f4dbbb8a8fdc1a1bc398d5b8ca6f5af1fbd6 (diff) | |
download | roux-27f32f26b32d9dd4138f30a23baaea237984c58c.tar.gz |
get rid of the iteration macro
Diffstat (limited to 'lisc/parse.c')
-rw-r--r-- | lisc/parse.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/lisc/parse.c b/lisc/parse.c index 5969010..0a03abb 100644 --- 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 { |