home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c082_122 / 2.ddi / RTLINSRC.ZIP / _HEAP.H < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-10  |  1.5 KB  |  45 lines

  1. /*------------------------------------------------------------------------
  2.  * filename - _HEAP.H
  3.  *      near heap variables and functions
  4.  *-----------------------------------------------------------------------*/
  5.  
  6. /*[]------------------------------------------------------------[]*/
  7. /*|                                                              |*/
  8. /*|     C/C++ Run Time Library - Version 4.0                     |*/
  9. /*|                                                              |*/
  10. /*|                                                              |*/
  11. /*|     Copyright (c) 1987, 1991 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 _FAR *__ap);
  34. void *cdecl realloc(void _FAR *__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.