summaryrefslogtreecommitdiff
path: root/libc/string
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2009-09-18 20:57:40 +0200
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2009-09-18 20:57:40 +0200
commit21730caa6647f645974e132ca8afec79b4eeab2b (patch)
tree6c0a0e491526f19ab08062d7f22448ac60ca4bf5 /libc/string
parent35c8387f6d3dd3d901bdc9bb7eb1c681cd1b2c0d (diff)
trim Experimentally off and uncommented hidden
sed -i -e '/Experimentally off - /d' $(grep -rl "Experimentally off - " *) sed -i -e '/^\/\*[[:space:]]*libc_hidden_proto(/d' $(grep -rl "libc_hidden_proto" *) should be a nop Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc/string')
-rw-r--r--libc/string/__glibc_strerror_r.c2
-rw-r--r--libc/string/__xpg_strerror_r.c3
-rw-r--r--libc/string/_collate.c10
-rw-r--r--libc/string/basename.c1
-rw-r--r--libc/string/bcopy.c1
-rw-r--r--libc/string/bzero.c1
-rw-r--r--libc/string/cris/memcpy.c1
-rw-r--r--libc/string/cris/memmove.c1
-rw-r--r--libc/string/cris/memset.c1
-rw-r--r--libc/string/cris/strcpy.c1
-rw-r--r--libc/string/cris/strncpy.c2
-rw-r--r--libc/string/ffs.c1
-rw-r--r--libc/string/frv/memset.S1
-rw-r--r--libc/string/generic/memcmp.c1
-rw-r--r--libc/string/generic/memcpy.c1
-rw-r--r--libc/string/generic/memmem.c2
-rw-r--r--libc/string/generic/memmove.c2
-rw-r--r--libc/string/generic/memrchr.c2
-rw-r--r--libc/string/generic/memset.c1
-rw-r--r--libc/string/generic/rawmemchr.c2
-rw-r--r--libc/string/generic/strcat.c1
-rw-r--r--libc/string/generic/strchr.c2
-rw-r--r--libc/string/generic/strchrnul.c2
-rw-r--r--libc/string/generic/strcmp.c2
-rw-r--r--libc/string/generic/strcpy.c1
-rw-r--r--libc/string/generic/strcspn.c2
-rw-r--r--libc/string/generic/strlen.c2
-rw-r--r--libc/string/generic/strncat.c1
-rw-r--r--libc/string/generic/strncmp.c1
-rw-r--r--libc/string/generic/strncpy.c1
-rw-r--r--libc/string/generic/strnlen.c2
-rw-r--r--libc/string/generic/strrchr.c2
-rw-r--r--libc/string/generic/strsep.c3
-rw-r--r--libc/string/generic/strspn.c1
-rw-r--r--libc/string/generic/strstr.c1
-rw-r--r--libc/string/generic/strtok_r.c5
-rw-r--r--libc/string/i386/strcat.c1
-rw-r--r--libc/string/i386/strcmp.c2
-rw-r--r--libc/string/i386/strrchr.c1
-rw-r--r--libc/string/memcmp.c1
-rw-r--r--libc/string/memmem.c1
-rw-r--r--libc/string/memmove.c1
-rw-r--r--libc/string/memrchr.c1
-rw-r--r--libc/string/powerpc/memmove.c2
-rw-r--r--libc/string/powerpc/memset.c1
-rw-r--r--libc/string/psignal.c2
-rw-r--r--libc/string/rawmemchr.c1
-rw-r--r--libc/string/stpncpy.c1
-rw-r--r--libc/string/strcasecmp.c10
-rw-r--r--libc/string/strcasestr.c3
-rw-r--r--libc/string/strcspn.c1
-rw-r--r--libc/string/strdup.c4
-rw-r--r--libc/string/strerror.c2
-rw-r--r--libc/string/strncasecmp.c10
-rw-r--r--libc/string/strncat.c1
-rw-r--r--libc/string/strncmp.c1
-rw-r--r--libc/string/strncpy.c1
-rw-r--r--libc/string/strndup.c3
-rw-r--r--libc/string/strrchr.c1
-rw-r--r--libc/string/strsep.c3
-rw-r--r--libc/string/strstr.c1
-rw-r--r--libc/string/strtok.c1
-rw-r--r--libc/string/strtok_r.c5
63 files changed, 0 insertions, 128 deletions
diff --git a/libc/string/__glibc_strerror_r.c b/libc/string/__glibc_strerror_r.c
index 2b856e9f5..e97e55234 100644
--- a/libc/string/__glibc_strerror_r.c
+++ b/libc/string/__glibc_strerror_r.c
@@ -8,8 +8,6 @@
#include <features.h>
#include <string.h>
-/* libc_hidden_proto(__glibc_strerror_r) */
-/* libc_hidden_proto(__xpg_strerror_r) */
char *__glibc_strerror_r(int errnum, char *strerrbuf, size_t buflen)
{
diff --git a/libc/string/__xpg_strerror_r.c b/libc/string/__xpg_strerror_r.c
index 274b6cec8..fb4d44004 100644
--- a/libc/string/__xpg_strerror_r.c
+++ b/libc/string/__xpg_strerror_r.c
@@ -15,9 +15,6 @@
#undef strerror_r
-/* libc_hidden_proto(__xpg_strerror_r) */
-/* Experimentally off - libc_hidden_proto(memcpy) */
-/* Experimentally off - libc_hidden_proto(strlen) */
#ifdef __UCLIBC_HAS_ERRNO_MESSAGES__
diff --git a/libc/string/_collate.c b/libc/string/_collate.c
index 9cc9ed055..eadbd6c6e 100644
--- a/libc/string/_collate.c
+++ b/libc/string/_collate.c
@@ -19,13 +19,7 @@
#include <errno.h>
#include <assert.h>
-/* Experimentally off - libc_hidden_proto(memset) */
-/* Experimentally off - libc_hidden_proto(memcpy) */
-/* Experimentally off - libc_hidden_proto(strlcpy) */
-/* Experimentally off - libc_hidden_proto(strcmp) */
#ifdef WANT_WIDE
-/* libc_hidden_proto(wcsxfrm) */
-/* libc_hidden_proto(wcscmp) */
#endif
#ifdef __UCLIBC_HAS_LOCALE__
@@ -59,18 +53,14 @@
#if defined(__UCLIBC_HAS_XLOCALE__) && !defined(__UCLIBC_DO_XLOCALE)
-/* libc_hidden_proto(wcscoll_l) */
-/* libc_hidden_proto(wcscoll) */
int wcscoll (const Wchar *s0, const Wchar *s1)
{
return wcscoll_l(s0, s1, __UCLIBC_CURLOCALE );
}
libc_hidden_def(wcscoll)
-/* libc_hidden_proto(wcsxfrm_l) */
-/* libc_hidden_proto(wcsxfrm) */
size_t wcsxfrm(Wchar *__restrict ws1, const Wchar *__restrict ws2, size_t n)
{
return wcsxfrm_l(ws1, ws2, n, __UCLIBC_CURLOCALE );
diff --git a/libc/string/basename.c b/libc/string/basename.c
index a076c20e9..29e7a2a82 100644
--- a/libc/string/basename.c
+++ b/libc/string/basename.c
@@ -8,7 +8,6 @@
#include "_string.h"
#ifdef __USE_GNU
-/* Experimentally off - libc_hidden_proto(basename) */
char *basename(const char *path)
{
diff --git a/libc/string/bcopy.c b/libc/string/bcopy.c
index 3aa7eab1e..4b718f98d 100644
--- a/libc/string/bcopy.c
+++ b/libc/string/bcopy.c
@@ -9,7 +9,6 @@
#ifdef __UCLIBC_SUSV3_LEGACY__
-/* Experimentally off - libc_hidden_proto(memmove) */
void bcopy(const void *s2, void *s1, size_t n)
{
diff --git a/libc/string/bzero.c b/libc/string/bzero.c
index 7498f795f..364456fff 100644
--- a/libc/string/bzero.c
+++ b/libc/string/bzero.c
@@ -9,7 +9,6 @@
#ifdef __UCLIBC_SUSV3_LEGACY__
-/* Experimentally off - libc_hidden_proto(memset) */
void bzero(void *s, size_t n)
{
diff --git a/libc/string/cris/memcpy.c b/libc/string/cris/memcpy.c
index 94ece0512..94e576f4f 100644
--- a/libc/string/cris/memcpy.c
+++ b/libc/string/cris/memcpy.c
@@ -44,7 +44,6 @@
/* No name ambiguities in this file. */
__asm__ (".syntax no_register_prefix");
-/* Experimentally off - libc_hidden_proto(memcpy) */
void *
memcpy(void *pdst, const void *psrc, size_t pn)
{
diff --git a/libc/string/cris/memmove.c b/libc/string/cris/memmove.c
index fa495eba4..4184fc96d 100644
--- a/libc/string/cris/memmove.c
+++ b/libc/string/cris/memmove.c
@@ -27,7 +27,6 @@
#include "memcopy.h"
#include "../generic/pagecopy.h"
-/* Experimentally off - libc_hidden_proto(memmove) */
void *memmove (void *dest, const void *src, size_t len)
{
unsigned long int dstp = (long int) dest;
diff --git a/libc/string/cris/memset.c b/libc/string/cris/memset.c
index f4c5bb685..fab4e8b66 100644
--- a/libc/string/cris/memset.c
+++ b/libc/string/cris/memset.c
@@ -46,7 +46,6 @@
/* No name ambiguities in this file. */
__asm__ (".syntax no_register_prefix");
-/* Experimentally off - libc_hidden_proto(memset) */
void *memset(void *pdst, int c, unsigned int plen)
{
/* Now we want the parameters in special registers. Make sure the
diff --git a/libc/string/cris/strcpy.c b/libc/string/cris/strcpy.c
index 955a990b7..40e6389b9 100644
--- a/libc/string/cris/strcpy.c
+++ b/libc/string/cris/strcpy.c
@@ -6,7 +6,6 @@
#include <string.h>
-/* Experimentally off - libc_hidden_proto(strcpy) */
char *strcpy(char *dest, const char *src)
{
char *ret = dest;
diff --git a/libc/string/cris/strncpy.c b/libc/string/cris/strncpy.c
index 3f2775bdd..8d074071a 100644
--- a/libc/string/cris/strncpy.c
+++ b/libc/string/cris/strncpy.c
@@ -6,9 +6,7 @@
#include <string.h>
-/* Experimentally off - libc_hidden_proto(memset) */
-/* Experimentally off - libc_hidden_proto(strncpy) */
char *strncpy(char *dest, const char *src, size_t count)
{
char *ret = dest;
diff --git a/libc/string/ffs.c b/libc/string/ffs.c
index 241b7456f..22efe4a1e 100644
--- a/libc/string/ffs.c
+++ b/libc/string/ffs.c
@@ -9,7 +9,6 @@
#include "_string.h"
-/* Experimentally off - libc_hidden_proto(ffs) */
int ffs(int i)
{
diff --git a/libc/string/frv/memset.S b/libc/string/frv/memset.S
index 477597dcd..a3e76c491 100644
--- a/libc/string/frv/memset.S
+++ b/libc/string/frv/memset.S
@@ -155,4 +155,3 @@ memset:
bralr
.size memset, .-memset
-/* Experimentally off - libc_hidden_proto(memset) */
diff --git a/libc/string/generic/memcmp.c b/libc/string/generic/memcmp.c
index 27db6b3d3..62600cd08 100644
--- a/libc/string/generic/memcmp.c
+++ b/libc/string/generic/memcmp.c
@@ -21,7 +21,6 @@
#include <string.h>
#include "memcopy.h"
-/* Experimentally off - libc_hidden_proto(memcmp) */
#include <endian.h>
diff --git a/libc/string/generic/memcpy.c b/libc/string/generic/memcpy.c
index a19e0c335..7dd7118fd 100644
--- a/libc/string/generic/memcpy.c
+++ b/libc/string/generic/memcpy.c
@@ -24,7 +24,6 @@
#include "pagecopy.h"
#include "_memcpy_fwd.c"
-/* Experimentally off - libc_hidden_proto(memcpy) */
void *memcpy (void *dstpp, const void *srcpp, size_t len)
{
diff --git a/libc/string/generic/memmem.c b/libc/string/generic/memmem.c
index c75bb2426..0fccac77f 100644
--- a/libc/string/generic/memmem.c
+++ b/libc/string/generic/memmem.c
@@ -20,8 +20,6 @@
#include <stddef.h>
#ifdef __USE_GNU
-/* Experimentally off - libc_hidden_proto(memmem) */
-/* Experimentally off - libc_hidden_proto(memcmp) */
/* Return the first occurrence of NEEDLE in HAYSTACK. */
void *memmem (const void *haystack, size_t haystack_len,
diff --git a/libc/string/generic/memmove.c b/libc/string/generic/memmove.c
index 7f945b150..b564a7d10 100644
--- a/libc/string/generic/memmove.c
+++ b/libc/string/generic/memmove.c
@@ -29,8 +29,6 @@
#include "_memcpy_fwd.c"
#endif
-/* Experimentally off - libc_hidden_proto(memmove) */
-/* Experimentally off - libc_hidden_proto(memcpy) */
static void _wordcopy_bwd_aligned (long int dstp, long int srcp, size_t len)
{
diff --git a/libc/string/generic/memrchr.c b/libc/string/generic/memrchr.c
index 95fe1d4d8..c03a77037 100644
--- a/libc/string/generic/memrchr.c
+++ b/libc/string/generic/memrchr.c
@@ -27,8 +27,6 @@
#include <limits.h>
#ifdef __USE_GNU
-/* Experimentally off - libc_hidden_proto(memrchr) */
-/* libc_hidden_proto(abort) */
#include "memcopy.h"
diff --git a/libc/string/generic/memset.c b/libc/string/generic/memset.c
index 62cc36fe3..7be572765 100644
--- a/libc/string/generic/memset.c
+++ b/libc/string/generic/memset.c
@@ -19,7 +19,6 @@
#include <string.h>
#include "memcopy.h"
-/* Experimentally off - libc_hidden_proto(memset) */
void *memset (void *dstpp, int c, size_t len)
{
long int dstp = (long int) dstpp;
diff --git a/libc/string/generic/rawmemchr.c b/libc/string/generic/rawmemchr.c
index 5242734f1..ddefb0997 100644
--- a/libc/string/generic/rawmemchr.c
+++ b/libc/string/generic/rawmemchr.c
@@ -26,8 +26,6 @@
#include <limits.h>
#ifdef __USE_GNU
-/* Experimentally off - libc_hidden_proto(rawmemchr) */
-/* libc_hidden_proto(abort) */
#include "memcopy.h"
diff --git a/libc/string/generic/strcat.c b/libc/string/generic/strcat.c
index e00494038..b19a0dbd5 100644
--- a/libc/string/generic/strcat.c
+++ b/libc/string/generic/strcat.c
@@ -19,7 +19,6 @@
#include <string.h>
#include "memcopy.h"
-/* Experimentally off - libc_hidden_proto(strcat) */
/* Append SRC on the end of DEST. */
char *strcat (char *dest, const char *src)
{
diff --git a/libc/string/generic/strchr.c b/libc/string/generic/strchr.c
index 91de3f4aa..836ccddbf 100644
--- a/libc/string/generic/strchr.c
+++ b/libc/string/generic/strchr.c
@@ -24,8 +24,6 @@
#include <string.h>
#include <stdlib.h>
-/* Experimentally off - libc_hidden_proto(strchr) */
-/* libc_hidden_proto(abort) */
#include "memcopy.h"
diff --git a/libc/string/generic/strchrnul.c b/libc/string/generic/strchrnul.c
index 6a25b1c0c..9984d6161 100644
--- a/libc/string/generic/strchrnul.c
+++ b/libc/string/generic/strchrnul.c
@@ -25,8 +25,6 @@
#include <stdlib.h>
#ifdef __USE_GNU
-/* Experimentally off - libc_hidden_proto(strchrnul) */
-/* libc_hidden_proto(abort) */
#include "memcopy.h"
diff --git a/libc/string/generic/strcmp.c b/libc/string/generic/strcmp.c
index 50acd3548..502b80fb3 100644
--- a/libc/string/generic/strcmp.c
+++ b/libc/string/generic/strcmp.c
@@ -20,7 +20,6 @@
#include "memcopy.h"
-/* Experimentally off - libc_hidden_proto(strcmp) */
/* Compare S1 and S2, returning less than, equal to or
greater than zero if S1 is lexicographically less than,
equal to or greater than S2. */
@@ -44,7 +43,6 @@ int strcmp (const char *p1, const char *p2)
libc_hidden_weak(strcmp)
#ifndef __UCLIBC_HAS_LOCALE__
-/* Experimentally off - libc_hidden_proto(strcoll) */
strong_alias(strcmp,strcoll)
libc_hidden_def(strcoll)
#endif
diff --git a/libc/string/generic/strcpy.c b/libc/string/generic/strcpy.c
index b9a0a286a..4d070531f 100644
--- a/libc/string/generic/strcpy.c
+++ b/libc/string/generic/strcpy.c
@@ -21,7 +21,6 @@
#include "memcopy.h"
-/* Experimentally off - libc_hidden_proto(strcpy) */
/* Copy SRC to DEST. */
char *strcpy(char *dest, const char *src)
{
diff --git a/libc/string/generic/strcspn.c b/libc/string/generic/strcspn.c
index b65b3b995..f1f39df8c 100644
--- a/libc/string/generic/strcspn.c
+++ b/libc/string/generic/strcspn.c
@@ -18,8 +18,6 @@
#include <string.h>
-/* Experimentally off - libc_hidden_proto(strcspn) */
-/* Experimentally off - libc_hidden_proto(strchr) */
/* Return the length of the maximum initial segment of S
which contains no characters from REJECT. */
diff --git a/libc/string/generic/strlen.c b/libc/string/generic/strlen.c
index be899d330..9b6d81dfe 100644
--- a/libc/string/generic/strlen.c
+++ b/libc/string/generic/strlen.c
@@ -22,8 +22,6 @@
#include <string.h>
#include <stdlib.h>
-/* Experimentally off - libc_hidden_proto(strlen) */
-/* libc_hidden_proto(abort) */
/* Return the length of the null-terminated string STR. Scan for
the null terminator quickly by testing four bytes at a time. */
diff --git a/libc/string/generic/strncat.c b/libc/string/generic/strncat.c
index 8e3423e49..0863d3669 100644
--- a/libc/string/generic/strncat.c
+++ b/libc/string/generic/strncat.c
@@ -20,7 +20,6 @@
#include "memcopy.h"
-/* Experimentally off - libc_hidden_proto(strncat) */
char *strncat (char *s1, const char *s2, size_t n)
{
reg_char c;
diff --git a/libc/string/generic/strncmp.c b/libc/string/generic/strncmp.c
index c49f36d8b..04d6cf2ac 100644
--- a/libc/string/generic/strncmp.c
+++ b/libc/string/generic/strncmp.c
@@ -19,7 +19,6 @@
#include <string.h>
#include "memcopy.h"
-/* Experimentally off - libc_hidden_proto(strncmp) */
/* Compare no more than N characters of S1 and S2,
returning less than, equal to or greater than zero
if S1 is lexicographically less than, equal to or
diff --git a/libc/string/generic/strncpy.c b/libc/string/generic/strncpy.c
index d2d693f2b..26b45bb8c 100644
--- a/libc/string/generic/strncpy.c
+++ b/libc/string/generic/strncpy.c
@@ -19,7 +19,6 @@
#include <string.h>
#include "memcopy.h"
-/* Experimentally off - libc_hidden_proto(strncpy) */
char *strncpy (char *s1, const char *s2, size_t n)
{
reg_char c;
diff --git a/libc/string/generic/strnlen.c b/libc/string/generic/strnlen.c
index 0bc517a84..85819aaa6 100644
--- a/libc/string/generic/strnlen.c
+++ b/libc/string/generic/strnlen.c
@@ -25,8 +25,6 @@
#include <stdlib.h>
#ifdef __USE_GNU
-/* Experimentally off - libc_hidden_proto(strnlen) */
-/* libc_hidden_proto(abort) */
/* Find the length of S, but scan at most MAXLEN characters. If no
'\0' terminator is found in that many characters, return MAXLEN. */
diff --git a/libc/string/generic/strrchr.c b/libc/string/generic/strrchr.c
index c85707241..7d169260a 100644
--- a/libc/string/generic/strrchr.c
+++ b/libc/string/generic/strrchr.c
@@ -18,8 +18,6 @@
#include <string.h>
-/* Experimentally off - libc_hidden_proto(strrchr) */
-/* Experimentally off - libc_hidden_proto(strchr) */
/* Find the last occurrence of C in S. */
char *strrchr (const char *s, int c)
diff --git a/libc/string/generic/strsep.c b/libc/string/generic/strsep.c
index e02e57068..91dfade85 100644
--- a/libc/string/generic/strsep.c
+++ b/libc/string/generic/strsep.c
@@ -20,10 +20,7 @@
#ifdef __USE_BSD
-/* Experimentally off - libc_hidden_proto(strchr) */
-/* Experimentally off - libc_hidden_proto(strpbrk) */
-/* Experimentally off - libc_hidden_proto(strsep) */
char *strsep (char **stringp, const char *delim)
{
char *begin, *end;
diff --git a/libc/string/generic/strspn.c b/libc/string/generic/strspn.c
index 010567744..1d9ec4022 100644
--- a/libc/string/generic/strspn.c
+++ b/libc/string/generic/strspn.c
@@ -18,7 +18,6 @@
#include <string.h>
-/* Experimentally off - libc_hidden_proto(strspn) */
/* Return the length of the maximum initial segment
of S which contains only characters in ACCEPT. */
size_t strspn (const char *s, const char *accept)
diff --git a/libc/string/generic/strstr.c b/libc/string/generic/strstr.c
index c12dceb33..c3b886a0d 100644
--- a/libc/string/generic/strstr.c
+++ b/libc/string/generic/strstr.c
@@ -28,7 +28,6 @@
#include <string.h>
-/* Experimentally off - libc_hidden_proto(strstr) */
typedef unsigned chartype;
diff --git a/libc/string/generic/strtok_r.c b/libc/string/generic/strtok_r.c
index 7648212f7..75ce5be2a 100644
--- a/libc/string/generic/strtok_r.c
+++ b/libc/string/generic/strtok_r.c
@@ -19,15 +19,10 @@
#include <string.h>
-/* Experimentally off - libc_hidden_proto(strtok_r) */
-/* Experimentally off - libc_hidden_proto(strspn) */
-/* Experimentally off - libc_hidden_proto(strpbrk) */
#ifdef __USE_GNU
# define __rawmemchr rawmemchr
-/* Experimentally off - libc_hidden_proto(rawmemchr) */
#else
# define __rawmemchr strchr
-/* Experimentally off - libc_hidden_proto(strchr) */
#endif
#if 0
Parse S into tokens separated by characters in DELIM.
diff --git a/libc/string/i386/strcat.c b/libc/string/i386/strcat.c
index 2cf0237a6..e71aad4f7 100644
--- a/libc/string/i386/strcat.c
+++ b/libc/stri