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

Diff for /src/usr.bin/cvs/diff3.c between version 1.14 and 1.15

version 1.14, 2006/02/26 10:07:50 version 1.15, 2006/03/05 16:34:31
Line 320 
Line 320 
                 if (op == 'a') {                  if (op == 'a') {
                         if ((start > dlines->l_nblines) ||                          if ((start > dlines->l_nblines) ||
                             (start < 0) || (*ep != 'a'))                              (start < 0) || (*ep != 'a'))
                                 return (-1);                                  fatal("ed_patch_lines");
                 } else if (op == 'c') {                  } else if (op == 'c') {
                         if ((start > dlines->l_nblines) ||                          if ((start > dlines->l_nblines) ||
                             (start < 0) || ((*ep != ',') && (*ep != 'c')))                              (start < 0) || ((*ep != ',') && (*ep != 'c')))
                                 return (-1);                                  fatal("ed_patch_lines");
   
                         if (*ep == ',') {                          if (*ep == ',') {
                                 ep++;                                  ep++;
                                 end = (int)strtol(ep, &ep, 10);                                  end = (int)strtol(ep, &ep, 10);
                                 if ((end < 0) || (*ep != 'c'))                                  if ((end < 0) || (*ep != 'c'))
                                         return (-1);                                          fatal("ed_patch_lines");
                         } else {                          } else {
                                 end = start;                                  end = start;
                         }                          }
Line 353 
Line 353 
                 }                  }
   
                 if (dlp == NULL)                  if (dlp == NULL)
                         return (-1);                          fatal("ed_patch_lines");
   
   
                 if (op == 'c') {                  if (op == 'c') {
Line 370 
Line 370 
                                 ndlp = lp;                                  ndlp = lp;
                                 lp = TAILQ_NEXT(lp, l_list);                                  lp = TAILQ_NEXT(lp, l_list);
                                 if (lp == NULL)                                  if (lp == NULL)
                                         return (-1);                                          fatal("ed_patch_lines");
   
                                 if (!strcmp(lp->l_line, "."))                                  if (!strcmp(lp->l_line, "."))
                                         break;                                          break;

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15