Graphviz  2.41.20171026.1811
Data Structures | Macros | Typedefs | Functions
IntStack.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  IntStack_struct
 

Macros

#define IntStack_get_length(s)   (1+(s)->last)
 

Typedefs

typedef struct IntStack_structIntStack
 

Functions

IntStack IntStack_new (void)
 
void IntStack_delete (IntStack s)
 
int IntStack_push (IntStack s, int i)
 
int IntStack_pop (IntStack s, int *flag)
 
void IntStack_print (IntStack s)
 

Macro Definition Documentation

#define IntStack_get_length (   s)    (1+(s)->last)

Definition at line 30 of file IntStack.h.

Referenced by BinaryHeap_sanity_check().

Typedef Documentation

typedef struct IntStack_struct* IntStack

Definition at line 24 of file IntStack.h.

Function Documentation

void IntStack_delete ( IntStack  s)

Definition at line 28 of file IntStack.c.

References FREE, and IntStack_struct::stack.

Referenced by BinaryHeap_delete().

IntStack IntStack_new ( void  )

Definition at line 17 of file IntStack.c.

References IntStack_struct::last, MALLOC, IntStack_struct::max_len, and IntStack_struct::stack.

Referenced by BinaryHeap_new().

int IntStack_pop ( IntStack  s,
int flag 
)

Definition at line 53 of file IntStack.c.

References IntStack_struct::last, and IntStack_struct::stack.

Referenced by BinaryHeap_insert().

void IntStack_print ( IntStack  s)

Definition at line 62 of file IntStack.c.

References IntStack_struct::last, and IntStack_struct::stack.

int IntStack_push ( IntStack  s,
int  i 
)