home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Unix / CNews / Source / h / alloc.h next >
Encoding:
C/C++ Source or Header  |  1991-10-23  |  607 b   |  19 lines

  1. #ifndef ALLOC_H
  2. #define ALLOC_H
  3.  
  4. #ifndef notdef
  5. /* stdlib.h declares malloc, realloc */
  6. extern char *emalloc(), *nemalloc(), *strsave(), *str3save();
  7. #else                /* notdef */
  8. /* setup for UT debugging malloc */
  9. #define MALLOC_TRACE
  10. #define TRACE
  11. #include "malloc.h"        /* defines CSRIMALLOC */
  12. extern char *_nemalloc(), *_strsave(), *_str3save();
  13. #define nemalloc(x)        _nemalloc((x), __FILE__, __LINE__)
  14. #define strsave(x)        _strsave((x), __FILE__, __LINE__)    /* TODO: conflict with malloc.h; fix */
  15. #define str3save(x, y, z)    _str3save((x), y, z, __FILE__, __LINE__)
  16. #endif                /* notdef */
  17.  
  18. #endif                /* ALLOC_H */
  19.