From cdcb222499feb7096b2df7e16627676409bbe2ab Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Thu, 7 Apr 2022 20:18:52 -0500 Subject: [PATCH] Update: The fake program should show the fakefile or setting being used when building. This helps make what is going more clear when viewing the console. Multiple executions of different build settings (or fakefiles) should be easily determinable such as when running tests. --- level_3/fake/c/private-build.c | 4 +++- level_3/fake/c/private-make-operate.c | 8 +++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/level_3/fake/c/private-build.c b/level_3/fake/c/private-build.c index c3f5fa1..04002d5 100644 --- a/level_3/fake/c/private-build.c +++ b/level_3/fake/c/private-build.c @@ -837,7 +837,9 @@ extern "C" { fl_print_format("%r%[Building%] ", data->main->output.to.stream, f_string_eol_s, data->main->context.set.important, data->main->context.set.important); fl_print_format("%[%Q%]", data->main->output.to.stream, data->main->context.set.notable, data_build.setting.build_name, data->main->context.set.notable); - fl_print_format("%[.%]%r", data->main->output.to.stream, data->main->context.set.important, data->main->context.set.important, f_string_eol_s); + fl_print_format("%[ using '%]", data->main->output.to.stream, data->main->context.set.important, data->main->context.set.important); + fl_print_format("%[%Q%]", data->main->output.to.stream, data->main->context.set.notable, data->settings, data->main->context.set.notable); + fl_print_format("%['.%]%r", data->main->output.to.stream, data->main->context.set.important, data->main->context.set.important, f_string_eol_s); funlockfile(data->main->output.to.stream); } diff --git a/level_3/fake/c/private-make-operate.c b/level_3/fake/c/private-make-operate.c index a455f60..a62dcef 100644 --- a/level_3/fake/c/private-make-operate.c +++ b/level_3/fake/c/private-make-operate.c @@ -27,7 +27,13 @@ extern "C" { } if (data->main->output.verbosity != f_console_verbosity_quiet_e) { - fll_print_format("%r%[Now making.%]%r", data->main->output.to.stream, f_string_eol_s, data->main->context.set.important, data->main->context.set.important, f_string_eol_s); + flockfile(data->main->output.to.stream); + + fl_print_format("%r%[Now making using '%]", data->main->output.to.stream, f_string_eol_s, data->main->context.set.important, data->main->context.set.important); + fl_print_format("%[%Q%]", data->main->output.to.stream, data->main->context.set.notable, data->fakefile, data->main->context.set.notable); + fl_print_format("%['.%]%r", data->main->output.to.stream, data->main->context.set.important, data->main->context.set.important, f_string_eol_s); + + funlockfile(data->main->output.to.stream); } f_status_t status = F_none; -- 1.8.3.1