From 32167ca3b6a36c0922bea30b2c44e78ccd5290ae Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sat, 29 Nov 2008 20:45:56 +0000 Subject: 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 --- libc/misc/ctype/ctype.c | 14 ++------------ libc/stdio/fwprintf.c | 1 + 2 files changed, 3 insertions(+), 12 deletions(-) (limited to 'libc') 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) -- cgit v1.2.3