660 Commits

Author SHA1 Message Date
Paul Eggert
4a1de90b3c Version 2.8.7. v2.8.7 2004-04-13 06:56:18 +00:00
Paul Eggert
a76094697e (AM_GNU_GETTEXT_VERSION): Add.
(XGETTEXT): Restore from pre-2004-04-12 version.  This fixes
a bug that lost many msgids in doc/diffutils.pot.
(AC_INIT): Version 2.8.7.
2004-04-13 06:55:43 +00:00
Paul Eggert
45cc4e0358 Initial revision 2004-04-13 06:47:34 +00:00
Paul Eggert
fefbcf76e6 (AC_CONFIG_COMMANDS): Remove. 2004-04-12 23:07:15 +00:00
Paul Eggert
74bdeeafed (EXTRA_DIST): Add setmode.h. 2004-04-12 20:45:50 +00:00
Paul Eggert
2e22505469 Use inttostr module, so we needn't worry about specifying it ourself. 2004-04-12 20:30:57 +00:00
Paul Eggert
a74be8d413 * configure.ac: Quote various arguments better.
(AC_CONFIG_MACRO_DIR): Add call, specifying "m4".
(AC_CONFIG_HEADER): Replaces AM_CONFIG_HEADER.
(gl_USE_SYSTEM_EXTENSIONS): Replaces AC_GNU_SOURCE.
(AC_ISC_POSIX): Remove; nobody ports to ancient ISC any more.
(AC_PROG_CPP, AC_PROG_INSTALL, AC_C_INLINE,
AC_HEADER_STDBOOL, AC_HEADER_STDC, AM_GNU_GETTEXT, XGETTEXT,
AC_HEADER_STAT, AC_FUNC_VPRINTF, jm_FUNC_GLIBC_UNLOCKED_IO,
jm_FUNC_GNU_STRFTIME, jm_FUNC_MALLOC, jm_FUNC_REALLOC,
jm_PREREQ_C_STACK, jm_PREREQ_ERROR, jm_PREREQ_HARD_LOCALE,
jm_PREREQ_QUOTEARG, jm_PREREQ_REGEX, AC_FUNC_FNMATCH_GNU, jm_AC_DOS):
Remove; not needed here, as our files don't use them directly
or we rely on gnulib modules.
(AC_C_CONST): Remove; we assume C89 now.
(AC_CHECK_HEADERS): Remove libintl.h, limits.h, stdlib.h, string.h,
time.h.
(AC_CHECK_TYPE): Remove ptrdiff_t, ssize_t.
(AC_CHECK_FUNCS): Remove diraccess, strchr, strerror, tmpnam).
(AC_REPLACE_FUNCS): Remove memchr, mkstemp, strcasecmp.
(GNULIB_AUTOCONF_SNIPPET): Add call.  This replaces much of
the above.
(AC_CONFIG_FILES): Remove lib/posix/Makefile.
v2.8.6
2004-04-12 07:44:35 +00:00
Paul Eggert
2ea441f7e2 Initial revision 2004-04-12 07:44:35 +00:00
Paul Eggert
b3f6204729 Move copyright notice to end. Defer to "configure
--help" for special "configure" options.  Suggest latest libiconv.	Update version numbers of Autoconf etc. to current.
2004-04-12 07:44:35 +00:00
Paul Eggert
477cd3074a Add news for 2.8.4, 2.8.6. 2004-04-12 07:44:35 +00:00
Paul Eggert
3f0830fef5 Do not include regex.h, as diff.h does this now.
(lines_differ): Don't convert char * to unsigned char *;
just leave pointers as char *.  This lessens the number of
potentially-dangerous casts.
2004-04-12 07:44:35 +00:00
Paul Eggert
43adfd44c5 (S_IRWXU, S_IRWXG, S_IRWXO): Define if not defined.
(S_IXUSR, S_IXGRP, S_IXOTH): Remove.
Include <time.h> unconditionally, since we can assume C89 now.
Likewise for <stdlib.h>, <string.h>.
(getenv, EXIT_SUCCESS, EXIT_FAILURE, SSIZE_MAX, strchr, strrchr,
memcmp, memcpy): Remove decl; no longer needed.
(strcasecoll, strcasecmp): Define if not built in.
(CTYPE_DOMAIN, ISPRINT, ISSPACE, TOLOWER, _tolower, errno): Remove;
we now assume C89 or better.  All uses changed.
Include <stdbool.h> unconditionally now, since gnulib supports it
if the C compiler doesn't.  All boolean uses of 0 and 1 now
changed to false and true.
(lin_is_printable_as_long_int): Renamed from lin_is_printable_as_long.
2004-04-12 07:44:35 +00:00
Paul Eggert
5af1582ab8 minor cleanups for bool, etc 2004-04-12 07:44:35 +00:00
Paul Eggert
c151c4194b (usage): Mention exit status.
(main): Adjust to latest gnulib c_stack_action calling conventions.
Adjust to latest version_etc calling conventions.
Include <unlocked-io.h>, <exit.h>.
(check_child_status): Renamed from ck_editor_status, and
accept a new arg MAX_OK_STATUS.  All callers changed.
Handle status 126/127 as per POSIX.
(edit): Likewise.
(main): Likewise.  Fix getopt typo: -E wasn't supported.
2004-04-12 07:44:35 +00:00
Paul Eggert
4cdc5fbf2b Do not include regex.h, as diff.h does this now.
(find_and_hash_each_line): Don't convert char *
to unsigned char *; just leave pointers as char *.  This
lessens the number of potentially-dangerous casts.
2004-04-12 07:44:35 +00:00
Paul Eggert
fbe4a6f698 (next_line): Remove; replace with...
(next_line0, next_line1): New vars.
(print_ifdef_script, print_ifdef_hunk):
Use them to fix line-number computation bug.
2004-04-12 07:44:35 +00:00
Paul Eggert
b4a6ac7a09 int -> long int 2004-04-12 07:44:35 +00:00
Paul Eggert
ede07ddb4d Include <strcase.h>.
(failed_locale_specific_sorting): Renamed from failed_strcoll.
All uses changed.
(compare_names): Don't invoke strcasecmp first thing when
ignore_file_name_case; if locale_specific_sorting, we should
just use that.
2004-04-12 07:44:35 +00:00
Paul Eggert
d5b0491a31 (usage): Mention exit status.
(main): Adjust to latest gnulib c_stack_action calling conventions.
Adjust to latest version_etc calling conventions.
Include unlocked-io.h.
(strip_trailing_cr): New var.
(STRIP_TRAILING_CR_OPTION): New enum.
(longopts, main, option_help_msgid, read_diff):
Add --strip-trailing-cr support.
(read_diff): Exit with status 126 (not 127) if errno != ENOENT
after failed execvp in child.  Report this in parent.
2004-04-12 07:44:35 +00:00
Paul Eggert
70a8b49b0f Include regex.h, unlocked-io.h.
(struct file_data.changed): Now char *, not bool *, to save
space on hosts where bool takes more space than char.
All uses changed.
2004-04-12 07:44:35 +00:00
Paul Eggert
0b52cc41fc Do not include regex.h, as diff.h does this now.
(option_help_msgid): Mention exit status.
(main): Adjust to latest gnulib c_stack_action calling conventions.
Adjust to latest version_etc calling conventions.
Include <exit.h>.
(binary): Define to true if not declared.
(longopts): Set tabsize flag to 1.
(main): Don't output nanoseconds if platform lacks them.
Don't treat files as binary if !binary.
(set_mtime_to_now): Use 0, not NULL.
(compare_files): Mark files as nonexistent if it looks like
'patch' created inaccessible regular empty files to denote
nonexistent backups.  Don't compare such files.
Clear st_* members of status of	nonexistent file.
Remove now-unnecessary tests.
2004-04-12 07:44:35 +00:00
Paul Eggert
fae8239911 Do not include regex.h, as diff.h does this now. 2004-04-12 07:44:35 +00:00
Paul Eggert
61d1ff8d50 Sort includes. Include <exit.h>, <unlocked-io.h>.
(specify_comparison_type): Don't report an error if the comparison
type has already been specified the same way as this one.
(usage): Mention exit status.
(main): Adjust to latest gnulib c_stack_action calling conventions.
(main): Adjust to latest version_etc calling conventions.
2004-04-12 07:44:35 +00:00
Paul Eggert
0ebd95fcbd (SUBDIRS): Remove.
(EXTRA_DIST, noinst_HEADERS): Remove most entries.
(libdiffutils_a_SOURCES): Now just lib_SOURCES.
(lib_SOURCES): New macro.
(DISTCLEANFILES, MOSTLYCLEANFILES): Set to empty now.
(gnulib.mk): Include: this does most of the work eliminated
by the above changes.
2004-04-12 07:44:35 +00:00
Paul Eggert
59500c52b2 (set_binary_mode): Return true, not 1. 2004-04-12 07:44:35 +00:00
Paul Eggert
6fc04adf12 (__attribute__): New macro.
(set_binary_mode): Define only if HAVE_SETMODE_DOS.
Otherwise define a dummy static char, as C89 requires
that we define something.
2004-04-12 07:44:35 +00:00
Paul Eggert
6243e2580a (dircategory): Change to "Text creation and
manipulation" from "GNU packages".
(Translations): New node.
(Overview): Improve quality of algorithm citations.
(Binary): -q doesn't exactly cause diff to assume files are binary.
(Normal): Place after Side by Side, since it's less important.
(Detailed Context, Detailed Unified, Detailed ed,
Detailed if-then-else, diff3 Hunks, Detailed diff3 Normal):
Place at end of menu.
(Detailed Unified): Mention that fractional timestamps are
omitted on hosts that don't support them.
Mention what happens when hunks contain just one line.
(Line Group Formats, Reject Names): Fix duplicate-word typos.
(Comparing Directories): Trailing white space and empty lines are
ignored in the -X file.
(diff Options): Add --strip-trailing-cr.
(Projects): gnu -> gvc@gnu.org.
2004-04-12 07:44:35 +00:00
Paul Eggert
16b4efacf9 (diag): Return void, not lin, since the return
value wasn't needed.  All callers changed.
(diag, diff_2_files):
Use 'true' and 'false' instead of '1' and '0', when appropriate.
(compareseq): Use lin const * local variables instead of lin *.
Don't bother checking diag's return value.
(shift_boundaries, build_reverse_script, build_script, diff_2_files):
Use char arrays, not bool arrays, since
sizeof (bool) might be greater than 1.
2004-03-12 04:39:09 +00:00
Paul Eggert
4ed49df5e4 (Makefile.am): Don't use $<, as it doesn't work with Solaris make. 2004-03-08 00:03:44 +00:00
Paul Eggert
da9e16ed92 (AC_FUNC_SETMODE_DOS): AC_LIBOBJ(setmode) if true. 2004-02-09 08:29:40 +00:00
Paul Eggert
a6c2999cb2 coreutils 5.2.0 2004-01-12 20:52:38 +00:00
Paul Eggert
55865b500d Use a single locale for both British and American English,
since we don't need to use '-ise' in Britain, says the OED.
2003-07-28 00:57:07 +00:00
Paul Eggert
74e3ee8f19 (diff3.$(OBJEXT), diff.$(OBJEXT), sdiff.$(OBJEXT)):
Rename from (misspelled) diff3.$(OBJECT), diff.$(OBJECT), sdiff.$(OBJECT).
Patch by Paul D. Smith in
<http://mail.gnu.org/pipermail/bug-gnu-utils/2002-October/003251.html>.
Bug reported by Chris Bainbridge.
2002-10-15 03:57:20 +00:00
Paul Eggert
b6a7784af6 (MOSTLYCLEANFILES): Add paths.ht.
(paths.h): Send output to paths.ht first, and then rename to
paths.h at the end.  This avoids problems if the disk is full.
It also works around what appears to be a bug with GNU make -j
(3.79.1); see <http://bugs.gentoo.org/show_bug.cgi?id=8934>.
2002-10-14 04:40:20 +00:00
Paul Eggert
2b39a9397d (TYPE_SIGNED): Remove.
(INT_STRLEN_BOUND): Don't use TYPE_SIGNED; that way, the macro works
for either a type or an object.
2002-09-22 07:52:26 +00:00
Paul Eggert
d8c6a49f1a (jm_FUNC_REALLOC): Define HAVE_REALLOC if realloc works. 2002-08-12 07:38:20 +00:00
Paul Eggert
cf8a358fdf (jm_FUNC_MALLOC): Define HAVE_MALLOC if malloc works. 2002-08-12 07:34:43 +00:00
Paul Eggert
f7a75bc37a Snapshot before syncing with gnulib again. 2002-08-07 09:10:36 +00:00
Paul Eggert
eb2b167bec Switch to GPL. 2002-08-04 11:15:53 +00:00
Paul Eggert
da7959d1e0 Include sys/time.h; from Volker Borchert. 2002-07-01 14:19:20 +00:00
Paul Eggert
6d38b808b9 (AC_INIT): Version 2.8.4. v2.8.4 2002-06-28 07:00:15 +00:00
Paul Eggert
a352f09806 (briefly_report): Don't say "Binary files differ", since one
of the files may not be a binary file.
Bug reported by Dan Jacobson.
2002-06-28 06:58:59 +00:00
Paul Eggert
f8d4015e36 (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
Do not assume SA_SIGINFO behavior.
Bug reported by Jim Meyering on NetBSD 1.5.2.
2002-06-22 13:29:17 +00:00
Paul Eggert
932176da4c Version 2.8.3. v2.8.3 2002-06-17 07:19:01 +00:00
Paul Eggert
ee74fb1947 Add en_US. 2002-06-17 07:15:20 +00:00
Paul Eggert
5ac585d8c0 Translate "Torbjorn". 2002-06-17 07:03:37 +00:00
Paul Eggert
00ec5e4806 Initial revision 2002-06-17 07:03:37 +00:00
Paul Eggert
886c533f81 Include version-etc.h, not freesoft.h.
(copyright_notice): Remove.
(main): Use version_etc to print version.
(version_string): Remove decl.
2002-06-17 06:45:46 +00:00
Paul Eggert
d6a560a408 Remove lib/freesoft.c.
Add lib/file-type.c, lib/version-etc.c, lib/xmalloc.c.
2002-06-17 06:31:13 +00:00
Paul Eggert
12e1995d93 (version_string): Remove decl. 2002-06-17 05:55:42 +00:00