summaryrefslogtreecommitdiff
path: root/libc/misc/ctype/ctype.c
diff options
context:
space:
mode:
authorManuel Novoa III <mjn3@codepoet.org>2002-04-09 15:01:00 +0000
committerManuel Novoa III <mjn3@codepoet.org>2002-04-09 15:01:00 +0000
commitbc0bc39645ace0f6b4182c641295e31d58b9eba7 (patch)
tree70ab9ade07e5edc7b30067821db624c6b30fab31 /libc/misc/ctype/ctype.c
parentafd68fb2013457640f585433c07950d15400f376 (diff)
Revert Erik's changes... they were broken since there weren't enough
bits for the extra ISblank flag. Instead, hardwire isblank() to not depend on locale for now. At least it will work for space and tab in the immenent release. This will all be blown away for the next release anyway, as I should be committing my new stuff in the next day or two.
Diffstat (limited to 'libc/misc/ctype/ctype.c')
-rw-r--r--libc/misc/ctype/ctype.c26
1 files changed, 8 insertions, 18 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