propername: mark one more function as const
authorJim Meyering <meyering@redhat.com>
Mon, 28 Nov 2011 08:39:34 +0000 (09:39 +0100)
committerJim Meyering <meyering@redhat.com>
Mon, 28 Nov 2011 08:39:34 +0000 (09:39 +0100)
* lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.

ChangeLog
lib/propername.h

index ba43f79..fe8f9d1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-11-28  Jim Meyering  <meyering@redhat.com>
+
+       propername: mark one more function as const
+       * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
+
 2011-11-27  Jim Meyering  <meyering@redhat.com>
 
        mark functions with const and pure attributes
index a4eac01..0141532 100644 (file)
@@ -89,7 +89,7 @@ extern "C" {
 #endif
 
 /* Return the localization of NAME.  NAME is written in ASCII.  */
-extern const char * proper_name (const char *name) /* NOT PURE */;
+extern const char * proper_name (const char *name) _GL_ATTRIBUTE_CONST;
 
 /* Return the localization of a name whose original writing is not ASCII.
    NAME_UTF8 is the real name, written in UTF-8 with octal or hexadecimal