Represents an entry on a simple stack that wraps an "item" represented by an opaque pointer. More...
#include <stack.h>
Public Attributes | |
struct StackEntry * | next |
Points to the next older entry in the stack. | |
void * | item |
The item being held in this entry in the stack. | |
Represents an entry on a simple stack that wraps an "item" represented by an opaque pointer.
This structure is allocated on the heap and then linked into the stack. The item is what is being pushed onto the stack, the StackEntry structure provides the necessary link to the next older StackEntry structure containing the next older item.
void* item |
The item being held in this entry in the stack.
Definition at line 34 of file stack.h.
Referenced by Stack_Pop(), and StackEntry_Create().
struct StackEntry* next |
Points to the next older entry in the stack.
Definition at line 33 of file stack.h.
Referenced by Stack_Pop(), and Stack_Push().