XBinder  Version 2.9.x
Classes | Macros | Functions
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...
 

Macros

#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. More...
 

Functions

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

Detailed Description

Simple FIFO stack for storing integer values.

Definition in file rtxIntStack.h.