mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-18 08:51:06 +00:00
Update.
1999-06-08 Ulrich Drepper <drepper@cygnus.com> * ctype/ctype.h: Protect __tobody code by __extension__.
This commit is contained in:
parent
db873f322b
commit
8d6a5eff39
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user