#ifndef _NEW_
#define _NEW_

#pragma info(none)
#ifndef __CHKHDR__
#  pragma report(level, E)
#endif
#pragma info(restore)

#if __IBMCPP__ < 400
#error This file to be used only with IBM VisualAge C++ v4 and later compilers.
#endif /* __IBMCPP__ */

#pragma namemangling(ansi)

   /********************************************************************/
   /*  <new> header file                                               */
   /*                                                                  */
   /*  VisualAge C++, Version 4.0                                      */
   /*    Licensed Material - Property of IBM                           */
   /*                                                                  */
   /*  5801-AAR and Other Materials                                    */
   /*                                                                  */
   /*  (c) Copyright IBM Corp 1991, 1998. All rights reserved.         */
   /*                                                                  */
   /*                                                                  */
   /*  Licensed Materials.                                             */
   /*                                                                  */
   /*  Dinkum C++ Library                                              */
   /*  Copyright (c) 1998.  Licensed to IBM Corp. and its suppliers.   */
   /*                                                                  */
   /********************************************************************/

#include <exception>
_STD_BEGIN
                // CLASS bad_alloc
class bad_alloc : public exception {
public:
        bad_alloc(const char *_S = "bad allocation") _THROW0()
                : exception(_S) {}
        virtual ~bad_alloc() _THROW0()
                {}
protected:
        virtual void _Doraise() const
                {_RAISE(*this); }
        };
                // SUPPORT TYPES
typedef void (*new_handler)();
struct nothrow_t {};
extern nothrow_t nothrow;
                // FUNCTION AND OBJECT DECLARATIONS
#ifdef _CRTIMP
_CRTIMP
#endif
       new_handler set_new_handler(new_handler) _THROW0();


#ifdef __MULTI__
  #ifdef _CRTIMP
    _CRTIMP
  #endif
       new_handler _set_mt_new_handler(new_handler) _THROW0();
#endif

  #ifdef _CRTIMP
    _CRTIMP
  #endif
       bool __set_new_throws_exception(bool) _THROW0();
_STD_END
                // new AND delete DECLARATIONS

#ifndef __DEBUG_ALLOC__
   void operator delete(void *) _THROW0();
   void *operator new(size_t) _THROW1(std::bad_alloc);
   void *operator new(size_t, const std::nothrow_t&) _THROW0();
   void *operator new(size_t, void *_P) _THROW0();
   void operator delete[](void *) _THROW0();
   void *operator new[](size_t) _THROW1(std::bad_alloc);
   void *operator new[](size_t, const std::nothrow_t&) _THROW0();
   void *operator new[](size_t, void *_P) _THROW0();
   void operator delete(void *_P, const std::nothrow_t&) _THROW0();
inline void operator delete(void *, void *) _THROW0() {}
  void operator delete[](void *_P, const std::nothrow_t&) _THROW0();
inline void operator delete[](void *, void *) _THROW0() {}
#else
   void operator delete(void *, const char*, size_t) _THROW0();
   void *operator new(size_t, const char*, size_t) _THROW1(std::bad_alloc);
   void *operator new(size_t, const char*, size_t , const std::nothrow_t&) _THROW0();
   void *operator new(size_t, const char*, size_t, void *_P) _THROW0();
   void operator delete[](void *, const char*, size_t) _THROW0();
   void *operator new[](size_t, const char*, size_t) _THROW1(std::bad_alloc);
   void *operator new[](size_t, const char*, size_t, const std::nothrow_t&) _THROW0();
   void *operator new[](size_t, const char*, size_t, void *_P) _THROW0();
   void operator delete(void *_P, const char *, size_t, const std::nothrow_t&) _THROW0();
inline void operator delete(void *, const char *, size_t, void *) _THROW0() {}
   void operator delete[](void *_P, const char *, size_t, const std::nothrow_t&) _THROW0();
inline void operator delete[](void *, const char *, size_t, void *) _THROW0() {}
#endif


#ifdef _CRTIMP
        using std::new_handler;
#endif

#pragma namemangling()

#pragma info(none)
#ifndef __CHKHDR__
#  pragma report(pop)
#endif
#pragma info(restore)

#endif /* _NEW_ */

/*
 * Copyright (c) 1994 by P.J. Plauger.  ALL RIGHTS RESERVED. 
 * Consult your license regarding permissions and restrictions.
 */
