Quick fix for http://lists.nongnu.org/archive/html/tinycc-devel/2015-04/msg00160.html. I don't fully understand the intended semantics of when file->buf_ptr[0] is valid, but the rest of the code doesn't have any obvious spots with the same bug. Feel free to revert this if I'm mistaken or we need to discuss this change further.
Unified · Split
| @@ -2888,7 +2888,7 @@ static int macro_subst_tok(TokenString *tok_str, · 2887 unmodified lines | ||
| 2888 | 2888 | goto redo; |
| 2889 | 2889 | } |
| 2890 | 2890 | } else { |
| 2891 | − ch = file->buf_ptr[0]; | |
| 2891 | + ch = tcc_peekc_slow(file); | |
| 2892 | 2892 | while (is_space(ch) || ch == '\n' || ch == '/') |
| 2893 | 2893 | { |
| 2894 | 2894 | if (ch == '/') |