~ctwm/ctwm/trunk

« back to all changes in this revision

Viewing changes to gram.y

  • Committer: Matthew Fuller
  • Date: 2016-06-11 14:56:23 UTC
  • mto: This revision was merged to the branch mainline in revision 495.
  • Revision ID: fullermd@over-yonder.net-20160611145623-gj5r1zbkcso4mjxr
bool-ify booleans in menus.h structs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
380
380
                | AUTO_LOWER            { Scr->AutoLowerDefault = TRUE; }
381
381
                | MENU string LP string COLON string RP {
382
382
                                        root = GetRoot($2, $4, $6); }
383
 
                  menu                  { root->real_menu = TRUE;}
 
383
                  menu                  { root->real_menu = true;}
384
384
                | MENU string           { root = GetRoot($2, NULL, NULL); }
385
 
                  menu                  { root->real_menu = TRUE; }
 
385
                  menu                  { root->real_menu = true; }
386
386
                | FUNCTION string       { root = GetRoot($2, NULL, NULL); }
387
387
                  function
388
388
                | ICONS                 { curplist = &Scr->IconNames; }
1018
1018
 
1019
1019
menu_entry      : string action         {
1020
1020
                        if ($2 == F_SEPARATOR) {
1021
 
                            if (lastmenuitem) lastmenuitem->separated = 1;
 
1021
                            if (lastmenuitem) lastmenuitem->separated = true;
1022
1022
                        }
1023
1023
                        else {
1024
1024
                            lastmenuitem = AddToMenu(root, $1, Action, pull, $2, NULL, NULL);
1028
1028
                }
1029
1029
                | string LP string COLON string RP action {
1030
1030
                        if ($7 == F_SEPARATOR) {
1031
 
                            if (lastmenuitem) lastmenuitem->separated = 1;
 
1031
                            if (lastmenuitem) lastmenuitem->separated = true;
1032
1032
                        }
1033
1033
                        else {
1034
1034
                            lastmenuitem = AddToMenu(root, $1, Action, pull, $7, $3, $5);