• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/usr.bin/sdiff/

Lines Matching defs:file2

73 static size_t file1ln, file2ln;	/* line number of file1 and file2 */
120 "usage: sdiff [-abdilstW] [-I regexp] [-o outfile] [-w width] file1 file2\n",
122 "-o OUTFILE, --output=OUTFILE: interactively merge file1 and file2 into outfile.",
127 "\t-a, --text: treat file1 and file2 as text files.",
211 FILE *diffpipe=NULL, *file1, *file2;
229 * file1, and file2 won't have arguments so doubling them will
336 * or file2 are not regular files. This allows sdiff and diff
343 /* file1 and file2 are the same, so copy to same temp file. */
347 /* Copy file1 and file2 into separate temp files. */
397 if ((file2 = fopen(filename2, "r")) == NULL)
399 if (!istextfile(file1) || !istextfile(file2)) {
402 fclose(file2);
419 while (parsecmd(diffpipe, file1, file2) != EOF)
446 s2 = xfgets(file2);
453 fclose(file2);
689 * to change or delete) or file2 (lines to add or change).
693 parsecmd(FILE *diffpipe, FILE *file1, FILE *file2)
744 errx(2, "file2 start is %s: %s", errstr, line);
751 errx(2, "invalid line range in file2: %c: %s", c, line);
757 errx(2, "file2 end is %s: %s", errstr, line);
759 errx(2, "invalid line range in file2: %s", line);
778 errx(2, "delete cannot have a file2 range: %s",
781 errx(2, "file2 line range too high: %s", line);
786 * Continue reading file1 and file2 until we reach line numbers
795 if (!(s2 = xfgets(file2)))
796 errx(2, "file2 shorter than expected");
828 if (!(s = xfgets(file2)))
829 errx(2, "file2 shorter than expected");
843 printa(file2, file2end);
847 printc(file1, file1end, file2, file2end);
1047 printc(FILE *file1, size_t file1end, FILE *file2, size_t file2end)
1078 if (!(add = xfgets(file2)))
1097 if (!(add = xfgets(file2)))
1157 " file2\n");