svn commit: trunk/uClibc/libc: misc/ctype misc/wchar sysdeps/linux/comm etc...

vda at uclibc.org vda at uclibc.org
Fri Nov 21 08:15:19 UTC 2008


Author: vda
Date: 2008-11-21 00:15:19 -0800 (Fri, 21 Nov 2008)
New Revision: 24108

Log:
deal with TODOs left over from libc_hidden_proto removal
 (fixes build with locale enabled)



Modified:
   trunk/uClibc/libc/misc/ctype/ctype.c
   trunk/uClibc/libc/misc/wchar/wchar.c
   trunk/uClibc/libc/sysdeps/linux/common/mremap.c


Changeset:
Modified: trunk/uClibc/libc/misc/ctype/ctype.c
===================================================================
--- trunk/uClibc/libc/misc/ctype/ctype.c	2008-11-21 05:22:12 UTC (rev 24107)
+++ trunk/uClibc/libc/misc/ctype/ctype.c	2008-11-21 08:15:19 UTC (rev 24108)
@@ -468,11 +468,7 @@
 /**********************************************************************/
 #ifdef L___C_ctype_b
 
-//vda:TODO:make static
-
-extern const __ctype_mask_t __C_ctype_b_data[];
-libc_hidden_proto(__C_ctype_b_data)
-const __ctype_mask_t __C_ctype_b_data[] = {
+static const __ctype_mask_t __C_ctype_b_data[] = {
 #ifdef __UCLIBC_HAS_CTYPE_SIGNED__
 	/* -128  M-^@ */ 0,
 	/* -127  M-^A */ 0,
@@ -860,7 +856,6 @@
 	/*  254  M-~  */ 0,
 	/*  255  M-^? */ 0
 };
-libc_hidden_data_def(__C_ctype_b_data)
 
 /* libc_hidden_proto(__C_ctype_b) */
 const __ctype_mask_t *__C_ctype_b = __C_ctype_b_data + __UCLIBC_CTYPE_B_TBL_OFFSET;

Modified: trunk/uClibc/libc/misc/wchar/wchar.c
===================================================================
--- trunk/uClibc/libc/misc/wchar/wchar.c	2008-11-21 05:22:12 UTC (rev 24107)
+++ trunk/uClibc/libc/misc/wchar/wchar.c	2008-11-21 08:15:19 UTC (rev 24108)
@@ -1238,10 +1238,10 @@
  *
  */
 
-//vda:TODO: make hidden
+/* Used externally only by iconv utility */
+extern const unsigned char __iconv_codesets[];
+libc_hidden_proto(__iconv_codesets)
 
-extern const unsigned char __iconv_codesets[];
-/* libc_hidden_proto(__iconv_codesets) */
 const unsigned char __iconv_codesets[] =
 	"\x0a\xe0""WCHAR_T\x00"		/* superset of UCS-4 but platform-endian */
 #if __BYTE_ORDER == __BIG_ENDIAN

Modified: trunk/uClibc/libc/sysdeps/linux/common/mremap.c
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/common/mremap.c	2008-11-21 05:22:12 UTC (rev 24107)
+++ trunk/uClibc/libc/sysdeps/linux/common/mremap.c	2008-11-21 08:15:19 UTC (rev 24108)
@@ -12,7 +12,7 @@
 
 #ifdef __NR_mremap
 
-//vda:TODO: add comment and explain why??
+/* Why do we do this?! */
 
 #define mremap _hidemremap
 #include <sys/mman.h>




More information about the uClibc-cvs mailing list