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: [patch 5/8] Simplify structure creation


Zack Weinberg <zackw@panix.com> writes:

> 	* gengtype-lex.l: Distinguish unions from structures in the
> 	token type.  Don't call find_structure; return the tag as a string.
> 	* gengtype-yacc.y: Add new token types ENT_TYPEDEF_UNION and ENT_UNION.
> 	Type of these, ENT_TYPEDEF_STRUCT, and ENT_STRUCT is string.
> 	Reorganize typedef_struct production accordingly.
> 	Use create_nested_ptr_option.
> 	* gengtype.c (create_nested_ptr_option): New function.
> 	* gengtype.h: Declare it.

This is OK.

Thanks.

Ian


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