svn commit: trunk/uClibc: include libc/misc/ctype
aldot at uclibc.org
aldot at uclibc.org
Thu Nov 27 14:17:14 UTC 2008
Author: aldot
Date: 2008-11-27 06:17:13 -0800 (Thu, 27 Nov 2008)
New Revision: 24160
Log:
- make isascii visible again
TODO: *_l() should go
Modified:
trunk/uClibc/include/ctype.h
trunk/uClibc/libc/misc/ctype/ctype.c
Changeset:
Modified: trunk/uClibc/include/ctype.h
===================================================================
--- trunk/uClibc/include/ctype.h 2008-11-26 15:55:48 UTC (rev 24159)
+++ trunk/uClibc/include/ctype.h 2008-11-27 14:17:13 UTC (rev 24160)
@@ -345,6 +345,15 @@
__exctype_l (isblank_l);
libc_hidden_proto(isblank_l)
+#if defined __USE_SVID || defined __USE_MISC || defined __USE_XOPEN
+
+/* Return nonzero iff C is in the ASCII set
+ (i.e., is no more than 7 bits wide). */
+extern int isascii_l (int __c) __THROW;
+libc_hidden_proto(isascii_l)
+
+#endif
+
/* Return the lowercase version of C in locale L. */
extern int __tolower_l (int __c, __locale_t __l) __THROW;
extern int tolower_l (int __c, __locale_t __l) __THROW;
Modified: trunk/uClibc/libc/misc/ctype/ctype.c
===================================================================
--- trunk/uClibc/libc/misc/ctype/ctype.c 2008-11-26 15:55:48 UTC (rev 24159)
+++ trunk/uClibc/libc/misc/ctype/ctype.c 2008-11-27 14:17:13 UTC (rev 24160)
@@ -382,15 +382,15 @@
#else /* __UCLIBC_HAS_CTYPE_TABLES__ */
-/* libc_hidden_proto(isascii) */
int isascii(int c)
{
return __isascii(c); /* locale-independent */
}
-libc_hidden_def(isascii)
#endif /* __UCLIBC_HAS_CTYPE_TABLES__ */
+CTYPE_DEF(ascii)
+
#endif
/**********************************************************************/
#if defined(L_toascii) || defined(L_toascii_l)
More information about the uClibc-cvs
mailing list