Home
last modified time | relevance | path

Searched refs:fun_tree (Results 1 – 17 of 17) sorted by relevance

/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/bltins/
H A Dgetopts.c41 if((shp->namespace && sh_fsearch(shp,s,0)) || nv_search(s,shp->fun_tree,0)) in infof()
43 if(nv_search(s,shp->fun_tree,0)) in infof()
H A Dtypeset.c313 troot = tdata.sh->fun_tree; in b_typeset()
383 if(troot==tdata.sh->fun_tree && ((isfloat || flag&~(NV_FUNCT|NV_TAGGED|NV_EXPORT|NV_LTOU)))) in b_typeset()
385 if(sflag && troot==tdata.sh->fun_tree) in b_typeset()
500 print_scan(iop,NV_FUNCTION|NV_NOSCOPE,tp->sh->fun_tree,aflag=='+',tp); in print_value()
563 if(troot == shp->fun_tree) in setall()
839 if(troot==shp->fun_tree) in setall()
H A Dwhence.c187 root = (flags&F_FLAG)?shp->bltin_tree:shp->fun_tree; in whence()
H A Dmisc.c239 np = nv_search(script,shp->fun_tree,0); in b_dot_cmd()
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dsubshell.c410 return(sh.fun_tree); in sh_subfuntree()
414 dtview(sp->sfun,sp->shp->fun_tree); in sh_subfuntree()
415 sp->shp->fun_tree = sp->sfun; in sh_subfuntree()
417 return(sp->shp->fun_tree); in sh_subfuntree()
726 shp->fun_tree = dtview(sp->sfun,0); in sh_subshell()
H A Dinit.c1034 mp = (Namval_t*)dtprev(shp->fun_tree,&fake); in get_math()
1035 while(mp=(Namval_t*)dtnext(shp->fun_tree,mp)) in get_math()
1059 mp = (Namval_t*)dtprev(shp->fun_tree,&fake); in setdisc_any()
1060 return((char*)dtnext(shp->fun_tree,mp)); in setdisc_any()
1069 mp = nv_search(name, shp->fun_tree, action?NV_ADD:0); in setdisc_any()
1072 return(mp?(char*)dtnext(shp->fun_tree,mp):0); in setdisc_any()
1613 for(np=dtfirst(shp->fun_tree);np;np=npnext) in sh_reinit()
1615 if((dp=shp->fun_tree)->walk) in sh_reinit()
1617 npnext = (Namval_t*)dtnext(shp->fun_tree,np); in sh_reinit()
1925 shp->fun_tree = dtopen(&_Nvdisc,Dtoset); in nv_init()
[all …]
H A Dexpand.c124 extra += scantree(shp->fun_tree,pattern,arghead); in path_expand()
H A Dparse.c843 Namval_t *np= nv_open(t->funct.functnam,shp->fun_tree,NV_ADD|NV_VARNAME); in funct()
1034 …arg->argflag&ARG_ASSIGN) && !((np=nv_search(lexp->arg->argval,lexp->sh->fun_tree,0)) && (nv_isattr… in assign()
1054 …rgval,NIL(Pathcomp_t**),1) && (np=nv_search(lexp->arg->argval,lexp->sh->fun_tree,0)) && nv_isattr(… in assign()
1089 …arg->argflag&ARG_ASSIGN) && !((np=nv_search(lexp->arg->argval,lexp->sh->fun_tree,0)) && (nv_isattr… in assign()
1476 Namval_t *np=nv_bfsearch(argp->argval,lexp->sh->fun_tree, (Namval_t**)&t->comnamq,(char**)0); in simple()
H A Dxec.c848 nv_scan(shp->fun_tree, print_fun, (void*)0,0, 0); in sh_coexec()
1115 np = dtsearch(shp->fun_tree,np); in sh_exec()
1135 Dt_t *root = command?shp->bltin_tree:shp->fun_tree; in sh_exec()
1283 np=nv_search(com0,shp->fun_tree,0); in sh_exec()
1512 np = nv_search(com0,shp->fun_tree,HASH_NOSCOPE); in sh_exec()
2801 np->nvalue.rp->fdict = shp->fun_tree; in sh_exec()
2992 t->comnamp = (void*)nv_bfsearch(argv[0],shp->fun_tree,(Namval_t**)&t->comnamq,(char**)0); in sh_run()
3705 nv_scan(shp->fun_tree, print_fun, (void*)0,0, 0); in run_subshell()
3820 if(!np && path && !nv_search(path,shp->fun_tree,0)) in sh_ntfork()
H A Dtrestore.c288 com->comnamp = (void*)nv_search(cmdname,shp->fun_tree,0); in r_comarg()
H A Darith.c280 if(np=nv_search(stkptr(shp->stk,off),shp->fun_tree,0)) in arith()
H A Dnvtype.c727 if((nq = nv_search(stakptr(offset),sh.fun_tree,0)) && nq->nvalue.cp) in typeinfo()
828 if((bp=nv_search(name,shp->fun_tree,NV_NOSCOPE)) && !bp->nvalue.ip) in nv_addtype()
829 nv_delete(bp,shp->fun_tree,0); in nv_addtype()
H A Dnvdisc.c1323 nv_delete(np,shp->fun_tree,NV_NOFREE); in delete_fun()
1342 nv_scan(data.sh->fun_tree,delete_fun,(void*)&data,NV_FUNCTION,NV_FUNCTION|NV_NOSCOPE); in put_table()
H A Dpath.c636 np = nv_search(name,shp->fun_tree,0); in funload()
703 if(!pp && (np=nv_search(name,shp->fun_tree,0))&&np->nvalue.ip) in path_search()
H A Dmacro.c1033 np = nv_bfsearch(name,shp->fun_tree,&nq,(char**)0); in sh_macfun()
2621 np = nv_open(shtilde,shp->fun_tree, NV_VARNAME|NV_NOARRAY|NV_NOASSIGN|NV_NOFAIL); in tilde_expand2()
H A Dname.c379 …ay(np) && tp->com.comarg && !((mp=nv_search(tp->com.comarg->argval,shp->fun_tree,0)) && nv_isattr(… in nv_setlist()
1366 if(root==shp->fun_tree) in nv_open()
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/include/
H A Dshell.h139 Dt_t *fun_tree; /* for shell functions */ member