Lines Matching refs:nalloc
75 res->nalloc = nelts; /* ...but this many allocated */
109 if (arr->nelts == arr->nalloc) {
110 int new_size = (arr->nalloc <= 0) ? 1 : arr->nalloc * 2;
115 memcpy(new_data, arr->elts, arr->nalloc * arr->elt_size);
116 memset(new_data + arr->nalloc * arr->elt_size, 0,
117 arr->elt_size * (new_size - arr->nalloc));
119 arr->nalloc = new_size;
128 if (arr->nelts == arr->nalloc) {
129 int new_size = (arr->nalloc <= 0) ? 1 : arr->nalloc * 2;
134 memcpy(new_data, arr->elts, arr->nalloc * arr->elt_size);
136 arr->nalloc = new_size;
148 if (dst->nelts + src->nelts > dst->nalloc) {
149 int new_size = (dst->nalloc <= 0) ? 1 : dst->nalloc * 2;
157 memcpy(new_data, dst->elts, dst->nalloc * elt_size);
160 dst->nalloc = new_size;
173 make_array_core(res, p, arr->nalloc, arr->elt_size, 0);
178 res->elt_size * (res->nalloc - res->nelts));
195 res->nalloc = arr->nelts; /* Force overflow on push */
367 if (t->a.nelts == t->a.nalloc) {
369 func ? func : "table_push", t->creator, t->a.nalloc);
417 make_array_core(&new->a, p, t->a.nalloc, sizeof(apr_table_entry_t), 0);