|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 *interp)
make_interpreter()to initialize the interpreter's register stacks.
Stack_Chunk_t *register_new_stack(Interp *interp, const char *name, size_t item_size)
stack->nameis used for debugging/error reporting.
Stack_Chunk_t *cst_new_stack_chunk(Interp *interp, const Stack_Chunk_t *chunk)
void *stack_prepare_push(Parrot_Interp interp, Stack_Chunk_t **stack_p)
void *stack_prepare_pop(Parrot_Interp interp, Stack_Chunk_t **stack_p)
include/parrot/stacks.h, src/stacks.c, src/registers.c