if (*status == F_none) {
const int total_build_libraries = setting->build_libraries.used;
+ const f_string_dynamics_t *modes = &setting->modes_default;
f_string_dynamic_t settings_mode_name_dynamic[fake_build_setting_total_d];
f_string_t settings_mode_names[fake_build_setting_total_d];
f_array_length_t setting_mode_lengths[fake_build_setting_total_d];
- const f_string_dynamics_t *modes = &setting->modes_default;
bool found = F_false;
f_array_length_t i = 0;
f_array_length_t j = 0;
- // if any mode is specified, the entire defaults is replaced.
+ // If any mode is specified, the entire defaults is replaced.
if (main->mode.used) {
modes = &main->mode;
}
if (fl_string_dynamic_compare_trim(modes->array[i], setting->modes.array[j]) == F_equal_to) {
found = F_true;
+
break;
}
} // for
error_printed = F_true;
*status = F_status_set_error(F_parameter);
+
break;
}
setting_mode_lengths[j] = settings_length[j] + 1 + modes->array[i].used;
- macro_f_string_dynamic_t_resize(*status, settings_mode_name_dynamic[j], setting_mode_lengths[j]);
+ *status = f_string_dynamic_resize(setting_mode_lengths[j], &settings_mode_name_dynamic[j]);
if (F_status_is_error(*status)) {
function = "macro_f_string_dynamic_t_resize";
}
else {
if (data_build.setting.build_sources_headers.used) {
- const f_string_static_t *path_sources = &main->path_sources;
+ f_string_static_t path_sources = main->path_sources;
if (data_build.setting.path_standard) {
- path_sources = &main->path_sources_c;
+ path_sources = main->path_sources_c;
if (data_build.setting.build_language == fake_build_language_type_cpp) {
- path_sources = &main->path_sources_cpp;
+ path_sources = main->path_sources_cpp;
}
}
else if (main->parameters[fake_parameter_path_sources].result != f_console_result_additional) {
- path_sources = &data_build.setting.path_sources;
+ path_sources = data_build.setting.path_sources;
}
- const f_array_length_t path_sources_base_length = path_sources->used;
+ const f_array_length_t path_sources_base_length = path_sources.used;
f_string_static_t path_headers = f_string_static_t_initialize;
f_array_length_t directory_headers_length = main->path_build_includes.used + data_build.setting.path_headers.used;
path_headers.used = directory_headers_length;
path_headers.size = directory_headers_length + 1;
- fake_build_copy(main, mode, "header files", *path_sources, path_headers, data_build.setting.build_sources_headers, stage.file_sources_headers, data_build.setting.path_headers_preserve ? path_sources_base_length : 0, &status);
+ fake_build_copy(main, mode, "header files", path_sources, path_headers, data_build.setting.build_sources_headers, stage.file_sources_headers, data_build.setting.path_headers_preserve ? path_sources_base_length : 0, &status);
if (data_build.setting.build_shared) {
- fake_build_copy(main, mode, "shared header files", *path_sources, path_headers, data_build.setting.build_sources_headers_shared, stage.file_sources_headers, data_build.setting.path_headers_preserve ? path_sources_base_length : 0, &status);
+ fake_build_copy(main, mode, "shared header files", path_sources, path_headers, data_build.setting.build_sources_headers_shared, stage.file_sources_headers, data_build.setting.path_headers_preserve ? path_sources_base_length : 0, &status);
}
if (data_build.setting.build_static) {
- fake_build_copy(main, mode, "static header files", *path_sources, path_headers, data_build.setting.build_sources_headers_static, stage.file_sources_headers, data_build.setting.path_headers_preserve ? path_sources_base_length : 0, &status);
+ fake_build_copy(main, mode, "static header files", path_sources, path_headers, data_build.setting.build_sources_headers_static, stage.file_sources_headers, data_build.setting.path_headers_preserve ? path_sources_base_length : 0, &status);
}
}