<< Previous | Next >> | |
|
xmem void pxfree_fast( Pool_t * p, long e );
Description
- Free an element that was previously obtained via
pxalloc()
. This is an assembler-only version ofpxfree()
.
- *** Do _not_ call this function from C. ***
pxfree_fast
does not perform any IPSET protection or parameter validation.pxfree_fast
is an xmem function. The parameters must be passed in machine registers.
- Registers
- Parameters in IX, BCDE respectively
Trashes AF, BC, DE, HL
- Example
ld ix,my_pool
ld de,(element_addr)
ld bc,(element_addr+2)
lcall pxfree_fastParameters
- p
- Pool handle structure, as previously passed to palloc() or palloc_fast. This must be in the IX register.
- e
- Element to free, which was returned from
palloc()
. This must be in the BCDE register (physical address)
Return value
null
: There are no more elements
!null
: Pointer to previous allocated elementLibrary
- POOL.LIB
See Also
- pool_init, pxalloc_fast, pavail_fast, pfree_fast
Dynamic C Functions | << Previous | Next >> | rabbit.com |