Lines Matching defs:dt
25 ** dt : dictionary
32 static Void_t* dtmemory(Dt_t* dt,Void_t* addr,size_t size,Dtdisc_t* disc)
34 static Void_t* dtmemory(dt, addr, size, disc)
35 Dt_t* dt; /* dictionary */
52 Dtdisc_t* dtdisc(Dt_t* dt, Dtdisc_t* disc, int type)
54 Dtdisc_t* dtdisc(dt,disc,type)
55 Dt_t* dt;
65 if(!(old = dt->disc) ) /* initialization call from dtopen() */
66 { dt->disc = disc;
67 if(!(dt->memoryf = disc->memoryf) )
68 dt->memoryf = dtmemory;
75 searchf = dt->meth->searchf;
77 UNFLATTEN(dt);
79 if(old->eventf && (*old->eventf)(dt,DT_DISC,(Void_t*)disc,old) < 0)
82 dt->disc = disc;
83 if(!(dt->memoryf = disc->memoryf) )
84 dt->memoryf = dtmemory;
86 if(dt->data->type&(DT_STACK|DT_QUEUE|DT_LIST))
88 else if(dt->data->type&DT_BAG)
93 else if(dt->data->type&(DT_SET|DT_BAG))
98 else /*if(dt->data->type&(DT_OSET|DT_OBAG))*/
102 r = dtflatten(dt);
103 dt->data->type &= ~DT_FLATTEN;
104 dt->data->here = NIL(Dtlink_t*);
105 dt->data->size = 0;
107 if(dt->data->type&(DT_SET|DT_BAG))
109 ends = (s = dt->data->htab) + dt->data->ntab;
120 r->hash = _DTHSH(dt,k,disc,disc->size);
122 (void)(*searchf)(dt,(Void_t*)r,DT_RENEW);