Lines Matching refs:index
39 v->index = XCALLOC (MTYPE_VECTOR_INDEX, sizeof (void *) * size);
50 vector_only_index_free (void *index)
52 XFREE (MTYPE_VECTOR_INDEX, index);
58 XFREE (MTYPE_VECTOR_INDEX, v->index);
72 new->index = XCALLOC (MTYPE_VECTOR_INDEX, size);
73 memcpy (new->index, v->index, size);
78 /* Check assigned index, and if it runs short double index pointer */
85 v->index = XREALLOC (MTYPE_VECTOR_INDEX,
86 v->index, sizeof (void *) * (v->alloced * 2));
87 memset (&v->index[v->alloced], 0, sizeof (void *) * v->alloced);
94 /* This function only returns next empty slot index. It dose not mean
95 the slot's index memory is assigned, please call vector_ensure()
106 if (v->index[i] == 0)
121 v->index[i] = val;
129 /* Set value to specified index slot. */
135 v->index[i] = val;
149 return v->index[i];
157 return v->index[i];
160 /* Unset value at specified index slot. */
167 v->index[i] = NULL;
172 while (i && v->index[--i] == NULL && v->active--)
185 if (v->index[i] != NULL)