~mcf/cproc

5485302b9578f94bded1f4995707ac1792b299af — Michael Forney 1 year, 6 months ago a77759d
Use enum type for expect argument
2 files changed, 2 insertions(+), 2 deletions(-)

M cc.h
M pp.c
M cc.h => cc.h +1 -1
@@ 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 */

M pp.c => pp.c +1 -1
@@ 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];