DBG: removed some useless functions
This commit is contained in:
parent
5a78857ab8
commit
52512b8af5
|
@ -5,21 +5,6 @@ HINSTANCE hInst;
|
||||||
char dbbasepath[deflen] = "";
|
char dbbasepath[deflen] = "";
|
||||||
char dbpath[3 * deflen] = "";
|
char dbpath[3 * deflen] = "";
|
||||||
|
|
||||||
void* emalloc(size_t size)
|
|
||||||
{
|
|
||||||
return emalloc(size, "emalloc:???");
|
|
||||||
}
|
|
||||||
|
|
||||||
void* erealloc(void* ptr, size_t size)
|
|
||||||
{
|
|
||||||
return erealloc(ptr, size, "erealloc:???");
|
|
||||||
}
|
|
||||||
|
|
||||||
void efree(void* ptr)
|
|
||||||
{
|
|
||||||
efree(ptr, "efree:???");
|
|
||||||
}
|
|
||||||
|
|
||||||
static int emalloc_count = 0;
|
static int emalloc_count = 0;
|
||||||
static char alloctrace[MAX_PATH] = "";
|
static char alloctrace[MAX_PATH] = "";
|
||||||
|
|
||||||
|
|
|
@ -107,12 +107,9 @@ extern char dbbasepath[deflen];
|
||||||
extern char dbpath[3 * deflen];
|
extern char dbpath[3 * deflen];
|
||||||
|
|
||||||
//functions
|
//functions
|
||||||
void* emalloc(size_t size);
|
void* emalloc(size_t size, const char* reason = "emalloc:???");
|
||||||
void* erealloc(void* ptr, size_t size);
|
void* erealloc(void* ptr, size_t size, const char* reason = "erealloc:???");
|
||||||
void efree(void* ptr);
|
void efree(void* ptr, const char* reason = "efree:???");
|
||||||
void* emalloc(size_t size, const char* reason);
|
|
||||||
void* erealloc(void* ptr, size_t size, const char* reason);
|
|
||||||
void efree(void* ptr, const char* reason);
|
|
||||||
int memleaks();
|
int memleaks();
|
||||||
void setalloctrace(const char* file);
|
void setalloctrace(const char* file);
|
||||||
bool arraycontains(const char* cmd_list, const char* cmd);
|
bool arraycontains(const char* cmd_list, const char* cmd);
|
||||||
|
|
Loading…
Reference in New Issue