X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=preprocessor.c;h=7ba8282b468fb4bac5fd1073a62da95d3d96e111;hb=f972547895d0931b7d80a5e5f78d16b79230833b;hp=39b2bb7cc46b90cdbabd01c762f8890cc648a88c;hpb=02f47f268839c472e23095ac0025e5ccbb5ed70a;p=cparser diff --git a/preprocessor.c b/preprocessor.c index 39b2bb7..7ba8282 100644 --- a/preprocessor.c +++ b/preprocessor.c @@ -85,7 +85,6 @@ static pp_definition_t *current_expansion = NULL; static inline void next_char(void); static void next_preprocessing_token(void); static void print_line_directive(const source_position_t *pos, const char *add); -static void print_spaces(void); static bool open_input(const char *filename) { @@ -184,7 +183,7 @@ static inline void next_real_char(void) if (input.bufpos >= input.bufend) { size_t s = fread(input.buf + MAX_PUTBACK, 1, sizeof(input.buf) - MAX_PUTBACK, input.file); - if(s == 0) { + if (s == 0) { CC = EOF; return; } @@ -880,7 +879,7 @@ static void skip_spaces(bool skip_newline) } } -static void eat_pp(preprocessor_token_type_t type) +static void eat_pp(int type) { (void) type; assert(pp_token.type == type); @@ -1251,7 +1250,7 @@ static void print_quoted_string(const char *const string) static void print_line_directive(const source_position_t *pos, const char *add) { - fprintf(out, "# %d ", pos->linenr); + fprintf(out, "# %u ", pos->linenr); print_quoted_string(pos->input_name); if (add != NULL) { fputc(' ', out);