Avoid gcc warnings.
[gnulib.git] / ChangeLog
index e81a4e3..57496e2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,150 @@
+2008-04-27  Bruno Haible  <bruno@clisp.org>
+
+       * lib/memchr.c (__memchr): Change type of 'i'.
+       * lib/memchr2.c (memchr2): Likewise.
+
+2008-04-26  Eric Blake  <ebb9@byu.net>
+       and Bruno Haible  <bruno@clisp.org>
+
+       Optimize and test memrchr.
+       * modules/memrchr (Depends-on): Add intprops.
+       * lib/memrchr.c (__memrchr): Avoid false positives in loop.
+       * modules/memrchr-tests: New file.
+       * tests/test-memrchr.c: New file.
+
+2008-04-26  Bruno Haible  <bruno@clisp.org>
+
+       Add tentative support for DragonFly BSD.
+       * lib/stdio-impl.h: Add macros for DragonFly BSD.
+       * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
+       fp.
+       * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
+       restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
+       * lib/fpurge.c (fpurge): Likewise.
+       * lib/freadable.c (freaadable): Likewise.
+       * lib/freadahead.c (freadahead): Likewise.
+       * lib/freading.c (freading): Likewise.
+       * lib/freadptr.c (freadptr): Likewise.
+       * lib/freadseek.c (freadptrinc): Likewise.
+       * lib/fseeko.c (fseeko): Likewise.
+       * lib/fseterr.c (fseterr): Likewise.
+       * lib/fwritable.c (fwritable): Likewise.
+       * lib/fwriting.c (fwriting): Likewise.
+
+2008-04-26  Bruno Haible  <bruno@clisp.org>
+
+       * lib/stdio-impl.h: New file.
+       * lib/fbufmode.c: Include stdio-impl.h.
+       (fbufmode): Use fp_, remove redundant #defines.
+       * lib/fflush.c: Include stdio-impl.h.
+       (clear_ungetc_buffer): Remove redundant #defines.
+       * lib/fpurge.c: Include stdio-impl.h.
+       (fpurge): Remove redundant #defines.
+       * lib/freadable.c: Include stdio-impl.h.
+       (freadable): Remove redundant #defines.
+       * lib/freadahead.c: Include stdio-impl.h.
+       (freadahead): Remove redundant #defines.
+       * lib/freading.c: Include stdio-impl.h.
+       (freading): Remove redundant #defines.
+       * lib/freadptr.c: Include stdio-impl.h.
+       (freadptr): Remove redundant #defines.
+       * lib/freadseek.c: Include stdio-impl.h.
+       (freadptrinc): Remove redundant #defines.
+       * lib/fseeko.c: Include stdio-impl.h.
+       (rpl_fseeko): Remove redundant #defines.
+       * lib/fseterr.c: Include stdio-impl.h.
+       (fseterr): Remove redundant #defines.
+       * lib/fwritable.c: Include stdio-impl.h.
+       (fwritable: Remove redundant #defines.
+       * lib/fwriting.c: Include stdio-impl.h.
+       (fwriting): Remove redundant #defines.
+       * modules/fbufmode (Files): Add lib/stdio-impl.h.
+       * modules/fflush (Files): Likewise.
+       * modules/fpurge (Files): Likewise.
+       * modules/freadable (Files): Likewise.
+       * modules/freadahead (Files): Likewise.
+       * modules/freading (Files): Likewise.
+       * modules/freadptr (Files): Likewise.
+       * modules/freadseek (Files): Likewise.
+       * modules/fseeko (Files): Likewise.
+       * modules/fseterr (Files): Likewise.
+       * modules/fwritable (Files): Likewise.
+       * modules/fwriting (Files): Likewise.
+
+2008-04-26  Bruno Haible  <bruno@clisp.org>
+
+       * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
+       restore_seek_optimization, update_fpos_cache): New functions, extracted
+       from rpl_fflush.
+       (rpl_fflush): Use them.
+       * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
+       (gl_REPLACE_FFLUSH): Use it.
+
+2008-04-26  Bruno Haible  <bruno@clisp.org>
+
+       * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
+       on Solaris.
+       * tests/test-xstrtoimax.sh: Likewise.
+       * tests/test-xstrtoumax.sh: Likewise.
+       Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
+
+2008-04-26  Bruno Haible  <bruno@clisp.org>
+
+       * modules/memchr-tests: New file.
+       * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
+
+2008-04-26  Eric Blake  <ebb9@byu.net>
+            Bruno Haible  <bruno@clisp.org>
+
+       * lib/memchr.c: Include intprops.h.
+       (__memchr): Optimize parallel detection of matching bytes. Rename local
+       variables. Add explanatory comments.
+
+2008-04-26  Bruno Haible  <bruno@clisp.org>
+
+       Fix module 'memchr', broken since 2000-10-28.
+       * lib/memchr.c: Outside glibc, define memchr, not __memchr.
+
+2008-04-26  Bruno Haible  <bruno@clisp.org>
+
+       * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
+       comments.
+
+2008-04-25  Eric Blake  <ebb9@byu.net>
+
+       Use native fstatat on cygwin 1.7.0.
+       * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
+       first.
+
+2008-04-23  Eric Blake  <ebb9@byu.net>
+
+       Improve memchr2 performance.
+       * lib/memchr2.c (memchr2): Further optimize parallel detection of
+       NUL bytes.
+       * modules/memchr2 (Depends-on): Use intprops.h.
+
+2008-04-23  Simon Josefsson  <simon@josefsson.org>
+
+       * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
+       an inline function instead of a CPP macro.  Patch by Ben Pfaff
+       <blp@cs.stanford.edu>.
+
+2008-04-23  Simon Josefsson  <simon@josefsson.org>
+
+       * lib/arpa_inet.in.h: New file.
+
+       * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
+       (Makefile.am): Sed in substitute header file.
+
+       * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
+       gl_ARPA_INET_MODULE_INDICATOR.  Use them.
+
+       * modules/inet_ntop (configure.ac): Use
+       gl_ARPA_INET_MODULE_INDICATOR.
+
+       * modules/inet_pton (configure.ac): Use
+       gl_ARPA_INET_MODULE_INDICATOR.
+
 2008-04-22  Jim Meyering  <meyering@redhat.com>
 
        * modules/verify (License): Re-license as LGPLv2+.