X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=ChangeLog;h=5a3fcbc33a7883d84379f6bf778b0502643fe462;hb=d2a45d9a8b6d045041db52a37fc7e1226d12deec;hp=60534c9348266700484ff3cd2a2f2051520608e6;hpb=ee303d1ff29a6bc3faa9a485d53176bf90f17023;p=gnulib.git diff --git a/ChangeLog b/ChangeLog index 60534c934..5a3fcbc33 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,334 @@ +2008-04-28 Eric Blake + + Optimize and test strchrnul. + * lib/strchrnul.c (strchrnul): Rewrite to do parallel search. + * modules/strchrnul-tests: New file. + * tests/test-strchrnul.c: Likewise. + + Remove intprops dependency. + * modules/memchr (Depends-on): Remove intprops. + * modules/memrchr (Depends-on): Likewise. + * modules/memchr2 (Depends-on): Likewise. + * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check. + * lib/memrchr.c (__memrchr): Likewise. + * lib/memrchr2.c (memchr2): Likewise. + Reported by Simon Josefsson. + +2008-04-28 Simon Josefsson + + * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top. + Suggested by Ralf Wildenhues . + +2008-04-28 Simon Josefsson + + * lib/inet_ntop.h, lib/inet_pton.h: Remove files. + + * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h. + + * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h. + + * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h + declarations. + [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations. + + * m4/inet_pton.m4: Don't check for header files. + + * m4/inet_ntop.m4: Don't check for header files. + +2008-04-28 Simon Josefsson + + * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary. + * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't + trigger for cygwin). + Reported by Bruno Haible . + +2008-04-28 Bruno Haible + + * doc/posix-functions/strdup.texi: Mention mingw problem. + +2008-04-27 Bruno Haible + + * modules/stat-time-tests (Depends-on): Add sleep. + * tests/test-stat-time.c (force_unlink): New function. + (cleanup): Use it. + (test_mtime): Remove the ctime related tests. + (test_ctime): New function, containing the ctime related tests. + (main): Call test_ctime, except on native Windows platforms. + +2008-04-27 Bruno Haible + + * lib/rpmatch.c (rpmatch): Add some comments. + Reported by James Youngman . + +2008-04-27 Bruno Haible + + * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on + quiet NaNs. + +2008-04-27 Bruno Haible + + Make test-yesno.sh work on mingw. + * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF. + * tests/test-yesno.c: Include yesno.h first. Include binary-io.h. + (main): Set stdin to binary mode. + * modules/yesno-tests (Depends-on): Add binary-io. + +2008-04-27 Bruno Haible + + Fix 'isfinite' on x86, x86_64, ia64 platforms. + * tests/test-isfinite.c (test_isfinitel): Also test the behavior on + argument that lie outside the IEEE 854 domain. + * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro. + (gl_ISFINITE): Use it. + * doc/posix-functions/isfinite.texi: Document the fixed bugs. + +2008-04-27 Bruno Haible + + Allow local renaming in config.h. + * lib/memrchr.c (memrchr): Don't undefine outside libc. + +2008-04-27 Bruno Haible + + * lib/memchr.c (__memchr): Change type of 'i'. + * lib/memchr2.c (memchr2): Likewise. + +2008-04-26 Eric Blake + and Bruno Haible + + 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 + + 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 + + * 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 + + * 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 + + * 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 . + +2008-04-26 Bruno Haible + + * modules/memchr-tests: New file. + * tests/test-memchr.c; New file, based on tests/test-memchr2.c. + +2008-04-26 Eric Blake + Bruno Haible + + * lib/memchr.c: Include intprops.h. + (__memchr): Optimize parallel detection of matching bytes. Rename local + variables. Add explanatory comments. + +2008-04-26 Bruno Haible + + Fix module 'memchr', broken since 2000-10-28. + * lib/memchr.c: Outside glibc, define memchr, not __memchr. + +2008-04-26 Bruno Haible + + * lib/memchr2.c (memchr2): Rename local variables. Add explanatory + comments. + +2008-04-25 Eric Blake + + 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 + + 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 + + * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring + an inline function instead of a CPP macro. Patch by Ben Pfaff + . + +2008-04-23 Simon Josefsson + + * 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 + + * modules/verify (License): Re-license as LGPLv2+. + +2008-04-22 Simon Josefsson + + * lib/sys_socket.in.h: Define setsockopt macro to cast fourth + parameter to void* as per POSIX standard (MinGW uses char*). + +2008-04-21 Bruno Haible + + * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, + iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit): + Define to replacements if REPLACE_ISWCNTRL is 1. + * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work. + If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1. + * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL. + * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and + what it fixes. + * doc/posix-functions/iswalpha.texi: Likewise. + * doc/posix-functions/iswblank.texi: Likewise. + * doc/posix-functions/iswcntrl.texi: Likewise. + * doc/posix-functions/iswdigit.texi: Likewise. + * doc/posix-functions/iswgraph.texi: Likewise. + * doc/posix-functions/iswlower.texi: Likewise. + * doc/posix-functions/iswprint.texi: Likewise. + * doc/posix-functions/iswpunct.texi: Likewise. + * doc/posix-functions/iswspace.texi: Likewise. + * doc/posix-functions/iswupper.texi: Likewise. + * doc/posix-functions/iswxdigit.texi: Likewise. + Reported by Alain Guibert. + +2008-04-21 Bruno Haible + + * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit. + Patch by Alain Guibert. + +2008-04-21 Bruno Haible + + Fix test failures on mingw. + * tests/test-xstrtol.c (print_no_progname): New function. + (main): Install it in error_print_progname hook. + * tests/test-xstrtol.sh: Convert CR/LF to NL in output. + * tests/test-xstrtoimax.sh: Likewise. + * tests/test-xstrtoumax.sh: Likewise. + +2008-04-21 Bruno Haible + + Fix test failure on mingw. + * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output. + +2008-04-21 Bruno Haible + + * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN): + Actually assign a value. + +2008-04-20 Bruno Haible + + Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl', + take 2. + * lib/canonicalize.c (canonicalize_file_name): Elide if the + 'canonicalize-lgpl' module is also used. + * lib/canonicalize-lgpl.c: Undo last change. + * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR. + +2008-04-20 Bruno Haible + + * lib/mkdir.c (mkdir): Undefine after the includes, not right after + config.h. Provide _mkdir based fallback for mingw. + * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration + if REPLACE_MKDIR is 1. Otherwise, test for mingw directly. + * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require + gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR + rather than defining mkdir in config.h. + * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro. + (gl_SYS_STAT_H_DEFAULTS): New macro. + (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and + HAVE_IO_H any more. + * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of + HAVE_DECL_MKDIR and HAVE_IO_H. + +2008-04-20 Bruno Haible + + * lib/isapipe.c: Port to native Windows platforms. + +2008-04-20 Bruno Haible + + * lib/gc-gnulib.c: Include before . + +2008-04-21 Eric Blake + + Work around preprocessors that don't handle UINTMAX_MAX. + * lib/memchr2.c (memchr2): Avoid embedded #if. + Reported by Alain Guibert, fix suggested by Bruno Haible. + 2008-04-21 Simon Josefsson * doc/posix-functions/strftime.texi (strftime): Explain better @@ -119,6 +450,15 @@ (gl_locale_name_from_win32_LANGID): Fix code for Sindhi. Reported by Daniel Bergström . +2007-12-25 KJK::Hyperion + Bruno Haible + + * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New + function. + (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID): + New functions, mostly extracted from gl_locale_name_default. + (gl_locale_name_default): Use gl_locale_name_from_win32_LCID. + 2008-04-16 Eric Blake Adjust strtod detection to catch glibc 2.7 bug.