aboutsummaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/eval.c b/eval.c
index 8de1316..3e83085 100644
--- a/eval.c
+++ b/eval.c
@@ -4,8 +4,11 @@
#include "util.h"
#include "cc.h"
-#define F (1<<8)
-#define S (2<<8)
+enum {
+ F = 1<<8,
+ S = 2<<8
+};
+
static void
cast(struct expr *expr)
{
@@ -96,8 +99,6 @@ binary(struct expr *expr, enum tokenkind op, struct expr *l, struct expr *r)
}
cast(expr);
}
-#undef F
-#undef S
struct expr *
eval(struct expr *expr)