home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c221 / 6.ddi / MWHC.006 / M < prev    next >
Encoding:
Text File  |  1992-12-09  |  861 b   |  51 lines

  1. /*
  2.  *   malloc.h -- extra-ANSI 
  3.  *
  4.  *   Memory-allocation functions.
  5.  *
  6.  *           Copyright (c) 1990, MetaWare Incorporated
  7.  */
  8.  
  9. #ifndef _MALLOC_H
  10. #define _MALLOC_H
  11.  
  12. #ifdef __CPLUSPLUS__
  13. extern "C" {
  14. #endif
  15.  
  16. #ifndef _SIZE_T_DEFINED
  17. #   include "sizet.h"
  18. #endif
  19.  
  20.  
  21. #if _MSDOS
  22. extern void _ffree(void _Far *);
  23. extern void _nfree(_Near void *);
  24. extern void _Far *_fmalloc(size_t);
  25. extern void _Near *_nmalloc(size_t);
  26. #endif
  27.  
  28. #if __HIGHC__
  29.  
  30. #if _MSDOS
  31. /*
  32.  * This MUST be included for "alloca(n)" to work.
  33.  */
  34. #define alloca(n) _Alloca(n)
  35. #define _alloca(n) _Alloca(n)
  36.  
  37. extern _coreleft();
  38. extern _coretotal();
  39. #endif
  40.  
  41. extern void * calloc(size_t, size_t);
  42. extern void free(void *);
  43. extern void * malloc(size_t);
  44. extern void * realloc(void *, size_t);
  45.  
  46. #endif
  47. #ifdef __CPLUSPLUS__
  48. }
  49. #endif
  50. #endif /* _MALLOC_H */
  51.