[BACK]Return to mode-key.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tmux

Diff for /src/usr.bin/tmux/Attic/mode-key.c between version 1.35 and 1.36

version 1.35, 2010/03/22 19:10:42 version 1.36, 2011/01/01 03:39:21
Line 40 
Line 40 
  */   */
   
 /* Edit keys command strings. */  /* Edit keys command strings. */
 struct mode_key_cmdstr mode_key_cmdstr_edit[] = {  const struct mode_key_cmdstr mode_key_cmdstr_edit[] = {
         { MODEKEYEDIT_BACKSPACE, "backspace" },          { MODEKEYEDIT_BACKSPACE, "backspace" },
         { MODEKEYEDIT_CANCEL, "cancel" },          { MODEKEYEDIT_CANCEL, "cancel" },
         { MODEKEYEDIT_COMPLETE, "complete" },          { MODEKEYEDIT_COMPLETE, "complete" },
Line 63 
Line 63 
 };  };
   
 /* Choice keys command strings. */  /* Choice keys command strings. */
 struct mode_key_cmdstr mode_key_cmdstr_choice[] = {  const struct mode_key_cmdstr mode_key_cmdstr_choice[] = {
         { MODEKEYCHOICE_CANCEL, "cancel" },          { MODEKEYCHOICE_CANCEL, "cancel" },
         { MODEKEYCHOICE_CHOOSE, "choose" },          { MODEKEYCHOICE_CHOOSE, "choose" },
         { MODEKEYCHOICE_DOWN, "down" },          { MODEKEYCHOICE_DOWN, "down" },
Line 77 
Line 77 
 };  };
   
 /* Copy keys command strings. */  /* Copy keys command strings. */
 struct mode_key_cmdstr mode_key_cmdstr_copy[] = {  const struct mode_key_cmdstr mode_key_cmdstr_copy[] = {
         { MODEKEYCOPY_BACKTOINDENTATION, "back-to-indentation" },          { MODEKEYCOPY_BACKTOINDENTATION, "back-to-indentation" },
         { MODEKEYCOPY_BOTTOMLINE, "bottom-line" },          { MODEKEYCOPY_BOTTOMLINE, "bottom-line" },
         { MODEKEYCOPY_CANCEL, "cancel" },          { MODEKEYCOPY_CANCEL, "cancel" },
Line 384 
Line 384 
 }  }
   
 const char *  const char *
 mode_key_tostring(struct mode_key_cmdstr *cmdstr, enum mode_key_cmd cmd)  mode_key_tostring(const struct mode_key_cmdstr *cmdstr, enum mode_key_cmd cmd)
 {  {
         for (; cmdstr->name != NULL; cmdstr++) {          for (; cmdstr->name != NULL; cmdstr++) {
                 if (cmdstr->cmd == cmd)                  if (cmdstr->cmd == cmd)
Line 394 
Line 394 
 }  }
   
 enum mode_key_cmd  enum mode_key_cmd
 mode_key_fromstring(struct mode_key_cmdstr *cmdstr, const char *name)  mode_key_fromstring(const struct mode_key_cmdstr *cmdstr, const char *name)
 {  {
         for (; cmdstr->name != NULL; cmdstr++) {          for (; cmdstr->name != NULL; cmdstr++) {
                 if (strcasecmp(cmdstr->name, name) == 0)                  if (strcasecmp(cmdstr->name, name) == 0)

Legend:
Removed from v.1.35  
changed lines
  Added in v.1.36