diff options
author | Nick Clifton <nickc@redhat.com> | 2011-10-11 15:56:29 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2011-10-11 15:56:29 +0000 |
commit | bfb6c1ab1ed502faa7c3764722a1f1661f6d44e8 (patch) | |
tree | 1d8de29dde516f5b030ce2a485fa33e458477bd5 /binutils/windres.h | |
parent | 941b2081b1fd085fff7d323448672cedf18258db (diff) | |
download | gdb-bfb6c1ab1ed502faa7c3764722a1f1661f6d44e8.zip gdb-bfb6c1ab1ed502faa7c3764722a1f1661f6d44e8.tar.gz gdb-bfb6c1ab1ed502faa7c3764722a1f1661f6d44e8.tar.bz2 |
PR binutils/13051
Fix a syntax error bug when compiling rc files with the VERSIONINFO resource
containing more than one language block inside a single StringFileInfo block.
* windint.h (rc_ver_stringtable): New structure definition.
(rc_ver_info): Use it.
* rcparse.y (verstringtable): New variable.
(verstringtables): New type.
(verstringtables:): New rule declaration.
(verblocks:): Use it.
* resrc.c (append_ver_stringtable): New function.
(append_ver_stringfileinfo): Update to use stringtables.
* windres.h (append_ver_stringfileinfo): Update declaration.
(append_ver_stringtable): New declaration.
* resrc.c (write_rc_versioninfo): Update to support multiple blocks.
* resbin.c (bin_to_res_version): Likewise.
(res_to_bin_versioninfo): Likewise.
* binutils-all\windres\version.rsd: Regenerate.
* binutils-all\windres\version_cat.rsd: Regenerate.
* binutils-all\windres\version_mlang.rc: Add new test.
* binutils-all\windres\version_mlang.rsd: Likewise.
Diffstat (limited to 'binutils/windres.h')
-rw-r--r-- | binutils/windres.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/binutils/windres.h b/binutils/windres.h index 3e65886..b7bd656 100644 --- a/binutils/windres.h +++ b/binutils/windres.h @@ -1,5 +1,5 @@ /* windres.h -- header file for windres program. - Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2005, 2007 + Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2005, 2007, 2011 Free Software Foundation, Inc. Written by Ian Lance Taylor, Cygnus Support. Rewritten by Kai Tietz, Onevision. @@ -109,7 +109,8 @@ extern void define_user_data (rc_res_id, rc_res_id, const rc_res_res_info *, rc_ extern void define_toolbar (rc_res_id, rc_res_res_info *, rc_uint_type ,rc_uint_type ,rc_toolbar_item *); extern void define_user_file (rc_res_id, rc_res_id, const rc_res_res_info *, const char *); extern void define_versioninfo (rc_res_id, rc_uint_type, rc_fixed_versioninfo *, rc_ver_info *); -extern rc_ver_info *append_ver_stringfileinfo (rc_ver_info *, const char *, rc_ver_stringinfo *); +extern rc_ver_info *append_ver_stringfileinfo (rc_ver_info *, rc_ver_stringtable *); +extern rc_ver_stringtable *append_ver_stringtable (rc_ver_stringtable *, const char *, rc_ver_stringinfo *); extern rc_ver_info *append_ver_varfileinfo (rc_ver_info *, const unichar *, rc_ver_varinfo *); extern rc_ver_stringinfo *append_verval (rc_ver_stringinfo *, const unichar *, const unichar *); extern rc_ver_varinfo *append_vertrans (rc_ver_varinfo *, rc_uint_type, rc_uint_type); |