pike.git / src / rbtree_low.h

version» Context lines:

pike.git/src/rbtree_low.h:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: rbtree_low.h,v 1.6 2002/12/19 01:44:00 mast Exp $ + || $Id: rbtree_low.h,v 1.7 2003/01/08 22:28:06 grubba Exp $   */      /* The lower level api for using rbtree. This is in a separate file    * since it's quite macro heavy.    *    * Created 2001-04-27 by Martin Stjernholm    */      #ifndef RBTREE_LOW_H   #define RBTREE_LOW_H
pike.git/src/rbtree_low.h:54:    struct rb_node_hdr *oldbase,    struct rb_node_hdr *newbase);      #define RBSTACK_INIT(rbstack) \    struct rbstack_slice PIKE_CONCAT3 (_, rbstack, _top_) = { \    DO_IF_RB_STATS (0 COMMA 0 COMMA) \    NULL, \    {NULL,} \    }; \    struct rbstack_ptr rbstack = { \ -  &PIKE_CONCAT3 (_, rbstack, _top_), \ +  NULL, \    0 \ -  } +  }; \ +  rbstack.slice = &PIKE_CONCAT3 (_, rbstack, _top_)      #define RBSTACK_PUSH(rbstack, node) do { \    if ((rbstack).ssp < STACK_SLICE_SIZE) { \    (rbstack).slice->stack[(rbstack).ssp++] = (node); \    } \    else rbstack_push (&(rbstack), node); \    DO_IF_RB_STATS ( \    if (++(rbstack).slice->depth > (rbstack).slice->maxdepth) \    (rbstack).slice->maxdepth = (rbstack).slice->depth; \    ); \