summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* (option_help_msgid): Do not document -L, -P, --horizon-lines,Paul Eggert2002-03-121-7/+7
| | | | --inhibit-hunk-merge, -H.
* (specify_comparison_type): New function.Paul Eggert2002-03-121-15/+21
| | | | | (check_stdout): "indices and codes" -> "byte numbers and values" (main): Use specify_comparison_type to detect option clashes.
* (jm_PREREQ): Add jm_PREREQ_HARD_LOCALE.Paul Eggert2002-03-121-0/+8
| | | | (jm_PREREQ_HARD_LOCALE): New macro.
* (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.
* (Overview): byte != character.Paul Eggert2002-03-121-291/+105
| | | | | | | | | | | | | | | (Detailed Context, Detailed Unified, Alternate Names, diff Options): Do not document diff -L. (Comparing Directories): Do not document diff -P. (Making Patches, diff Options): Likewise. (diff Performance, sdiff Option Summary, diff Options, sdiff Options): Do not document diff -H. (diff Performance, diff Options): Do not document --horizon-lines. (cmp Options): Prefer -b to -c. (cmp Options, diff Options, diff3 Options, sdiff Options): Put short options next to the similar long options. Document --help, and use the same wording for --verbose on all commands. (diff3 Options): Fix typo in description of -E, which used wrongly used "-e" instead of "-E". (patch Options): Put short options next to the similar long options.
* Do not distribute shar file.Paul Eggert2002-03-111-1/+1
|
* Initial revisionPaul Eggert2002-03-112-0/+55
|
* (option_help_msgid, usage): Reword for help2man.Paul Eggert2002-03-112-10/+10
|
* Remove trailing white space.Paul Eggert2002-03-112-2/+2
|
* (option_help_msgid): Reword for help2man.Paul Eggert2002-03-111-4/+6
|
* (usage): Reword for help2man.Paul Eggert2002-03-111-4/+5
|
* (AUTOMAKE_OPTIONS): Remove.Paul Eggert2002-03-113-6/+1
|
* Add zh_TW.Paul Eggert2002-03-111-1/+1
|
* (AUTOMAKE_OPTIONS): Remove gnits.Paul Eggert2002-03-111-3/+1
|
* (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change wording of message.Paul Eggert2002-03-111-6/+3
| | | | | Do not check for stdbool.h or ucontext.h, or for ucontext_t or sigaction or sigaltstack.
* 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.
* (AC_INIT): Change package name from diff to diffutils. Bump versionPaul Eggert2002-03-111-3/+6
| | | | | | | | | to 2.7.9. (AM_INIT_AUTOMAKE): Use new form, with options gnits dist-shar, rather than old from that duplicated AC_INIT. (AM_MISSING_PROG): Add help2man. (REGEX_MALLOC): Define. (AC_CONFIG_FILES): Add man/Makefile.
* Add man pages.Paul Eggert2002-03-111-2/+3
|
* (AUTOMAKE_OPTIONS): Remove.Paul Eggert2002-03-111-2/+1
| | | | (SUBDIRS): Add man.
* Update to autoconf 2.53, automake 1.6, help2man 1.25 with patch.Paul Eggert2002-03-111-189/+51
| | | | .
* Tweak editing of install-info-am andPaul Eggert2002-03-021-4/+7
| | | | | uninstall-info-am targets, to include 8+3-butchered names of Info files.
* Remove trailing white spacePaul Eggert2002-03-011-1/+1
|
* Initial revisionPaul Eggert2002-03-011-0/+112
|
* Include <xalloc.h>.Paul Eggert2002-02-281-0/+2
|
* (LONG_OPTION, GROUP_FORMAT_OPTION, LINE_FORMAT_OPTION): Remove.Paul Eggert2002-02-281-13/+4
| | | | (longopts): Revert to prevision version.
* Reword to put POSIX first.Paul Eggert2002-02-281-3/+4
|
* diff -NUM is now deprecated.Paul Eggert2002-02-281-13/+13
| | | | | | diff now takes the maximum of the specified contexts. Conflicting options now cause an error again. "Microsoft OSes" -> DGJPP
* (AC_INIT, AM_INIT_AUTOMAKE): Version 2.7.8Paul Eggert2002-02-281-11/+7
| | | | | | | | (AC__GNU_SOURCE): Add this, replacing AH_VERBATIM of _GNU_SOURCE. (AM_GNU_GETTEXT): Add external arg, from gettext 0.11. (tempname): Use AC_LIBOBJS, not LIBOBJS=, as now required by autoconf. (jm_PREREQ_C_STACK): Add. (AC_CONFIG_FILES): Remove intl/Makefile.
* 2 -> EXIT_TROUBLE.Paul Eggert2002-02-281-11/+12
| | | | | Adopt POSIX convention for ENOEXEC and exit status 126. unsigned -> unsigned int
* Don't use alloca or include <alloca.h>.Paul Eggert2002-02-281-26/+24
| | | | | | | | unsigned -> unsigned int (EXIT_SUCCESS, EXIT_FAILURE, EXIT_TROUBLE): Define if not defined. Include signal.h. (SA_RESTART): Define if not defined. (SIGCHLD): Likewise.
* unsigned -> unsigned int.Paul Eggert2002-02-282-24/+29
|
* Include c-stack.h, exitfail.h. Do not include signal.h.Paul Eggert2002-02-281-34/+43
| | | | | | | | | | | 0 -> EXIT_SUCCESS, 1 -> EXIT_FAILURE, 2 -> EXIT_TROUBLE. (ck_editor_status): New function. (main): Check for stack overflow. Adopt POSIX convention for subsidiary programs not found. (diffarg): Check for integer overflow to avoid core dumps. (trapsigs): Remove SA_INTERRUPT special case; now done by header. (SIGCHLD): Likewise. (edit): Adopt POSIX convention for subsidiary programs not found.
* (sip): Avoid integer overflow and core dumps if buffer alignments arePaul Eggert2002-02-281-48/+92
| | | | | | | | | | | preposterously incompatible. (slurp): Do not dump core if the file is growing as we read it. If a regular file grows, keep reading until we catch up with its EOF. (find_and_hash_each_line): Check for integer overflow to avoid core dumps. (GUESS_LINES): Remove. (guess_lines): New function. Avoid integer overflow. (find_identical_ends): Use it. Avoid integer overflow and possible core dumps.
* (format_group, print_ifdef_lines): Avoid core dumps withPaul Eggert2002-02-281-17/+17
| | | | | bad formats. (do_printf_spec): Avoid alloca.
* (dir_read): Ignore st_size of directories: POSIX says it's garbage.Paul Eggert2002-02-281-7/+14
| | | | | Check for integer overflow to avoid core dumps. (diff_dirs): 0 -> EXIT_SUCCESS, 2 -> EXIT_TROUBLE.
* Include c-stack.h, exitfail.h.Paul Eggert2002-02-281-51/+63
| | | | | | | | | | | | | | | | | (ALLOCATE): Remove. All uses changed to xmalloc, or to xmalloc plus an overflow check. (myread): Remove. (main): Check for stack overflow. 0 -> EXIT_SUCCESS, 1 -> EXIT_FAIULRE, 2 -> EXIT_TROUBLE. (try_help): Likewise. (process_diff): Check for integer overflow, to avoid core dumps. 2 -> EXIT_TROUBLE. (read_diff): Exit with status 126 if the file is not executable, for compatibility with POSIX 1003.1-2001. Accommodate ancient AIX hosts that set errno to EINTR after uncaught SIGCONT. Check for integer overflow to avoid core dumps. (fatal, perror_with_exit): 2 -> EXIT_TROUBLE.
* Include c-stack.h, exitfail.h.Paul Eggert2002-02-281-225/+261
| | | | | | | | | | | | | | | | | | | | | | | | | | | Do not include signal.h. (specify_style, specify_value): Bring these routines back, as POSIX requires that the order of options not matter. (shortopts): New constant. (group_format_option, line_format_option): New constants. (LONG_OPTION, GROUP_FORMAT_OPTION, LINE_FORMAT_OPTION): New macros. (longopts): Use them. (main): 0 -> EXIT_SUCCESS, 1 -> EXIT_FAILURE, 2 -> EXIT_TROUBLE. Ensure that order of options does not matter. Check for stack overflow. If contexts overflow, substitute LIN_MAX, as that's good enough. If multiple contexts are specified, use their maximum. -c is equivalent to -C 3 now, instead of having an implicit context; likewise for -u and -U 3. Use specify_style and specify_value. (SIGCHLD): Do not define; now done in a header. Use new style time stamp format for -u / -U. Reject numeric-string options if operating in POSIX 1003.1-2001 mode. Avoid overflow problems with tab width. Simplify from-file and to-file code. (usage): Do not mention obsolete options. (filetype): Do not mention whether a file is executable. Add typed memory objects. (compare_files): 0 -> EXIT_SUCCESS, 1 -> EXIT_FAILURE, 2 -> EXIT_TROUBLE.
* (pr_context_hunk): Do not dump core if an enormous context causes anPaul Eggert2002-02-281-13/+36
| | | | | | arithmetic overflow. (pr_unidiff_hunk): Likewise. (find_hunk): Likewise.
* Include c-stack.h, exitfail.h.Paul Eggert2002-02-281-31/+43
| | | | | | | | | | | (hard_locale_LC_MESSAGES): Depend on ENABLE_NLS. (try_help, check_stdout, main, cmp): 2 -> EXIT_TROUBLE. (main): Check for stack overflow. 0 -> EXIT_SUCCESS. 1 -> EXIT_FAILURE. (cmp): Likewise. Accommodate ancient AIX hosts that set errno to EINTR after uncaught SIGCONT.
* (diff_2_files): Avoid arithmetic overflow in buffer size calculation.Paul Eggert2002-02-281-3/+5
|
* (datadir): @DATADIRNAME@ -> share.Paul Eggert2002-02-281-7/+4
| | | | | (INCLUDES): Remove intl. (LDADD): Change INTLLIBS to LIBINTL. No need to link libdiffutils.a twice.
* Add lib/c-stack.c, src/dir.c.Paul Eggert2002-02-281-1/+3
|
* Add cs, ja.Paul Eggert2002-02-281-1/+1
|
* (AC_FUNC_SETMODE_DOS): Check for fcntl.h and unistd.h unconditionally.Paul Eggert2002-02-281-4/+4
|
* (jm_PREREQ): Add jm_PREREQ_POSIXVER.Paul Eggert2002-02-281-0/+7
| | | | (jm_PREREQ_POSIXVER): New macro.
* Initial revisionPaul Eggert2002-02-285-0/+520
|
* (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.