Graphviz  2.41.20170921.2350
Data Structures | Macros | Typedefs | Functions
stack.h File Reference
#include "config.h"
#include <stdint.h>
#include "misc.h"
Include dependency graph for stack.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  stk_stack_node
 
struct  stk_stack
 

Macros

#define DATA_TYPE   void *
 

Typedefs

typedef struct stk_stack_node stk_stack_node
 
typedef struct stk_stack stk_stack
 

Functions

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

Macro Definition Documentation

#define DATA_TYPE   void *

Definition at line 41 of file stack.h.

Referenced by StackPop().

Typedef Documentation

typedef struct stk_stack stk_stack

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().

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 )

Definition at line 12 of file stack.c.

References stk_stack::top.

void* 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().