From 5485302b9578f94bded1f4995707ac1792b299af Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Mon, 13 May 2019 12:30:28 -0700 Subject: Use enum type for expect argument --- cc.h | 2 +- pp.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cc.h b/cc.h index 03ae663..7d85355 100644 --- a/cc.h +++ b/cc.h @@ -375,7 +375,7 @@ void ppinit(const char *); void next(void); _Bool peek(int); -char *expect(int, const char *); +char *expect(enum tokenkind, const char *); _Bool consume(int); /* type */ diff --git a/pp.c b/pp.c index fd3ff6f..9584007 100644 --- a/pp.c +++ b/pp.c @@ -123,7 +123,7 @@ peek(int kind) } char * -expect(int kind, const char *msg) +expect(enum tokenkind kind, const char *msg) { char *lit, want[64], got[64]; -- cgit v1.2.3