X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=token.c;h=ec89d85a664819a83175df4218bc3c93294829d7;hb=3def71f59901789159be20bfdc806fb0fb1b6375;hp=7c8fbe54972c38b8a558681fd4f1a37c67909a14;hpb=01302abc817bec96dd0197da6a649fa95e8e7869;p=cparser diff --git a/token.c b/token.c index 7c8fbe5..ec89d85 100644 --- 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 = { "", 0 }; +const source_position_t builtin_source_position = { "", 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);