Lines Matching refs:arp
194 static union Value *array_getup(Namval_t *np, Namarr_t *arp, int update)
196 register struct index_array *ap = (struct index_array*)arp;
202 if(!arp)
207 mp = (Namval_t*)((*arp->fun)(np,NIL(char*),NV_ACURRENT));
214 return((union Value*)((*arp->fun)(np,NIL(char*),0)));
217 else if(fp = (struct fixed_array*)arp->fixed)
220 array_fixed_setdata(np,arp,fp);
242 int nv_arrayisset(Namval_t *np, Namarr_t *arp)
244 register struct index_array *ap = (struct index_array*)arp;
253 Namfun_t *fp = &arp->hdr;
268 static Namval_t *array_find(Namval_t *np,Namarr_t *arp, int flag)
270 register struct index_array *ap = (struct index_array*)arp;
275 struct fixed_array *fp=(struct fixed_array*)(arp->fixed);
313 mp = (Namval_t*)((*arp->fun)(np,NIL(char*),NV_ACURRENT));
773 * Increase the size of the indexed array of elements in <arp>
774 * so that <maxi> is a legal index. If <arp> is 0, an array
779 static struct index_array *array_grow(Namval_t *np, register struct index_array *arp,int maxi)
783 register int newsize = arsize(arp,maxi+1);
793 if(arp)
795 ap->header = arp->header;
797 for(i=0;i < arp->maxi;i++)
798 ap->val[i].cp = arp->val[i].cp;
799 memcpy(ap->bits, arp->bits, arp->maxi);
800 array_setptr(np,arp,ap);
801 free((void*)arp);