This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r123233 - in /trunk/gcc: ChangeLog gengtype-yac...
- From: zack at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Mon, 26 Mar 2007 21:05:00 -0000
- Subject: r123233 - in /trunk/gcc: ChangeLog gengtype-yac...
Author: zack
Date: Mon Mar 26 22:04:59 2007
New Revision: 123233
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=123233
Log:
* gengtype.h: Remove all type definitions to gengtype.c; leave
only definitions of options_p, type_p, and pair_p as opaque
pointers. Update prototypes.
* gengtype.c: Many type definitions moved here from gengtype.h.
Consolidate type definitions at the top of the file.
(xvasprintf): Delete.
(xasprintf): Make static.
(create_nested_pointer_option): Add 'next' parameter.
(create_field_all, create_field_at): New functions.
(create_field): Now a thin wrapper around create_field_all.
(create_optional_field): Rename create_optional_field_ and add
line argument. Original name is now a macro which supplies
__LINE__.
(oprintf): Use vsnprintf directly.
(close_output_files): Use fatal rather than perror/exit.
(note_def_vec, note_def_vec_alloc): Use create_field_at.
(main): Set progname. Don't use exit.
* gengtype-yacc.y (struct_fields): Use create_field_at.
(option, optionseqopt): Delete.
(optionseq): Consolidate productions from option here so we
can use the first argument to create_option.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/gengtype-yacc.y
trunk/gcc/gengtype.c
trunk/gcc/gengtype.h