Lines Matching defs:sub
392 int nv_arraysettype(Namval_t *np, Namval_t *tp, const char *sub, int flags)
403 if(nq = nv_search(sub, ap->table, NV_ADD))
440 char *name, *sub=0;
486 if(!(nelem&(ARRAY_SCAN|ARRAY_UNDEF)) && (sub=nv_getsub(np)))
487 sub = strdup(sub);
539 if(sub)
542 nv_putsub(np,sub,0L);
543 free((void*)sub);
1335 static int array_fixed_init(Namval_t *np, char *sub, char *cp)
1361 fp->max[0] = (int)sh_arith(shp,(char*)sub);
1384 static char *array_fixed(Namval_t *np, char *sub, char *cp,int mode)
1399 if(*sub==0)
1404 size = (int)sh_arith(shp,(char*)sub);
1590 int sub = -1;
1597 sub = ap->maxi;
1598 while(--sub>0 && ap->val[sub].cp==0);
1599 return(sub);