commit 5d7bc37c68d7b4e225a34df53302363b6732a4cb parent 8aff541d02b4a49c60f54ba17de819fcc18cd0ea Author: sin <sin@2f30.org> Date: Tue, 13 May 2014 16:35:14 +0100 Rename tok2string to lexeme Diffstat:
M | debug.c | | | 2 | +- |
M | lexer.c | | | 2 | +- |
M | lexer.h | | | 2 | +- |
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/debug.c b/debug.c @@ -9,7 +9,7 @@ printtok(struct tok *t) { char *s; - s = tok2string(t); + s = lexeme(t); if (!s) return; switch (t->type) { diff --git a/lexer.c b/lexer.c @@ -231,7 +231,7 @@ again: } char * -tok2string(struct tok *t) +lexeme(struct tok *t) { if (t->s == NULL) return NULL; diff --git a/lexer.h b/lexer.h @@ -20,4 +20,4 @@ struct tok { }; struct tok gettok(FILE *fp); -char *tok2string(struct tok *); +char *lexeme(struct tok *);