[BACK]Return to cmd-list-commands.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tmux

Diff for /src/usr.bin/tmux/Attic/cmd-list-commands.c between version 1.9 and 1.10

version 1.9, 2013/03/22 10:31:22 version 1.10, 2013/03/24 09:54:10
Line 24 
Line 24 
  * List all commands with usages.   * List all commands with usages.
  */   */
   
 enum cmd_retval  cmd_list_commands_exec(struct cmd *, struct cmd_ctx *);  enum cmd_retval  cmd_list_commands_exec(struct cmd *, struct cmd_q *);
   
 const struct cmd_entry cmd_list_commands_entry = {  const struct cmd_entry cmd_list_commands_entry = {
         "list-commands", "lscm",          "list-commands", "lscm",
Line 37 
Line 37 
 };  };
   
 enum cmd_retval  enum cmd_retval
 cmd_list_commands_exec(unused struct cmd *self, struct cmd_ctx *ctx)  cmd_list_commands_exec(unused struct cmd *self, struct cmd_q *cmdq)
 {  {
         const struct cmd_entry        **entryp;          const struct cmd_entry        **entryp;
   
         for (entryp = cmd_table; *entryp != NULL; entryp++) {          for (entryp = cmd_table; *entryp != NULL; entryp++) {
                 if ((*entryp)->alias != NULL) {                  if ((*entryp)->alias != NULL) {
                         ctx->print(ctx, "%s (%s) %s", (*entryp)->name,                          cmdq_print(cmdq, "%s (%s) %s", (*entryp)->name,
                             (*entryp)->alias, (*entryp)->usage);                              (*entryp)->alias, (*entryp)->usage);
                 } else {                  } else {
                         ctx->print(ctx, "%s %s", (*entryp)->name,                          cmdq_print(cmdq, "%s %s", (*entryp)->name,
                             (*entryp)->usage);                              (*entryp)->usage);
                 }                  }
         }          }

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10