Commit Graph
3916 Commits
Author SHA1 Message Date
Bruno Haible 1d8451a4da Actually use the EQUAL macro. 2006-12-21 20:09:09 +00:00
Bruno Haible edb56e7db6 Fix comment. 2006-12-18 13:23:40 +00:00
Bruno Haible 51d35e3054 Use diffseq.h. 2006-12-18 13:22:04 +00:00
Bruno Haible 015003ecc2 Make generic: New macro EXTRA_CONTEXT_FIELDS, NOTE_DELETE, NOTE_INSERT. 2006-12-18 13:21:20 +00:00
Bruno Haible 9a9cbc04b5 Remove an unnecessary verification. 2006-12-18 13:20:20 +00:00
Bruno Haible 8cdb29e693 Merge with fixes from gettext. 2006-12-18 13:19:48 +00:00
Bruno Haible 8a06aeedb3 Fix mistakes in previous revisions. 2006-12-18 13:19:12 +00:00
Bruno Haible 9b048d3da5 Improve variable declaration order. 2006-10-07 17:43:37 +00:00
Bruno Haible 62b07b53fd Use MIN and MAX from minmax.h. 2006-10-07 17:40:22 +00:00
Bruno Haible 1035087ea4 Use IF_LINT. 2006-10-07 17:37:46 +00:00
Bruno Haible 75142e151b Use IF_LINT. 2006-10-07 17:36:15 +00:00
Bruno Haible dd421e09a6 Remove an IF_LINT that is probably not necessary any more. 2006-10-07 17:35:49 +00:00
Bruno Haible f3713e0df7 Make closer to fstrcmp.c: mostly comments, and declare only one variable per
line.
2006-10-07 17:30:09 +00:00
Bruno Haible 0f82716bfd Make closer to diffseq.h: mostly comments and variable declaration style. 2006-10-07 17:28:57 +00:00
Bruno Haible a9715b5e12 Fix FSF address. 2006-10-07 17:04:01 +00:00
Bruno Haible 1db0b1b1ff Make multithread-safe. 2006-10-07 16:52:57 +00:00
Bruno Haible 5243fa6d9c Move USE_HEURISTIC comment. 2006-10-07 16:52:38 +00:00
Bruno Haible 14d4ab70a3 Make the heuristic dependent on USE_HEURISTIC and the variable 'heuristic'. 2006-10-07 16:40:41 +00:00
Bruno Haible 8f3a278d09 Update comments. Talk about vectors instead of files/strings, and about
elements instead of lines/characters.
2006-10-07 16:25:52 +00:00
Bruno Haible 7ac8aa1b7b Make generic: introduce OFFSET_MAX. 2006-10-07 16:07:31 +00:00
Bruno Haible ab6b29b084 Modernize the coding style. 2006-10-07 16:03:25 +00:00
Bruno Haible 24adf3df2c Update comments for use of 'bool'. 2006-10-07 15:54:15 +00:00
Bruno Haible d90d9c7a57 Use bool.
Rename minimal to find_minimal.
2006-10-07 15:53:27 +00:00
Bruno Haible 99445c66f1 Make generic: introduce type parameters. 2006-10-07 15:47:37 +00:00
Bruno Haible a47177dbaf Move the heart of the diff algorithm from analyze.c to diffseq.h. 2006-10-07 15:28:13 +00:00
Bruno Haible 12e0487381 Live on the diff-merge branch, not on HEAD. 2006-10-07 15:21:52 +00:00
Bruno Haible bc45ccc251 Difference of two sequences. 2006-10-07 15:20:20 +00:00
Bruno Haible 7fef1769f5 Fuzzy string comparison.
Taken from GNU gettext.
2006-10-07 15:19:14 +00:00
Bruno Haible 3666de781a Taken from diffutils/src/analyze.c 2006-10-07 15:18:43 +00:00
Bruno Haible 9779c75032 Comment changes. 2006-10-07 15:09:14 +00:00
Bruno Haible c5ce79f4c5 New module 'sublist'. 2006-10-07 14:47:21 +00:00
Paul Eggert 0250386985 * mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
name (relative to the original working directory) and the file
name component (relative to the temporary working directory).  All
callers changed.
* mkancesdirs.h (mkancesdirs): Adjust prototype to match.
* mkdir-p.c (make_dir_parents): Likewise.
* mkdir-p.h (make_dir_parents): Likewise.

