25 #error ERROR: Use of C runtime library internal header file.
50 #define _malloc_crt malloc
51 #define _calloc_crt calloc
52 #define _realloc_crt realloc
53 #define _expand_crt _expand
54 #define _free_crt free
55 #define _msize_crt _msize
58 #define _malloc_base malloc
59 #define _nh_malloc_base _nh_malloc
60 #define _nh_malloc_dbg(s, n, t, f, l) _nh_malloc(s, n)
61 #define _heap_alloc_base _heap_alloc
62 #define _heap_alloc_dbg(s, t, f, l) _heap_alloc(s)
63 #define _calloc_base calloc
64 #define _realloc_base realloc
65 #define _expand_base _expand
66 #define _free_base free
67 #define _msize_base _msize
68 #define _aligned_malloc_base _aligned_malloc
69 #define _aligned_realloc_base _aligned_realloc
70 #define _aligned_offset_malloc_base _aligned_offset_malloc
71 #define _aligned_offset_realloc_base _aligned_offset_realloc
72 #define _aligned_free_base _aligned_free
76 #define _calloc_dbg_lk(c, s, t, f, l) _calloc_lk(c, s)
77 #define _realloc_dbg_lk(p, s, t, f, l) _realloc_lk(p, s)
78 #define _free_base_lk _free_lk
79 #define _free_dbg_lk(p, t) _free_lk(p)
83 #define _calloc_dbg_lk(c, s, t, f, l) calloc(c, s)
84 #define _realloc_dbg_lk(p, s, t, f, l) realloc(p, s)
85 #define _free_base_lk free
86 #define _free_dbg_lk(p, t) free(p)
102 #define _THISFILE __FILE__
106 #define _new_crt new(_CRT_BLOCK, _THISFILE, __LINE__)
110 #define _malloc_crt(s) _malloc_dbg(s, _CRT_BLOCK, _THISFILE, __LINE__)
111 #define _calloc_crt(c, s) _calloc_dbg(c, s, _CRT_BLOCK, _THISFILE, __LINE__)
112 #define _realloc_crt(p, s) _realloc_dbg(p, s, _CRT_BLOCK, _THISFILE, __LINE__)
113 #define _expand_crt(p, s) _expand_dbg(p, s, _CRT_BLOCK)
114 #define _free_crt(p) _free_dbg(p, _CRT_BLOCK)
115 #define _msize_crt(p) _msize_dbg(p, _CRT_BLOCK)
236 #define _calloc_dbg_lk _calloc_dbg
237 #define _realloc_dbg_lk _realloc_dbg
238 #define _free_base_lk _free_base
239 #define _free_dbg_lk _free_dbg
249 #define nNoMansLandSize 4
251 typedef struct _CrtMemBlockHeader
253 struct _CrtMemBlockHeader * pBlockHeaderNext;
254 struct _CrtMemBlockHeader * pBlockHeaderPrev;
269 unsigned char gap[nNoMansLandSize];
274 } _CrtMemBlockHeader;
276 #define pbData(pblock) ((unsigned char *)((_CrtMemBlockHeader *)pblock + 1))
277 #define pHdr(pbData) (((_CrtMemBlockHeader *)pbData)-1)
280 _CRTIMP
void __cdecl _CrtSetDbgBlockType(
285 #define _BLOCK_TYPE_IS_VALID(use) (_BLOCK_TYPE(use) == _CLIENT_BLOCK || \
286 (use) == _NORMAL_BLOCK || \
287 _BLOCK_TYPE(use) == _CRT_BLOCK || \
288 (use) == _IGNORE_BLOCK)
290 extern _CRT_ALLOC_HOOK _pfnAllocHook;
292 int __cdecl _CrtDefaultAllocHook(
298 const unsigned char *,