The resize functions should be used.
The adjust perform extra tasks which are meaningless for append and append_all.
extern f_status_t private_f_limit_sets_append(const f_limit_set_t source, f_limit_sets_t *destination) {
if (destination->used + 1 > destination->size) {
- const f_status_t status = private_f_limit_sets_adjust(destination->used + F_memory_default_allocation_small_d, destination);
+ const f_status_t status = private_f_limit_sets_resize(destination->used + F_memory_default_allocation_small_d, destination);
if (F_status_is_error(status)) return status;
}
extern f_status_t private_f_limit_sets_append_all(const f_limit_sets_t source, f_limit_sets_t *destination) {
if (destination->used + source.used > destination->size) {
- const f_status_t status = private_f_limit_sets_adjust(destination->used + source.used, destination);
+ const f_status_t status = private_f_limit_sets_resize(destination->used + source.used, destination);
if (F_status_is_error(status)) return status;
}
extern f_status_t private_f_limit_values_append(const f_limit_value_t source, f_limit_values_t *destination) {
if (destination->used + 1 > destination->size) {
- const f_status_t status = private_f_limit_values_adjust(destination->used + F_memory_default_allocation_small_d, destination);
+ const f_status_t status = private_f_limit_values_resize(destination->used + F_memory_default_allocation_small_d, destination);
if (F_status_is_error(status)) return status;
}
extern f_status_t private_f_limit_values_append_all(const f_limit_values_t source, f_limit_values_t *destination) {
if (destination->used + source.used > destination->size) {
- const f_status_t status = private_f_limit_values_adjust(destination->used + source.used, destination);
+ const f_status_t status = private_f_limit_values_resize(destination->used + source.used, destination);
if (F_status_is_error(status)) return status;
}
#endif // _di_level_0_parameter_checking_
if (destination->used + 1 > destination->size) {
- const f_status_t status = private_f_string_quantitys_adjust(destination->used + F_memory_default_allocation_small_d, destination);
+ const f_status_t status = private_f_string_quantitys_resize(destination->used + F_memory_default_allocation_small_d, destination);
if (F_status_is_error(status)) return status;
}
#endif // _di_level_0_parameter_checking_
if (destination->used + 1 > destination->size) {
- const f_status_t status = private_f_string_ranges_adjust(destination->used + F_memory_default_allocation_small_d, destination);
+ const f_status_t status = private_f_string_ranges_resize(destination->used + F_memory_default_allocation_small_d, destination);
if (F_status_is_error(status)) return status;
}
if (!source.used) return F_data_not;
if (destination->used + source.used > destination->size) {
- const f_status_t status = private_f_string_ranges_adjust(destination->used + source.used, destination);
+ const f_status_t status = private_f_string_ranges_resize(destination->used + source.used, destination);
if (F_status_is_error(status)) return status;
}
f_status_t status = F_none;
if (destination->used + 1 > destination->size) {
- status = private_f_string_triples_adjust(destination->used + F_memory_default_allocation_small_d, destination);
+ status = private_f_string_triples_resize(destination->used + F_memory_default_allocation_small_d, destination);
if (F_status_is_error(status)) return status;
}
f_status_t status = F_none;
if (destination->used + source.used > destination->size) {
- status = private_f_string_triples_adjust(destination->used + source.used, destination);
+ status = private_f_string_triples_resize(destination->used + source.used, destination);
if (F_status_is_error(status)) return status;
}
extern f_status_t private_f_array_lengths_append(const f_array_length_t source, f_array_lengths_t *destination) {
if (destination->used + 1 > destination->size) {
- const f_status_t status = private_f_array_lengths_adjust(destination->used + F_memory_default_allocation_small_d, destination);
+ const f_status_t status = private_f_array_lengths_resize(destination->used + F_memory_default_allocation_small_d, destination);
if (F_status_is_error(status)) return status;
}
extern f_status_t private_f_array_lengths_append_all(const f_array_lengths_t source, f_array_lengths_t *destination) {
if (destination->used + source.used > destination->size) {
- const f_status_t status = private_f_array_lengths_adjust(destination->used + source.used, destination);
+ const f_status_t status = private_f_array_lengths_resize(destination->used + source.used, destination);
if (F_status_is_error(status)) return status;
}
extern f_status_t private_f_cells_append(const f_cell_t source, f_cells_t *destination) {
if (destination->used + 1 > destination->size) {
- const f_status_t status = private_f_cells_adjust(destination->used + F_memory_default_allocation_small_d, destination);
+ const f_status_t status = private_f_cells_resize(destination->used + F_memory_default_allocation_small_d, destination);
if (F_status_is_error(status)) return status;
}
extern f_status_t private_f_cells_append_all(const f_cells_t source, f_cells_t *destination) {
if (destination->used + source.used > destination->size) {
- const f_status_t status = private_f_cells_adjust(destination->used + source.used, destination);
+ const f_status_t status = private_f_cells_resize(destination->used + source.used, destination);
if (F_status_is_error(status)) return status;
}
extern f_status_t private_f_fll_ids_append(const f_fll_id_t source, f_fll_ids_t *destination) {
if (destination->used + 1 > destination->size) {
- const f_status_t status = private_f_fll_ids_adjust(destination->used + F_memory_default_allocation_small_d, destination);
+ const f_status_t status = private_f_fll_ids_resize(destination->used + F_memory_default_allocation_small_d, destination);
if (F_status_is_error(status)) return status;
}
extern f_status_t private_f_fll_ids_append_all(const f_fll_ids_t source, f_fll_ids_t *destination) {
if (destination->used + source.used > destination->size) {
- const f_status_t status = private_f_fll_ids_adjust(destination->used + source.used, destination);
+ const f_status_t status = private_f_fll_ids_resize(destination->used + source.used, destination);
if (F_status_is_error(status)) return status;
}
extern f_status_t private_f_int128s_append(const int128_t source, f_int128s_t *destination) {
if (destination->used + 1 > destination->size) {
- const f_status_t status = private_f_int128s_adjust(destination->used + F_memory_default_allocation_small_d, destination);
+ const f_status_t status = private_f_int128s_resize(destination->used + F_memory_default_allocation_small_d, destination);
if (F_status_is_error(status)) return status;
}
extern f_status_t private_f_int128s_append_all(const f_int128s_t source, f_int128s_t *destination) {
if (destination->used + source.used > destination->size) {
- const f_status_t status = private_f_int128s_adjust(destination->used + source.used, destination);
+ const f_status_t status = private_f_int128s_resize(destination->used + source.used, destination);
if (F_status_is_error(status)) return status;
}
extern f_status_t private_f_int16s_append(const int16_t source, f_int16s_t *destination) {
if (destination->used + 1 > destination->size) {
- const f_status_t status = private_f_int16s_adjust(destination->used + F_memory_default_allocation_small_d, destination);
+ const f_status_t status = private_f_int16s_resize(destination->used + F_memory_default_allocation_small_d, destination);
if (F_status_is_error(status)) return status;
}
extern f_status_t private_f_int16s_append_all(const f_int16s_t source, f_int16s_t *destination) {
if (destination->used + source.used > destination->size) {
- const f_status_t status = private_f_int16s_adjust(destination->used + source.used, destination);
+ const f_status_t status = private_f_int16s_resize(destination->used + source.used, destination);
if (F_status_is_error(status)) return status;
}
extern f_status_t private_f_int32s_append(const int32_t source, f_int32s_t *destination) {
if (destination->used + 1 > destination->size) {
- const f_status_t status = private_f_int32s_adjust(destination->used + F_memory_default_allocation_small_d, destination);
+ const f_status_t status = private_f_int32s_resize(destination->used + F_memory_default_allocation_small_d, destination);
if (F_status_is_error(status)) return status;
}
extern f_status_t private_f_int32s_append_all(const f_int32s_t source, f_int32s_t *destination) {
if (destination->used + source.used > destination->size) {
- const f_status_t status = private_f_int32s_adjust(destination->used + source.used, destination);
+ const f_status_t status = private_f_int32s_resize(destination->used + source.used, destination);
if (F_status_is_error(status)) return status;
}
extern f_status_t private_f_int64s_append(const int64_t source, f_int64s_t *destination) {
if (destination->used + 1 > destination->size) {
- const f_status_t status = private_f_int64s_adjust(destination->used + F_memory_default_allocation_small_d, destination);
+ const f_status_t status = private_f_int64s_resize(destination->used + F_memory_default_allocation_small_d, destination);
if (F_status_is_error(status)) return status;
}
extern f_status_t private_f_int64s_append_all(const f_int64s_t source, f_int64s_t *destination) {
if (destination->used + source.used > destination->size) {
- const f_status_t status = private_f_int64s_adjust(destination->used + source.used, destination);
+ const f_status_t status = private_f_int64s_resize(destination->used + source.used, destination);
if (F_status_is_error(status)) return status;
}
extern f_status_t private_f_int8s_append(const int8_t source, f_int8s_t *destination) {
if (destination->used + 1 > destination->size) {
- const f_status_t status = private_f_int8s_adjust(destination->used + F_memory_default_allocation_small_d, destination);
+ const f_status_t status = private_f_int8s_resize(destination->used + F_memory_default_allocation_small_d, destination);
if (F_status_is_error(status)) return status;
}
extern f_status_t private_f_int8s_append_all(const f_int8s_t source, f_int8s_t *destination) {
if (destination->used + source.used > destination->size) {
- const f_status_t status = private_f_int8s_adjust(destination->used + source.used, destination);
+ const f_status_t status = private_f_int8s_resize(destination->used + source.used, destination);
if (F_status_is_error(status)) return status;
}
extern f_status_t private_f_states_append(const f_state_t source, f_states_t *destination) {
if (destination->used + 1 > destination->size) {
- const f_status_t status = private_f_states_adjust(destination->used + F_memory_default_allocation_small_d, destination);
+ const f_status_t status = private_f_states_resize(destination->used + F_memory_default_allocation_small_d, destination);
if (F_status_is_error(status)) return status;
}
extern f_status_t private_f_states_append_all(const f_states_t source, f_states_t *destination) {
if (destination->used + source.used > destination->size) {
- const f_status_t status = private_f_states_adjust(destination->used + source.used, destination);
+ const f_status_t status = private_f_states_resize(destination->used + source.used, destination);
if (F_status_is_error(status)) return status;
}
extern f_status_t private_f_statuss_append(const f_status_t source, f_statuss_t *destination) {
if (destination->used + 1 > destination->size) {
- const f_status_t status = private_f_statuss_adjust(destination->used + F_memory_default_allocation_small_d, destination);
+ const f_status_t status = private_f_statuss_resize(destination->used + F_memory_default_allocation_small_d, destination);
if (F_status_is_error(status)) return status;
}
extern f_status_t private_f_statuss_append_all(const f_statuss_t source, f_statuss_t *destination) {
if (destination->used + source.used > destination->size) {
- const f_status_t status = private_f_statuss_adjust(destination->used + source.used, destination);
+ const f_status_t status = private_f_statuss_resize(destination->used + source.used, destination);
if (F_status_is_error(status)) return status;
}
extern f_status_t private_f_uint128s_append(const uint128_t source, f_uint128s_t *destination) {
if (destination->used + 1 > destination->size) {
- const f_status_t status = private_f_uint128s_adjust(destination->used + F_memory_default_allocation_small_d, destination);
+ const f_status_t status = private_f_uint128s_resize(destination->used + F_memory_default_allocation_small_d, destination);
if (F_status_is_error(status)) return status;
}
extern f_status_t private_f_uint128s_append_all(const f_uint128s_t source, f_uint128s_t *destination) {
if (destination->used + source.used > destination->size) {
- const f_status_t status = private_f_uint128s_adjust(destination->used + source.used, destination);
+ const f_status_t status = private_f_uint128s_resize(destination->used + source.used, destination);
if (F_status_is_error(status)) return status;
}
extern f_status_t private_f_uint16s_append(const uint16_t source, f_uint16s_t *destination) {
if (destination->used + 1 > destination->size) {
- const f_status_t status = private_f_uint16s_adjust(destination->used + F_memory_default_allocation_small_d, destination);
+ const f_status_t status = private_f_uint16s_resize(destination->used + F_memory_default_allocation_small_d, destination);
if (F_status_is_error(status)) return status;
}
extern f_status_t private_f_uint16s_append_all(const f_uint16s_t source, f_uint16s_t *destination) {
if (destination->used + source.used > destination->size) {
- const f_status_t status = private_f_uint16s_adjust(destination->used + source.used, destination);
+ const f_status_t status = private_f_uint16s_resize(destination->used + source.used, destination);
if (F_status_is_error(status)) return status;
}
extern f_status_t private_f_uint32s_append(const uint32_t source, f_uint32s_t *destination) {
if (destination->used + 1 > destination->size) {
- const f_status_t status = private_f_uint32s_adjust(destination->used + F_memory_default_allocation_small_d, destination);
+ const f_status_t status = private_f_uint32s_resize(destination->used + F_memory_default_allocation_small_d, destination);
if (F_status_is_error(status)) return status;
}
extern f_status_t private_f_uint32s_append_all(const f_uint32s_t source, f_uint32s_t *destination) {
if (destination->used + source.used > destination->size) {
- const f_status_t status = private_f_uint32s_adjust(destination->used + source.used, destination);
+ const f_status_t status = private_f_uint32s_resize(destination->used + source.used, destination);
if (F_status_is_error(status)) return status;
}
extern f_status_t private_f_uint64s_append(const uint64_t source, f_uint64s_t *destination) {
if (destination->used + 1 > destination->size) {
- const f_status_t status = private_f_uint64s_adjust(destination->used + F_memory_default_allocation_small_d, destination);
+ const f_status_t status = private_f_uint64s_resize(destination->used + F_memory_default_allocation_small_d, destination);
if (F_status_is_error(status)) return status;
}
extern f_status_t private_f_uint64s_append_all(const f_uint64s_t source, f_uint64s_t *destination) {
if (destination->used + source.used > destination->size) {
- const f_status_t status = private_f_uint64s_adjust(destination->used + source.used, destination);
+ const f_status_t status = private_f_uint64s_resize(destination->used + source.used, destination);
if (F_status_is_error(status)) return status;
}
extern f_status_t private_f_uint8s_append(const uint8_t source, f_uint8s_t *destination) {
if (destination->used + 1 > destination->size) {
- const f_status_t status = private_f_uint8s_adjust(destination->used + F_memory_default_allocation_small_d, destination);
+ const f_status_t status = private_f_uint8s_resize(destination->used + F_memory_default_allocation_small_d, destination);
if (F_status_is_error(status)) return status;
}
extern f_status_t private_f_uint8s_append_all(const f_uint8s_t source, f_uint8s_t *destination) {
if (destination->used + source.used > destination->size) {
- const f_status_t status = private_f_uint8s_adjust(destination->used + source.used, destination);
+ const f_status_t status = private_f_uint8s_resize(destination->used + source.used, destination);
if (F_status_is_error(status)) return status;
}
f_status_t status = F_none;
if (destination->used + 1 > destination->size) {
- status = private_f_utf_string_triples_adjust(destination->used + F_memory_default_allocation_small_d, destination);
+ status = private_f_utf_string_triples_resize(destination->used + F_memory_default_allocation_small_d, destination);
if (F_status_is_error(status)) return status;
}
f_status_t status = F_none;
if (destination->used + source.used > destination->size) {
- status = private_f_utf_string_triples_adjust(destination->used + source.used, destination);
+ status = private_f_utf_string_triples_resize(destination->used + source.used, destination);
if (F_status_is_error(status)) return status;
}