Lines Matching refs:num_elements

46   int			num_elements,	/* Number of array elements */  member
232 for (i = a->num_elements, e = a->elements; i > 0; i --, e ++) in cupsArrayClear()
241 a->num_elements = 0; in cupsArrayClear()
269 return (a->num_elements); in cupsArrayCount()
296 if (a->current >= 0 && a->current < a->num_elements) in cupsArrayCurrent()
332 for (i = a->num_elements, e = a->elements; i > 0; i --, e ++) in cupsArrayDelete()
386 if (a->num_elements) in cupsArrayDup()
392 da->elements = malloc((size_t)a->num_elements * sizeof(void *)); in cupsArrayDup()
411 for (i = 0; i < a->num_elements; i ++) in cupsArrayDup()
420 memcpy(da->elements, a->elements, (size_t)a->num_elements * sizeof(void *)); in cupsArrayDup()
423 da->num_elements = a->num_elements; in cupsArrayDup()
424 da->alloc_elements = a->num_elements; in cupsArrayDup()
461 if (!a->num_elements) in cupsArrayFind()
481 if (current < 0 || current >= a->num_elements) in cupsArrayFind()
664 a->current = a->num_elements - 1; in cupsArrayLast()
831 if (a->current < a->num_elements) in cupsArrayNext()
903 if (!a->num_elements) in cupsArrayRemove()
914 a->num_elements --; in cupsArrayRemove()
919 if (current < a->num_elements) in cupsArrayRemove()
921 (size_t)(a->num_elements - current) * sizeof(void *)); in cupsArrayRemove()
935 if (a->num_elements <= 1) in cupsArrayRemove()
960 if (a->current >= 0 && a->current < a->num_elements) in cupsArrayRestore()
1033 if (a->num_elements >= a->alloc_elements) in cups_array_add()
1077 if (!a->num_elements || !a->compare) in cups_array_add()
1086 current = a->num_elements; /* Append to the end */ in cups_array_add()
1133 while (current < a->num_elements && in cups_array_add()
1143 if (current < a->num_elements) in cups_array_add()
1150 (size_t)(a->num_elements - current) * sizeof(void *)); in cups_array_add()
1177 a->num_elements ++; in cups_array_add()
1181 for (current = 0; current < a->num_elements; current ++) in cups_array_add()
1217 if (prev >= 0 && prev < a->num_elements) in cups_array_find()
1225 (diff > 0 && prev == (a->num_elements - 1))) in cups_array_find()
1253 right = a->num_elements - 1; in cups_array_find()
1263 right = a->num_elements - 1; in cups_array_find()
1308 for (current = 0; current < a->num_elements; current ++) in cups_array_find()