Lines Matching refs:dp
31 int nv_compare(Dt_t* dict, Void_t *sp, Void_t *dp, Dtdisc_t *disc)
33 if(sp==dp)
35 return(strcmp((char*)sp,(char*)dp));
355 static char* lookup(Namval_t *np, int type, Sfdouble_t *dp,Namfun_t *handle)
384 *dp = nv_getnum(SH_VALNOD);
402 *dp = nv_getn(np,handle);
493 Namdisc_t *dp;
498 dp = (Namdisc_t*)(vp+1);
499 vp->fun.disc = dp;
500 memset(dp,0,sizeof(*dp));
501 dp->dsize = sizeof(struct vardisc);
502 dp->putval = assign;
514 Namdisc_t *dp = (Namdisc_t*)vp->fun.disc;
516 dp->getval = lookups;
518 dp->getnum = lookupn;
742 Namfun_t *nv_hasdisc(Namval_t *np, const Namdisc_t *dp)
747 if(fp->disc== dp)
975 Namfun_t *dp = nv_stack(np,(Namfun_t*)0);
978 free((void*)dp);
996 Namfun_t *dp;
1003 dp = newof(0,Namfun_t,1,0);
1004 dp->disc = &clone_disc;
1005 nv_stack(np,dp);
1014 register Dt_t *dp = 0;
1016 dp = dtview(root,0);
1025 if(*name=='.' && root==sh.var_tree && !dp)
1033 else if(!dp && !(mode&HASH_NOSCOPE))
1041 if(dp)
1042 dtview(root,dp);