71 #define __FUNC__ "Mem_dhCreate"
89 #define __FUNC__ "Mem_dhDestroy"
104 #define __FUNC__ "Mem_dhMalloc"
118 "PRIVATE_MALLOC failed; totalMem = %g; requested additional = %i",
131 tmp->
size = (double) s;
142 #define __FUNC__ "Mem_dhFree"
147 char *tmp = (
char *) ptr;
161 #define __FUNC__ "Mem_dhPrint"
170 fprintf (fp,
"---------------------- Euclid memory report (start)\n");
171 fprintf (fp,
"malloc calls = %g\n", m->
mallocCount);
172 fprintf (fp,
"free calls = %g\n", m->
freeCount);
173 fprintf (fp,
"curMem = %g Mbytes (should be zero)\n",
176 fprintf (fp,
"total allocated = %g Mbytes\n", tmp);
178 "max malloc = %g Mbytes (max allocated at any point in time)\n",
181 fprintf (fp,
"---------------------- Euclid memory report (end)\n");
void Mem_dhDestroy(Mem_dh m)
#define SET_ERROR(retval, msg)
bool Parser_dhHasSwitch(Parser_dh p, char *s)
void * Mem_dhMalloc(Mem_dh m, size_t size)
#define END_FUNC_VAL_2(retval)
void Mem_dhCreate(Mem_dh *m)
void Mem_dhFree(Mem_dh m, void *ptr)
void Mem_dhPrint(Mem_dh m, FILE *fp, bool allPrint)
char msgBuf_dh[MSG_BUF_SIZE_DH]