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

Diff for /src/usr.bin/mg/extend.c between version 1.7 and 1.8

version 1.7, 2001/05/23 16:13:59 version 1.8, 2001/05/23 20:19:44
Line 339 
Line 339 
 #ifndef NO_STARTUP  #ifndef NO_STARTUP
         if (inmacro) {          if (inmacro) {
                 for (s = 0; s < maclcur->l_used - 1; s++) {                  for (s = 0; s < maclcur->l_used - 1; s++) {
                         if (doscan(curmap, c = CHARMASK(maclcur->l_text[s]))                          if (doscan(curmap, c = CHARMASK(maclcur->l_text[s]), &curmap)
                             != NULL) {                              != NULL) {
                                 if (remap(curmap, c, NULL, (KEYMAP *)NULL)                                  if (remap(curmap, c, NULL, (KEYMAP *)NULL)
                                     != TRUE)                                      != TRUE)
                                         return FALSE;                                          return FALSE;
                         }                          }
                         curmap = ele->k_prefmap;  
                 }                  }
                 (VOID)doscan(curmap, c = maclcur->l_text[s]);                  (VOID)doscan(curmap, c = maclcur->l_text[s], NULL);
                 maclcur = maclcur->l_fp;                  maclcur = maclcur->l_fp;
         } else {          } else {
 #endif /* !NO_STARTUP */  #endif /* !NO_STARTUP */
Line 358 
Line 357 
                         ewprintf("%s", prompt);                          ewprintf("%s", prompt);
                         pep[-1] = ' ';                          pep[-1] = ' ';
                         pep = keyname(pep, c = getkey(FALSE));                          pep = keyname(pep, c = getkey(FALSE));
                         if (doscan(curmap, c) != NULL)                          if (doscan(curmap, c, &curmap) != NULL)
                                 break;                                  break;
                         *pep++ = '-';                          *pep++ = '-';
                         *pep = '\0';                          *pep = '\0';
                         curmap = ele->k_prefmap;  
                 }                  }
 #ifndef NO_STARTUP  #ifndef NO_STARTUP
         }          }
Line 409 
Line 407 
                 return FALSE;                  return FALSE;
         }          }
         while (--kcount) {          while (--kcount) {
                 if (doscan(curmap, c = *keys++) != NULL) {                  if (doscan(curmap, c = *keys++, &curmap) != NULL) {
                         if (remap(curmap, c, NULL, (KEYMAP *)NULL) != TRUE)                          if (remap(curmap, c, NULL, (KEYMAP *)NULL) != TRUE)
                                 return FALSE;                                  return FALSE;
                 }                  }
                 curmap = ele->k_prefmap;  
         }          }
         (VOID)doscan(curmap, c = *keys);          (VOID)doscan(curmap, c = *keys, NULL);
         return remap(curmap, c, funct, pref_map);          return remap(curmap, c, funct, pref_map);
 }  }
   

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8