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 a73c962..278e656 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 0b8ad42..0455558 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 c42cb66..6b7f0d2 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 c4a913a..b4a9b0d 100644 (file)
@@ -44,7 +44,7 @@
 extern "C" {
 # endif
 
-extern bool fwriting (FILE *stream);
+extern bool fwriting (FILE *stream) _GL_ATTRIBUTE_PURE;
 
 # ifdef __cplusplus
 }