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

Diff for /src/usr.bin/mg/region.c between version 1.4 and 1.5

version 1.4, 2001/01/29 01:58:09 version 1.5, 2001/05/23 22:20:36
Line 272 
Line 272 
   
         /* for each line, go to beginning and insert the prefix string */          /* for each line, go to beginning and insert the prefix string */
         while (nline--) {          while (nline--) {
                 (VOID)gotobol(FFRAND, 1);                  (void)gotobol(FFRAND, 1);
                 for (prefix = prefix_string; *prefix; prefix++)                  for (prefix = prefix_string; *prefix; prefix++)
                         (VOID)linsert(1, *prefix);                          (void)linsert(1, *prefix);
                 (VOID)forwline(FFRAND, 1);                  (void)forwline(FFRAND, 1);
         }          }
         (VOID)gotobol(FFRAND, 1);          (void)gotobol(FFRAND, 1);
         return TRUE;          return TRUE;
 }  }
   
Line 298 
Line 298 
                 s = ereply("Prefix string (default %s): ",                  s = ereply("Prefix string (default %s): ",
                            buf, sizeof buf, prefix_string);                             buf, sizeof buf, prefix_string);
         if (s == TRUE)          if (s == TRUE)
                 (VOID)strcpy(prefix_string, buf);                  (void)strcpy(prefix_string, buf);
         /* CR -- use old one */          /* CR -- use old one */
         if ((s == FALSE) && (prefix_string[0] != '\0'))          if ((s == FALSE) && (prefix_string[0] != '\0'))
                 s = TRUE;                  s = TRUE;

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5