From 59bf5cbe99873625ce3d5a9b984e9b98e659eefa Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Fri, 16 Dec 2005 00:35:09 +0000 Subject: Hide C and wchar related stuff --- libc/misc/ctype/Makefile.in | 4 ++-- libc/misc/ctype/ctype.c | 58 --------------------------------------------- 2 files changed, 2 insertions(+), 60 deletions(-) (limited to 'libc/misc/ctype') diff --git a/libc/misc/ctype/Makefile.in b/libc/misc/ctype/Makefile.in index 0e194cbff..87a3d11b1 100644 --- a/libc/misc/ctype/Makefile.in +++ b/libc/misc/ctype/Makefile.in @@ -10,7 +10,7 @@ MSRC:=ctype.c MOBJ:= isalnum.o isalpha.o isascii.o iscntrl.o isdigit.o \ isgraph.o islower.o isprint.o ispunct.o isspace.o \ isupper.o isxdigit.o toascii.o tolower.o toupper.o \ - isblank.o isxlower.o isxupper.o + isblank.o ifeq ($(UCLIBC_HAS_CTYPE_TABLES),y) MOBJ+= __C_ctype_b.o __C_ctype_tolower.o __C_ctype_toupper.o \ @@ -21,7 +21,7 @@ endif MOBJx:= isalnum_l.o isalpha_l.o isascii_l.o iscntrl_l.o isdigit_l.o \ isgraph_l.o islower_l.o isprint_l.o ispunct_l.o isspace_l.o \ isupper_l.o isxdigit_l.o toascii_l.o tolower_l.o toupper_l.o \ - isblank_l.o # isxlower_l.o isxupper_l.o + isblank_l.o MISC_CTYPE_DIR:=$(top_srcdir)libc/misc/ctype MISC_CTYPE_OUT:=$(top_builddir)libc/misc/ctype diff --git a/libc/misc/ctype/ctype.c b/libc/misc/ctype/ctype.c index 65debd842..60301d48c 100644 --- a/libc/misc/ctype/ctype.c +++ b/libc/misc/ctype/ctype.c @@ -388,64 +388,6 @@ int toascii(int c) #endif /* __UCLIBC_HAS_CTYPE_TABLES__ */ -#endif -/**********************************************************************/ -/* old uClibc extensions */ -/**********************************************************************/ -#ifdef L_isxlower - -#ifdef __UCLIBC_HAS_CTYPE_TABLES__ - -int isxlower(int C) -{ -#if defined(__UCLIBC_HAS_CTYPE_ENFORCED__) - assert(CTYPE_DOMAIN_CHECK(C)); - return (__isctype(C, (_ISxdigit|_ISupper)) == _ISxdigit); -#elif defined(__UCLIBC_HAS_CTYPE_CHECKED__) - return CTYPE_DOMAIN_CHECK(C) - ? (__isctype(C, (_ISxdigit|_ISupper)) == _ISxdigit) - : 0; -#elif defined(__UCLIBC_HAS_CTYPE_UNSAFE__) - return (__isctype(C, (_ISxdigit|_ISupper)) == _ISxdigit); -#else /* No checking done. */ -#error Unknown type of ctype checking! -#endif -} - -#else /* __UCLIBC_HAS_CTYPE_TABLES__ */ - -IS_FUNC_BODY(xlower); - -#endif /* __UCLIBC_HAS_CTYPE_TABLES__ */ - -#endif -/**********************************************************************/ -#ifdef L_isxupper - -#ifdef __UCLIBC_HAS_CTYPE_TABLES__ - -int isxupper(int C) -{ -#if defined(__UCLIBC_HAS_CTYPE_ENFORCED__) - assert(CTYPE_DOMAIN_CHECK(C)); - return (__isctype(C, (_ISxdigit|_ISlower)) == _ISxdigit); -#elif defined(__UCLIBC_HAS_CTYPE_CHECKED__) - return CTYPE_DOMAIN_CHECK(C) - ? (__isctype(C, (_ISxdigit|_ISlower)) == _ISxdigit) - : 0; -#elif defined(__UCLIBC_HAS_CTYPE_UNSAFE__) - return (__isctype(C, (_ISxdigit|_ISlower)) == _ISxdigit); -#else /* No checking done. */ -#error Unknown type of ctype checking! -#endif -} - -#else /* __UCLIBC_HAS_CTYPE_TABLES__ */ - -IS_FUNC_BODY(xupper); - -#endif /* __UCLIBC_HAS_CTYPE_TABLES__ */ - #endif /**********************************************************************/ /* glibc extensions */ -- cgit v1.2.3