Graphviz  2.41.20171026.1811
Functions
stack.c File Reference
#include "config.h"
#include "stack.h"
Include dependency graph for stack.c:

Go to the source code of this file.

Functions

intptr_t StackNotEmpty (stk_stack *theStack)
 
stk_stackStackJoin (stk_stack *stack1, stk_stack *stack2)
 
stk_stackStackCreate ()
 
void StackPush (stk_stack *theStack, DATA_TYPE newInfoPointer)
 
DATA_TYPE StackPop (stk_stack *theStack)
 
void StackDestroy (stk_stack *theStack, void DestFunc(void *a))
 

Function Documentation

stk_stack* StackCreate ( void  )

Definition at line 28 of file stack.c.

References NULL, SafeMalloc(), stk_stack::tail, and stk_stack::top.

Referenced by RBEnumerate().

void StackDestroy ( stk_stack theStack,
void   DestFuncvoid *a 
)

Definition at line 71 of file stack.c.

References stk_stack_node::info, stk_stack_node::next, and stk_stack::top.

stk_stack* StackJoin ( stk_stack stack1,
stk_stack stack2 
)

Definition at line 16 of file stack.c.

References stk_stack_node::next, stk_stack::tail, and stk_stack::top.

intptr_t StackNotEmpty ( stk_stack theStack)

Definition at line 12 of file stack.c.

References stk_stack::top.

DATA_TYPE StackPop ( stk_stack theStack)

Definition at line 55 of file stack.c.

References DATA_TYPE, stk_stack_node::info, stk_stack_node::next, NULL, stk_stack::tail, and stk_stack::top.

Referenced by main().

void StackPush ( stk_stack theStack,
DATA_TYPE  newInfoPointer 
)

Definition at line 37 of file stack.c.

References stk_stack_node::info, stk_stack_node::next, SafeMalloc(), stk_stack::tail, and stk_stack::top.

Referenced by RBEnumerate().