21 #ifndef __CCL_STACK_H__
22 # define __CCL_STACK_H__
67 # define ccl_stack_is_empty(_s) (ccl_stack_get_size (_s) == 0)
struct ccl_stack_st ccl_stack
Abstract type of a stack.
void ccl_stack_push(ccl_stack *s, void *obj)
Put the object obj on the stack s.
int ccl_stack_get_size(const ccl_stack *s)
Returns the number of elements on the stack s.
Some useful and common macros.
void ccl_stack_delete(ccl_stack *s)
Deletion of the stack s.
void * ccl_stack_get_top(ccl_stack *s)
Returns the object at the top of the stack.
ccl_stack * ccl_stack_create(void)
Creates a new empty stack.