summaryrefslogtreecommitdiff
path: root/libc/string/_collate.c
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2011-03-09 21:11:47 +0100
committerPeter S. Mazinger <ps.m@gmx.net>2011-03-09 21:11:47 +0100
commitf4ec824864b8ea68af8953669f789656cc05143d (patch)
tree99a9e7e6b9ae9911c328bcce62408eccd485522a /libc/string/_collate.c
parent98538deba691281535e3dc0839710b8630e02ac8 (diff)
ctype.c, _collate.c, str[n]casecmp.c, strlcpy.c: remove unused hidden functions
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Diffstat (limited to 'libc/string/_collate.c')
-rw-r--r--libc/string/_collate.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libc/string/_collate.c b/libc/string/_collate.c
index 77d9eb62c..58faa5a84 100644
--- a/libc/string/_collate.c
+++ b/libc/string/_collate.c
@@ -62,7 +62,6 @@ size_t wcsxfrm(Wchar *__restrict ws1, const Wchar *__restrict ws2, size_t n)
{
return wcsxfrm_l(ws1, ws2, n, __UCLIBC_CURLOCALE );
}
-libc_hidden_def(wcsxfrm)
#else /* defined(__UCLIBC_HAS_XLOCALE__) && !defined(__UCLIBC_DO_XLOCALE) */
@@ -541,7 +540,6 @@ libc_hidden_def(__XL_NPP(wcscoll))
extern size_t __wcslcpy(wchar_t *__restrict dst,
const wchar_t *__restrict src, size_t n);
-libc_hidden_proto(__XL_NPP(wcsxfrm))
size_t __XL_NPP(wcsxfrm)(wchar_t *__restrict ws1, const wchar_t *__restrict ws2,
size_t n __LOCALE_PARAM )
{
@@ -579,7 +577,9 @@ size_t __XL_NPP(wcsxfrm)(wchar_t *__restrict ws1, const wchar_t *__restrict ws2,
}
return count-1;
}
+#if defined L_strxfrm_l || defined L_wcsxfrm_l
libc_hidden_def(__XL_NPP(wcsxfrm))
+#endif
#else /* WANT_WIDE */
@@ -623,7 +623,6 @@ static size_t store(unsigned char *s, size_t count, size_t n, __uwchar_t weight)
return r;
}
-libc_hidden_proto(__XL_NPP(strxfrm))
size_t __XL_NPP(strxfrm)(char *__restrict ws1, const char *__restrict ws2, size_t n
__LOCALE_PARAM )
{
@@ -661,7 +660,9 @@ size_t __XL_NPP(strxfrm)(char *__restrict ws1, const char *__restrict ws2, size_
}
return count-1;
}
+#ifdef L_strxfrm_l
libc_hidden_def(__XL_NPP(strxfrm))
+#endif
#endif /* WANT_WIDE */