MCPcopy Create free account
hub / github.com/git/git / cb_descend

Function cb_descend

cbtree.c:108–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108static int cb_descend(struct cb_node *p, cb_iter fn, void *arg)
109{
110 if (1 & (uintptr_t)p) {
111 struct cb_node *q = cb_node_of(p);
112 int ret = cb_descend(q->child[0], fn, arg);
113 if (ret)
114 return ret;
115 return cb_descend(q->child[1], fn, arg);
116 } else {
117 return fn(p, arg);
118 }
119}
120
121int cb_each(struct cb_tree *t, const uint8_t *kpfx, size_t klen,
122 cb_iter fn, void *arg)

Callers 1

cb_eachFunction · 0.85

Calls 1

cb_node_ofFunction · 0.85

Tested by

no test coverage detected