commit b8af866fce7ea0378e098115d2eebb999cdf3af5 parent 3c340b8114363a3af2fc8690a00bb4909bb63355 Author: sin <sin@2f30.org> Date: Sun, 11 May 2014 16:39:27 +0100 Rename extractstring() to tok2string() 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 = extractstring(t); + s = tok2string(t); if (!s) return; switch (t->type) { diff --git a/lexer.c b/lexer.c @@ -39,7 +39,7 @@ delim(int c) } char * -extractstring(struct tok *t) +tok2string(struct tok *t) { if (t->s == NULL) return NULL; diff --git a/lexer.h b/lexer.h @@ -19,5 +19,5 @@ struct tok { char *e; }; -char *extractstring(struct tok *); +char *tok2string(struct tok *); struct tok gettok(FILE *fp);