This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c/4513: Preprocessor appears broken for the '#' operator
- To: nobody at gcc dot gnu dot org
- Subject: Re: c/4513: Preprocessor appears broken for the '#' operator
- From: Zack Weinberg <zack at codesourcery dot com>
- Date: 10 Oct 2001 21:46:01 -0000
- Cc: gcc-prs at gcc dot gnu dot org,
- Reply-To: Zack Weinberg <zack at codesourcery dot com>
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