Lines Matching refs:shp
59 static Namval_t *scope(Shell_t *shp,register Namval_t *np,register struct lval *lvalue,int assign)
66 Dt_t *sdict = (shp->st.real_fun? shp->st.real_fun->sdict:0);
67 Dt_t *root = shp->var_tree;
76 if((!(np = nv_open(cp,shp->var_tree,assign|NV_VARNAME|NV_NOADD|NV_NOFAIL)) || nv_isnull(np)) && sh_macfun(shp,cp, offset = staktell()))
84 np = nv_open(cp,shp->var_tree,assign|NV_VARNAME);
87 root = shp->last_root;
115 Shell_t *shp = &sh;
124 np = scope(shp,np,lvalue,1);
195 Dt_t *root = (lvalue->emode&ARITH_COMP)?shp->var_base:shp->var_tree;
312 np = scope(shp,np,lvalue,0);