diff options
author | Jim Meyering <meyering@redhat.com> | 2011-04-25 10:38:33 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2011-04-25 10:38:33 +0200 |
commit | 6829a6c0c428c91768aa4314752ba92b1340e11b (patch) | |
tree | c7efb647d10854ee2fe46ca33b3f74f177f1d799 /lib/base64.c | |
parent | ea868d4a150963fafb230c888dc093a2e06a3613 (diff) | |
download | gnulib-6829a6c0c428c91768aa4314752ba92b1340e11b.tar.gz |
Revert "use _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE"
This reverts commit 349d7fe0e307d59d508b3579317ee8d4eacfeb9c.
Revert accidentally-pushed patch. Not yet ready.
Diffstat (limited to 'lib/base64.c')
-rw-r--r-- | lib/base64.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/base64.c b/lib/base64.c index 89e83e6499..99fcc57c3c 100644 --- a/lib/base64.c +++ b/lib/base64.c @@ -53,14 +53,6 @@ #include <string.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 - /* C89 compliant way to cast 'char' to 'unsigned char'. */ static inline unsigned char to_uchar (char ch) @@ -303,7 +295,7 @@ static const signed char b64[0x100] = { /* Return true if CH is a character from the Base64 alphabet, and false otherwise. Note that '=' is padding and not considered to be part of the alphabet. */ -bool _GL_ATTRIBUTE_CONST +bool isbase64 (char ch) { return uchar_in_range (to_uchar (ch)) && 0 <= b64[to_uchar (ch)]; |