Lines Matching +defs:val +defs:names
238 static void assign(Namval_t *np,const char* val,int flags,Namfun_t *handle)
248 if(val && (tp=nv_type(np)) && (nr=nv_open(val,sh.var_tree,NV_VARNAME|NV_ARRAY|NV_NOADD|NV_NOFAIL)) && tp==nv_type(nr))
262 if(val || isblocked(bp,type))
266 nv_putv(np,val,flags,handle);
277 nv_putval(SH_VALNOD, val, (flags&NV_INTEGER)?flags:NV_NOFREE);
296 if(val)
320 nv_putv(np,val,flags,handle);
328 nv_putv(np, val, flags, handle);
581 static void putdisc(Namval_t* np, const char* val, int flag, Namfun_t* fp)
583 nv_putv(np,val,flag,fp);
584 if(!val && !(flag&NV_NOFREE))
627 int nv_adddisc(Namval_t *np, const char **names, Namval_t **funs)
631 register const char **av=names;
647 vp->bnames = names;
759 static void put_notify(Namval_t* np,const char *val,int flags,Namfun_t *fp)
762 nv_putv(np,val,flags,fp);
816 static void *num_clone(register Namval_t *np, void *val)
820 if(!val)
847 memcpy(nval,val,size);
886 const char *val = mp->nvalue.cp;
920 if(mp->nvalue.cp==val && !nv_isattr(np,NV_INTEGER))
973 static void clone_putv(Namval_t *np,const char* val,int flags,Namfun_t *handle)
979 if(val)
982 nv_putval(np,val,flags);
1248 static void put_table(register Namval_t* np, const char* val, int flags, Namfun_t* fp)
1253 nv_putv(np,val,flags,fp);
1254 if(val)
1271 * return space separated list of names of variables in given tree