Lines Matching refs:shp
799 Shell_t *shp = sh_getinterp();
809 mp = nv_search("typeset",shp->bltin_tree,0);
815 if(bp=(Namval_t*)shp->namespace)
820 sfprintf(shp->strbuf,"%s.%s%c\n",bp->nvname,name,0);
821 name = sfstruse(shp->strbuf);
824 if((bp=nv_search(name,shp->fun_tree,NV_NOSCOPE)) && !bp->nvalue.ip)
825 nv_delete(bp,shp->fun_tree,0);
1312 Shell_t *shp = sh_getinterp();
1313 int nelem=0,subshell=shp->subshell;
1342 shp->subshell = 0;
1385 shp->subshell = subshell;
1583 int sh_outtype(Shell_t *shp,Sfio_t *out)
1594 if(!(mp = nv_open(nvtype, shp->var_base,NV_NOADD|NV_VARNAME)))
1602 if(!nv_search(tp->nvname,shp->bltin_tree,0))
1608 if(nsp && nsp!=(Namval_t*)shp->namespace)
1623 if(nsp && nsp!=(Namval_t*)shp->namespace)
1628 shp->last_table = 0;
1649 iop = shp->heredocs;
1652 else if(shp->gd->hist_ptr)
1653 iop = (shp->gd->hist_ptr)->histfp;
1676 dtdelete(shp->var_base,L_ARGNOD);
1678 dtinsert(shp->var_base,L_ARGNOD);