summaryrefslogtreecommitdiff
path: root/libc/string
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-01-16 18:07:18 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-01-16 18:07:18 +0000
commitb25ad630be8b0f362fea44a97efbead83d1dd2ae (patch)
tree6f45eed6bf053c9e105d6b67bc1d765b49b58e61 /libc/string
parente4a6dbb41c73cf86b95beca2d0e2bb6f0530ef79 (diff)
Last relocs jump and global data, (even locales) that I could remove are gone from libc. The remaining are left as exercise for others ;-)
Diffstat (limited to 'libc/string')
-rw-r--r--libc/string/_collate.c2
-rw-r--r--libc/string/psignal.c1
-rw-r--r--libc/string/strcasecmp.c3
-rw-r--r--libc/string/strcasestr.c5
-rw-r--r--libc/string/strncasecmp.c3
5 files changed, 14 insertions, 0 deletions
diff --git a/libc/string/_collate.c b/libc/string/_collate.c
index 3009e4ebf..42216e9e4 100644
--- a/libc/string/_collate.c
+++ b/libc/string/_collate.c
@@ -57,6 +57,8 @@ libc_hidden_proto(wcscmp)
#endif /* defined(L_strxfrm) || defined(L_strxfrm_l) */
+libc_hidden_proto(__global_locale)
+
#if defined(__UCLIBC_HAS_XLOCALE__) && !defined(__UCLIBC_DO_XLOCALE)
libc_hidden_proto(wcscoll_l)
diff --git a/libc/string/psignal.c b/libc/string/psignal.c
index daf9764b1..64b52c98b 100644
--- a/libc/string/psignal.c
+++ b/libc/string/psignal.c
@@ -12,6 +12,7 @@
libc_hidden_proto(fprintf)
libc_hidden_proto(strsignal)
+libc_hidden_proto(stderr)
/* TODO: make this threadsafe with a reentrant version of strsignal? */
diff --git a/libc/string/strcasecmp.c b/libc/string/strcasecmp.c
index 333d3159c..ac3f562a7 100644
--- a/libc/string/strcasecmp.c
+++ b/libc/string/strcasecmp.c
@@ -24,6 +24,9 @@ libc_hidden_proto(towlower)
libc_hidden_proto(tolower_l)
# define TOLOWER(C) tolower_l((C), locale_arg)
# else
+#ifndef __UCLIBC_HAS_XLOCALE__
+libc_hidden_proto(__ctype_tolower)
+#endif
libc_hidden_proto(tolower)
# define TOLOWER(C) tolower((C))
# endif
diff --git a/libc/string/strcasestr.c b/libc/string/strcasestr.c
index d835440ec..72c1e4702 100644
--- a/libc/string/strcasestr.c
+++ b/libc/string/strcasestr.c
@@ -8,6 +8,11 @@
#include "_string.h"
#include <ctype.h>
+#ifndef __UCLIBC_HAS_XLOCALE__
+libc_hidden_proto(__ctype_tolower)
+#else
+libc_hidden_proto(__ctype_tolower_loc)
+#endif
libc_hidden_proto(tolower)
char *strcasestr(const char *s1, const char *s2)
diff --git a/libc/string/strncasecmp.c b/libc/string/strncasecmp.c
index 2133b4ebd..54de1b78c 100644
--- a/libc/string/strncasecmp.c
+++ b/libc/string/strncasecmp.c
@@ -24,6 +24,9 @@ libc_hidden_proto(towlower)
libc_hidden_proto(tolower_l)
# define TOLOWER(C) tolower_l((C), locale_arg)
# else
+#ifndef __UCLIBC_HAS_XLOCALE__
+libc_hidden_proto(__ctype_tolower)
+#endif
libc_hidden_proto(tolower)
# define TOLOWER(C) tolower((C))
# endif