Lines Matching +defs:val +defs:event

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);
423 * Set disc on given <event> to <action>
425 * A null return value indicates that no <event> is known for <np>
426 * If <event> is NULL, then return the event name after <action>
427 * If <event> is NULL, and <action> is NULL, return the first event
429 char *nv_setdisc(register Namval_t* np,register const char *event,Namval_t *action,register Namfun_t *fp)
447 if(!event)
452 event = (char*)action;
456 if(strcmp(event,name)==0)
461 event = 0;
470 return((*fp->disc->setdisc)(np,event,action,fp));
484 return((*fp->disc->setdisc)(np,event,action,fp));
533 * Set disc on given <event> to <action>
535 * A null return value indicates that no <event> is known for <np>
536 * If <event> is NULL, then return the event name after <action>
537 * If <event> is NULL, and <action> is NULL, return the first event
539 static char *setdisc(register Namval_t* np,register const char *event,Namval_t *action,register Namfun_t *fp)
546 if(!event)
551 event = (char*)action;
555 if(strcmp(event,name)==0)
560 event = 0;
565 return(nv_setdisc(np,event,action,fp));
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))
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)