home *** CD-ROM | disk | FTP | other *** search
/ Unix System Administration Handbook 1997 October / usah_oct97.iso / news / cnews.tar / include / alloc.h next >
C/C++ Source or Header  |  1992-12-04  |  604b  |  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.