From dc54a98d057114b4701ceeceeeb16f446ade4cf4 Mon Sep 17 00:00:00 2001 From: cvs2svn Date: Mon, 19 Mar 2001 20:56:12 +0000 Subject: This commit was manufactured by cvs2svn to create tag 'gcc-vendor-gcc_2_95_3'. --- contrib/libg++/libstdc++/std/cstring.h | 71 ---------------------------------- 1 file changed, 71 deletions(-) delete mode 100644 contrib/libg++/libstdc++/std/cstring.h (limited to 'contrib/libg++/libstdc++/std/cstring.h') diff --git a/contrib/libg++/libstdc++/std/cstring.h b/contrib/libg++/libstdc++/std/cstring.h deleted file mode 100644 index 6d493e7501e54..0000000000000 --- a/contrib/libg++/libstdc++/std/cstring.h +++ /dev/null @@ -1,71 +0,0 @@ -// The -*- C++ -*- null-terminated string header. -// This file is part of the GNU ANSI C++ Library. - -#ifndef __CSTRING__ -#define __CSTRING__ - -#if 0 // Let's not bother with this just yet. -// The ANSI C prototypes for these functions have a const argument type and -// non-const return type, so we can't use them. - -#define strchr __hide_strchr -#define strpbrk __hide_strpbrk -#define strrchr __hide_strrchr -#define strstr __hide_strstr -#define memchr __hide_memchr -#endif // 0 - -#include_next - -#if 0 // Let's not bother with this just yet. -#undef strchr -#undef strpbrk -#undef strrchr -#undef strstr -#undef memchr - -#include - -#ifdef __GNUG__ -#pragma interface "std/cstring.h" -#endif - -extern "C++" { -extern "C" const char *strchr (const char *, int); -inline char * -strchr (char *s, int c) -{ - return const_cast (strchr (static_cast (s), c)); -} - -extern "C" const char *strpbrk (const char *, const char *); -inline char * -strpbrk (char *s1, const char *s2) -{ - return const_cast (strpbrk (static_cast (s1), s2)); -} - -extern "C" const char *strrchr (const char *, int); -inline char * -strrchr (char *s, int c) -{ - return const_cast (strrchr (static_cast (s), c)); -} - -extern "C" const char *strstr (const char *, const char *); -inline char * -strstr (char *s1, const char *s2) -{ - return const_cast (strstr (static_cast (s1), s2)); -} - -extern "C" const void *memchr (const void *, int, size_t); -inline void * -memchr (void *s, int c, size_t n) -{ - return const_cast (memchr (static_cast (s), c, n)); -} -} // extern "C++" - -#endif // 0 -#endif // !defined (__CSTRING__) -- cgit v1.2.3