qp.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Mark Procedure
  Summary Details Example                                   Back
 
  Argument
 
    heap_mark    Pointer of any type, usually untyped
 
  Description
 
    The Mark procedure sets a pointer to the address of the current top
    of the heap. Use the value returned by Mark in a later call to the
    Release procedure.
 
    The heap_mark argument is a pointer of any type, usually untyped.
    Mark stores the current value of HeapPtr in heap_mark. HeapPtr,
    defined in the System unit, always points to the top of the heap.
 
    Release frees memory from heap_mark to the current top of the heap
    and clears the free list.
 
    Allocation causes the top of the heap to grow upward (toward FFFF)
    from the bottom of the heap segment. Deallocation may lower the top
    of the heap or may leave a free block in the heap.