stdio_free.asm
bitfixer_bitfixer/dg/z88dk/libsrc/stdio_new/general/stdio_free.asm
; stdio_free
; 06.2008 aralbrec

PUBLIC stdio_free

EXTERN HeapFree_callee
EXTERN ASMDISP_HEAPFREE_CALLEE, _stdio_heap

; Stdio file objects are allocated from the stdio heap
; (_stdio_heap) which may or may not be the same heap used
; by the regular malloc call.  This is an opportunity
; for systems to locate stdio objects in its own memory
; page.

.stdio_free

   ; enter : hl = block to be freed
   ; uses  : af, bc, de, hl
   
   ld de,_stdio_heap
   jp HeapFree_callee + ASMDISP_HEAPFREE_CALLEE
