Internal declarations in <string.h>
Andreas Schwab
schwab@suse.de
Tue Oct 17 02:30:00 GMT 2000
This patch removes some leftover internal declarations in <string.h>
Andreas.
2000-10-17 Andreas Schwab <schwab@suse.de>
* string/string.h: Remove declaration of __strcasecmp and
__strcasestr.
* include/string.h: Declare them here.
--- include/string.h.~1.12~ Wed Jul 19 14:29:11 2000
+++ include/string.h Tue Oct 17 11:08:06 2000
@@ -17,6 +17,12 @@
size_t __n)
__attribute_pure__;
+extern int __strcasecmp (__const char *__s1, __const char *__s2)
+ __attribute_pure__;
+
+extern char *__strcasestr (__const char *__haystack, __const char *__needle)
+ __attribute_pure__;
+
extern char *__strdup (__const char *__string)
__attribute_malloc__;
extern char *__strndup (__const char *__string, size_t __n)
--- string/string.h.~1.77~ Thu Sep 14 09:31:17 2000
+++ string/string.h Tue Oct 17 10:59:39 2000
@@ -179,8 +179,6 @@
#ifdef __USE_GNU
/* Similar to `strstr' but this function ignores the case of both strings. */
-extern char *__strcasestr (__const char *__haystack, __const char *__needle)
- __THROW __attribute_pure__;
extern char *strcasestr (__const char *__haystack, __const char *__needle)
__THROW __attribute_pure__;
#endif
@@ -273,8 +271,6 @@
# endif
/* Compare S1 and S2, ignoring case. */
-extern int __strcasecmp (__const char *__s1, __const char *__s2)
- __THROW __attribute_pure__;
extern int strcasecmp (__const char *__s1, __const char *__s2)
__THROW __attribute_pure__;
--
Andreas Schwab "And now for something
SuSE Labs completely different."
Andreas.Schwab@suse.de
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
More information about the Libc-hacker
mailing list