From: Kevin Day Date: Mon, 8 Aug 2022 02:06:56 +0000 (-0500) Subject: Update: Describe modes being used when performing build or make. X-Git-Tag: 0.6.1~21 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=22d07abc2aece7720c81f89703a4a8a0a5481967;p=fll Update: Describe modes being used when performing build or make. Make it more obvious which mode is being used when printing. --- 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);