2 * msvcrtd.dll debugging code
4 * Copyright (C) 2003 Adam Gundy
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 #include "wine/debug.h"
28 int _crtAssertBusy
= -1;
29 int _crtBreakAlloc
= -1;
33 typedef unsigned __int64 MSVCRT_size_t
;
35 typedef unsigned long MSVCRT_size_t
;
38 extern int _callnewh(MSVCRT_size_t
);
40 /*********************************************************************
41 * _CrtSetDumpClient (MSVCRTD.@)
43 void * CDECL
_CrtSetDumpClient(void *dumpClient
)
49 /*********************************************************************
50 * _CrtSetReportHook (MSVCRTD.@)
52 void * CDECL
_CrtSetReportHook(void *reportHook
)
58 /*********************************************************************
59 * _CrtSetReportMode (MSVCRTD.@)
61 int CDECL
_CrtSetReportMode(int reportType
, int reportMode
)
67 /*********************************************************************
68 * _CrtSetBreakAlloc (MSVCRTD.@)
70 int CDECL
_CrtSetBreakAlloc(int new)
72 int old
= _crtBreakAlloc
;
77 /*********************************************************************
78 * _CrtSetDbgFlag (MSVCRTD.@)
80 int CDECL
_CrtSetDbgFlag(int new)
82 int old
= _crtDbgFlag
;
88 /*********************************************************************
89 * _CrtDbgReport (MSVCRTD.@)
91 int CDECL
_CrtDbgReport(int reportType
, const char *filename
, int linenumber
,
92 const char *moduleName
, const char *format
, ...)
97 /*********************************************************************
98 * _CrtDumpMemoryLeaks (MSVCRTD.@)
100 int CDECL
_CrtDumpMemoryLeaks(void)
105 /*********************************************************************
106 * _CrtCheckMemory (MSVCRTD.@)
108 int CDECL
_CrtCheckMemory(void)
110 /* Note: maybe we could call here our heap validating functions ? */
115 /*********************************************************************
116 * __p__crtAssertBusy (MSVCRTD.@)
118 int * CDECL
__p__crtAssertBusy(void)
120 return &_crtAssertBusy
;
123 /*********************************************************************
124 * __p__crtBreakAlloc (MSVCRTD.@)
126 int * CDECL
__p__crtBreakAlloc(void)
128 return &_crtBreakAlloc
;
131 /*********************************************************************
132 * __p__crtDbgFlag (MSVCRTD.@)
134 int * CDECL
__p__crtDbgFlag(void)