summaryrefslogtreecommitdiff
path: root/lib/obstack.h
diff options
context:
space:
mode:
authorJim Meyering <meyering@fb.com>2013-09-30 10:19:38 -0700
committerJim Meyering <meyering@fb.com>2013-10-19 09:19:37 -0700
commitc2b08ae26cdc70a3acf7d1bc15bc77c92bbcc97c (patch)
tree200f30805d1195b5ae44cd2aac5c98a71fec4903 /lib/obstack.h
parent9f15e6702a27649a59263a7ed571805a979d9e70 (diff)
downloadgnulib-c2b08ae26cdc70a3acf7d1bc15bc77c92bbcc97c.tar.gz
fpending, obstack, strerror-override: use pure+const function attrs
* lib/fpending.h (__fpending): Declare with the "pure" attribute. * lib/obstack.c (_obstack_allocated_p): Likewise. * lib/obstack.h (_obstack_memory_used): Likewise. (_obstack_memory_used): Likewise. * lib/strerror-override.h (strerror_override): Declare with the "const" attribute.
Diffstat (limited to 'lib/obstack.h')
-rw-r--r--lib/obstack.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/obstack.h b/lib/obstack.h
index 7cf98edbd2..da45427f86 100644
--- a/lib/obstack.h
+++ b/lib/obstack.h
@@ -183,7 +183,7 @@ extern int _obstack_begin (struct obstack *, int, int,
extern int _obstack_begin_1 (struct obstack *, int, int,
void *(*) (void *, long),
void (*) (void *, void *), void *);
-extern int _obstack_memory_used (struct obstack *);
+extern int _obstack_memory_used (struct obstack *) _GL_ATTRIBUTE_PURE;
/* The default name of the function for freeing a chunk is 'obstack_free',
but gnulib users can override this by defining '__obstack_free'. */