SCALAR(0x827b260)
2006-10-06  Bruno Haible  <bruno@clisp.org>
2006-10-07 07:07:34 +00:00
Eric Blake 1e875448fb * clean-temp.h (close_stream_temp): New declaration.
* clean-temp.c (includes): Pull in headers according to what
other modules are in use.
(close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
2006-10-06 23:13:53 +00:00
Bruno Haible 05477f4de6 Return an error indicator. 2006-10-06 21:37:28 +00:00
Bruno Haible 0bf9d2e4f8 Provide a fallback for PATH_MAX. 2006-10-06 21:20:20 +00:00
Jim Meyering 7193a969ab [ChangeLog]
* modules/closeout (Description): Mention stderr too.
[lib/ChangeLog]
* closeout.c (close_stdout): Also close stderr.
* closeout.h: Update comment.
2006-10-06 13:59:10 +00:00
Bruno Haible 07db72ec7e Ensure temp file is closed before its directory is removed. 2006-10-06 13:32:11 +00:00
Bruno Haible bd63935b8a Have clean-temp register file open descriptors to temporary files. 2006-10-06 12:17:22 +00:00
Bruno Haible fca2f939ea Add bounded list search operations. 2006-10-06 12:06:07 +00:00
Paul Eggert 4131c37368 [lib/ChangeLog]
Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
<http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
* dirchownmod.c: Include lchown.h.
* lchown.c: Don't include files that lchown.h now includes.
Don't declare chown, since lchown.h now does that.
* lchown.h: Include errno.h, sys/types.h, unistd.h.
(lchown): Define to rpl_chown if lchown is declared but
does not exist.  Declare using a prototype if lchown is not
declared.  Add a copyright notice.
* mkstemp.h: Include <unistd.h>.
* openat.c: Include lchown.h.
[m4/ChangeLog]
* lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
2006-10-05 22:49:57 +00:00
Paul Eggert 2e749d9876 [lib/ChangeLog]
* fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
we now test for that separately.
* fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
rather than O_NOFOLLOW, when testing whether it's possible to
avoid a race condition reliably.
* savewd.c (savewd_chdir): Likewise.
[m4/ChangeLog]
* fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
O_NOATIME works.
2006-10-05 21:38:10 +00:00
Paul Eggert 44df621bcd Remove macros that are no longer needed now that stdint.h is
reliable.
* fsusage.c (UINTMAX_MAX): Remove.
* human.c (SIZE_MAX, UINTMAX_MAX): Remove.
* utimecmp.c (SIZE_MAX): Remove.
2006-10-05 21:23:20 +00:00
Bruno Haible 407400d936 Add searching operations, limited to a subsequence of the list. 2006-10-05 12:45:16 +00:00
Bruno Haible b308a020b7 Handle the Woe32 SIGBREAK too. 2006-10-05 12:40:48 +00:00
Bruno Haible 5c90f29795 Add a search_atleast operation. 2006-10-04 17:28:15 +00:00
Jim Meyering a7cc0db9f5 * fts.c (fts_open): Tiny comment change. 2006-10-04 17:21:22 +00:00
Bruno Haible 757c49d511 Whitespace normalization. 2006-10-04 17:00:21 +00:00
Bruno Haible 027f9be0c7 Fix a weird typo. 2006-10-04 16:59:33 +00:00
Bruno Haible 79b6b4a181 Fix return type. 2006-10-04 16:56:38 +00:00
Bruno Haible 5a0d317d04 Comment fixes. 2006-10-04 16:54:24 +00:00