aboutsummaryrefslogtreecommitdiff
path: root/binutils/rcparse.y
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2002-04-09 15:59:13 +0000
committerNick Clifton <nickc@redhat.com>2002-04-09 15:59:13 +0000
commit91eafb409b7bdf9462b9e5d0ba690c288814e979 (patch)
tree367c8e7c7a3eb6ac8da47d7c428aa0fbdfc6d721 /binutils/rcparse.y
parent4d0b1625bf03f05543445bd7d1aa581174f91a2c (diff)
downloadfsf-binutils-gdb-91eafb409b7bdf9462b9e5d0ba690c288814e979.zip
fsf-binutils-gdb-91eafb409b7bdf9462b9e5d0ba690c288814e979.tar.gz
fsf-binutils-gdb-91eafb409b7bdf9462b9e5d0ba690c288814e979.tar.bz2
Don't add default dialog style when explicit style specified.
Print style even if it is 0. Add testcase.
Diffstat (limited to 'binutils/rcparse.y')
-rw-r--r--binutils/rcparse.y6
1 files changed, 5 insertions, 1 deletions
diff --git a/binutils/rcparse.y b/binutils/rcparse.y
index b141f4a..fcd34cc 100644
--- a/binutils/rcparse.y
+++ b/binutils/rcparse.y
@@ -340,6 +340,7 @@ dialog:
dialog.ex = NULL;
dialog.controls = NULL;
sub_res_info = $3;
+ style = 0;
}
styles BEG controls END
{
@@ -363,6 +364,7 @@ dialog:
memset (dialog.ex, 0, sizeof (struct dialog_ex));
dialog.controls = NULL;
sub_res_info = $3;
+ style = 0;
}
styles BEG controls END
{
@@ -387,6 +389,7 @@ dialog:
dialog.ex->help = $9;
dialog.controls = NULL;
sub_res_info = $3;
+ style = 0;
}
styles BEG controls END
{
@@ -416,7 +419,6 @@ styles:
dialog.class = $3;
}
| styles STYLE
- { style = dialog.style; }
styleexpr
{
dialog.style = style;
@@ -432,12 +434,14 @@ styles:
| styles FONT numexpr ',' QUOTEDSTRING
{
dialog.style |= DS_SETFONT;
+ style |= DS_SETFONT;
dialog.pointsize = $3;
unicode_from_ascii ((int *) NULL, &dialog.font, $5);
}
| styles FONT numexpr ',' QUOTEDSTRING cnumexpr cnumexpr
{
dialog.style |= DS_SETFONT;
+ style |= DS_SETFONT;
dialog.pointsize = $3;
unicode_from_ascii ((int *) NULL, &dialog.font, $5);
if (dialog.ex == NULL)