svn commit: trunk/uClibc/libc: misc/ctype string

psm at uclibc.org psm at uclibc.org
Tue Jan 3 15:48:35 UTC 2006


Author: psm
Date: 2006-01-03 07:48:34 -0800 (Tue, 03 Jan 2006)
New Revision: 13050

Log:
Provide __tolower and use it

Modified:
   trunk/uClibc/libc/misc/ctype/ctype.c
   trunk/uClibc/libc/string/strcasecmp.c
   trunk/uClibc/libc/string/strncasecmp.c


Changeset:
Modified: trunk/uClibc/libc/misc/ctype/ctype.c
===================================================================
--- trunk/uClibc/libc/misc/ctype/ctype.c	2006-01-03 15:47:13 UTC (rev 13049)
+++ trunk/uClibc/libc/misc/ctype/ctype.c	2006-01-03 15:48:34 UTC (rev 13050)
@@ -268,9 +268,11 @@
 /**********************************************************************/
 #ifdef L_tolower
 
+#undef tolower
+#undef __tolower
 #ifdef __UCLIBC_HAS_CTYPE_TABLES__
 
-int tolower(int c)
+int attribute_hidden __tolower(int c)
 {
 #if defined(__UCLIBC_HAS_CTYPE_ENFORCED__)
 	assert(CTYPE_DOMAIN_CHECK(c));
@@ -280,12 +282,13 @@
 
 #else  /* __UCLIBC_HAS_CTYPE_TABLES__ */
 
-int tolower(int c)
+int attribute_hidden __tolower(int c)
 {
 	return __C_tolower(c);
 }
 
 #endif /* __UCLIBC_HAS_CTYPE_TABLES__ */
+strong_alias(__tolower,tolower)
 
 #endif
 /**********************************************************************/

Modified: trunk/uClibc/libc/string/strcasecmp.c
===================================================================
--- trunk/uClibc/libc/string/strcasecmp.c	2006-01-03 15:47:13 UTC (rev 13049)
+++ trunk/uClibc/libc/string/strcasecmp.c	2006-01-03 15:48:34 UTC (rev 13050)
@@ -32,7 +32,7 @@
 # ifdef __UCLIBC_DO_XLOCALE
 #  define TOLOWER(C) __tolower_l((C), locale_arg)
 # else
-#  define TOLOWER(C) tolower((C))
+#  define TOLOWER(C) __tolower((C))
 # endif
 #endif
 

Modified: trunk/uClibc/libc/string/strncasecmp.c
===================================================================
--- trunk/uClibc/libc/string/strncasecmp.c	2006-01-03 15:47:13 UTC (rev 13049)
+++ trunk/uClibc/libc/string/strncasecmp.c	2006-01-03 15:48:34 UTC (rev 13050)
@@ -32,7 +32,7 @@
 # ifdef __UCLIBC_DO_XLOCALE
 #  define TOLOWER(C) __tolower_l((C), locale_arg)
 # else
-#  define TOLOWER(C) tolower((C))
+#  define TOLOWER(C) __tolower((C))
 # endif
 #endif
 




More information about the uClibc-cvs mailing list