summaryrefslogtreecommitdiff
path: root/binutils/rcparse.y
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2020-07-09 13:45:01 +0100
committerNick Clifton <nickc@redhat.com>2020-07-09 13:45:01 +0100
commitd90171dec11cdde259564c1ca728043b7e82427e (patch)
treeb5522fea01f73a63eb4209a628548caf29a1aa75 /binutils/rcparse.y
parente3fdc001d359d6bcd033c1276c772e72d3f49078 (diff)
downloadbinutils-gdb-d90171dec11cdde259564c1ca728043b7e82427e.tar.gz
Update the Windows Resource compiler (windres) to support the OWNERDRAW and BITMAP menuitem flags.
binutils* rclex.c: Add OWNERDRAW keyword. * rcparse.y: Add OWNERDRAW token. (menuitem_flag) Add BITMAP and OWNERDRAW entries. * resrc.c (write_rc_menuitems): Add support for OWNERDRAW and BITMAP flags. * windres.c (extended_menuitems): Likewise. * testsuite/binutils-all/windres/menuitem_flags.rc: New test.
Diffstat (limited to 'binutils/rcparse.y')
-rw-r--r--binutils/rcparse.y10
1 files changed, 9 insertions, 1 deletions
diff --git a/binutils/rcparse.y b/binutils/rcparse.y
index 78ce917e233..c0ed338ed0a 100644
--- a/binutils/rcparse.y
+++ b/binutils/rcparse.y
@@ -124,7 +124,7 @@ static const rc_res_id res_null_text = { 1, {{0, &null_unichar}}};
%token ICON
%token ANICURSOR ANIICON DLGINCLUDE DLGINIT FONTDIR HTML MANIFEST PLUGPLAY VXD TOOLBAR BUTTON
%token LANGUAGE CHARACTERISTICS VERSIONK
-%token MENU MENUEX MENUITEM SEPARATOR POPUP CHECKED GRAYED HELP INACTIVE
+%token MENU MENUEX MENUITEM SEPARATOR POPUP CHECKED GRAYED HELP INACTIVE OWNERDRAW
%token MENUBARBREAK MENUBREAK
%token MESSAGETABLE
%token RCDATA
@@ -1088,6 +1088,14 @@ menuitem_flag:
{
$$ = MENUITEM_MENUBREAK;
}
+ | BITMAP
+ {
+ $$ = MENUITEM_BITMAP;
+ }
+ | OWNERDRAW
+ {
+ $$ = MENUITEM_OWNERDRAW;
+ }
;
/* Menuex resources. */