Lines Matching refs:array
122 reg Sfio_t** array;
138 { if(p->s_sf == 0) /* initialize pool array */
139 { p->s_sf = sizeof(p->array)/sizeof(p->array[0]);
140 p->sf = p->array;
142 else /* allocate a larger array */
143 { n = (p->sf != p->array ? p->s_sf : (p->s_sf/4 + 1)*4) + 4;
144 if(!(array = (Sfio_t**)malloc(n*sizeof(Sfio_t*))) )
147 /* move old array to new one */
148 memcpy((Void_t*)array,(Void_t*)p->sf,p->n_sf*sizeof(Sfio_t*));
149 if(p->sf != p->array)
152 p->sf = array;
157 /* always add at end of array because if this was done during some sort