Further improvements to verify.h, suggested by Eric Blake.
[gnulib.git] / ChangeLog
index d737948..4897fb8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,45 @@
+2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
+
+       Further improvements to verify.h, suggested by Eric Blake.
+       * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
+       the GL_* versions, to avoid collision with OpenGL.
+       (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
+       __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
+       than testing merely whether it's defined.
+
+       Modify verify.h to pacify gcc -Wredundant_decls.
+       * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
+       These use the prefix "GL_" since they're likely to be useful elsewhere.
+       We may need to break them out into a different .h file.
+       (__COUNTER__): Define to 0 if the compiler doesn't support it.
+       (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
+       of verify_function__.
+
+2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
+
+       Tests for module pwrite.
+       * modules/pwrite-tests: New file.
+       * tests/test-pwrite.sh: New file.
+       * tests/test-pwrite.c: New file.
+
+       New module pwrite.
+       * lib/unistd.in.h (pwrite): New declaration.
+       * lib/pwrite.c: New file, from glibc with modifications.
+       * m4/pwrite.m4: New file.
+       * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
+       (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
+       REPLACE_PWRITE.
+       * modules/pwrite: New file.
+       * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
+       REPLACE_PWRITE.
+       * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
+       * doc/posix-functions/pwrite.texi: Mention the new module.
+
+2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
+
+       pread: Update documentation.
+       * doc/posix-functions/pread.texi: Mention the 'pread' module.
+
 2010-05-04  Eric Blake  <eblake@redhat.com>
 
        docs: update cygwin progress