From 1d72020051536362df0e5059bc29ffb8fb13f501 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 10 Sep 1999 19:28:01 +0000 Subject: [PATCH] Remove incorrect towlower/towupper optimizations. --- wctype/wctype.h | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/wctype/wctype.h b/wctype/wctype.h index 2ff8e68c89b..521fcca76eb 100644 --- a/wctype/wctype.h +++ b/wctype/wctype.h @@ -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. */ -- 2.47.2