Small, Fast S-Expression Library
Data Fields
stack_level Struct Reference

#include <faststack.h>

Data Fields

struct stack_levelabove
struct stack_levelbelow
void * data

Detailed Description

Structure representing a single level in the stack. Has a pointer to the level above and below itself and a pointer to a generic blob of data associated with this level.


Field Documentation

struct stack_level* above

Pointer to the level above this one. If NULL, then this level is the top of the stack. If above is non-NULL, this level *may* be the top, but all that can be guaranteed is that there are other allocated but potentially unused levels above this one.

struct stack_level* below

Pointer to the level below this one. If NULL, then this level is the bottom.

void* data

Pointer to some data associated with this level. User is responsible for knowing what to cast the void * pointer into.