xref: /netbsd-src/external/gpl2/xcvs/dist/diff/ChangeLog (revision a7c918477dd5f12c1da816ba05caf44eab2d06d6)
1*a7c91847Schristos2004-05-31  Conrad T. Pino  <Conrad@Pino.com>
2*a7c91847Schristos
3*a7c91847Schristos	* libdiff.dsp: Add "../lib/timespec.h" and "../windows-NT/woe32.h".
4*a7c91847Schristos
5*a7c91847Schristos2004-05-26  Conrad T. Pino  <Conrad@Pino.com>
6*a7c91847Schristos
7*a7c91847Schristos	* diff.c: Include "../lib/error.h" so "error" function has prototype.
8*a7c91847Schristos
9*a7c91847Schristos2004-05-24  Conrad T. Pino  <Conrad@Pino.com>
10*a7c91847Schristos
11*a7c91847Schristos	* libdiff.dep: Regenerated for ../cvsnt.dsp changes.
12*a7c91847Schristos
13*a7c91847Schristos2005-05-09  Conrad T. Pino  <Conrad@Pino.com>
14*a7c91847Schristos
15*a7c91847Schristos	* libdiff.mak: Regenerated after Windows full rebuild.
16*a7c91847Schristos
17*a7c91847Schristos2005-03-22  Mark D. Baushke  <mdb@cvshome.org>
18*a7c91847Schristos
19*a7c91847Schristos	* Makefile.in: Regenerated.
20*a7c91847Schristos
21*a7c91847Schristos2004-12-14  Derek Price  <derek@ximbiot.com>
22*a7c91847Schristos
23*a7c91847Schristos	* Makefile.am (EXTRA_DIST): Add .cvsignore.
24*a7c91847Schristos
25*a7c91847Schristos2004-11-30  Conrad T. Pino  <Conrad@Pino.com>
26*a7c91847Schristos
27*a7c91847Schristos	* libdiff.mak: Regenerated for "../cvsnt.dsp" change.
28*a7c91847Schristos
29*a7c91847Schristos2004-11-05  Conrad T. Pino  <Conrad@Pino.com>
30*a7c91847Schristos
31*a7c91847Schristos	* libdiff.dep: Regenerated for "../lib/libcvs.dsp" change.
32*a7c91847Schristos
33*a7c91847Schristos2004-11-04  Conrad T. Pino  <Conrad@Pino.com>
34*a7c91847Schristos
35*a7c91847Schristos	* libdiff.dep: Regenerated for "../lib/libcvs.dsp" change.
36*a7c91847Schristos
37*a7c91847Schristos2004-11-01  Conrad T. Pino  <Conrad@Pino.com>
38*a7c91847Schristos
39*a7c91847Schristos	* libdiff.dep: Regenerated for "../lib/libcvs.dsp" change.
40*a7c91847Schristos
41*a7c91847Schristos2004-10-26  Conrad T. Pino  <Conrad@Pino.com>
42*a7c91847Schristos
43*a7c91847Schristos	* libdiff.dep: Regenerate for "../cvsnt.dsp" and "../lib/libcvs.dsp" change.
44*a7c91847Schristos
45*a7c91847Schristos2004-10-21  Conrad T. Pino  <Conrad@Pino.com>
46*a7c91847Schristos
47*a7c91847Schristos	* libdiff.dep: Regenerated for "../zlib/libz.dsp" change.
48*a7c91847Schristos	* libdiff.mak: Regenerated for "../zlib/libz.dsp" change.
49*a7c91847Schristos
50*a7c91847Schristos2004-10-20  Mark D. Baushke  <mdb@cvshome.org>
51*a7c91847Schristos
52*a7c91847Schristos	* Makefile.in: Regenerate for new configure.in.
53*a7c91847Schristos
54*a7c91847Schristos2004-10-09  Mark D. Baushke  <mdb@cvshome.org>
55*a7c91847Schristos
56*a7c91847Schristos	* diff.c, diff3.c: Backout last change.
57*a7c91847Schristos	* Makefile.am: Add -I$(top_builddir)/lib to find getopt.h
58*a7c91847Schristos	* Makefile.in: Regenerated.
59*a7c91847Schristos
60*a7c91847Schristos2004-10-09  Mark D. Baushke  <mdb@cvshome.org>
61*a7c91847Schristos
62*a7c91847Schristos	* diff.c: Add support for systems that do not #include <stio.h>
63*a7c91847Schristos	* diff3.c: Ditto.
64*a7c91847Schristos
65*a7c91847Schristos2004-10-07  Conrad T. Pino  <Conrad@Pino.com>
66*a7c91847Schristos
67*a7c91847Schristos	* libdiff.dep: Regenerate for "../lib/libcvs.dsp" changes made 2004-10-07.
68*a7c91847Schristos
69*a7c91847Schristos2004-10-05  Conrad T. Pino  <Conrad@Pino.com>
70*a7c91847Schristos
71*a7c91847Schristos	* libdiff.dep: Regenerated for "../cvsnt.dsp" and "../lib/libcvs.dsp"
72*a7c91847Schristos	changes made 2004-10-05.
73*a7c91847Schristos	* libdiff.mak: Regenerated for "../cvsnt.dsp" and "../lib/libcvs.dsp"
74*a7c91847Schristos	changes made 2004-10-05.
75*a7c91847Schristos
76*a7c91847Schristos2004-09-09  Conrad T. Pino  <Conrad@Pino.com>
77*a7c91847Schristos
78*a7c91847Schristos	* libdiff.dep: Regenerated for "../cvsnt.dsp" changes made 2004-09-08.
79*a7c91847Schristos	* libdiff.mak: Regenerated for "../cvsnt.dsp" changes made 2004-09-08.
80*a7c91847Schristos
81*a7c91847Schristos2004-07-13  Derek Price  <derek@ximbiot.com>
82*a7c91847Schristos
83*a7c91847Schristos	* .cvsignore: Ignore GCC profiling data.
84*a7c91847Schristos
85*a7c91847Schristos2004-05-15  Derek Price  <derek@ximbiot.com>
86*a7c91847Schristos
87*a7c91847Schristos	* libdiff.dsp: Header file list updated for GNULIB updates.
88*a7c91847Schristos	* libdiff.dep: Regenerated for "libdiff.dsp" changes.
89*a7c91847Schristos	* libdiff.mak: Regenerated for "libdiff.dsp" changes.
90*a7c91847Schristos	(Patch from Conrad T. Pino <Conrad@Pino.com>.)
91*a7c91847Schristos
92*a7c91847Schristos2004-04-23  Derek Price  <derek@ximbiot.com>
93*a7c91847Schristos
94*a7c91847Schristos	* libdiff.mak: Regenerated.
95*a7c91847Schristos
96*a7c91847Schristos2004-04-19  Derek Price  <derek@ximbiot.com>
97*a7c91847Schristos
98*a7c91847Schristos	* libdiff.mak: Regenerated for "zlib/libz.dsp" change.
99*a7c91847Schristos	(Patch from Conrad T. Pino <Conrad@Pino.com>.)
100*a7c91847Schristos
101*a7c91847Schristos2004-04-17  Derek Price  <derek@ximbiot.com>
102*a7c91847Schristos
103*a7c91847Schristos	* libdiff.dep, libdiff.mak: Regenerated for "../cvsnt.dsw" changes.
104*a7c91847Schristos	(Patch from Conrad T. Pino <Conrad@Pino.com>.)
105*a7c91847Schristos
106*a7c91847Schristos2004-04-15  Derek Price  <derek@ximbiot.com>
107*a7c91847Schristos
108*a7c91847Schristos	* libdiff.dsp: Set PROP BASE directories to projet standard
109*a7c91847Schristos	which has "Reset" function use project defaults.
110*a7c91847Schristos	(Patch from Conrad T. Pino <Conrad@Pino.com>.)
111*a7c91847Schristos
112*a7c91847Schristos2004-04-15  Derek Price  <derek@ximbiot.com>
113*a7c91847Schristos
114*a7c91847Schristos	* libdiff.dsp: Set default configuration on generated make files to
115*a7c91847Schristos	Win32 Debug.
116*a7c91847Schristos	(Patch from Conrad T. Pino <conrad@pino.com>.)
117*a7c91847Schristos	* libdiff.mak: Regenerated.
118*a7c91847Schristos
119*a7c91847Schristos2004-04-15  Derek Price  <derek@ximbiot.com>
120*a7c91847Schristos
121*a7c91847Schristos	* Makefile.am (EXTRA_DIST): Add libdiff.dep.
122*a7c91847Schristos	* Makefile.in: Regenerated.
123*a7c91847Schristos
124*a7c91847Schristos2004-04-15  Derek Price  <derek@ximbiot.com>
125*a7c91847Schristos
126*a7c91847Schristos	* libdiff.dep: New generated file.
127*a7c91847Schristos	* libdiff.mak: Regenerated.
128*a7c91847Schristos	(Original patch from Conrad T. Pino <conrad@pino.com>.)
129*a7c91847Schristos
130*a7c91847Schristos2004-04-14  Derek Price  <derek@ximbiot.com>
131*a7c91847Schristos
132*a7c91847Schristos	* Makefile.am (EXTRA_DIST): Remove libdiff.dep.
133*a7c91847Schristos	* Makefile.in: Regenerated.
134*a7c91847Schristos
135*a7c91847Schristos2004-03-29  Derek Price  <derek@ximbiot.com>
136*a7c91847Schristos
137*a7c91847Schristos	* libdiff.mak: Regenerated with VC++ 5.0.
138*a7c91847Schristos	(Original sent by Dennis Jones <djones@oregon.com>.)
139*a7c91847Schristos	* libdiff.dep: Removed.
140*a7c91847Schristos
141*a7c91847Schristos2004-03-28  Derek Price  <derek@ximbiot.com>
142*a7c91847Schristos
143*a7c91847Schristos	* libdiff.mak: ...and correct a typo in the path.
144*a7c91847Schristos
145*a7c91847Schristos2004-03-28  Derek Price  <derek@ximbiot.com>
146*a7c91847Schristos
147*a7c91847Schristos	* libdiff.mak: Remove absolute path again.
148*a7c91847Schristos
149*a7c91847Schristos2004-03-28  Derek Price  <derek@ximbiot.com>
150*a7c91847Schristos
151*a7c91847Schristos	* libdiff.dsp, libdiff.mak: Repair & regenerate, relativizing path
152*a7c91847Schristos	that MSVC seems intent on keeping absolute.
153*a7c91847Schristos
154*a7c91847Schristos2004-03-27  Derek Price  <derek@ximbiot.com>
155*a7c91847Schristos
156*a7c91847Schristos	* libdiff.dep, libdiff.mak, libdiff.dsp: Repaired & regnerated.
157*a7c91847Schristos
158*a7c91847Schristos2004-03-26  Derek Price  <derek@ximbiot.com>
159*a7c91847Schristos
160*a7c91847Schristos	* .cvsignore: Ignore MSVC build cruft.
161*a7c91847Schristos	* libdiff.dep, libdiff.mak, libdiff.dsp: Repaired & regnerated.
162*a7c91847Schristos
163*a7c91847Schristos2004-03-25  Derek Price  <derek@ximbiot.com>
164*a7c91847Schristos
165*a7c91847Schristos	* Makefile.in: Regenerated.
166*a7c91847Schristos
167*a7c91847Schristos2004-03-25  Derek Price  <derek@ximbiot.com>
168*a7c91847Schristos
169*a7c91847Schristos	* libdiff.dep, libdiff.mak: New files created by Visual C++ 6.0.
170*a7c91847Schristos	* libdiff.dsp: Updated by Visual C++ 6.0.
171*a7c91847Schristos	* Makefile.am (EXTRA_DIST): Add diff.dep & diff.mak.
172*a7c91847Schristos	* .cvsignore: Add and remove files for new MSVC++ setup.
173*a7c91847Schristos
174*a7c91847Schristos2004-03-20  Derek Price  <derek@ximbiot.com>
175*a7c91847Schristos
176*a7c91847Schristos	* diff.c (diff_run): Update string arg to const.
177*a7c91847Schristos	* diffrun.h: Update prototype to match.
178*a7c91847Schristos
179*a7c91847Schristos2003-11-25  Mark D. Baushke  <mdb@cvshome.org>
180*a7c91847Schristos
181*a7c91847Schristos	* Makefile.in: Regenerate for new configure.in.
182*a7c91847Schristos
183*a7c91847Schristos2003-07-21  Derek Price  <derek@ximbiot.com>
184*a7c91847Schristos
185*a7c91847Schristos	* system.h: We can assume limits.h under C89.
186*a7c91847Schristos
187*a7c91847Schristos2003-07-12  Larry Jones  <lawrence.jones@eds.com>
188*a7c91847Schristos
189*a7c91847Schristos	* io.c (find_identical_ends): Update to match current diffutils
190*a7c91847Schristos	code and improve handling of files with no newline at end.
191*a7c91847Schristos	(Patch from Andrew Moise <chops@demiurgestudios.com>.)
192*a7c91847Schristos
193*a7c91847Schristos2003-06-13  Derek Price  <derek@ximbiot.com>
194*a7c91847Schristos
195*a7c91847Schristos	* diff3.c (read_diff): Fix memory leak.
196*a7c91847Schristos	(Patch from Kenneth Lorber <keni@his.com>.)
197*a7c91847Schristos
198*a7c91847Schristos2003-06-11  Derek Price  <derek@ximbiot.com>
199*a7c91847Schristos
200*a7c91847Schristos	* Makefile.in: Regenerate for new configure.in.
201*a7c91847Schristos
202*a7c91847Schristos2003-06-03  Derek Price  <derek@ximbiot.com>
203*a7c91847Schristos
204*a7c91847Schristos	* README: Add this file to point would-be patchers to please send their
205*a7c91847Schristos	changes to the GNU diffutils project and then ask us to reimport the
206*a7c91847Schristos	new diffutils release with the bug fix.
207*a7c91847Schristos
208*a7c91847Schristos2003-05-21  Derek Price  <derek@ximbiot.com>
209*a7c91847Schristos
210*a7c91847Schristos	* Makefile.in: Regenerate with Automake version 1.7.5.
211*a7c91847Schristos
212*a7c91847Schristos2003-05-20  Derek Price  <derek@ximbiot.com>
213*a7c91847Schristos
214*a7c91847Schristos	* Makefile.in: Regenerated.
215*a7c91847Schristos
216*a7c91847Schristos2003-05-09  Derek Price  <derek@ximbiot.com>
217*a7c91847Schristos
218*a7c91847Schristos	* system.h: Define S_ISSOCK on SCO OpenServer.
219*a7c91847Schristos
220*a7c91847Schristos2003-05-09  Derek Price  <derek@ximbiot.com>
221*a7c91847Schristos
222*a7c91847Schristos	* Makefile.in: Regenerated.
223*a7c91847Schristos
224*a7c91847Schristos2003-04-30  Derek Price  <derek@ximbiot.com>
225*a7c91847Schristos
226*a7c91847Schristos	* Makefile.in: Regenerated.
227*a7c91847Schristos
228*a7c91847Schristos2003-04-10  Larry Jones  <lawrence.jones@eds.com>
229*a7c91847Schristos
230*a7c91847Schristos	* Makefile.in: Regenerated.
231*a7c91847Schristos
232*a7c91847Schristos2003-03-19  Mark D. Baushke  <mdb@cvshome.org>
233*a7c91847Schristos
234*a7c91847Schristos	* Makefile.in: Regenerated.
235*a7c91847Schristos
236*a7c91847Schristos2003-03-19  Derek Price  <derek@ximbiot.com>
237*a7c91847Schristos
238*a7c91847Schristos	* Makefile.in: Regenerated.
239*a7c91847Schristos
240*a7c91847Schristos2003-02-25  Derek Price  <derek@ximbiot.com>
241*a7c91847Schristos
242*a7c91847Schristos	* Makefile.in: Regenerated.
243*a7c91847Schristos
244*a7c91847Schristos2003-02-01  Larry Jones  <lawrence.jones@eds.com>
245*a7c91847Schristos
246*a7c91847Schristos	* util.c (finish_output): Handle EINTR from waitpid.
247*a7c91847Schristos
248*a7c91847Schristos2002-09-24  Derek Price  <derek@ximbiot.com>
249*a7c91847Schristos
250*a7c91847Schristos	* Makefile.in: Regenerated using Automake 1.6.3.
251*a7c91847Schristos
252*a7c91847Schristos2002-09-24  Larry Jones  <lawrence.jones@eds.com>
253*a7c91847Schristos
254*a7c91847Schristos	* system.h: Use HAVE_STRUCT_STAT_ST_BLKSIZE instead of the
255*a7c91847Schristos	obsolete HAVE_ST_BLKSIZE.
256*a7c91847Schristos
257*a7c91847Schristos2002-09-24  Derek Price  <derek@ximbiot.com>
258*a7c91847Schristos
259*a7c91847Schristos	* Makefile.in: Regenerated.
260*a7c91847Schristos
261*a7c91847Schristos2002-04-30  Derek Price  <oberon@umich.edu>
262*a7c91847Schristos
263*a7c91847Schristos	* Makefile.in: Regenerated with automake 1.6.
264*a7c91847Schristos
265*a7c91847Schristos2002-04-28  Derek Price  <oberon@umich.edu>
266*a7c91847Schristos
267*a7c91847Schristos	* diff.c: Use the system fnmatch.h when present.
268*a7c91847Schristos
269*a7c91847Schristos2001-09-04  Derek Price  <dprice@collab.net>
270*a7c91847Schristos
271*a7c91847Schristos	* Makefile.in: Regenerated with automake 1.5.
272*a7c91847Schristos
273*a7c91847Schristos2001-08-09  Derek Price  <dprice@collab.net>
274*a7c91847Schristos
275*a7c91847Schristos	* system.h: Source some header files when present to eliminate warning
276*a7c91847Schristos	messages under Windows.
277*a7c91847Schristos	(Patch from "Manfred Klug" <manklu@web.de>.)
278*a7c91847Schristos
279*a7c91847Schristos2001-08-07  Derek Price  <dprice@collab.net>
280*a7c91847Schristos
281*a7c91847Schristos	* build_diff.com: Turn on verify to get a better trace of the DCL.
282*a7c91847Schristos	* diff3.c: Eliminate compiler warning.  The VMS read rval is ssize_t
283*a7c91847Schristos	(signed).  The VMS size_t appears to be unsigned.
284*a7c91847Schristos	* io.c: Eliminate compiler warning (ssize_t).
285*a7c91847Schristos	(Patch from Mike Marciniszyn <Mike.Marciniszyn@sanchez.com>.)
286*a7c91847Schristos
287*a7c91847Schristos2001-08-06  Derek Price  <dprice@collab.net>
288*a7c91847Schristos
289*a7c91847Schristos	* Makefile.in: Regenerated.
290*a7c91847Schristos
291*a7c91847Schristos2001-07-04  Derek Price  <dprice@collab.net>
292*a7c91847Schristos
293*a7c91847Schristos	* Makefile.in: Regenerated with new Automake release candidate 1.4h.
294*a7c91847Schristos
295*a7c91847Schristos2001-06-28  Derek Price  <dprice@collab.net>
296*a7c91847Schristos
297*a7c91847Schristos	* Makefile.in: Regenerated with new version of Automake.
298*a7c91847Schristos
299*a7c91847Schristos2001-05-07  Larry Jones  <larry.jones@sdrc.com>
300*a7c91847Schristos
301*a7c91847Schristos	* diff3.c (diff3_run): Put the name of the output file in the error
302*a7c91847Schristos	message instead of "could not open output file" to aid in debugging.
303*a7c91847Schristos
304*a7c91847Schristos2001-04-25  Derek Price  <dprice@collab.net>
305*a7c91847Schristos
306*a7c91847Schristos	* Makefile.in: Regenerated using AM 1.4e as of today at 18:10 -0400.
307*a7c91847Schristos
308*a7c91847Schristos2001-03-24  Noel Cragg  <noel@shave.red-bean.com>
309*a7c91847Schristos
310*a7c91847Schristos	* diff.c: fix typo in usage string.
311*a7c91847Schristos
312*a7c91847Schristos2001-03-20  Derek Price  <derek.price@openavenue.com>
313*a7c91847Schristos	    for Karl Tomlinson  <k.tomlinson@auckland.ac.nz>
314*a7c91847Schristos
315*a7c91847Schristos	* diff3.c (main): changed the common file of the two diffs to
316*a7c91847Schristos	OLDFILE for merges and edscripts so that the diffs are more likely
317*a7c91847Schristos	to contain the intended changes.  Not changing the horizon-lines
318*a7c91847Schristos	arg for the second diff.  If the two diffs have the same parameters
319*a7c91847Schristos	equal changes in each diff are more likely to appear the same.
320*a7c91847Schristos
321*a7c91847Schristos	* analyze.c (shift_boundaries): undid Paul Eggert's patch to fix
322*a7c91847Schristos	the diff3 merge bug described in ccvs/doc/DIFFUTILS-2.7-BUG.  The
323*a7c91847Schristos	patch is no longer necessary now that diff3 does its differences
324*a7c91847Schristos	differently.  I think the hunk merges provide a better indication
325*a7c91847Schristos	of the area modified by the user now that the diffs are actually
326*a7c91847Schristos	done between the appropriate revisions.
327*a7c91847Schristos
328*a7c91847Schristos2001-03-15  Derek Price  <derek.price@openavenue.com>
329*a7c91847Schristos
330*a7c91847Schristos	* Makefile.am (INCLUDES): Add -I$(top_srcdir)/lib for platforms which
331*a7c91847Schristos	need the regex library there.
332*a7c91847Schristos
333*a7c91847Schristos	* Makefile.in: Regenerated.
334*a7c91847Schristos
335*a7c91847Schristos2001-03-14  Derek Price  <derek.price@openavenue.com>
336*a7c91847Schristos
337*a7c91847Schristos	* .cvsignore: Added '.deps'.
338*a7c91847Schristos
339*a7c91847Schristos	    Pavel Roskin  <proski@gnu.org>
340*a7c91847Schristos
341*a7c91847Schristos	* Makefile.am: New file.
342*a7c91847Schristos	* Makefile.in: Regenerated.
343*a7c91847Schristos
344*a7c91847Schristos2001-02-22  Derek Price  <derek.price@openavenue.com>
345*a7c91847Schristos	    Pavel Roskin  <proski@gnu.org>
346*a7c91847Schristos
347*a7c91847Schristos	* Makefile.in: Don't define PR_PROGRAM - it's defined by configure.
348*a7c91847Schristos	Remove separate rule for util.c.
349*a7c91847Schristos
350*a7c91847Schristos2001-02-06  Derek Price  <derek.price@openavenue.com>
351*a7c91847Schristos	    Rex Jolliff  <Rex_Jolliff@notes.ymp.gov>
352*a7c91847Schristos	    Shawn Smith  <Shawn_Smith@notes.ymp.gov>
353*a7c91847Schristos
354*a7c91847Schristos	* dir.c: Replace opendir, closedir, & readdir calls with CVS_OPENDIR,
355*a7c91847Schristos	CVS_CLOSEDIR, & CVS_READDIR in support of changes to handle VMS DEC C
356*a7c91847Schristos	5.7 {open,read,close}dir problems.  Check today's entry in the vms
357*a7c91847Schristos	subdir for more.
358*a7c91847Schristos	* system.h: definitions of CVS_*DIR provided here.
359*a7c91847Schristos
360*a7c91847Schristos2000-12-21  Derek Price  <derek.price@openavenue.com>
361*a7c91847Schristos
362*a7c91847Schristos	* Makefile.in: Some changes to support Automake targets
363*a7c91847Schristos
364*a7c91847Schristos2000-10-26  Larry Jones  <larry.jones@sdrc.com>
365*a7c91847Schristos
366*a7c91847Schristos	* Makefile.in: Get PR_PROGRAM from autoconf instead of hard coding.
367*a7c91847Schristos	(Patch submitted by Urs Thuermann <urs@isnogud.escape.de>.)
368*a7c91847Schristos	Also add a dependency for util.o on Makefile since PR_PROGRAM gets
369*a7c91847Schristos	compiled in.
370*a7c91847Schristos
371*a7c91847Schristos2000-08-03  Larry Jones  <larry.jones@sdrc.com>
372*a7c91847Schristos
373*a7c91847Schristos	* diff3.c (read_diff): Use cvs_temp_name () instead of tmpnam () so
374*a7c91847Schristos	there's at least a chance of getting the file in the correct tmp dir.
375*a7c91847Schristos
376*a7c91847Schristos2000-07-10  Larry Jones  <larry.jones@sdrc.com>
377*a7c91847Schristos
378*a7c91847Schristos	* util.c (printf_output): Fix type clashes.
379*a7c91847Schristos
380*a7c91847Schristos2000-06-15  Larry Jones  <larry.jones@sdrc.com>
381*a7c91847Schristos
382*a7c91847Schristos	* diff3.c (diff3_run, make_3way_diff): Plug memory leaks.
383*a7c91847Schristos
384*a7c91847Schristos1999-12-29  Jim Kingdon  <http://developer.redhat.com/>
385*a7c91847Schristos
386*a7c91847Schristos	* diff.c (compare_files): Use explicit braces with if-if-else, per
387*a7c91847Schristos	GNU coding standards and gcc -Wall.
388*a7c91847Schristos
389*a7c91847Schristos1999-11-23  Larry Jones  <larry.jones@sdrc.com>
390*a7c91847Schristos
391*a7c91847Schristos	* diff3.c: Explicitly initialize zero_diff3 to placate neurotic
392*a7c91847Schristos	compilers that gripe about implicitly initialized const variables.
393*a7c91847Schristos	Reported by Eric Veum <sysv@yahoo.com>.
394*a7c91847Schristos
395*a7c91847Schristos1999-09-15  Larry Jones  <larry.jones@sdrc.com>
396*a7c91847Schristos
397*a7c91847Schristos	* diff.c (diff_run): Move the setjmp call before the options
398*a7c91847Schristos	processing since option errors can call fatal which in turn
399*a7c91847Schristos	calls longjmp.
400*a7c91847Schristos
401*a7c91847Schristos1999-05-06  Jim Kingdon  <http://www.cyclic.com>
402*a7c91847Schristos
403*a7c91847Schristos	* Makefile.in (DISTFILES): Remove libdiff.mak.
404*a7c91847Schristos	* libdiff.mak: Removed; we are back to a single makefile for
405*a7c91847Schristos	Visual C++ version 4.
406*a7c91847Schristos
407*a7c91847Schristos1999-04-29  Jim Kingdon  <http://www.cyclic.com>
408*a7c91847Schristos
409*a7c91847Schristos	* diff.c (diff_run): Use separate statement for setjmp call and if
410*a7c91847Schristos	statement.  This is better style in general (IMHO) but in the case
411*a7c91847Schristos	of setjmp the UNICOS compiler apparently cares (I don't have the
412*a7c91847Schristos	standard handy, but there are lots of legitimate restrictions on
413*a7c91847Schristos	how you can call setjmp).
414*a7c91847Schristos
415*a7c91847Schristos1999-04-26  Jim Kingdon  <http://www.cyclic.com>
416*a7c91847Schristos
417*a7c91847Schristos	* Makefile.in (DISTFILES): Add libdiff.dsp libdiff.mak .cvsignore.
418*a7c91847Schristos
419*a7c91847Schristos1999-04-26 (submitted 1999-03-24) John O'Connor  <john@shore.net>
420*a7c91847Schristos
421*a7c91847Schristos	* libdiff.dsp: new file. MSVC project file used to build the library.
422*a7c91847Schristos
423*a7c91847Schristos	* libdiff.mak: new file. Makefile for building from the command-line.
424*a7c91847Schristos
425*a7c91847Schristos	* .cvsignore: Removed un-used entries related to MSVC.  Added
426*a7c91847Schristos	entries to ignore directories generated by the NT build, Debug
427*a7c91847Schristos	and Release.
428*a7c91847Schristos
429*a7c91847Schristos1999-03-24  Larry Jones  <larry.jones@sdrc.com>
430*a7c91847Schristos	and Olaf Brandes
431*a7c91847Schristos
432*a7c91847Schristos	* diff3.c (diff3_run): Use a separate stream for the input to
433*a7c91847Schristos	output_diff3_merge instead of reopening stdin to avoid problems
434*a7c91847Schristos	with leaving it open.
435*a7c91847Schristos
436*a7c91847Schristos1999-02-17  Jim Kingdon  <http://www.cyclic.com>
437*a7c91847Schristos	and Hallvard B Furuseth.
438*a7c91847Schristos
439*a7c91847Schristos	* util.c: Use __STDC__ consistently with ./system.h.
440*a7c91847Schristos	* system.h: Add comment about PARAMS.
441*a7c91847Schristos
442*a7c91847Schristos1999-01-12  Jim Kingdon  <http://www.cyclic.com>
443*a7c91847Schristos
444*a7c91847Schristos	* Makefile.in, analyze.c, cmpbuf.c, cmpbuf.h, context.c, diff.c,
445*a7c91847Schristos	diff.h, diff3.c, diffrun.h, dir.c, ed.c, io.c, normal.c, system.h,
446*a7c91847Schristos	util.c: Remove paragraph containing the old snail mail address of
447*a7c91847Schristos	the Free Software Foundation.
448*a7c91847Schristos
449*a7c91847Schristos1998-09-21  Jim Kingdon  <kingdon@harvey.cyclic.com>
450*a7c91847Schristos
451*a7c91847Schristos	* util.c (printf_output): Make msg static; avoids auto
452*a7c91847Schristos	initializer, which is not portable to SunOS4 /bin/cc.
453*a7c91847Schristos	Reported by Mike Sutton@SAIC.
454*a7c91847Schristos
455*a7c91847Schristos1998-09-14  Jim Kingdon  <kingdon@harvey.cyclic.com>
456*a7c91847Schristos
457*a7c91847Schristos	* Makefile.in (DISTFILES): Add diagmeet.note.
458*a7c91847Schristos
459*a7c91847Schristos1998-08-15  Jim Kingdon  <kingdon@harvey.cyclic.com>
460*a7c91847Schristos
461*a7c91847Schristos	* diffrun.h (struct diff_callbacks): Change calling convention of
462*a7c91847Schristos	write_output so that a zero length means to output zero bytes.
463*a7c91847Schristos	The cvs_output convention is just too ugly/error-prone.
464*a7c91847Schristos	* util.c (printf_output): Rewrite to parse format string
465*a7c91847Schristos	overselves rather than calling vasprintf, which cannot be
466*a7c91847Schristos	implemented in portable C.
467*a7c91847Schristos
468*a7c91847Schristos1998-08-06  David Masterson of kla-tencor.com
469*a7c91847Schristos
470*a7c91847Schristos	* util.c (flush_output): Don't prototype.
471*a7c91847Schristos
472*a7c91847SchristosThu Jul  2 16:34:38 1998  Ian Lance Taylor  <ian@cygnus.com>
473*a7c91847Schristos
474*a7c91847Schristos	Simplify the callback interface:
475*a7c91847Schristos	* diffrun.h: Don't include <stdarg.h> or <varargs.h>.
476*a7c91847Schristos	(struct diff_callbacks): Remove printf_output field.
477*a7c91847Schristos	* util.c: Include <stdarg.h> or <varargs.h>.
478*a7c91847Schristos	(printf_output): Use vasprintf and write_output callback rather
479*a7c91847Schristos	than printf_output callback.
480*a7c91847Schristos	* diff3.c (read_diff): Don't set my_callbacks.printf_output.
481*a7c91847Schristos
482*a7c91847SchristosThu Jun 18 12:43:53 1998  Ian Lance Taylor  <ian@cygnus.com>
483*a7c91847Schristos
484*a7c91847Schristos	* diffrun.h: New file.
485*a7c91847Schristos	* diff.h: Include diffrun.h.
486*a7c91847Schristos	(callbacks): New EXTERN variable.
487*a7c91847Schristos	(write_output, printf_output, flush_output): Declare.
488*a7c91847Schristos	* diff.c (diff_run): Add parameter callbacks_arg.  Use callback
489*a7c91847Schristos	functions rather than writing to stdout.  Don't open a file if
490*a7c91847Schristos	there is a write_output callback.  Call perror_with_name rather
491*a7c91847Schristos	than perror.
492*a7c91847Schristos	(usage): Use callbacks if defined rather than writing to stdout.
493*a7c91847Schristos	(compare_files): Call flush_output rather than fflush (outfile).
494*a7c91847Schristos	* diff3.c: Include diffrun.h.  Change several functions to use
495*a7c91847Schristos	output functions from util.c rather than direct printing.  Use
496*a7c91847Schristos	diff_error and friends rather than printing to stderr.  Set global
497*a7c91847Schristos	variable outfile.
498*a7c91847Schristos	(outfile, callbacks): Declare.
499*a7c91847Schristos	(write_output, printf_output, flush_output): Declare.
500*a7c91847Schristos	(diff3_run): Add parameter callbacks_arg.  Use callback functions
501*a7c91847Schristos	rather than writing to stdout.
502*a7c91847Schristos	(usage): Use callbacks if defined rather than writing to stdout.
503*a7c91847Schristos	(read_diff): Preserve callbacks and outfile around call to
504*a7c91847Schristos	diff_run.
505*a7c91847Schristos	* util.c (perror_with_name): Use error callback if defined.
506*a7c91847Schristos	(pfatal_with_name, diff_error): Likewise.
507*a7c91847Schristos	(message5): Use printf_output and write_output.
508*a7c91847Schristos	(print_message_queue, print_1_line, output_1_line): Likewise.
509*a7c91847Schristos	(begin_output): Reject paginate_flag if there are output
510*a7c91847Schristos	callbacks.
511*a7c91847Schristos	(write_output, printf_output, flush_output): New functions.
512*a7c91847Schristos	* context.c: Change all output to outfile to use printf_output and
513*a7c91847Schristos	write_output.
514*a7c91847Schristos	* ed.c: Likewise.
515*a7c91847Schristos	* ifdef.c: Likewise.
516*a7c91847Schristos	* normal.c: Likewise.
517*a7c91847Schristos	* side.c: Likewise.
518*a7c91847Schristos	* Makefile.in (SOURCES): Add diffrun.h.
519*a7c91847Schristos	($(OBJECTS)): Depend upon diffrun.h.
520*a7c91847Schristos
521*a7c91847SchristosFri Jan 16 14:58:19 1998  Larry Jones  <larry.jones@sdrc.com>
522*a7c91847Schristos
523*a7c91847Schristos	* diff.c, diff3.c: Plug memory leaks.
524*a7c91847Schristos
525*a7c91847SchristosThu Jan 15 13:36:46 1998  Jim Kingdon  <kingdon@harvey.cyclic.com>
526*a7c91847Schristos
527*a7c91847Schristos	* Makefile.in (installdirs): New rule, for when ../Makefile
528*a7c91847Schristos	recurses into this directory (bug reported by W. L. Estes).
529*a7c91847Schristos
530*a7c91847SchristosTue Nov 11 10:48:19 1997  Jim Kingdon  <kingdon@harvey.cyclic.com>
531*a7c91847Schristos
532*a7c91847Schristos	* diff.c (diff_run): Change #ifdef on HAVE_SETMODE to #if to match
533*a7c91847Schristos	the other uses (fixes compilation error on unix).
534*a7c91847Schristos
535*a7c91847Schristos	* diff.c (diff_run): Don't set stdout to binary mode.
536*a7c91847Schristos
537*a7c91847SchristosMon, 10 Nov 1997  Jim Kingdon
538*a7c91847Schristos
539*a7c91847Schristos	* diff.c (run_diff): Open outfile in binary mode if --binary.
540*a7c91847Schristos
541*a7c91847SchristosThu Nov  6 12:42:12 1997  Karl Fogel  <kfogel@floss.red-bean.com>
542*a7c91847Schristos	                  and Paul Eggert <eggert@twinsun.com>
543*a7c91847Schristos
544*a7c91847Schristos	* analyze.c: applied Paul Eggert's patch to fix the diff3 merge
545*a7c91847Schristos	bug described in ccvs/doc/DIFFUTILS-2.7-BUG:
546*a7c91847Schristos	(shift_boundaries): new var `inhibit_hunk_merge'; use it to
547*a7c91847Schristos	control something important that I don't quite understand, but
548*a7c91847Schristos	Paul apparently does, so that's okay.
549*a7c91847Schristos
550*a7c91847SchristosSat Nov  1 14:17:57 1997  Michael L.H. Brouwer  <michael@thi.nl>
551*a7c91847Schristos
552*a7c91847Schristos	* Makefile.in: Add call to ranlib to build a table of contents for
553*a7c91847Schristos	the library since some systems seem to require this.
554*a7c91847Schristos
555*a7c91847Schristos1997-10-28  Jim Kingdon
556*a7c91847Schristos
557*a7c91847Schristos	* .cvsignore: Add files du jour for Visual C++, vc50.pdb and vc50.idb.
558*a7c91847Schristos
559*a7c91847Schristos	* system.h: Define HAVE_TIME_H.
560*a7c91847Schristos	* dir.c [_WIN32]: Define CLOSEDIR_VOID.
561*a7c91847Schristos
562*a7c91847Schristos1997-10-18  Jim Kingdon
563*a7c91847Schristos
564*a7c91847Schristos	* build_diff.com: Add diff3.c
565*a7c91847Schristos
566*a7c91847SchristosFri Sep 26 14:24:42 1997  Tim Pierce  <twp@twp.tezcat.com>
567*a7c91847Schristos
568*a7c91847Schristos	* diff.c (diff_run): Save old value of optind before calling
569*a7c91847Schristos	getopt_long, then restore before returning.  Eventually it would
570*a7c91847Schristos	be nice if diff_run were fully reentrant.
571*a7c91847Schristos
572*a7c91847Schristos	New diff3 library for CVS.
573*a7c91847Schristos	* Makefile.in (SOURCES): Add diff3.c.
574*a7c91847Schristos	(OBJECTS): Add diff3.o.
575*a7c91847Schristos	* diff3.c: New file, copied from diffutils-2.7.  See diffutils for
576*a7c91847Schristos	earlier ChangeLogs.  Undefine initialize_main macro. Remove <signal.h>.
577*a7c91847Schristos	(diff3_run): Renamed from main().  Add `outfile' argument.  Remove
578*a7c91847Schristos	SIGCLD handling; we do not fork.  Save optind and reset to 0
579*a7c91847Schristos	before calling getopt_long; restore after option processing done.
580*a7c91847Schristos	(read_diff): Use diff_run with a temporary output file,
581*a7c91847Schristos	instead of forking a diff subprocess and reading from a pipe.
582*a7c91847Schristos	Change DIFF_PROGRAM to "diff"; this argument is now used only for
583*a7c91847Schristos	diagnostic reporting.
584*a7c91847Schristos	(xmalloc, xrealloc): Removed.
585*a7c91847Schristos	(diff_program): Removed.
586*a7c91847Schristos	(diff_program_name): Made extern, so it may be used in other
587*a7c91847Schristos	library calls like `error'.
588*a7c91847Schristos	(initialize_main): New function.
589*a7c91847Schristos
590*a7c91847Schristos	Namespace munging.  util.c defines both fatal() and
591*a7c91847Schristos 	perror_with_exit(), but these cannot be used to abort diff3: both
592*a7c91847Schristos 	attempt to longjmp() to a buffer set in diff.c, used only by
593*a7c91847Schristos 	diff_run.  This is an awful solution, but necessary until the code
594*a7c91847Schristos 	can be cleaned up.  (These functions do not *have* to be renamed,
595*a7c91847Schristos 	since both are declared static to diff3.c and should not clash
596*a7c91847Schristos 	with libdiff.a, but it reduces potential confusion.)
597*a7c91847Schristos	* diff3.c (diff3_fatal): Renamed from fatal.
598*a7c91847Schristos	(diff3_perror_with_exit): Renamed from perror_with_exit.
599*a7c91847Schristos
600*a7c91847Schristos	Eliminate exit calls.
601*a7c91847Schristos	(try_help): Change from `void' to `int'.  Return, do not exit.
602*a7c91847Schristos	(diff3_fatal, diff3_perror_with_exit, process_diff): Change `exit'
603*a7c91847Schristos	to DIFF3_ABORT.
604*a7c91847Schristos	(diff3_run): Initialize jump buffer for nonlocal exits.  Change
605*a7c91847Schristos 	exit calls to returns.  Change `perror_with_exit' to
606*a7c91847Schristos 	`perror_with_name' and add a return.  Change `fatal' to
607*a7c91847Schristos 	`diff_error' and add a return.  The reasoning is that we shouldn't
608*a7c91847Schristos 	rely on setjmp/longjmp any more than necessary.
609*a7c91847Schristos
610*a7c91847Schristos	Redirect stdout.
611*a7c91847Schristos	(check_output): Renamed from check_stdout.  Take stream argument
612*a7c91847Schristos	instead of blindly checking stdout.  Do not close stream, but
613*a7c91847Schristos	merely fflush it.
614*a7c91847Schristos	(diff3_run): Initialize outstream, and close when done.  Pass this
615*a7c91847Schristos	stream (instead of stdout) to output_diff3_edscript,
616*a7c91847Schristos	output_diff3_merge, and output_diff3.
617*a7c91847Schristos
618*a7c91847SchristosThu Sep 25 14:34:22 1997  Jim Kingdon  <kingdon@harvey.cyclic.com>
619*a7c91847Schristos
620*a7c91847Schristos	* util.c (begin_output, finish_output): If PR_PROGRAM is not
621*a7c91847Schristos	defined (VMS), just give a fatal error if --paginate specified.
622*a7c91847Schristos
623*a7c91847Schristos	* Makefile.in (DISTFILES): Add ChangeLog build_diff.com
624*a7c91847Schristos	Makefile.in.
625*a7c91847Schristos	* build_diff.com: New file.
626*a7c91847Schristos
627*a7c91847SchristosWed Sep 24 10:27:00 1997  Jim Kingdon  <kingdon@harvey.cyclic.com>
628*a7c91847Schristos
629*a7c91847Schristos	* Makefile.in: Also set top_srcdir.  Needed to make today's other
630*a7c91847Schristos	Makefile.in change work.
631*a7c91847Schristos
632*a7c91847Schristos	* .cvsignore: New file.
633*a7c91847Schristos
634*a7c91847Schristos	* Makefile.in (COMPILE): Add -I options for srcdir (perhaps
635*a7c91847Schristos	unneeded) and change -I option for lib to use top_srcdir (needed
636*a7c91847Schristos	to avoid mixups with CVS's regex.h vs. the system one).
637*a7c91847Schristos
638*a7c91847SchristosSun Sep 21 19:44:42 1997  Jim Kingdon  <kingdon@harvey.cyclic.com>
639*a7c91847Schristos
640*a7c91847Schristos	* Makefile.in (util.o): Change util.c to $<, needed for srcdir.
641*a7c91847Schristos
642*a7c91847SchristosSat Sep 20 12:06:41 1997  Tim Pierce  <twp@twp.tezcat.com>
643*a7c91847Schristos
644*a7c91847Schristos	New diff library for CVS, based on diffutils-2.7.  See diffutils
645*a7c91847Schristos	for earlier ChangeLogs.
646*a7c91847Schristos	* Makefile.in, analyze.c, cmpbuf.c, cmpbuf.h, config.hin,
647*a7c91847Schristos	context.c, diagmeet.note, diff.c, diff.h, dir.c, ed.c, ifdef.c,
648*a7c91847Schristos	io.c, normal.c, side.c, stamp-h.in, system.h, util.c, version.c:
649*a7c91847Schristos	New files.
650*a7c91847Schristos	(COMPILE): Add -I../lib, so we can get getopt.h.
651*a7c91847Schristos
652*a7c91847Schristos	* Makefile.in: Removed anything not related to libdiff.a.
653*a7c91847Schristos	(dist-dir): New target, copied from ../lib/Makefile.in.
654*a7c91847Schristos	(DISTFILES): New variable.
655*a7c91847Schristos	(SOURCES): Renamed from `srcs'.
656*a7c91847Schristos	(OBJECTS): Renamed from `libdiff_o'.
657*a7c91847Schristos	(Makefile): Changed dependencies to reflect
658*a7c91847Schristos	new, shallow config directory structure.
659*a7c91847Schristos	(stamp-h.in, config.h.in, config.h, stamp-h): Removed.
660*a7c91847Schristos	* stamp-h.in, config.h.in: Removed.
661*a7c91847Schristos
662*a7c91847Schristos	* system.h: Remove dup2 macro (provided by ../lib/dup2.c).
663*a7c91847Schristos	Include stdlib.h if STDC_HEADERS is defined (not just
664*a7c91847Schristos	HAVE_STDLIB_H).
665*a7c91847Schristos
666*a7c91847SchristosSat Sep 20 05:32:18 1997  Tim Pierce  <twp@twp.tezcat.com>
667*a7c91847Schristos
668*a7c91847Schristos	Diff librarification.
669*a7c91847Schristos
670*a7c91847Schristos	* diff.c (diff_run): New function, renamed from `main'.
671*a7c91847Schristos	Initialize `outfile' based on the value of the new `out' filename
672*a7c91847Schristos	argument.
673*a7c91847Schristos	(initialize_main): New function.
674*a7c91847Schristos	* system.h: Removed initialize_main macro.
675*a7c91847Schristos	* diffmain.c: New file.
676*a7c91847Schristos	* Makefile.in (diff): Added diffmain.o.
677*a7c91847Schristos 	(libdiff): New target.
678*a7c91847Schristos	(AR, libdiff_o): New variables.  libdiff_o does not include
679*a7c91847Schristos	xmalloc.o, fnmatch.o, getopt.o, getopt1.o, regex.o or error.o,
680*a7c91847Schristos	because these functions are already present in CVS.  It will take
681*a7c91847Schristos	some work to make this more general-purpose.
682*a7c91847Schristos
683*a7c91847Schristos	Redirect standard output.
684*a7c91847Schristos	* util.c: Redirect stdout to outfile: change all naked `printf'
685*a7c91847Schristos 	and `putchar' statements to `fprintf (outfile)' and `putc (...,
686*a7c91847Schristos 	outfile)' throughout.  This should permit redirecting diff output
687*a7c91847Schristos 	by changing `outfile' just once in `diff_run'.
688*a7c91847Schristos	(output_in_progress): New variable.
689*a7c91847Schristos	(begin_output, finish_output): Use `output_in_progress', rather than
690*a7c91847Schristos	`outfile', as a semaphore to avoid reentrancy problems.
691*a7c91847Schristos	(finish_output): Close `outfile' only if paginate_flag is set.
692*a7c91847Schristos	* diff.c (check_output): New function, was check_stdout.  Take a
693*a7c91847Schristos	`file' argument, and flush it instead of closing it.
694*a7c91847Schristos	(diff_run): Change check_stdout to check_output.
695*a7c91847Schristos	(compare_files): Fflush outfile, not stdout.
696*a7c91847Schristos
697*a7c91847Schristos	Eliminate exit statements.
698*a7c91847Schristos	* diff.h: Include setjmp.h.
699*a7c91847Schristos	(diff_abort_buf): New variable.
700*a7c91847Schristos	(DIFF_ABORT): New macro.
701*a7c91847Schristos	* diff.c (diff_run): Change all `exit' statements to `return'.
702*a7c91847Schristos	Set up diff_abort_buf, so we can abort diff without
703*a7c91847Schristos	terminating (for libdiff.a).
704*a7c91847Schristos	(try_help): Return int instead of void; do not exit.
705*a7c91847Schristos	* util.c (fatal): Use DIFF_ABORT instead of exit.
706*a7c91847Schristos	(pfatal_with_name): Use DIFF_ABORT instead of exit.
707*a7c91847Schristos
708*a7c91847Schristos	Namespace cleanup (rudimentary).  Strictly speaking, this is not
709*a7c91847Schristos 	necessary to make diff into a library.  However, namespace
710*a7c91847Schristos	clashes between diff and CVS must be resolved immediately, since
711*a7c91847Schristos	CVS is the first application targeted for use with difflib.
712*a7c91847Schristos
713*a7c91847Schristos	* analyze.c, diff.c, diff.h, util.c (diff_error): Renamed from `error'.
714*a7c91847Schristos
715*a7c91847Schristos	* version.c, diff.c, diff.h, cmp.c, diff3.c, sdiff.c
716*a7c91847Schristos	(diff_version_string): Renamed from version_string.
717*a7c91847Schristos	* diff.c, util.c, diff.h, diff3.c, error.c (diff_program_name):
718*a7c91847Schristos	Renamed from program_name.
719*a7c91847Schristos
720*a7c91847Schristos	* util.c (xmalloc, xrealloc): Removed.
721*a7c91847Schristos	* Makefile.in (diff_o): Added error.o and xmalloc.o.
722*a7c91847Schristos
723