ignore some more options
[cparser] / token.c
diff --git a/token.c b/token.c
index 1496f35..d567124 100644 (file)
--- a/token.c
+++ b/token.c
@@ -10,6 +10,8 @@
 
 static symbol_t *token_symbols[T_LAST_TOKEN];
 
+source_position_t builtin_source_position = { "<built-in>", 0 };
+
 void init_tokens(void)
 {
        symbol_t *symbol;
@@ -82,13 +84,16 @@ void print_token(FILE *f, const token_t *token)
                fprintf(f, "symbol '%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;
        }
 }