62 #define qhmem_ERRmem 4 63 #define qhmem_ERRqhull 5 81 #if (defined(__MINGW64__)) && defined(_WIN64) 83 #elif (_MSC_VER) && defined(_WIN64) 161 #define qh_memalloc_(insize, freelistp, object, type) {\ 162 object= (type*)qh_memalloc(insize); } 163 #elif defined qh_TRACEshort 164 #define qh_memalloc_(insize, freelistp, object, type) {\ 166 object= (type*)qh_memalloc(insize); } 169 #define qh_memalloc_(insize, freelistp, object, type) {\ 170 freelistp= qhmem.freelists + qhmem.indextable[insize];\ 171 if ((object= (type*)*freelistp)) {\ 172 qhmem.totshort += qhmem.sizetable[qhmem.indextable[insize]]; \ 173 qhmem.totfree -= qhmem.sizetable[qhmem.indextable[insize]]; \ 175 *freelistp= *((void **)*freelistp);\ 176 }else object= (type*)qh_memalloc(insize);} 190 #define qh_memfree_(object, insize, freelistp) {\ 191 qh_memfree(object, insize); } 192 #elif defined qh_TRACEshort 193 #define qh_memfree_(object, insize, freelistp) {\ 195 qh_memfree(object, insize); } 198 #define qh_memfree_(object, insize, freelistp) {\ 201 freelistp= qhmem.freelists + qhmem.indextable[insize];\ 202 qhmem.totshort -= qhmem.sizetable[qhmem.indextable[insize]]; \ 203 qhmem.totfree += qhmem.sizetable[qhmem.indextable[insize]]; \ 204 *((void **)object)= *freelistp;\ 205 *freelistp= object;}} 216 int bufsize,
int bufinit);
void qh_meminitbuffers(int tracelevel, int alignment, int numsizes, int bufsize, int bufinit)
void qh_memfree(void *object, int insize)
void qh_meminit(FILE *ferr)
void qh_memsize(int size)
void qh_memfreeshort(int *curlong, int *totlong)
void qh_memtotal(int *totlong, int *curlong, int *totshort, int *curshort, int *maxlong, int *totbuffer)
void qh_memstatistics(FILE *fp)
void * qh_memalloc(int insize)