From 93f8a2e834eed69aff7ef3be8c2baba14bab0658 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Fri, 18 Sep 2009 23:07:26 +0200 Subject: convert // comments to /**/; remove empty #if/#endif pairs. no code changes Signed-off-by: Denys Vlasenko --- libc/misc/wctype/_wctype.c | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'libc/misc/wctype') diff --git a/libc/misc/wctype/_wctype.c b/libc/misc/wctype/_wctype.c index 6ab6bab77..6340281c7 100644 --- a/libc/misc/wctype/_wctype.c +++ b/libc/misc/wctype/_wctype.c @@ -44,10 +44,6 @@ #ifdef __UCLIBC_HAS_XLOCALE__ #include -#elif defined __UCLIBC_HAS_CTYPE_TABLES__ -#endif /* __UCLIBC_HAS_XLOCALE__ */ - -#ifdef __UCLIBC_HAS_CTYPE_TABLES__ #endif /* We know wide char support is enabled. We wouldn't be here otherwise. */ @@ -682,11 +678,12 @@ wint_t towctrans(wint_t wc, wctrans_t desc) { if ((unsigned int)(desc - _CTYPE_tolower) <= (_CTYPE_toupper - _CTYPE_tolower)) { /* Transliteration is either tolower or toupper. */ -// I think it's wrong: _toupper(c) assumes that c is a *lowercase* *letter* - -// it is defined as ((c) ^ 0x20)! -// if ((__uwchar_t) wc <= 0x7f) { -// return (desc == _CTYPE_tolower) ? _tolower(wc) : _toupper(wc); -// } +/* I think it's wrong: _toupper(c) assumes that c is a *lowercase* *letter* - + * it is defined as ((c) ^ 0x20)! + * if ((__uwchar_t) wc <= 0x7f) { + * return (desc == _CTYPE_tolower) ? _tolower(wc) : _toupper(wc); + * } + */ __uwchar_t c = wc | 0x20; /* lowercase if it's a letter */ if (c >= 'a' && c <= 'z') { if (desc == _CTYPE_toupper) -- cgit v1.2.3