]> Kevux Git Server - fll/commitdiff
Update: Describe modes being used when performing build or make.
authorKevin Day <thekevinday@gmail.com>
Mon, 8 Aug 2022 02:06:56 +0000 (21:06 -0500)
committerKevin Day <thekevinday@gmail.com>
Mon, 8 Aug 2022 02:08:07 +0000 (21:08 -0500)
Make it more obvious which mode is being used when printing.

level_3/fake/c/private-build.c
level_3/fake/c/private-make-operate.c

index 6fa6c56c48968aca4b1230bcab88acfe5cbabf97..9204fd67adb1cd341449b78bf329cd1f416ada70 100644 (file)
@@ -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);
index 64ceff0fbfc6d0e3c0b8dab8ba7c724757d204ce..07b847bee34e6bd6e08b39c487f6b3d2ab8b5648 100644 (file)
@@ -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);