summaryrefslogtreecommitdiff
path: root/libc/string
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-11-27 01:20:58 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-11-27 01:20:58 +0000
commit9d083cc2534e8e2ae97e09ba8fcc21c818d68733 (patch)
treed57f5bcf207e60214a7e00b5eb9fdbbf428ce3a7 /libc/string
parentde77369cf4e80cb3c5ec250a25d2237df4abba11 (diff)
Hide some wcs*
Diffstat (limited to 'libc/string')
-rw-r--r--libc/string/wcsdup.c4
-rw-r--r--libc/string/wcstok.c4
-rw-r--r--libc/string/wstring.c6
3 files changed, 10 insertions, 4 deletions
diff --git a/libc/string/wcsdup.c b/libc/string/wcsdup.c
index f1af0d683..25043ced1 100644
--- a/libc/string/wcsdup.c
+++ b/libc/string/wcsdup.c
@@ -10,8 +10,8 @@
#undef Wstrlen
#undef Wstrcpy
-#define Wstrlen wcslen
-#define Wstrcpy wcscpy
+#define Wstrlen __wcslen
+#define Wstrcpy __wcscpy
#include "wstring.c"
diff --git a/libc/string/wcstok.c b/libc/string/wcstok.c
index 2afbd9f22..625ee65e8 100644
--- a/libc/string/wcstok.c
+++ b/libc/string/wcstok.c
@@ -9,9 +9,9 @@
#define Wstrtok_r __wcstok
#undef Wstrspn
-#define Wstrspn wcsspn
+#define Wstrspn __wcsspn
#undef Wstrpbrk
-#define Wstrpbrk wcspbrk
+#define Wstrpbrk __wcspbrk
#include "wstring.c"
diff --git a/libc/string/wstring.c b/libc/string/wstring.c
index 1223929ff..ccbb886d4 100644
--- a/libc/string/wstring.c
+++ b/libc/string/wstring.c
@@ -72,6 +72,12 @@ extern size_t __strnlen (__const char *__string, size_t __maxlen) attribute_hidd
extern char *__strpbrk (__const char *__s, __const char *__accept) attribute_hidden;
extern size_t __strspn (__const char *__s, __const char *__accept) attribute_hidden;
extern char *__strsignal (int __sig) attribute_hidden;
+extern wchar_t *__wcsdup (__const wchar_t *__s) attribute_hidden;
+extern size_t __wcslen (__const wchar_t *__s) attribute_hidden;
+extern wchar_t *__wcscpy (wchar_t *__restrict __dest,
+ __const wchar_t *__restrict __src) attribute_hidden;
+extern size_t __wcsspn (__const wchar_t *__wcs, __const wchar_t *__accept) attribute_hidden;
+extern wchar_t *__wcspbrk (__const wchar_t *__wcs, __const wchar_t *__accept) attribute_hidden;
/**********************************************************************/
/* NOTE: If we ever do internationalized syserr messages, this will