c_locale.h: Change ::malloc() to new char[].
authorStephen M. Webb <stephen.webb@bregmasoft.com>
Fri, 30 Jan 2004 03:43:00 +0000 (03:43 +0000)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Fri, 30 Jan 2004 03:43:00 +0000 (03:43 +0000)
commit917a9fd4d5ce9ee5c906abb10812a316b77fc31c
treefcf9db0ae11adc880d72ac1fdbb94ef6a98414ca
parentae8f0c17739a44cfeb118280fc59626108b1eb5f
c_locale.h: Change ::malloc() to new char[].

2004-01-29  Stephen M. Webb  <stephen.webb@bregmasoft.com>

* config/local/generic/c_locale.h: Change ::malloc() to new char[].
   * config/local/gnu/c_locale.h: Change ::malloc() to new char[].
   * include/bits/stl_tempbuf.h: Convert _Temporary_buffer to use
std::get_temporary_buffer() instead of duplicating its code.
Update to C++STYLE conventions.
   * include/std/std_memory.h (get_temporary_buffer): Use ::operator
new() instead of std::malloc().
(return_temporary_buffer): Use ::operator delete() instead of
std::free().

From-SVN: r76922
libstdc++-v3/ChangeLog
libstdc++-v3/config/locale/generic/c_locale.h
libstdc++-v3/config/locale/gnu/c_locale.h
libstdc++-v3/include/bits/stl_tempbuf.h
libstdc++-v3/include/bits/stl_uninitialized.h
libstdc++-v3/include/std/std_memory.h
libstdc++-v3/testsuite/20_util/auto_ptr/assign_neg.cc