}
if (main->parameters.array[byte_dump_parameter_width_e].result & f_console_result_value_e) {
- const f_array_length_t index = main->parameters.array[byte_dump_parameter_width_e].values.array[main->parameters.array[byte_dump_parameter_width_e].location];
+ const f_array_length_t index = main->parameters.array[byte_dump_parameter_width_e].values.array[main->parameters.array[byte_dump_parameter_width_e].values.used - 1];
f_number_unsigned_t number = 0;
status = fl_conversion_dynamic_to_unsigned_detect(fl_conversion_data_base_10_c, data.argv[index], &number);
}
if (main->parameters.array[byte_dump_parameter_first_e].result & f_console_result_value_e) {
- const f_array_length_t index = main->parameters.array[byte_dump_parameter_first_e].values.array[main->parameters.array[byte_dump_parameter_first_e].location];
+ const f_array_length_t index = main->parameters.array[byte_dump_parameter_first_e].values.array[main->parameters.array[byte_dump_parameter_first_e].values.used - 1];
f_number_unsigned_t number = 0;
status = fl_conversion_dynamic_to_unsigned_detect(fl_conversion_data_base_10_c, data.argv[index], &number);
}
if (main->parameters.array[byte_dump_parameter_last_e].result & f_console_result_value_e) {
- const f_array_length_t index = main->parameters.array[byte_dump_parameter_last_e].values.array[main->parameters.array[byte_dump_parameter_last_e].location];
+ const f_array_length_t index = main->parameters.array[byte_dump_parameter_last_e].values.array[main->parameters.array[byte_dump_parameter_last_e].values.used - 1];
f_number_unsigned_t number = 0;
status = fl_conversion_dynamic_to_unsigned_detect(fl_conversion_data_base_10_c, data.argv[index], &number);
status = F_status_set_error(F_parameter);
}
else if (main->parameters.array[ids[i]].result & f_console_result_value_e) {
- index = main->parameters.array[ids[i]].values.array[main->parameters.array[ids[i]].location];
+ index = main->parameters.array[ids[i]].values.array[main->parameters.array[ids[i]].values.used - 1];
if (!main->parameters.arguments.array[index].used) {
control_print_error_parameter_value_empty(main, names[i]);
data->cache.small.used = 0;
if (main->parameters.array[control_parameter_settings_e].result & f_console_result_value_e) {
- const f_array_length_t index = main->parameters.array[control_parameter_settings_e].values.array[main->parameters.array[control_parameter_settings_e].location];
+ const f_array_length_t index = main->parameters.array[control_parameter_settings_e].values.array[main->parameters.array[control_parameter_settings_e].values.used - 1];
status = f_string_dynamic_append(data->argv[index], &data->cache.small);
}
data->cache.small.used = 0;
if (main->parameters.array[control_parameter_socket_e].result & f_console_result_value_e) {
- const f_array_length_t index = main->parameters.array[control_parameter_socket_e].values.array[main->parameters.array[control_parameter_socket_e].location];
+ const f_array_length_t index = main->parameters.array[control_parameter_socket_e].values.array[main->parameters.array[control_parameter_socket_e].values.used - 1];
status = f_string_dynamic_append(data->argv[index], &data->cache.small);
}
for (uint8_t i = 0; i < 3; ++i) {
if (append_ids[i] && main->parameters.array[append_ids[i]].result & f_console_result_value_e) {
- const f_array_length_t index = main->parameters.array[append_ids[i]].values.array[main->parameters.array[append_ids[i]].location];
+ const f_array_length_t index = main->parameters.array[append_ids[i]].values.array[main->parameters.array[append_ids[i]].values.used - 1];
status = f_string_dynamic_append(data->argv[index], &data->cache.small);
}
status = F_status_set_error(F_parameter);
}
else if (main->parameters.array[controller_parameter_settings_e].locations.used) {
- const f_array_length_t index = main->parameters.array[controller_parameter_settings_e].values.array[main->parameters.array[controller_parameter_settings_e].location];
+ const f_array_length_t index = main->parameters.array[controller_parameter_settings_e].values.array[main->parameters.array[controller_parameter_settings_e].values.used - 1];
status = controller_path_canonical_relative(&setting, argv[index], &setting.path_setting);
else if (main->parameters.array[controller_parameter_pid_e].locations.used) {
setting.path_pid.used = 0;
- const f_array_length_t index = main->parameters.array[controller_parameter_pid_e].values.array[main->parameters.array[controller_parameter_pid_e].location];
+ const f_array_length_t index = main->parameters.array[controller_parameter_pid_e].values.array[main->parameters.array[controller_parameter_pid_e].values.used - 1];
if (argv[index].used) {
status = controller_path_canonical_relative(&setting, argv[index], &setting.path_pid);
status = F_status_set_error(F_parameter);
}
else if (main->parameters.array[controller_parameter_cgroup_e].locations.used) {
- const f_array_length_t index = main->parameters.array[controller_parameter_cgroup_e].values.array[main->parameters.array[controller_parameter_cgroup_e].location];
+ const f_array_length_t index = main->parameters.array[controller_parameter_cgroup_e].values.array[main->parameters.array[controller_parameter_cgroup_e].values.used - 1];
if (argv[index].used) {
status = controller_path_canonical_relative(&setting, argv[index], &setting.path_cgroup);
if (f_compare_dynamic_partial_string(options[i].string, source, options[i].used, content) == F_equal_to) {
if (values[i]) {
if (parameters->array[codes[i]].result & f_console_result_value_e) {
- const f_array_length_t index = parameters->array[codes[i]].values.array[parameters->array[codes[i]].location];
+ const f_array_length_t index = parameters->array[codes[i]].values.array[parameters->array[codes[i]].values.used - 1];
status = f_string_dynamic_increase_by(symbols[i].used + expands[i].used + f_string_ascii_space_s.used + argv[index].used + 1, destination);
if (F_status_is_error(status)) return status;
if (f_compare_dynamic_partial_string(buffer.string, source, buffer.used, content) == F_equal_to) {
if (parameters->array[codes[i]].result & f_console_result_value_e) {
- const f_array_length_t index = parameters->array[codes[i]].values.array[parameters->array[codes[i]].location];
+ const f_array_length_t index = parameters->array[codes[i]].values.array[parameters->array[codes[i]].values.used - 1];
status = f_string_dynamic_append(argv[index], destination);
if (F_status_is_error(status)) return status;
}
if (main->program.parameters.array[parameters[i]].result & f_console_result_value_e) {
- index = main->program.parameters.array[parameters[i]].values.array[main->program.parameters.array[parameters[i]].location;
+ index = main->program.parameters.array[parameters[i]].values.array[main->program.parameters.array[parameters[i]].values.used - 1];
if (main->program.parameters.arguments.array[index].used) {
if (parameters[i] == fake_parameter_process_e) {
f_status_t fss_basic_list_read_load_number(fll_program_data_t * const main, fss_basic_list_read_data_t * const data, const f_array_length_t parameter, const f_string_static_t name, f_number_unsigned_t *number) {
if (main->parameters.array[parameter].result & f_console_result_value_e) {
- const f_array_length_t index = main->parameters.array[parameter].values.array[main->parameters.array[parameter].location];
+ const f_array_length_t index = main->parameters.array[parameter].values.array[main->parameters.array[parameter].values.used - 1];
const f_status_t status = fl_conversion_dynamic_to_unsigned_detect(fl_conversion_data_base_10_c, data->argv[index], number);
f_status_t fss_basic_read_load_number(fll_program_data_t * const main, fss_basic_read_data_t * const data, const f_array_length_t parameter, const f_string_static_t name, f_number_unsigned_t *number) {
if (main->parameters.array[parameter].result & f_console_result_value_e) {
- const f_array_length_t index = main->parameters.array[parameter].values.array[main->parameters.array[parameter].location];
+ const f_array_length_t index = main->parameters.array[parameter].values.array[main->parameters.array[parameter].values.used - 1];
const f_status_t status = fl_conversion_dynamic_to_unsigned_detect(fl_conversion_data_base_10_c, data->argv[index], number);
f_number_unsigned_t select = 0;
if (data->main->parameters.array[fss_embedded_list_read_parameter_select_e].result & f_console_result_value_e) {
- const f_array_length_t index = data->main->parameters.array[fss_embedded_list_read_parameter_select_e].values.array[data->main->parameters.array[fss_embedded_list_read_parameter_select_e].location];
+ const f_array_length_t index = data->main->parameters.array[fss_embedded_list_read_parameter_select_e].values.array[data->main->parameters.array[fss_embedded_list_read_parameter_select_e].values.used - 1];
status = fl_conversion_dynamic_to_unsigned_detect(fl_conversion_data_base_10_c, data->main->parameters.arguments.array[index], &select);
f_array_length_t line = 0;
if (data->main->parameters.array[fss_embedded_list_read_parameter_line_e].result & f_console_result_value_e) {
- const f_array_length_t index = data->main->parameters.array[fss_embedded_list_read_parameter_line_e].values.array[data->main->parameters.array[fss_embedded_list_read_parameter_line_e].location];
+ const f_array_length_t index = data->main->parameters.array[fss_embedded_list_read_parameter_line_e].values.array[data->main->parameters.array[fss_embedded_list_read_parameter_line_e].values.used - 1];
status = fl_conversion_dynamic_to_unsigned_detect(fl_conversion_data_base_10_c, data->main->parameters.arguments.array[index], &line);
f_status_t fss_extended_read_load_number(fll_program_data_t * const main, fss_extended_read_data_t * const data, const f_array_length_t parameter, const f_string_static_t name, f_number_unsigned_t *number) {
if (main->parameters.array[parameter].result & f_console_result_value_e) {
- const f_array_length_t index = main->parameters.array[parameter].values.array[main->parameters.array[parameter].location];
+ const f_array_length_t index = main->parameters.array[parameter].values.array[main->parameters.array[parameter].values.used - 1];
const f_status_t status = fl_conversion_dynamic_to_unsigned_detect(fl_conversion_data_base_10_c, data->argv[index], number);
status = F_status_set_error(F_parameter);
}
else if (main->parameters.array[fss_identify_parameter_line_e].result & f_console_result_value_e) {
- const f_array_length_t index = main->parameters.array[fss_identify_parameter_line_e].values.array[main->parameters.array[fss_identify_parameter_line_e].location];
+ const f_array_length_t index = main->parameters.array[fss_identify_parameter_line_e].values.array[main->parameters.array[fss_identify_parameter_line_e].values.used - 1];
status = fl_conversion_dynamic_to_unsigned_detect(fl_conversion_data_base_10_c, data.argv[index], &data.line);
status = F_status_set_error(F_parameter);
}
else if (main->parameters.array[fss_identify_parameter_name_e].result & f_console_result_value_e) {
- const f_array_length_t index = main->parameters.array[fss_identify_parameter_name_e].values.array[main->parameters.array[fss_identify_parameter_name_e].location];
+ const f_array_length_t index = main->parameters.array[fss_identify_parameter_name_e].values.array[main->parameters.array[fss_identify_parameter_name_e].values.used - 1];
const f_array_length_t length = data.argv[index].used;
const f_string_range_t range = macro_f_string_range_t_initialize_2(length);
f_status_t fss_payload_read_load_number(fll_program_data_t * const main, fss_payload_read_data_t * const data, const f_array_length_t parameter, const f_string_static_t name, f_number_unsigned_t *number) {
if (main->parameters.array[parameter].result & f_console_result_value_e) {
- const f_array_length_t index = main->parameters.array[parameter].values.array[main->parameters.array[parameter].location];
+ const f_array_length_t index = main->parameters.array[parameter].values.array[main->parameters.array[parameter].values.used - 1];
const f_status_t status = fl_conversion_dynamic_to_unsigned_detect(fl_conversion_data_base_10_c, data->argv[index], number);
const f_string_static_t *prepend = 0;
if (main->setting.flag & fss_write_main_flag_prepend_e) {
- const f_array_length_t index = main->program.parameters.array[fss_write_parameter_prepend_e].values.array[main->program.parameters.array[fss_write_parameter_prepend_e].location];
+ const f_array_length_t index = main->program.parameters.array[fss_write_parameter_prepend_e].values.array[main->program.parameters.array[fss_write_parameter_prepend_e].values.used - 1];
prepend = &main->program.parameters.arguments.array[index];
}
return;
}
- const f_array_length_t index = main->program.parameters.array[iki_read_parameter_at_e].values.array[main->program.parameters.array[iki_read_parameter_at_e].location];
+ const f_array_length_t index = main->program.parameters.array[iki_read_parameter_at_e].values.array[main->program.parameters.array[iki_read_parameter_at_e].values.used - 1];
main->setting.at = 0;
}
if (main->program.parameters.array[iki_read_parameter_line_e].result & f_console_result_value_e) {
- const f_array_length_t index = main->program.parameters.array[iki_read_parameter_line_e].values.array[main->program.parameters.array[iki_read_parameter_line_e].location];
+ const f_array_length_t index = main->program.parameters.array[iki_read_parameter_line_e].values.array[main->program.parameters.array[iki_read_parameter_line_e].values.used - 1];
main->setting.line = 0;