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

View File

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