home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_disks / 400-499 / ff473.lzh / CNewsSrc / cnews_src.lzh / include / alloc.h next >
C/C++ Source or Header  |  1990-12-22  |  742b  |  26 lines

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