Woolz Image Processing  Version 1.8.3
AlcFreeStack

Files

file  AlcFreeStack.c
 A general purpose free stack which allows a single pointer to be used to keep a list of data to be free'd.
 

Functions

void * AlcFreeStackPush (void *prev, void *data, AlcErrno *dstErr)
 Push's the given pointer onto the free stack on top of the previous free stack pointer. More...
 
void * AlcFreeStackPop (void *prev, void **dstData, AlcErrno *dstErr)
 Pop's the top entry from the free stack. Returns a free stack pointer and set's the given destination pointer to the entry's data. The entry's data is NOT free'd. More...
 
AlcErrno AlcFreeStackFree (void *stack)
 Free's all entries on the given free stack. More...
 

Detailed Description

Function Documentation

◆ AlcFreeStackPush()

◆ AlcFreeStackPop()

void* AlcFreeStackPop ( void *  prev,
void **  dstData,
AlcErrno dstErr 
)

Pop's the top entry from the free stack. Returns a free stack pointer and set's the given destination pointer to the entry's data. The entry's data is NOT free'd.

Returns
New free stack pointer or NULL on error.
Parameters
prevThe free stack.
dstDataDestination data pointer, may be NULL.
dstErrDestination error pointer, may be NULL.

References ALC_ER_NONE, ALC_ER_NULLPTR, AlcFree(), _AlcFreeStack::data, and _AlcFreeStack::prev.

◆ AlcFreeStackFree()

AlcErrno AlcFreeStackFree ( void *  stack)