16#ifndef _STLP_INTERNAL_NEW
17#define _STLP_INTERNAL_NEW
19#ifndef _STLP_INTERNAL_CSTDDEF
24#if defined (__BORLANDC__) && (__BORLANDC__ < 0x570)
26# include _STLP_NATIVE_CPP_C_HEADER(cstdlib)
27using _STLP_VENDOR_CSTD::malloc;
30#if !defined (_STLP_NO_NEW_NEW_HEADER)
33# if defined (_STLP_WCE_NET) && defined (_INC_NEW)
41# error Cannot include native new header as new is a macro.
44# if defined (_STLP_HAS_INCLUDE_NEXT)
47# include _STLP_NATIVE_CPP_RUNTIME_HEADER(new)
53#if defined (_STLP_NO_BAD_ALLOC) && !defined (_STLP_NEW_DONT_THROW_BAD_ALLOC)
54# define _STLP_NEW_DONT_THROW_BAD_ALLOC 1
57#if defined (_STLP_USE_EXCEPTIONS) && defined (_STLP_NEW_DONT_THROW_BAD_ALLOC)
59# ifndef _STLP_INTERNAL_EXCEPTION
65# if defined (_STLP_NO_BAD_ALLOC)
67# define nothrow nothrow_t()
88#if defined (_STLP_USE_OWN_NAMESPACE)
92# if !defined (_STLP_NEW_DONT_THROW_BAD_ALLOC)
93using _STLP_VENDOR_EXCEPT_STD::bad_alloc;
96# if !defined (_STLP_NO_BAD_ALLOC)
97using _STLP_VENDOR_EXCEPT_STD::nothrow_t;
98using _STLP_VENDOR_EXCEPT_STD::nothrow;
99# if defined (_STLP_GLOBAL_NEW_HANDLER)
101using ::set_new_handler;
103using _STLP_VENDOR_EXCEPT_STD::new_handler;
104using _STLP_VENDOR_EXCEPT_STD::set_new_handler;
111#ifndef _STLP_THROW_BAD_ALLOC
112# if !defined (_STLP_USE_EXCEPTIONS)
113# ifndef _STLP_INTERNAL_CSTDIO
116# define _STLP_THROW_BAD_ALLOC puts("out of memory\n"); exit(1)
118# define _STLP_THROW_BAD_ALLOC _STLP_THROW(_STLP_STD::bad_alloc())
122#if defined (_STLP_NO_NEW_NEW_HEADER) || defined (_STLP_NEW_DONT_THROW_BAD_ALLOC)
123# define _STLP_CHECK_NULL_ALLOC(__x) void* __y = __x; if (__y == 0) { _STLP_THROW_BAD_ALLOC; } return __y
125# define _STLP_CHECK_NULL_ALLOC(__x) return __x
130#if ((defined (__IBMCPP__) || defined (__OS400__) || defined (__xlC__) || defined (qTidyHeap)) && defined (_STLP_DEBUG_ALLOC))
void _STLP_CALL __stl_delete(void *__p)
#define _STLP_CHECK_NULL_ALLOC(__x)
_STLP_BEGIN_NAMESPACE void *_STLP_CALL __stl_new(size_t __n)
#define _STLP_NOTHROW_INHERENTLY
#define _STLP_BEGIN_NAMESPACE
#define _STLP_END_NAMESPACE