| 150 | * field for space concerns, so we use the auxiliary stack when needed. */ |
| 151 | #define RAX_STACK_STATIC_ITEMS 32 |
| 152 | typedef struct raxStack { |
| 153 | void **stack; /* Points to static_items or an heap allocated array. */ |
| 154 | size_t items, maxitems; /* Number of items contained and total space. */ |
| 155 | /* Up to RAXSTACK_STACK_ITEMS items we avoid to allocate on the heap |
| 156 | * and use this static array of pointers instead. */ |
| 157 | void *static_items[RAX_STACK_STATIC_ITEMS]; |
| 158 | int oom; /* True if pushing into this stack failed for OOM at some point. */ |
| 159 | } raxStack; |
| 160 | |
| 161 | /* Optional callback used for iterators and be notified on each rax node, |
| 162 | * including nodes not representing keys. If the callback returns true |
nothing calls this directly
no outgoing calls
no test coverage detected