Lines Matching refs:nq

690 	register Namval_t	*np=0, *nq=0;  in nv_create()  local
759 nq = np; in nv_create()
796 if(nq==np) in nv_create()
801 else if(nq) in nv_create()
803 if(nv_isnull(np) && c!='.' && (np->nvfun=nv_cover(nq))) in nv_create()
804 np->nvname = nq->nvname; in nv_create()
844 if(np==nq) in nv_create()
877 if(!nq && *sp=='[' && *cp==0 && cp[-1]==']') in nv_create()
980 if(!(nq = nv_opensub(np))) in nv_create()
993 if(ap && ap->table && (nq=nv_search(sub,ap->table,n))) in nv_create()
994 nq->nvenv = (char*)np; in nv_create()
995 if(nq && nv_isnull(nq)) in nv_create()
996 nq = nv_arraychild(np,nq,c); in nv_create()
998 if(nq) in nv_create()
1000 if(c=='.' && !nv_isvtree(nq)) in nv_create()
1004 nv_setvtree(nq); in nv_create()
1006 np = nq; in nv_create()
1009 return(nq); in nv_create()
1033 if((nq = (*fp->disc->createf)(np,cp+1,flags,fp)) == np) in nv_create()
1039 else if(np=nq) in nv_create()
2124 register Namval_t *np,*nq, *npnext; in table_unset() local
2133 if(nq=dtsearch(oroot,np)) in table_unset()
2135 if(nv_cover(nq)) in table_unset()
2139 if(nv_isattr(nq, NV_INTEGER)) in table_unset()
2141 Sfdouble_t d = nv_getnum(nq); in table_unset()
2142 nv_putval(nq,(char*)&d,NV_LDOUBLE); in table_unset()
2145 nv_putval(nq, strdup(nv_getval(nq)), NV_RDONLY); in table_unset()
2147 nv_putval(nq, nv_getval(nq), NV_RDONLY); in table_unset()
2151 if(nv_isattr(nq,NV_EXPORT)) in table_unset()
2152 sh_envput(shp->env,nq); in table_unset()
2160 while((nq=npnext) && memcmp(np->nvname,nq->nvname,len)==0 && nq->nvname[len]=='.') in table_unset()
2163 npnext = (Namval_t*)dtnext(root,nq); in table_unset()
2164 _nv_unset(nq,flags); in table_unset()
2165 nv_delete(nq,root,0); in table_unset()
2219 Namval_t *mp, *nq; in _nv_unset() local
2220 for(mp=(Namval_t*)dtfirst(rp->sdict);mp;mp=nq) in _nv_unset()
2222 nq = dtnext(rp->sdict,mp); in _nv_unset()
2986 register Namval_t *nq, *nr=0; in nv_setref() local
3004 if(!(nr = nq = nv_open(cp, hp, flags|NV_NOSCOPE|NV_NOADD|NV_NOFAIL))) in nv_setref()
3008 if(nq && ep && nv_isarray(nq) && !nv_getsub(nq)) in nv_setref()
3009 nv_endsubscript(nq,ep-1,NV_ADD); in nv_setref()
3012 nr= nq = nv_open(cp, hp, flags); in nv_setref()
3026 if(!(hp=dtvnext(hp)) || (nq=nv_search((char*)np,hp,NV_ADD|HASH_BUCKET))==np) in nv_setref()
3029 if(nq && !ep && (ap=nv_arrayptr(nq)) && !(ap->nelem&(ARRAY_UNDEF|ARRAY_SCAN))) in nv_setref()
3030 ep = nv_getsub(nq); in nv_setref()
3034 if(nv_isarray(nq)) in nv_setref()
3035 ep = nv_getsub(nq); in nv_setref()
3041 if(nq = nv_opensub(nr)) in nv_setref()
3044 nq = nr; in nv_setref()
3050 np->nvalue.nrp->np = nq; in nv_setref()
3122 Namval_t *nq; in nv_unref() local
3128 nq = nv_refnode(np); in nv_unref()
3130 np->nvalue.cp = strdup(nv_name(nq)); in nv_unref()
3134 for(fp=nq->nvfun; fp; fp = fp->next) in nv_unref()
3138 optimize_clear(nq,fp); in nv_unref()
3196 Namval_t *nq= sh.last_table, *mp= (Namval_t*)np->nvenv; in nv_name() local
3203 sh.last_table = nq; in nv_name()