Unified · Split
| @@ -61,6 +61,7 @@ static TokenSym *hash_ident[TOK_HASH_SIZE]; · 60 unmodified lines | ||
| 61 | 61 | static char token_buf[STRING_MAX_SIZE + 1]; |
| 62 | 62 | /* true if isid(c) || isnum(c) */ |
| 63 | 63 | static unsigned char isidnum_table[256-CH_EOF]; |
| 64 | +static int token_seen; | |
| 64 | 65 | |
| 65 | 66 | static const char tcc_keywords[] = |
| 66 | 67 | #define DEF(id, str) str "\0" |
| @@ -1758,7 +1759,7 @@ pack_error: · 1691 unmodified lines | ||
| 1758 | 1759 | fputs(get_tok_str(tok, &tokc), s1->ppfp); |
| 1759 | 1760 | next(); |
| 1760 | 1761 | } |
| 1761 | − fputs("\n", s1->ppfp); | |
| 1762 | + token_seen = 0;//printf '\n' | |
| 1762 | 1763 | goto the_end; |
| 1763 | 1764 | } |
| 1764 | 1765 | break; |
| @@ -3229,7 +3230,7 @@ ST_FUNC int tcc_preprocess(TCCState *s1) · 1464 unmodified lines | ||
| 3229 | 3230 | Sym *define_start; |
| 3230 | 3231 | |
| 3231 | 3232 | BufferedFile *file_ref, **iptr, **iptr_new; |
| 3232 | − int token_seen, line_ref, d; | |
| 3233 | + int line_ref, d; | |
| 3233 | 3234 | const char *s; |
| 3234 | 3235 | |
| 3235 | 3236 | preprocess_init(s1); |
| @@ -3238,7 +3239,6 @@ ST_FUNC int tcc_preprocess(TCCState *s1) · 2 unmodified lines | ||
| 3238 | 3239 | tok_flags = TOK_FLAG_BOL | TOK_FLAG_BOF; |
| 3239 | 3240 | parse_flags = PARSE_FLAG_ASM_COMMENTS | PARSE_FLAG_PREPROCESS | |
| 3240 | 3241 | PARSE_FLAG_LINEFEED | PARSE_FLAG_SPACES; |
| 3241 | − token_seen = 0; | |
| 3242 | 3242 | line_ref = 0; |
| 3243 | 3243 | file_ref = NULL; |
| 3244 | 3244 | iptr = s1->include_stack_ptr; |