This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

cpplib: Line skipping fix


I seem to have updated the comment but not the code.  We might as well
use _cpp_get_token anyway.

Neil.

	* cpplib.c (skip_rest_of_line):  Use _cpp_get_token.

Index: cpplib.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/cpplib.c,v
retrieving revision 1.209
diff -u -p -r1.209 cpplib.c
--- cpplib.c	2000/10/28 21:40:43	1.209
+++ cpplib.c	2000/10/29 22:42:11
@@ -188,10 +188,10 @@ skip_rest_of_line (pfile)
   /* Sweep up all tokens remaining on the line.  We need to read
      tokens from lookahead, but cannot just drop the lookahead buffers
      because they may be saving tokens prior to this directive for an
-     external client.  So we use cpp_get_token, with macros disabled.  */
+     external client.  So we use _cpp_get_token, with macros disabled.  */
   pfile->state.prevent_expansion++;
   while (!pfile->state.skip_newlines)
-    _cpp_lex_token (pfile, &token);
+    _cpp_get_token (pfile, &token);
   pfile->state.prevent_expansion--;
 }
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]