]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Remove incorrect towlower/towupper optimizations.
authorUlrich Drepper <drepper@redhat.com>
Fri, 10 Sep 1999 19:28:01 +0000 (19:28 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 10 Sep 1999 19:28:01 +0000 (19:28 +0000)
wctype/wctype.h

index 2ff8e68c89bcf76185517700186f51ccb435337d..521fcca76eb08821389904768a71ca1c8e6cfbe6 100644 (file)
@@ -235,21 +235,6 @@ extern wint_t towupper __P ((wint_t __wc));
 /* Map the wide character WC using the mapping described by DESC.  */
 extern wint_t __towctrans __P ((wint_t __wc, wctrans_t __desc));
 
-#if __GNUC__ >= 2 && defined __OPTIMIZE__
-/* The tables are always organized in a way which allows direct access
-   for single byte characters.  */
-extern __const __int32_t *__ctype_tolower; /* Case conversions.  */
-extern __const __int32_t *__ctype_toupper; /* Case conversions.  */
-
-# define towlower(wc) \
-  (__builtin_constant_p (wc) && (wc) >= L'\0' && (wc) <= L'\xff'             \
-   ? (wint_t) __ctype_tolower[wc] : towlower (wc))
-# define towupper(wc) \
-  (__builtin_constant_p (wc) && (wc) >= L'\0' && (wc) <= L'\xff'             \
-   ? (wint_t) __ctype_toupper[wc] : towupper (wc))
-
-#endif /* gcc && optimizing */
-
 __END_DECLS
 
 #endif /* need iswxxx.  */