parrotcode: Common stack handling routines for Parrot | |
Contents | C |
src/stack_common.c - Common stack handling routines for Parrot
Both the register stacks and stacks implemented in src/stacks.c have a common functionality, which is implemented in this file.
These stacks all differ only in the size of items.
void stack_system_init(Interp *interpreter)
make_interpreter()
to initialize the interpreter's register stacks.Stack_Chunk_t *register_new_stack(Interp *interpreter, const char *name, size_t item_size)
stack->name
is used for debugging/error reporting.Stack_Chunk_t *cst_new_stack_chunk(Interp *interpreter, const Stack_Chunk_t *chunk)
void *stack_prepare_push(Parrot_Interp interpreter, Stack_Chunk_t **stack_p)
void *stack_prepare_pop(Parrot_Interp interpreter, Stack_Chunk_t **stack_p)
include/parrot/stacks.h, src/stacks.c, src/registers.c
|