diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-11-21 08:15:19 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-11-21 08:15:19 +0000 |
commit | 3e8067a62725780222fa90f2945f1d5599a5cdd6 (patch) | |
tree | 4520c861bbe1b914339cd8fbc5071c8ceb2d5b95 /libc/misc | |
parent | cb97aadebfeba7f5e8f1b85beee5ab10e88c2990 (diff) |
deal with TODOs left over from libc_hidden_proto removal
(fixes build with locale enabled)
Diffstat (limited to 'libc/misc')
-rw-r--r-- | libc/misc/ctype/ctype.c | 7 | ||||
-rw-r--r-- | libc/misc/wchar/wchar.c | 6 |
2 files changed, 4 insertions, 9 deletions
diff --git a/libc/misc/ctype/ctype.c b/libc/misc/ctype/ctype.c index fe2cfb657..4b62fc34c 100644 --- a/libc/misc/ctype/ctype.c +++ b/libc/misc/ctype/ctype.c @@ -468,11 +468,7 @@ libc_hidden_def(__ctype_toupper_loc) /**********************************************************************/ #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 @@ const __ctype_mask_t __C_ctype_b_data[] = { /* 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; diff --git a/libc/misc/wchar/wchar.c b/libc/misc/wchar/wchar.c index 9a0ceb293..86b056000 100644 --- a/libc/misc/wchar/wchar.c +++ b/libc/misc/wchar/wchar.c @@ -1238,10 +1238,10 @@ enum { * */ -//vda:TODO: make hidden - +/* Used externally only by iconv utility */ extern const unsigned char __iconv_codesets[]; -/* libc_hidden_proto(__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 |