1999-06-08  Ulrich Drepper  <drepper@cygnus.com>

	* ctype/ctype.h: Protect __tobody code by __extension__.
This commit is contained in:
Ulrich Drepper 1999-06-08 07:21:59 +00:00
parent db873f322b
commit 8d6a5eff39
3 changed files with 271 additions and 204 deletions

View File

@ -1,3 +1,7 @@
1999-06-08 Ulrich Drepper <drepper@cygnus.com>
* ctype/ctype.h: Protect __tobody code by __extension__.
1999-06-07 Ulrich Drepper <drepper@cygnus.com>
* grp/fgetgrent.c (fgetgrent): Remember position of stream before

442
configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -165,20 +165,21 @@ toupper (int __c) __THROW
#if __GNUC__ >= 2 && defined __OPTIMIZE__ && !defined __cplusplus
# define __tobody(c, f, a) \
({ int __res; \
if (sizeof (c) > 1) \
{ \
if (__builtin_constant_p (c)) \
{ \
int __c = (c); \
__res = __c < -128 || __c > 255 ? __c : a[__c]; \
} \
else \
__res = f (c); \
} \
else \
__res = a[(int) (c)]; \
__res; })
(__extension__
({ int __res; \
if (sizeof (c) > 1) \
{ \
if (__builtin_constant_p (c)) \
{ \
int __c = (c); \
__res = __c < -128 || __c > 255 ? __c : a[__c]; \
} \
else \
__res = f (c); \
} \
else \
__res = a[(int) (c)]; \
__res; }))
# define tolower(c) __tobody (c, tolower, __ctype_tolower)
# define toupper(c) __tobody (c, toupper, __ctype_toupper)