Lines Matching refs:nalloc
253 if(l->listptr==0 || l->nalloc==0){ in growlist()
254 l->nalloc = INCR; in growlist()
257 }else if(l->nused == l->nalloc){ in growlist()
258 l->listptr = erealloc(l->listptr, (l->nalloc+INCR)*sizeof(void*)); in growlist()
259 memset(l->ptr+l->nalloc, 0, INCR*sizeof(void*)); in growlist()
260 l->nalloc += INCR; in growlist()
300 s->nalloc = n+10; in allocstring()
301 s->r = emalloc(s->nalloc*sizeof(Rune)); in allocstring()
379 if(s->n+1 >= s->nalloc){ in Straddc()
380 s->nalloc += 10; in Straddc()
381 s->r = erealloc(s->r, s->nalloc*sizeof(Rune)); in Straddc()