version 1.34, 2005/05/20 20:00:53 |
version 1.35, 2005/05/22 17:48:54 |
|
|
|
|
#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> |
|
|
}; |
}; |
|
|
|
|
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 *); |
|
|
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 |