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

Diff for /src/usr.bin/cvs/diff.c between version 1.80 and 1.81

version 1.80, 2006/02/26 18:35:08 version 1.81, 2006/03/23 13:09:09
Line 188 
Line 188 
 static void      sort(struct line *, int);  static void      sort(struct line *, int);
 static int       ignoreline(char *);  static int       ignoreline(char *);
 static int       asciifile(FILE *);  static int       asciifile(FILE *);
 static int       fetch(long *, int, int, FILE *, int, int);  static void      fetch(long *, int, int, FILE *, int, int);
 static int       newcand(int, int, int);  static int       newcand(int, int, int);
 static int       search(int *, int, int);  static int       search(int *, int, int);
 static int       skipline(FILE *);  static int       skipline(FILE *);
Line 1362 
Line 1362 
                 if (a <= b && c <= d && diff_format == D_NORMAL)                  if (a <= b && c <= d && diff_format == D_NORMAL)
                         diff_output("---\n");                          diff_output("---\n");
         }          }
         i = fetch(ixnew, c, d, f2, diff_format == D_NORMAL ? '>' : '\0', 0);          fetch(ixnew, c, d, f2, diff_format == D_NORMAL ? '>' : '\0', 0);
         if (inifdef) {          if (inifdef) {
                 diff_output("#endif /* %s */\n", ifdefname);                  diff_output("#endif /* %s */\n", ifdefname);
                 inifdef = 0;                  inifdef = 0;
         }          }
 }  }
   
 static int  static void
 fetch(long *f, int a, int b, FILE *lb, int ch, int oldfile)  fetch(long *f, int a, int b, FILE *lb, int ch, int oldfile)
 {  {
         int i, j, c, lastc, col, nc;          int i, j, c, lastc, col, nc;
Line 1386 
Line 1386 
                         diff_output("%c", getc(lb));                          diff_output("%c", getc(lb));
         }          }
         if (a > b)          if (a > b)
                 return (0);                  return;
         if (diff_format == D_IFDEF) {          if (diff_format == D_IFDEF) {
                 if (inifdef) {                  if (inifdef) {
                         diff_output("#else /* %s%s */\n",                          diff_output("#else /* %s%s */\n",
Line 1420 
Line 1420 
                                 else                                  else
                                         diff_output("\n\\ No newline at end of "                                          diff_output("\n\\ No newline at end of "
                                             "file");                                              "file");
                                 return (0);                                  return;
                         }                          }
                         if ((c == '\t') && (tflag == 1)) {                          if ((c == '\t') && (tflag == 1)) {
                                 do {                                  do {
Line 1432 
Line 1432 
                         }                          }
                 }                  }
         }          }
         return (0);  
 }  }
   
 /*  /*

Legend:
Removed from v.1.80  
changed lines
  Added in v.1.81