heaph.inc 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. Procedure release(var p : pointer);
  12. Procedure mark(var p : pointer);
  13. Procedure markheap(var oldfreelist,oldheapptr : pointer);
  14. Procedure releaseheap(oldfreelist,oldheapptr : pointer);
  15. Function cal_memavail : longint;
  16. Function heapsize : longint;
  17. {$ifdef TEMPHEAP}
  18. Procedure split_heap;
  19. Procedure switch_to_base_heap;
  20. Procedure switch_to_temp_heap;
  21. Procedure switch_heap;
  22. Procedure releasetempheap;
  23. Procedure gettempmem(var p : pointer;size : longint);
  24. {$endif TEMPHEAP}
  25. const
  26. allow_special : boolean =true;
  27. heapblocks : boolean=false;
  28. var
  29. heaporg,heapptr,heapend,heaperror,freelist : pointer;
  30. {
  31. $Log$
  32. Revision 1.5 1998-07-02 14:11:30 michael
  33. Reinstated the heapsize function.
  34. Revision 1.3 1998/05/12 10:42:45 peter
  35. * moved getopts to inc/, all supported OS's need argc,argv exported
  36. + strpas, strlen are now exported in the systemunit
  37. * removed logs
  38. * removed $ifdef ver_above
  39. Revision 1.2 1998/04/21 10:23:15 peter
  40. + heapblocks
  41. }