gengtype-lex.l: Distinguish unions from structures in the token type.
authorZack Weinberg <zackw@panix.com>
Mon, 26 Mar 2007 21:00:20 +0000 (21:00 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Mon, 26 Mar 2007 21:00:20 +0000 (21:00 +0000)
commit17defa6a13ef4f317e22dcb3827b4e8ea1b37541
treebc7cc4d9040d552a301d8fe6061ec59da8a396fe
parent95161faf6d635df17a7792840aa73600624b11fb
gengtype-lex.l: Distinguish unions from structures in the token type.

* 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.

From-SVN: r123232
gcc/ChangeLog
gcc/gengtype-lex.l
gcc/gengtype-yacc.y
gcc/gengtype.c
gcc/gengtype.h