[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.13 and 1.14

version 1.13, 2019/06/02 07:10:15 version 1.14, 2019/06/05 20:00:53
Line 76 
Line 76 
 static void      cmd_parse_free_command(struct cmd_parse_command *);  static void      cmd_parse_free_command(struct cmd_parse_command *);
 static struct cmd_parse_commands *cmd_parse_new_commands(void);  static struct cmd_parse_commands *cmd_parse_new_commands(void);
 static void      cmd_parse_free_commands(struct cmd_parse_commands *);  static void      cmd_parse_free_commands(struct cmd_parse_commands *);
   static void      cmd_parse_print_commands(struct cmd_parse_input *, u_int,
                        struct cmd_list *);
   
 %}  %}
   
Line 498 
Line 500 
 }  }
   
 static void  static void
   cmd_parse_print_commands(struct cmd_parse_input *pi, u_int line,
       struct cmd_list *cmdlist)
   {
           char    *s;
   
           if (pi->item != NULL && (pi->flags & CMD_PARSE_VERBOSE)) {
                   s = cmd_list_print(cmdlist, 0);
                   cmdq_print(pi->item, "%u: %s", line, s);
                   free(s);
           }
   }
   
   static void
 cmd_parse_free_command(struct cmd_parse_command *cmd)  cmd_parse_free_command(struct cmd_parse_command *cmd)
 {  {
         free(cmd->name);          free(cmd->name);
Line 653 
Line 668 
   
                 if (cmdlist == NULL || cmd->line != line) {                  if (cmdlist == NULL || cmd->line != line) {
                         if (cmdlist != NULL) {                          if (cmdlist != NULL) {
                                   cmd_parse_print_commands(pi, line, cmdlist);
                                 cmd_list_move(result, cmdlist);                                  cmd_list_move(result, cmdlist);
                                 cmd_list_free(cmdlist);                                  cmd_list_free(cmdlist);
                         }                          }
Line 672 
Line 688 
                 cmd_list_append(cmdlist, add);                  cmd_list_append(cmdlist, add);
         }          }
         if (cmdlist != NULL) {          if (cmdlist != NULL) {
                   cmd_parse_print_commands(pi, line, cmdlist);
                 cmd_list_move(result, cmdlist);                  cmd_list_move(result, cmdlist);
                 cmd_list_free(cmdlist);                  cmd_list_free(cmdlist);
         }          }

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14