Lines Matching +defs:val +defs:sp
37 int nv_compare(Dt_t* dict, Void_t *sp, Void_t *dp, Dtdisc_t *disc)
39 if(sp==dp)
41 return(strcmp((char*)sp,(char*)dp));
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);
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);
1085 register char *sp, *cp=0;
1091 for(sp=(char*)name+1; *sp; sp++)
1093 if(*sp=='=')
1095 if(*sp=='[')
1097 while(*sp=='[')
1099 sp = nv_endsubscript((Namval_t*)0,(char*)sp,0);
1100 if(sp[-1]!=']')
1103 if(*sp==0)
1105 if(*sp!='.')
1107 cp = sp;
1109 else if(*sp=='.')
1110 cp = sp;
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)