home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / cset21v1.zip / IBMCPP / INCLUDE / NEW.H < prev    next >
Text File  |  1993-09-17  |  2KB  |  44 lines

  1. #ifndef __new_h
  2.    #define __new_h
  3.  
  4.    /********************************************************************/
  5.    /*  <new.h> header file                                             */
  6.    /*                                                                  */
  7.    /*  Licensed Materials - Property of IBM                            */
  8.    /*                                                                  */
  9.    /*  IBM C/C++ Tools Version 2.01                                    */
  10.    /*  Copyright (C) International Business Machines Corp., 1992, 1993 */
  11.    /*  All rights reserved                                             */
  12.    /*                                                                  */
  13.    /*  US Government Users Restricted Rights -                         */
  14.    /*  Use, duplication, or disclosure restricted                      */
  15.    /*  by GSA ADP Schedule Contract with IBM Corp.                     */
  16.    /*                                                                  */
  17.    /********************************************************************/
  18.    #include <stddef.h>
  19.  
  20.    // Definition of C++ storage management -- new & delete
  21.  
  22.    void (*set_new_handler (void(*)()))();
  23.    #ifdef __MULTI__
  24.       void (*_set_mt_new_handler (void(*)()))();
  25.    #endif
  26.  
  27.    // The standard favourites
  28.  
  29.    #ifndef __DEBUG_ALLOC__
  30.       void *operator new(size_t);
  31.       void operator delete(void *);
  32.  
  33.       void *operator new(size_t, void *);
  34.    #else
  35.       #include <stdlib.h>
  36.  
  37.       void * operator new(size_t, const char*, size_t);
  38.       void operator delete(void *, const char*, size_t);
  39.  
  40.       void *operator new(size_t, const char*, size_t, void *);
  41.    #endif
  42.  
  43. #endif
  44.