home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c065 / 1.ddi / INCLUDE.ZIP / _HEAP.H < prev    next >
Encoding:
C/C++ Source or Header  |  1990-06-07  |  1.4 KB  |  45 lines

  1. /*------------------------------------------------------------------------
  2.  * filename - _HEAP.H
  3.  *
  4.  *-----------------------------------------------------------------------*/
  5.  
  6. /*[]------------------------------------------------------------[]*/
  7. /*|                                                              |*/
  8. /*|     Turbo C Run Time Library - Version 3.0                   |*/
  9. /*|                                                              |*/
  10. /*|                                                              |*/
  11. /*|     Copyright (c) 1987, 1990 by Borland International        |*/
  12. /*|     All Rights Reserved.                                     |*/
  13. /*|                                                              |*/
  14. /*[]------------------------------------------------------------[]*/
  15.  
  16. #define MARGIN  512
  17.  
  18.         /* Near Heap Variables */
  19.  
  20. extern  unsigned         __brklvl;
  21.  
  22.         /* Near Heap Functions */
  23.  
  24. #ifndef _SIZE_T
  25. #define _SIZE_T
  26. typedef unsigned size_t;
  27. #endif
  28.  
  29. #ifdef __cplusplus
  30. extern "C" {
  31. #endif
  32. void    *cdecl        malloc(size_t __nbytes);
  33. void    cdecl        free(void *__ap);
  34. void    *cdecl        realloc(void *__ptr, size_t __size);
  35. #if defined(__LARGE__) || defined(__HUGE__) || defined(__COMPACT__)
  36. unsigned long cdecl    coreleft(void);
  37. #else
  38. unsigned cdecl        coreleft(void);
  39. #endif
  40. int     cdecl near    __brk(void *__addr);
  41. void    *cdecl near    __sbrk(long __incr);
  42. #ifdef __cplusplus
  43. }
  44. #endif
  45.