From 22d07abc2aece7720c81f89703a4a8a0a5481967 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Sun, 7 Aug 2022 21:06:56 -0500 Subject: [PATCH] Update: Describe modes being used when performing build or make. Make it more obvious which mode is being used when printing. --- level_3/fake/c/private-build.c | 14 ++++++++++++++ level_3/fake/c/private-make-operate.c | 14 ++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/level_3/fake/c/private-build.c b/level_3/fake/c/private-build.c index 6fa6c56..9204fd6 100644 --- a/level_3/fake/c/private-build.c +++ b/level_3/fake/c/private-build.c @@ -841,6 +841,20 @@ extern "C" { 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("%[ 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("%[' with modes '%]", data->main->output.to.stream, data->main->context.set.important, data->main->context.set.important); + + f_string_dynamics_t * const modes = data->mode.used ? &data->mode : &data_build.setting.modes_default; + + for (f_array_length_t i = 0; i < modes->used; ) { + + fl_print_format("%[%Q%]", data->main->output.to.stream, data->main->context.set.notable, modes->array[i], data->main->context.set.notable); + + if (++i < modes->used) { + fl_print_format("%[', '%]", data->main->output.to.stream, data->main->context.set.important, data->main->context.set.important); + } + } // for + 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 64ceff0..07b847b 100644 --- a/level_3/fake/c/private-make-operate.c +++ b/level_3/fake/c/private-make-operate.c @@ -27,6 +27,20 @@ extern "C" { 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); + + if (data->mode.used) { + fl_print_format("%[' with modes '%]", data->main->output.to.stream, data->main->context.set.important, data->main->context.set.important); + + for (f_array_length_t i = 0; i < data->mode.used; ) { + + fl_print_format("%[%Q%]", data->main->output.to.stream, data->main->context.set.notable, data->mode.array[i], data->main->context.set.notable); + + if (++i < data->mode.used) { + fl_print_format("%[', '%]", data->main->output.to.stream, data->main->context.set.important, data->main->context.set.important); + } + } // for + } + 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); -- 1.8.3.1