[BACK]Return to cmd-parse.y CVS log [TXT][DIR] Up to [local] / src / usr.bin / tmux

Diff for /src/usr.bin/tmux/cmd-parse.y between version 1.42 and 1.43

version 1.42, 2021/08/22 13:00:28 version 1.43, 2021/08/23 11:04:21
Line 426 
Line 426 
   
                         arg = xcalloc(1, sizeof *arg);                          arg = xcalloc(1, sizeof *arg);
                         arg->type = CMD_PARSE_STRING;                          arg->type = CMD_PARSE_STRING;
                         arg->string = xstrdup($2);                          arg->string = $2;
                         TAILQ_INSERT_HEAD(&$$->arguments, arg, entry);                          TAILQ_INSERT_HEAD(&$$->arguments, arg, entry);
                 }                  }
                 | optional_assignment TOKEN arguments                  | optional_assignment TOKEN arguments
Line 443 
Line 443 
   
                         arg = xcalloc(1, sizeof *arg);                          arg = xcalloc(1, sizeof *arg);
                         arg->type = CMD_PARSE_STRING;                          arg->type = CMD_PARSE_STRING;
                         arg->string = xstrdup($2);                          arg->string = $2;
                         TAILQ_INSERT_HEAD(&$$->arguments, arg, entry);                          TAILQ_INSERT_HEAD(&$$->arguments, arg, entry);
                 }                  }
   
Line 543 
Line 543 
                 {                  {
                         $$ = xcalloc(1, sizeof *$$);                          $$ = xcalloc(1, sizeof *$$);
                         $$->type = CMD_PARSE_STRING;                          $$->type = CMD_PARSE_STRING;
                         $$->string = xstrdup($1);                          $$->string = $1;
                 }                  }
                 | EQUALS                  | EQUALS
                 {                  {
                         $$ = xcalloc(1, sizeof *$$);                          $$ = xcalloc(1, sizeof *$$);
                         $$->type = CMD_PARSE_STRING;                          $$->type = CMD_PARSE_STRING;
                         $$->string = xstrdup($1);                          $$->string = $1;
                 }                  }
                 | '{' argument_statements                  | '{' argument_statements
                 {                  {
Line 817 
Line 817 
                                 goto out;                                  goto out;
                         values[count].type = ARGS_COMMANDS;                          values[count].type = ARGS_COMMANDS;
                         values[count].cmdlist = pr->cmdlist;                          values[count].cmdlist = pr->cmdlist;
                         values[count].cmdlist->references++;  
                         break;                          break;
                 }                  }
                 count++;                  count++;

Legend:
Removed from v.1.42  
changed lines
  Added in v.1.43