summaryrefslogtreecommitdiff
path: root/libc/misc/ctype
diff options
context:
space:
mode:
Diffstat (limited to 'libc/misc/ctype')
-rw-r--r--libc/misc/ctype/ctype.c26
-rw-r--r--libc/misc/ctype/ctype_C.c4
2 files changed, 10 insertions, 20 deletions
diff --git a/libc/misc/ctype/ctype.c b/libc/misc/ctype/ctype.c
index a077dbf3c..a3d3d4354 100644
--- a/libc/misc/ctype/ctype.c
+++ b/libc/misc/ctype/ctype.c
@@ -41,6 +41,14 @@ toascii( int c )
}
#endif
+#ifdef L_isblank
+#undef isblank
+int
+isblank( int c )
+{
+ return ((c == ' ') || (c == '\t'));
+}
+#endif
/* locale depended */
#ifndef __UCLIBC_HAS_LOCALE__
@@ -118,15 +126,6 @@ isspace( int c )
}
#endif
-#ifdef L_isblank
-#undef isblank
-int
-isblank( int c )
-{
- return (c == ' ' || c == '\t');
-}
-#endif
-
#ifdef L_isupper
#undef isupper
int
@@ -275,15 +274,6 @@ isspace( int c )
}
#endif
-#ifdef L_isblank
-#undef isblank
-int
-isblank( int c )
-{
- return _UC_ISCTYPE(c, ISblank);
-}
-#endif
-
#ifdef L_isupper
#undef isupper
int
diff --git a/libc/misc/ctype/ctype_C.c b/libc/misc/ctype/ctype_C.c
index 190140752..2aa2690b6 100644
--- a/libc/misc/ctype/ctype_C.c
+++ b/libc/misc/ctype/ctype_C.c
@@ -8,7 +8,7 @@ const unsigned char _uc_ctype_b_C[LOCALE_BUF_SIZE] = {
/* 0x06, 6, 06 */ IScntrl,
/* 0x07, 7, 07 */ IScntrl,
/* 0x08, 8, 010 */ IScntrl,
- /* 0x09, 9, 011 */ IScntrl|ISspace|ISblank,
+ /* 0x09, 9, 011 */ IScntrl|ISspace,
/* 0x0a, 10, 012 */ IScntrl|ISspace,
/* 0x0b, 11, 013 */ IScntrl|ISspace,
/* 0x0c, 12, 014 */ IScntrl|ISspace,
@@ -31,7 +31,7 @@ const unsigned char _uc_ctype_b_C[LOCALE_BUF_SIZE] = {
/* 0x1d, 29, 035 */ IScntrl,
/* 0x1e, 30, 036 */ IScntrl,
/* 0x1f, 31, 037 */ IScntrl,
- /* 0x20, 32, 040 */ ISprint|ISspace|ISblank,
+ /* 0x20, 32, 040 */ ISprint|ISspace,
/* 0x21, 33, 041 */ ISprint|ISpunct,
/* 0x22, 34, 042 */ ISprint|ISpunct,
/* 0x23, 35, 043 */ ISprint|ISpunct,