Commit 7463ef45 by Neil Booth Committed by Neil Booth

cppmacro.c (cpp_scan_buffer_nooutput): Only scan the current buffer.

        * cppmacro.c (cpp_scan_buffer_nooutput): Only scan the
        current buffer.

From-SVN: r37764
parent 1ccfb3dd
2000-11-26 Neil Booth <neilb@earthling.net>
* cppmacro.c (cpp_scan_buffer_nooutput): Only scan the
current buffer.
2000-11-26 Joseph S. Myers <jsm28@cam.ac.uk> 2000-11-26 Joseph S. Myers <jsm28@cam.ac.uk>
* makefile.vms: Remove EGCS references. * makefile.vms: Remove EGCS references.
......
...@@ -990,13 +990,14 @@ void ...@@ -990,13 +990,14 @@ void
cpp_scan_buffer_nooutput (pfile) cpp_scan_buffer_nooutput (pfile)
cpp_reader *pfile; cpp_reader *pfile;
{ {
cpp_buffer *buffer = pfile->buffer->prev;
cpp_token token; cpp_token token;
do do
do do
cpp_get_token (pfile, &token); cpp_get_token (pfile, &token);
while (token.type != CPP_EOF); while (token.type != CPP_EOF);
while (cpp_pop_buffer (pfile) != 0); while (cpp_pop_buffer (pfile) != buffer);
} }
/* Lookahead handling. */ /* Lookahead handling. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment