Correct anchor underflow in case of error in parse_microsoft_extended_decl_modifier().
[cparser] / token.c
diff --git a/token.c b/token.c
index 183a0ca..e72e549 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, 0 };
+const source_position_t builtin_source_position = { "<built-in>", 0, 0, true };
 
 static int last_id;
 
@@ -66,7 +66,7 @@ static void register_token(unsigned mode, token_kind_t id, const char *string)
        }
 }
 
-static void register_pp_token(unsigned mode, token_kind_t id,
+static void register_pp_token(unsigned mode, preprocessor_token_kind_t id,
                               const char *string)
 {
        if (! (c_mode & mode))