mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-22 19:11:18 +08:00
cppexp.c (cpp_reader): Test for '#' (start of assertion) *after* skipping hspace, not before.
* cppexp.c (cpp_reader): Test for '#' (start of assertion) *after* skipping hspace, not before. From-SVN: r9687
This commit is contained in:
parent
bc9cc2868d
commit
1519594d5a
@ -287,13 +287,13 @@ cpp_reader *pfile;
|
||||
|
||||
retry:
|
||||
|
||||
old_written = CPP_WRITTEN (pfile);
|
||||
cpp_skip_hspace (pfile);
|
||||
c = CPP_BUF_PEEK (CPP_BUFFER (pfile));
|
||||
if (c == '#')
|
||||
return parse_number (pfile,
|
||||
cpp_read_check_assertion (pfile) ? "1" : "0", 1);
|
||||
|
||||
old_written = CPP_WRITTEN (pfile);
|
||||
cpp_skip_hspace (pfile);
|
||||
if (c == '\n')
|
||||
{
|
||||
op.op = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user