X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=src%2Ftoken.c;h=5f177c43c5d6af795f945e6bc37de9557dbb2677;hp=f375065c625fbda34aadadce6d034d6e1bfca673;hb=848d77002c2c0451ccb76b9059cb352fabbdd8bc;hpb=42f44eb5bf4ecd36e26e051fada79d861d0f92d2 diff --git a/src/token.c b/src/token.c index f375065..5f177c4 100644 --- a/src/token.c +++ b/src/token.c @@ -204,7 +204,7 @@ void psi_token_dump(int fd, struct psi_token *t) 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); }