This is the mail archive of the gcc-prs@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]

Re: c/4513: Preprocessor appears broken for the '#' operator


The following reply was made to PR c/4513; it has been noted by GNATS.

From: Zack Weinberg <zack@codesourcery.com>
To: Neil Booth <neil@daikokuya.demon.co.uk>
Cc: dgillies@graviton.com, gcc-gnats@gcc.gnu.org
Subject: Re: c/4513: Preprocessor appears broken for the '#' operator
Date: Wed, 10 Oct 2001 14:42:08 -0700

 On Wed, Oct 10, 2001 at 07:47:35AM +0100, Neil Booth wrote:
 > > I'm also inclined to say that it is reasonable to dislike what 3.0
 > > does, and I'll listen to discussion about whether or not #\ should
 > > become "\\".  However, I remember that there was a good reason why we
 > > didn't do that in the first place.  Neil, do you remember what it was?
 > 
 > No good reason, I think it was the simplest implementation (simply
 > decrement the length).  I imagine it's very easy to append a '\' too;
 > if you do this be sure that there's enough room for the '\'.
 > (Checks): there is, since cpp_token_len returns conservative lengths.
 > I don't mind which we do.
 
 I don't see much point in changing it unless someone comes up with an
 example of real life code which wants the other behavior.
 
 zw


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