aboutsummaryrefslogtreecommitdiff
path: root/binutils/rcparse.y
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1997-07-31 15:53:23 +0000
committerIan Lance Taylor <ian@airs.com>1997-07-31 15:53:23 +0000
commite42872a2e82d38623223495e5fdbaa31dacd2a80 (patch)
tree461fb7eea5804d2ac294be2860a60e95fe752e48 /binutils/rcparse.y
parent13eb6306e714d658344024d3e87600427517624a (diff)
downloadgdb-e42872a2e82d38623223495e5fdbaa31dacd2a80.zip
gdb-e42872a2e82d38623223495e5fdbaa31dacd2a80.tar.gz
gdb-e42872a2e82d38623223495e5fdbaa31dacd2a80.tar.bz2
From Ton van Overbeek <tvoverbe@wk.estec.esa.nl>:
* rcparse.y (dialog): Default menu and class to be named. (styles): If FONT is seen, set DS_SETFONT in dialog style. * resbin.c (res_to_bin_dialog): Correct computation of font information length.
Diffstat (limited to 'binutils/rcparse.y')
-rw-r--r--binutils/rcparse.y8
1 files changed, 8 insertions, 0 deletions
diff --git a/binutils/rcparse.y b/binutils/rcparse.y
index 5c06184..0ab87d2 100644
--- a/binutils/rcparse.y
+++ b/binutils/rcparse.y
@@ -319,6 +319,8 @@ dialog:
dialog.height = $8;
dialog.style = WS_POPUP | WS_BORDER | WS_SYSMENU;
dialog.exstyle = $4;
+ dialog.menu.named = 1;
+ dialog.class.named = 1;
dialog.font = NULL;
dialog.ex = NULL;
dialog.controls = NULL;
@@ -338,6 +340,8 @@ dialog:
dialog.height = $8;
dialog.style = WS_POPUP | WS_BORDER | WS_SYSMENU;
dialog.exstyle = $4;
+ dialog.menu.named = 1;
+ dialog.class.named = 1;
dialog.font = NULL;
dialog.ex = ((struct dialog_ex *)
res_alloc (sizeof (struct dialog_ex)));
@@ -359,6 +363,8 @@ dialog:
dialog.height = $8;
dialog.style = WS_POPUP | WS_BORDER | WS_SYSMENU;
dialog.exstyle = $4;
+ dialog.menu.named = 1;
+ dialog.class.named = 1;
dialog.font = NULL;
dialog.ex = ((struct dialog_ex *)
res_alloc (sizeof (struct dialog_ex)));
@@ -406,11 +412,13 @@ styles:
}
| styles FONT numexpr ',' QUOTEDSTRING
{
+ dialog.style |= DS_SETFONT;
dialog.pointsize = $3;
unicode_from_ascii ((int *) NULL, &dialog.font, $5);
}
| styles FONT numexpr ',' QUOTEDSTRING cnumexpr cnumexpr
{
+ dialog.style |= DS_SETFONT;
dialog.pointsize = $3;
unicode_from_ascii ((int *) NULL, &dialog.font, $5);
if (dialog.ex == NULL)