more work on local variable support
[cparser] / token.c
diff --git a/token.c b/token.c
index f9b5336..4769365 100644 (file)
--- a/token.c
+++ b/token.c
@@ -81,12 +81,12 @@ 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);
                break;
+       case T_FLOATINGPOINT:
+               fprintf(f, "floatingpointer number %f", token->v.floatvalue);
+               break;
        case T_STRING_LITERAL:
                fprintf(f, "string '%s'", token->v.string);
                break;