Lines Matching refs:var_tree

320 	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,0))
830 if(shp->var_tree->walk==shp->var_base || (shp->var_tree->walk!=shp->var_tree && shp->namespace && nv_dict(shp->namespace)==shp->var_tree->walk))
832 if(shp->var_tree->walk==shp->var_base)
839 shp->last_root = shp->var_tree->walk;
843 root = shp->var_tree->walk;
853 if(shp->var_tree->walk)
854 root = shp->var_tree->walk;
862 if(np && shp->var_tree->walk==shp->var_tree)
865 nv_delete(np,shp->var_tree,0);
868 if(!np || shp->var_tree->walk!=root)
873 if(!np && !noscope && *name!='.' && shp->namespace && root==shp->var_tree)
893 if(shp->namespace && nv_dict(shp->namespace)==shp->var_tree && nv_isattr(nq,NV_EXPORT))
1349 root = shp->var_tree;
1363 root = shp->var_tree;
1408 if(root==shp->var_tree)
1541 else if(!array_assoc(ap) && (mp = nv_open(cp,shp->var_tree,NV_NOFAIL|NV_VARNAME|NV_NOARRAY|NV_NOASSIGN|NV_NOADD)) && nv_isvtree(np))
2224 nv_scan(shp->var_tree, attstore,(void*)0,0,(NV_RDONLY|NV_UTOL|NV_LTOU|NV_RJUST|NV_LJUST|NV_ZFILL|NV_INTEGER));
2245 namec = nv_scan(shp->var_tree,nullscan,(void*)0,NV_EXPORT,NV_EXPORT);
2251 nv_scan(shp->var_tree, pushnam,&data,NV_EXPORT, NV_EXPORT);
2254 nv_scan(shp->var_tree, attstore,&data,0,(NV_RDONLY|NV_UTOL|NV_LTOU|NV_RJUST|NV_LJUST|NV_ZFILL|NV_INTEGER));
2355 dtview(newscope,(Dt_t*)shp->var_tree);
2356 shp->var_tree = newscope;
2360 shp->var_tree = dtview(newscope,0);
2369 shp->var_tree = newscope;
2509 npv = nv_open(name,shp->var_tree,NV_NOARRAY|NV_VARNAME|NV_NOADD);
2613 if(!dtvnext(shp->var_tree))
2615 return(dtsearch(shp->var_tree,np));
3137 if(!shp->var_tree)
3144 else if((np = nv_search(name,shp->var_tree,0)) && nv_isattr(np,NV_EXPORT))
3171 np = nv_open(name,shp->var_tree,NV_EXPORT|NV_IDENT|NV_NOARRAY|NV_ASSIGN);
3187 np = nv_open(name,shp->var_tree,NV_EXPORT|NV_IDENT|NV_NOARRAY|NV_ASSIGN);
3252 hp = dtvnext(shp->var_tree);
3271 hp = shp->var_tree;
3296 if(mp = nv_open(sfstruse(shp->strbuf),shp->var_tree,NV_VARNAME|NV_ADD|NV_ARRAY))
3395 if((nr=nv_open(cp, hp?hp:shp->var_tree, flags|NV_NOSCOPE|NV_NOADD|NV_NOFAIL)))
3404 hp = hp?(openmatch?openmatch:shp->var_base):shp->var_tree;
3435 if(shp->last_root == shp->var_tree && root!=shp->var_tree)
3533 shp->var_tree = scope->var_tree;
3541 register Dt_t *root = shp->var_tree;
3551 shp->var_tree=dp;