summary refs log tree commit diff
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-08-06 14:18:35 -0400
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-09-15 23:01:30 -0400
commit27f32f26b32d9dd4138f30a23baaea237984c58c (patch)
tree52dd9db9b6c8e69b2883f69855fa1cde2a2d34df
parent2482f4dbbb8a8fdc1a1bc398d5b8ca6f5af1fbd6 (diff)
downloadroux-27f32f26b32d9dd4138f30a23baaea237984c58c.tar.gz
get rid of the iteration macro
-rw-r--r--lisc/parse.c13
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 {