diff options
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 { |