Lines Matching refs:rp

87 	Namval_t	*rp;  member
224 sp->rp = np; in nv_addnode()
226 np = nv_search(sp->rp->nvname,root,NV_ADD); in nv_addnode()
235 if(sp->rp && sp->numnodes) in nv_addnode()
239 sp->rp = 0; in nv_addnode()
244 dtinsert(root,sp->rp); in nv_addnode()
318 shtp.rp = 0; in nv_setlist()
824 struct Ufunction *rp; in nv_create() local
825 if((rp=shp->st.real_fun) && !rp->sdict && (flags&NV_STATIC)) in nv_create()
828 rp->sdict = dtopen(&_Nvdisc,Dtoset); in nv_create()
829 dtview(rp->sdict,dp); in nv_create()
830 dtview(shp->var_tree,rp->sdict); in nv_create()
864 if(rp && rp->sdict && (flags&NV_STATIC)) in nv_create()
866 root = rp->sdict; in nv_create()
1290 struct Namref *rp; in nv_delete() local
1291 while(rp = (struct Namref*)dtmatch(Refdict,(void*)key)) in nv_delete()
1293 if(rp->sub) in nv_delete()
1294 free(rp->sub); in nv_delete()
1295 rp->sub = 0; in nv_delete()
1296 rp = dtdelete(Refdict,(void*)rp); in nv_delete()
1297 rp->np = &NullNode; in nv_delete()
2365 struct Ufunction *rp; in sh_scope() local
2380 if((rp=shp->st.real_fun) && rp->sdict) in sh_scope()
2382 dtview(rp->sdict,newroot); in sh_scope()
2383 newroot = rp->sdict; in sh_scope()
2513 if(shp->st.real_fun == np->nvalue.rp) in _nv_unset()
2515 np->nvalue.rp->running |= 1; in _nv_unset()
2520 struct Ufunction *rq,*rp = np->nvalue.rp; in _nv_unset() local
2532 … if(rp->fname && shp->fpathdict && (rq = (struct Ufunction*)nv_search(rp->fname,shp->fpathdict,0))) in _nv_unset()
2543 if(rp->sdict) in _nv_unset()
2546 for(mp=(Namval_t*)dtfirst(rp->sdict);mp;mp=nq) in _nv_unset()
2548 nq = dtnext(rp->sdict,mp); in _nv_unset()
2550 nv_delete(mp,rp->sdict,0); in _nv_unset()
2552 dtclose(rp->sdict); in _nv_unset()