summaryrefslogtreecommitdiff
path: root/libc/string/strcmp.c
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-01-14 00:58:03 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-01-14 00:58:03 +0000
commitaf0172162f7c653cad6a11ed1c1a5459bc154465 (patch)
tree70031dad1e7286d58762da7b9e3d3f93d043c278 /libc/string/strcmp.c
parentc8609543a9a8bf6559c2931dbbef6b3c41b3fbf2 (diff)
hidden_def/hidden_proto: convert all users (I hope) termios split, add some missing headers, other jump relocs removed
Diffstat (limited to 'libc/string/strcmp.c')
-rw-r--r--libc/string/strcmp.c21
1 files changed, 9 insertions, 12 deletions
diff --git a/libc/string/strcmp.c b/libc/string/strcmp.c
index 1fb8625ff..0ca95766c 100644
--- a/libc/string/strcmp.c
+++ b/libc/string/strcmp.c
@@ -8,14 +8,16 @@
#include "_string.h"
#ifdef WANT_WIDE
-# define __Wstrcmp __wcscmp
# define Wstrcmp wcscmp
+# define Wstrcoll wcscoll
#else
-# define __Wstrcmp __strcmp
# define Wstrcmp strcmp
+# define Wstrcoll strcoll
#endif
-int attribute_hidden __Wstrcmp(register const Wchar *s1, register const Wchar *s2)
+libc_hidden_proto(Wstrcmp)
+
+int Wstrcmp(register const Wchar *s1, register const Wchar *s2)
{
#ifdef WANT_WIDE
while (*((Wuchar *)s1) == *((Wuchar *)s2)) {
@@ -35,15 +37,10 @@ int attribute_hidden __Wstrcmp(register const Wchar *s1, register const Wchar *s
return r;
#endif
}
-
-strong_alias(__Wstrcmp,Wstrcmp)
+libc_hidden_def(Wstrcmp)
#ifndef __UCLIBC_HAS_LOCALE__
-# ifdef WANT_WIDE
-hidden_strong_alias(__wcscmp,__wcscoll)
-strong_alias(__wcscmp,wcscoll)
-# else
-hidden_strong_alias(__strcmp,__strcoll)
-strong_alias(__strcmp,strcoll)
-# endif
+strong_alias(Wstrcmp,Wstrcoll)
+libc_hidden_proto(Wstrcoll)
+libc_hidden_def(Wstrcoll)
#endif