Lines Matching +refs:val +refs:current
44 "array of type \b\f?\f\b. If a variable already exists, the current "
49 "array of type \b\f?\f\b. If a variable already exists, the current "
94 unsigned short current;
103 unsigned short current;
225 static void put_chtype(Namval_t* np, const char* val, int flag, Namfun_t* fp)
227 if(!val && nv_isattr(np,NV_REF))
229 nv_putv(np,val,flag,fp);
230 if(!val)
535 static void put_type(Namval_t* np, const char* val, int flag, Namfun_t* fp)
538 if(val && (nq=nv_open(val,sh.var_tree,NV_VARNAME|NV_ARRAY|NV_NOADD|NV_NOFAIL)))
549 nv_putv(np,val,flag,fp);
550 if(!val)
580 dp->current = 0;
582 else if(++dp->current>=dp->numnodes)
584 return(nv_namptr(dp->nodes,dp->current));
978 char *val=nv_getval(np);
981 nv_putval(nq,(val?val:0),nv_isattr(np,~(NV_IMPORT|NV_EXPORT|NV_ARRAY)));
1287 char *val=0;
1328 val = strdup(nv_getval(np));
1361 if(val)
1363 nv_putval(np,val,NV_RDONLY);
1364 free((void*)val);
1517 static void put_stat(Namval_t* np, const char* val, int flag, Namfun_t* nfp)
1519 if(val)
1521 if(stat(val,(struct stat*)np->nvalue.cp)<0)
1522 sfprintf(sfstderr,"stat of %s failed\n",val);
1525 nv_putv(np,val,flag,nfp);