Lines Matching defs:dt
38 Dt_t* dt = (Dt_t*)Version; /* shut-up unuse warning */
46 if(!(dt = (Dt_t*) malloc(sizeof(Dt_t))))
50 dt->searchf = NIL(Dtsearch_f);
51 dt->meth = NIL(Dtmethod_t*);
52 dt->disc = NIL(Dtdisc_t*);
53 dtdisc(dt,disc,0);
54 dt->type = DT_MALLOC;
55 dt->nview = 0;
56 dt->view = dt->walk = NIL(Dt_t*);
57 dt->user = NIL(Void_t*);
62 if((e = (*disc->eventf)(dt,DT_OPEN,(Void_t*)(&data),disc)) < 0)
74 free((Void_t*)dt);
75 if(!(dt = (*disc->memoryf)(0, 0, sizeof(Dt_t), disc)) )
77 dt->searchf = NIL(Dtsearch_f);
78 dt->meth = NIL(Dtmethod_t*);
79 dt->disc = NIL(Dtdisc_t*);
80 dtdisc(dt,disc,0);
81 dt->type = DT_MEMORYF;
82 dt->nview = 0;
83 dt->view = dt->walk = NIL(Dt_t*);
88 if(!(data = (Dtdata_t*)(dt->memoryf)(dt,NIL(Void_t*),sizeof(Dtdata_t),disc)) )
90 free((Void_t*)dt);
101 dt->data = data;
102 dt->searchf = meth->searchf;
103 dt->meth = meth;
106 (*disc->eventf)(dt, DT_ENDOPEN, (Void_t*)dt, disc);
108 return dt;