Salad
1.0.15
|
#include <stack.h>
Data Fields | |
sld_stack_type | stack_type |
SLD_UINT | size |
struct sld_list * | list |
struct sld_vector * | vector |
Related Functions | |
SLD_SSINT | sld_stack_init (struct sld_stack *stack, sld_stack_type stack_type) |
Initializes a sld_stack. More... | |
SLD_UINT | sld_stack_size (struct sld_stack *stack) |
Returns the size of a sld_stack. More... | |
SLD_SSINT | sld_stack_push (struct sld_stack *stack, void *object) |
Adds an object to the top of a sld_stack. More... | |
void * | sld_stack_pop (struct sld_stack *stack) |
Returns and removes the object at the top of a sld_stack. More... | |
void * | sld_stack_peek (struct sld_stack *stack) |
Returns the object at the top of a sld_stack. More... | |
void | sld_stack_free (struct sld_stack *stack) |
Frees any memory allocated for an initialized sld_stack. More... | |
sld_stack_type sld_stack::stack_type |
can exist in a resizeable array or a linked list
struct sld_vector* sld_stack::vector |
a sld_vector containing contiguous data