| parrotcode: Header management functions | |
| Contents | C |

src/headers.c - Header management functions

Handles getting of various headers, and pool creation.

static void *get_free_bufferBuffer from pool and returns it.
Memory is cleared.
Small_Object_Pool *new_pmc_poolSmall_Object_Pool *new_bufferlike_poolmake_bufferlike_pool().Small_Object_Pool *new_buffer_poolSmall_Object_Pool *new_string_poolSTRINGS and returns it.Small_Object_Pool *make_bufferlike_poolSmall_Object_Pool *get_bufferlike_poolPMC *new_pmc_headerstatic PMC_EXT *new_pmc_extPMC_EXT and returns it.void add_pmc_extPMC_EXT to pmc.void add_pmc_syncpmc.STRING *new_string_headerSTRING header.Buffer *new_buffer_headerBuffer.void *new_bufferlike_headersize_t get_max_buffer_addresssize_t get_min_buffer_addresssize_t get_max_pmc_addresssize_t get_min_pmc_addressint is_buffer_ptrptr is actually a Buffer.int is_pmc_ptrptr is actually a PMC.void Parrot_initialize_header_poolsint 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.static void free_poolstatic int sweep_cb_bufstatic int sweep_cb_pmcvoid Parrot_destroy_header_poolsstatic void fix_pmc_syncsvoid Parrot_merge_header_poolssource_interp into those of dest_interp. (Used to deal with shared objects left after interpreter destruction.)void Parrot_initialize_header_pool_names
include/parrot/headers.h.

Initial version by Mike Lambert on 2002.05.27.
|
|
|