sha1.c, md5.c: Hoist a redundant expression.
[gnulib.git] / ChangeLog
index 7d64aa0..97d711f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,641 @@
+2008-03-15  Jim Meyering  <meyering@redhat.com>
+
+       sha1.c, md5.c: Hoist a redundant expression.
+       * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
+       "ctx->buflen" only once, before calling *_process_block.
+       * lib/md5.c (md5_process_bytes): Likewise.
+
+2008-03-14  Eric Blake  <ebb9@byu.net>
+
+       Bump copyright year in files generated by gnulib-tool.
+       * gnulib-tool (func_emit_copyright_notice): Extract copyright from
+       gnulib-tool, rather than hard-coding it.
+
+       Fix 'gnulib-tool --version' output to work with git.
+       * gnulib-tool (func_gnulib_dir): New function, extracted from...
+       (startup): ...here.
+       (func_version): Use it to invoke git-version-gen, rather than
+       relying on CVS keyword expansion.  Modernize wording.
+       (cvsdatestamp, last_checkin_date, version): Kill unused
+       variables.
+
+2008-03-12  Jim Meyering  <meyering@redhat.com>
+
+       Recognize optional cast of the argument to free.
+       * build-aux/useless-if-before-free: Update regexps.
+
+       * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
+
+2008-03-11  Bruno Haible  <bruno@clisp.org>
+
+       Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
+       by a single package.
+       * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
+       (AC_LIB_LINKFLAGS_BODY): Use the information stored by
+       AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
+       Reported by Sam Steingold <sds@gnu.org>.
+
+2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
+
+       * build-aux/bootstrap (version_controlled_file): Adapt for SVN
+       repositories.
+
+2008-03-11  Bruno Haible  <bruno@clisp.org>
+
+       Avoid conflicts between local macro definitions.
+       * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
+       AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
+
+2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
+           Bruno Haible  <bruno@clisp.org>
+
+       Make va_copy work with some version of xlc on AIX 5.1.
+       * lib/stdarg.in.h: New file.
+       * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
+       On AIX, use a <stdarg.h> file substitute.
+       * modules/stdarg (Files): Add lib/stdarg.in.h.
+       (Depends-on): Add include_next.
+       (Makefile.am): Build a stdarg.h substitute if requested.
+       * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
+
+2008-03-10  Bruno Haible  <bruno@clisp.org>
+
+       * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
+       * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
+       Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
+
+2008-03-10  Bruno Haible  <bruno@clisp.org>
+
+       * modules/stdlib (Depends-on): Add include_next, remove
+       absolute-header.
+
+2008-03-09  Bruno Haible  <bruno@clisp.org>
+
+       * lib/freadahead.h (freadahead): Document more precisely.
+       * lib/freadahead.c (freadahead): When an ungetc is in effect, return
+       the sum of both buffer sizes.
+       * tests/test-freadahead.c (main): Also test behaviour after ungetc.
+       * NEWS: Document the change.
+
+2008-03-09  Bruno Haible  <bruno@clisp.org>
+
+       Extend freadptr to return also the buffer size.
+       * lib/freadptr.h (freadptr): Add sizep argument.
+       * lib/freadptr.c: Include freadptr.h, not freadahead.h.
+       (freadptr): Add sizep argument. Determine buffer size like freadahead
+       does.
+       * tests/test-freadptr.c: Don't include freadahead.h.
+       (main): Adapt for new calling convention of freadptr.
+       * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
+       * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
+       * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
+       tests/test-freadptr2.sh.
+       (Depends): Remove freadahead.
+       (TESTS): Add test-freadptr2.sh.
+       (check_PROGRAMS): Add test-freadptr2.
+
+2008-03-09  Bruno Haible  <bruno@clisp.org>
+
+       * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
+       Report and solution by Simon Josefsson.
+
+2008-03-06  Bruno Haible  <bruno@clisp.org>
+
+       Make fflush after ungetc work on BSD platforms.
+       * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
+       * tests/test-fflush2.c: New file.
+       * tests/test-fflush2.sh: New file.
+       * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
+       tests/test-fflush2.c.
+       (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
+       * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
+
+2008-03-06  Eric Blake  <ebb9@byu.net>
+
+       Likewise for ftello.
+       * modules/ftello (Dependencies): Add extensions.
+       * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
+
+2008-03-06  Bruno Haible  <bruno@clisp.org>
+
+       * modules/fseeko (Dependencies): Add extensions.
+       * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
+       Needed on glibc systems.
+
+2008-03-06  Bruno Haible  <bruno@clisp.org>
+
+       * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
+       email address.
+       Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
+
+2008-03-06  Bruno Haible  <bruno@clisp.org>
+
+       * users.txt: Add libgnupdf.
+
+2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
+
+       * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
+       (Header File Substitutes, Function Substitutes,
+       Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
+       (Build robot for gnulib): Fix typo.
+
+2008-03-06  Bruno Haible  <bruno@clisp.org>
+
+       * doc/gnulib-tool.texi (VCS Issues): Small updates.
+       Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
+
+2008-03-06  Bruno Haible  <bruno@clisp.org>
+
+       * doc/func.texi: New file, extracted from doc/gnulib.texi.
+       * doc/gnulib.texi: Include it.
+
+2008-03-06  Simon Josefsson  <simon@josefsson.org>
+
+       * modules/func (License): Change license to unlimited; there was
+       no LGPL parts in the module anyway.
+
+2008-03-06  Simon Josefsson  <simon@josefsson.org>
+
+       * modules/__func__: Renamed to modules/func.
+       * modules/__func__-tests: Renamed to modules/func-tests.
+       * tests/test-__func__.c: Renamed to tests/test-func.c.
+       * m4/__func__.m4: Renamed to m4/func.m4.
+       * doc/gnulib.texi (__func__): Section renamed to func.
+       Suggested by Eric Blake <ebb9@byu.net>.
+
+2008-03-06  Simon Josefsson  <simon@josefsson.org>
+
+       * doc/gnulib.texi (__func__): Use C99 terminology when talking
+       about __func__.  Make example self-contained.  Suggested by Eric
+       Blake <ebb9@byu.net>.
+
+       * tests/test-__func__.c (main): Avoid extraneous () around __func.
+       Suggested by Eric Blake <ebb9@byu.net>.
+
+2008-03-06  Simon Josefsson  <simon@josefsson.org>
+
+       * modules/__func__: New file.
+       * modules/__func__-tests: New file.
+       * tests/test-__func__.c: New file.
+       * m4/__func__.m4: New file.
+       * doc/gnulib.texi (__func__): Document __func__ module.
+
+2008-03-05  Simon Josefsson  <simon@josefsson.org>
+
+       * modules/byteswap (License): Re-license as LGPLv2+.
+
+2008-03-05  Simon Josefsson  <simon@josefsson.org>
+
+       * doc/Makefile: Add pdf target.
+
+2008-03-05  Simon Josefsson  <simon@josefsson.org>
+
+       * modules/inline (License): Use 'unlimited', since there are only
+       *.m4 files in this module.
+
+2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
+           Bruno Haible  <bruno@clisp.org>
+
+       Add support for HP C 7.1 on OpenVMS 8.3.
+       * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
+
+2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
+
+       Update VMS specifics.
+       * lib/getopt.c [VMS]: Remove include of unixlib.h.
+
+2008-03-02  Jim Meyering  <meyering@redhat.com>
+
+       Remove the last dependency on the "free" module.
+       * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
+       Reported by Bob Proulx.
+
+       * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
+
+       Remove useless "if" tests before free.  Deprecate "free" module.
+       * doc/posix-functions/free.texi: Mention that this
+       module is no longer useful.
+       * modules/free (Notice): Say this module is obsolete.
+       * modules/readutmp (Depends-on): Remove free.
+       * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
+       * lib/putenv.c (putenv): Likewise.
+       * lib/gc-gnulib.c (gc_cipher_close): Likewise.
+       * lib/getaddrinfo.c (freeaddrinfo): Likewise.
+       * tests/test-c-strcasestr.c (main): Likewise.
+       * tests/test-c-strstr.c (main): Likewise.
+       * tests/test-mbscasestr1.c (main): Likewise.
+       * tests/test-mbscasestr2.c (main): Likewise.
+       * tests/test-mbsstr1.c (main): Likewise.
+       * tests/test-mbsstr2.c (main): Likewise.
+       * tests/test-memmem.c (main): Likewise.
+       * tests/test-strcasestr.c (main): Likewise.
+       * tests/test-striconv.c (main): Likewise.
+       * tests/test-striconveh.c (main): Likewise.
+       * tests/test-striconveha.c (main): Likewise.
+       * tests/test-strstr.c (main): Likewise.
+
+       * build-aux/git-version-gen: Adjust a comment and the Usage string.
+
+       bootstrap: sync from coreutils again
+       * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
+
+2008-03-01  Jim Meyering  <meyering@redhat.com>
+
+       bootstrap: sync from coreutils
+       * build-aux/bootstrap (update_po_files): Copy a .po file into place
+       also when the target doesn't exist.
+
+2008-03-01  Eric Blake  <ebb9@byu.net>
+
+       Fix bugs in last patch.
+       * lib/memchr2.c (memchr2): Fix typo.
+       * tests/test-memchr2.c: Test previous bug, and don't use GNU
+       extension.
+       Reported by Bruce Korb.
+
+       New module 'memchr2'.
+       * modules/memchr2: New file.
+       * modules/memchr2-tests: Likewise.
+       * lib/memchr2.h: Likewise.
+       * lib/memchr2.c: Likewise, based on memchr.c.
+       * tests/test-memchr2.c: New test.
+       * MODULES.html.sh (String handling): Add memchr2.
+
+2008-02-29  Bruno Haible  <bruno@clisp.org>
+
+       * modules/freadseek-tests: New file.
+       * tests/test-freadseek.sh: New file.
+       * tests/test-freadseek.c: New file.
+
+       New module 'freadseek'.
+       * modules/freadseek: New file.
+       * lib/freadseek.h: New file.
+       * lib/freadseek.c: New file.
+       * MODULES.html.sh (File stream based Input/Output): Add freadseek.
+
+2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
+
+       * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
+       wydawca.
+
+       * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
+       program_invocation_name and program_invocation_short_name are
+       present.
+
+2008-02-28  Bruno Haible  <bruno@clisp.org>
+
+       * tests/test-freadptr.c: Add a test for behaviour after ungetc.
+       * tests/test-freadptr.sh: Also test non-seekable stdin.
+
+2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
+
+       * build-aux/bootstrap (source_base, m4_base)
+       (doc_base, tests_base): New variables.
+       (gnulib_tool_options): Do not hardcode base directories, use
+       the above variables instead.
+
+2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
+
+       * lib/xsize.h: Fix typo in comment: s/tupe/type/.
+
+2008-02-28  Bruno Haible  <bruno@clisp.org>
+
+       * modules/freadptr-tests: New file.
+       * tests/test-freadptr.sh: New file.
+       * tests/test-freadptr.c: New file.
+
+       New module 'freadptr'.
+       * modules/freadptr: New file.
+       * lib/freadptr.h: New file.
+       * lib/freadptr.c: New file.
+       * MODULES.html.sh (File stream based Input/Output): Add freadptr.
+
+2008-02-26  Karl Berry  <karl@freefriends.org>
+
+       Sync from Libtool:
+       * libltdl/argz.c (argz_add, argz_count): New functions.
+       * libltdl/argz.in.h: Declare them.
+       Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
+
+2008-02-22  Bruno Haible  <bruno@clisp.org>
+
+       * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
+       is a pointer type.  Needed for HP-UX 10.
+       * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
+       * doc/posix-functions/gmtime_r.texi: Likewise.
+       Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
+
+2008-02-24  Bruno Haible  <bruno@clisp.org>
+
+       * modules/environ-tests: New file.
+       * tests/test-environ.c: New file.
+
+       New module 'environ'.
+       * modules/environ: New file.
+       * lib/unistd.in.h (environ): New declaration.
+       * m4/environ.m4: New file.
+       (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
+       after use.
+       * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
+       HAVE_DECL_ENVIRON.
+       * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
+       HAVE_DECL_ENVIRON.
+       * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
+       wrong claim that 'environ' is missing on some systems.
+       * modules/execute (Depends-on): Add environ.
+       * lib/execute.c (environ): Remove fallback declaration.
+       * modules/pipe (Depends-on): Add environ.
+       * lib/pipe.c (environ): Remove fallback declaration.
+       * modules/setenv (Depends-on): Add environ.
+       * lib/setenv.c (environ): Remove fallback declaration.
+       * modules/unsetenv (Depends-on): Add environ.
+       * lib/unsetenv.c (environ): Remove fallback declaration.
+       * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
+       m4/environ.m4.
+       (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
+       (gl_PREREQ_UNSETENV): Likewise.
+
+2008-02-24  Bruno Haible  <bruno@clisp.org>
+
+       * doc/posix-functions/environ.texi: Document the MacOS X problem.
+
+2008-02-20  Bob Proulx  <bob@proulx.com>
+
+       Enable use of older two part flavor 'git describe'.
+       * build-aux/git-version-gen: If using the older two part flavor of
+       git version then recreate the third part now present in the
+       newer three part flavor of git describe.
+
+2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
+
+       * lib/fts.c (fts_build): Typo correction to comment.
+
+2008-02-17  Bruno Haible  <bruno@clisp.org>
+
+       * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
+       generating no-op conflicts.
+
+2008-02-17  Bruno Haible  <bruno@clisp.org>
+
+       Speed up by 10%.
+       * lib/git-merge-changelog.c (main): Use the iterator to iterate through
+       result_entries, rather than an index-based loop.
+
+2008-02-17  Bruno Haible  <bruno@clisp.org>
+
+       Speed up by 25%.
+       * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
+       'hashcode_cached'.
+       (entry_create): New function.
+       (entry_hashcode): Use the cached hashcode if possible.
+       (read_changelog_file, try_split_merged_entry): Use entry_create.
+
+2008-02-17  Bruno Haible  <bruno@clisp.org>
+
+       Speed up from O(n^2) to O(n) for long ChangeLog files.
+       * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
+       (read_changelog_file): Change implementation of entries_reversed list
+       to rbtreehash.
+       * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
+
+2008-02-17  Bruno Haible  <bruno@clisp.org>
+
+       New option --split-merged-entry.
+       * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
+       (find_paragraph_end, try_split_merged_entry): New functions.
+       (long_options): Add option --split-merged-entry.
+       (usage): Document option --split-merged-entry.
+       (main): Implement option --split-merged-entry.
+       Reported by Eric Blake.
+
+2008-02-17  Bruno Haible  <bruno@clisp.org>
+
+       * lib/git-merge-changelog.c: Include c-strstr.h.
+       (main): Support the "git pull --rebase" situation.
+       * modules/git-merge-changelog (Depends-on): Add c-strstr.
+       Reported by Eric Blake.
+
+2008-02-16  Eric Blake  <ebb9@byu.net>
+
+       Avoid doubling \ in common case of "c-maybe" quoting style.
+       * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
+       eliding outer quotes.
+       * lib/quotearg.h: Document this.
+       * tests/test-quotearg.c (result_strings, inputs, results_g)
+       (flag_results, locale_results): Test it by adding a new string to
+       each test group.
+       (compare_strings): Test new string.
+
+2008-02-13  Eric Blake  <ebb9@byu.net>
+
+       Avoid trigraph quoting in default output.
+       * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
+       * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
+       unless explicitly requested.
+       * tests/test-quotearg.c (flag_results, main): Add additional tests.
+
+2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
+
+       Don't rely on signed integer overflowing to negative value.
+       * lib/getugroups.c (getugroups): Include <limits.h>.
+       Instead, compare against INT_MAX, and increment only if the test passes.
+
+2008-02-13  Jim Meyering  <meyering@redhat.com>
+       and Eric Blake  <ebb9@byu.net>
+
+       Avoid shadowing warning and compile errors on Linux.
+       * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
+       forwarding macros on Linux.
+       (dcgettext): Define a stub, for Linux.
+       (results_g, main): Avoid warnings.
+
+2008-02-12  Eric Blake  <ebb9@byu.net>
+
+       Silence warning in last patch.
+       * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
+
+       Quotearg part 4: add tests, fix c-maybe colon quoting.
+       * lib/quotearg.h: Improve documentation.
+       * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
+       escapes when adding outer quotes.  When quoting trigraphs, use
+       valid C notation.  When quoting NUL, omit extra characters if next
+       character is not digit.  Alter prototype.
+       (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
+       callers.
+       * modules/quotearg-tests: New module.
+       * tests/test-quotearg.c: New test.
+
+2008-02-07  Eric Blake  <ebb9@byu.net>
+
+       Quotearg part 3: add flag to control outer quote elision.
+       * lib/quotearg.h (c_maybe_quoting_style): New style.
+       (enum quoting_flags): Better documentation of flags.
+       * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
+       c-maybe style.
+       (quotearg_buffer_restyled): Handle new flag to elide outer
+       quotes.
+
+       Quotearg part 2: add flag that can control NUL elision.
+       * lib/quotearg.h (set_quoting_flags): New prototype.
+       * lib/quotearg.c (struct quoting_options): Add flag field.
+       (set_quoting_flags): New function.
+       (quotearg_buffer_restyled): Add flags parameter.
+       (quotearg_alloc_mem): Set the flag if length cannot be returned.
+       (quotearg_n_options): Set the flag, since length cannot be
+       returned.
+       (quoting_options_from_style): Default flags correctly.
+
+       Quotearg part 1: more wrappers, restore quotearg_char state.
+       * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
+       (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
+       (quotearg_colon_mem): New wrappers.
+       * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
+       (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
+       functions.
+       (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
+       (quotearg_colon_mem): New functions.
+
+2008-02-11  Bruno Haible  <bruno@clisp.org>
+
+       * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
+       library in the current directory: it does not work with parallel make.
+       Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
+
+2008-02-11  Bruno Haible  <bruno@clisp.org>
+
+       * .gitattributes: New file.
+
+2008-02-11  Jim Meyering  <meyering@redhat.com>
+
+       useless-if-before-free: Fix reversed exit values.
+       * build-aux/useless-if-before-free: Use correct values
+       for EXIT_MATCH and EXIT_NO_MATCH.
+
+       * build-aux/useless-if-before-free: Close stdout carefully.
+
+2008-02-10  Bruno Haible  <bruno@clisp.org>
+
+       New module 'git-merge-changelog'.
+       * modules/git-merge-changelog: New file.
+       * lib/git-merge-changelog.c: New file.
+
+2008-02-10  Jim Meyering  <meyering@redhat.com>
+
+       useless-if-before-free: New option: --list (-l).
+
+       useless-if-before-free: Don't exit immediately upon open failure.
+       * build-aux/useless-if-before-free: Exit 2 for errors.
+       Upon failure to open a file, don't exit immediately.
+       Rather, just warn and continue with any remaining files.
+
+2008-02-10  Bruno Haible  <bruno@clisp.org>
+
+       New abstract list operation 'node_set_value'.
+       * lib/gl_list.h (gl_list_node_set_value): New function.
+       (struct gl_list_implementation): New field node_set_value.
+       * lib/gl_list.c (gl_list_node_set_value): New function.
+       * lib/gl_array_list.c (gl_array_node_set_value): New function.
+       (gl_array_list_implementation): Update.
+       * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
+       (gl_carray_list_implementation): Update.
+       * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
+       * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
+       * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
+       * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
+       * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
+       * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
+       * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
+       Update.
+       * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
+       * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
+       (gl_sublist_list_implementation): Update.
+
+2008-02-10  Bruno Haible  <bruno@clisp.org>
+
+       * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
+       Needed when ELEMENT is #defined to 'some_type *'.
+
+2008-02-10  Jim Meyering  <meyering@redhat.com>
+
+       New script and module: useless-if-before-free
+       * MODULES.html.sh (maint+release support): Add useless-if-before-free.
+       * build-aux/useless-if-before-free: New file.
+       * modules/useless-if-before-free: New file.
+
+       * build-aux/gitlog-to-changelog: Use committer date, not author date.
+
+       xstrtol_error: Fix typo.
+       * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
+       s/exit_failure/exit_status/.
+
+2008-02-09  Jim Meyering  <meyering@redhat.com>
+
+       New script and module: gitlog-to-changelog
+       * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
+       * modules/gitlog-to-changelog: New file.
+       * build-aux/gitlog-to-changelog: New file.
+
+2008-02-08  Jim Meyering  <meyering@redhat.com>
+
+       Avoid two "parameter unused" warnings.
+       * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
+       Mark "st" as used.
+
+       Use "git COMMAND", not "git-COMMAND".
+       * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
+       * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
+       * build-aux/git-version-gen: Use "git status", not "git-status".
+
+2008-02-07  Bruno Haible  <bruno@clisp.org>
+
+       * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
+       Avoids a crash on Windows Vista.
+       Reported by Adam Strzelecki <ono@java.pl> via
+       Simon Josefsson <simon@josefsson.org>.
+
+2008-02-06  Bruno Haible  <bruno@clisp.org>
+
+       Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
+       * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
+       * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
+       * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
+       (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
+       * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
+       gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
+       gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
+       * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
+       * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
+       * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
+       * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
+       * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
+       * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
+       * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
+       * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
+       left-adjust flag.
+       * tests/test-snprintf-posix.h (test_function): Likewise.
+       * tests/test-sprintf-posix.h (test_function): Likewise.
+       * tests/test-vasprintf-posix.c (test_function): Likewise.
+       * doc/posix-functions/fprintf.texi: Update.
+       * doc/posix-functions/printf.texi: Update.
+       * doc/posix-functions/snprintf.texi: Update.
+       * doc/posix-functions/sprintf.texi: Update.
+       * doc/posix-functions/vfprintf.texi: Update.
+       * doc/posix-functions/vprintf.texi: Update.
+       * doc/posix-functions/vsnprintf.texi: Update.
+       * doc/posix-functions/vsprintf.texi: Update.
+       Reported by Peter Fales <psfales@alcatel-lucent.com>.
+
+2008-02-06  Bruno Haible  <bruno@clisp.org>
+
+       Fix bug introduced on 2008-01-26.
+       * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
+
+2008-02-06  Bruno Haible  <bruno@clisp.org>
+
+       Fix bug introduced on 2007-06-10.
+       * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
+       !NEED_PRINTF_FLAG_ZERO.
+
 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
 
        getloadavg: use libperfstat on AIX5
        * lib/sha1.h: Likewise.
 
 2008-01-30  Andreas Schwab  <schwab@suse.de>
-            Bruno Haible  <bruno@clisp.org>
+           Bruno Haible  <bruno@clisp.org>
 
        * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
        correct definition of LDBL_MIN_EXP.
        * NEWS: Mention the change.
 
 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
-            Bruno Haible  <bruno@clisp.org>
+           Bruno Haible  <bruno@clisp.org>
 
        * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
        the GCC builtins for signbits are present and set
        here, since it is not a POSIX function.
 
 2008-01-14  Colin Watson  <cjwatson@debian.org>
-            Bruno Haible  <bruno@clisp.org>
+           Bruno Haible  <bruno@clisp.org>
 
        * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
        works fine; if not, set REPLACE_STRSIGNAL.
        * m4/uintmax_t.m4: New file.
        * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
 
-Copyright (C) 1997-2008 Free Software Foundation, Inc.
-Copying and distribution of this file, with or without modification,
-are permitted provided the copyright notice and this notice are preserved.
+
+       -----
+
+       Copyright (C) 1997-2008 Free Software Foundation, Inc.
+
+       Copying and distribution of this file, with or without
+       modification, are permitted provided the copyright notice
+       and this notice are preserved.