Lines Matching defs:del_num
815 int first, int del_num);
817 * If del_bytes == -1, starting from position 'first' delete del_num
820 * If last_first == 0. Starting from position 'first' delete del_num-1
823 * If last_first == 1. Starting from position 'first+1' delete del_num-1
828 int first, int del_num, int del_bytes)
834 RFALSE(del_num < 0, "10160: del_num can not be < 0. del_num==%d",
835 del_num);
837 || first + del_num > item_amount,
840 first + del_num, item_amount);
842 if (del_num == 0)
845 if (first == 0 && del_num == item_amount && del_bytes == -1) {
852 /* delete del_num items beginning from item in position first */
853 leaf_delete_items_entirely(cur_bi, first, del_num);
857 * delete del_num-1 items beginning from
860 leaf_delete_items_entirely(cur_bi, first, del_num - 1);
872 * delete del_num-1 items beginning from
876 del_num - 1);
1239 /* delete del_num items from buffer starting from the first'th item */
1241 int first, int del_num)
1251 RFALSE(del_num < 0, "10215: del_num less than 0 (%d)", del_num);
1253 if (del_num == 0)
1259 RFALSE(first < 0 || first + del_num > nr,
1260 "10220: first=%d, number=%d, there is %d items", first, del_num,
1263 if (first == 0 && del_num == nr) {
1278 last_removed_loc = ih_location(&ih[del_num - 1]);
1284 memmove(ih, ih + del_num, (nr - first - del_num) * IH_SIZE);
1287 for (i = first; i < nr - del_num; i++)
1293 set_blkh_nr_item(blkh, blkh_nr_item(blkh) - del_num);
1296 IH_SIZE * del_num));
1305 IH_SIZE * del_num));