cstring (memchr, [...]): Provide inlines only if __CORRECT_ISO_CPP_STRING_H_PROTO...
authorUlrich Drepper <drepper@redhat.com>
Fri, 30 Jan 2009 00:08:29 +0000 (00:08 +0000)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 30 Jan 2009 00:08:29 +0000 (01:08 +0100)
commit60822e0b57d2b5303fdfb5af829fb4dcf77626f1
tree4062f59ed38873a74525cac1bcb73d7b5bb59f8a
parentcbdab9c897d52b8311979a1e31e41d248671a4cb
cstring (memchr, [...]): Provide inlines only if __CORRECT_ISO_CPP_STRING_H_PROTO is not defined.

* include/c_std/cstring (memchr, strchr, strpbrk, strrchr, strstr):
Provide inlines only if __CORRECT_ISO_CPP_STRING_H_PROTO is not
defined.
* include/c_std/cwchar (wcschr, wcspbrk, wcsrchr, wcsstr, wmemchr):
Provide inlines only if __CORRECT_ISO_CPP_WCHAR_H_PROTO is not
defined.
* include/c_global/cstring (memchr, strchr, strpbrk, strrchr, strstr):
Provide inlines only if __CORRECT_ISO_CPP_STRING_H_PROTO is not
defined.
* include/c_global/cwchar (wcschr, wcspbrk, wcsrchr, wcsstr, wmemchr):
Provide inlines only if __CORRECT_ISO_CPP_WCHAR_H_PROTO is not
defined.
* testsuite/21_strings/c_strings/char_t/2.cc (test02): If first
argument is const char *, assign result to const char * var, not
char *.
* testsuite/21_strings/c_strings/wchar_t/2.cc (test02): If first
argument is const wchar_t *, assign result to const wchar_t * var, not
wchar_t *.

Co-Authored-By: Jakub Jelinek <jakub@redhat.com>
From-SVN: r143773
libstdc++-v3/ChangeLog
libstdc++-v3/include/c_global/cstring
libstdc++-v3/include/c_global/cwchar
libstdc++-v3/include/c_std/cstring
libstdc++-v3/include/c_std/cwchar
libstdc++-v3/testsuite/21_strings/c_strings/char/2.cc
libstdc++-v3/testsuite/21_strings/c_strings/wchar_t/2.cc