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]
Other format: [Raw text]

Re: Move more predefined macros


On Thu, May 16, 2002 at 07:19:22AM +0100, Neil Booth wrote:
> > Future potential changes along these lines are: move the
> > builtin_define_* routines from c-common to cpplib (they are
> > semi-duplicates of internal cpplib routines); move the definitions of
> > __cplusplus etc to c-common.  I'd appreciate opinions on both.
> 
> I'm thinking of having a new interface in cpplib that takes the
> macro and its expansion separately.  At present, we just burn cycles
> copying the string, replacing the first '=', and then letting the
> lexer separate them out again.
> 
> It might be nicer to just to a cpp_lookup() on the name and jump
> straight into lexing the definition.

Agreed.  It would be useful for -D without value as well as these
builtin definitions.

zw


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