Lines Matching defs:rb
282 CRBNode rb;
285 #define node_from_rb(_rb) ((Node *)((char *)(_rb) - offsetof(Node, rb)))
306 c_rbnode_init(&nodes[i]->rb);
314 assert(!c_rbnode_is_linked(&nodes[i]->rb));
315 assert(!c_rbtree_find_entry(&t, compare, (void *)nodes[i]->key, Node, rb));
319 c_rbtree_add(&t, p, slot, &nodes[i]->rb);
321 assert(c_rbnode_is_linked(&nodes[i]->rb));
322 assert(nodes[i] == c_rbtree_find_entry(&t, compare, (void *)nodes[i]->key, Node, rb));
330 assert(c_rbnode_is_linked(&nodes[i]->rb));
331 assert(nodes[i] == c_rbtree_find_entry(&t, compare, (void *)nodes[i]->key, Node, rb));
333 c_rbtree_remove_init(&t, &nodes[i]->rb);
335 assert(!c_rbnode_is_linked(&nodes[i]->rb));
336 assert(!c_rbtree_find_entry(&t, compare, (void *)nodes[i]->key, Node, rb));