Lines Matching defs:file1
65 size_t file1ln, file2ln; /* line number of file1 and file2 */
157 FILE *diffpipe, *file1, *file2;
171 * file1, and file2 won't have arguments so doubling them will
258 * Create temporary files for diff and sdiff to share if file1
266 /* file1 and file2 are the same, so copy to same temp file. */
270 /* Copy file1 and file2 into separate temp files. */
316 if ((file1 = fopen(filename1, "r")) == NULL)
325 while (parsecmd(diffpipe, file1, file2) != EOF)
347 while ((s1 = xfgets(file1)))
351 s1 = xfgets(file1);
358 fclose(file1);
563 * Parse ed commands from diffpipe and print lines from file1 (lines
568 parsecmd(FILE *diffpipe, FILE *file1, FILE *file2)
588 errx(2, "file1 start is %s: %s", errstr, line);
590 /* A range is specified for file1. */
601 errx(2, "file1 end is %s: %s", errstr, line);
603 errx(2, "invalid line range in file1: %s", line);
643 errx(2, "append cannot have a file1 range: %s",
646 errx(2, "file1 line range too high: %s", line);
663 * Continue reading file1 and file2 until we reach line numbers
670 if (!(s1 = xfgets(file1)))
671 errx(2, "file1 shorter than expected");
696 if (!(s = xfgets(file1)))
697 errx(2, "file1 shorter than expected");
725 printc(file1, file1end, file2, file2end);
730 printd(file1, file1end);
925 printc(FILE *file1, size_t file1end, FILE *file2, size_t file2end)
939 if (!(line1 = xfgets(file1)))
940 errx(2, "error reading file1 in delete in change");
998 printd(FILE *file1, size_t file1end)
1005 if (!(line1 = xfgets(file1)))
1006 errx(2, "file1 ended early in delete");
1035 "usage: %s [-abdilstW] [-I regexp] [-o outfile] [-w width] file1 file2\n",