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

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