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

◆ above

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.

◆ below

struct stack_level* below

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

◆ data

void* data

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