This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: C/C++/ObjC sourcecode unifier
- To: aoliva at redhat dot com (Alexandre Oliva)
- Subject: Re: C/C++/ObjC sourcecode unifier
- From: Joe Buck <jbuck at synopsys dot COM>
- Date: Tue, 10 Apr 2001 16:59:32 -0700 (PDT)
- Cc: erikyyy at erikyyy dot de (Erik Thiele), gcc at gcc dot gnu dot org
> On Apr 10, 2001, Erik Thiele <erikyyy@erikyyy.de> wrote:
>
> > therefor i need this unifier script or program that will be run AFTER
> > the preprocessor.
>
> I don't think this would be too hard to do as a side effect of
> compilation, by hacking the integrated preprocessor a little bit. It
> already works on tokens, so it couldn't be too hard to get it to spit
> out the sequence of tokens to a separate file or something.
However, it's not safe to remove all # lines, because this can alter
the result of compilation.