Small, Fast S-Expression Library
|
#include <faststack.h>
Data Fields | |
stack_lvl_t * | top |
stack_lvl_t * | bottom |
int | height |
Wrapper around the stack levels - keeps a pointer to the current top and bottom of the stack and a count of the current height. This allows the top to have non-null above pointer resulting from previously allocated stack levels that may be recycled later without malloc
overhead.
The bottom of the stack. If this is NULL, the stack is empty.
int height |
The current height of the stack, in terms of allocated and used levels.
The top of the stack. If this is NULL, the stack is empty.