Exemple #1
0
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);
}
Exemple #2
0
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);
}
Exemple #3
0
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;
}