home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / borhead.zip / MALLOC.H < prev    next >
C/C++ Source or Header  |  1994-11-09  |  2KB  |  97 lines

  1. /*  malloc.h
  2.  
  3.     memory management functions and variables.
  4.  
  5. */
  6.  
  7. /*
  8.  *      C/C++ Run Time Library - Version 1.5
  9.  *
  10.  *      Copyright (c) 1991, 1994 by Borland International
  11.  *      All Rights Reserved.
  12.  *
  13.  */
  14.  
  15. #ifndef __MALLOC_H
  16. #define __MALLOC_H
  17.  
  18. #include <alloc.h>
  19.  
  20. #ifdef __cplusplus
  21. extern "C" {
  22. #endif
  23.  
  24.  
  25. #if !defined(RC_INVOKED)
  26.  
  27. #if defined(__STDC__)
  28. #pragma warn -nak
  29. #endif
  30.  
  31. #endif  /* !RC_INVOKED */
  32.  
  33.  
  34. #ifndef _SIZE_T
  35.   #define _SIZE_T
  36.   typedef unsigned size_t;
  37. #endif
  38.  
  39. /* _HEAPINFO structure returned by heapwalk */
  40.  
  41.  
  42. #if !defined(RC_INVOKED)
  43. #pragma option -a-
  44. #endif
  45.  
  46.  
  47. typedef struct _heapinfo
  48. {
  49.     int     *_pentry;
  50.     size_t  _size;
  51.     int     _useflag;
  52. } _HEAPINFO;
  53.  
  54.  
  55. #if !defined(RC_INVOKED)
  56. #pragma option -a.
  57. #endif
  58.  
  59.  
  60.  
  61.  
  62.  
  63. /* Prototypes */
  64.  
  65. void *      __cdecl   _EXPFUNC alloca( size_t __size );
  66. void *      __cdecl            __alloca__ (size_t __size);
  67.  
  68. size_t      _RTLENTRY _EXPFUNC stackavail  (void);
  69. int         _RTLENTRY _EXPFUNC _heapadd    (void * __block, size_t __size);
  70. int         _RTLENTRY _EXPFUNC _heapchk    (void);
  71. int         _RTLENTRY _EXPFUNC _heapmin    (void);
  72. int         _RTLENTRY _EXPFUNC _heapset    (unsigned int __fill);
  73. int         _RTLENTRY _EXPFUNC _heapwalk   (_HEAPINFO *__entry);
  74. int         _RTLENTRY _EXPFUNC _rtl_heapwalk (_HEAPINFO *__entry);
  75. void *      _RTLENTRY _EXPFUNC _expand     (void * __block, size_t __size);
  76. size_t      _RTLENTRY _EXPFUNC _msize      (void * __block );
  77.  
  78.  
  79.  
  80. #ifdef __cplusplus
  81. }
  82. #endif
  83.  
  84. /* Obsolete functions */
  85.  
  86.  
  87. #if !defined(RC_INVOKED)
  88.  
  89. #if defined(__STDC__)
  90. #pragma warn .nak
  91. #endif
  92.  
  93. #endif  /* !RC_INVOKED */
  94.  
  95.  
  96. #endif  /* __MALLOC_H */
  97.