stack_wrapper Struct Reference

#include <faststack.h>


Data Fields

stack_lvl_ttop
stack_lvl_tbottom
int height


Detailed Description

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.


Field Documentation

stack_lvl_t* bottom
 

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.

stack_lvl_t* top
 

The top of the stack. If this is NULL, the stack is empty.


Generated on Thu Oct 25 01:19:37 2007 for Small, Fast S-Expression Library by  doxygen 1.4.6