Commit Graph

21 Commits

Author SHA1 Message Date
ache
a707e1673f Remove files no longer needed
Switch back to regex.h
2004-02-16 22:56:36 +00:00
harti
68e08c90d7 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
239d74a528 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
f5ea035aa9 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
82c2c3ba88 Fix essential typo in usage
Submitted by:	Cyrille Lefevre <cyrille.lefevre@laposte.net>
2002-05-19 10:40:15 +00:00
nectar
adbfb4df7e *sigh* Misfire. Backout previous commit, as it was meant for
another branch.
2002-01-29 17:40:45 +00:00
nectar
090fa4bf0d 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
345181707f = 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
e4b51d7bf4 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
d961143c81 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
2429ad02c3 * 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
ce9ab1dafd Some FreeBSD files to add... 1997-10-30 19:35:17 +00:00
ache
75d2091880 Temp remove config.h, was imported to FSF branch 1997-10-30 19:34:01 +00:00
ache
33331b21cb 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
6f2e9dff0f -f -> -F for pr 1997-10-30 19:07:39 +00:00
ache
719a33498f Localize diff 1997-10-29 17:17:32 +00:00
ache
85a9ab890e 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
2f0f04f57e 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
92ecca05ad Initial import 1997-10-29 16:14:35 +00:00