bfb6c1ab1e
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.
43 lines
1.3 KiB
Text
43 lines
1.3 KiB
Text
#include "windows.h"
|
|
|
|
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
|
|
|
|
VS_VERSION_INFO VERSIONINFO
|
|
FILEVERSION 1,0,0,1
|
|
PRODUCTVERSION 1,0,0,1
|
|
FILEFLAGSMASK 0x3fL
|
|
FILEFLAGS 0x0L
|
|
FILEOS 0x4L
|
|
FILETYPE 0x1L
|
|
FILESUBTYPE 0x0L
|
|
BEGIN
|
|
BLOCK "StringFileInfo"
|
|
BEGIN
|
|
BLOCK "040904b0"
|
|
BEGIN
|
|
VALUE "CompanyName", "binutils"
|
|
VALUE "FileDescription", "RC compiler."
|
|
VALUE "FileVersion", "1.0.0.1"
|
|
VALUE "InternalName", "windres.exe"
|
|
VALUE "LegalCopyright", "(c) FSF. All rights are reserved."
|
|
VALUE "OriginalFilename", "windres.exe"
|
|
VALUE "ProductName", "windows resource compiler"
|
|
VALUE "ProductVersion", "1.0.0.1"
|
|
END
|
|
BLOCK "041504b0"
|
|
BEGIN
|
|
VALUE "CompanyName", "binutils"
|
|
VALUE "FileDescription", "Kompilator RC."
|
|
VALUE "FileVersion", "1.0.0.1"
|
|
VALUE "InternalName", "windres.exe"
|
|
VALUE "LegalCopyright", "(c) FSF. Wszystkie prawa zastrzezone."
|
|
VALUE "OriginalFilename", "windres.exe"
|
|
VALUE "ProductName", "windows resource compiler"
|
|
VALUE "ProductVersion", "1.0.0.1"
|
|
END
|
|
END
|
|
BLOCK "VarFileInfo"
|
|
BEGIN
|
|
VALUE "Translation", 0x0409, 0x04b0, 0x0415, 0x04b0
|
|
END
|
|
END
|