|
Archeus 0.0.0
A C library and game engine that focuses on documentation
|
Go to the source code of this file.
Data Structures | |
| struct | ARC_StackNode |
| struct | ARC_Stack |
Typedefs | |
| typedef struct ARC_StackNode | ARC_StackNode |
Functions | |
| void | ARC_Stack_Create (ARC_Stack **stack) |
| creates ARC_Stack type | |
| void | ARC_Stack_Destroy (ARC_Stack *stack) |
| destroyes ARC_Stack type | |
| void | ARC_Stack_Push (ARC_Stack *stack, void *data) |
| pushes value on stack | |
| void * | ARC_Stack_Pop (ARC_Stack *stack) |
| pops top off of ARC_Stack | |
| uint32_t | ARC_Stack_Size (ARC_Stack *stack) |
| gets size of stack | |
| void ARC_Stack_Create | ( | ARC_Stack ** | stack | ) |
creates ARC_Stack type
| stack | ARC_Stack to initialize |
Definition at line 18 of file stack.c.
References ARC_Stack::currentSize.
| void ARC_Stack_Destroy | ( | ARC_Stack * | stack | ) |
destroyes ARC_Stack type
Definition at line 24 of file stack.c.
References ARC_DEBUG_LOG_ERROR, arc_errno, ARC_ERRNO_DATA, ARC_Stack::currentSize, and ARC_Stack::node.
| void * ARC_Stack_Pop | ( | ARC_Stack * | stack | ) |
pops top off of ARC_Stack
| stack | ARC_Stack to remove from |
Definition at line 51 of file stack.c.
References ARC_DEBUG_LOG_ERROR, arc_errno, ARC_ERRNO_DATA, ARC_ERRNO_NULL, ARC_Stack::currentSize, ARC_StackNode::data, ARC_StackNode::next, and ARC_Stack::node.
| void ARC_Stack_Push | ( | ARC_Stack * | stack, |
| void * | data ) |
pushes value on stack
| stack | ARC_Stack to push to |
| data | data that is being pushed |
Definition at line 34 of file stack.c.
References ARC_DEBUG_LOG_ERROR, arc_errno, ARC_ERRNO_OVERFLOW, ARC_Stack::currentSize, ARC_StackNode::data, ARC_StackNode::next, and ARC_Stack::node.
| uint32_t ARC_Stack_Size | ( | ARC_Stack * | stack | ) |
gets size of stack
| stack | ARC_Stack to get size from |
Definition at line 74 of file stack.c.
References ARC_Stack::currentSize.