Searched refs:var_tree (Results 1 - 25 of 37) sorted by relevance

12

/ast/src/lib/libtksh/src/
H A Dshcompat.c23 Hashtab_t *hp=hashscope(sh.var_tree), *hp2;
24 return hp ? ((hp2=hashscope(hp))?hp2:hp) : sh.var_tree;
H A Dcommands.c509 nv_scan(hashscope(sh.var_tree)? hashscope(sh.var_tree): sh.var_tree,
655 if (hashscope(sh.var_tree))
657 Hashtab_t *ht = hashscope(sh.var_tree);
658 hashscope(sh.var_tree) = NULL;
660 nv_scan(sh.var_tree, tksh_appendLocal, NIL(void *), 0, 0);
661 hashscope(sh.var_tree) = ht;
792 Hashtab_t *ht = hashscope(sh.var_tree);
794 hashscope(sh.var_tree)
[all...]
H A Dtclproc.c398 if (hashscope(sh.var_tree))
400 Hashtab_t *ht = hashscope(sh.var_tree);
401 hashscope(sh.var_tree) = NULL;
402 nv_scan(sh.var_tree, clearlocals, NIL(void *), 0, 0);
403 hashscope(sh.var_tree) = ht;
H A Deval.c377 Hashtab_t *oldscope = sh.var_tree;
379 if (hashscope(sh.var_tree))
381 oldscope = sh.var_tree;
382 sh.var_tree = hashscope(sh.var_tree);
387 sh.var_tree = oldscope;
H A Dvar.c106 tree = hashscope(sh.var_tree); /* Use parent var tree */
286 if (hashscope(sh.var_tree) && nv_open(newname,sh.var_tree,NV_NOSCOPE|NV_NOADD))
/ast/src/cmd/ksh93/sh/
H A Dbash.c356 if(np=nv_open("HOSTTYPE",shp->var_tree,0))
358 if(np=nv_open("MACHTYPE",shp->var_tree,0))
360 if(np=nv_open("BASH_VERSION",shp->var_tree,0))
362 if(np=nv_open("BASH_VERSINFO",shp->var_tree,0))
381 if(np=nv_open("BASH_ENV",shp->var_tree,0))
390 if(np=nv_open("GLOBIGNORE",shp->var_tree,0))
415 if(np = nv_open("SHELLOPTS", shp->var_tree, NV_NOADD))
H A Dname.c320 if(shp->namespace && nv_dict(shp->namespace)==shp->var_tree)
375 np = nv_open(cp,shp->var_tree,flag|NV_ASSIGN);
530 np = nv_open(cp,shp->prefix_root?shp->prefix_root:shp->var_tree,flag);
621 np = nv_open(cp,shp->prefix_root?shp->prefix_root:shp->var_tree,flags);
668 nv_open(shtp.nodes[0]->nvname,shp->var_tree,NV_ASSIGN|NV_VARNAME|NV_NOADD|NV_NOFAIL);
766 if(root==shp->var_tree)
794 if(root==shp->var_tree)
822 Dt_t *dp = dtview(shp->var_tree,(Dt_t*)0);
825 dtview(shp->var_tree,rp->sdict);
827 if(np = nv_search(name,shp->var_tree,
[all...]
H A Darith.c70 Dt_t *root = shp->var_tree;
82 if((!(np = nv_open(cp,shp->var_tree,assign|NV_VARNAME|NV_NOADD|NV_NOFAIL)) || nv_isnull(np)) && sh_macfun(shp,cp, offset = staktell()))
91 np = nv_open(cp,shp->var_tree,assign|NV_VARNAME);
165 np = nv_open(sub,shp->var_tree,NV_VARNAME|assign);
309 Dt_t *root = (lvalue->emode&ARITH_COMP)?shp->var_base:shp->var_tree;
H A Dxec.c681 nr->root = shp->var_tree;
691 if(shp->var_tree!=shp->var_base && !nv_search((char*)nq,nr->root,HASH_BUCKET|HASH_NOSCOPE))
759 nv_open(name,shp->var_tree,NV_IDENT|NV_NOADD);
845 Dt_t *top = shp->var_tree;
864 shp->var_tree = top;
941 if(shp->var_tree==oroot)
943 shp->var_tree = shp->var_tree->view;
949 if(shp->var_tree==shp->var_base)
950 shp->var_tree
[all...]
H A Dsubshell.c247 Dt_t *dp= shp->var_tree;
255 if(sp->var!=shp->var_tree && sp->var!=shp->var_base && shp->last_root==shp->var_tree)
276 Dt_t *walk, *root=shp->var_tree;
505 sp->var = shp->var_tree;
H A Dfault.c627 nv_scan(shp->var_tree,array_notify,(void*)0,NV_ARRAY,NV_ARRAY);
641 if(nv_search("VMTRACE", shp->var_tree,0))
H A Dinit.c366 Namval_t *mp = dtsearch(shp->var_tree,np);
1618 shp->last_root = shp->var_tree;
1631 nv_scan(shp->var_tree,sh_envnolocal,(void*)&data,NV_EXPORT,0);
1632 nv_scan(shp->var_tree,sh_envnolocal,(void*)&data,NV_ARRAY,NV_ARRAY);
1640 if(dp==shp->var_tree)
1641 shp->var_tree = dtview(dp,0);
1816 shp->var_base = shp->var_tree = inittree(shp,shtab_variables);
2060 np = nv_search(cp+2,shp->var_tree,NV_ADD);
H A Dexpand.c150 GLOBIGNORENOD = nv_open("GLOBIGNORE",shp->var_tree,0);
H A Dargs.c167 np = nv_open(opt_info.arg,ap->sh->var_tree,NV_NOASSIGN|NV_ARRAY|NV_VARNAME);
225 np = nv_open("BASH_VERSION",ap->sh->var_tree,0);
227 np = nv_open("MACHTYPE",ap->sh->var_tree,0);
H A Dnvtype.c550 if(val && (nq=nv_open(val,sh.var_tree,NV_VARNAME|NV_ARRAY|NV_NOADD|NV_NOFAIL)))
629 np = nv_open(cp=stakptr(offset), sh.var_tree, NV_NOADD|NV_VARNAME);
1230 mp = nv_open(stakptr(offset), sh.var_tree, NV_VARNAME);
1449 mp = nv_open(stakptr(offset), sh.var_tree, NV_VARNAME);
1461 tp = nv_open(stakptr(offset), sh.var_tree, NV_VARNAME|NV_NOADD|NV_NOFAIL);
1501 tp = nv_open(stakptr(offset), sh.var_tree, NV_VARNAME);
/ast/src/cmd/ksh93/bltins/
H A Dtypeset.c132 return(setall(argv,flag,tdata.sh->var_tree, &tdata));
183 Namval_t *np = nv_search((char*)PATHNOD,tdata.sh->var_tree,HASH_BUCKET);
225 troot = tdata.sh->var_tree;
430 tdata.tp = nv_open(stkptr(stkp,offset),tdata.sh->var_tree,NV_VARNAME|NV_NOARRAY|NV_NOASSIGN);
435 tdata.tp = nv_open(stkptr(stkp,offset),tdata.sh->var_tree,NV_VARNAME|NV_NOARRAY|NV_NOASSIGN);
666 if(troot!=shp->var_tree && (nv_isnull(np) || !print_namval(sfstdout,np,0,tp)))
676 if(comvar || (shp->last_root==shp->var_tree && (tp->tp || (!shp->st.real_fun && (nvflags&NV_STATIC)) || (!(flag&(NV_EXPORT|NV_RDONLY)) && nv_isattr(np,(NV_EXPORT|NV_IMPORT))==(NV_EXPORT|NV_IMPORT)))))
681 if(troot==shp->var_tree)
788 if(troot!=shp->var_tree)
819 hp = dtvnext(shp->var_tree);
[all...]
H A Dgetopts.c96 np = nv_open(argv[1],shp->var_tree,NV_NOASSIGN|NV_VARNAME);
181 np = nv_open(nv_name(OPTARGNOD),shp->var_tree,0);
H A Dmisc.c127 nv_scan(shp->var_tree,noexport,0,NV_EXPORT,NV_EXPORT);
133 (*cp=0,np=nv_search(arg->argval,shp->var_tree,0)))
265 shp->st.var_local = shp->st.save_tree = shp->var_tree;
276 prevscope->save_tree = shp->var_tree;
H A Dread.c240 np = nv_open(name,shp->var_tree,oflags);
274 if(dtvnext(shp->var_tree) || shp->namespace)
275 np = nv_open(nv_name(REPLYNOD),shp->var_tree,0);
321 Namval_t *mp = nv_open(name,shp->var_tree,oflags|NV_NOREF);
782 np = nv_open(name,shp->var_tree,NV_NOASSIGN|NV_VARNAME);
H A Dalarm.c262 np = nv_open(argv[0],shp->var_tree,NV_NOARRAY|NV_VARNAME|NV_NOASSIGN);
H A Denum.c230 tp = nv_open(stakptr(n), shp->var_tree, NV_VARNAME);
H A Dmkservice.c453 np = nv_open(var,sh.var_tree,NV_ARRAY|NV_VARNAME|NV_NOASSIGN);
/ast/src/cmd/ksh93/include/
H A Dshell.h127 Dt_t *var_tree; member in struct:sh_scope
138 Dt_t *var_tree; /* for shell variables */ member in struct:Shell_s
/ast/src/cmd/kshlib/open/
H A Dopen.c113 dp->format = nv_search(stkptr(stkstd,offset),sh.var_tree,NV_ADD);
230 nq = nv_search(stkptr(stkstd,offset),sh.var_tree,NV_ADD);
524 np = nv_open(argv[0],shp->var_tree,NV_ARRAY|NV_VARNAME|NV_NOASSIGN);
/ast/src/cmd/kshlib/dss/
H A Ddss.c243 rp = nv_open(name, shp->var_tree, NV_IDENT);
246 nv_setref(rp,shp->var_tree,NV_VARNAME|NV_NOREF);
631 else if(nq=nv_open(val,sh.var_tree,NV_VARNAME|NV_ARRAY|NV_NOADD|NV_NOFAIL))
875 if(val && (nq=nv_open(val,sh.var_tree,NV_VARNAME|NV_ARRAY|NV_NOADD|NV_NOFAIL)))
1507 if(!(np = nv_open(*argv, ((Shell_t*)bp->shp)->var_tree, NV_NOADD|NV_VARNAME|NV_NOASSIGN)))
1555 np = nv_open(tmp, shp->var_tree, NV_VARNAME);
1565 rp = nv_open("dss", shp->var_tree, NV_IDENT);
1568 nv_setref(rp,shp->var_tree,NV_VARNAME|NV_NOREF);

Completed in 114 milliseconds

12