tnyheaph.inc 902 B

12345678910111213141516171819202122232425
  1. {
  2. This file is part of the Free Pascal run time library.
  3. Copyright (c) 2014 by the Free Pascal development team.
  4. Tiny heap manager for the i8086 near heap, embedded targets, etc.
  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. { these vars are TP7-compatible }
  13. HeapOrg: Pointer = nil; { start of heap }
  14. HeapEnd: Pointer = nil; { end of heap }
  15. FreeList: Pointer = nil; { pointer to the first free block }
  16. HeapPtr: Pointer = nil; { pointer to the last free block }
  17. function MemAvail: PtrUInt;
  18. function MaxAvail: PtrUInt;