parrotcode: Header management functions | |
Contents | C |
src/headers.c - Header management functions
Handles getting of various headers, and pool creation.
get_free_buffer
Buffer
from pool
and returns it.
Memory is cleared.new_pmc_pool
new_bufferlike_pool
make_bufferlike_pool()
.new_buffer_pool
new_string_pool
STRINGS
and returns it.make_bufferlike_pool
get_bufferlike_pool
new_pmc_header
new_pmc_ext
PMC_EXT
and returns it.add_pmc_ext
PMC_EXT
to pmc
.add_pmc_sync
pmc
.new_string_header
STRING
header.new_buffer_header
Buffer
.new_bufferlike_header
get_max_buffer_address
get_min_buffer_address
get_max_pmc_address
get_min_pmc_address
is_buffer_ptr
ptr
is actually a Buffer
.is_pmc_ptr
ptr
is actually a PMC.Parrot_initialize_header_pools
Parrot_forall_header_pools
POOL_PMC
POOL_BUFFER
POOL_CONST
POOL_ALL
Interp*, Small_Object_Pool *, int flag, void *arg)
If the function returns a non-zero value iteration will stop.Parrot_destroy_header_pools
Parrot_merge_header_pools
source_interp
into those of dest_interp
. (Used to deal with shared objects left after interpreter destruction.)include/parrot/headers.h.
Initial version by Mike Lambert on 2002.05.27.
|