OSDN Git Service

* rcparse.y (res_text_field): New res_id variable.
authordannysmith <dannysmith>
Sat, 28 Jun 2003 02:37:43 +0000 (02:37 +0000)
committerdannysmith <dannysmith>
Sat, 28 Jun 2003 02:37:43 +0000 (02:37 +0000)
commit44869e422a5ed6432999ff0a1bb64af9e7e028a1
tree1e5729a9c6d774b47afda729fbfc5e90827b50b2
parent28c15d1ecfc4ab4e6c81776d57634c92f87aaafb
* rcparse.y (res_text_field): New res_id variable.
(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.
15 files changed:
binutils/ChangeLog
binutils/rcparse.y
binutils/resrc.c
binutils/testsuite/ChangeLog
binutils/testsuite/binutils-all/windres/checkbox.rc [new file with mode: 0644]
binutils/testsuite/binutils-all/windres/checkbox.rsd [new file with mode: 0644]
binutils/testsuite/binutils-all/windres/combobox.rc [new file with mode: 0644]
binutils/testsuite/binutils-all/windres/combobox.rsd [new file with mode: 0644]
binutils/testsuite/binutils-all/windres/edittext.rc [new file with mode: 0644]
binutils/testsuite/binutils-all/windres/edittext.rsd [new file with mode: 0644]
binutils/testsuite/binutils-all/windres/listbox.rc [new file with mode: 0644]
binutils/testsuite/binutils-all/windres/listbox.rsd [new file with mode: 0644]
binutils/testsuite/binutils-all/windres/scrollbar.rc [new file with mode: 0644]
binutils/testsuite/binutils-all/windres/scrollbar.rsd [new file with mode: 0644]
binutils/windres.h