#include <MemoryMgr.h>
#include <ErrorMgr.h>
#include <FeatureMgr.h>
#include <ui.h>
#include <mem_compat.h>
#include <stack.h>
Go to the source code of this file.
Data Structures | |
| struct | tag_dsobj |
| stack object More... | |
Typedefs | |
| typedef tag_dsobj | dsObj |
| stack object | |
Functions | |
| dsObj * | StackNew (void) |
| Create a new stack. | |
| void | StackDelete (dsObj *sp) |
| delete the stack object | |
| void | StackResize (dsObj *sp, Int32 newsize) |
| resize the stack based on the current size | |
| Int32 | StackPop (dsObj *sp) |
| pop the first item from the stack | |
| void | StackPush (dsObj *sp, Int32 elt) |
| push an item onto the stack | |
| Int8 | StackIsEmpty (dsObj *sp) |
| check is the stack empty | |
| void | StackDoEmpty (dsObj *sp) |
| empty the stack | |
| Int32 | StackNElements (dsObj *sp) |
| get the number of elements on the stack | |
| Int32 | ListGet (dsObj *sp, Int32 index) |
| get the specific item from the list | |
| void | ListSet (dsObj *sp, Int32 index, Int32 element) |
| set the value at a certain index into the list to the value | |
Designed to hold unsigned longs... I live in an ILP32 / LP64 world. long == pointer in 32 bit and 64 bit. If not then just forgive me for this laziness. It's just that this implementation is for the palmOS platform.
Definition in file stack.c.
|
||||||||||||
|
get the specific item from the list
Definition at line 122 of file stack.c. References Int32, and tag_dsObj::sp. |
|
||||||||||||||||
|
set the value at a certain index into the list to the value
Definition at line 130 of file stack.c. References Int32, and tag_dsObj::sp. |
|
|
delete the stack object
|
|
|
empty the stack
Definition at line 110 of file stack.c. References tag_dsObj::sp. |
|
|
check is the stack empty
Definition at line 104 of file stack.c. References tag_dsObj::sp. |
|
|
get the number of elements on the stack
Definition at line 116 of file stack.c. References tag_dsObj::sp. |
|
|
Create a new stack. preallocates 128 elements to the stack Definition at line 34 of file stack.c. References Int32, tag_dsObj::se, tag_dsObj::sl, and tag_dsObj::sp. |
|
|
pop the first item from the stack
Definition at line 83 of file stack.c. References Int32, tag_dsObj::sl, tag_dsObj::sp, and StackResize(). |
|
||||||||||||
|
push an item onto the stack
Definition at line 96 of file stack.c. References Int32, tag_dsObj::se, tag_dsObj::sl, tag_dsObj::sp, and StackResize(). |
|
||||||||||||
|
resize the stack based on the current size
Definition at line 67 of file stack.c. References Int32, tag_dsObj::se, tag_dsObj::sl, tag_dsObj::sp, and UInt32. |
1.2.18