gengtype improvements for plugins. patch 1/N
Basile Starynkevitch
basile@starynkevitch.net
Sun Aug 29 09:19:00 GMT 2010
There was a one letter typo in the patch (for the gengtype_long_options
array, line "version", short letter).
So here is the latest and hopefully final version of the patch.
the patch relative to trunk is file patch01ter-r163612-progarg.diff
the gcc/ChangeLog entry is patch01ter-r163612-progarg.ChangeLog
Ok for trunk?
--
Basile STARYNKEVITCH http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mine, sont seulement les miennes} ***
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch01ter-r163612-progarg.diff
Type: text/x-patch
Size: 11343 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20100829/651cd7fb/attachment.bin>
-------------- next part --------------
2010-08-29 Jeremie Salvucci <jeremie.salvucci@free.fr>,
Basile Starynkevitch <basile@starynkevitch.net>
* gengtype.c: Added #include of getopt.h & version.h. Moved the
include of gengtype.h
(lang_bitmap, struct outf, outf_p, output_file)
(inputlist, output_files, header_file, plugin_output_filename)
(srcdir, srcdir_len, do_dump): definitions moved to gengtype.c,
and variables declared here.
(read_state_filename, write_state_filename, do_debug): New
declarations.
(gengtype_long_options): Added new static variable.
(print_usage): Added new function.
(print_version): Added new function.
(parse_program_options): Added new function.
(main): use parse_program_options, cleaned up a bit. Added stubs
for read & write of state.
* gengtype.h: Moved many things from gengtype.c to here.
(outf, outf_p, output_files, header_file, srcdir, srcdir_len)
(do_dump): Moved variables from gengtype.c
(read_state_filename, write_state_filename, do_debug): Added variables.
(dbgprintf): Added conditional macro.
* Makefile.in (build/version.o): Added target, use BUILD_CPPFLAGS
& $(COMPILER_FOR_BUILD)
(build/gengtype): Link with it.
(s-gtype): Run gengtype with new program arguments.
More information about the Gcc-patches
mailing list