Commit Graph

20 Commits

Author SHA1 Message Date
harti
378fe256e4 Terminate the execl() argument list with (char *)NULL instead of 0.
The later is wrong and may fail on sizeof(char *) != sizeof(int)
machines. The patch has already been sent to and accepted by the
diffutils author, but the file is already off the vendor branch, so
correct it here in the meanwhile too.
2003-11-03 12:41:27 +00:00
peter
62808c2618 Add #include "diff.h" in order to get the prototype for xmalloc().
The corresponding warning has been ignored for ages:
  prepend_args.c:75: warning: initialization makes pointer from integer
  without a cast
This is fatal on ia64.  You cannot convert an implicit int return from
an undeclared function to a pointer as you've lost the upper 32 bits.
On ia64, the warning is "pointer from different sized integer".

(This file is not vendor branched)
2003-01-08 06:40:35 +00:00
gad
7a97c3ad50 Add back the "\ No newline at end of file" marker that is printed when
comparing two files, where only one file is missing the final newline
character.  This undoes revisions 1.3 and 1.4, returning 'diff' to how
it behaved before July 2000.  We can do this now because our version of
'patch' was modified (just before 4.6-release) to understand what to do
with that line.  This marker is the same one generated by 'diff' under
netbsd, openbsd, darwin, and linux (and any OS with "gnu-diff" installed).

Reviewed by:	imp freebsd-standards (back in april)
Approved by:	re (bmah)
MFC after:	1 week
2002-11-25 22:59:52 +00:00
ache
6992c205d1 Fix essential typo in usage
Submitted by:	Cyrille Lefevre <cyrille.lefevre@laposte.net>
2002-05-19 10:40:15 +00:00
nectar
0d545984ad *sigh* Misfire. Backout previous commit, as it was meant for
another branch.
2002-01-29 17:40:45 +00:00
nectar
31c2c5362e FreeBSD 4.4 doesn't have __FBSDID. Do it the old-fashioned way instead.
Reported by:	Steven Farmer <steve@geoenergycorp.com>
Pointy hat to:	nectar
2002-01-29 17:11:28 +00:00
nectar
9fdf88975b = Fix temporary file handling.
Obtained from:	Immunix Linux

= Garbage collect now-unused temporary file handling functions.
= Add __FBSDID.
2002-01-27 16:43:35 +00:00
green
85ac235bec Also coerce diff(1) into working the other way (from no-\n to \n).
Taking out the evil warning fixed it one way, but didn't make the
other way any better, so replace it with printing a single \n.
2000-09-15 11:35:16 +00:00
green
78de2a5609 Get rid of the stupid bug where diff sticks trash in your generated
diff output; there being no trailing newline caused it to bitch and
moan and ruin diffs.  That's dumb, if I may say so myself.

Yes, this file is coming off the vendor branch.  It hasn't been
updated in 6 years.

Approved by:	peter
2000-07-24 07:40:02 +00:00
obrien
46689ca7f0 * Support the environtmental var "DIFF_OPTIONS". Which can hold a set of
default options for diff.  These options are interpreted first and can be
overwritten by explicit command line parameters.
* Add the "-o" option to specify old-traditional output style.
* Add utility functions for env vars obtained from GNU Grep 2.3h.
1999-11-26 02:51:44 +00:00
ache
11e7abd36c Some FreeBSD files to add... 1997-10-30 19:35:17 +00:00
ache
764fe6ddf3 Temp remove config.h, was imported to FSF branch 1997-10-30 19:34:01 +00:00
ache
3bc106256b This commit was generated by cvs2svn to compensate for changes in r30858,
which included commits to RCS files with non-trunk default branches.
1997-10-30 19:13:48 +00:00
ache
f75ef5d3d4 Add file needed for configure 1997-10-30 19:13:48 +00:00
ache
9ddc05e9fe -f -> -F for pr 1997-10-30 19:07:39 +00:00
ache
11845f8156 Localize diff 1997-10-29 17:17:32 +00:00
ache
692df03d54 Include <gnuregex.h> for FreeBSD 1997-10-29 16:27:56 +00:00
ache
cee6432e98 Initial import 1997-10-29 16:14:35 +00:00
ache
8dcc9192ee This commit was generated by cvs2svn to compensate for changes in r30839,
which included commits to RCS files with non-trunk default branches.
1997-10-29 16:14:35 +00:00
ache
2930d5cccf Initial import 1997-10-29 16:14:35 +00:00