Lines Matching refs:line

86 	char *line;
96 line = stream_getln(rd, NULL);
97 while (line != NULL && strcmp(line, ".") != 0 &&
98 strcmp(line, ".+") != 0) {
100 * The server sends an empty line and then terminates
103 if (*line == '\0') {
107 line = stream_getln(rd, NULL);
110 error = diff_geteditcmd(&ec, line);
119 line = stream_getln(rd, &size);
120 if (line == NULL)
122 if (comode && line[0] == '.') {
123 line++;
126 diff_write(&ec, line, size);
134 line = stream_getln(orig, NULL);
135 if (line == NULL)
140 line = stream_getln(rd, NULL);
142 if (comode && line == NULL)
145 if (comode && strcmp(line, ".+") == 0 && !empty)
148 while ((line = stream_getln(orig, &size)) != NULL)
149 diff_write(&ec, line, size);
261 char *line;
276 line = stream_getln(rd, NULL);
278 while (line != NULL) {
279 error = diff_geteditcmd(&ec, line);
288 line = stream_getln(rd, NULL);
289 if (line == NULL)
329 line = stream_getln(rd, NULL);
332 while (line != NULL)
333 line = stream_getln(rd, NULL);
355 diff_geteditcmd(struct editcmd *ec, char *line)
359 if (line[0] == 'a')
361 else if (line[0] == 'd')
366 ec->where = strtol(line + 1, &end, 10);
369 line = end + 1;
371 ec->count = strtol(line, &end, 10);
387 /* Copy lines from the original version of the file up to line "to". */
392 char *line;
395 line = stream_getln(ec->orig, &size);
396 if (line == NULL)
399 diff_write(ec, line, size);
404 /* Ignore lines from the original version of the file up to line "to". */
409 char *line;
412 line = stream_getln(ec->orig, &size);
413 if (line == NULL)
420 /* Write a new line to the file, expanding RCS keywords appropriately. */
425 char *line, *newline;
428 line = buf;
429 ret = keyword_expand(ec->keyword, ec->di, line, size,