[multiple changes]

2001-05-29  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>

      * include/c_std/bits/std_cstdlib.h:: Move C99 thingies to __gnu_cxx::.
      * include/c_std/bits/std_cwchar.h (__gnu_cxx): Likewise.

2001-05-27  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>

      * include/c_std/bits/std_cmath.h: Move C99 functions in __gnu_cxx::.
      * include/c_std/bits/std_cstdlib.h: Same.
      * include/c_std/bits/std_cwchar.h: Same.

From-SVN: r42707
This commit is contained in:
Gabriel Dos Reis 2001-05-30 11:34:26 +00:00 committed by Gabriel Dos Reis
parent e97c948889
commit 3702c6346a
4 changed files with 64 additions and 52 deletions

View file

@ -1,3 +1,14 @@
2001-05-29 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
* include/c_std/bits/std_cstdlib.h:: Move C99 thingies to __gnu_cxx::.
* include/c_std/bits/std_cwchar.h (__gnu_cxx): Likewise.
2001-05-27 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
* include/c_std/bits/std_cmath.h: Move C99 functions in __gnu_cxx::.
* include/c_std/bits/std_cstdlib.h: Same.
* include/c_std/bits/std_cwchar.h: Same.
2001-05-30 Loren J. Rittle <ljrittle@acm.org> 2001-05-30 Loren J. Rittle <ljrittle@acm.org>
* docs/html/17_intro/howto.html: Update link. * docs/html/17_intro/howto.html: Update link.

View file

@ -572,9 +572,9 @@ namespace std
#if _GLIBCPP_USE_C99 #if _GLIBCPP_USE_C99
// These are possible macros imported from C99-land. For strict // These are possible macros imported from C99-land. For strict
// conformance, remove possible C99-injected names from the // conformance, remove possible C99-injected names from the global
// global namespace, and sequester them in the c99 namespace. // namespace, and sequester them in the __gnu_cxx extension namespace.
namespace c99 namespace __gnu_cxx
{ {
template<typename _Tp> template<typename _Tp>
int int
@ -602,32 +602,33 @@ namespace c99
template<typename _Tp> template<typename _Tp>
int int
__capture_isgreater(_Tp __f1, _Tp __f2) { return isgreater(__f1, __f2); } __capture_isgreater(_Tp __f1, _Tp __f2)
{ return isgreater(__f1, __f2); }
template<typename _Tp> template<typename _Tp>
int int
__capture_isgreaterequal(_Tp __f1, _Tp __f2) __capture_isgreaterequal(_Tp __f1, _Tp __f2)
{ return isgreaterequal(__f1, __f2); } { return isgreaterequal(__f1, __f2); }
template<typename _Tp> template<typename _Tp>
int int
__capture_isless(_Tp __f1, _Tp __f2) { return isless(__f1, __f2); } __capture_isless(_Tp __f1, _Tp __f2) { return isless(__f1, __f2); }
template<typename _Tp> template<typename _Tp>
int int
__capture_islessequal(_Tp __f1, _Tp __f2) __capture_islessequal(_Tp __f1, _Tp __f2)
{ return islessequal(__f1, __f2); } { return islessequal(__f1, __f2); }
template<typename _Tp> template<typename _Tp>
int int
__capture_islessgreater(_Tp __f1, _Tp __f2) __capture_islessgreater(_Tp __f1, _Tp __f2)
{ return islessgreater(__f1, __f2); } { return islessgreater(__f1, __f2); }
template<typename _Tp> template<typename _Tp>
int int
__capture_isunordered(_Tp __f1, _Tp __f2) __capture_isunordered(_Tp __f1, _Tp __f2)
{ return isunordered(__f1, __f2); } { return isunordered(__f1, __f2); }
} // namespace c99 } // namespace __gnu_cxx
#endif #endif
#undef fpclassify #undef fpclassify
@ -644,7 +645,7 @@ namespace c99
#undef isunordered #undef isunordered
#if _GLIBCPP_USE_C99 #if _GLIBCPP_USE_C99
namespace c99 namespace __gnu_cxx
{ {
template<typename _Tp> template<typename _Tp>
int int
@ -701,18 +702,18 @@ namespace c99
namespace std namespace std
{ {
using c99::fpclassify; using __gnu_cxx::fpclassify;
using c99::isfinite; using __gnu_cxx::isfinite;
using c99::isinf; using __gnu_cxx::isinf;
using c99::isnan; using __gnu_cxx::isnan;
using c99::isnormal; using __gnu_cxx::isnormal;
using c99::signbit; using __gnu_cxx::signbit;
using c99::isgreater; using __gnu_cxx::isgreater;
using c99::isgreaterequal; using __gnu_cxx::isgreaterequal;
using c99::isless; using __gnu_cxx::isless;
using c99::islessequal; using __gnu_cxx::islessequal;
using c99::islessgreater; using __gnu_cxx::islessgreater;
using c99::isunordered; using __gnu_cxx::isunordered;
} }
#endif #endif

View file

@ -126,7 +126,7 @@ namespace std
} // namespace std } // namespace std
#if _GLIBCPP_USE_C99 #if _GLIBCPP_USE_C99
namespace c99 namespace __gnu_cxx
{ {
using ::lldiv_t; using ::lldiv_t;
@ -151,20 +151,20 @@ namespace c99
#ifdef _GLIBCPP_HAVE_STRTOLD #ifdef _GLIBCPP_HAVE_STRTOLD
extern "C" long double strtold(const char*, char**); extern "C" long double strtold(const char*, char**);
#endif #endif
} // namespace c99 } // namespace __gnu_cxx
namespace std namespace std
{ {
using c99::lldiv_t; using __gnu_cxx::lldiv_t;
using c99::abs; using __gnu_cxx::abs;
//using c99::llabs; // XXX ??? //using __gnu_cxx::llabs; // XXX ???
using c99::div; using __gnu_cxx::div;
using c99::lldiv; using __gnu_cxx::lldiv;
using c99::atoll; using __gnu_cxx::atoll;
using c99::strtoll; using __gnu_cxx::strtoll;
using c99::strtoull; using __gnu_cxx::strtoull;
#ifdef _GLIBCPP_HAVE_STRTOLD #ifdef _GLIBCPP_HAVE_STRTOLD
using c99::strtold; using __gnu_cxx::strtold;
#endif #endif
} }
#endif #endif

View file

@ -205,7 +205,7 @@ namespace std
} }
#if _GLIBCPP_USE_C99 #if _GLIBCPP_USE_C99
namespace c99 namespace __gnu_cxx
{ {
extern "C" long double wcstold(const wchar_t*, wchar_t**); extern "C" long double wcstold(const wchar_t*, wchar_t**);
extern "C" long long int wcstoll(const wchar_t*, wchar_t**, int); extern "C" long long int wcstoll(const wchar_t*, wchar_t**, int);
@ -214,9 +214,9 @@ namespace c99
namespace std namespace std
{ {
using c99::wcstold; using __gnu_cxx::wcstold;
using c99::wcstoll; using __gnu_cxx::wcstoll;
using c99::wcstoull; using __gnu_cxx::wcstoull;
} }
#endif #endif