summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Previous work in progressrcs-historyAndreas Gruenbacher2009-03-1982-689/+9495
|
* patch.c: Include exitfail.h. (main): Set exit_failure, not ↵Paul Eggert2009-03-191-10/+17
| | | | xalloc_exit_failure. (spew_output): New output arg, to contain status of output file. (main): Use it to get status of output file, and pass this to move_file as needed. Initialize hash table.
* Include <string.h>, <stdlib.h> unconditionally.Paul Eggert2009-03-191-18/+3
|
* Adjust to copy_file signature change.Paul Eggert2009-03-191-2/+2
|
* (gl_USE_SYSTEM_EXTENSIONS): Use this instead of AC_GNU_SOURCE. ↵Paul Eggert2009-03-191-1/+4
| | | | (gl_EXITFAIL): Add. (gl_HASH, gl_TIMESPEC): Add. (spew_output): New output arg, to contain status of output file. (main): Use it to get status of output file, and pass this to move_file as needed. Initialize hash table.
* (get_input_file): Clear cs if dry run.Paul Eggert2009-03-191-1/+3
|
* (fetchname): Handle missing timestamps better. (file_id): New type. ↵Paul Eggert2009-03-191-22/+119
| | | | (file_id_hasher, file_id_comparator, init_backup_hash_table, insert_file, file_already_seen): New functions. (file_id_table): New var. (move_file): New arg FROMST; all uses changed. Do not backup a file that's already been patched. Keep track of files that have been patched. (copy_file): New arg TOST; all uses changed.
* (copy_file, move_file): Adjust decls as per above. (init_backup_hash_table): ↵Paul Eggert2009-03-191-3/+4
| | | | New decl.
* (STDBOOL_H): New macro. All uses of @STDBOOL_H@ changed. (SRCS): Add ↵Paul Eggert2009-03-191-10/+16
| | | | exitfail.c. (OBJS): Add exitfail.$(OBJEXT). (HDRS): Add exitfail.h. (stdbool.h): Use $@, as gnulib now suggests. (ACINCLUDE_INPUTS): Add exitfail.m4, extensions.m4. (LIBSRCS): Add hash.c. (OBJS): Add hash.$(OBJEXT). (HDRS): Add hash.h. (MISC): Add timespec.h. (ACINCLUDE_INPUTS): Add hash.m4, st_mtim.m4, timespec.m4 (util.$(OBJEXT): Depend on timespec.h.
* (check): Add a trivial check that "patch --help" works. From a suggestion by ↵Paul Eggert2009-03-191-1/+4
| | | | Ed Avis.
* (LIBSRCS): Remove mkdir.c and rmdir.c. (stdbool.h): Put output into ↵Paul Eggert2009-03-191-9/+8
| | | | temporary file and then rename it; this change is imported from gnulib. (mostlyclean): Clean stdbool.h-t too. (ACINCLUDE_INPUTS): Remove rmdir.m4. Add strcase.m4.
* (gl_FUNC_RMDIR): Remove. (jm_PREREQ_ADDEXT): Remove; now down by ↵Paul Eggert2009-03-191-12/+2
| | | | gl_BACKUPFILE. (gl_STRCASE, gl_XALLOC): Add. (AC_REPLACE_FUNCS): Remove mkdir, strcasecmp.
* (intuit_diff_type): If a unified-diff header line contains trailing CR, ↵Paul Eggert2009-03-191-1/+8
| | | | strip CR from each body line. This corrects a bug introduced in the 2003-05-18 patch. Bug reported by Andreas Gruenbacher.
* (HDRS): Add gettext.h.Paul Eggert2009-03-191-1/+1
|
* (ifetch): int -> bool for booleans.Paul Eggert2009-03-191-4/+4
|
* (move_file, version_controller, version_get, ok_to_reverse, set_signals): ↵Paul Eggert2009-03-191-20/+18
| | | | int -> bool for booleans.
* (pch_says_nonexistent): Returns int, not bool. (p_strip_trailing_cr, ↵Paul Eggert2009-03-191-72/+73
| | | | 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): int -> bool for booleans.
* (report_revision, get_input_file, plan_a, plan_b, ifetch): int -> bool for ↵Paul Eggert2009-03-191-17/+17
| | | | booleans.
* (ok_to_reverse, version_controller, version_get, move_file, set_signals): ↵Paul Eggert2009-03-191-7/+7
| | | | int -> bool for booleans.
* (another_hunk, pch_says_nonexistent, pch_timestamp): int -> bool for booleans.Paul Eggert2009-03-191-5/+5
|
* (struct outstate, numeric_string, make_backups, backup_if_mismatch, ↵Paul Eggert2009-03-191-71/+71
| | | | remove_empty_files, reverse_flag_specified, main, reinitialize_almost_everything, get_some_switches, apply_hunk, init_output, copy_till): int -> bool for booleans.
* Add AM_STDBOOL_H.Paul Eggert2009-03-191-0/+1
|
* Include <stdbool.h>. Remove TRUE, FALSE, bool. All uses changed to standard ↵Paul Eggert2009-03-191-17/+5
| | | | names. (reverse, set_time, set_utc): Now bool, not int.
* (LIBSRCS): Remove rename.c. (MISC): Add stdbool.h.in. (stdbool.h): New rule. ↵Paul Eggert2009-03-191-8/+13
| | | | (ACINCLUDE_INPUTS): Add stdbool.m4. (mostlyclean): Remove stdbool.h. (COMMON): New macro; use it instead of common.h for dependencies.
* Bug fixes only.Paul Eggert2009-03-191-3/+3
|
* (p_pass_comments_through): New var. (pget_line): Accept new arg for ↵Paul Eggert2009-03-191-22/+84
| | | | 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.
* (move_file): Don't assume that when 'rename(A,B)' succeeds then A no longer ↵Paul Eggert2009-03-191-13/+19
| | | | 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.
* Don't include patchlevel.h. (version): Use PACKAGE_NAME and PACKAGE_VERSION ↵Paul Eggert2009-03-191-4/+3
| | | | instead of obsolete PROGRAM_NAME and PATCH_VERSION. (copyright_string): Bump to 2003.
* (FILESYSTEM_PREFIX_LEN, ISSLASH): Remove; now done by 'configure'. ↵Paul Eggert2009-03-191-15/+3
| | | | (PROGRAM_NAME): Remove; now done by 'configure' as PACKAGE_NAME.
* Do not include <exitfail.h>. (main): Set xalloc_exit_failure, not ↵Paul Eggert2009-03-191-7/+6
| | | | exit_failure. Add "&& !skip_rest_of_patch" when deciding to continue ed scripts. (option_help): Use PACKAGE_BUGREPORT rather than hardcoding.
* (AC_PREREQ): Bump to 2.57. (AC_INIT): Bump to 2.5.9. (AC_GNU_SOURCE): Add, ↵Paul Eggert2009-03-191-10/+29
| | | | 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.
* Fix typo.Paul Eggert2009-03-191-1/+1
|
* (LIBSRCS): Move error.c here from SRCS. (OBJS): Remove error.$(OBJEXT). ↵Paul Eggert2009-03-191-22/+36
| | | | (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.
* (intuit_diff_type): Do not warn about trailing white space after Prereq: word.Paul Eggert2009-03-191-4/+10
|
* Version 2.5.8 released.Paul Eggert2009-03-191-0/+2
|
* Version 2.5.7 released.Paul Eggert2009-03-191-1/+1
|
* POSIX.2 -> POSIXPaul Eggert2009-03-191-1/+1
|
* (report_revision): Don't modify 'revision', since it gets freed later. Bug ↵Paul Eggert2009-03-191-6/+6
| | | | reported by Mike Castle.
* (patchlevel.h): Depend on configure, not configure.ac.Paul Eggert2009-03-191-1/+1
|
* (MISC): Remove README-alpha.Paul Eggert2009-03-191-1/+1
|
* (AC_INIT): Version 2.5.7.Paul Eggert2009-03-191-1/+1
|
* Version 2.5.7Paul Eggert2009-03-191-0/+5
|
* (end_defined, apply_hunk): Output #endif without the comment, as POSIX ↵Paul Eggert2009-03-191-5/+4
| | | | 1003.1-2001 requires.
* (there_is_another_patch): Flush stderr after perror.Paul Eggert2009-03-191-1/+2
|
* Remove PARAMS.Paul Eggert2009-03-191-2/+2
|
* Fix paren typo.Paul Eggert2009-03-191-2/+2
|
* Put AC_PROG_CC_STDC after AC_MINIX.Paul Eggert2009-03-191-1/+1
|
* Fix copyright notice, remove PARAM.Paul Eggert2009-03-191-7/+8
|
* Add copyright notice; remove PARAMS.Paul Eggert2009-03-191-26/+46
|
* Add copyright notice, remove PARAMS.Paul Eggert2009-03-191-22/+42
|