summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* (S_IXUSR, S_IXGRP, S_IXOTH): New macros.Paul Eggert2001-12-111-33/+13
| | | | | Include <libgettext.h> rather than rolling it ourselves. (file_name_lastdirchar, HAVE_SETMODE, set_binary_mode): Remove.
* Include <dirname.h>.Paul Eggert2001-12-111-5/+6
| | | | | | | (expand_name): Use base_name rather than file_name_lastdirchar, for portability to DOS. (main): Initialize xalloc_exit_failure before possibly invoking any memory allocator.
* Include setmode.h.Paul Eggert2001-12-111-0/+1
|
* (main): Initialize xalloc_exit_failure before possibly invoking any memoryPaul Eggert2001-12-111-1/+1
| | | | allocator.
* Include dirname.h, setmode.h.Paul Eggert2001-12-111-80/+79
| | | | | | | | | | | | | | | | | (main): Later values and/or styles now silently override earlier. (specify_value, specify_style): Likewise. All callers changed. Remove. (binary, main, option_help_msgid, compare_files): HAVE_SETMODE -> HAVE_SETMODE_DOS. (NO_IGNORE_FILE_NAME_CASE_OPTION): New constant. (longopts, main, option_help_msgid): Support it. (exclude_options): New function. (main): Use it. Initialize xalloc_exit_failure before potentially allocating memory. (filetype): Distinguish executable files from others, as POSIX suggests. (compare_files): Use base_name instead of file_name_lastdirchar.
* Include <hard-locale.h>, <setmode.h>.Paul Eggert2001-12-111-40/+77
| | | | | | | | | | | | | | (hard_locale_LC_MESSAGES): New macro. (sprintc): Remove int width arg; it's now the caller's responsibility to pad. All callers changed. (stat_buf): New static var; was formerly a local var in 'main'. (valid_suffixes): Add 'K', for 'KiB'. (option_help_msgid): Don't confuse bytes with characters. (main): Set xalloc_exit_failure before invoking anything that might allocate memory. Fix bug: -n was incorrectly ignored when optimizing the case of regular files with different lengths. (cmp): Use an index column wide enough to store this comparison's indexes. In locales other than the POSIX locale, say "byte" rather than "char".
* pc -> msPaul Eggert2001-12-111-4/+4
|
* Initial revisionPaul Eggert2001-12-114-0/+144
|
* (noinst_HEADERS): Add dirname.h, setmode.h.Paul Eggert2001-12-111-4/+5
| | | | (libdiffutils_a_SOURCES): Add basename.c, setmode.c.
* (AM_INIT_AUTOMAKE): Version 2.7.5.Paul Eggert2001-12-111-4/+9
| | | | | | | | (PR_PROGRAM): Use AC_DEFINE_UNQUOTED, so that $PR_PROGRAM is expanded by sh. (ptrdiff_t, ssize_t): Use AC_CHECK_TYPE with a default of int, not AC_CHECK_TYPES. (jm_AC_DOS, AC_FUNC_SETMODE_DOS): New macros. (AC_CONFIG_FILES): Add ms/Makefile.
* (SUBDIRS): Add ms.Paul Eggert2001-12-111-1/+1
|
* Fix copyright notice.Paul Eggert2001-12-031-16/+12
|
* diffutils 2.7.7Paul Eggert2001-12-031-0/+343
|
* (direntry, Overview, Comparison, Binary, Invoking cmp): Use "byte"Paul Eggert2001-12-031-17/+92
| | | | | | | | | | rather than "character" when talking about cmp, since it compares bytes, not character. (Invoking cmp): New trailing operands FROM-SKIP and TO-SKIP. -i or --ignore-initial now accepts FROM-SKIP:TO-SKIP. New option -n or --bytes. Count operands now may be in octal or hex, and may be followed by a size multiplier.
* (usage): Clarify.Paul Eggert2001-12-031-2/+8
|
* (AM_INIT_AUTOMAKE): version 2.7.4.Paul Eggert2001-12-031-12/+11
| | | | | | | | | | (DEFAULT_DIFF_PROGRAM): Define to "diff", not "$bindir/diff" (which didn't work anyway). (AC_CHECK_MEMBERS): Add struct stat.st_blksize, struct stat.st_rdev. (AC_STRUCT_ST_BLKSIZE, AC_STRUCT_ST_RDEV): Remove; obsolescent. (AC_FUNC_FORK): Use this, instead of obsolescent AC_FUNC_VFORK. (AC_CONFIG_FILES, AC_CONFIG_COMMANDS): Add. (AC_OUTPUT): Remove args; they were obsolescent.
* Test version 2.7.4.Paul Eggert2001-12-031-9/+10
|
* (setup_output, begin_output, finish_output): HAVE_FORK ->Paul Eggert2001-12-031-7/+7
| | | | HAVE_WORKING_FORK || HAVE_WORKING_VFORK.
* (STAT_BLOCKSIZE): Use HAVE_STRUCT_STAT_ST_BLKSIZE, not HAVE_ST_BLKSIZE.Paul Eggert2001-12-031-14/+29
| | | | | | (vfork): New macro. (HAVE_FORK): Remove. (set_binary_mode): New macro.
* (diffpid, cleanup, main, edit): HAVE_FORK -> HAVE_WORKING_FORK ||Paul Eggert2001-12-031-29/+27
| | | | | | | | HAVE_WORKING_VFORK. (main): HAVE_VFORK -> HAVE_WORKING_VFORK. (edit): Reopen the temporary file after the editor has run, in case the editor operates by unlinking the old file and linking a new one. (P_tmpdir): Rename from PVT_tmpdir; this fixes a typo. All uses changed.
* (sip, read_files): Remove tests for HAVE_SETMODE; use set_binary_modePaul Eggert2001-12-031-12/+15
| | | | | instead of setmode. (sip): Fix typo in backward lseek when reverting to text mode.
* (read_diff): HAVE_FORK -> HAVE_WORKING_FORK || HAVE_WORKING_VFORK.Paul Eggert2001-12-031-6/+6
|
* Initial revisionPaul Eggert2001-12-033-0/+425
|
* (EXTRA_DIST): Add xstrtol.c.Paul Eggert2001-12-031-3/+4
| | | | | (noinst_HEADERS): Add xstrtol.h. (libdiffutils_a_SOURCES): Add xstrtoumax.c.
* <xstrtol.h>: Include.Paul Eggert2001-12-031-27/+84
| | | | | | | | | | | | | | | (ignore_initial): Now an array with 2 elements. All uses changed. (bytes): New var. (HELP_OPTION): New constant. (long_options, main): Use it. (long_options, option_help_msgid, main, cmp): Add support for -n or --bytes. (parse_ignore_initial): New function. (option_help_msgid, main): Add -i M:N. (usage, main): Add two optional trailing operands, a la BSD. (main): setmode -> set_binary_mode. (cmp): Report byte number of what we've seen, not of the entire file. This is to be consistent with the line number, which is always relative with what we've seen.
* (main, compare_files): setmode -> set_binary_mode.Paul Eggert2001-12-031-10/+10
|
* (__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
|
* autoconf/lib/autoconf/functions.m4Paul Eggert2001-11-251-0/+46
|
* (INCLUDES): Add -I../lib, for regex.h.Paul Eggert2001-11-251-1/+1
|
* Don't set LIB_CLOCK_GETTIME to 'none required'; set it toPaul Eggert2001-11-251-3/+7
| | | | the empty string instead.
* (EXTRA_DIST): Add strtoimax.c, strtol.c.Paul Eggert2001-11-251-1/+1
|
* (SUBDIRS): Put intl before lib, so that libintl.h exists.Paul Eggert2001-11-251-1/+1
|
* (noinst_HEADERS): Add unlocked-io.h.Paul Eggert2001-11-251-1/+2
|
* (__EXTENSIONS__): New define, for the unlocked macros.Paul Eggert2001-11-251-0/+1
|
* Add copyright notice.Paul Eggert2001-11-251-21/+29
| | | | Remove stuff that doesn't apply any more.
* 2.7.3 newsPaul Eggert2001-11-251-19/+21
|
* Initial revisionPaul Eggert2001-11-251-0/+198
|
* offsets -> indices for cmpPaul Eggert2001-11-251-7/+8
|
* (option_help_msgid): offsets -> indicesPaul Eggert2001-11-251-4/+4
|
* (option_help_msgid): Don't mention --binary on POSIX hosts.Paul Eggert2001-11-251-2/+0
|
* (STRIP_TRAILING_CR_OPTION): New constant.Paul Eggert2001-11-251-5/+15
| | | | | (longopts, option_help_msgid, main): Add -E, --ignore-tab-expansion, --strip-trailing-cr.
* Change direcategory from Utilities to GNU Packages.Paul Eggert2001-11-251-959/+1034
| | | | | | | | | | | | | | | | | | | | Add individual utilities. Switch to Free Documentation License. @code -> @command @samp -> @option GNU -> @sc{gnu} GNU patch version is 2.5.4. Expand tabs to spaces, except when in an example that actually uses tabs. Prefer @node with just one arg. Document -E or --ignore-tab-expansion, --strip-trailing-cr, --ignore-file-name-case. Regular expressions are now grep style, not Emacs style. cmp's -c or --print-chars option is now -b or --print-bytes. Time stamps now depend on LC_TIME. -p now implies ^[[:alpha:]$_]. Flags now include ' and 0. cmp -i is an alias for --ignore-initial Document --from-file, --to-file. Document DIFF_OPTIONS.
* (AC_CHECK_FUNCS): Add gettimeofday, clock_gettime.Paul Eggert2001-11-251-1/+11
| | | | (LIB_CLOCK_GETTIME): New subst.
* Assume C89 or better.Paul Eggert2001-11-251-113/+191
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (_GNU_SOURCE): Remove; config.h now defines it. (alloca): Declare like coreutils does it. (verify, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, O_RDWR, S_IRUSR, S_IWUSR): New macros. (STAT_BLOCKSIZE): Parenthesize definiens. <inttypes.h>: Include if HAVE_INTTYPES_H. (CHAR_MAX, INT_MAX): Remove. (PTRDIFF_MAX, SIZE_MAX): New macros. (strtoumax): New decl. Include stddef.h. (bzero): Remove. (bindtextdomain, textdomain, N_): New macros. (ISPRINT, ISSPACE): Remove ifndef wrappers. (ISUPPER, ISDIGIT): Remove. (TOLOWER): New macro. (MIN): Renamed from min; all callers changed. (MAX): Likewise, from max. (lin): New type. (LIN_MAX): New macro. (file_name_cmp): Renamed from filename_cmp. All callers changed. (file_name_lastdirchar): Renamed from file_name_lastdirchar. All callers changed. (could_be_mvfs_stat_bug, could_be_nfs_stat_bug, dev_may_have_duplicate_ino): Remove. (HAVE_SETMODE, NULL_DEVICE): New macros. (same_file): Do not check attributes. (same_file_attributes): New macro.
* Assume C89 or better.Paul Eggert2001-11-251-129/+155
| | | | | | | | | | | | | | | | | | | int -> bool for booleans. int -> lin for line numbers. int -> size_t for sizes. Use angle-brackets when including quotesys.h. Include error.h, regex.h, xalloc.h. (message5): sizeof -> offsetof (begin_output): Invoke pr without -f. (lines_differ): Renamed from line_cmp, and return bool not 3-way int. All callers changed. Add support for IGNORE_TAB_EXPANSION. (change_letter): Now an array rather than a function. All callers changed. (translate_range): Translate line numbers to long, not lin, for convenience with printf. (analyze_hunk): Return enum changes instead of a count of inserts and deletes. All callers changed. (zalloc): New function.
* Assume C89 or better.Paul Eggert2001-11-241-49/+45
| | | | | int -> bool for booleans. int -> lin for line numbers.
* Assume C89 or better.Paul Eggert2001-11-241-375/+261
| | | | | | | | | | | | | | | | | int -> bool for booleans. int -> lin for line numbers. Use angle-brackets when including getopt.h, quotesys.h. Include error.h, freesoft.h, stdio.h, xalloc.h. (copyright_string): Use only most recent year. (authorship_msgid, option_help_msgid): Wrap in N_(). (tmpname): Now volatile. (tmpmade): Remove. (tmp): New var. (private_tempnam, exists, letters): Remove. (temporary_file): New function. (edit): Use it. (interact): Use strtoumax, not atoi.
* Assume C89 or better.Paul Eggert2001-11-241-16/+15
| | | | int -> lin for line numbers.
* Assume C89 or better.Paul Eggert2001-11-241-233/+309
| | | | | | | | | | | | | | | | | | | | | | | | int -> bool for booleans. int -> lin for line numbers. int -> size_t for sizes. Use angle-brackets when including cmpbuf.h. Include regex.h, xalloc.h. (word): Remove; now done in system.h. (hash_value): New type; use it instead of 'unsigned' for hash values. (file_block_read): New function. (sip, slurp): Use it. Now static. (sip): Ensure block size is a multiple of word size. Clear eof flag. (slurp): Use xalloc_die to report memory exhaustion. (find_and_hash_each_line): Use TOLOWER instead of _tolower. Add support for IGNORE_TAB_EXPANSION. (prepare_text_end): Strip trailing CR if requested. (find_identical_ends): Prepare the text only once, if they're duplicates. Let the compiler take advantage more of the fact that the buffers are word-aligned. (primes): Remove. (prime_offset): New var. (read_var): Use prime_offset instead of primes. Use zalloc instead of xmalloc + bzero.