OSDN Git Service

remove unused hidden functions
authorPeter S. Mazinger <ps.m@gmx.net>
Wed, 9 Mar 2011 22:20:16 +0000 (23:20 +0100)
committerPeter S. Mazinger <ps.m@gmx.net>
Wed, 9 Mar 2011 22:20:16 +0000 (23:20 +0100)
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
include/stdio.h
include/string.h
include/wchar.h
libc/stdio/_scanf.c
libc/stdio/fwprintf.c
libc/string/stpncpy.c
libc/string/strchr.c
libc/string/strchrnul.c
libc/string/strcpy.c

index 3c86f25..45d3e49 100644 (file)
@@ -450,7 +450,6 @@ libc_hidden_proto(vfscanf)
    marked with __THROW.  */
 extern int vscanf (__const char *__restrict __format, __gnuc_va_list __arg)
      __attribute__ ((__format__ (__scanf__, 1, 0))) __wur;
-libc_hidden_proto(vscanf)
 
 /* Read formatted input from S into argument list ARG.  */
 extern int vsscanf (__const char *__restrict __s,
index cfd423b..f11a726 100644 (file)
@@ -447,7 +447,6 @@ extern char *__stpncpy (char *__restrict __dest,
 extern char *stpncpy (char *__restrict __dest,
                      __const char *__restrict __src, size_t __n)
      __THROW __nonnull ((1, 2));
-libc_hidden_proto(stpncpy)
 
 # if 0                 /* uClibc does not support strfry or memfrob. */
 /* Sautee STRING briskly.  */
index 0603089..53959e0 100644 (file)
@@ -228,7 +228,6 @@ __BEGIN_NAMESPACE_C99
 /* Find the first occurrence of WC in WCS.  */
 extern wchar_t *wcschr (__const wchar_t *__wcs, wchar_t __wc)
      __THROW __attribute_pure__;
-libc_hidden_proto(wcschr)
 /* Find the last occurrence of WC in WCS.  */
 extern wchar_t *wcsrchr (__const wchar_t *__wcs, wchar_t __wc)
      __THROW __attribute_pure__;
@@ -239,7 +238,6 @@ __END_NAMESPACE_C99
    the closing NUL wide character in case C is not found in S.  */
 extern wchar_t *wcschrnul (__const wchar_t *__s, wchar_t __wc)
      __THROW __attribute_pure__;
-libc_hidden_proto(wcschrnul)
 #endif
 
 __BEGIN_NAMESPACE_C99
@@ -544,7 +542,6 @@ extern int fwide (__FILE *__fp, int __mode) __THROW;
 extern int fwprintf (__FILE *__restrict __stream,
                     __const wchar_t *__restrict __format, ...)
      /* __attribute__ ((__format__ (__wprintf__, 2, 3))) */;
-libc_hidden_proto(fwprintf)
 /* Write formatted output to stdout.
 
    This function is a possible cancellation point and therefore not
index 1ad81cb..f38e72b 100644 (file)
@@ -198,7 +198,6 @@ int vscanf(const char * __restrict format, va_list arg)
 {
        return vfscanf(stdin, format, arg);
 }
-libc_hidden_def(vscanf)
 
 #endif
 /**********************************************************************/
index 2f2dddc..9549708 100644 (file)
@@ -21,4 +21,3 @@ int fwprintf(FILE * __restrict stream, const wchar_t * __restrict format, ...)
 
        return rv;
 }
-libc_hidden_def(fwprintf)
index 088145d..50d83a1 100644 (file)
@@ -27,7 +27,3 @@ Wchar *Wstpncpy(register Wchar * __restrict s1,
        }
        return s1 + (s2 - p);
 }
-
-#ifndef WANT_WIDE
-libc_hidden_def(stpncpy)
-#endif
index 462b7b1..7ea4773 100644 (file)
@@ -23,8 +23,9 @@ Wchar *Wstrchr(register const Wchar *s, Wint c)
 
        return NULL;
 }
-libc_hidden_def(Wstrchr)
-
-#if !defined WANT_WIDE && defined __UCLIBC_SUSV3_LEGACY__
+#ifndef WANT_WIDE
+libc_hidden_def(strchr)
+# ifdef __UCLIBC_SUSV3_LEGACY__
 weak_alias(strchr,index)
+# endif
 #endif
index d2d7df3..4751971 100644 (file)
@@ -21,5 +21,7 @@ Wchar *Wstrchrnul(register const Wchar *s, Wint c)
        while (*++s && (*s != ((Wchar)c)));
        return (Wchar *) s;
 }
+# ifndef WANT_WIDE
 libc_hidden_def(Wstrchrnul)
+# endif
 #endif
index bb5a168..549360c 100644 (file)
@@ -22,8 +22,6 @@ Wchar *Wstrcpy(Wchar * __restrict s1, const Wchar * __restrict s2)
        return s1;
 }
 
-#ifdef WANT_WIDE
-/* wcscpy does not need libc_hidden_def */
-#else
+#ifndef WANT_WIDE
 libc_hidden_def(strcpy)
 #endif