Lines Matching defs:index
40 v->index = XCALLOC (MTYPE_VECTOR_INDEX, sizeof (void *) * size);
51 vector_only_index_free (void *index)
53 XFREE (MTYPE_VECTOR_INDEX, index);
59 XFREE (MTYPE_VECTOR_INDEX, v->index);
73 new->index = XCALLOC (MTYPE_VECTOR_INDEX, size);
74 memcpy (new->index, v->index, size);
79 /* Check assigned index, and if it runs short double index pointer */
86 v->index = XREALLOC (MTYPE_VECTOR_INDEX,
87 v->index, sizeof (void *) * (v->alloced * 2));
88 memset (&v->index[v->alloced], 0, sizeof (void *) * v->alloced);
95 /* This function only returns next empty slot index. It dose not mean
96 the slot's index memory is assigned, please call vector_ensure()
107 if (v->index[i] == 0)
122 v->index[i] = val;
130 /* Set value to specified index slot. */
136 v->index[i] = val;
149 return v->index[i];
152 /* Unset value at specified index slot. */
159 v->index[i] = NULL;
164 while (i && v->index[--i] == NULL && v->max--)
177 if (v->index[i] != NULL)