svn commit: trunk/uClibc/libc/misc/wctype

psm at uclibc.org psm at uclibc.org
Fri Dec 16 08:56:02 UTC 2005


Author: psm
Date: 2005-12-16 00:56:00 -0800 (Fri, 16 Dec 2005)
New Revision: 12925

Log:
Hide towctrans*. What is SMALL_UPLOW and why do we need it?

Modified:
   trunk/uClibc/libc/misc/wctype/wctype.c


Changeset:
Modified: trunk/uClibc/libc/misc/wctype/wctype.c
===================================================================
--- trunk/uClibc/libc/misc/wctype/wctype.c	2005-12-16 08:03:34 UTC (rev 12924)
+++ trunk/uClibc/libc/misc/wctype/wctype.c	2005-12-16 08:56:00 UTC (rev 12925)
@@ -731,7 +731,7 @@
 #define _toupper(c)    toupper(c)
 #endif
 
-wint_t towctrans(wint_t wc, wctrans_t desc)
+wint_t attribute_hidden __towctrans(wint_t wc, wctrans_t desc)
 {
 	if (((unsigned int)(desc - _CTYPE_tolower))
 		<= (_CTYPE_toupper - _CTYPE_tolower)
@@ -749,7 +749,7 @@
 #else  /* __LOCALE_C_ONLY */
 
 #ifdef L_towctrans
-#define TOWCTRANS(w,d) towctrans(w,d)
+#define TOWCTRANS(w,d) __towctrans(w,d)
 #else  /* L_towctrans */
 #define TOWCTRANS(w,d) __towctrans_l(w,d, __locale_t locale)
 #undef __UCLIBC_CURLOCALE_DATA
@@ -768,7 +768,7 @@
 
 #if defined(L_towctrans) && defined(__UCLIBC_HAS_XLOCALE__)
 
-wint_t towctrans(wint_t wc, wctrans_t desc)
+wint_t attribute_hidden __towctrans(wint_t wc, wctrans_t desc)
 {
 	return __towctrans_l(wc, desc, __UCLIBC_CURLOCALE);
 }
@@ -777,7 +777,7 @@
 
 #ifdef SMALL_UPLOW
 
-wint_t TOWCTRANS(wint_t wc, wctrans_t desc)
+wint_t attribute_hidden TOWCTRANS(wint_t wc, wctrans_t desc)
 {
 	unsigned int sc, n, i;
 	__uwchar_t u = wc;
@@ -835,7 +835,7 @@
 
 #else  /* SMALL_UPLOW */
 
-wint_t TOWCTRANS(wint_t wc, wctrans_t desc)
+wint_t attribute_hidden TOWCTRANS(wint_t wc, wctrans_t desc)
 {
 	if (ENCODING == __ctype_encoding_7_bit) {
 		if ((((__uwchar_t) wc) > 0x7f)
@@ -878,8 +878,9 @@
 #endif /* defined(L_towctrans) && defined(__UCLIBC_HAS_XLOCALE__) */
 
 #ifdef L_towctrans_l
-weak_alias(__towctrans_l, towctrans_l)
+strong_alias(__towctrans_l, towctrans_l)
 #endif /* L_towctrans_l */
+strong_alias(__towctrans,towctrans)
 
 #endif /* __LOCALE_C_ONLY */
 




More information about the uClibc-cvs mailing list