This is the mail archive of the gcc-bugs@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: Still having major problems with cpplib and imake


Zack Weinberg wrote:

> On Fri, May 12, 2000 at 09:12:11AM -0400, Dave Brolley wrote:
> > Jakub Jelinek wrote:
> >
> > > But cpp does not honour whitespace, which is a bigger problem.
>

> > Neil and Zack:
> >
> > -traditional preprocessors generally preserve all whitesapce
> > verbatim, including whitespace in macro arguments. This should be
> > easy for cpplib to do in open text, but harder in macro arguments
> > due to the token-based representation. Tabs are rare in macro
> > arguments, so keeping a count of the witespaces might be sufficient
> > there.
>
> I was planning to do best-effort reconstruction of whitespace using
> the column number information stored with the tokens, once we get that
> right.
>
> Note this has nothing to do with -traditional, we'll lose the leading
> tabs in both modes.

Other than preserving space in macro arguments, I agree. I think that neither
mode should mess with whitespace in open text.

Dave



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