mirror of git://sourceware.org/git/glibc.git
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>
|
1999-06-07 Ulrich Drepper <drepper@cygnus.com>
|
||||||
|
|
||||||
* grp/fgetgrent.c (fgetgrent): Remember position of stream before
|
* grp/fgetgrent.c (fgetgrent): Remember position of stream before
|
||||||
|
|
|
||||||
|
|
@ -165,20 +165,21 @@ toupper (int __c) __THROW
|
||||||
|
|
||||||
#if __GNUC__ >= 2 && defined __OPTIMIZE__ && !defined __cplusplus
|
#if __GNUC__ >= 2 && defined __OPTIMIZE__ && !defined __cplusplus
|
||||||
# define __tobody(c, f, a) \
|
# define __tobody(c, f, a) \
|
||||||
({ int __res; \
|
(__extension__
|
||||||
if (sizeof (c) > 1) \
|
({ int __res; \
|
||||||
{ \
|
if (sizeof (c) > 1) \
|
||||||
if (__builtin_constant_p (c)) \
|
{ \
|
||||||
{ \
|
if (__builtin_constant_p (c)) \
|
||||||
int __c = (c); \
|
{ \
|
||||||
__res = __c < -128 || __c > 255 ? __c : a[__c]; \
|
int __c = (c); \
|
||||||
} \
|
__res = __c < -128 || __c > 255 ? __c : a[__c]; \
|
||||||
else \
|
} \
|
||||||
__res = f (c); \
|
else \
|
||||||
} \
|
__res = f (c); \
|
||||||
else \
|
} \
|
||||||
__res = a[(int) (c)]; \
|
else \
|
||||||
__res; })
|
__res = a[(int) (c)]; \
|
||||||
|
__res; }))
|
||||||
|
|
||||||
# define tolower(c) __tobody (c, tolower, __ctype_tolower)
|
# define tolower(c) __tobody (c, tolower, __ctype_tolower)
|
||||||
# define toupper(c) __tobody (c, toupper, __ctype_toupper)
|
# define toupper(c) __tobody (c, toupper, __ctype_toupper)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue