Changeset 38409
- Timestamp:
- Jun 6, 2015, 2:24:41 PM (11 years ago)
- Location:
- branches/eam_branches/ohana.20150429/src/libohana
- Files:
-
- 2 edited
-
include/ohana_allocate.h (modified) (2 diffs)
-
src/ohana_allocate.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ohana.20150429/src/libohana/include/ohana_allocate.h
r33646 r38409 26 26 void ohana_free (const char *file, int line, const char *func, void *in); 27 27 void ohana_memdump_func (int mode); 28 voidohana_memcheck_func (int mode);28 int ohana_memcheck_func (int mode); 29 29 void real_free (void *in); 30 30 … … 56 56 # else /* below: not OHANA_MEMORY */ 57 57 58 # define ohana_memcheck(X) /* NOP */58 # define ohana_memcheck(X) TRUE 59 59 # define ohana_memdump(X) /* NOP */ 60 60 void real_free (void *in); -
branches/eam_branches/ohana.20150429/src/libohana/src/ohana_allocate.c
r37807 r38409 207 207 } 208 208 209 voidohana_memcheck_func (int allmemory) {209 int ohana_memcheck_func (int allmemory) { 210 210 211 211 if (!lastBlock) { 212 212 fprintf (stderr, "no memory allocated\n"); 213 return ;213 return TRUE; 214 214 } 215 215 … … 253 253 fprintf (stderr, "%zd memory blocks allocated (%zd bytes total), %zd good, %zd bad\n", Ntotal, Nbytes, Ngood, Nbad); 254 254 255 return; 255 if (Nbad) return FALSE; 256 return TRUE; 256 257 } 257 258
Note:
See TracChangeset
for help on using the changeset viewer.
