summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* (EXTRA_DIST): Add fnmatch_loop.c.Paul Eggert2002-06-111-5/+6
| | | | | | | | (noinst_HEADERS): fnmatch_.h renamed from fnmatch.hin. regex_.h renamed from regex.hin. Add file-type.h. (libdiffutils_a_SOURCES): Add file-type.c. (DISTCLEANFILES): Remove fnmatch.hno, regex.hno.
* (__const): Do not define to empty, as this breaksPaul Eggert2002-06-111-7/+4
| | | | Sun cc. The code doesn't work with K&R anyway.
* (alloca, __builtin_expect): Define for non-GCC hosts.Paul Eggert2002-06-111-45/+56
| | | | | | | | | | | | | | | <strings.h>: Include only if HAVE_STRINGS_H. <stddef.h>: Include if we include stdlib.h. Do not comment out all code if ! HAVE_FNMATCH_GNU. (getenv): Do not declare if HAVE_DECL_GETENV. (__strchrnul, __wcschrnul): Remove; not used. (MEMPCPY): Use mempcpy if not _LIBC; use memcpy if neither _LIBC nor HAVE_MEMPCPY. (FOLD) [HANDLE_MULTIBYTE]: Do not pass wide char to ISUPPER. (STRLEN, STRCAT, MEMPCPY) [HANDLE_MULTIBYTE && !defined _LIBC]: Use wcslen rather than __wcslen, and likewise for wcscat, wmempcpy. (MEMPCPY) [HANDLE_MULTIBYTE]: Use wmempcpy if not _LIBC; use wmemcpy if neither _LIBC nor HAVE_WMEMPCPY.
* (siginfo_t, c_stack_die): Remove decl.Paul Eggert2002-06-111-6/+1
|
* (__attribute__): New macro.Paul Eggert2002-06-111-100/+292
| | | | | | | | | | | | | | | | | | | | | | | | (EOVERFLOW): Define if not defined.(stack_t): Define to struct sigaltstack if not defined or declared. Include <sys/resource.h>, <ucontext.h> if available. Include <stdio.h> if DEBUG. Do not include <inttypes.h> or <stdint.h>. (c_stack_die): Remove info and context args. All uses changed. (segv_action): Likewise. (alternate_signal_stack): Change uintmax_t to long, to ease porting. (get_stack_location, min_address_from_argv, max_address_from_argv, null_action): New functions. (stack_base, stack_size): New vars. (segv_handler): context arg may not be used. Use global stack_base, stack_size if ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC. Add debug code. Invoke die (rather than segv_action) to exit. (c_stack_action): Accept new argv arg, and simpler handler arg. All uses changed. Move code into new functions above. Allow null action. [! (defined SA_ONSTACK && defined _SC_PAGESIZE)]: Assume all segvs are stack overflows. (main) [DEBUG]: Describe what output should be like.
* Initial revisionPaul Eggert2002-05-101-0/+69
|
* (__restrict_arr): Define for GCC 3.1 and up.Paul Eggert2002-04-081-5/+9
|
* (errno): Remove declaration; K&R C is obsolete.Paul Eggert2002-04-051-12/+33
| | | | | | | | | Include limits.h. (SIZE_MAX, SSIZE_MAX): Define if standard headers don't. (MIN): New macro. (block_read): Do not attempt to read more than SSIZE_MAX bytes, as the resulting behavior is implementation-defined. Work around bug in Tru64 5.1, which can't read more than INT_MAX bytes at a time.
* (c_stack_die) [!HAVE_SIGINFO_T]: Don't use info.Paul Eggert2002-03-241-0/+2
| | | | Bug reported by Eli Zaretskii.
* (alloca): Remove.Paul Eggert2002-03-121-34/+23
| | | | | Include stdlib.h if available, for malloc. (hard_locale): Use malloc, not alloca. Test for storage allocation failure.
* (AUTOMAKE_OPTIONS): Remove.Paul Eggert2002-03-111-2/+0
|
* Include <errno.h>Paul Eggert2002-03-111-143/+67
| | | | | | | | | | | | | | (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.
* Initial revisionPaul Eggert2002-02-284-0/+386
|
* (buffer_lcm): New arg LCM_MAX.Paul Eggert2002-02-281-2/+19
|
* Include errno.h.Paul Eggert2002-02-281-8/+60
| | | | | | | | | | | | | (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.
* (noinst_HEADERS): Add c-stack.h, exitfail.h.Paul Eggert2002-02-281-6/+5
| | | | | (libdiffutils_a_SOURCES): Add c-stack.c, exitfail.c, quotesys.c. (INCLUDES): Remove.
* Include exitfail.h.Paul Eggert2002-02-281-6/+3
| | | | | (xalloc_exit_failure): Remove; subsumed by exit_failure. All uses changed.
* (xalloc_exit_failure): Remove; subsumed by exit_failure.Paul Eggert2002-02-281-6/+1
|
* Include "hard-locale.h".Paul Eggert2002-02-281-2/+5
| | | | | (hard_locale): Ignore ENABLE_NLS, since we want to operate on locales other than LC_MESSAGES.
* Initial revisionPaul Eggert2002-02-162-0/+59
|
* Include <string.h>. Reported by Bruno Haible.Paul Eggert2002-01-241-1/+2
|
* Fix comment.Paul Eggert2002-01-241-2/+2
|
* (noinst_HEADERS): Add gettext.h.Paul Eggert2002-01-241-3/+3
|
* Initial revisionPaul Eggert2002-01-051-0/+71
|
* [HAVE_FCNTL_H && HAVE_SETMODE_DOS]: Include <fcntl.h>.Paul Eggert2001-12-241-9/+13
| | | | | | [!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.
* Latest version from self.Paul Eggert2001-12-221-15/+18
|
* Initial revisionPaul Eggert2001-12-112-0/+85
|
* (noinst_HEADERS): Add dirname.h, setmode.h.Paul Eggert2001-12-111-4/+5
| | | | (libdiffutils_a_SOURCES): Add basename.c, setmode.c.
* Fix copyright notice.Paul Eggert2001-12-031-16/+12
|
* diffutils 2.7.7Paul Eggert2001-12-031-0/+343
|
* (EXTRA_DIST): Add xstrtol.c.Paul Eggert2001-12-031-3/+4
| | | | | (noinst_HEADERS): Add xstrtol.h. (libdiffutils_a_SOURCES): Add xstrtoumax.c.
* (__xstrtol): Don't accept 'Ki'; require 'KiB'.Paul Eggert2001-12-031-14/+11
|
* (__xstrtol): Add support for IEC 60027-2.Paul Eggert2001-12-031-9/+23
|
* (EXTRA_DIST): Add strtoimax.c, strtol.c.Paul Eggert2001-11-251-1/+1
|
* (noinst_HEADERS): Add unlocked-io.h.Paul Eggert2001-11-251-1/+2
|
* Initial revisionPaul Eggert2001-11-239-0/+256
|
* Include config.h, freesoft.h rather than diff.h.Paul Eggert2001-11-231-4/+26
| | | | (free_software_msgid): Wrap contents in N_.
* Use prototypes instead of old-style functions.Paul Eggert2001-11-231-21/+3
|
* Don't include system.h; instead, include config.h, unistd.h.Paul Eggert2001-11-231-15/+21
| | | | | Use prototypes instead of old-style functions. (block_read): Don't assume that int is no wider than size_t.
* Initial revisionPaul Eggert2001-11-041-0/+1067
|
* Initial revisionPaul Eggert2001-10-271-0/+1188
|
* Initial revisionPaul Eggert2001-10-221-0/+87
|
* Initial revisionPaul Eggert2001-09-291-0/+288
|
* Initial revisionPaul Eggert2001-08-232-0/+366
|
* Initial revisionPaul Eggert2001-07-071-0/+83
|
* Initial revisionPaul Eggert2001-07-061-0/+372
|
* Initial revisionPaul Eggert2001-04-021-0/+566
|
* Initial revisionPaul Eggert2001-01-261-0/+116
|
* Initial revisionPaul Eggert2000-10-311-0/+87
|
* Initial revisionPaul Eggert2000-08-071-0/+38
|