summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-11-29 20:45:56 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-11-29 20:45:56 +0000
commit32167ca3b6a36c0922bea30b2c44e78ccd5290ae (patch)
treebdbb68c7fb2e1527ed261990b2b2671ab8f6fa75
parent7357e8836f7c742602f59cc8f2b97382634c59b8 (diff)
downloaduClibc-alpine-32167ca3b6a36c0922bea30b2c44e78ccd5290ae.tar.bz2
uClibc-alpine-32167ca3b6a36c0922bea30b2c44e78ccd5290ae.tar.xz
fix improperly hidden fwprintf.
make two data objects static. text data bss dec hex filename - 274779 1835 19012 295626 482ca lib/libuClibc-0.9.30-svn.so + 274693 1835 19012 295540 48274 lib/libuClibc-0.9.30-svn.so
-rw-r--r--libc/misc/ctype/ctype.c14
-rw-r--r--libc/stdio/fwprintf.c1
2 files changed, 3 insertions, 12 deletions
diff --git a/libc/misc/ctype/ctype.c b/libc/misc/ctype/ctype.c
index 43f95429a..8c99d004c 100644
--- a/libc/misc/ctype/ctype.c
+++ b/libc/misc/ctype/ctype.c
@@ -875,11 +875,7 @@ libc_hidden_data_def(__ctype_b)
/**********************************************************************/
#ifdef L___C_ctype_tolower
-//vda:TODO: make static
-
-extern const __ctype_touplow_t __C_ctype_tolower_data[];
-libc_hidden_proto(__C_ctype_tolower_data)
-const __ctype_touplow_t __C_ctype_tolower_data[] = {
+static const __ctype_touplow_t __C_ctype_tolower_data[] = {
#ifdef __UCLIBC_HAS_CTYPE_SIGNED__
-128, -127, -126, -125,
-124, -123, -122, -121,
@@ -979,7 +975,6 @@ const __ctype_touplow_t __C_ctype_tolower_data[] = {
248, 249, 250, 251,
252, 253, 254, 255
};
-libc_hidden_data_def(__C_ctype_tolower_data)
/* libc_hidden_proto(__C_ctype_tolower) */
const __ctype_touplow_t *__C_ctype_tolower =
@@ -999,11 +994,7 @@ libc_hidden_data_def(__ctype_tolower)
/**********************************************************************/
#ifdef L___C_ctype_toupper
-//vda:TODO: make static
-
-extern const __ctype_touplow_t __C_ctype_toupper_data[];
-libc_hidden_proto(__C_ctype_toupper_data)
-const __ctype_touplow_t __C_ctype_toupper_data[] = {
+static const __ctype_touplow_t __C_ctype_toupper_data[] = {
#ifdef __UCLIBC_HAS_CTYPE_SIGNED__
-128, -127, -126, -125,
-124, -123, -122, -121,
@@ -1103,7 +1094,6 @@ const __ctype_touplow_t __C_ctype_toupper_data[] = {
248, 249, 250, 251,
252, 253, 254, 255
};
-libc_hidden_data_def(__C_ctype_toupper_data)
/* libc_hidden_proto(__C_ctype_toupper) */
const __ctype_touplow_t *__C_ctype_toupper =
diff --git a/libc/stdio/fwprintf.c b/libc/stdio/fwprintf.c
index a5f09cd2d..6bae0c7a4 100644
--- a/libc/stdio/fwprintf.c
+++ b/libc/stdio/fwprintf.c
@@ -22,3 +22,4 @@ int fwprintf(FILE * __restrict stream, const wchar_t * __restrict format, ...)
return rv;
}
+libc_hidden_def(fwprintf)