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]

Re: cpplib bug fix (macro expansion)




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



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