void * sld_stack_peek(struct sld_stack *stack)
Returns the object at the top of a sld_stack.
Definition: stack.c:117
sld_stack_type
Definition: stack.h:42
signed short int SLD_SSINT
Definition: types.h:47
SLD_UINT size
Definition: stack.h:48
struct sld_vector * vector
Definition: stack.h:50
SLD_SSINT sld_stack_init(struct sld_stack *stack, sld_stack_type stack_type)
Initializes a sld_stack.
Definition: stack.c:33
unsigned int SLD_UINT
Definition: types.h:56
SLD_SSINT sld_stack_push(struct sld_stack *stack, void *object)
Adds an object to the top of a sld_stack.
Definition: stack.c:85
struct sld_stack sld_stack
void * sld_stack_pop(struct sld_stack *stack)
Returns and removes the object at the top of a sld_stack.
Definition: stack.c:101
SLD_UINT sld_stack_size(struct sld_stack *stack)
Returns the size of a sld_stack.
Definition: stack.c:80
void sld_stack_free(struct sld_stack *stack)
Frees any memory allocated for an initialized sld_stack.
Definition: stack.c:130
struct sld_list * list
Definition: stack.h:49
sld_stack_type stack_type
Definition: stack.h:47