Commit f035fae1 by Benjamin Kosnik Committed by Benjamin Kosnik

Finish up FreeBSD4.0 support.


2000-05-10  Benjamin Kosnik  <bkoz@redhat.com>

	Finish up FreeBSD4.0 support.
	* config/bsd/ctype.cc: Scope out toupper, tolower calls.
	* config/generic/ctype.cc: And here.
	* testsuite/21_strings/char_traits.cc (test02): Guard with
	_GLIBCPP_USE_WCHAR_T.

From-SVN: r33831
parent 9a689793
2000-05-10 Benjamin Kosnik <bkoz@redhat.com>
Finish up FreeBSD4.0 support.
* config/bsd/ctype.cc: Scope out toupper, tolower calls.
* config/generic/ctype.cc: And here.
* testsuite/21_strings/char_traits.cc (test02): Guard with
_GLIBCPP_USE_WCHAR_T.
2000-05-09 Benjamin Kosnik <bkoz@gnu.org> 2000-05-09 Benjamin Kosnik <bkoz@gnu.org>
* acinclude.m4 (GLIBCPP_CHECK_CPU): Change powerpc bits to * acinclude.m4 (GLIBCPP_CHECK_CPU): Change powerpc bits to
......
...@@ -42,14 +42,14 @@ ...@@ -42,14 +42,14 @@
char char
ctype<char>::do_toupper(char __c) const ctype<char>::do_toupper(char __c) const
{ return toupper((int) __c); } { return ::toupper((int) __c); }
const char* const char*
ctype<char>::do_toupper(char* __low, const char* __high) const ctype<char>::do_toupper(char* __low, const char* __high) const
{ {
while (__low < __high) while (__low < __high)
{ {
*__low = toupper((int) *__low); *__low = ::toupper((int) *__low);
++__low; ++__low;
} }
return __high; return __high;
...@@ -57,14 +57,14 @@ ...@@ -57,14 +57,14 @@
char char
ctype<char>::do_tolower(char __c) const ctype<char>::do_tolower(char __c) const
{ return tolower((int) __c); } { return ::tolower((int) __c); }
const char* const char*
ctype<char>::do_tolower(char* __low, const char* __high) const ctype<char>::do_tolower(char* __low, const char* __high) const
{ {
while (__low < __high) while (__low < __high)
{ {
*__low = tolower((int) *__low); *__low = ::tolower((int) *__low);
++__low; ++__low;
} }
return __high; return __high;
......
...@@ -42,14 +42,14 @@ ...@@ -42,14 +42,14 @@
char char
ctype<char>::do_toupper(char __c) const ctype<char>::do_toupper(char __c) const
{ return toupper((int) __c); } { return ::toupper((int) __c); }
const char* const char*
ctype<char>::do_toupper(char* __low, const char* __high) const ctype<char>::do_toupper(char* __low, const char* __high) const
{ {
while (__low < __high) while (__low < __high)
{ {
*__low = toupper((int) *__low); *__low = ::toupper((int) *__low);
++__low; ++__low;
} }
return __high; return __high;
...@@ -57,14 +57,14 @@ ...@@ -57,14 +57,14 @@
char char
ctype<char>::do_tolower(char __c) const ctype<char>::do_tolower(char __c) const
{ return tolower((int) __c); } { return ::tolower((int) __c); }
const char* const char*
ctype<char>::do_tolower(char* __low, const char* __high) const ctype<char>::do_tolower(char* __low, const char* __high) const
{ {
while (__low < __high) while (__low < __high)
{ {
*__low = tolower((int) *__low); *__low = ::tolower((int) *__low);
++__low; ++__low;
} }
return __high; return __high;
......
...@@ -109,6 +109,7 @@ int test01(void) ...@@ -109,6 +109,7 @@ int test01(void)
return test; return test;
} }
#if _GLIBCPP_USE_WCHAR_T
int test02(void) int test02(void)
{ {
bool test = true; bool test = true;
...@@ -193,12 +194,14 @@ int test02(void) ...@@ -193,12 +194,14 @@ int test02(void)
return test; return test;
} }
#endif //_GLIBCPP_USE_WCHAR_T
int main() int main()
{ {
test01(); test01();
#if _GLIBCPP_USE_WCHAR_T
test02(); test02();
#endif
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment