diff lib/c-ctype.c @ 14612:6ef4f1f39105

Revert "use _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE" This reverts commit 349d7fe0e307d59d508b3579317ee8d4eacfeb9c. Revert accidentally-pushed patch. Not yet ready.
author Jim Meyering <meyering@redhat.com>
date Mon, 25 Apr 2011 10:38:33 +0200 (2011-04-25)
parents b427a1938336
children 8250f2777afc
line wrap: on
line diff
--- a/lib/c-ctype.c
+++ b/lib/c-ctype.c
@@ -22,17 +22,9 @@
 #define NO_C_CTYPE_MACROS
 #include "c-ctype.h"
 
-/* The attribute __const__ was added in gcc 2.95.  */
-#undef _GL_ATTRIBUTE_CONST
-#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
-# define _GL_ATTRIBUTE_CONST __attribute__ ((__const__))
-#else
-# define _GL_ATTRIBUTE_CONST /* empty */
-#endif
-
 /* The function isascii is not locale dependent. Its use in EBCDIC is
    questionable. */
-bool _GL_ATTRIBUTE_CONST
+bool
 c_isascii (int c)
 {
   return (c >= 0x00 && c <= 0x7f);