summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--extra/locale/gen_ctype_from_glibc.c3
-rw-r--r--libc/misc/ctype/ctype.c26
-rw-r--r--libc/misc/ctype/ctype_C.c4
-rw-r--r--libc/misc/locale/_locale.h1
4 files changed, 10 insertions, 24 deletions
diff --git a/extra/locale/gen_ctype_from_glibc.c b/extra/locale/gen_ctype_from_glibc.c
index ef902d978..0488048cd 100644
--- a/extra/locale/gen_ctype_from_glibc.c
+++ b/extra/locale/gen_ctype_from_glibc.c
@@ -71,7 +71,6 @@ bbits_t basic_bits[] =
{ISpunct , "ISpunct" },
{ISalpha , "ISalpha" },
{ISxdigit, "ISxdigit"},
- {ISblank, "ISblank"},
{0, NULL}
};
@@ -258,8 +257,6 @@ Defaults:\n\
x2type[i] |= ISpunct;
if(isxdigit(i))
x2type[i] |= ISxdigit;
- if(isblank(i))
- x2type[i] |= ISblank;
x2trans[i] = i;
if(toupper(x2trans[i]) != x2trans[i])
x2trans[i] = toupper(x2trans[i]);
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,
diff --git a/libc/misc/locale/_locale.h b/libc/misc/locale/_locale.h
index 75658cc2f..139a862f9 100644
--- a/libc/misc/locale/_locale.h
+++ b/libc/misc/locale/_locale.h
@@ -17,7 +17,6 @@ enum
ISpunct = ISbit (5), /* 32 Punctuation. */
ISalpha = ISbit (6), /* 64 Alphabetic. */
ISxdigit = ISbit (7), /* 128 Hexnumeric. */
- ISblank = ISbit (8), /* 256 Blank. */
};
extern const unsigned char *_uc_collate_b;