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