cpplib: Initial preparations for new lexer

Zack Weinberg zack@wolery.cumb.org
Sat Apr 15 17:57:00 GMT 2000


On Sun, Apr 16, 2000 at 09:28:15AM +0900, Neil Booth wrote:
> This consists of a few changes I need to implement a new lexer.
> 
> It exports struct directive, renaming it struct cpp_directive, and
> redefines its origin field to be a flag field.  Two new flags are
> defined, regarding the syntax of the directive, and just they are
> exported.

This is not OK.  I don't want struct directive visible outside
cpplib.c if it can be avoided.  Even if it can't, it shouldn't be in
the public header.

Please explain why you need the entire structure and not just the flag
field, which could be handed back by a routine in cpplib.c.

zw


More information about the Gcc-patches mailing list