📄 changelog
字号:
* lib/c-stack.h (siginfo_t, c_stack_die): Remove decl. * lib/file-type.c, lib/file-type.h: New files. These contain code that was in src/diff.c, but is now librarified and spiffed up a bit. Jim Meyering suggested this. * lib/fnmatch.c (alloca, __builtin_expect): Define for non-GCC hosts. <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. * lib/fnmatch_.h (__const): Do not define to empty, as this breaks Sun cc. The code doesn't work with K&R anyway. * lib/fnmatch_loop.c (struct patternlist.str): Size 1, not 0, as C89 requires this. (NEW_PATTERN): Use offsetof, not sizeof, since str now has size 1. * lib/fnmatch_.h: Import from glibc fnmatch.h. * lib/fnmatch.c, lib/fnmatch_loop.c: Import from glibc. * lib/posixver.c: Include posixver.h. * lib/regex_.h: Renamed from lib/regex.hin. * m4/c-stack.m4 (jm_PREREQ_C_STACK): Do not AC_REQUIRE jm_AC_TYPE_UINTMAX_T and do not use uintmax_t. Check for sys/resource.h, uccontext.h. Check for decls and existence of getcontext, sigaltstack. Check for stack_t. * m4/codeset.m4, m4/glibc21.m4, m4/lcmessage.m4: Remove. * m4/fnmatch.m4: Update to latest Autoconf CVS for AC_FUNC_FNMATCH_GNU. * m4/gnu-source.m4: Likewise, for AC_GNU_SOURCE (renamed from AC__GNU_SOURCE). * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Renamed from AC_MBSTATE_T. All uses changed. Upgrade to recent Autoconf CVS. * m4/stdbool.m4 (AC_HEADER_STDBOOL): Do not cast pointer to bool in integer constant expression; C99 does not allow it. Reported by Bruno Haible. * po/LINGUAS: Add hu, pt_BR. * po/hu.po, po/pt_BR.po: New files. * src/Makefile.am (noinst_HEADERS): Remove diff.h. (DEFS): Remove. (diff_sources): Add diff.h. (MOSTLYCLEANFILES): New macro. (cmp.$(OBJEXT) diff3.$(OBJECT) diff.$(OBJECT) sdiff.$(OBJECT)): Depend on paths.h. (paths.h): New rule. * src/analyze.c, src/cmp.c, src/diff.c, src/diff3.c, src/io.c, src/sdiff.c: Include <file-type.h>. * src/cmp.c: Include paths.h. (copyright_notice): Renamed from copyright_string. Now a msgid, so that copyright symbol can be translated. All uses changed. * src/diff.c, src/diff3.c, src/sdiff.c: Likewise. * src/diff.c: Include posixver.h. (TABSIZE_OPTION): New constant. (main): Allow widths up to SIZE_MAX. (filetype): Move to lib/file-type.c and rename to file_type. All uses changed. * src/diff.c (longopts, main, usage): New option --tabsize=COLUMNS. * src/io.c (find_and_hash_each_line): Likewise. * src/diff.h (TAB_WIDTH): Remove. (tabsize): New decl. (sdiff_half_width, sdiff_column2_offset): Now size_t rather than unsigned int. * src/diff3.c (skipwhite, readnum): New functions. (process_diff_control): Use them. (SKIPWHITE, READNUM): Remove. (read_diff): Don't worry about errno == ENOEXEC. * src/sdiff.c (catchsig, signal_handler, initial_action): Signal handlers return void, not RETSIGTYPE, since we no longer support K&R. (TABSIZE_OPTION): New constant. (longopts, usage, main): New option --tabsize=COLUMNS. (cleanup): New arg signo. All uses changed. (ck_editor_status, main, edit): Don't worry about ENOEXEC. * src/side.c (tab_from_to, print_half_line, print_1sdiff_line): New option --tabsize=COLUMNS. * src/system.h (S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISREG, S_ISSOCK): Remove; now in lib/file-type.h. * src/util.c (finish_output): Check for ENOEXEC. (lines_differ, output_1_line): New option --tabsize=COLUMNS. (analyze_hunk): If -b or -w is also specified, -B now considers lines to be empty if they contain only white space.2002-04-05 Paul Eggert <eggert@sic.twinsun.com> * NEWS, configure.ac (AC_INIT): Version 2.8.1. * configure.ac (AC_HEADER_STDBOOL): Add. (AC_CHECK_HEADERS): Remove stdbool.h. * m4/stdbool.m4: New file. * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Use AC_HEADER_STDBOOL rather than AC_CHECK_HEADERS(stdbool.h). (jm_PREREQ_HASH): Likewise. * src/system.h (SSIZE_MAX): Define if limits.h doesn't. * src/analyze.c (diff_2_files): Assign PTRDIFF_MAX - 1 to a size_t variable, just in case there's a problem with ptrdiff_t versus size_t. * lib/cmpbuf.c (errno): Remove decl; K&R C is no longer supported. 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. * src/cmp.c (cmp): Use block_read instead of read, to work around Tru64 5.1 bug. * src/diff3.c (read_diff): Likewise. * src/diff3.c: Include cmpbuf.h. * THANKS: Add Ulrich Drepper. * INSTALLME: Mention GNU texinfo. * doc/diff.texi: Use new @copying directive. Put @contents first, not last, since Texinfo now suggests this. Fix bug in -w documentation noted by Karl Berry. Mention links for speedup. New node "Speedups" for future speedups. Just say "Index", not "Concept Index".2002-03-26 Paul Eggert <eggert@twinsun.com> * src/Makefile.am: (INCLUDES): Remove this obsolete macro, replacing it with: (AM_CPPFLAGS): New macro.2002-03-26 Albert Chin-A-Young <china@thewrittenword.com> * src/Makefile.am (datadir): Remove, as it conflicts with --datadir.2002-03-26 Paul Eggert <eggert@twinsun.com> * doc/diff.texi (dircategory GNU packages): Fix typo: a "* " was missing before the menu entry. Bug diagnosed by Adam Heath. Also, put this dircategory after the Individual utilities dircategory, to work around a compatibility problem with Debian install-info.2002-03-24 Eli Zaretskii <eliz@is.elta.co.il> * src/io.c (sip): Do not mishandle buffered count when reverting to text mode.2002-03-23 Paul Eggert <eggert@twinsun.com> * NEWS, configure.ac (AC_INIT): Version 2.8. * configure.ac (AC_PREREQ): 2.53. * INSTALLME: Upgrade to gettext 0.11.1 and help2man 1.27. * doc/diff.texi: Upgrade the description of `patch' to GNU patch 2.5.4, and revamp the documentation accordingly. * src/diff.c (main): Fix typo that prevented diff -y from working. Bug reported by Mitsuru Chinen.2002-03-15 Paul Eggert <eggert@twinsun.com> * lib/c-stack.c (c_stack_die) [!HAVE_SIGINFO_T]: Don't use info. Bug reported by Eli Zaretskii.2002-03-15 Eli Zaretskii <eliz@is.elta.co.il> * ms/config.sed: Tweak editing of install-info-am target.2002-03-12 Paul Eggert <eggert@twinsun.com> * NEWS, configure.ac (AC_INIT): Version 2.7.10. * NEWS: cmp -l -s and cmp -s -l are not allowed. Deprecate diff -h, -H, -L, -P, --inhibit-hunk-merge. * configure.ac (jm_PREREQ_HARD_LOCALE): Add. (AM_INIT_AUTOMAKE): Do not distribute shar file. * doc/diff.texi (Overview): byte != character. (Detailed Context, Detailed Unified, Alternate Names, diff Options): Do not document diff -L. (Comparing Directories, Making Patches, diff Options): Do not document diff -P. (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, patch Options, sdiff Options): Put short options next to the similar long options. Document --help, and use the same wording for --verbose. (diff3 Options): Fix typo in description of -E, which used wrongly used "-e" instead of "-E". * lib/hard-locale.c (alloca): Remove. Include stdlib.h if available, for malloc. (hard_locale): Use malloc, not alloca, so that we need not worry about alloca issues. Test for storage allocation failure. * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HARD_LOCALE. (jm_PREREQ_HARD_LOCALE): New macro. * src/cmp.c (specify_comparison_type): New function. (check_stdout): "indices and codes" -> "byte numbers and values" (main): Detect clashing options. (cmp): Use "byte" rather than "char" if a translation for "byte" is available, even when in the POSIX locale. * src/diff.c (option_help_msgid): Do not document -L, -P, --horizon-lines, --inhibit-hunk-merge, -H. * src/diff.h: -L -> --label2002-03-11 Paul Eggert <eggert@twinsun.com> * NEWS, configure.ac (AC_INIT): Version 2.7.9. * INSTALLME: Update to autoconf 2.53, automake 1.6, help2man 1.25 with patch. * configure.ac (AC_INIT): Change package name from diff to diffutils. (AM_INIT_AUTOMAKE): Use new form, with option gnits, rather than old from that duplicated AC_INIT. (AM_MISSING_PROG): Add help2man. (REGEX_MALLOC): Define. (AC_CONFIG_FILES): Add man/Makefile. * Makefile.am (AUTOMAKE_OPTIONS): Remove. * doc/Makefile.am (AUTOMAKE_OPTIONS): Remove. * lib/Makefile.am (AUTOMAKE_OPTIONS): Likewise. * ms/Makefile.am (AUTOMAKE_OPTIONS): Likewise. * src/Makefile.am (AUTOMAKE_OPTIONS): Likewise. * lib/c-stack.c: 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. (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. * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change wording of message. Do not check for stdbool.h or ucontext.h, or for ucontext_t or sigaction or sigaltstack. * po/LINGUAS: Add zh_TW. * Makefile.am (SUBDIRS): Add man. * man/Makefile.am: New file. * src/cmp.c (usage): Reword for help2man. * src/diff.c (option_help_msgid): Likewise. * src/diff3.c (option_help_msgid, usage): Likewise. * src/sdiff3.c (option_help_msgid, usage): Likewise. Reword for help2man. * THANKS: Add email address for Tower. * config/config.guess, config/config.sub, config/depcomp, config/install-sh, config/mdate-sh, config/missing, config/mkinstalldirs, config/texinfo.tex: Update to recent version (maintained in other packages).2002-03-04 Bruno Haible <haible@ilog.fr> * m4/gettext.m4 (AM_GNU_GETTEXT): Set LIBINTL and LTLIBINTL to empty if no preinstalled GNU gettext was found.2002-03-02 Eli Zaretskii <eliz@is.elta.co.il> * ms/config.sed: Tweak editing of install-info-am and uninstall-info-am targets, to include 8+3-butchered names of Info files.2002-02-28 Paul Eggert <eggert@twinsun.com> * NEWS, configure.ac (AC_INIT, AM_INIT_AUTOMAKE): Version 2.7.8. * doc/diff.texi: Add vr index. Update copyright to 2002. (Standards conformance): New chapter. (Binary): Differing binary files are trouble unless the user asked for brief output. (Detailed Context): Prefer ISO time stamp format in discussion. (Detailed Unified, Pagination): Likewise. (Less Context): Likewise. Also use short option. (Alternate Names): Separate option from arg. (Making Patches): Mention -U 2. (diff Options): Deprecate -LINES, as POSIX 1003.1-2001 does not allow it. * INSTALLME: Update advice for Solaris installation problems. We no longer use a test version of gettext. Autoconf test version updated from 2.52f to 2.52h. POSIX 1003.1-2001 patch for Automake. * configure.ac (AC__GNU_SOURCE): Add this, replacing AH_VERBATIM of _GNU_SOURCE. (tempname): Use AC_LIBOBJS, not LIBOBJS=, as now required by autoconf. (jm_PREREQ_C_STACK): Add. (AC_CONFIG_FILES): Remove intl/Makefile. (AM_GNU_GETTEXT): Add external arg, from gettext 0.11. * lib/c-stack.c, lib/c-stack.h, lib/exitfail.c, lib/exitfail.h, lib/posixver.c, lib/posixver.h, m4/c-stack.m4, m4/gnu-source.m4, po/cs.po, po/ja.po: New files. * intl/ChangeLog, intl/Makefile.in, intl/VERSION, intl/bindtextdom.c, intl/config.charset, intl/dcgettext.c, intl/dcigettext.c, intl/dcngettext.c, intl/dgettext.c, intl/dngettext.c, intl/explodename.c, intl/finddomain.c, intl/gettext.c, intl/gettextP.h, intl/gmo.h, intl/hash-string.h, intl/intl-compat.c, intl/l10nflist.c, intl/libgnuintl.h, intl/loadinfo.h, intl/loadmsgcat.c, intl/localcharset.c, intl/locale.alias, intl/localealias.c, intl/localename.c, intl/ngettext.c, intl/os2compat.c, intl/os2compat.h, intl/osdep.c, intl/plural-eval.c, intl/plural-exp.c, intl/plural-exp.h, intl/plural.c, intl/plural.y, intl/ref-add.sin, intl/ref-del.sin, intl/textdomain.c, m4/isc-posix.m4, m4/libtool.m4: Remove. * ABOUT-NLS: Update to Gettext 0.11.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -