gengtype.h (xvasprintf): New prototype.
authorGeoffrey Keating <geoffk@redhat.com>
Wed, 12 Jun 2002 22:57:45 +0000 (22:57 +0000)
committerGeoffrey Keating <geoffk@gcc.gnu.org>
Wed, 12 Jun 2002 22:57:45 +0000 (22:57 +0000)
commite03856fe956bdc94dc86c19d05f5f03af0f296f7
tree7625beccd9803d12ee9437b5fcd7f9c4aaa581a8
parent83144cfcfaca44bb6d0cae7d2c0fa447193cb819
gengtype.h (xvasprintf): New prototype.

* gengtype.h (xvasprintf): New prototype.
(xasprintf): New prototype.
(struct outf): New.
(get_output_file): Return an outf_p.
(header_file): Is now an outf_p.
(base_files): Now are outf_p.
(oprintf): New.
* gengtype.c: Replace all output FILE * with outf_p; use oprintf
rather than stdio operations.  Use xasprintf in a few places,
when appropriate.
(xvasprintf): New.
(xasprintf): New.
(struct filemap): Delete.
(files): Delete.
(output_files): New.
(oprintf): New.
(create_file): Create an outf_p.  Add parameter to indicate output
file name, change all callers.
(open_base_files): Create gtype-desc.c here.
(get_output_file_with_visibility): Rewrite.
(get_output_file_name): Just look at 'name' field in struct outf.
(close_output_files): Rewrite.

From-SVN: r54566
gcc/ChangeLog
gcc/gengtype.c
gcc/gengtype.h