version 1.65, 2007/02/22 01:44:36 |
version 1.66, 2007/02/23 08:03:19 |
|
|
static void equiv(struct line *, int, struct line *, int, int *); |
static void equiv(struct line *, int, struct line *, int, int *); |
static void unravel(int); |
static void unravel(int); |
static void unsort(struct line *, int, int *); |
static void unsort(struct line *, int, int *); |
static void change(char *, FILE *, char *, FILE *, int, int, int, int, int); |
static void change(char *, FILE *, char *, FILE *, int, int, int, int, int *); |
static void sort(struct line *, int); |
static void sort(struct line *, int); |
static void print_header(const char *, const char *); |
static void print_header(const char *, const char *); |
static int ignoreline(char *); |
static int ignoreline(char *); |
|
|
i1++; |
i1++; |
j1 = J[i1 + 1] - 1; |
j1 = J[i1 + 1] - 1; |
J[i1] = j1; |
J[i1] = j1; |
change(file1, f1, file2, f2, i0, i1, j0, j1, flags); |
change(file1, f1, file2, f2, i0, i1, j0, j1, &flags); |
} |
} |
} else { |
} else { |
for (i0 = m; i0 >= 1; i0 = i1 - 1) { |
for (i0 = m; i0 >= 1; i0 = i1 - 1) { |
|
|
i1--; |
i1--; |
j1 = J[i1 - 1] + 1; |
j1 = J[i1 - 1] + 1; |
J[i1] = j1; |
J[i1] = j1; |
change(file1, f1, file2, f2, i1, i0, j1, j0, flags); |
change(file1, f1, file2, f2, i1, i0, j1, j0, &flags); |
} |
} |
} |
} |
if (m == 0) |
if (m == 0) |
change(file1, f1, file2, f2, 1, 0, 1, len[1], flags); |
change(file1, f1, file2, f2, 1, 0, 1, len[1], &flags); |
if (format == D_IFDEF) { |
if (format == D_IFDEF) { |
for (;;) { |
for (;;) { |
#define c i0 |
#define c i0 |
|
|
*/ |
*/ |
static void |
static void |
change(char *file1, FILE *f1, char *file2, FILE *f2, int a, int b, int c, int d, |
change(char *file1, FILE *f1, char *file2, FILE *f2, int a, int b, int c, int d, |
int flags) |
int *pflags) |
{ |
{ |
static size_t max_context = 64; |
static size_t max_context = 64; |
int i; |
int i; |
|
|
return; |
return; |
} |
} |
proceed: |
proceed: |
if (flags & D_HEADER) |
if (*pflags & D_HEADER) { |
printf("%s %s %s\n", diffargs, file1, file2); |
printf("%s %s %s\n", diffargs, file1, file2); |
|
*pflags &= ~D_HEADER; |
|
} |
if (format == D_CONTEXT || format == D_UNIFIED) { |
if (format == D_CONTEXT || format == D_UNIFIED) { |
/* |
/* |
* Allocate change records as needed. |
* Allocate change records as needed. |