svn commit: trunk/uClibc: include libc/misc/ctype
psm at uclibc.org
psm at uclibc.org
Tue Jan 3 17:15:17 UTC 2006
Author: psm
Date: 2006-01-03 09:15:15 -0800 (Tue, 03 Jan 2006)
New Revision: 13051
Log:
Add __toupper, remove unneeded undefs for tolower
Modified:
trunk/uClibc/include/libc-internal.h
trunk/uClibc/libc/misc/ctype/ctype.c
Changeset:
Modified: trunk/uClibc/include/libc-internal.h
===================================================================
--- trunk/uClibc/include/libc-internal.h 2006-01-03 15:48:34 UTC (rev 13050)
+++ trunk/uClibc/include/libc-internal.h 2006-01-03 17:15:15 UTC (rev 13051)
@@ -263,6 +263,7 @@
/* ctype.h */
extern int __tolower (int __c) __THROW attribute_hidden;
+extern int __toupper (int __c) __THROW attribute_hidden;
#ifdef __UCLIBC_HAS_WCHAR__
/* wchar.h */
Modified: trunk/uClibc/libc/misc/ctype/ctype.c
===================================================================
--- trunk/uClibc/libc/misc/ctype/ctype.c 2006-01-03 15:48:34 UTC (rev 13050)
+++ trunk/uClibc/libc/misc/ctype/ctype.c 2006-01-03 17:15:15 UTC (rev 13051)
@@ -268,8 +268,6 @@
/**********************************************************************/
#ifdef L_tolower
-#undef tolower
-#undef __tolower
#ifdef __UCLIBC_HAS_CTYPE_TABLES__
int attribute_hidden __tolower(int c)
@@ -313,7 +311,7 @@
#ifdef __UCLIBC_HAS_CTYPE_TABLES__
-int toupper(int c)
+int attribute_hidden __toupper(int c)
{
#if defined(__UCLIBC_HAS_CTYPE_ENFORCED__)
assert(CTYPE_DOMAIN_CHECK(c));
@@ -323,12 +321,13 @@
#else /* __UCLIBC_HAS_CTYPE_TABLES__ */
-int toupper(int c)
+int attribute_hidden __toupper(int c)
{
return __C_toupper(c);
}
#endif /* __UCLIBC_HAS_CTYPE_TABLES__ */
+strong_alias(__toupper,toupper)
#endif
/**********************************************************************/
More information about the uClibc-cvs
mailing list