]> git.ipfire.org Git - thirdparty/gcc.git/commit
* gengtype.h (xvasprintf): New prototype.
authorgeoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 12 Jun 2002 22:57:45 +0000 (22:57 +0000)
committergeoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 12 Jun 2002 22:57:45 +0000 (22:57 +0000)
commit92570e7a43090cad4263e51b21c8c896a4910972
tree7625beccd9803d12ee9437b5fcd7f9c4aaa581a8
parentc4f49014c4b9932d9dc7decb46ed3fdd2119ee29
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54566 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/gengtype.c
gcc/gengtype.h