version 1.11, 2009/10/27 23:59:37 |
version 1.12, 2012/03/04 04:05:15 |
|
|
int duplicate(struct range *, struct range *); |
int duplicate(struct range *, struct range *); |
int edit(struct diff *, int, int); |
int edit(struct diff *, int, int); |
char *getchange(FILE *); |
char *getchange(FILE *); |
char *getline(FILE *, size_t *); |
char *get_line(FILE *, size_t *); |
int number(char **); |
int number(char **); |
int readin(char *, struct diff **); |
int readin(char *, struct diff **); |
int skip(int, int, char *); |
int skip(int, int, char *); |
|
|
{ |
{ |
char *line; |
char *line; |
|
|
while ((line = getline(b, NULL))) { |
while ((line = get_line(b, NULL))) { |
if (isdigit((unsigned char)line[0])) |
if (isdigit((unsigned char)line[0])) |
return (line); |
return (line); |
} |
} |
|
|
} |
} |
|
|
char * |
char * |
getline(FILE *b, size_t *n) |
get_line(FILE *b, size_t *n) |
{ |
{ |
char *cp; |
char *cp; |
size_t len; |
size_t len; |
|
|
char *line; |
char *line; |
|
|
for (n = 0; cline[i] < from - 1; n += j) { |
for (n = 0; cline[i] < from - 1; n += j) { |
if ((line = getline(fp[i], &j)) == NULL) |
if ((line = get_line(fp[i], &j)) == NULL) |
trouble(); |
trouble(); |
if (pr != NULL) |
if (pr != NULL) |
printf("%s%s", pr, line); |
printf("%s%s", pr, line); |