Commit 610b0ddd by Mark Mitchell Committed by Mark Mitchell

new_op.cc: Update comments.

	* libsupc++/new_op.cc: Update comments.
	* libsupc++/del_op.cc: Likewise.

From-SVN: r85464
parent 723acbd5
2004-08-03 Mark Mitchell <mark@codesourcery.com>
* libsupc++/new_op.cc: Update comments.
* libsupc++/del_op.cc: Likewise.
2004-08-02 Mark Mitchell <mark@codesourcery.com> 2004-08-02 Mark Mitchell <mark@codesourcery.com>
* libsupc++/cxxabi.h: Make all declarations have default * libsupc++/cxxabi.h: Make all declarations have default
......
...@@ -34,9 +34,8 @@ ...@@ -34,9 +34,8 @@
#if _GLIBCXX_HOSTED #if _GLIBCXX_HOSTED
using std::free; using std::free;
#else #else
// In a freestanding environment, "free" may not be available. In // A freestanding C runtime may not provide "free" -- but there is no
// that case, it may make sense not to define "operator delete" at // other reasonable way to implement "operator delete".
// all. For now, we assume that "free" will work.
extern "C" void free(void *); extern "C" void free(void *);
#endif #endif
......
...@@ -36,9 +36,8 @@ using std::bad_alloc; ...@@ -36,9 +36,8 @@ using std::bad_alloc;
#if _GLIBCXX_HOSTED #if _GLIBCXX_HOSTED
using std::malloc; using std::malloc;
#else #else
// In a freestanding environment, "malloc" may not be available. In // A freestanding C runtime may not provide "malloc" -- but there is no
// that case, it may make sense not to define "operator new" at all. // other reasonable way to implement "operator new".
// For now, we assume that "malloc" will work.
extern "C" void *malloc (std::size_t); extern "C" void *malloc (std::size_t);
#endif #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