pike.git / src / rbtree.c

version» Context lines:

pike.git/src/rbtree.c:195:    } while (0)      /* node ret    * / \ / \    * / \ / \    * ret c ==> a node    * / \ / \    * / \ / \    * a b b c    */ - static INLINE struct rb_node_hdr *rot_right (struct rb_node_hdr *node) + static inline struct rb_node_hdr *rot_right (struct rb_node_hdr *node)   {    /* Note that we don't need to do anything special to keep the    * pointers in a, b and c intact, even if they're thread    * pointers pointing back to node and ret. */    struct rb_node_hdr *ret = node->prev;    if (ret->flags & RB_THREAD_NEXT) {   #ifdef PIKE_DEBUG    if (ret->next != node) rb_fatal (node, "Bogus next thread pointer.\n");   #endif    ret->flags &= ~RB_THREAD_NEXT;
pike.git/src/rbtree.c:223:   }      /* node ret    * / \ / \    * / \ / \    * a ret ==> node c    * / \ / \    * / \ / \    * b c a b    */ - static INLINE struct rb_node_hdr *rot_left (struct rb_node_hdr *node) + static inline struct rb_node_hdr *rot_left (struct rb_node_hdr *node)   {    struct rb_node_hdr *ret = node->next;    if (ret->flags & RB_THREAD_PREV) {   #ifdef PIKE_DEBUG    if (ret->prev != node) rb_fatal (node, "Bogus prev thread pointer.\n");   #endif    ret->flags &= ~RB_THREAD_PREV;    node->flags |= RB_THREAD_NEXT;    }    else {