]> Savannah Git Hosting - gnulib.git/commitdiff
freadable, fwritable, fwriting: declare with the "pure" attribute
authorJim Meyering <meyering@fb.com>
Sat, 4 Jan 2014 01:17:27 +0000 (17:17 -0800)
committerJim Meyering <meyering@fb.com>
Sat, 4 Jan 2014 01:17:27 +0000 (17:17 -0800)
* lib/freadable.h (freadable): Declare with the "pure" attribute.
* lib/fwritable.h (fwritable): Likewise.
* lib/fwriting.h (fwriting): Likewise.
Suggested by Bruno Haible.

ChangeLog
lib/freadable.h
lib/fwritable.h
lib/fwriting.h

index a73c962a9ea04c0ea7d43ea496b11791cc27a5be..278e656647b4fc4b9587a1ba1e32e292b6439855 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2014-01-03  Jim Meyering  <meyering@fb.com>
 
+       freadable, fwritable, fwriting: declare with the "pure" attribute
+       * lib/freadable.h (freadable): Declare with the "pure" attribute.
+       * lib/fwritable.h (fwritable): Likewise.
+       * lib/fwriting.h (fwriting): Likewise.
+       Suggested by Bruno Haible.
+
        maint.mk: adapt openat.h-include-without-use test
        * top/maint.mk (sc_prohibit_openat_without_use): Also check for
        FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
index 0b8ad4213a003dfc805e03f16df5dcc39c41365f..045555839fe0046c93b7cf81bf670a3e580b9a3c 100644 (file)
@@ -33,7 +33,7 @@
 extern "C" {
 # endif
 
-extern bool freadable (FILE *stream);
+extern bool freadable (FILE *stream) _GL_ATTRIBUTE_PURE;
 
 # ifdef __cplusplus
 }
index c42cb661afe021dc700f629d005f955596d38929..6b7f0d2cb0cbef17fd2d84459873c430bb18b6bd 100644 (file)
@@ -33,7 +33,7 @@
 extern "C" {
 # endif
 
-extern bool fwritable (FILE *stream);
+extern bool fwritable (FILE *stream) _GL_ATTRIBUTE_PURE;
 
 # ifdef __cplusplus
 }
index c4a913a62e71562d2ffb1ddcbfd79af129807806..b4a9b0dc6013620907d1951dda4bdbb1704b1617 100644 (file)
@@ -44,7 +44,7 @@
 extern "C" {
 # endif
 
-extern bool fwriting (FILE *stream);
+extern bool fwriting (FILE *stream) _GL_ATTRIBUTE_PURE;
 
 # ifdef __cplusplus
 }