2003-04-04 21:37:57 +02:00
|
|
|
/*
|
|
|
|
* msvcrtd.dll debugging code
|
|
|
|
*
|
|
|
|
* Copyright (C) 2003 Adam Gundy
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
2006-05-18 14:49:52 +02:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
2003-04-04 21:37:57 +02:00
|
|
|
*/
|
|
|
|
|
2019-03-29 13:01:47 +01:00
|
|
|
#include "msvcrt.h"
|
2005-07-21 12:34:08 +02:00
|
|
|
|
2004-01-13 06:37:47 +01:00
|
|
|
int _crtAssertBusy = -1;
|
|
|
|
int _crtBreakAlloc = -1;
|
|
|
|
int _crtDbgFlag = 0;
|
|
|
|
|
2004-05-18 03:05:36 +02:00
|
|
|
|
2003-04-04 21:37:57 +02:00
|
|
|
/*********************************************************************
|
|
|
|
* _CrtSetDumpClient (MSVCRTD.@)
|
|
|
|
*/
|
2006-06-12 21:35:40 +02:00
|
|
|
void * CDECL _CrtSetDumpClient(void *dumpClient)
|
2003-04-04 21:37:57 +02:00
|
|
|
{
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*********************************************************************
|
|
|
|
* _CrtSetReportHook (MSVCRTD.@)
|
|
|
|
*/
|
2006-06-12 21:35:40 +02:00
|
|
|
void * CDECL _CrtSetReportHook(void *reportHook)
|
2003-04-04 21:37:57 +02:00
|
|
|
{
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*********************************************************************
|
|
|
|
* _CrtSetReportMode (MSVCRTD.@)
|
|
|
|
*/
|
2006-06-12 21:35:40 +02:00
|
|
|
int CDECL _CrtSetReportMode(int reportType, int reportMode)
|
2003-04-04 21:37:57 +02:00
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2004-01-13 06:37:47 +01:00
|
|
|
/*********************************************************************
|
|
|
|
* _CrtSetBreakAlloc (MSVCRTD.@)
|
|
|
|
*/
|
2006-06-12 21:35:40 +02:00
|
|
|
int CDECL _CrtSetBreakAlloc(int new)
|
2004-01-13 06:37:47 +01:00
|
|
|
{
|
|
|
|
int old = _crtBreakAlloc;
|
|
|
|
_crtBreakAlloc = new;
|
|
|
|
return old;
|
|
|
|
}
|
|
|
|
|
2003-04-04 21:37:57 +02:00
|
|
|
/*********************************************************************
|
|
|
|
* _CrtSetDbgFlag (MSVCRTD.@)
|
|
|
|
*/
|
2006-06-12 21:35:40 +02:00
|
|
|
int CDECL _CrtSetDbgFlag(int new)
|
2003-04-04 21:37:57 +02:00
|
|
|
{
|
2004-01-13 06:37:47 +01:00
|
|
|
int old = _crtDbgFlag;
|
|
|
|
_crtDbgFlag = new;
|
|
|
|
return old;
|
2003-04-04 21:37:57 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*********************************************************************
|
|
|
|
* _CrtDbgReport (MSVCRTD.@)
|
|
|
|
*/
|
2018-05-28 11:01:36 +02:00
|
|
|
int WINAPIV _CrtDbgReport(int reportType, const char *filename, int linenumber,
|
|
|
|
const char *moduleName, const char *format, ...)
|
2003-04-04 21:37:57 +02:00
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*********************************************************************
|
|
|
|
* _CrtDumpMemoryLeaks (MSVCRTD.@)
|
|
|
|
*/
|
2006-06-12 21:35:40 +02:00
|
|
|
int CDECL _CrtDumpMemoryLeaks(void)
|
2003-04-04 21:37:57 +02:00
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
2004-01-13 06:37:47 +01:00
|
|
|
|
2004-06-14 19:57:06 +02:00
|
|
|
/*********************************************************************
|
|
|
|
* _CrtCheckMemory (MSVCRTD.@)
|
|
|
|
*/
|
2006-06-12 21:35:40 +02:00
|
|
|
int CDECL _CrtCheckMemory(void)
|
2004-06-14 19:57:06 +02:00
|
|
|
{
|
|
|
|
/* Note: maybe we could call here our heap validating functions ? */
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2004-01-13 06:37:47 +01:00
|
|
|
/*********************************************************************
|
|
|
|
* __p__crtAssertBusy (MSVCRTD.@)
|
|
|
|
*/
|
2006-06-12 21:35:40 +02:00
|
|
|
int * CDECL __p__crtAssertBusy(void)
|
2004-01-13 06:37:47 +01:00
|
|
|
{
|
|
|
|
return &_crtAssertBusy;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*********************************************************************
|
|
|
|
* __p__crtBreakAlloc (MSVCRTD.@)
|
|
|
|
*/
|
2006-06-12 21:35:40 +02:00
|
|
|
int * CDECL __p__crtBreakAlloc(void)
|
2004-01-13 06:37:47 +01:00
|
|
|
{
|
|
|
|
return &_crtBreakAlloc;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*********************************************************************
|
|
|
|
* __p__crtDbgFlag (MSVCRTD.@)
|
|
|
|
*/
|
2006-06-12 21:35:40 +02:00
|
|
|
int * CDECL __p__crtDbgFlag(void)
|
2004-01-13 06:37:47 +01:00
|
|
|
{
|
|
|
|
return &_crtDbgFlag;
|
|
|
|
}
|