home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c031 / 4.ddi / INCLUDE / NEW.H$ / NEW
Encoding:
Text File  |  1991-12-03  |  907 b   |  40 lines

  1. /***
  2. *new.h - declarations and definitions for C++ memory allocation functions
  3. *
  4. *    Copyright (c) 1990-1992, Microsoft Corporation.  All rights reserved.
  5. *
  6. *Purpose:
  7. *    Contains the function declarations for C++ memory allocation functions.
  8. *
  9. ****/
  10.  
  11. #ifndef __INC_NEW
  12. #define __INC_NEW
  13.  
  14.  
  15. /* constants for based heap routines */
  16.  
  17. #define _NULLSEG    ((__segment)0)
  18. #define _NULLOFF    ((void __based(void) *)0xffff)
  19.  
  20. /* types and structures */
  21.  
  22. #ifndef _SIZE_T_DEFINED
  23. typedef unsigned int size_t;
  24. #define _SIZE_T_DEFINED
  25. #endif
  26.  
  27. typedef int (__cdecl * _PNH)( size_t );
  28. typedef int (__cdecl * _PNHH)( unsigned long, size_t );
  29. typedef int (__cdecl * _PNHB)( __segment, size_t );
  30.  
  31. /* function prototypes */
  32.  
  33. _PNH _set_new_handler( _PNH );
  34. _PNH _set_nnew_handler( _PNH );
  35. _PNH _set_fnew_handler( _PNH );
  36. _PNHH _set_hnew_handler( _PNHH );
  37. _PNHB _set_bnew_handler( _PNHB );
  38.  
  39. #endif
  40.