macro_setting_load_handle_send_receive_error_continue_1(f_memory_array_increase_by);
- main->setting.state.status = f_string_dynamics_increase_by(total, &sets[i]->names);
+ main->setting.state.status = f_memory_array_increase_by(total, sizeof(f_string_dynamic_t), (void **) &sets[i]->names.array, &sets[i]->names.used, &sets[i]->names.size);
- macro_setting_load_handle_send_receive_error_continue_1(f_string_dynamics_increase_by);
+ macro_setting_load_handle_send_receive_error_continue_1(f_memory_array_increase_by);
- main->setting.state.status = f_string_dynamics_increase_by(total, &sets[i]->buffers);
+ main->setting.state.status = f_memory_array_increase_by(total, sizeof(f_string_dynamic_t), (void **) &sets[i]->buffers.array, &sets[i]->buffers.used, &sets[i]->buffers.size);
- macro_setting_load_handle_send_receive_error_continue_1(f_string_dynamics_increase_by);
+ macro_setting_load_handle_send_receive_error_continue_1(f_memory_array_increase_by);
main->setting.state.status = f_memory_array_increase_by(total, sizeof(f_fss_simple_packet_t), (void **) &sets[i]->packets.array, &sets[i]->packets.used, &sets[i]->packets.size);
if (main->program.parameters.arguments.array[index].used) {
if (f_path_is_absolute(main->program.parameters.arguments.array[index]) == F_true || f_path_is_relative_current(main->program.parameters.arguments.array[index]) == F_true) {
- main->setting.state.status = f_string_dynamic_increase_by(main->program.parameters.arguments.array[index].used + 2, &sets[i]->names.array[j]);
+ main->setting.state.status = f_memory_array_increase_by(main->program.parameters.arguments.array[index].used + 2, sizeof(f_char_t), (void **) &sets[i]->names.array[j].string, &sets[i]->names.array[j].used, &sets[i]->names.array[j].size);
- macro_setting_load_handle_send_receive_error_continue_2(f_string_dynamic_increase_by);
+ macro_setting_load_handle_send_receive_error_continue_2(f_memory_array_increase_by);
main->setting.state.status = f_string_dynamic_append_nulless(main->program.parameters.arguments.array[index], &sets[i]->names.array[j]);
continue;
}
- main->setting.state.status = f_string_dynamic_increase_by(INET6_ADDRSTRLEN + 1, &sets[i]->names.array[j]);
+ main->setting.state.status = f_memory_array_increase_by(INET6_ADDRSTRLEN + 1, sizeof(f_char_t), (void **) &sets[i]->names.array[j].string, &sets[i]->names.array[j].used, &sets[i]->names.array[j].size);
- macro_setting_load_handle_send_receive_error_continue_2(f_string_dynamic_increase_by);
+ macro_setting_load_handle_send_receive_error_continue_2(f_memory_array_increase_by);
// Randomly select one of the addresses when there are more than one.
if (host.h_addr_list[1]) {
k = 0;
}
- main->setting.state.status = f_string_dynamic_increase_by(INET6_ADDRSTRLEN + 1, &sets[i]->names.array[j]);
+ main->setting.state.status = f_memory_array_increase_by(INET6_ADDRSTRLEN + 1, sizeof(f_char_t), (void **) &sets[i]->names.array[j].string, &sets[i]->names.array[j].used, &sets[i]->names.array[j].size);
- macro_setting_load_handle_send_receive_error_continue_2(f_string_dynamic_increase_by);
+ macro_setting_load_handle_send_receive_error_continue_2(f_memory_array_increase_by);
if (host.h_addrtype == f_socket_address_family_inet4_e) {
family.type = f_network_family_ip_4_e;
* Errors (with error bit) from: f_memory_array_increase_by().
* Errors (with error bit) from: f_network_from_ip_name().
* Errors (with error bit) from: f_string_dynamic_append_nulless().
- * Errors (with error bit) from: f_string_dynamic_increase_by().
- * Errors (with error bit) from: f_string_dynamics_increase_by().
*
* Errors (with error bit) from: main.callback.setting_load_send_receive().
*
* @see f_memory_array_increase_by()
* @see f_network_from_ip_name()
* @see f_string_dynamic_append_nulless()
- * @see f_string_dynamic_increase_by()
- * @see f_string_dynamics_increase_by()
*/
#ifndef _di_kt_tacocat_setting_load_send_receive_
extern void kt_tacocat_setting_load_send_receive(const f_console_arguments_t arguments, void * const main);
"f_string_append_nulless",
"f_string_dynamic_append",
"f_string_dynamic_append_nulless",
- "f_string_dynamic_increase_by",
- "f_string_dynamics_increase_by",
"f_thread_create",
"fl_conversion_dynamic_to_unsigned_detect",
"fll_program_parameter_process_context",
kt_tacocat_f_f_string_append_nulless_e,
kt_tacocat_f_f_string_dynamic_append_e,
kt_tacocat_f_f_string_dynamic_append_nulless_e,
- kt_tacocat_f_f_string_dynamic_increase_by_e,
- kt_tacocat_f_f_string_dynamics_increase_by_e,
kt_tacocat_f_f_thread_create_e,
kt_tacocat_f_fl_conversion_dynamic_to_unsigned_detect_e,
kt_tacocat_f_fll_program_parameter_process_context_e,
f_memory_array_resize(0, sizeof(f_socket_t), (void **) &sets[i]->sockets.array, &sets[i]->sockets.used, &sets[i]->sockets.size);
f_memory_array_resize(0, sizeof(f_status_t), (void **) &sets[i]->statuss.array, &sets[i]->statuss.used, &sets[i]->statuss.size);
- f_string_dynamics_resize(0, &sets[i]->names);
- f_string_dynamics_resize(0, &sets[i]->buffers);
+ f_memory_arrays_resize(0, sizeof(f_string_dynamic_t), (void **) &sets[i]->names.array, &sets[i]->names.used, &sets[i]->names.size, &f_string_dynamics_delete_callback);
+ f_memory_arrays_resize(0, sizeof(f_string_dynamic_t), (void **) &sets[i]->buffers.array, &sets[i]->buffers.used, &sets[i]->buffers.size, &f_string_dynamics_delete_callback);
f_memory_array_resize(0, sizeof(f_fss_simple_packet_range_t), (void **) &sets[i]->packets.array, &sets[i]->packets.used, &sets[i]->packets.size);
} // for
}
- f_string_dynamic_resize(0, &setting->buffer);
+ f_memory_array_resize(0, sizeof(f_char_t), (void **) &setting->buffer.string, &setting->buffer.used, &setting->buffer.size);
return F_okay;
}
f_file_stream_lock(print->to);
fl_print_format("%[%QNetwork error on%] ", print->to, print->set->error, print->prefix, print->set->error);
- fl_print_format("%[%Q%]", print->to, print->set->notable, on, print->set->notable);
+ fl_print_format(f_string_format_Q_single_s.string, print->to, print->set->notable, on, print->set->notable);
fl_print_format(" %[for '%]", print->to, print->set->error, print->set->error, f_string_eol_s);
- fl_print_format("%[%Q%]", print->to, print->set->notable, network, print->set->notable);
+ fl_print_format(f_string_format_Q_single_s.string, print->to, print->set->notable, network, print->set->notable);
fl_print_format(" %['.%]%r", print->to, print->set->error, print->set->error, f_string_eol_s);
f_file_stream_unlock(print->to);
fl_print_format("%[%QThe parameter%] ", print->to, print->set->error, print->prefix, print->set->error);
fl_print_format("%[%Q%Q%]", print->to, print->set->notable, f_console_symbol_long_normal_s, kt_tacocat_long_resolve_s, print->set->notable);
fl_print_format(" %[may only be either '%]", print->to, print->set->error, print->set->error, f_string_eol_s);
- fl_print_format("%[%Q%]", print->to, print->set->notable, kt_tacocat_classic_s, print->set->notable);
+ fl_print_format(f_string_format_Q_single_s.string, print->to, print->set->notable, kt_tacocat_classic_s, print->set->notable);
fl_print_format("%' or '%]", print->to, print->set->error, print->set->error, f_string_eol_s);
- fl_print_format("%[%Q%]", print->to, print->set->notable, kt_tacocat_kevux_s, print->set->notable);
+ fl_print_format(f_string_format_Q_single_s.string, print->to, print->set->notable, kt_tacocat_kevux_s, print->set->notable);
fl_print_format(" %[' but '%]", print->to, print->set->error, print->set->error, f_string_eol_s);
- fl_print_format("%[%Q%]", print->to, print->set->notable, unknown, print->set->notable);
+ fl_print_format(f_string_format_Q_single_s.string, print->to, print->set->notable, unknown, print->set->notable);
fl_print_format(" %[' is given.%]%r", print->to, print->set->error, print->set->error, f_string_eol_s);
f_file_stream_unlock(print->to);
f_file_stream_lock(print->to);
fl_print_format("%[%QThe lengths of all%] ", print->to, print->set->error, print->prefix, print->set->error);
- fl_print_format("%[%Q%]", print->to, print->set->notable, name, print->set->notable);
+ fl_print_format(f_string_format_Q_single_s.string, print->to, print->set->notable, name, print->set->notable);
fl_print_format(" %[arrays do not have the same length, name array length is '%]", print->to, print->set->error, print->set->error, f_string_eol_s);
fl_print_format("%[%ul%]", print->to, print->set->notable, set.names.used, print->set->notable);
fl_print_format("%', the buffer array length is '%]", print->to, print->set->error, print->set->error, f_string_eol_s);
fl_print_format("%[%QUnsupported protocol%] ", print->to, print->set->error, print->prefix, print->set->error);
fl_print_format("%[%lu%]", print->to, print->set->notable, protocol, print->set->notable);
fl_print_format(" %[while processing '%]", print->to, print->set->error, print->set->error, f_string_eol_s);
- fl_print_format("%[%Q%]", print->to, print->set->notable, name, print->set->notable);
+ fl_print_format(f_string_format_Q_single_s.string, print->to, print->set->notable, name, print->set->notable);
fl_print_format(" %['.%]%r", print->to, print->set->error, print->set->error, f_string_eol_s);
f_file_stream_unlock(print->to);
fl_print_format("%[%QThe port number '%]", print->to, print->context, print->prefix, print->context);
fl_print_format("%[%ul%]", print->to, print->notable, port, print->notable);
fl_print_format("%[' from the address '%]", print->to, print->context, print->context);
- fl_print_format("%[%Q%]", print->to, print->notable, address, print->notable);
+ fl_print_format(f_string_format_Q_single_s.string, print->to, print->notable, address, print->notable);
fl_print_format("%['is too large for this system and so the port is being autodetermined.%]%r", print->to, print->context, print->context, f_string_eol_s);
f_file_stream_unlock(print->to);
//if (poll->revents & f_poll_urgent_e) { // handle out of band, via f_socket_flag_out_of_band_e?
- *status = f_string_dynamic_increase_by(socket->size_read, buffer);
+ *status = f_memory_array_increase_by(socket->size_read, sizeof(f_char_t), (void **) &buffer->string, &buffer->used, &buffer->size);
if (F_status_is_error(*status)) {
- kt_tacocat_print_error_on(&main->program.error, macro_kt_tacocat_f(f_string_dynamic_increase_by), kt_tacocat_receive_s, *name, *status);
+ kt_tacocat_print_error_on(&main->program.error, macro_kt_tacocat_f(f_memory_array_increase_by), kt_tacocat_receive_s, *name, *status);
return;
}
buffer->used = 0;
}
- *status = f_string_dynamic_increase_by(socket->size_read, buffer);
+ *status = f_memory_array_increase_by(socket->size_read, sizeof(f_char_t), (void **) &buffer->string, &buffer->used, &buffer->size);
if (F_status_is_error(*status)) {
- kt_tacocat_print_error_on(&main->program.error, macro_kt_tacocat_f(f_string_dynamic_increase_by), kt_tacocat_receive_s, *name, *status);
+ kt_tacocat_print_error_on(&main->program.error, macro_kt_tacocat_f(f_memory_array_increase_by), kt_tacocat_receive_s, *name, *status);
return;
}