X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=token.c;h=1496f353e68175f69ea0ed18663c0ed478b406cf;hb=619e8bbd734140dd6562c9f10c43c029eaa3f52d;hp=9464783d9e8832e1199b85b09a83953638dd0f9a;hpb=9e29e9c33f6511c4583e5b8ed83194d433e82c45;p=cparser diff --git a/token.c b/token.c index 9464783..1496f35 100644 --- a/token.c +++ b/token.c @@ -65,7 +65,7 @@ void print_token_type(FILE *f, token_type_t token_type) const symbol_t *symbol = token_symbols[token_type]; if(symbol != NULL) { - fputs(symbol->string, f); + fprintf(f, "'%s'", symbol->string); } else { if(token_type >= 0 && token_type < 256) { fprintf(f, "'%c'", token_type);