summaryrefslogtreecommitdiff
path: root/gcc/gengtype.h
diff options
context:
space:
mode:
authorZack Weinberg <zackw@panix.com>2007-03-26 21:00:20 +0000
committerZack Weinberg <zack@gcc.gnu.org>2007-03-26 21:00:20 +0000
commit17defa6a13ef4f317e22dcb3827b4e8ea1b37541 (patch)
treebc7cc4d9040d552a301d8fe6061ec59da8a396fe /gcc/gengtype.h
parent95161faf6d635df17a7792840aa73600624b11fb (diff)
downloadgcc-17defa6a13ef4f317e22dcb3827b4e8ea1b37541.tar.gz
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
Diffstat (limited to 'gcc/gengtype.h')
-rw-r--r--gcc/gengtype.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/gengtype.h b/gcc/gengtype.h
index 1ee9d3acffb..f803ad3c1ee 100644
--- a/gcc/gengtype.h
+++ b/gcc/gengtype.h
@@ -139,6 +139,8 @@ extern type_p create_scalar_type (const char *name);
extern type_p create_pointer (type_p t);
extern type_p create_array (type_p t, const char *len);
extern options_p create_option (options_p, const char *name, const void *info);
+extern options_p create_nested_ptr_option (type_p t, const char *from,
+ const char *to);
extern type_p adjust_field_type (type_p, options_p);
extern void note_variable (const char *s, type_p t, options_p o,
struct fileloc *pos);