heaph.inc 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. const
  12. heapblocks : boolean=false;
  13. var
  14. heaporg,heapptr,heapend,heaperror,freelist : pointer;
  15. procedure release(var p : pointer);
  16. procedure mark(var p : pointer);
  17. procedure markheap(var oldfreelist,oldheapptr : pointer);
  18. procedure releaseheap(oldfreelist,oldheapptr : pointer);
  19. function cal_memavail : longint;
  20. function heapsize : longint;
  21. {$ifdef TEMPHEAP}
  22. procedure split_heap;
  23. procedure switch_to_base_heap;
  24. procedure switch_to_temp_heap;
  25. procedure switch_heap;
  26. procedure releasetempheap;
  27. procedure gettempmem(var p : pointer;size : longint);
  28. {$endif TEMPHEAP}
  29. const
  30. allow_special : boolean =true;
  31. {
  32. $Log$
  33. Revision 1.2 1998-04-21 10:23:15 peter
  34. + heapblocks
  35. Revision 1.1.1.1 1998/03/25 11:18:43 root
  36. * Restored version
  37. Revision 1.3 1998/01/26 11:59:33 michael
  38. + Added log at the end
  39. Working file: rtl/inc/heaph.inc
  40. description:
  41. ----------------------------
  42. revision 1.2
  43. date: 1997/12/01 12:08:03; author: michael; state: Exp; lines: +11 -3
  44. + added copyright reference header.
  45. ----------------------------
  46. revision 1.1
  47. date: 1997/11/27 08:33:46; author: michael; state: Exp;
  48. Initial revision
  49. ----------------------------
  50. revision 1.1.1.1
  51. date: 1997/11/27 08:33:46; author: michael; state: Exp; lines: +0 -0
  52. FPC RTL CVS start
  53. =============================================================================
  54. }