summaryrefslogtreecommitdiff
path: root/libc/misc/wctype
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-09-18 23:07:26 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-09-18 23:07:26 +0200
commit93f8a2e834eed69aff7ef3be8c2baba14bab0658 (patch)
tree347b5239f26d3b5f526fffcf7afe151e83124a61 /libc/misc/wctype
parent21730caa6647f645974e132ca8afec79b4eeab2b (diff)
convert // comments to /**/; remove empty #if/#endif pairs. no code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libc/misc/wctype')
-rw-r--r--libc/misc/wctype/_wctype.c15
1 files changed, 6 insertions, 9 deletions
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 <xlocale.h>
-#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)