mirror of https://github.com/lianthony/NT4.0
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.0 KiB
51 lines
1.0 KiB
/***
|
|
*new.hxx - declarations and definitions for C++ memory allocation functions
|
|
*
|
|
* Copyright (c) 1990-1991, Microsoft Corporation. All rights reserved.
|
|
*
|
|
*Purpose:
|
|
* Contains the function declarations for C++ memory allocation functions.
|
|
* [System V]
|
|
*
|
|
****/
|
|
|
|
#ifndef __INC_NEW
|
|
#define __INC_NEW
|
|
|
|
#if defined(_DLL) && !defined(_MT)
|
|
#error Cannot define _DLL without _MT
|
|
#endif
|
|
|
|
#ifdef _MT
|
|
#define _FAR_ __far
|
|
#else
|
|
#define _FAR_
|
|
#endif
|
|
|
|
|
|
/* constants for based heap routines */
|
|
|
|
#define _NULLSEG ((__segment)0)
|
|
#define _NULLOFF ((void __based(void) *)0xffff)
|
|
|
|
/* types and structures */
|
|
|
|
#ifndef _SIZE_T_DEFINED
|
|
typedef unsigned int size_t;
|
|
#define _SIZE_T_DEFINED
|
|
#endif
|
|
|
|
typedef int (__cdecl * PNH)( size_t );
|
|
typedef int (__cdecl * PNHH)( unsigned long, size_t );
|
|
typedef int (__cdecl * PNHB)( __segment, size_t );
|
|
|
|
/* function prototypes */
|
|
|
|
PNH _set_new_handler( PNH );
|
|
PNH setNewHandler( PNH );
|
|
PNH setNearNewHandler( PNH );
|
|
PNH setFarNewHandler( PNH );
|
|
PNHH setHugeNewHandler( PNHH );
|
|
PNHB setBasedNewHandler( PNHB );
|
|
|
|
#endif
|