Lines Matching refs:new_num
61 static inline int old_item_num (int new_num, int affected_item_num, int mode) in old_item_num() argument
63 if (mode == M_PASTE || mode == M_CUT || new_num < affected_item_num) in old_item_num()
64 return new_num; in old_item_num()
68 RFALSE( new_num == 0, in old_item_num()
71 return new_num - 1; in old_item_num()
77 return new_num + 1; in old_item_num()
84 int new_num; in create_virtual_node() local
115 for (new_num = 0; new_num < vn->vn_nr_item; new_num ++) { in create_virtual_node()
117 struct virtual_item * vi = vn->vn_vi + new_num; in create_virtual_node()
118 int is_affected = ((new_num != vn->vn_affected_item_num) ? 0 : 1); in create_virtual_node()
125 j = old_item_num (new_num, vn->vn_affected_item_num, vn->vn_mode); in create_virtual_node()
144 vn->vn_vi[new_num].vi_item_len += tb->insert_size[0]; in create_virtual_node()