cppexp.c (cpp_reader): Test for '#' (start of assertion) *after* skipping hspace...
authorPer Bothner <bothner@gcc.gnu.org>
Mon, 15 May 1995 20:42:04 +0000 (13:42 -0700)
committerPer Bothner <bothner@gcc.gnu.org>
Mon, 15 May 1995 20:42:04 +0000 (13:42 -0700)
* cppexp.c (cpp_reader):  Test for '#' (start of assertion) *after*
skipping hspace, not before.

From-SVN: r9687

gcc/cppexp.c

index 8e65a95274a3a45cc87b558b746c447b8beab776..70da378f2a9368e74ba71aa941a21f55387923b7 100644 (file)
@@ -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;