summaryrefslogtreecommitdiffstats
path: root/newlib/libc/include
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2009-03-26 09:45:11 +0000
committerCorinna Vinschen <corinna@vinschen.de>2009-03-26 09:45:11 +0000
commit7ca98b490133315b2b999c56eff604b655f062c0 (patch)
tree4c237266eab6b38c6ca655f9e1e4656fe411536b /newlib/libc/include
parent3ed024dcb2f874e9a6a1eac6142a0864eac33460 (diff)
downloadcygnal-7ca98b490133315b2b999c56eff604b655f062c0.tar.gz
cygnal-7ca98b490133315b2b999c56eff604b655f062c0.tar.bz2
cygnal-7ca98b490133315b2b999c56eff604b655f062c0.zip
* libc/ctype/ctype_.c (_CTYPE_DATA_0_127): Mark TAB as blank character.
* libc/ctype/isblank.c: Replace hardcoded test with test for having _B marker in ctype array. * libc/include/ctype.h (isblank): Add macro.
Diffstat (limited to 'newlib/libc/include')
-rw-r--r--newlib/libc/include/ctype.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/newlib/libc/include/ctype.h b/newlib/libc/include/ctype.h
index a7c7ca2ef..74cfb6f23 100644
--- a/newlib/libc/include/ctype.h
+++ b/newlib/libc/include/ctype.h
@@ -54,6 +54,10 @@ extern __IMPORT _CONST char *__ctype_ptr__;
#define isgraph(c) ((__ctype_ptr__)[(unsigned)((c)+1)]&(_P|_U|_L|_N))
#define iscntrl(c) ((__ctype_ptr__)[(unsigned)((c)+1)]&_C)
+#if !defined(__STRICT_ANSI__) || __STDC_VERSION__ >= 199901L
+#define isblank(c) ((__ctype_ptr__)[(unsigned)((c)+1)]&_B)
+#endif
+
/* Non-gcc versions will get the library versions, and will be
slightly slower */