adapt preprocessor to coding standards
[cparser] / token.c
diff --git a/token.c b/token.c
index 7c8fbe5..ec89d85 100644 (file)
--- a/token.c
+++ b/token.c
@@ -32,7 +32,7 @@
 static symbol_t *token_symbols[T_LAST_TOKEN];
 static symbol_t *pp_token_symbols[TP_LAST_TOKEN];
 
-const source_position_t builtin_source_position = { "<built-in>", 0 };
+const source_position_t builtin_source_position = { "<built-in>", 0, 0 };
 
 static int last_id;
 
@@ -45,7 +45,7 @@ static symbol_t *intern_register_token(token_type_t id, const char *string)
        return symbol;
 }
 
-static symbol_t *intern_register_pp_token(token_type_t id, const char *string)
+static symbol_t *intern_register_pp_token(preprocessor_token_type_t id, const char *string)
 {
        assert(0 <= id && id < TP_LAST_TOKEN);
        symbol_t *symbol = symbol_table_insert(string);