heaph.inc 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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.3 1998-05-12 10:42:45 peter
  33. * moved getopts to inc/, all supported OS's need argc,argv exported
  34. + strpas, strlen are now exported in the systemunit
  35. * removed logs
  36. * removed $ifdef ver_above
  37. Revision 1.2 1998/04/21 10:23:15 peter
  38. + heapblocks
  39. }