X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=token.c;h=99c871c2257b3eb4b3d27fb8fd7ba0bced2ffe3a;hb=9de06381987e3b71a9efea26cb9b596fd433191c;hp=f9b5336bda45b31c5a7027b5b5675fc0863f14b6;hpb=97f33b63c421063c4cbc869c60076b9132667835;p=cparser diff --git a/token.c b/token.c index f9b5336..99c871c 100644 --- a/token.c +++ b/token.c @@ -81,17 +81,17 @@ void print_token(FILE *f, const token_t *token) case T_IDENTIFIER: fprintf(f, "symbol '%s'", token->v.symbol->string); break; - case T_TYPENAME: - fprintf(f, "typename '%s'", token->v.symbol->string); - break; case T_INTEGER: - fprintf(f, "integer number %d", token->v.intvalue); + fprintf(f, "integer number %lld", token->v.intvalue); + break; + case T_FLOATINGPOINT: + fprintf(f, "floatingpointer number %LF", token->v.floatvalue); break; case T_STRING_LITERAL: fprintf(f, "string '%s'", token->v.string); break; default: - print_token_type(f, token->type); + print_token_type(f, (token_type_t)token->type); break; } }