📄 changelog
字号:
2003-05-20 Paul Eggert <eggert@twinsun.com> * NEWS, configure.ac (AC_INIT): Version 2.5.9 released. * Makefile.in (HDRS): Add gettext.h. Use bool, not int, for booleans. * pch.c (pch_says_nonexistent): Returns int, not bool. * configure.ac: Add AM_STDBOOL_H. * Makefile.in (MISC): Add stdbool.h.in. (stdbool.h): New rule. (ACINCLUDE_INPUTS): Add stdbool.m4. (mostlyclean): Remove stdbool.h. (COMMON): New macro; use it instead of common.h for dependencies. * common.h: Include <stdbool.h>. Remove TRUE, FALSE, bool. All uses changed to standard names. * common.h (reverse, set_time, set_utc): Use bool, not int, for booleans. * pch.c (p_strip_trailing_cr, p_pass_comments_through, prefix_components, pget_line, re_patch, there_is_another_patch, intuit_diff_type, scan_linenum, another_hunk, pget_line, pch_timestamp): Likewise. * inp.h (ifetch): Likewise. * util.c (move_file, version_controller, version_get, ok_to_reverse, set_signals): Likewise. * inp.c (report_revision, get_input_file, plan_a, plan_b, ifetch): Likewise. * util.h (ok_to_reverse, version_controller, version_get, move_file, set_signals): Likewise. * pch.h (another_hunk, pch_says_nonexistent, pch_timestamp): Likewise. * patch.c (struct outstate, numeric_string, make_backups, backup_if_mismatch, remove_empty_files, reverse_flag_specified, main, reinitialize_almost_everything, get_some_switches, apply_hunk, init_output, copy_till): Likewise.2003-05-18 Paul Eggert <eggert@twinsun.com> * pch.c (p_pass_comments_through): New var. (pget_line): Accept new arg for pass_comments_through. All callers changed. (there_is_another_patch): Do not suggest -p for ed diffs. (intuit_diff_type): Check ed command for correct syntax. Do not set p_strip_trailing_cr merely because a -p line contains a CR. (get_ed_command_letter): New function. (do_ed_script): Use it. Do not treat '#' data lines as comments in ed scripts. * util.c (move_file): Don't assume that when 'rename(A,B)' succeeds then A no longer exists. This is not true of POSIX 1003.1-2001 rename when A and B are links to the same file. (fetchname): Fix test for file names with internal spaces. * version.c: Don't include patchlevel.h. (version): Use PACKAGE_NAME and PACKAGE_VERSION instead of obsolete PROGRAM_NAME and PATCH_VERSION. (copyright_string): Bump to 2003. * common.h (FILESYSTEM_PREFIX_LEN, ISSLASH): Remove; now done by 'configure'. (PROGRAM_NAME): Remove; now done by 'configure' as PACKAGE_NAME. * patch.c: Do not include <exitfail.h>. (main): Set xalloc_exit_failure, not exit_failure. Add "&& !skip_rest_of_patch" when deciding to continue ed scripts. (option_help): Use PACKAGE_BUGREPORT rather than hardcoding. * configure.ac (AC_PREREQ): Bump to 2.57. (AC_GNU_SOURCE): Add, early on. (gl_BACKUPFILE, gl_DIRNAME, gl_ERROR, gl_FUNC_MEMCHR, gl_FUNC_RMDIR, gl_GETOPT, gl_PREREQ_XMALLOC, gl_QUOTE, gl_QUOTEARG): Add. (jm_PREREQ_ADDEXT): Add, with definition. (jm_PREREQ_DIRNAME, jm_PREREQ_ERROR, jm_PREREQ_MEMCHR, jm_PREREQ_QUOTEARG): Remove. (AC_REPLACE_FUNCS): Remove memchr, rename, rmdir). (jm_FUNC_GLIBC_UNLOCKED_IO, jm_AC_DOS): Add. (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Do not call directly. (AC_OUTPUT): Use new style, with AC_CONFIG_FILES. Update to current CVS gnulib. * exitfail.c, exitfail.h, patchlevel.h, rename.c, m4/c-bs-a.m4, m4/jm-glibc-io.m4, m4/prereq.m4: Remove. * m4/backupfile.m4, m4/dirname.m4, m4/dos.m4, m4/getopt.m4, m4/memchr.m4, m4/onceonly.m4, m4/quote.m4, m4/quotearg.m4, m4/rmdir.m4, m4/unlocked-io.m4, m4/xalloc.m4: New files. * Makefile.in (LIBSRCS): Move error.c here from SRCS. Remove rename.c. (OBJS): Remove error.$(OBJEXT). (HDRS): Remove exitfail.h, patchlevel.h. (ACINCLUDE_INPUTS): Remove c-bs-a.m4, jm-glibc-io.m4, prereq.m4. Add backupfile.m4, dirname.m4, dos.m4, getopt.m4, memchr.m4, onceonly.m4, quote.m4, quotearg.m4, rmdir.m4, unlocked-io.m4, xalloc.m4. (patchlevel.h): Remove. All uses removed. (argmatch.$(OBJEXT), error.$(OBJEXT), quotesys.$(OBJEXT)), xmalloc.$(OBJEXT)): Depend on gettext.h. (dirname.$(OBJEXT), quote.$(OBJEXT), strncasecmp.$(OBJEXT)): New rules. (patch.$(OBJEXT), xmalloc.$(OBJEXT)): Remove exitfail.h. (rename.$(OBJEXT)): Remove. (version.$(OBJEXT)): Remove util.h. (xmalloc.$(OBJEXT)): Add error.h.2002-11-23 Paul Eggert <eggert@twinsun.com> * patch.c (main): Don't check for zero-sized file after 'ed' when skipping patch. From Michael Fedrowitz.2002-06-03 Paul Eggert <eggert@twinsun.com> * configure.ac (AC_OUTPUT): Use new form, with AC_CONFIG_FILES, instead of obsolescent form. Patch from Art Haas. * pch.c (intuit_diff_type): Do not warn about trailing white space after Prereq: word. Bug reported by Mike Castle.2002-06-02 Paul Eggert <eggert@twinsun.com> * NEWS, configure.ac (AC_INIT): Version 2.5.8 released. * README: POSIX.2 -> POSIX. * inp.c (report_revision): Don't modify 'revision', since it gets freed later. Bug reported by Mike Castle.2002-05-30 Paul Eggert <eggert@twinsun.com> * NEWS, configure.ac (AC_INIT): Version 2.5.7 released. * Makefile.in (MISC): Remove README-alpha. (patchlevel.h): Depend on configure, not configure.ac. * INSTALL: Upgrade to Autoconf 2.53 version.2002-05-28 Paul Eggert <eggert@twinsun.com> * patch.c (end_defined, apply_hunk): Output #endif without the comment, as POSIX 1003.1-2001 requires. * pch.c (there_is_another_patch): Flush stderr after perror. * NEWS, configure.ac (AC_INIT): Version 2.5.6 released. * strcasecmp.c, strncasecmp.c: New files, taken from fileutils. * config.guess, config.sub: Remove. * Makefile.in (LIBSRCS): Add strcasecmp.c, strncasecmp.c. (MISC): Remove config.guess, config.sub. The code already assumes C89 or better, so remove K&R stuff. * common.h (volatile): Remove. (GENERIC_OBJECT): Remove; all uses changed to 'void'. (PARAMS): Remove; all uses changed to prototypes. * configure.ac (AC_PROG_CC_STDC): Add. * util.c (vararg_start): Remove. All uses changed to va_start. Always include <stdarg.h>. * configure.ac (AC_CANONICAL_HOST): Remove. (AC_REPLACE_FUNCS): Add strncasecmp. (AC_CHECK_DECLS): Add mktemp. * patch.c (main): Remove useless prototype decl. (mktemp): Don't declare if HAVE_DECL_MKTEMP || defined mktemp. (make_temp): Now accepts char, not int. 2002-05-26 Paul Eggert <eggert@twinsun.com> * patch.c (not_defined): Prepend newline. All uses changed. (apply_hunk): Fix bug: -D was outputting #ifdef when it should have been outputting #ifndef. Bug report and partial fix by Jason Short. * pch.c (intuit_diff_type): When reading an ed diff, don't use indent and trailing-CR-ness of "." line; instead, use that of the command. Bug reported by Anthony Towns; partial fix by Michael Fedrowitz. (intuit_diff_type): If the index line exists, don't report a missing header. Fix by Chip Salzenberg.2002-05-26 Alessandro Rubini <rubini@gnu.org> * patch.c (locate_hunk): Fixed updating of last_offset.2002-05-25 Paul Eggert <eggert@twinsun.com> * NEWS, README: Diffutils doc is up to date now. Bug reporting address is now <bug-patch@gnu.org>. * README: Describe '--disable-largefile'. * NEWS-alpha, dirname.c, dirname.h, exitfail.c, exitfail.h, quote.c, quote.h, unlocked-io.h: New files, taken from diffutils and fileutils. * argmatch.c: [STDC_HEADERS]: Include stdlib.h, for 'exit'. * addext.c, argmatch.c, argmatch.h, backupfile.c, basename.c: Update from diffutils and fileutils. * ansi2knr.1, ansi2knr.c: Remove. * common.h: HAVE_SETMODE && O_BINARY -> HAVE_SETMODE_DOS. * patch.c (usage): Likewise. * pch.c (open_patch_file): Likewise. * configure.ac: Renamed from configure.in. Add copyright notice. (AC_PREREQ): Bump to 2.53. (AC_INIT): Use 2.5x style. (AC_CONFIG_SRCDIR): Add. (PACKAGE, VERSION): Remove. (AC_C_PROTOTYPES): Use this instead of AM_C_PROTOTYPES. (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use this instead of jm_STRUCT_UTIMBUF. (jm_PREREQ_ADDEXT, jm_PREREQ_DIRNAME, jm_PREREQ_ERROR, jm_PREREQ_MEMCHR, jm_PREREQ_QUOTEARG): Add. (AC_CHECK_DECLS): Add free, getenv, malloc. (AC_CHECK_FUNCS): Remove setmode. (AC_FUNC_SETMODE_DOS): Add. (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use this instead of jm_STRUCT_DIRENT_D_INO. * Makefile.in (OBJEXT): New var. (PACKAGE_NAME): Renamed from PACKAGE. All uses changed. (PACKAGE_VERSION): Renamed from VERSION. All uses changed. (U): Remove. All uses of "$U.o" changed to ".$(OBJEXT)". (LIBSRCS): REmove getopt.c getopt1.c. Add mkdir.c, rmdir.c. (SRCS): Add dirname.c, exitfail.c, getopt.c, getopt1.c, quote.c. Remove mkdir.c. (OBJS): Keep in sync with SRCS. (HDRS): Remove basename.h. Add dirname.h, exitfail.h, quote.h, unlocked-io.h. (MISC, configure, config.hin, patchlevel.h): configure.ac renamed from configure.in. (MISC): Add README-alpha. Remove ansi2knr.1, ansi2knr.c. (.c.$(OBJEXT)): Renamed from .c.o. (ACINCLUDE_INPUTS): Add c-bs-a.m4, error.m4, jm-glibc-io.m4, mbstate_t.m4, mkdir.m4, mbrtowc.m4, prereq.m4, setmode.m4. Remove ccstdc.m4, inttypes_h.m4, largefile.m4, protos.m4. (mostlyclean): Don't clean ansi2knr. (ansi2knr.o, ansi2knr): Remove. Redo dependencies. * patch.c: Include <exitfail.h>. (main): Initialize exit_failure. * patch.man: Update copyright notice. * pch.c, util.c: Include <dirname.h>, not <basename.h>. * version.c (copyright_string): Update copyright notice.2002-02-17 Paul Eggert <eggert@twinsun.com> * partime.c (parse_pattern_letter): Don't overrun buffer if it contains only alphanumerics. Bug reported by Winni <Winni470@gmx.net>.2001-07-28 Paul Eggert <eggert@sic.twinsun.com> * util.c (fetchname), NEWS: Allow file names with internal spaces, so long as they don't contain tabs. * pch.c (intuit_diff_type): Do not allow Prereq with multiple words. * configure.in (AC_PREREQ): Bump to 2.50. (AC_CHECK_FUNCS): Remove fseeko. (AC_FUNC_FSEEKO): Add. * Makefile.in (ACINCLUDE_INPUTS): Remove largefile.m4; no longer needed with Autoconf 2.50.2001-02-07 "Tony E. Bennett" <tbennett@nvidia.com> * util.c (PERFORCE_CO): New var. (version_controller): Support Perforce. * patch.man: Document this.2000-06-30 Paul Eggert <eggert@sic.twinsun.com> * patch.man: Ignore comment lines. * NEWS, pch.c: Ignore lines beginning with "#".1999-10-24 Paul Eggert <eggert@twinsun.com> * pch.c (another_hunk): Report a fatal error if a regular context hunk's pattern has a different number of unchanged lines than the replacement.1999-10-18 Paul Eggert <eggert@twinsun.com> * patch.c (main): If we skipped an ed patch, exit with nonzero status.1999-10-17 Paul Eggert <eggert@twinsun.com> * patch.c (main): Apply do_ed_script even if dry_run, because we need to make progress on the patch file. * pch.c (do_ed_script): If skip_rest_of_patch is nonzero, gobble up the patch without any other side effect.1999-10-12 Paul Eggert <eggert@twinsun.com> * NEWS, README: New bug reporting address. * NEWS: Report change in 2.5.4 that we forgot to document. * README: Document `configure --disable-largefile'. * basename.c, COPYING, getopt.c, getopt.h, getopt1.c, m4/largefile.m4: Update to latest version. * Makefile.in (basename$U.o): Depend on basename.h. (config.hin): Depend on $(srcdir)/aclocal.m4. * ansi2knr.c, maketime.c, mkinstalldirs, partime.c: Fix $Id. FreeBSD has an unrelated setmode function; work around this. * common.h (binary_transput): Don't declare unless O_BINARY. * patch.c (option_help, get_some_switches): Don't use setmode unless O_BINARY. * pch.c (open_patch_file): Don't invoke setmode unless O_BINARY. Fix incompatiblities with error.c. * common.h (program_name): Now XTERN char *, for compatibility with error.c. All uses changed. (PROGRAM_NAME): New macro. (PARAMS): Use ANSI C version only if defined PROTOTYPES || (defined __STDC__ && __STDC__), for compatibilty with error.c. * util.c (vararg_start): Likewise. * patch.c (program_name): Remove. (main): Initialize program_name. * version.c (version): Print PROGRAM_NAME, not program_name.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -