Lines Matching defs:insert
49 insert, /* Last inserted element */
69 static int cups_array_add(cups_array_t *a, void *e, int insert);
243 a->insert = -1;
380 da->insert = a->insert;
587 return (a->insert);
611 * 'cupsArrayInsert()' - Insert an element in the array.
637 * Insert the element...
755 a->insert = -1;
926 if (current < a->insert)
927 a->insert --;
928 else if (current == a->insert)
929 a->insert = -1;
1012 * 'cups_array_add()' - Insert or append an element to the array.
1020 int insert) /* I - 1 = insert, 0 = append */
1027 DEBUG_printf(("7cups_array_add(a=%p, e=%p, insert=%d)", (void *)a, e, insert));
1080 * No elements or comparison function, insert/append as needed...
1083 if (insert)
1084 current = 0; /* Insert at beginning */
1094 current = cups_array_find(a, e, a->insert, &diff);
1099 * Insert after the current element...
1113 if (insert)
1116 * Insert at beginning of run...
1140 * Insert or append the element...
1159 DEBUG_printf(("9cups_array_add: insert element at index " CUPS_LLFMT, CUPS_LLCAST current));
1178 a->insert = current;