MCPcopy Create free account
hub / github.com/F-Stack/f-stack / raxStackInit

Function raxStackInit

app/redis-6.2.6/src/rax.c:94–99  ·  view source on GitHub ↗

Initialize the stack. */

Source from the content-addressed store, hash-verified

92
93/* Initialize the stack. */
94static 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. */
102static inline int raxStackPush(raxStack *ts, void *ptr) {

Callers 2

raxRemoveFunction · 0.85
raxStartFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected