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]
Other format: [Raw text]

Re: Patch fix gengtype.h:error_at_line prototype


 > From: Geoff Keating <geoffk@geoffk.org>
 > 
 > > From: "Kaveh R. Ghazi" <ghazi@caip.rutgers.edu>
 > > 
 > > @@ -285,7 +285,7 @@ ITYPE	{IWORD}({WS}{IWORD})*
 > >  "%}"		{ BEGIN(in_struct); }
 > >  "%"		{
 > >    error_at_line (&lexer_line, 
 > > -		 "unterminated %{; unexpected EOF");
 > > +		 "unterminated %%{; unexpected EOF");
 > 
 > This isn't portable either.  Annoyingly, you have to write
 > 
 > "unterminated %c{; unexpected EOF", '%'
 > 
 > OK with this change.

Er, really?  I'm surprised cause I see tons (ok dozens) of %% uses in
the top level gcc directory right now.

How/where/when is this not portable?

		Thanks,
		--Kaveh
--
Kaveh R. Ghazi			Director of Systems Architecture
ghazi@caip.rutgers.edu		Qwest Solutions


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