GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > XLX / V9-0-0
Constituent: parser     Tag: sun-gcc
#include "XLX_p.h"
#include "stdlib.h"
#include "string.h"
#include "stdio.h"
Include dependency graph for stack.c:
Functions | |
unsigned | XLX_initStack (XLX_stack *stack, unsigned limit) |
Initialise a stack by allocating memory to hold the contents and setting limit and used. | |
void | XLX_endStack (XLX_stack *stack) |
Free the memory allocated to the stack. | |
void | XLX_destroyStack (XLX_stack *stack, XLX_pDelete dFn) |
Free the memory allocated to the stack and its elements. | |
unsigned | XLX_push (XLX_stack *stack, void *ptr) |
Put a new item on the top of the stack and increment the counter, doubling the size of the stack if the stack is already full. | |
void * | XLX_pop (XLX_stack *stack) |
Remove and return the top item on the stack. | |
void * | XLX_peek (XLX_stack *stack) |
Look at the item on the top of the stack without removing it. | |
void | XLX_dump (XLX_stack *stack) |
Print out the stack information. |
|
Free the memory allocated to the stack and its elements.
|
|
Print out the stack information.
|
|
Free the memory allocated to the stack.
|
|
Initialise a stack by allocating memory to hold the contents and setting limit and used.
|
|
Look at the item on the top of the stack without removing it.
|
|
Remove and return the top item on the stack.
|
|
Put a new item on the top of the stack and increment the counter, doubling the size of the stack if the stack is already full.
|