| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
| |
Include <libgettext.h> rather than rolling it ourselves.
(file_name_lastdirchar, HAVE_SETMODE, set_binary_mode): Remove.
|
|
|
|
|
|
|
| |
(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.
|
| |
|
|
|
|
| |
allocator.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(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".
|
| |
|
| |
|
|
|
|
| |
(libdiffutils_a_SOURCES): Add basename.c, setmode.c.
|
|
|
|
|
|
|
|
| |
(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.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
(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.
|
| |
|
|
|
|
| |
HAVE_WORKING_FORK || HAVE_WORKING_VFORK.
|
|
|
|
|
|
| |
(vfork): New macro.
(HAVE_FORK): Remove.
(set_binary_mode): New macro.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
instead of setmode.
(sip): Fix typo in backward lseek when reverting to text mode.
|
| |
|
| |
|
|
|
|
|
| |
(noinst_HEADERS): Add xstrtol.h.
(libdiffutils_a_SOURCES): Add xstrtoumax.c.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(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.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
the empty string instead.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Remove stuff that doesn't apply any more.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
(longopts, option_help_msgid, main): Add -E, --ignore-tab-expansion,
--strip-trailing-cr.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
(LIB_CLOCK_GETTIME): New subst.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(_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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
int -> bool for booleans.
int -> lin for line numbers.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
int -> lin for line numbers.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|