cproc

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.nihaljere.xyz/cproc
Log | Files | Refs | Submodules | README | LICENSE

commit 5485302b9578f94bded1f4995707ac1792b299af
parent a77759d74709ac0ebe7d2243c9d4e95d972c4b73
Author: Michael Forney <mforney@mforney.org>
Date:   Mon, 13 May 2019 12:30:28 -0700

Use enum type for expect argument

Diffstat:
Mcc.h | 2+-
Mpp.c | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git 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 @@ -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];