| 179 | } |
| 180 | |
| 181 | const char *tpt_leaf(const tpt_object *o) { |
| 182 | size_t start = o->length; |
| 183 | while (start && o->path[start - 1] != '/') |
| 184 | start--; |
| 185 | return o->path + start; |
| 186 | } |
| 187 | |
| 188 | tpt_object *tpt_parent(cbm_pinned_tree_t *t, const tpt_object *o) { |
| 189 | return o->parent == SIZE_MAX ? &t->parent : &t->objects[o->parent]; |
no outgoing calls
no test coverage detected