heaph.inc 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. {
  2. $Id$
  3. This file is part of the Free Pascal run time library.
  4. Copyright (c) 1993,97 by the Free Pascal development team
  5. See the file COPYING.FPC, included in this distribution,
  6. for details about the copyright.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  10. **********************************************************************}
  11. var
  12. heaporg,heapptr,heapend,heaperror,freelist : pointer;
  13. procedure release(var p : pointer);
  14. procedure mark(var p : pointer);
  15. procedure markheap(var oldfreelist,oldheapptr : pointer);
  16. procedure releaseheap(oldfreelist,oldheapptr : pointer);
  17. function cal_memavail : longint;
  18. function heapsize : longint;
  19. {$ifdef TEMPHEAP}
  20. procedure split_heap;
  21. procedure switch_to_base_heap;
  22. procedure switch_to_temp_heap;
  23. procedure switch_heap;
  24. procedure releasetempheap;
  25. procedure gettempmem(var p : pointer;size : longint);
  26. {$endif TEMPHEAP}
  27. const
  28. allow_special : boolean =true;
  29. {
  30. $Log$
  31. Revision 1.1 1998-03-25 11:18:43 root
  32. Initial revision
  33. Revision 1.3 1998/01/26 11:59:33 michael
  34. + Added log at the end
  35. Working file: rtl/inc/heaph.inc
  36. description:
  37. ----------------------------
  38. revision 1.2
  39. date: 1997/12/01 12:08:03; author: michael; state: Exp; lines: +11 -3
  40. + added copyright reference header.
  41. ----------------------------
  42. revision 1.1
  43. date: 1997/11/27 08:33:46; author: michael; state: Exp;
  44. Initial revision
  45. ----------------------------
  46. revision 1.1.1.1
  47. date: 1997/11/27 08:33:46; author: michael; state: Exp; lines: +0 -0
  48. FPC RTL CVS start
  49. =============================================================================
  50. }