Structural problems related to printing.
Relocate how the final newline being printed on simulate is structured in the code.
Remove stale "simulate" variable that is no longer used.
}
// ensure a newline is always put at the end of the program execution, unless in quiet mode.
- if (!(status == F_child || status == F_signal) && data->error.verbosity != f_console_verbosity_quiet) {
- if (F_status_is_error(status)) {
+ if (!(status == F_child || status == F_signal)) {
+ if (F_status_is_error(status) && data->error.verbosity != f_console_verbosity_quiet) {
fprintf(data->error.to.stream, "%c", f_string_eol_s[0]);
}
}
fprintf(main.data->output.stream, "%c", f_string_eol_s[0]);
fprintf(main.data->output.stream, "Done processing entry item '");
fprintf(main.data->output.stream, "%s%s%s", main.data->context.set.title.before->string, controller_string_main_s, main.data->context.set.title.after->string);
- fprintf(main.data->output.stream, "'.%c", f_string_eol_s[0]);
+ fprintf(main.data->output.stream, "'.%c%c", f_string_eol_s[0], f_string_eol_s[0]);
f_thread_mutex_unlock(&main.thread->lock.print);
}
}
- if (F_status_is_error_not(status) && simulate) {
- f_thread_mutex_lock(&main.thread->lock.print);
-
- fprintf(main.data->output.stream, "%c", f_string_eol_s[0]);
-
- f_thread_mutex_unlock(&main.thread->lock.print);
- }
-
return status;
}
#endif // _di_controller_process_entry_
f_array_length_t id_rule = 0;
const f_array_length_t used_original_stack = process->stack.used;
- const bool simulate = main.data->parameters[controller_parameter_test].result == f_console_result_found;
f_thread_lock_read(&main.thread->lock.rule);
if (f_file_exists(setting->path_pid.string) == F_true) {
if (data->error.verbosity != f_console_verbosity_quiet) {
-
f_thread_mutex_lock(&thread.lock.print);
fprintf(data->error.to.stream, "%c", f_string_eol_s[0]);
if (f_file_exists(entry->setting->path_pid.string) == F_true) {
if (data->error.verbosity != f_console_verbosity_quiet) {
-
f_thread_mutex_lock(&entry->main->thread->lock.print);
fprintf(data->error.to.stream, "%c", f_string_eol_s[0]);