1
0
Fork 0

DBG: removed some useless functions

This commit is contained in:
Mr. eXoDia 2014-12-09 11:02:14 +01:00
parent 5a78857ab8
commit 52512b8af5
2 changed files with 3 additions and 21 deletions

View File

@ -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] = "";

View File

@ -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);