Lines Matching refs:old2new

1181 static int	is_old2new_unique_mapping(const char * const old2new, int num_old, int num_new)  in is_old2new_unique_mapping()  argument
1192 if (-1 == is_uniq_row(old2new, num_new, i)) in is_old2new_unique_mapping()
1198 if (-1 == is_uniq_col(old2new, num_old, num_new, i)) in is_old2new_unique_mapping()
1217 static void resolve_old2new(char *old2new, int num_old, int num_new) in resolve_old2new() argument
1222 if (SUCCEED == is_old2new_unique_mapping(old2new, num_old, num_new)) in resolve_old2new()
1241 …if (-1 != (c = is_uniq_row(old2new, num_new, i)) && -1 != is_uniq_col(old2new, num_old, num_new, c… in resolve_old2new()
1288 p = old2new + i * num_new; /* the first element of the current row */ in resolve_old2new()
1294 cross_out(old2new, num_old, num_new, i, j, protected_rows, protected_cols); in resolve_old2new()
1343 p = old2new + i * num_new; /* the first element of the current row */ in resolve_old2new()
1349 cross_out(old2new, num_old, num_new, i, j, protected_rows, protected_cols); in resolve_old2new()
1392 char *old2new, *p; in create_old2new_and_copy_of() local
1395 old2new = (char *)zbx_malloc(NULL, (size_t)num_new * (size_t)num_old * sizeof(char)); in create_old2new_and_copy_of()
1396 p = old2new; in create_old2new_and_copy_of()
1425 zbx_free(old2new); in create_old2new_and_copy_of()
1428 zbx_free(old2new); in create_old2new_and_copy_of()
1440 resolve_old2new(old2new, num_old, num_new); in create_old2new_and_copy_of()
1442 return old2new; in create_old2new_and_copy_of()
1460 static int find_old2new(const char * const old2new, int num_new, int i_old) in find_old2new() argument
1463 const char *p = old2new + i_old * num_new; in find_old2new()
3144 int logfiles_num, const char *old2new, int *seq) in transfer_for_rotate() argument
3149 -1 != (j = find_old2new(old2new, logfiles_num, idx))) in transfer_for_rotate()
3166 else if (1 == logfiles_old[idx].incomplete && -1 != (j = find_old2new(old2new, logfiles_num, idx))) in transfer_for_rotate()
3183 int logfiles_num, const char *old2new, int *seq) in transfer_for_copytruncate() argument
3185 const char *p = old2new + idx * logfiles_num; /* start of idx-th row in 'old2new' array */ in transfer_for_copytruncate()
3250 char *old2new; in update_new_list_from_old() local
3253 if (NULL == (old2new = create_old2new_and_copy_of(rotation_type, logfiles_old, logfiles_num_old, in update_new_list_from_old()
3263 transfer_for_copytruncate(logfiles_old, i, logfiles, logfiles_num, old2new, seq); in update_new_list_from_old()
3265 transfer_for_rotate(logfiles_old, i, logfiles, logfiles_num, old2new, seq); in update_new_list_from_old()
3276 if (0 < max_old_seq && -1 == (*start_idx = find_old2new(old2new, logfiles_num, old_last))) in update_new_list_from_old()
3284 zbx_free(old2new); in update_new_list_from_old()