Changeset 11066
- Timestamp:
- Jan 12, 2007, 8:26:41 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/libohana/include/ohana_allocate.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/libohana/include/ohana_allocate.h
r4300 r11066 23 23 if ((N) >= (S)) { S += D; \ 24 24 X = (T *) ohana_realloc(__FILE__, __LINE__, X, (S), sizeof(T)); } 25 # define FREE(X) if (X != NULL) { ohana_free (__FILE__, __LINE__, X); } 25 26 # define free(X) ohana_free(__FILE__, __LINE__, X) 26 27 … … 49 50 fprintf(stderr,"failed realloc increment at %d in %s\n", __LINE__, __FILE__);\ 50 51 exit (10); } } 52 # define FREE(X) if (X != NULL) { free (X); } 51 53 # endif /* ALLOCATE */ 52 54
Note:
See TracChangeset
for help on using the changeset viewer.
