diff options
author | Richard Sandiford <richard@codesourcery.com> | 2006-01-23 07:50:42 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2006-01-23 07:50:42 +0000 |
commit | 0f01f026dc4f3f265545bd112583c4756933e31a (patch) | |
tree | 184f3fa2aa5272e63450577fd51e2d79c160ae17 /gcc/gengtype.h | |
parent | cda7004bb4836fa9e3c7f892c0fc0de3c81d176f (diff) |
gengtype.c (new_structure): Return the structure.
* gengtype.c (new_structure): Return the structure.
(create_option): Add an extra "next" argument.
(create_field): New function.
(adjust_field_rtx_def): Use create_option and create_field.
Remove a now-unnecessary call to find_structure.
(adjust_field_tree_def): Likewise.
(note_yacc_type): Remove an unnecessary call to find_structure.
* gengtype.h (new_structure): Return the structure.
(create_option): Add an extra argument.
* gengtype-yacc.y (type): Remove unnecessary calls to find_structure.
(option): Adjust calls to create_option.
From-SVN: r110108
Diffstat (limited to 'gcc/gengtype.h')
-rw-r--r-- | gcc/gengtype.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/gengtype.h b/gcc/gengtype.h index 0e527c2706d..cb44b97fcc8 100644 --- a/gcc/gengtype.h +++ b/gcc/gengtype.h @@ -133,14 +133,14 @@ extern char * xasprintf (const char *, ...) /* Constructor routines for types. */ extern void do_typedef (const char *s, type_p t, struct fileloc *pos); extern type_p resolve_typedef (const char *s, struct fileloc *pos); -extern void new_structure (const char *name, int isunion, - struct fileloc *pos, pair_p fields, - options_p o); +extern type_p new_structure (const char *name, int isunion, + struct fileloc *pos, pair_p fields, + options_p o); extern type_p find_structure (const char *s, int isunion); extern type_p create_scalar_type (const char *name, size_t name_len); extern type_p create_pointer (type_p t); extern type_p create_array (type_p t, const char *len); -extern options_p create_option (const char *name, void *info); +extern options_p create_option (options_p, const char *name, const void *info); 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); |