Lines Matching defs:arp
156 static union Value *array_getup(Namval_t *np, Namarr_t *arp, int update)
158 register struct index_array *ap = (struct index_array*)arp;
161 if(!arp)
166 mp = (Namval_t*)((*arp->fun)(np,NIL(char*),NV_ACURRENT));
173 return((union Value*)((*arp->fun)(np,NIL(char*),0)));
192 int nv_arrayisset(Namval_t *np, Namarr_t *arp)
194 register struct index_array *ap = (struct index_array*)arp;
209 static Namval_t *array_find(Namval_t *np,Namarr_t *arp, int flag)
211 register struct index_array *ap = (struct index_array*)arp;
238 mp = (Namval_t*)((*arp->fun)(np,NIL(char*),NV_ACURRENT));
633 * Increase the size of the indexed array of elements in <arp>
634 * so that <maxi> is a legal index. If <arp> is 0, an array
639 static struct index_array *array_grow(Namval_t *np, register struct index_array *arp,int maxi)
643 register int newsize = arsize(arp,maxi+1);
653 if(arp)
655 ap->header = arp->header;
657 for(i=0;i < arp->maxi;i++)
658 ap->val[i].cp = arp->val[i].cp;
659 memcpy(ap->bits, arp->bits, arp->maxi);
660 array_setptr(np,arp,ap);
661 free((void*)arp);