Lines Matching refs:hdr

113 	Namtype_t	hdr;
140 int n = (char**)bp->ptr-dp->hdr.names;
149 if(!(qp = cxquery(cx, dp->hdr.names[n], cx->disc)))
260 if(nv_isattr(pp->hdr.np,NV_INTEGER))
264 op->value.number = nv_getnum(pp->hdr.np);
299 if(!dp->hdr.np->nvalue)
309 rp->data = dp->hdr.np->nvalue;
310 rp->size = nv_size(dp->hdr.np);
358 if(cxcast(dp->cx,&ret,vp,dp->state->type_number,dp->hdr.np->nvalue,(char*)0)==0)
360 if(cxcast(dp->cx,&ret,vp,dp->state->type_number,dp->hdr.data,(char*)0)==0)
379 ret.value.number = nv_getnum(pp->hdr.np);
382 nv_putval(pp->hdr.np,(char*)&ret.value.number,NV_INTEGER|NV_DOUBLE|NV_LONG|NV_NODISC);
396 cp = nv_name(dp->hdr.np);
458 if(!dp->hdr.nodes)
462 if(!(dp->hdr.nodes = (char*)calloc(dp->hdr.numnodes,NV_MINSZ)))
464 np = nv_namptr(dp->hdr.nodes,0);
467 tp = (struct type*)nv_hasdisc(mp=dp->hdr.fun.type,&type_disc);
472 if(mp!=dp->hdr.np && pp && pp->hdr.fun.disc==&parent_disc && pp->hdr.nodes)
473 mp = nv_namptr(pp->hdr.nodes,0);
482 return(np?np:nv_namptr(dp->hdr.nodes,0));
483 np = nv_namptr(dp->hdr.nodes,vp->header.index+1);
486 nv_disc(np,&dp->hdr.childfun.fun,NV_FIRST);
565 return(dp->hdr.np);
588 if(rp == &dp->hdr.childfun.fun)
597 dp->hdr.fun.last = fp->last;
608 if(!dp->hdr.np)
615 nv_disc(np,&dp->hdr.fun,NV_POP);
616 if(dp->hdr.nodes)
617 free((void*)dp->hdr.nodes);
618 if(!dp->hdr.fun.nofree&1)
714 (*ap->hdr.disc->putval)(np,sp->rp->data,flags,&ap->hdr);
752 if(root && (np!=nv_namptr(dp->hdr.nodes,0)))
764 if(np==nv_namptr(dp->hdr.nodes,0))
790 while(vp && vp->header.index>=dp->hdr.numnodes-1);
827 Dssrecord_t *rp = (Dssrecord_t*)dp->hdr.data;
1228 dp->hdr.numnodes = n+1;
1229 dp->hdr.fun.disc = &parent_disc;
1230 dp->hdr.fun.type = mp;
1231 dp->hdr.np = mp;
1232 dp->hdr.sh = fp?((struct dsstype*)fp)->sh:0;
1233 dp->hdr.parent = parent;
1240 dp->hdr.childfun.fun.disc = meth?&mchild_disc:&child_disc;
1241 dp->hdr.childfun.fun.nofree = 1;
1242 dp->hdr.childfun.ptype = &dp->hdr;
1252 dp->hdr.names = ((struct dsstype*)fp)->names;
1253 nv_adddisc(mp,(const char**)dp->hdr.names,0);
1255 add_discipline(name,dp->hdr.names[i], query,&dp->hdr.names[i]);
1257 nv_disc(mp,&dp->hdr.fun,NV_FIRST);
1421 cxcast(dp->cx,valp,vp,vp->type,dp->hdr.parent->nvalue,(char*)0);
1423 cxcast(dp->cx,valp,vp,vp->type,dp->hdr.data,(char*)0);