Leaked source code of windows server 2003
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.
 
 
 
 
 
 

38 lines
1.3 KiB

/***
*delete2.cpp - defines C++ vector delete routine
*
* Copyright (c) 1990-2001, Microsoft Corporation. All rights reserved.
*
*Purpose:
* Defines C++ delete routine.
*
*Revision History:
* 05-07-90 WAJ Initial version.
* 08-30-90 WAJ new now takes unsigned ints.
* 08-08-91 JCR call _halloc/_hfree, not halloc/hfree
* 08-13-91 KRS Change new.hxx to new.h. Fix copyright.
* 08-13-91 JCR ANSI-compatible _set_new_handler names
* 10-30-91 JCR Split new, delete, and handler into seperate sources
* 11-13-91 JCR 32-bit version
* 11-13-95 CFW Not in debug libs.
* 05-22-98 JWM Support for KFrei's RTC work, and operator delete[].
* 07-28-98 JWM RTC update.
* 03-15-99 KBF RTC update (RTCALLBACK requires some windows defs)
* 05-26-99 KBF Updated RTC hook func params
* 10-21-99 PML Split from delete.cpp to fix mult defs and enable
* for both _DEBUG and non-debug (vs7#53440)
*
*******************************************************************************/
#include <cruntime.h>
#include <malloc.h>
#include <new.h>
#include <windows.h>
#include <rtcsup.h>
void operator delete[]( void * p )
{
RTCCALLBACK(_RTC_Free_hook, (p, 0))
operator delete(p);
}