[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.34 and 1.35

version 1.34, 2005/05/20 20:00:53 version 1.35, 2005/05/22 17:48:54
Line 128 
Line 128 
   
 #include <sys/param.h>  #include <sys/param.h>
 #include <sys/stat.h>  #include <sys/stat.h>
 #include <sys/wait.h>  
   
 #include <err.h>  #include <err.h>
 #include <errno.h>  #include <errno.h>
Line 207 
Line 206 
 };  };
   
   
 struct excludes {  int  cvs_diff_options   (char *, int, char **, int *);
         char *pattern;  int  cvs_diffreg        (const char *, const char *);
         struct excludes *next;  int  cvs_diff_file      (CVSFILE *, void *);
 };  int  cvs_diff_sendflags (struct cvsroot *);
   int  cvs_diff_cleanup   (void);
   
   
 char    *splice(char *, char *);  
 int  cvs_diff_options(char *, int, char **, int *);  
 int  cvs_diffreg(const char *, const char *);  
 int  cvs_diff_file(struct cvs_file *, void *);  
 int  cvs_diff_sendflags(struct cvsroot *);  
 int  cvs_diff_cleanup(void);  
   
 static void output(const char *, FILE *, const char *, FILE *);  static void output(const char *, FILE *, const char *, FILE *);
 static void check(FILE *, FILE *);  static void check(FILE *, FILE *);
 static void range(int, int, char *);  static void range(int, int, char *);
Line 769 
Line 761 
                 if (memcmp(buf1, buf2, i) != 0)                  if (memcmp(buf1, buf2, i) != 0)
                         return (1);                          return (1);
         }          }
 }  
   
   
 char *  
 splice(char *dir, char *filename)  
 {  
         char *tail, *buf;  
   
         if ((tail = strrchr(filename, '/')) == NULL)  
                 tail = filename;  
         else  
                 tail++;  
         asprintf(&buf, "%s/%s", dir, tail);  
         return (buf);  
 }  }
   
 static int  static int

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