rtxIntStack.h File Reference

Simple FIFO stack for storing integer values. More...

#include "rtxsrc/rtxContext.h"

Go to the source code of this file.

Classes

struct  _OSRTIntStack
 This is the main stack structure. More...

Defines

#define OSRTISTK_DEFAULT_CAPACITY   100
 This is the default capacity that is used if zero is passed as the capacity argument to rtxIntStackInit.
#define rtxIntStackIsEmpty(stack)   (OSBOOL)((stack).index == 0)
 This macro tests if the stack is empty.

Functions

EXTERNRT int rtxIntStackInit (OSCTXT *pctxt, OSRTIntStack *pstack, size_t capacity)
 This function initializes a stack structure.
EXTERNRT int rtxIntStackPush (OSRTIntStack *pstack, OSINT32 value)
 This function pushes an item onto the stack.
EXTERNRT int rtxIntStackPeek (OSRTIntStack *pstack, OSINT32 *pvalue)
 This functions returns the data item on the top of the stack.
EXTERNRT int rtxIntStackPop (OSRTIntStack *pstack, OSINT32 *pvalue)
 This functions pops the data item on the top of the stack.

Detailed Description

Simple FIFO stack for storing integer values.

Definition in file rtxIntStack.h.