MCPcopy Create free account
hub / github.com/antirez/ds4 / raxStack

Class raxStack

rax.h:152–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150 * field for space concerns, so we use the auxiliary stack when needed. */
151#define RAX_STACK_STATIC_ITEMS 32
152typedef 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected