#include <Coconut/cstack.h>
#include <stdlib.h>
Classes | |
| struct | _CStackElm |
Defines | |
| #define | S_DEF_NUM 32 |
Functions | |
| id | NULL () |
| void | elm () |
| for (elm=stack_bottom;elm;elm++) | |
| free (stack_bottom) | |
| void | push: (id, id, id obj, id, id obj, id retain,) |
| id | obj () |
| if (current_num > 0) | |
| uint_t | current_num () |
| current_num > 0 | stack_object () |
| id | objectAtIndex: (id, uint_t, id idx, id, id id, id obj,) |
| if (idx< current_num) | |
Variables | |
| current_num = max_num = 0 | |
| return [super init] | |
| stack_bottom = s_inc_size(stack_bottom, current_num, &max_num) | |
| stack_bottom[current_num++] | stack_object = obj |
| else return | nil |
|
|
CStack operates stack of objects. |
1.3.6