diff options
author | Nick Clifton <nickc@redhat.com> | 2002-04-15 14:12:41 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2002-04-15 14:12:41 +0000 |
commit | 45b99827916a4cbbf1b721ff346e69255550899b (patch) | |
tree | cfa480422fb9c85db2bfca51b5cb3d3ebdc1a2c7 /binutils/rcparse.y | |
parent | 272423870a26d8a7cabfc48b10b6f2b8c365e7b5 (diff) | |
download | gdb-45b99827916a4cbbf1b721ff346e69255550899b.zip gdb-45b99827916a4cbbf1b721ff346e69255550899b.tar.gz gdb-45b99827916a4cbbf1b721ff346e69255550899b.tar.bz2 |
Allow two to five parameter in FONT statement of DIALOGEX resources.
Diffstat (limited to 'binutils/rcparse.y')
-rw-r--r-- | binutils/rcparse.y | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/binutils/rcparse.y b/binutils/rcparse.y index 572d9c2..24ef35c 100644 --- a/binutils/rcparse.y +++ b/binutils/rcparse.y @@ -439,6 +439,27 @@ styles: style |= DS_SETFONT; dialog.pointsize = $3; unicode_from_ascii ((int *) NULL, &dialog.font, $5); + if (dialog.ex != NULL) + { + dialog.ex->weight = 0; + dialog.ex->italic = 0; + dialog.ex->charset = 1; + } + } + | styles FONT numexpr ',' QUOTEDSTRING cnumexpr + { + dialog.style |= DS_SETFONT; + style |= DS_SETFONT; + dialog.pointsize = $3; + unicode_from_ascii ((int *) NULL, &dialog.font, $5); + if (dialog.ex == NULL) + rcparse_warning (_("extended FONT requires DIALOGEX")); + else + { + dialog.ex->weight = $6; + dialog.ex->italic = 0; + dialog.ex->charset = 1; + } } | styles FONT numexpr ',' QUOTEDSTRING cnumexpr cnumexpr { @@ -452,6 +473,22 @@ styles: { dialog.ex->weight = $6; dialog.ex->italic = $7; + dialog.ex->charset = 1; + } + } + | styles FONT numexpr ',' QUOTEDSTRING cnumexpr cnumexpr cnumexpr + { + dialog.style |= DS_SETFONT; + style |= DS_SETFONT; + dialog.pointsize = $3; + unicode_from_ascii ((int *) NULL, &dialog.font, $5); + if (dialog.ex == NULL) + rcparse_warning (_("extended FONT requires DIALOGEX")); + else + { + dialog.ex->weight = $6; + dialog.ex->italic = $7; + dialog.ex->charset = $8; } } | styles MENU id |