📄 changelog
字号:
Accommodate mingw32 port, which has one-argument mkdir (yuck!) and no geteuid. * m4/mkdir.m4: New file. * Makefile.in (ACINCLUDE_INPUTS): Add $(M4DIR)/mkdir.m4. * configure.in (AC_CHECK_FUNCS): Add geteuid, getuid. (PATCH_FUNC_MKDIR_TAKES_ONE_ARG): Add. * common.h (mkdir): Define if mkdir takes one arg. (geteuid): New macro, if not already defined.1999-10-11 Christopher R. Gabriel <cgabriel@tin.it> * patch.c (option_help): Updated bug report address * configure.in (VERSION): Version 2.5.5 released.1999-09-01 Paul Eggert <eggert@twinsun.com> * patch.c (main): Default simple_backup_suffix to ".orig".1999-10-08 Paul Eggert <eggert@twinsun.com> * patch.man: Make it clear that `patch -o F' should not be used if F is one of the files to be patched.1999-08-30 Paul Eggert <eggert@twinsun.com> Version 2.5.4 fixes a few minor bugs, converts C sources to ANSI prototypes, and modernizes auxiliary sources and autoconf scripts. * configure.in (VERSION): Version 2.5.4 released. (AC_CANONICAL_HOST): Add. (AC_SYS_LARGEFILE): Add, replacing inline code. (AC_EXEEXT): Add. (jm_AC_HEADER_INTTYPES_H): Add, replacing inline code. (AC_TYPE_PID_T): Add. (jm_STRUCT_UTIMBUF): Add, replacing inline code. (HAVE_MEMCHR): Remove obsolescent test; nobody uses NetBSD 1.0 now. (getopt_long): Append $U to object file basenames. (AC_CHECK_FUNCS): Add fseeko, setmode. Remove mkdir. (AC_REPLACE_FUNCS): Add mkdir, rmdir. (jm_STRUCT_DIRENT_D_INO): Add, replacing inline code. * Makefile.in (EXEEXT): New macro. (mandir): New macro. (man1dir): Define in terms of mandir. (SRCS): Add mkdir.c, rmdir.c. (OBJS): Change .o to $U.o for addext, argmatch, backupfile, basename, error, inp, patch ,,pch, quotearg, util, version, xmalloc. (HDRS): Add basename.h, patchlevel.h. (MISC): Add ansi2knr.1, config.guess, config.sub. (MISC, config.hin): Remove acconfig.h; no longer needed. (DISTFILES_M4): New macro. (all): patch -> patch$(EXEEXT). (patch$(EXEEXT)): Renamed from patch. All uses changed. (uninstall): Remove manual page. (configure): Depend on aclocal.m4. (M4DIR, ACINCLUDE_INPUTS): New macros. ($(srcdir)/aclocal.m4): New rule. (patchlevel.h): Depend on configure.in, not Makefile, since we now distribute it. (distclean): Don't remove patchlevel.h. (dist): Distribute $(DISTFILES_M4). (addext_.c argmatch_.c backupfile_.c basename_.c error_.c getopt_.c getopt1_.c inp_.c malloc_.c mkdir_.c patch_.c pch_.c rename_.c util_.c version_.c xmalloc_.c): Depend on ansi2knr. Update dependencies to match sources. * common.h (_LARGEFILE_SOURCE): Remove; now autoconfigured. (file_offset): Depend on HAVE_FSEEKO, not _LFS_LARGEFILE. * patch.c (version_control_context): New variable. Convert to ANSI prototypes. Adjust to new argmatch calling convention. Similarly for get_version. Complain about creating an existing file only if pch_says_nonexistent returns 2 (not merely nonzero). Similarly for time mismatch check. (get_some_switches): Adjust to new get_version calling convention. Similarly for argmatch. * pch.c (<basename.h>): Include. (intuit_diff_type): Improve quality of test for empty file. (another_hunk): Don't assume off_t is no longer than long. * util.h (backup_type): New decl. * util.c (<basename.h>): Include. (move_file): Adjust to new find_backup_file_name convention. (doprogram, mkdir, rmdir): Remove; now in separate files. (fetchame): Match "/dev/null", not NULL_DEVICE. Ignore names that don't have enough slashes to strip off. * version.c: Update copyright notice.1998-03-20 Paul Eggert <eggert@twinsun.com> * configure.in (VERSION): Bump to 2.5.3. * quotearg.h (quotearg_quoting_options): Remove; it ran afoul of the Borland C compiler. Its address is now represented by the null pointer. * quotearg.c (default_quoting_options): Renamed from quotearg_quoting_options, and now static instead of extern. (clone_quoting_options, get_quoting_style, set_quoting_style, set_char_quoting, quotearg_buffer): Use default_quoting_options when passed a null pointer. * patch.c (main, get_some_switches): Pass a null pointer instead of address of quotearg_quoting_options.1998-03-17 Paul Eggert <eggert@twinsun.com> * patch.c (option_help): Update bug reporting address to gnu.org. * patch.man: Fix copyright and bug reporting address.1998-03-16 Paul Eggert <eggert@twinsun.com> * configure.in (VERSION): Bump to 2.5.2. (AC_CHECK_FUNCS): Add strerror. (jm_FUNC_MALLOC, jm_FUNC_REALLOC): Add. (AM_C_PROTOTYPES): Add. * NEWS, patch.c (longopts, get_some_switches), patch.man: Add --quoting-style, --posix options. * Makefile.in (LIBSRCS): Add malloc.c, realloc.c. (SRCS): Add error.c, quotesys.c, xmalloc.c. (OBJS): Likewise. (HDRS): Add error.h, quotesys.h, xalloc.h. (MISC): Add AUTHORS, aclocal.m4, ansi2knr.c. (clean): Use mostlyclean rule. (argmatch.o, inp.o, patch.o, pch.o): Now also depends on quotearg.h. (inp.o, patch.o, util.o): Now also depends on xalloc.h. (error.o, quotearg.o, quotesys.o, xmalloc.o, ansi2knr.o, ansi2knr, quotearg_.c, .c_.c): New rules. (U): New macro. (OBJS, quotearg$U.o): Rename quotearg.o to quotearg$U.o. (mostlyclean): Remove ansi2knr, *_.c. (.SUFFIXES): Add _.c. * acconfig.h (PROTOTYPES): New undef. * acconfig.h, configure.in (HAVE_INTTYPES_H, malloc, realloc): New macros. * aclocal.m4, error.c, error.h, malloc.c, quotearg.h, quotearg.c, realloc.c, xalloc.h, xmalloc.c: New files. * argmatch.c: Include <sys/types.h> before <argmatch.h>. Include <quotearg.h>. * argmatch.c (invalid_arg), inp.c (scan_input, report_revision, too_many_lines, get_input_file, plan_a), patch.c (main, get_some_switches, numeric_string), pch.c (open_patch_file, intuit_diff_type, do_ed_script): util.c (move_file, create_file, copy_file, version_get, removedirs): Quote output operands properly. * common.h: Include <inttypes.h> if available. (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, CHAR_MAX, INT_MAX, LONG_MIN, SIZE_MAX, O_EXCL): New macros. (TMPINNAME_needs_removal, TMPOUTNAME_needs_removal, TMPPATNAME_needs_removal): New variables. (xmalloc): Remove decl; now in xalloc.h. * inp.c: Include <quotearg.h>, <xalloc.h>. * inp.c (get_input_file), pch.c (intuit_diff_type), util.c (version_controller): Don't do diff operation if diffbuf is null; used by ClearCase support. * inp.c (plan_b), patch.c (init_reject), pch.c (open_patch_file, do_ed_script): Create temporary file with O_EXCL to avoid races. * patch.c: Include <quotearg.h>, <xalloc.h>. (create_output_file, init_output): New open_flags arg. All callers changed. (init_reject): No longer takes filename arg. All callers changed. (remove_if_needed): New function. (cleanup): Use it to remove temporary files only if needed. (TMPREJNAME_needs_removal): New var. (main): Set xalloc_fail_func to memory_fatal; needed for xalloc. Initialize quoting style from QUOTING_STYLE. (longopts, get_some_switches): Offset longarg options by CHAR_MAX, not 128; this is needed for EBCDIC ports. * patch.c (main, locate_hunk, abort_hunk, spew_output), pch.c (there_is_another_patch, intuit_diff_type, malformed, another_hunk): The LINENUM type now might be longer than long, so print and read line numbers more carefully. * patch.c (main), pch.c (there_is_another_patch): util.c (fetchname): strippath now defaults to -1, so that we can distinguish unset value from largest possible. * patch.man: Clarify how file name is chosen from candidates. * pch.c: Include <quotearg.h>. (p_strip_trailing_cr): New variable. (scan_linenum): New function. (pget_line, re_patch, there_is_another_patch, intuit_diff_type, get_line): Strip trailing CRs from context diffs that need this. (best_name): Use SIZE_MAX instead of (size_t) -1 for max size_t. * quotesys.c, quotearg.h: Renamed from quotearg.c and quotearg.h. All uses changed. * quotesys.h (__QUOTESYS_P): Renamed from __QUOTEARG_P. * util.c: Include <quotearg.h>, <xalloc.h>. (raise): Don't define if already defined. (move_file): New arg from_needs_removal. All callers changed. (copy_file): New arg to_flags. All callers changed. (CLEARTOOL_CO): New constant. (version_controller): Add ClearCase support. (format_linenum): New function. (fetchname): Allow any POSIX.1 time zone spec, which means any local time offset in the range -25:00 < offset < +26:00. Ignore the name if it doesn't have enough slashes to strip off. (xmalloc): Remove; now in xmalloc.c. * util.h (LINENUM_LENGTH_BOUND): New macro. (format_linenum): New decl. * version.c (copyright_string): Update years of copyrights.1997-09-03 Paul Eggert <eggert@twinsun.com> * configure.in (VERSION): Bump to 2.5.1. * inp.c (re_input): Don't free buffers twice when input is garbled. * patch.c (main): If skipping patch and Plan A fails, don't bother trying Plan B.1997-08-31 Paul Eggert <eggert@twinsun.com> * configure.in (VERSION): Version 2.5 released.1997-07-21 Paul Eggert <eggert@twinsun.com> * configure.in (VERSION): Bump to 2.4.4. * pch.c (there_is_another_patch), NEWS: Report an error if the patch input contains garbage but no patches. * pch.c (open_patch_file): Check for patch file too long (i.e., its size doesn't fit in a `long', and LFS isn't available). * inp.c (plan_a): Cast malloc return value, in case malloc returns char *.1997-07-16 Paul Eggert <eggert@twinsun.com> * configure.in (VERSION): Bump to 2.4.3. * NEWS, patch.man, pch.c (intuit_diff_type, get_line, pget_line): Now demangles RFC 934 encapsulation. * pch.c (p_rfc934_nesting): New var. * pch.c (intuit_diff_type): Don't bother to check file names carefully if we're going to return NO_DIFF. * inp.c (plan_a): Count the number of lines before allocating pointer-to-line buffer; this reduces memory requirements considerably (roughly by a factor of 5 on 32-bit hosts). Decrease `size' only when read unexpectedly reports EOF. (i_buffer): New var. (too_many_lines): New fn. (re_input): Free i_buffer if using plan A. Free buffers unconditionally; they can't be zero. * inp.c (plan_a, plan_b): Check for overflow of line counter. * pch.c (malformed), util.h (memory_fatal, read_fatal, write_fatal): Declare as noreturn.1997-07-10 Paul Eggert <eggert@twinsun.com> * configure.in (VERSION): Bump to 2.4.2. * util.c (ok_to_reverse), NEWS: The default answer is now `n'; this is better for Emacs. * Makefile.in (dist): Use cp -p, not ln; some hosts do the wrong thing with ln if the source is a symbolic link. * patch.man: Fix typo: -y -> -Y.1997-07-05 Paul Eggert <eggert@twinsun.com> * configure.in (VERSION): Bump to 2.4.1. * patch.c: (main, get_some_switches), NEWS, patch.man: Version control is now independent of whether backups are made. * patch.c (option_help): Put version control options together. (get_some_switches): With CVS 1.9 hack, treat -b foo like -b -z foo, not just -z foo. This change is needed due to recent change in -z. * backupfile.c (find_backup_file_name): backup_type == none causes undefined behavior; this undoes the previous change to this file. * patch.c (locate_hunk): Fix bug when locating context diff hunks near end of file with nonzero fuzz. * util.c (move_file): Don't assume that ENOENT is reported when both ENOENT and EXDEV apply; this isn't true with DJGPP, and Posix doesn't require it. * pch.c (there_is_another_patch): Suggest -p when we can't intuit a file.1997-06-19 Paul Eggert <eggert@twinsun.com> * configure.in (VERSION): Version 2.4 released. * NEWS: Patch is now verbose when patches do not match exactly.1997-06-17 Paul Eggert <eggert@twinsun.com> * pc/djgpp/configure.sed (config.h): Remove redundant $(srcdir). * configure.in (VERSION): Bump to 2.3.9. * patch.c (main): By default, warn about hunks that succeed with nonzero offset. * patch.man: Add LC_ALL=C advice for making patches. * pc/djgpp/configure.sed (config.h): Fix paths to dependent files.1997-06-17 Paul Eggert <eggert@twinsun.com>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -