WStacking *ioncore_find_stacking(WRegion *reg) { Rb_node node=NULL; int found=0; if(stacking_of_reg!=NULL) node=rb_find_pkey_n(stacking_of_reg, reg, &found); return (found ? (WStacking*)node->v.val : NULL); }
Rb_node do_find(WRegion *reg) { int found=0; Rb_node node; if(retrb==NULL) return NULL; node=rb_find_pkey_n(retrb, reg, &found); return (found ? node : NULL); }
void stacking_unassoc(WStacking *st) { Rb_node node=NULL; int found=0; if(st->reg==NULL) return; if(stacking_of_reg!=NULL) node=rb_find_pkey_n(stacking_of_reg, st->reg, &found); if(node!=NULL) rb_delete_node(node); st->reg=NULL; }