Lines Matching +defs:val +defs:offset
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);
1075 * is put onto the stack at the current offset.
1084 int c,offset = staktell();
1117 cp = stakptr(offset) + (cp-name);
1122 nq=nv_open(stakptr(offset),0,NV_VARNAME|NV_NOASSIGN|NV_NOADD|NV_NOFAIL);
1143 stakseek(offset);
1161 int offset=staktell();
1163 path = name = stakptr(offset);
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)
1430 int offset = stktell(stkp);
1433 fname = stkptr(stkp,offset);