pike.git / src / rbtree.c

version» Context lines:

pike.git/src/rbtree.c:821:    /* Node has two subtrees, so we can't delete it. Find another one    * to replace its data with. */    next = parent = node;    RBSTACK_PUSH (rbstack, node);    for (unlink = node->next; !(unlink->flags & RB_THREAD_PREV); unlink = unlink->prev) {    parent = unlink;    RBSTACK_PUSH (rbstack, unlink);    }       keep_flags (node, -  MEMCPY ((char *) node + OFFSETOF (rb_node_hdr, flags), +  memcpy ((char *) node + OFFSETOF (rb_node_hdr, flags),    (char *) unlink + OFFSETOF (rb_node_hdr, flags),    node_size - OFFSETOF (rb_node_hdr, flags)));       if (parent == node) {    node = unlink->next;    if (unlink->flags & RB_THREAD_NEXT)    parent->flags |= RB_THREAD_NEXT;    else {   #ifdef PIKE_DEBUG    if (!(node->flags & RB_THREAD_PREV))
pike.git/src/rbtree.c:1781: Inside #if defined (PIKE_DEBUG) || defined (TEST_MULTISET)
      if (pos && ptr_node == (void *) (ptrdiff_t) -1)    fputs ("(pos outside stack)", stderr);    fputc ('\n', stderr);   }      static void debug_rb_fatal (struct rb_node_hdr *tree, const char *fmt, ...)   {    va_list args;    va_start (args, fmt); -  (void) VFPRINTF (stderr, fmt, args); +  (void) vfprintf (stderr, fmt, args);    fputs ("Dumping tree:\n", stderr);    debug_dump_rb_tree (tree, NULL, NULL);    debug_fatal ("\r");   }      static void debug_custom_rb_fatal (struct rb_node_hdr *tree, dump_data_fn *dump_data,    void *extra, const char *fmt, ...)   {    va_list args;    va_start (args, fmt); -  (void) VFPRINTF (stderr, fmt, args); +  (void) vfprintf (stderr, fmt, args);    fputs ("Dumping tree:\n", stderr);    debug_dump_rb_tree (tree, dump_data, extra);    debug_fatal ("\r");   }      void debug_check_rb_tree (struct rb_node_hdr *root, dump_data_fn *dump_data, void *extra)   {    if (root) {    struct rb_node_hdr *node = root, *n, *n2;    struct rbstack_ptr p;