46 Commits

Author SHA1 Message Date
Paul Eggert
0d3dcc25e7 (alloca): Remove.
Include stdlib.h if available, for malloc.
(hard_locale): Use malloc, not alloca.  Test for storage allocation failure.
2002-03-12 06:34:28 +00:00
Paul Eggert
dbea9821b7 (AUTOMAKE_OPTIONS): Remove. 2002-03-11 08:00:47 +00:00
Paul Eggert
1e15bf9664 Include <errno.h>
(ENOTSUP): Define if errno.h doesn't.
(SA_NODEFER, SA_ONSTACK, SA_RESETHAND, SA_SIGINFO, SIGSTKSZ, _SC_PAGESIZE,
ALTERNATE_STACK_SIZE, stack_t, sigaltstack): Remove; we now assume them
all when HAVE_XSI_STACK_OVERFLOW_HEURISTIC, so we don't need substitutes.
(<ucontext.h>): Include only if HAVE_XSI_STACK_OVERFLOW_HEURISTIC.
(alternate_signal_stack): Now of size SIGSTKSZ, not ALTERNATE_STACK_SIZE.
(segv_handler): Simplify, under the assumption that
HAVE_XSI_STACK_OVERFLOW_HEURISTIC is nonzero.
(c_stack_action): Likewise.
(exit_failure) [DEBUG]: Initialize to 0, not 1.
(recurse, main) [DEBUG]: Remove main args.
2002-03-11 08:00:47 +00:00
Paul Eggert
9f0eff52c2 Initial revision 2002-02-28 04:28:07 +00:00
Paul Eggert
8d9e3b29bf (buffer_lcm): New arg LCM_MAX. 2002-02-28 04:28:07 +00:00
Paul Eggert
47b633e3cf Include errno.h.
(errno): Declare if !STDC_HEADERS.
Include signal.h.
(SA_RESTART): Define if not already defined.
Include <inttypes.h>.
(PTRDIFF_MAX): Define if not already defined.
(TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
(block_read): Accommodate ancient AIX hosts that set errno to EINTR
after uncaught SIGCONT.
(buffer_lcm): Return a reasonable size if the multiple is too large.
New arg LCM_MAX.  All callers changed.
2002-02-28 04:28:07 +00:00
Paul Eggert
a44befd50b (noinst_HEADERS): Add c-stack.h, exitfail.h.
(libdiffutils_a_SOURCES): Add c-stack.c, exitfail.c, quotesys.c.
(INCLUDES): Remove.
2002-02-28 04:28:07 +00:00
Paul Eggert
2e507ad1c0 Include exitfail.h.
(xalloc_exit_failure): Remove; subsumed by exit_failure.
All uses changed.
2002-02-28 04:28:07 +00:00
Paul Eggert
b89fe19666 (xalloc_exit_failure): Remove; subsumed by exit_failure. 2002-02-28 04:28:07 +00:00
Paul Eggert
8eb1bae700 Include "hard-locale.h".
(hard_locale): Ignore ENABLE_NLS, since we want to operate on
locales other than LC_MESSAGES.
2002-02-28 04:28:07 +00:00
Paul Eggert
38231fc04f Initial revision 2002-02-16 05:30:19 +00:00
Paul Eggert
5289afd403 Include <string.h>. Reported by Bruno Haible. 2002-01-24 20:16:38 +00:00
Paul Eggert
eadc9ce7d6 Fix comment. 2002-01-24 20:16:38 +00:00
Paul Eggert
75cd3e885f (noinst_HEADERS): Add gettext.h. 2002-01-24 20:16:38 +00:00
Paul Eggert
c30fa59166 Initial revision 2002-01-05 21:13:09 +00:00
Paul Eggert
e053f8c49d [HAVE_FCNTL_H && HAVE_SETMODE_DOS]: Include <fcntl.h>.
[!HAVE_SETMODE_DOS]: Do not include <unistd.h>.
(set_binary_mode): Return mode (not 1) if fd is a tty.
Do not assume that O_TEXT is zero.
2001-12-24 00:09:16 +00:00
Paul Eggert
26b18e2062 Latest version from self. 2001-12-22 01:48:53 +00:00
Paul Eggert
d104e14d8e Initial revision 2001-12-11 08:11:35 +00:00
Paul Eggert
412c4f3436 (noinst_HEADERS): Add dirname.h, setmode.h.
(libdiffutils_a_SOURCES): Add basename.c, setmode.c.
2001-12-11 08:09:04 +00:00
Paul Eggert
39ac13e212 Fix copyright notice. 2001-12-03 14:05:54 +00:00
Paul Eggert
0ac2866bd3 diffutils 2.7.7 2001-12-03 13:56:28 +00:00
Paul Eggert
75ea63a2d7 (EXTRA_DIST): Add xstrtol.c.
(noinst_HEADERS): Add xstrtol.h.
(libdiffutils_a_SOURCES): Add xstrtoumax.c.
2001-12-03 13:12:06 +00:00
Paul Eggert
c99680457c (__xstrtol): Don't accept 'Ki'; require 'KiB'. 2001-12-03 06:23:58 +00:00
Paul Eggert
cc58a4f806 (__xstrtol): Add support for IEC 60027-2. 2001-12-03 05:33:58 +00:00
Paul Eggert
9b53dc8757 (EXTRA_DIST): Add strtoimax.c, strtol.c. 2001-11-25 07:36:42 +00:00
Paul Eggert
7577cc7fb6 (noinst_HEADERS): Add unlocked-io.h. 2001-11-25 07:25:31 +00:00
Paul Eggert
f78da6466e Initial revision 2001-11-23 13:28:32 +00:00
Paul Eggert
cd1a913b43 Include config.h, freesoft.h rather than diff.h.
(free_software_msgid): Wrap contents in N_.
2001-11-23 13:04:25 +00:00
Paul Eggert
e28790892e Use prototypes instead of old-style functions. 2001-11-23 13:02:42 +00:00
Paul Eggert
33d72d80bc Don't include system.h; instead, include config.h, unistd.h.
Use prototypes instead of old-style functions.
(block_read): Don't assume that int is no wider than size_t.
2001-11-23 13:02:08 +00:00
Paul Eggert
8e78630e37 Initial revision 2001-11-04 01:21:33 +00:00
Paul Eggert
8a650ddd00 Initial revision 2001-10-27 00:37:40 +00:00
Paul Eggert
ce4ac3d8f5 Initial revision 2001-10-22 08:00:19 +00:00
Paul Eggert
5e0ab37d1b Initial revision 2001-09-29 01:15:42 +00:00
Paul Eggert
37788019c2 Initial revision 2001-08-23 17:25:08 +00:00
Paul Eggert
688ab06db1 Initial revision 2001-07-07 04:55:38 +00:00
Paul Eggert
42bf2924b0 Initial revision 2001-07-06 04:44:39 +00:00
Paul Eggert
7109958ae4 Initial revision 2001-04-02 08:26:15 +00:00
Paul Eggert
4dcf610052 Initial revision 2001-01-26 11:13:28 +00:00
Paul Eggert
eb477ba945 Initial revision 2000-10-31 07:09:56 +00:00
Paul Eggert
0090fd30f9 Initial revision 2000-08-07 15:48:18 +00:00
Paul Eggert
6e9a130189 Initial revision 1998-09-14 00:26:54 +00:00
Paul Eggert
f618b639bd (block_read): New decl. 1998-09-13 05:33:07 +00:00
Paul Eggert
c8cc5a397c (block_read): Moved here from cmp.c. 1998-09-13 05:33:07 +00:00
Paul Eggert
a9dde9e085 Initial revision 1993-08-27 17:30:26 +00:00
Paul Eggert
3e492ee56a GNU diffutils 2.7 1993-08-23 05:44:15 +00:00