version 1.7, 2003/06/25 03:39:23 |
version 1.8, 2003/06/25 03:42:00 |
|
|
struct line { |
struct line { |
int serial; |
int serial; |
int value; |
int value; |
} *file[2], line; |
} *file[2]; |
|
|
int len[2]; |
int len[2]; |
struct line *sfile[2]; /* shortened by pruning common prefix and suffix */ |
struct line *sfile[2]; /* shortened by pruning common prefix and suffix */ |
|
|
int j, h; |
int j, h; |
|
|
fseek(fd, 0, 0); |
fseek(fd, 0, 0); |
p = talloc(3 * sizeof(line)); |
p = talloc(3 * sizeof(struct line)); |
for (j = 0; (h = readhash(fd));) { |
for (j = 0; (h = readhash(fd));) { |
p = ralloc(p, (++j + 3) * sizeof(line)); |
p = ralloc(p, (++j + 3) * sizeof(struct line)); |
p[j].value = h; |
p[j].value = h; |
} |
} |
len[i] = j; |
len[i] = j; |