2 #include <exception_defines.h>
6 extern "C" void *malloc (std::size_t);
7 extern "C" void abort (void);
10 operator new (std::size_t sz
, const std::nothrow_t
&) throw()
14 /* malloc (0) is unpredictable; avoid it. */
17 p
= (void *) malloc (sz
);
22 operator new (std::size_t sz
) throw (std::bad_alloc
)
26 /* malloc (0) is unpredictable; avoid it. */
29 p
= (void *) malloc (sz
);
39 operator new[] (std::size_t sz
) throw (std::bad_alloc
)
41 return ::operator new(sz
);
45 operator new[] (std::size_t sz
, const std::nothrow_t
& nothrow
) throw()
47 return ::operator new(sz
, nothrow
);