Lines Matching +defs:val +defs:event
251 static void assign(Namval_t *np,const char* val,int flags,Namfun_t *handle)
261 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))
275 if(val || isblocked(bp,type))
279 nv_putv(np,val,flags,handle);
290 nv_putval(SH_VALNOD, val, (flags&NV_INTEGER)?flags:NV_NOFREE);
309 if(val)
333 nv_putv(np,val,flags,handle);
342 nv_putv(np, val, flags, handle);
440 * Set disc on given <event> to <action>
442 * A null return value indicates that no <event> is known for <np>
443 * If <event> is NULL, then return the event name after <action>
444 * If <event> is NULL, and <action> is NULL, return the first event
446 char *nv_setdisc(register Namval_t* np,register const char *event,Namval_t *action,register Namfun_t *fp)
464 if(!event)
469 event = (char*)action;
473 if(strcmp(event,name)==0)
478 event = 0;
487 return((*fp->disc->setdisc)(np,event,action,fp));
501 return((*fp->disc->setdisc)(np,event,action,fp));
550 * Set disc on given <event> to <action>
552 * A null return value indicates that no <event> is known for <np>
553 * If <event> is NULL, then return the event name after <action>
554 * If <event> is NULL, and <action> is NULL, return the first event
556 static char *setdisc(register Namval_t* np,register const char *event,Namval_t *action,register Namfun_t *fp)
563 if(!event)
568 event = (char*)action;
572 if(strcmp(event,name)==0)
577 event = 0;
582 return(nv_setdisc(np,event,action,fp));
603 static void putdisc(Namval_t* np, const char* val, int flag, Namfun_t* fp)
605 nv_putv(np,val,flag,fp);
606 if(!val && !(flag&NV_NOFREE))
781 static void put_notify(Namval_t* np,const char *val,int flags,Namfun_t *fp)
784 nv_putv(np,val,flags,fp);
838 static void *num_clone(register Namval_t *np, void *val)
842 if(!val)
869 memcpy(nval,val,size);
908 const char *val = mp->nvalue.cp;
942 if(mp->nvalue.cp==val && !nv_isattr(np,NV_INTEGER))
995 static void clone_putv(Namval_t *np,const char* val,int flags,Namfun_t *handle)
1001 if(val)
1004 nv_putval(np,val,flags);
1272 static void put_table(register Namval_t* np, const char* val, int flags, Namfun_t* fp)
1277 nv_putv(np,val,flags,fp);
1278 if(val)