aboutsummaryrefslogtreecommitdiff
path: root/gcc/cppmacro.c
diff options
context:
space:
mode:
authorNeil Booth <neilb@earthling.net>2000-11-26 19:30:27 +0000
committerNeil Booth <neil@gcc.gnu.org>2000-11-26 19:30:27 +0000
commit7463ef45cef847c6c629837bce486cc72f9f13bf (patch)
tree8f6ceb7e2304cefece6afd29f16d8d9a337f8e9e /gcc/cppmacro.c
parent1ccfb3dd92b557f5cbb9b8fcea1ec4eae6f60b93 (diff)
downloadgcc-7463ef45cef847c6c629837bce486cc72f9f13bf.zip
gcc-7463ef45cef847c6c629837bce486cc72f9f13bf.tar.gz
gcc-7463ef45cef847c6c629837bce486cc72f9f13bf.tar.bz2
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
Diffstat (limited to 'gcc/cppmacro.c')
-rw-r--r--gcc/cppmacro.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cppmacro.c b/gcc/cppmacro.c
index 4adf7f6..af520ef0 100644
--- a/gcc/cppmacro.c
+++ b/gcc/cppmacro.c
@@ -990,13 +990,14 @@ void
cpp_scan_buffer_nooutput (pfile)
cpp_reader *pfile;
{
+ cpp_buffer *buffer = pfile->buffer->prev;
cpp_token token;
do
do
cpp_get_token (pfile, &token);
while (token.type != CPP_EOF);
- while (cpp_pop_buffer (pfile) != 0);
+ while (cpp_pop_buffer (pfile) != buffer);
}
/* Lookahead handling. */