Commit Graph

18 Commits

Author SHA1 Message Date
Peter Wemm
edf112ec42 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
Garance A Drosehn
080d74478e 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
Andrey A. Chernov
c4aa5b8efe Fix essential typo in usage
Submitted by:	Cyrille Lefevre <cyrille.lefevre@laposte.net>
2002-05-19 10:40:15 +00:00
Jacques Vidrine
3e838acb26 *sigh* Misfire. Backout previous commit, as it was meant for
another branch.
2002-01-29 17:40:45 +00:00
Jacques Vidrine
5dd418263a 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
Jacques Vidrine
479608bf54 = 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
Brian Feldman
0fbf304b54 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
Brian Feldman
0c09388123 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
David E. O'Brien
20ee132cae * 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
Andrey A. Chernov
53ba4fe663 Some FreeBSD files to add... 1997-10-30 19:35:17 +00:00
Andrey A. Chernov
b5935e1422 Temp remove config.h, was imported to FSF branch 1997-10-30 19:34:01 +00:00
Andrey A. Chernov
006b6b8074 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
Andrey A. Chernov
964382dc00 Add file needed for configure 1997-10-30 19:13:48 +00:00
Andrey A. Chernov
a85388f609 -f -> -F for pr 1997-10-30 19:07:39 +00:00
Andrey A. Chernov
bb3e4497dd Localize diff 1997-10-29 17:17:32 +00:00
Andrey A. Chernov
587c681815 Include <gnuregex.h> for FreeBSD 1997-10-29 16:27:56 +00:00
Andrey A. Chernov
f5e00e241f Initial import 1997-10-29 16:14:35 +00:00
Andrey A. Chernov
4be67e9c5a 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