[BACK]Return to help.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / mg

Diff for /src/usr.bin/mg/help.c between version 1.33 and 1.34

version 1.33, 2012/03/14 13:56:35 version 1.34, 2012/04/12 04:47:59
Line 11 
Line 11 
   
 #include "kbd.h"  #include "kbd.h"
 #include "key.h"  #include "key.h"
 #ifndef NO_MACRO  
 #include "macro.h"  #include "macro.h"
 #endif /* !NO_MACRO */  
   
 static int      showall(struct buffer *, KEYMAP *, char *);  static int      showall(struct buffer *, KEYMAP *, char *);
 static int      findbind(KEYMAP *, PF, char *, size_t);  static int      findbind(KEYMAP *, PF, char *, size_t);
Line 32 
Line 30 
         char    *pep;          char    *pep;
         char     dprompt[80];          char     dprompt[80];
   
 #ifndef NO_MACRO  
         if (inmacro)          if (inmacro)
                 return (TRUE);  /* ignore inside keyboard macro */                  return (TRUE);  /* ignore inside keyboard macro */
 #endif /* !NO_MACRO */  
         num = strlcpy(dprompt, "Describe key briefly: ", sizeof(dprompt));          num = strlcpy(dprompt, "Describe key briefly: ", sizeof(dprompt));
         if (num >= sizeof(dprompt))          if (num >= sizeof(dprompt))
                 num = sizeof(dprompt) - 1;                  num = sizeof(dprompt) - 1;
Line 165 
Line 162 
         do {          do {
                 funct = doscan(kp, getkey(FALSE), NULL);                  funct = doscan(kp, getkey(FALSE), NULL);
         } while (funct == NULL || funct == help_help);          } while (funct == NULL || funct == help_help);
 #ifndef NO_MACRO  
         if (macrodef && macrocount < MAXMACRO)          if (macrodef && macrocount < MAXMACRO)
                 macro[macrocount - 1].m_funct = funct;                  macro[macrocount - 1].m_funct = funct;
 #endif /* !NO_MACRO */  
         return ((*funct)(f, n));          return ((*funct)(f, n));
 }  }
   

Legend:
Removed from v.1.33  
changed lines
  Added in v.1.34