Home | History | Annotate | Download | only in sdiff

Lines Matching defs:file2

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
259 * or file2 are not regular files. This allows sdiff and diff
266 /* file1 and file2 are the same, so copy to same temp file. */
270 /* Copy file1 and file2 into separate temp files. */
318 if ((file2 = fopen(filename2, "r")) == NULL)
325 while (parsecmd(diffpipe, file1, file2) != EOF)
352 s2 = xfgets(file2);
359 fclose(file2);
564 * to change or delete) or file2 (lines to add or change).
568 parsecmd(FILE *diffpipe, FILE *file1, FILE *file2)
621 errx(2, "file2 start is %s: %s", errstr, line);
628 errx(2, "invalid line range in file2: %c: %s", c, line);
634 errx(2, "file2 end is %s: %s", errstr, line);
636 errx(2, "invalid line range in file2: %s", line);
655 errx(2, "delete cannot have a file2 range: %s",
658 errx(2, "file2 line range too high: %s", line);
663 * Continue reading file1 and file2 until we reach line numbers
672 if (!(s2 = xfgets(file2)))
673 errx(2, "file2 shorter than expected");
705 if (!(s = xfgets(file2)))
706 errx(2, "file2 shorter than expected");
720 printa(file2, file2end);
725 printc(file1, file1end, file2, file2end);
925 printc(FILE *file1, size_t file1end, FILE *file2, size_t file2end)
956 if (!(add = xfgets(file2)))
975 if (!(add = xfgets(file2)))
1035 "usage: %s [-abdilstW] [-I regexp] [-o outfile] [-w width] file1 file2\n",