return;
}
+ // Set the id out of range to designate that it is missing.
if (missing_main) {
- fake_make_print_error_fakefile_section_missing(&data_make->main->program.warning, data_make->data->file_data_build_fakefile, fake_make_item_main_s);
-
- data_make->main->setting.state.status = F_status_set_error(F_failure);
-
- f_fss_set_resize(0, &settings);
-
- return;
+ data_make->id_main = data_make->fakefile.used;
}
// Always have the parameter variable "return" map at index 0 and be pre-initialized.
}
}
else {
- {
- const int result = fake_make_operate_section(&data_make, data_make.id_main, §ion_stack);
+ if (data_make.id_main == data_make.fakefile.used) {
+ fake_make_print_error_fakefile_section_missing(&data->main->program.error, data->file_data_build_fakefile, fake_make_item_main_s);
- if (data->main->setting.state.status == F_child) {
- data->main->program.child = result;
- }
+ data->main->setting.state.status = F_status_set_error(F_failure);
}
+ else {
+ {
+ const int result = fake_make_operate_section(&data_make, data_make.id_main, §ion_stack);
+
+ if (data->main->setting.state.status == F_child) {
+ data->main->program.child = result;
+ }
+ }
- if (data->main->setting.state.status != F_child) {
- const f_status_t status = data->main->setting.state.status;
+ if (data->main->setting.state.status != F_child) {
+ const f_status_t status = data->main->setting.state.status;
- data->main->setting.state.status = f_path_change_at(data_make.path.top.id);
+ data->main->setting.state.status = f_path_change_at(data_make.path.top.id);
- if (F_status_is_error(data->main->setting.state.status)) {
- fake_make_print_warning_cannot_change_back(&data->main->program.warning, data_make.path.stack.array[0]);
- }
+ if (F_status_is_error(data->main->setting.state.status)) {
+ fake_make_print_warning_cannot_change_back(&data->main->program.warning, data_make.path.stack.array[0]);
+ }
- data->main->setting.state.status = status;
+ data->main->setting.state.status = status;
+ }
}
}