Lines Matching defs:meth
30 Dtmethod_t* dtmethod(Dt_t* dt, Dtmethod_t* meth)
32 Dtmethod_t* dtmethod(dt, meth)
34 Dtmethod_t* meth;
39 reg Dtmethod_t* oldmeth = dt->meth;
41 if(!meth || meth->type == oldmeth->type)
45 (*disc->eventf)(dt,DT_METH,(Void_t*)meth,disc) < 0)
63 dt->data->type = (dt->data->type&~(DT_METHODS|DT_FLATTEN)) | meth->type;
64 dt->meth = meth;
66 dt->searchf = meth->searchf;
68 if(meth->type&(DT_LIST|DT_STACK|DT_QUEUE) )
79 else if(meth->type&(DT_OSET|DT_OBAG))
83 (*meth->searchf)(dt,(Void_t*)list,DT_RENEW);
87 else if(!((meth->type&DT_BAG) && (oldmeth->type&DT_SET)) )
89 if((meth->type&(DT_SET|DT_BAG)) && !(oldmeth->type&(DT_SET|DT_BAG)))
101 (void)(*meth->searchf)(dt,(Void_t*)list,DT_RENEW);