Searched refs:fun_tree (Results 1 - 19 of 19) sorted by relevance

/ast/src/cmd/tksh/
H A Duinit.c42 if(nv_open("tkloop",shp->fun_tree,NV_NOADD))
/ast/src/lib/libtksh/src/
H A Deval.c132 if ((namval = nv_open(cmdName, sh.fun_tree, NV_NOADD)))
162 if ((namval = nv_open(cmdName, sh.fun_tree, NV_NOADD)))
185 if ((namval = nv_open(cmdName, sh.fun_tree, NV_NOADD)))
200 if ((namval = nv_open(cmdName, sh.fun_tree, NV_NOADD)))
H A Dcommands.c123 if ((namval=nv_open(argv[2], sh.fun_tree, NV_NOADD)) && namval->nvalue)
129 if (! (namval=nv_open(argv[1],sh.fun_tree,NV_NOADD)) || !namval->nvalue)
H A Dtcleval.c414 nv = nv_search(argv[0], sh.fun_tree, 0);
/ast/src/cmd/ksh93/bltins/
H A Dgetopts.c41 if((shp->namespace && sh_fsearch(shp,s,0)) || nv_search(s,shp->fun_tree,0))
43 if(nv_search(s,shp->fun_tree,0))
H A Dwhence.c187 root = (flags&F_FLAG)?shp->bltin_tree:shp->fun_tree;
H A Dtypeset.c312 troot = tdata.sh->fun_tree;
382 if(troot==tdata.sh->fun_tree && ((isfloat || flag&~(NV_FUNCT|NV_TAGGED|NV_EXPORT|NV_LTOU))))
384 if(sflag && troot==tdata.sh->fun_tree)
499 print_scan(iop,NV_FUNCTION|NV_NOSCOPE,tp->sh->fun_tree,aflag=='+',tp);
562 if(troot == shp->fun_tree)
838 if(troot==shp->fun_tree)
H A Dmisc.c239 np = nv_search(script,shp->fun_tree,0);
/ast/src/cmd/ksh93/include/
H A Dshell.h139 Dt_t *fun_tree; /* for shell functions */ member in struct:Shell_s
/ast/src/cmd/ksh93/sh/
H A Dsubshell.c404 return(sh.fun_tree);
408 dtview(sp->sfun,sp->shp->fun_tree);
409 sp->shp->fun_tree = sp->sfun;
411 return(sp->shp->fun_tree);
721 shp->fun_tree = dtview(sp->sfun,0);
H A Dinit.c1031 mp = (Namval_t*)dtprev(shp->fun_tree,&fake);
1032 while(mp=(Namval_t*)dtnext(shp->fun_tree,mp))
1056 mp = (Namval_t*)dtprev(shp->fun_tree,&fake);
1057 return((char*)dtnext(shp->fun_tree,mp));
1066 mp = nv_search(name, shp->fun_tree, action?NV_ADD:0);
1069 return(mp?(char*)dtnext(shp->fun_tree,mp):0);
1603 for(np=dtfirst(shp->fun_tree);np;np=npnext)
1605 if((dp=shp->fun_tree)->walk)
1607 npnext = (Namval_t*)dtnext(shp->fun_tree,np);
1912 shp->fun_tree
[all...]
H A Dexpand.c124 extra += scantree(shp->fun_tree,pattern,arghead);
H A Dtrestore.c288 com->comnamp = (void*)nv_search(cmdname,shp->fun_tree,0);
H A Dxec.c842 nv_scan(shp->fun_tree, print_fun, (void*)0,0, 0);
1106 np = dtsearch(shp->fun_tree,np);
1126 Dt_t *root = command?shp->bltin_tree:shp->fun_tree;
1274 np=nv_search(com0,shp->fun_tree,0);
1503 np = nv_search(com0,shp->fun_tree,HASH_NOSCOPE);
2789 np->nvalue.rp->fdict = shp->fun_tree;
2975 t->comnamp = (void*)nv_bfsearch(argv[0],shp->fun_tree,(Namval_t**)&t->comnamq,(char**)0);
3678 nv_scan(shp->fun_tree, print_fun, (void*)0,0, 0);
3793 if(!np && path && !nv_search(path,shp->fun_tree,0))
H A Darith.c280 if(np=nv_search(stkptr(shp->stk,off),shp->fun_tree,0))
H A Dnvtype.c727 if((nq = nv_search(stakptr(offset),sh.fun_tree,0)) && nq->nvalue.cp)
828 if((bp=nv_search(name,shp->fun_tree,NV_NOSCOPE)) && !bp->nvalue.ip)
829 nv_delete(bp,shp->fun_tree,0);
H A Dnvdisc.c1323 nv_delete(np,shp->fun_tree,NV_NOFREE);
1342 nv_scan(data.sh->fun_tree,delete_fun,(void*)&data,NV_FUNCTION,NV_FUNCTION|NV_NOSCOPE);
H A Dpath.c632 np = nv_search(name,shp->fun_tree,0);
699 if(!pp && (np=nv_search(name,shp->fun_tree,0))&&np->nvalue.ip)
H A Dname.c376 if((arg->argflag&ARG_APPEND) && (tp->tre.tretyp&COMMSK)==TCOM && tp->com.comset && !nv_isvtree(np) && (((ap=nv_arrayptr(np)) && !ap->fun && !nv_opensub(np)) || (!ap && nv_isarray(np) && tp->com.comarg && !((mp=nv_search(tp->com.comarg->argval,shp->fun_tree,0)) && nv_isattr(mp,BLT_DCL)))))
1351 if(root==shp->fun_tree)

Completed in 77 milliseconds