diff options
-rw-r--r-- | cc.h | 4 | ||||
-rw-r--r-- | main.c | 2 | ||||
-rw-r--r-- | pp.c | 4 | ||||
-rw-r--r-- | token.c | 4 |
4 files changed, 7 insertions, 7 deletions
@@ -370,8 +370,8 @@ struct init { extern struct token tok; extern const char *tokstr[]; -void tokprint(const struct token *); -void tokdesc(char *, size_t, enum tokenkind, const char *); +void tokenprint(const struct token *); +void tokendesc(char *, size_t, enum tokenkind, const char *); _Noreturn void error(const struct location *, const char *, ...); /* scan */ @@ -51,7 +51,7 @@ main(int argc, char *argv[]) ppinit(); if (pponly) { while (tok.kind != TEOF) { - tokprint(&tok); + tokenprint(&tok); next(); } } else { @@ -136,8 +136,8 @@ expect(enum tokenkind kind, const char *msg) char *lit, want[64], got[64]; if (tok.kind != kind) { - tokdesc(want, sizeof(want), kind, NULL); - tokdesc(got, sizeof(got), tok.kind, tok.lit); + tokendesc(want, sizeof(want), kind, NULL); + tokendesc(got, sizeof(got), tok.kind, tok.lit); error(&tok.loc, "expected %s %s, saw %s", want, msg, got); } lit = tok.lit; @@ -112,7 +112,7 @@ const char *tokstr[] = { }; void -tokprint(const struct token *t) +tokenprint(const struct token *t) { const char *str; @@ -137,7 +137,7 @@ tokprint(const struct token *t) } void -tokdesc(char *buf, size_t len, enum tokenkind kind, const char *lit) +tokendesc(char *buf, size_t len, enum tokenkind kind, const char *lit) { const char *class; bool quote; |