pike.git / src / rbtree.c

version» Context lines:

pike.git/src/rbtree.c:257:    struct rb_node_hdr *parent, *grandparent, *uncle, *top;    RBSTACK_POP (rbstack, parent);   #ifdef PIKE_DEBUG    if (!parent) rb_fatal (node, "No parent on stack.\n");   #endif    RBSTACK_POP (rbstack, grandparent);    top = grandparent ? grandparent : parent;       while (parent->flags & RB_RED) {    /* Since the root always is black we know there's a grandparent. */ -  if (UNLIKELY(!grandparent)) rb_fatal (parent, "No parent for red node.\n"); +  if (UNLIKELY(!grandparent)) rb_fatal ( + #ifdef PIKE_DEBUG +  parent, + #endif +  "No parent for red node.\n");   #ifdef RB_STATS    rb_add_rebalance_cnt++;   #endif       if (parent == grandparent->prev) {    uncle = grandparent->next;       if (!(grandparent->flags & RB_THREAD_NEXT) && uncle->flags & RB_RED) {    /* Case 1:    * grandparent(B) *grandparent(R)