Initialize the stack. */
| 92 | |
| 93 | /* Initialize the stack. */ |
| 94 | static inline void raxStackInit(raxStack *ts) { |
| 95 | ts->stack = ts->static_items; |
| 96 | ts->items = 0; |
| 97 | ts->maxitems = RAX_STACK_STATIC_ITEMS; |
| 98 | ts->oom = 0; |
| 99 | } |
| 100 | |
| 101 | /* Push an item into the stack, returns 1 on success, 0 on out of memory. */ |
| 102 | static inline int raxStackPush(raxStack *ts, void *ptr) { |