b9ae04920a
(res_null_text): New static const struct res_id object, with empty unicode name field. (control): Pop parsing of optresidc up one level. Set res_text_field to $2 except for controls which do not accept a text field. Set res_text_field to res_null_text for the special cases (viz. COMBOBOX, EDITTEXT, LISTBOX, SCROLLBAR). (control_params): Adjust to use res_text_field rather than optresidc. (COMBOBOX): Add comment about discrepency between documented vs. observed default style. * resrc.c (define_control): Make first param const. * windres.h (define_control): Adjust prototype. testsuite: * binutils-all/windres/checkbox.rc: New file. * binutils-all/windres/checkbox.rsd: New file. * binutils-all/windres/combobox.rc: New file. * binutils-all/windres/combobox.rsd: New file. * binutils-all/windres/edittext.rc: New file. * binutils-all/windres/edittext.rsd: New file. * binutils-all/windres/listbox.rc: New file. * binutils-all/windres/listbox.rsd: New file. * binutils-all/windres/scrollbar.rc: New file. * binutils-all/windres/scrollbar.rsd: New file. |
||
---|---|---|
.. | ||
bmp1.bmp | ||
bmpalign.rc | ||
bmpalign.rsd | ||
capstyle.rc | ||
capstyle.rsd | ||
checkbox.rc | ||
checkbox.rsd | ||
combobox.rc | ||
combobox.rsd | ||
deflang.rc | ||
deflang.rsd | ||
dialog0.rc | ||
dialog0.rsd | ||
dialog1.rc | ||
dialog1.rsd | ||
dialogid.rc | ||
dialogid.rsd | ||
dialogsignature.rc | ||
dialogsignature.rsd | ||
dlgfont.rc | ||
dlgfont.rsd | ||
edittext.rc | ||
edittext.rsd | ||
escapea.rc | ||
escapea.rsd | ||
escapex.rc | ||
escapex.rsd | ||
lang.rc | ||
lang.rsd | ||
listbox.rc | ||
listbox.rsd | ||
msupdate | ||
nocaption.rc | ||
nocaption.rsd | ||
printstyle.rc | ||
printstyle.rsd | ||
quoteclass.rc | ||
README | ||
scrollbar.rc | ||
scrollbar.rsd | ||
strtab1.rc | ||
strtab1.rsd | ||
sublang.rc | ||
sublang.rsd | ||
windres.exp |
Instructions for adding tests: The files *.rc are hand-edited or copied from elsewhere. The script msupdate is used to generate the *.rsd files, which are dumps of the RES formatted output of MSVC's RC utility. Within the *.rc file, the first N lines beginning with a special comment can control the test. Comments are // /* or # (// is recommended, as both rc and windres support those). Each line contains one command: // parse-only // xfail *-*-* parse-only must preceed any xfail commands, and indicates that a comparison with the *.rsd file will not happen. xfail indicates when a failure is expected. This should only be used for when you are adding a new test that is known to fail because of a bug in windres, and it should be removed when the bug is fixed. You can use pfail or cfail instead of xfail to indicate that only the parsing or comparing should be xfailed. The windres tests only run for ix86 targets, because the MSVC-generated *.rsd files are generated for that.