diff options
author | Nick Clifton <nickc@redhat.com> | 2002-04-09 15:59:13 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2002-04-09 15:59:13 +0000 |
commit | 91eafb409b7bdf9462b9e5d0ba690c288814e979 (patch) | |
tree | 367c8e7c7a3eb6ac8da47d7c428aa0fbdfc6d721 /binutils/resrc.c | |
parent | 4d0b1625bf03f05543445bd7d1aa581174f91a2c (diff) | |
download | gdb-91eafb409b7bdf9462b9e5d0ba690c288814e979.zip gdb-91eafb409b7bdf9462b9e5d0ba690c288814e979.tar.gz 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/resrc.c')
-rw-r--r-- | binutils/resrc.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/binutils/resrc.c b/binutils/resrc.c index a576c80..a9b3ba8 100644 --- a/binutils/resrc.c +++ b/binutils/resrc.c @@ -131,7 +131,7 @@ static FILE *cpp_pipe; static char *cpp_temp_file; -/* Input stream is either a file or a pipe. */ +/* Input stream is either a file or a pipe. */ static enum {ISTREAM_PIPE, ISTREAM_FILE} istream_type; @@ -2052,10 +2052,11 @@ write_rc_dialog (e, dialog) { const struct dialog_control *control; - if (dialog->style != 0) - fprintf (e, "STYLE 0x%lx\n", dialog->style); + fprintf (e, "STYLE 0x%lx\n", dialog->style); + if (dialog->exstyle != 0) fprintf (e, "EXSTYLE 0x%lx\n", dialog->exstyle); + if ((dialog->class.named && dialog->class.u.n.length > 0) || dialog->class.u.id != 0) { @@ -2063,12 +2064,14 @@ write_rc_dialog (e, dialog) res_id_print (e, dialog->class, 1); fprintf (e, "\n"); } + if (dialog->caption != NULL) { fprintf (e, "CAPTION \""); unicode_print (e, dialog->caption, -1); fprintf (e, "\"\n"); } + if ((dialog->menu.named && dialog->menu.u.n.length > 0) || dialog->menu.u.id != 0) { @@ -2076,6 +2079,7 @@ write_rc_dialog (e, dialog) res_id_print (e, dialog->menu, 0); fprintf (e, "\n"); } + if (dialog->font != NULL) { fprintf (e, "FONT %d, \"", dialog->pointsize); |