aboutsummaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2020-03-09 01:58:39 -0700
committerMichael Forney <mforney@mforney.org>2020-03-16 02:21:13 -0700
commitd05ebf8bed8ac45b50263c85ce1c0d2327d66d55 (patch)
treece74a43b6b0d09892f0b10690a8872b71d72af6d /pp.c
parentfd836460ae1f1879bd27cff2e4a60d29ab24de43 (diff)
token: Rename some functions
Diffstat (limited to 'pp.c')
-rw-r--r--pp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pp.c b/pp.c
index a92ee26..e62845f 100644
--- a/pp.c
+++ b/pp.c
@@ -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;