This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: cpplib bug fix (macro expansion)
- To: Zack Weinberg <zack at rabi dot columbia dot edu>
- Subject: Re: cpplib bug fix (macro expansion)
- From: Dave Brolley <brolley at cygnus dot com>
- Date: Thu, 08 Oct 1998 12:02:32 -0400
- CC: egcs-patches at cygnus dot com
- Organization: Cygnus Solutions Canada Ltd
- References: <199810022356.TAA00268@rabi.phys.columbia.edu>
Zack Weinberg wrote:
> Is it safe to assume macro buffers cannot contain newlines and
> comments? If so, this patch should work.
I'm not sure if that's true. Perhaps the best way to handle it would be to continue
calling cpp_skip_hspace and change that function to return true if it skips
anything other than a line continuation. You could then use that return value to
set your flag.
Dave