diff options
Diffstat (limited to 'libcpp/lex.c')
-rw-r--r-- | libcpp/lex.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/libcpp/lex.c b/libcpp/lex.c index bbd73405a76..18139bafb9d 100644 --- a/libcpp/lex.c +++ b/libcpp/lex.c @@ -2645,20 +2645,6 @@ _cpp_get_fresh_line (cpp_reader *pfile) } \ while (0) -#ifdef KELVIN_DEBUG -static FILE *kelvin_lex_trace; - -void -kelvin_trace (const char *msg, struct cpp_buffer *buffer) -{ - if (kelvin_lex_trace == NULL) - kelvin_lex_trace = fopen ("kelvin-lex-trace", "w"); - - fprintf (kelvin_lex_trace, "%s: buffer [%s], current focus @ %ld\n", - msg, buffer->buf, (buffer->cur - buffer->buf)); -} -#endif - /* Lex a token into pfile->cur_token, which is also incremented, to get diagnostics pointing to the correct location. @@ -2726,12 +2712,6 @@ _cpp_lex_direct (cpp_reader *pfile) _cpp_process_line_notes (pfile, false); result->src_loc = pfile->line_table->highest_line; } -#ifdef KELVIN_DEBUG - /* kelvin says this is where we get the next lexical character. - * still figuring out how we check for buffer overflow. - */ - kelvin_trace ("b4 switch in cpp_lex_direct", buffer); -#endif c = *buffer->cur++; if (pfile->forced_token_location_p) |