deduct variable names from implementation
[m6w6/ext-psi] / src / token.c
index f375065c625fbda34aadadce6d034d6e1bfca673..08a6802826cb70572afcae87bf6816990cf4b7ea 100644 (file)
@@ -199,12 +199,12 @@ void psi_token_dump(int fd, struct psi_token *t)
 {
        size_t i;
 
-       dprintf(fd, "TOKEN %p (%d) ", t, t->type);
+       dprintf(fd, "TOKEN %p (%u) ", t, t->type);
        if (t->type == PSI_T_EOF) {
                dprintf(fd, "EOF");
        } else {
                dprintf(fd, "\"");
-               for (i = 0; i < MIN(t->size, 16); ++i) {
+               for (i = 0; i < t->size; ++i) {
                        switch (t->text[i]) {
                        case '\0':
                                dprintf(fd, "\\0");
@@ -242,7 +242,7 @@ void psi_token_dump(int fd, struct psi_token *t)
                                break;
                        }
                }
-               dprintf(fd, "%s\"", t->size > 16 ? "..." : "");
+               dprintf(fd, "\"");
        }
        dprintf(fd, " at col %u in %s on line %u\n", t->col, t->file, t->line);
 }