Changeset View
Changeset View
Standalone View
Standalone View
contrib/diff/src/diff3.c
Show First 20 Lines • Show All 1,400 Lines • ▼ Show 20 Lines | default: | ||||
if (i == dontprint) continue; | if (i == dontprint) continue; | ||||
if (lowt <= hight) | if (lowt <= hight) | ||||
{ | { | ||||
line = 0; | line = 0; | ||||
do | do | ||||
{ | { | ||||
fprintf (outputfile, line_prefix); | fprintf (outputfile, "%s", line_prefix); | ||||
cp = D_RELNUM (ptr, realfile, line); | cp = D_RELNUM (ptr, realfile, line); | ||||
length = D_RELLEN (ptr, realfile, line); | length = D_RELLEN (ptr, realfile, line); | ||||
fwrite (cp, sizeof (char), length, outputfile); | fwrite (cp, sizeof (char), length, outputfile); | ||||
} | } | ||||
while (++line < hight - lowt + 1); | while (++line < hight - lowt + 1); | ||||
if (cp[length - 1] != '\n') | if (cp[length - 1] != '\n') | ||||
fprintf (outputfile, "\n\\ %s\n", | fprintf (outputfile, "\n\\ %s\n", | ||||
_("No newline at end of file")); | _("No newline at end of file")); | ||||
▲ Show 20 Lines • Show All 327 Lines • Show Last 20 Lines |