]> Kevux Git Server - fll/commitdiff
Progress: Continue program related work.
authorKevin Day <thekevinday@gmail.com>
Tue, 17 Jan 2023 04:26:24 +0000 (22:26 -0600)
committerKevin Day <thekevinday@gmail.com>
Tue, 17 Jan 2023 04:26:24 +0000 (22:26 -0600)
Focused on Featureless Make.
Other changes made as convenient.

112 files changed:
level_3/byte_dump/c/common.h
level_3/byte_dump/c/print.c
level_3/byte_dump/c/print.h
level_3/control/c/common.h
level_3/control/c/print.c
level_3/control/c/print.h
level_3/controller/c/common.h
level_3/controller/c/print.c
level_3/controller/c/print.h
level_3/fake/c/main/common-print.c [new file with mode: 0644]
level_3/fake/c/main/common-print.h [new file with mode: 0644]
level_3/fake/c/main/common.c [moved from level_3/fake/c/common.c with 98% similarity]
level_3/fake/c/main/common.h [moved from level_3/fake/c/common.h with 90% similarity]
level_3/fake/c/main/fake.c [moved from level_3/fake/c/fake.c with 53% similarity]
level_3/fake/c/main/fake.h [moved from level_3/fake/c/fake.h with 84% similarity]
level_3/fake/c/main/main.c [moved from level_3/fake/c/main.c with 100% similarity]
level_3/fake/c/main/main.h [moved from level_3/fake/c/main.h with 100% similarity]
level_3/fake/c/main/print.c [moved from level_3/fake/c/print.c with 64% similarity]
level_3/fake/c/main/print.h [moved from level_3/fake/c/print.h with 50% similarity]
level_3/fake/c/main/private-build-library.c [moved from level_3/fake/c/private-build-library.c with 97% similarity]
level_3/fake/c/main/private-build-library.h [moved from level_3/fake/c/private-build-library.h with 100% similarity]
level_3/fake/c/main/private-build-load.c [moved from level_3/fake/c/private-build-load.c with 97% similarity]
level_3/fake/c/main/private-build-load.h [moved from level_3/fake/c/private-build-load.h with 100% similarity]
level_3/fake/c/main/private-build-object.c [moved from level_3/fake/c/private-build-object.c with 93% similarity]
level_3/fake/c/main/private-build-object.h [moved from level_3/fake/c/private-build-object.h with 100% similarity]
level_3/fake/c/main/private-build-objects.c [moved from level_3/fake/c/private-build-objects.c with 93% similarity]
level_3/fake/c/main/private-build-objects.h [moved from level_3/fake/c/private-build-objects.h with 100% similarity]
level_3/fake/c/main/private-build-program.c [moved from level_3/fake/c/private-build-program.c with 95% similarity]
level_3/fake/c/main/private-build-program.h [moved from level_3/fake/c/private-build-program.h with 100% similarity]
level_3/fake/c/main/private-build-skeleton.c [moved from level_3/fake/c/private-build-skeleton.c with 92% similarity]
level_3/fake/c/main/private-build-skeleton.h [moved from level_3/fake/c/private-build-skeleton.h with 100% similarity]
level_3/fake/c/main/private-build.c [moved from level_3/fake/c/private-build.c with 90% similarity]
level_3/fake/c/main/private-build.h [moved from level_3/fake/c/private-build.h with 100% similarity]
level_3/fake/c/main/private-clean.c [moved from level_3/fake/c/private-clean.c with 71% similarity]
level_3/fake/c/main/private-clean.h [moved from level_3/fake/c/private-clean.h with 100% similarity]
level_3/fake/c/main/private-common.c [moved from level_3/fake/c/private-common.c with 100% similarity]
level_3/fake/c/main/private-common.h [moved from level_3/fake/c/private-common.h with 99% similarity]
level_3/fake/c/main/private-fake-path_generate.c [moved from level_3/fake/c/private-fake-path_generate.c with 100% similarity]
level_3/fake/c/main/private-fake-path_generate.h [moved from level_3/fake/c/private-fake-path_generate.h with 100% similarity]
level_3/fake/c/main/private-fake.c [moved from level_3/fake/c/private-fake.c with 92% similarity]
level_3/fake/c/main/private-fake.h [moved from level_3/fake/c/private-fake.h with 100% similarity]
level_3/fake/c/main/private-make-load_fakefile.c [moved from level_3/fake/c/private-make-load_fakefile.c with 98% similarity]
level_3/fake/c/main/private-make-load_fakefile.h [moved from level_3/fake/c/private-make-load_fakefile.h with 100% similarity]
level_3/fake/c/main/private-make-load_parameters.c [moved from level_3/fake/c/private-make-load_parameters.c with 100% similarity]
level_3/fake/c/main/private-make-load_parameters.h [moved from level_3/fake/c/private-make-load_parameters.h with 100% similarity]
level_3/fake/c/main/private-make-operate.c [moved from level_3/fake/c/private-make-operate.c with 96% similarity]
level_3/fake/c/main/private-make-operate.h [moved from level_3/fake/c/private-make-operate.h with 100% similarity]
level_3/fake/c/main/private-make-operate_block.c [moved from level_3/fake/c/private-make-operate_block.c with 100% similarity]
level_3/fake/c/main/private-make-operate_block.h [moved from level_3/fake/c/private-make-operate_block.h with 100% similarity]
level_3/fake/c/main/private-make-operate_process.c [moved from level_3/fake/c/private-make-operate_process.c with 96% similarity]
level_3/fake/c/main/private-make-operate_process.h [moved from level_3/fake/c/private-make-operate_process.h with 100% similarity]
level_3/fake/c/main/private-make-operate_process_type.c [moved from level_3/fake/c/private-make-operate_process_type.c with 93% similarity]
level_3/fake/c/main/private-make-operate_process_type.h [moved from level_3/fake/c/private-make-operate_process_type.h with 100% similarity]
level_3/fake/c/main/private-make-operate_validate.c [moved from level_3/fake/c/private-make-operate_validate.c with 100% similarity]
level_3/fake/c/main/private-make-operate_validate.h [moved from level_3/fake/c/private-make-operate_validate.h with 100% similarity]
level_3/fake/c/main/private-make-operate_validate_type.c [moved from level_3/fake/c/private-make-operate_validate_type.c with 100% similarity]
level_3/fake/c/main/private-make-operate_validate_type.h [moved from level_3/fake/c/private-make-operate_validate_type.h with 100% similarity]
level_3/fake/c/main/private-make.c [moved from level_3/fake/c/private-make.c with 93% similarity]
level_3/fake/c/main/private-make.h [moved from level_3/fake/c/private-make.h with 100% similarity]
level_3/fake/c/main/private-print.c [moved from level_3/fake/c/private-print.c with 90% similarity]
level_3/fake/c/main/private-print.h [moved from level_3/fake/c/private-print.h with 99% similarity]
level_3/fake/c/main/private-skeleton.c [moved from level_3/fake/c/private-skeleton.c with 90% similarity]
level_3/fake/c/main/private-skeleton.h [moved from level_3/fake/c/private-skeleton.h with 100% similarity]
level_3/fake/data/build/settings
level_3/firewall/c/common.h
level_3/firewall/c/print.c
level_3/firewall/c/print.h
level_3/fss_basic_list_read/c/common.h
level_3/fss_basic_list_read/c/print.c
level_3/fss_basic_list_read/c/print.h
level_3/fss_basic_read/c/common.h
level_3/fss_basic_read/c/print.c
level_3/fss_basic_read/c/print.h
level_3/fss_embedded_list_read/c/common.h
level_3/fss_embedded_list_read/c/print.c
level_3/fss_embedded_list_read/c/print.h
level_3/fss_embedded_list_read/c/private-read.c
level_3/fss_extended_list_read/c/common.h
level_3/fss_extended_list_read/c/print.c
level_3/fss_extended_list_read/c/print.h
level_3/fss_extended_read/c/common.h
level_3/fss_extended_read/c/print.c
level_3/fss_extended_read/c/print.h
level_3/fss_identify/c/common.h
level_3/fss_identify/c/print.c
level_3/fss_identify/c/print.h
level_3/fss_payload_read/c/common.h
level_3/fss_payload_read/c/print.c
level_3/fss_payload_read/c/print.h
level_3/fss_write/c/main/common.h
level_3/fss_write/c/main/print.c
level_3/fss_write/c/payload/print.c
level_3/iki_read/c/main/common.h
level_3/iki_read/c/main/print.c
level_3/iki_read/c/main/print.h
level_3/iki_write/c/main/common-print.h
level_3/iki_write/c/main/common.h
level_3/iki_write/c/main/print.c
level_3/iki_write/c/main/print.h
level_3/status_code/c/main/common-print.h
level_3/status_code/c/main/common.h
level_3/status_code/c/main/print.c
level_3/utf8/c/main/common-print.h
level_3/utf8/c/main/common.h
level_3/utf8/c/main/main.h
level_3/utf8/c/main/print.c
level_3/utf8/c/main/print.h
level_3/utf8/c/main/private-common.h
level_3/utf8/c/main/private-utf8.h
level_3/utf8/c/main/private-utf8_bytesequence.h
level_3/utf8/c/main/private-utf8_codepoint.h
level_3/utf8/c/main/utf8.h

index b1b9be93de39478c56528a4c9118c16a4aadfc37..5d3a7a45149221513133a0d13604ec3c7877bd4d 100644 (file)
@@ -319,7 +319,7 @@ extern "C" {
 
   #define byte_dump_console_parameter_t_initialize \
     { \
-      macro_f_console_parameter_t_initialize4(f_console_standard_short_help_s,          f_console_standard_long_help_s,          0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(f_console_standard_short_help_s,          f_console_standard_long_help_s,          0, f_console_flag_normal_e,  0), \
       macro_f_console_parameter_t_initialize4(f_console_standard_short_light_s,         f_console_standard_long_light_s,         0, f_console_flag_inverse_e, 0), \
       macro_f_console_parameter_t_initialize4(f_console_standard_short_dark_s,          f_console_standard_long_dark_s,          0, f_console_flag_inverse_e, 0), \
       macro_f_console_parameter_t_initialize4(f_console_standard_short_no_color_s,      f_console_standard_long_no_color_s,      0, f_console_flag_inverse_e, 0), \
@@ -332,22 +332,23 @@ extern "C" {
       macro_f_console_parameter_t_initialize4(f_console_standard_short_line_first_no_s, f_console_standard_long_line_first_no_s, 0, f_console_flag_inverse_e, 0), \
       macro_f_console_parameter_t_initialize4(f_console_standard_short_line_last_no_s,  f_console_standard_long_line_last_no_s,  0, f_console_flag_inverse_e, 0), \
       \
-      macro_f_console_parameter_t_initialize2(byte_dump_short_binary_s.string, byte_dump_long_binary_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(byte_dump_short_decimal_s.string, byte_dump_long_decimal_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(byte_dump_short_duodecimal_s.string, byte_dump_long_duodecimal_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(byte_dump_short_hexidecimal_s.string, byte_dump_long_hexidecimal_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(byte_dump_short_octal_s.string, byte_dump_long_octal_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(byte_dump_short_unicode_s.string, byte_dump_long_unicode_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(byte_dump_short_first_s.string, byte_dump_long_first_s.string, 0, 1, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(byte_dump_short_last_s.string, byte_dump_long_last_s.string, 0, 1, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(byte_dump_short_narrow_s.string, byte_dump_long_narrow_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(byte_dump_short_placeholder_s.string, byte_dump_long_placeholder_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(byte_dump_short_text_s.string, byte_dump_long_text_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(byte_dump_short_wide_s.string, byte_dump_long_wide_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(byte_dump_short_width_s.string, byte_dump_long_width_s.string, 0, 1, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(0, byte_dump_long_normal_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(0, byte_dump_long_simple_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(0, byte_dump_long_classic_s.string, 0, 0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(byte_dump_short_binary_s,      byte_dump_long_binary_s,      0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(byte_dump_short_decimal_s,     byte_dump_long_decimal_s,     0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(byte_dump_short_duodecimal_s,  byte_dump_long_duodecimal_s,  0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(byte_dump_short_hexidecimal_s, byte_dump_long_hexidecimal_s, 0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(byte_dump_short_octal_s,       byte_dump_long_octal_s,       0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(byte_dump_short_unicode_s,     byte_dump_long_unicode_s,     0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(byte_dump_short_first_s,       byte_dump_long_first_s,       1, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(byte_dump_short_last_s,        byte_dump_long_last_s,        1, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(byte_dump_short_narrow_s,      byte_dump_long_narrow_s,      0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(byte_dump_short_placeholder_s, byte_dump_long_placeholder_s, 0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(byte_dump_short_text_s,        byte_dump_long_text_s,        0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(byte_dump_short_wide_s,        byte_dump_long_wide_s,        0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(byte_dump_short_width_s,       byte_dump_long_width_s,       1, f_console_flag_normal_e, 0), \
+      \
+      macro_f_console_parameter_t_initialize6(byte_dump_long_normal_s, 0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize6(byte_dump_long_simple_s, 0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize6(byte_dump_long_classic_s, 0, f_console_flag_normal_e, 0), \
     }
 
   #define byte_dump_total_parameters_d 28
index a3594d9adc6331a18111a889acba0db2656cdf61..5fedf6ed133d922b95d28647c34fdf9f70232dfb 100644 (file)
@@ -78,11 +78,11 @@ extern "C" {
 #ifndef _di_byte_dump_print_line_first_locked_
   f_status_t byte_dump_print_line_first_locked(byte_dump_setting_t * const setting, const fl_print_t print) {
 
-    if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity < f_console_verbosity_error_e) return F_output_not;
     if (setting->flag & byte_dump_main_flag_verify_e) return;
 
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+    if (F_status_is_error_not(setting->status)) {
+      if (print.verbosity < f_console_verbosity_normal_e) return F_output_not;
       if (setting->flag & byte_dump_main_flag_file_to_e) return F_output_not;
     }
 
@@ -95,11 +95,11 @@ extern "C" {
 #ifndef _di_byte_dump_print_line_first_unlocked_
   f_status_t byte_dump_print_line_first_unlocked(byte_dump_setting_t * const setting, const fl_print_t print) {
 
-    if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity < f_console_verbosity_error_e) return F_output_not;
     if (setting->flag & byte_dump_main_flag_verify_e) return;
 
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+    if (F_status_is_error_not(setting->status)) {
+      if (print.verbosity < f_console_verbosity_normal_e) return F_output_not;
       if (setting->flag & byte_dump_main_flag_file_to_e) return F_output_not;
     }
 
@@ -112,11 +112,11 @@ extern "C" {
 #ifndef _di_byte_dump_print_line_last_locked_
   f_status_t byte_dump_print_line_last_locked(byte_dump_setting_t * const setting, const fl_print_t print) {
 
-    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity < f_console_verbosity_error_e) return F_output_not;
     if (setting->flag & byte_dump_main_flag_verify_e) return;
 
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+    if (F_status_is_error_not(setting->status)) {
+      if (print.verbosity < f_console_verbosity_normal_e) return F_output_not;
       if (setting->flag & byte_dump_main_flag_file_to_e) return F_output_not;
     }
 
@@ -129,11 +129,11 @@ extern "C" {
 #ifndef _di_byte_dump_print_line_last_unlocked_
   f_status_t byte_dump_print_line_last_unlocked(byte_dump_setting_t * const setting, const fl_print_t print) {
 
-    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity < f_console_verbosity_error_e) return F_output_not;
     if (setting->flag & byte_dump_main_flag_verify_e) return;
 
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+    if (F_status_is_error_not(setting->status)) {
+      if (print.verbosity < f_console_verbosity_normal_e) return F_output_not;
       if (setting->flag & byte_dump_main_flag_file_to_e) return F_output_not;
     }
 
index b675182704da904bf42629a90d2623b169f67379..444511506edf05f81902fda2b52abb49dfd1d48b 100644 (file)
@@ -1,7 +1,7 @@
 /**
  * FLL - Level 3
  *
- * Project: UTF-8
+ * Project: UTF8
  * API Version: 0.7
  * Licenses: lgpl-2.1-or-later
  */
index 6e6c076024e4ff45a9af4e87211e35cc2c279b27..063f7c40a1fa84ae806629759eb56834cdccc77c 100644 (file)
@@ -115,7 +115,7 @@ extern "C" {
 
   #define control_console_parameter_t_initialize \
     { \
-      macro_f_console_parameter_t_initialize4(f_console_standard_short_help_s,          f_console_standard_long_help_s,          0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(f_console_standard_short_help_s,          f_console_standard_long_help_s,          0, f_console_flag_normal_e,  0), \
       macro_f_console_parameter_t_initialize4(f_console_standard_short_light_s,         f_console_standard_long_light_s,         0, f_console_flag_inverse_e, 0), \
       macro_f_console_parameter_t_initialize4(f_console_standard_short_dark_s,          f_console_standard_long_dark_s,          0, f_console_flag_inverse_e, 0), \
       macro_f_console_parameter_t_initialize4(f_console_standard_short_no_color_s,      f_console_standard_long_no_color_s,      0, f_console_flag_inverse_e, 0), \
@@ -128,10 +128,10 @@ extern "C" {
       macro_f_console_parameter_t_initialize4(f_console_standard_short_line_first_no_s, f_console_standard_long_line_first_no_s, 0, f_console_flag_inverse_e, 0), \
       macro_f_console_parameter_t_initialize4(f_console_standard_short_line_last_no_s,  f_console_standard_long_line_last_no_s,  0, f_console_flag_inverse_e, 0), \
       \
-      macro_f_console_parameter_t_initialize2(control_short_name_s.string, control_long_name_s.string, 0, 1, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(control_short_return_s.string, control_long_return_s.string, 0, 1, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(control_short_settings_s.string, control_long_settings_s.string, 0, 1, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(control_short_socket_s.string, control_long_socket_s.string, 0, 1, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(control_short_name_s,     control_long_name_s,     1, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(control_short_return_s,   control_long_return_s,   1, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(control_short_settings_s, control_long_settings_s, 1, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(control_short_socket_s,   control_long_socket_s,   1, f_console_flag_normal_e, 0), \
     }
 
   #define control_total_parameters_d 16
index 174ed8def6b799e4486425b8f0aa397e88a9190e..a870f204e736070396b7a670f149853114f1b58b 100644 (file)
@@ -51,11 +51,11 @@ extern "C" {
 #ifndef _di_control_print_line_first_locked_
   f_status_t control_print_line_first_locked(control_setting_t * const setting, const fl_print_t print) {
 
-    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity < f_console_verbosity_error_e) return F_output_not;
     if (setting->flag & control_main_flag_verify_e) return;
 
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+    if (F_status_is_error_not(setting->status)) {
+      if (print.verbosity < f_console_verbosity_normal_e) return F_output_not;
       if (setting->flag & control_main_flag_file_to_e) return F_output_not;
     }
 
@@ -68,11 +68,11 @@ extern "C" {
 #ifndef _di_control_print_line_first_unlocked_
   f_status_t control_print_line_first_unlocked(control_setting_t * const setting, const fl_print_t print) {
 
-    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity < f_console_verbosity_error_e) return F_output_not;
     if (setting->flag & control_main_flag_verify_e) return;
 
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+    if (F_status_is_error_not(setting->status)) {
+      if (print.verbosity < f_console_verbosity_normal_e) return F_output_not;
       if (setting->flag & control_main_flag_file_to_e) return F_output_not;
     }
 
@@ -85,11 +85,11 @@ extern "C" {
 #ifndef _di_control_print_line_last_locked_
   f_status_t control_print_line_last_locked(control_setting_t * const setting, const fl_print_t print) {
 
-    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity < f_console_verbosity_error_e) return F_output_not;
     if (setting->flag & control_main_flag_verify_e) return;
 
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+    if (F_status_is_error_not(setting->status)) {
+      if (print.verbosity < f_console_verbosity_normal_e) return F_output_not;
       if (setting->flag & control_main_flag_file_to_e) return F_output_not;
     }
 
@@ -102,11 +102,11 @@ extern "C" {
 #ifndef _di_control_print_line_last_unlocked_
   f_status_t control_print_line_last_unlocked(control_setting_t * const setting, const fl_print_t print) {
 
-    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity < f_console_verbosity_error_e) return F_output_not;
     if (setting->flag & control_main_flag_verify_e) return;
 
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+    if (F_status_is_error_not(setting->status)) {
+      if (print.verbosity < f_console_verbosity_normal_e) return F_output_not;
       if (setting->flag & control_main_flag_file_to_e) return F_output_not;
     }
 
index e97d3f92a85a859584ab5b769833ac5b8d77d333..0eafb809bcfabfc729de0c90421dc803a5b74f5b 100644 (file)
@@ -1,7 +1,7 @@
 /**
  * FLL - Level 3
  *
- * Project: UTF-8
+ * Project: UTF8
  * API Version: 0.7
  * Licenses: lgpl-2.1-or-later
  */
index b8f4ccfc9a941218694009690dbb9c4defd9b5b8..b25ed15719d61dade5dd8c4f805d2cc6b044384b 100644 (file)
@@ -143,7 +143,7 @@ extern "C" {
 
   #define controller_console_parameter_t_initialize \
     { \
-      macro_f_console_parameter_t_initialize4(f_console_standard_short_help_s,          f_console_standard_long_help_s,          0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(f_console_standard_short_help_s,          f_console_standard_long_help_s,          0, f_console_flag_normal_e,  0), \
       macro_f_console_parameter_t_initialize4(f_console_standard_short_light_s,         f_console_standard_long_light_s,         0, f_console_flag_inverse_e, 0), \
       macro_f_console_parameter_t_initialize4(f_console_standard_short_dark_s,          f_console_standard_long_dark_s,          0, f_console_flag_inverse_e, 0), \
       macro_f_console_parameter_t_initialize4(f_console_standard_short_no_color_s,      f_console_standard_long_no_color_s,      0, f_console_flag_inverse_e, 0), \
@@ -156,16 +156,16 @@ extern "C" {
       macro_f_console_parameter_t_initialize4(f_console_standard_short_line_first_no_s, f_console_standard_long_line_first_no_s, 0, f_console_flag_inverse_e, 0), \
       macro_f_console_parameter_t_initialize4(f_console_standard_short_line_last_no_s,  f_console_standard_long_line_last_no_s,  0, f_console_flag_inverse_e, 0), \
       \
-      macro_f_console_parameter_t_initialize2(controller_short_cgroup_s.string, controller_long_cgroup_s.string, 0, 1, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(controller_short_daemon_s.string, controller_long_daemon_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(controller_short_init_s.string, controller_long_init_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(controller_short_interruptible_s.string, controller_long_interruptible_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(controller_short_pid_s.string, controller_long_pid_s.string, 0, 1, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(controller_short_settings_s.string, controller_long_settings_s.string, 0, 1, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(controller_short_simulate_s.string, controller_long_simulate_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(controller_short_socket_s.string, controller_long_socket_s.string, 0, 1, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(controller_short_uninterruptible_s.string, controller_long_uninterruptible_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(controller_short_validate_s.string, controller_long_validate_s.string, 0, 0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(controller_short_cgroup_s,          controller_long_cgroup_s,          1, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(controller_short_daemon_s,          controller_long_daemon_s,          0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(controller_short_init_s,            controller_long_init_s,            0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(controller_short_interruptible_s,   controller_long_interruptible_s,   0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(controller_short_pid_s,             controller_long_pid_s,             1, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(controller_short_settings_s,        controller_long_settings_s,        1, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(controller_short_simulate_s,        controller_long_simulate_s,        0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(controller_short_socket_s,          controller_long_socket_s,          1, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(controller_short_uninterruptible_s, controller_long_uninterruptible_s, 0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(controller_short_validate_s,        controller_long_validate_s,        0, f_console_flag_normal_e, 0), \
     }
 
   #define controller_total_parameters_d 22
index 2598714ef5216838a3237948bc6d72ebf44d0ebb..2c9f80a1ea69d13c66dca6aad74af53cff351722 100644 (file)
@@ -54,11 +54,11 @@ extern "C" {
 #ifndef _di_controller_print_line_first_locked_
   f_status_t controller_print_line_first_locked(controller_setting_t * const setting, const fl_print_t print) {
 
-    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity < f_console_verbosity_error_e) return F_output_not;
     if (setting->flag & controller_main_flag_verify_e) return;
 
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+    if (F_status_is_error_not(setting->status)) {
+      if (print.verbosity < f_console_verbosity_normal_e) return F_output_not;
       if (setting->flag & controller_main_flag_file_to_e) return F_output_not;
     }
 
@@ -71,11 +71,11 @@ extern "C" {
 #ifndef _di_controller_print_line_first_unlocked_
   f_status_t controller_print_line_first_unlocked(controller_setting_t * const setting, const fl_print_t print) {
 
-    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity < f_console_verbosity_error_e) return F_output_not;
     if (setting->flag & controller_main_flag_verify_e) return;
 
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+    if (F_status_is_error_not(setting->status)) {
+      if (print.verbosity < f_console_verbosity_normal_e) return F_output_not;
       if (setting->flag & controller_main_flag_file_to_e) return F_output_not;
     }
 
@@ -88,11 +88,11 @@ extern "C" {
 #ifndef _di_controller_print_line_last_locked_
   f_status_t controller_print_line_last_locked(controller_setting_t * const setting, const fl_print_t print) {
 
-    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity < f_console_verbosity_error_e) return F_output_not;
     if (setting->flag & controller_main_flag_verify_e) return;
 
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+    if (F_status_is_error_not(setting->status)) {
+      if (print.verbosity < f_console_verbosity_normal_e) return F_output_not;
       if (setting->flag & controller_main_flag_file_to_e) return F_output_not;
     }
 
@@ -105,11 +105,11 @@ extern "C" {
 #ifndef _di_controller_print_line_last_unlocked_
   f_status_t controller_print_line_last_unlocked(controller_setting_t * const setting, const fl_print_t print) {
 
-    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity < f_console_verbosity_error_e) return F_output_not;
     if (setting->flag & controller_main_flag_verify_e) return;
 
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+    if (F_status_is_error_not(setting->status)) {
+      if (print.verbosity < f_console_verbosity_normal_e) return F_output_not;
       if (setting->flag & controller_main_flag_file_to_e) return F_output_not;
     }
 
index a1393feec1d97b24cad2947eaf2805c1b3241851..32a5be240b99228fd1bc1dc7aef5b8208759b884 100644 (file)
@@ -1,7 +1,7 @@
 /**
  * FLL - Level 3
  *
- * Project: UTF-8
+ * Project: UTF8
  * API Version: 0.7
  * Licenses: lgpl-2.1-or-later
  */
diff --git a/level_3/fake/c/main/common-print.c b/level_3/fake/c/main/common-print.c
new file mode 100644 (file)
index 0000000..d189a9c
--- /dev/null
@@ -0,0 +1,26 @@
+#include "fake.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifndef _di_fake_f_a_
+  const f_string_t fake_f_a[] = {
+    "f_console_parameter_prioritize_right",
+    "f_console_parameter_process",
+    "f_file_is",
+    "f_file_name_base",
+    "f_string_dynamic_append",
+    "f_string_dynamic_append_nulless",
+    "f_string_dynamic_mash",
+    "f_string_dynamic_resize",
+    "fl_directory_copy",
+    "fll_execute_arguments_add",
+    "fll_execute_arguments_add_parameter_set",
+    "fll_execute_program",
+  };
+#endif // _di_fake_f_a_
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
diff --git a/level_3/fake/c/main/common-print.h b/level_3/fake/c/main/common-print.h
new file mode 100644 (file)
index 0000000..a72d710
--- /dev/null
@@ -0,0 +1,61 @@
+/**
+ * FLL - Level 3
+ *
+ * Project: Featureless Make
+ * API Version: 0.7
+ * Licenses: lgpl-2.1-or-later
+ *
+ * Provides the common data structures.
+ *
+ * This is auto-included and should not need to be explicitly included.
+ */
+#ifndef _fake_common_print_h
+#define _fake_common_print_h
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * A special array of strings intended for representing funciton names.
+ *
+ * These are primarily used for printing errors with the function names.
+ *
+ * The macro macro_fake_f() is used to reference the array index by the enum name.
+ *
+ * macro_fake_f():
+ *   - name: The name of the function.
+ */
+#ifndef _di_fake_f_a_
+  extern const f_string_t fake_f_a[];
+
+  #define macro_fake_f(name) fake_f_a[fake_f_##name##_e]
+#endif // _di_fake_f_a_
+
+/**
+ * An enum representing specific indexes within the above array.
+ *
+ * This is a convenience enum used to make code slightly more readable.
+ */
+#ifndef _di_fake_f_e_
+  enum {
+    fake_f_f_console_parameter_prioritize_right_e,
+    fake_f_f_console_parameter_process_e,
+    fake_f_f_file_is_e,
+    fake_f_f_file_name_base_e,
+    fake_f_f_string_dynamic_append_e,
+    fake_f_f_string_dynamic_append_nulless_e,
+    fake_f_f_string_dynamic_mash_e,
+    fake_f_f_string_dynamic_resize_e,
+    fake_f_fl_directory_copy_e,
+    fake_f_fll_execute_arguments_add_e,
+    fake_f_fll_execute_arguments_add_parameter_set_e,
+    fake_f_fll_execute_program_e,
+  }; // enum
+#endif // _di_fake_f_e_
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
+
+#endif // _fake_common_print_h
similarity index 98%
rename from level_3/fake/c/common.c
rename to level_3/fake/c/main/common.c
index 77d7970e966705d685c1b1da626a6bb2a812ade4..862e5ad5017b14e8504bbcd8e72bd60a95a803fd 100644 (file)
@@ -215,9 +215,9 @@ extern "C" {
 
     f_string_static_t * const args = main->parameters.arguments.array;
 
-    if (main->parameters.array[fake_parameter_strip_invalid_e].result & f_console_result_found_e) {
-      setting->flag |= fake_main_flag_strip_invalid_e;
-    }
+    //if (main->parameters.array[fake_parameter_strip_invalid_e].result & f_console_result_found_e) {
+    //  setting->flag |= fake_main_flag_strip_invalid_e;
+    //}
   }
 #endif // _di_fake_setting_load_
 
similarity index 90%
rename from level_3/fake/c/common.h
rename to level_3/fake/c/main/common.h
index ee3f2211abf5e9a8ce61addacd909a13e99a80c9..cb3b429982eac8cbdaa98eaae7a5bfbb09b5d1f9 100644 (file)
@@ -468,7 +468,7 @@ extern "C" {
 
   #define fake_console_parameter_t_initialize \
     { \
-      macro_f_console_parameter_t_initialize4(f_console_standard_short_help_s,          f_console_standard_long_help_s,          0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(f_console_standard_short_help_s,          f_console_standard_long_help_s,          0, f_console_flag_normal_e,  0), \
       macro_f_console_parameter_t_initialize4(f_console_standard_short_light_s,         f_console_standard_long_light_s,         0, f_console_flag_inverse_e, 0), \
       macro_f_console_parameter_t_initialize4(f_console_standard_short_dark_s,          f_console_standard_long_dark_s,          0, f_console_flag_inverse_e, 0), \
       macro_f_console_parameter_t_initialize4(f_console_standard_short_no_color_s,      f_console_standard_long_no_color_s,      0, f_console_flag_inverse_e, 0), \
@@ -481,25 +481,27 @@ extern "C" {
       macro_f_console_parameter_t_initialize4(f_console_standard_short_line_first_no_s, f_console_standard_long_line_first_no_s, 0, f_console_flag_inverse_e, 0), \
       macro_f_console_parameter_t_initialize4(f_console_standard_short_line_last_no_s,  f_console_standard_long_line_last_no_s,  0, f_console_flag_inverse_e, 0), \
       \
-      macro_f_console_parameter_t_initialize2(fake_short_define_s.string, fake_long_define_s.string, 0, 1, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fake_short_fakefile_s.string, fake_long_fakefile_s.string, 0, 1, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fake_short_mode_s.string, fake_long_mode_s.string, 0, 1, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fake_short_process_s.string, fake_long_process_s.string, 0, 1, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fake_short_settings_s.string, fake_long_settings_s.string, 0, 1, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fake_short_path_build_s.string, fake_long_path_build_s.string, 0, 1, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fake_short_path_data_s.string, fake_long_path_data_s.string, 0, 1, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fake_short_path_sources_s.string, fake_long_path_sources_s.string, 0, 1, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fake_short_path_work_s.string, fake_long_path_work_s.string, 0, 1, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(0, fake_long_documents_disabled_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(0, fake_long_documents_enabled_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(0, fake_long_shared_disabled_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(0, fake_long_shared_enabled_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(0, fake_long_static_disabled_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(0, fake_long_static_enabled_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(0, 0, fake_other_operation_build_s.string, 0, f_console_flag_simple_e), \
-      macro_f_console_parameter_t_initialize2(0, 0, fake_other_operation_clean_s.string, 0, f_console_flag_simple_e), \
-      macro_f_console_parameter_t_initialize2(0, 0, fake_other_operation_make_s.string, 0, f_console_flag_simple_e), \
-      macro_f_console_parameter_t_initialize2(0, 0, fake_other_operation_skeleton_s.string, 0, f_console_flag_simple_e), \
+      macro_f_console_parameter_t_initialize4(fake_short_define_s,       fake_long_define_s,             1, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fake_short_fakefile_s,     fake_long_fakefile_s,           1, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fake_short_mode_s,         fake_long_mode_s,               1, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fake_short_process_s,      fake_long_process_s,            1, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fake_short_settings_s,     fake_long_settings_s,           1, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fake_short_path_build_s,   fake_long_path_build_s,         1, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fake_short_path_data_s,    fake_long_path_data_s,          1, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fake_short_path_sources_s, fake_long_path_sources_s,       1, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fake_short_path_work_s,    fake_long_path_work_s,          1, f_console_flag_normal_e, 0), \
+      \
+      macro_f_console_parameter_t_initialize6(fake_long_documents_disabled_s, 0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize6(fake_long_documents_enabled_s,  0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize6(fake_long_shared_disabled_s,    0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize6(fake_long_shared_enabled_s,     0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize6(fake_long_static_disabled_s,    0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize6(fake_long_static_enabled_s,     0, f_console_flag_normal_e, 0), \
+      \
+      macro_f_console_parameter_t_initialize7(fake_other_operation_build_s.string,    0, f_console_flag_simple_e, 0), \
+      macro_f_console_parameter_t_initialize7(fake_other_operation_clean_s.string,    0, f_console_flag_simple_e, 0), \
+      macro_f_console_parameter_t_initialize7(fake_other_operation_make_s.string,     0, f_console_flag_simple_e, 0), \
+      macro_f_console_parameter_t_initialize7(fake_other_operation_skeleton_s.string, 0, f_console_flag_simple_e, 0), \
     }
 
   #define fake_total_parameters_d 31
@@ -512,8 +514,8 @@ extern "C" {
  *   - none:          No flags set.
  *   - file_from:     Using a specified source file.
  *   - file_to:       Using a specified destination file.
- *   - help:          Print help.
  *   - header:        Enable printing of headers.
+ *   - help:          Print help.
  *   - separate:      Enable printing of separators.
  *   - strip_invalid: Using strip invalid character mode.
  *   - verify:        Using verify mode.
similarity index 53%
rename from level_3/fake/c/fake.c
rename to level_3/fake/c/main/fake.c
index d62322d5d58804a912914e6dab8e917f2c03aa87..eb23da7c7bc1a101062bc351854a07673d7ac51d 100644 (file)
@@ -14,75 +14,30 @@ extern "C" {
 #endif
 
 #ifndef _di_fake_main_
-  f_status_t fake_main(fll_program_data_t * const main, fake_setting_t * const setting) {
+  void fake_main(fll_program_data_t * const main, fake_setting_t * const setting) {
 
-    f_status_t status = F_none;
+    if (!main || !setting || F_status_is_error(setting->status)) return;
 
-    // Load parameters.
-    status = f_console_parameter_process(arguments, &main->parameters);
-    if (F_status_is_error(status)) return;
+    setting->status = F_none;
 
-    {
-      f_array_length_t choice = 0;
-      f_uint16s_t choices = f_uint16s_t_initialize;
-
-      // Identify and prioritize "color context" parameters.
-      {
-        uint16_t choices_array[3] = { fake_parameter_no_color_e, fake_parameter_light_e, fake_parameter_dark_e };
-        choices.array = choices_array;
-        choices.used = 3;
-
-        const uint8_t modes[3] = { f_color_mode_not_e, f_color_mode_light_e, f_color_mode_dark_e };
-
-        status = fll_program_parameter_process_context(choices, modes, F_true, main);
-
-        if (F_status_is_error(status)) {
-          fake_print_line_first_locked(setting, main->error);
-          fll_error_print(main->error, F_status_set_fine(status), "fll_program_parameter_process_context", F_true);
-          fake_print_line_last_locked(setting, main->error);
-
-          return;
-        }
-      }
-
-      // Identify and prioritize "verbosity" parameters.
-      {
-        uint16_t choices_array[5] = { fake_parameter_verbosity_quiet_e, fake_parameter_verbosity_error_e, fake_parameter_verbosity_verbose_e, fake_parameter_verbosity_debug_e, fake_parameter_verbosity_normal_e };
-        choices.array = choices_array;
-        choices.used = 5;
-
-        const uint8_t verbosity[5] = { f_console_verbosity_quiet_e, f_console_verbosity_error_e, f_console_verbosity_verbose_e, f_console_verbosity_debug_e, f_console_verbosity_normal_e };
-
-        status = fll_program_parameter_process_verbosity(choices, verbosity, F_true, main);
-
-        if (F_status_is_error(status)) {
-          fake_print_line_first_locked(setting, main->error);
-          fll_error_print(main->error, F_status_set_fine(status), "fll_program_parameter_process_verbosity", F_true);
-          fake_print_line_last_locked(setting, main->error);
-
-          return;
-        }
-      }
-    }
-
-    if (main->parameters.array[fake_parameter_help_e].result & f_console_result_found_e) {
+    if (setting->flag & fake_main_flag_help_e) {
       fake_print_help(setting, main->message);
 
-      return F_none;
+      return;
     }
 
-    if (main->parameters.array[fake_parameter_version_e].result & f_console_result_found_e) {
+    if (setting->flag & fake_main_flag_version_e) {
       fll_program_print_version(main->message, fake_program_version_s);
 
-      return F_none;
+      return;
     }
 
-    status = F_none;
-
     fake_data_t data = fake_data_t_initialize;
     data.main = main;
+    data.setting = setting;
     data.argv = main->parameters.arguments.array;
 
+    // @todo move operations processing into the common settings loader.
     f_array_length_t operations_length = main->parameters.array[fake_parameter_operation_build_e].locations.used;
 
     operations_length += main->parameters.array[fake_parameter_operation_clean_e].locations.used;
@@ -91,7 +46,7 @@ extern "C" {
 
     // Ensure the default operation always exists.
     if (operations_length) {
-      data.flag |= fake_data_flag_has_operation_e;
+      data.flag |= fake_data_flag_operation_e;
     }
     else {
       operations_length = 1;
@@ -100,7 +55,7 @@ extern "C" {
     uint8_t operations[operations_length];
     f_string_static_t operations_name = f_string_static_t_initialize;
 
-    if (data.flag & fake_data_flag_has_operation_e) {
+    if (data.flag & fake_data_flag_operation_e) {
       f_array_length_t locations[operations_length];
       f_array_length_t locations_length = 0;
       f_array_length_t i = 0;
@@ -175,55 +130,44 @@ extern "C" {
       operations[0] = fake_operation_make_e;
     }
 
-    if (F_status_is_error_not(status)) {
+    if (F_status_is_error_not(setting->status)) {
       if (main->parameters.array[fake_parameter_operation_build_e].locations.used && main->parameters.array[fake_parameter_operation_make_e].locations.used) {
-        status = F_status_set_error(F_parameter);
-
-        if (main->error.verbosity > f_console_verbosity_quiet_e) {
-          f_file_stream_lock(main->error.to);
+        setting->status = F_status_set_error(F_parameter);
 
-          fl_print_format("%r%[%QThe operation '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context);
-          fl_print_format("%[%r%]", main->error.to, main->error.notable, fake_other_operation_build_s, main->error.notable);
-          fl_print_format("%[' cannot be specified with the operation '%]", main->error.to, main->error.context, main->error.context);
-          fl_print_format("%[%r%]", main->error.to, main->error.notable, fake_other_operation_make_s, main->error.notable);
-          fl_print_format("%['.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s);
-
-          f_file_stream_unlock(main->error.to);
-        }
+        fake_print_error_parameter_operation_not_with(setting, main->error, fake_other_operation_build_s, fake_other_operation_make_s);
       }
     }
 
-    if (F_status_is_error_not(status)) {
+    if (F_status_is_error_not(setting->status)) {
       bool validate_parameter_paths = F_true;
 
-      status = fake_process_console_parameters(&data);
+      setting->status = fake_process_console_parameters(&data);
 
-      if (F_status_is_error_not(status)) {
-        status = fake_path_generate(&data);
+      if (F_status_is_error_not(setting->status)) {
+        setting->status = fake_path_generate(&data);
       }
 
-      if (F_status_is_error(status)) {
+      if (F_status_is_error(setting->status)) {
         fake_data_delete(&data);
 
-        return F_status_set_error(status);
+        return;
       }
 
       {
         uint8_t i = 0;
 
-        if ((main->pipe & fll_program_data_pipe_input_e) && !(data.flag & fake_data_flag_has_operation_e)) {
+        if ((main->pipe & fll_program_data_pipe_input_e) && !(data.flag & fake_data_flag_operation_e)) {
           data.file_data_build_fakefile.used = 0;
 
-          status = f_string_dynamic_append(f_string_ascii_minus_s, &data.file_data_build_fakefile);
-
-          if (F_status_is_error_not(status)) {
-            data.fakefile.used = 0;
+          setting->status = f_string_dynamic_append(f_string_ascii_minus_s, &data.file_data_build_fakefile);
 
-            status = f_string_dynamic_append(f_string_ascii_minus_s, &data.fakefile);
+          if (F_status_is_error(setting->status)) {
+            fake_print_error(setting, setting->status, main->error, macro_fake_f(f_string_dynamic_append));
           }
+          else {
+            data.fakefile.used = 0;
 
-          if (F_status_is_error(status)) {
-            fll_error_print(data.main->error, F_status_set_fine(status), "f_string_dynamic_append", F_true);
+            setting->status = f_string_dynamic_append(f_string_ascii_minus_s, &data.fakefile);
           }
         }
 
@@ -241,9 +185,9 @@ extern "C" {
                 operations_name = fake_other_operation_clean_s;
                 data.operation = operations[i];
 
-                status = fake_validate_parameter_paths(&data);
+                setting->status = fake_validate_parameter_paths(&data);
 
-                if (F_status_is_error_not(status) && !(main->pipe & fll_program_data_pipe_input_e)) {
+                if (F_status_is_error_not(setting->status) && !(main->pipe & fll_program_data_pipe_input_e)) {
                   f_string_static_t *path = 0;
 
                   if (operations[i] == fake_operation_build_e) {
@@ -253,14 +197,14 @@ extern "C" {
                     path = &data.file_data_build_fakefile;
                   }
 
-                  status = f_file_is(*path, F_file_type_regular_d, F_false);
+                  setting->status = f_file_is(*path, F_file_type_regular_d, F_false);
 
-                  if (status == F_false) {
-                    status = F_status_set_error(F_file_not);
+                  if (setting->status == F_false) {
+                    setting->status = F_status_set_error(F_file_not);
                   }
 
-                  if (F_status_is_error(status)) {
-                    fll_error_file_print(data.main->error, F_status_set_fine(status), "f_file_is", F_true, *path, fake_common_file_path_access_s, fll_error_file_type_file_e);
+                  if (F_status_is_error(setting->status)) {
+                    fll_error_file_print(data.main->error, F_status_set_fine(setting->status), "f_file_is", F_true, *path, fake_common_file_path_access_s, fll_error_file_type_file_e);
                   }
                 }
               }
@@ -270,7 +214,7 @@ extern "C" {
           } // for
         }
 
-        if (F_status_is_error_not(status)) {
+        if (F_status_is_error_not(setting->status)) {
           for (i = 0; i < operations_length; ++i) {
 
             data.operation = operations[i];
@@ -290,45 +234,45 @@ extern "C" {
 
             if (data.operation == fake_operation_build_e) {
               if (validate_parameter_paths) {
-                status = fake_validate_parameter_paths(&data);
+                setting->status = fake_validate_parameter_paths(&data);
                 validate_parameter_paths = F_false;
               }
 
-              if (F_status_is_error_not(status)) {
-                status = fake_build_operate(&data, 0, main->pipe & fll_program_data_pipe_input_e);
+              if (F_status_is_error_not(setting->status)) {
+                setting->status = fake_build_operate(&data, 0, main->pipe & fll_program_data_pipe_input_e);
               }
             }
             else if (data.operation == fake_operation_clean_e) {
-              status = fake_clean_operate(&data);
+              setting->status = fake_clean_operate(&data);
 
               // Reset in case next operation needs files.
               validate_parameter_paths = F_true;
             }
             else if (data.operation == fake_operation_make_e) {
               if (validate_parameter_paths) {
-                status = fake_validate_parameter_paths(&data);
+                setting->status = fake_validate_parameter_paths(&data);
                 validate_parameter_paths = F_false;
               }
 
-              if (F_status_is_error_not(status)) {
-                status = fake_make_operate(&data);
-                if (status == F_child) break;
+              if (F_status_is_error_not(setting->status)) {
+                setting->status = fake_make_operate(&data);
+                if (setting->status == F_child) break;
               }
             }
             else if (data.operation == fake_operation_skeleton_e) {
-              status = fake_skeleton_operate(&data);
+              setting->status = fake_skeleton_operate(&data);
 
               // Skeleton is supposed to guarantee these.
               validate_parameter_paths = F_false;
             }
 
-            if (status == F_child) break;
+            if (setting->status == F_child) break;
 
-            if (F_status_set_fine(status) == F_interrupt || !(i % fake_signal_check_short_d)) {
+            if (F_status_set_fine(setting->status) == F_interrupt || !(i % fake_signal_check_short_d)) {
               if (fll_program_standard_signal_received(main)) {
                 fll_program_print_signal_received(main->warning, setting->line_first, main->signal_received);
 
-                status = F_status_set_error(F_interrupt);
+                setting->status = F_status_set_error(F_interrupt);
 
                 break;
               }
@@ -336,41 +280,30 @@ extern "C" {
               main->signal_check = 0;
             }
 
-            if (F_status_is_error(status)) break;
+            if (F_status_is_error(setting->status)) break;
           } // for
         }
 
-        if (F_status_is_error(status)) {
-          if (main->error.verbosity > f_console_verbosity_quiet_e) {
-            f_file_stream_lock(main->error.to);
-
-            fl_print_format("%r%[%QThe operation '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context);
-            fl_print_format("%[%r%]", main->error.to, main->error.notable, operations_name, main->error.notable);
-            fl_print_format("%[' failed.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s);
-
-            f_file_stream_unlock(main->error.to);
-          }
+        if (F_status_is_error(setting->status)) {
+          fake_print_error_failure_operation(setting, main->error, operations_name);
         }
       }
 
-      if (main->error.verbosity > f_console_verbosity_error_e) {
-        if (F_status_is_error_not(status) && status != F_child) {
-          fll_print_format("%rAll operations complete.%r%r", main->output.to, f_string_eol_s, f_string_eol_s, f_string_eol_s);
-        }
+      if (setting->status != F_child) {
+        fake_print_operation_all_complete(setting, main->message);
       }
     }
 
-    if (F_status_is_error(status) && main->error.verbosity > f_console_verbosity_quiet_e) {
-      if (F_status_set_fine(status) == F_interrupt) {
-        f_file_stream_flush(main->output.to);
+    if (setting->status != F_child) {
+      if (F_status_is_error(setting->status)) {
+        fake_print_line_last_locked(setting, main->error);
+      }
+      else if (setting->status != F_interrupt) {
+        fake_print_line_last_locked(setting, main->message);
       }
-
-      fll_print_dynamic_raw(f_string_eol_s, main->output.to);
     }
 
     fake_data_delete(&data);
-
-    return status;
   }
 #endif // _di_fake_main_
 
similarity index 84%
rename from level_3/fake/c/fake.h
rename to level_3/fake/c/main/fake.h
index 9657aa12d7fd29d231ba774fa93e1a129b871e1d..ac107a8aab81ca2a91cc7d6fb3f59b9a7bd773a1 100644 (file)
@@ -90,8 +90,9 @@
 #include <fll/level_2/program.h>
 
 // Featureless Make includes.
-#include <program/fake/common.h>
-#include <program/fake/print.h>
+#include <program/fake/main/common.h>
+#include <program/fake/main/common-print.h>
+#include <program/fake/main/print.h>
 
 #ifdef __cplusplus
 extern "C" {
@@ -110,19 +111,24 @@ extern "C" {
  *
  * @param main
  *   The main program data.
- * @param arguments
- *   The parameters passed to the process.
+ * @param setting
+ *   The main program settings.
+ *   Must be of type (fake_setting_t *).
+ *
+ *   This is used by the main thread and should not be modified within individual threads.
  *
- * @return
- *   F_none on success.
- *   F_child if this is a child process returning.
+ *   This alters setting.status:
+ *     F_none on success.
+ *     F_child if this is a child process returning.
  *
- *   F_interrupt (with error bit) on receiving a terminate process signal, such as an interrupt signal.
+ *     F_interrupt (with error bit) on receiving a terminate process signal, such as an interrupt signal.
+ *     F_parameter (with error bit) if main is NULL or setting is NULL.
  *
- *   Status codes (with error bit) are returned on any problem.
+ * @param arguments
+ *   The parameters passed to the process.
  */
 #ifndef _di_fake_main_
-  extern f_status_t fake_main(fll_program_data_t * const main, fake_setting_t * const setting);
+  extern void fake_main(fll_program_data_t * const main, fake_setting_t * const setting);
 #endif // _di_fake_main_
 
 #ifdef __cplusplus
similarity index 64%
rename from level_3/fake/c/print.c
rename to level_3/fake/c/main/print.c
index f12521ddfa3e6b1ecbe75c4c0c29e06ced7d1b5f..36a915f58dc7cd9d102c6c30a41c215372a3ed95 100644 (file)
@@ -5,9 +5,86 @@
 extern "C" {
 #endif
 
+#ifndef _di_fake_print_error_
+  f_status_t fake_print_error(fake_setting_t * const setting, const f_status_t status, const fl_print_t print, const f_string_t function) {
+
+    if (print.verbosity < f_console_verbosity_error_e) return F_output_not;
+
+    fake_print_line_first_locked(setting, print);
+    fll_error_print(print, F_status_set_fine(status), function, F_true);
+
+    return F_none;
+  }
+#endif // _di_fake_print_error_
+
+#ifndef _di_fake_print_error_failure_operation_
+  f_status_t fake_print_error_failure_operation(fake_setting_t * const setting, const fl_print_t print, const f_string_static_t operation) {
+
+    if (!setting || print.verbosity < f_console_verbosity_error_e) return F_output_not;
+
+    f_file_stream_lock(print.to);
+
+    fake_print_line_first_unlocked(setting, print);
+
+    fl_print_format("%[%QThe operation '%]", print.to, print.context, print.prefix, print.context);
+    fl_print_format("%[%Q%]", print.to, print.notable, operation, print.notable);
+    fl_print_format("%[' failed.%]%r", print.to, print.context, print.context, f_string_eol_s);
+
+    f_file_stream_unlock(print.to);
+
+    return F_none;
+  }
+#endif // _di_fake_print_error_failure_operation_
+
+#ifndef _di_fake_print_error_failure_script_
+  f_status_t fake_print_error_failure_script(fake_setting_t * const setting, const fl_print_t print, const f_string_static_t script) {
+
+    if (!setting || print.verbosity < f_console_verbosity_error_e) return F_output_not;
+
+    f_file_stream_lock(print.to);
+
+    fake_print_line_first_unlocked(setting, print);
+
+    fl_print_format("%[%QFailed to execute script '%]", print.to, print.context, print.prefix, print.context);
+    fl_print_format("%[%Q%]", print.to, print.notable, script, print.notable);
+    fl_print_format("%['.%]%r", print.to, print.context, print.context, f_string_eol_s);
+
+    f_file_stream_unlock(print.to);
+
+    return F_none;
+  }
+#endif // _di_fake_print_error_failure_script_
+
+#ifndef _di_fake_print_error_parameter_operation_not_with_
+  f_status_t fake_print_error_parameter_operation_not_with(fake_setting_t * const setting, const fl_print_t print, const f_string_static_t operation_1, const f_string_static_t operation_2) {
+
+    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+
+    if (!F_status_is_error(setting->status)) {
+      if (print.verbosity < f_console_verbosity_error_e) return F_output_not;
+    }
+
+    f_file_stream_lock(print.to);
+
+    fake_print_line_first_unlocked(setting, print);
+
+    fl_print_format("%[%QThe operation '%]", print.to, print.context, print.prefix, print.context);
+    fl_print_format("%[%r%]", print.to, print.notable, operation_1, print.notable);
+    fl_print_format("%[' cannot be specified with the operation '%]", print.to, print.context, print.context);
+    fl_print_format("%[%r%]", print.to, print.notable, operation_2, print.notable);
+    fl_print_format("%['.%]%r", print.to, print.context, print.context, f_string_eol_s);
+
+    f_file_stream_unlock(print.to);
+
+    return F_none;
+  }
+#endif // _di_fake_print_error_parameter_operation_not_with_
+
 #ifndef _di_fake_print_help_
   f_status_t fake_print_help(fake_setting_t * const setting, const fl_print_t print) {
 
+    if (!setting) return F_output_not;
+
     f_file_stream_lock(print.to);
 
     f_print_dynamic_raw(setting->line_first, print.to);
@@ -70,11 +147,11 @@ extern "C" {
     fl_print_format("  When piping data to this program, the piped data is treated as if it were prepended to the %[%r%]", print.to, print.set->notable, fake_make_parameter_variable_fakefile_s, print.set->notable);
     fl_print_format(" or the %[%r%], depending on the operation.%r", print.to, print.set->notable, fake_make_parameter_variable_settings_s, print.set->notable, f_string_eol_s);
 
-    fl_print_format("  A section name from the fakefile that does not conflict with an operation name may be specified when performing the %[%r%] operation.%r%r", file.stream, context.set.notable, fake_other_operation_make_s, context.set.notable, f_string_eol_s, f_string_eol_s);
+    fl_print_format("  A section name from the fakefile that does not conflict with an operation name may be specified when performing the %[%r%] operation.%r", print.to, print.set->notable, fake_other_operation_make_s, print.set->notable, f_string_eol_s);
 
     f_print_dynamic_raw(setting->line_last, print.to);
 
-    f_file_stream_flush(output);
+    f_file_stream_flush(print.to);
     f_file_stream_unlock(print.to);
 
     return F_none;
@@ -84,10 +161,10 @@ extern "C" {
 #ifndef _di_fake_print_line_first_locked_
   f_status_t fake_print_line_first_locked(fake_setting_t * const setting, const fl_print_t print) {
 
-    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+    if (F_status_is_error_not(setting->status)) {
+      if (print.verbosity < f_console_verbosity_normal_e) return F_output_not;
     }
 
     f_print_dynamic_raw(setting->line_first, print.to);
@@ -99,10 +176,10 @@ extern "C" {
 #ifndef _di_fake_print_line_first_unlocked_
   f_status_t fake_print_line_first_unlocked(fake_setting_t * const setting, const fl_print_t print) {
 
-    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+    if (F_status_is_error_not(setting->status)) {
+      if (print.verbosity < f_console_verbosity_normal_e) return F_output_not;
     }
 
     fll_print_dynamic_raw(setting->line_first, print.to);
@@ -114,10 +191,10 @@ extern "C" {
 #ifndef _di_fake_print_line_last_locked_
   f_status_t fake_print_line_last_locked(fake_setting_t * const setting, const fl_print_t print) {
 
-    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+    if (F_status_is_error_not(setting->status)) {
+      if (print.verbosity < f_console_verbosity_normal_e) return F_output_not;
     }
 
     fll_print_dynamic_raw(setting->line_last, print.to);
@@ -129,10 +206,10 @@ extern "C" {
 #ifndef _di_fake_print_line_last_unlocked_
   f_status_t fake_print_line_last_unlocked(fake_setting_t * const setting, const fl_print_t print) {
 
-    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+    if (F_status_is_error_not(setting->status)) {
+      if (print.verbosity < f_console_verbosity_normal_e) return F_output_not;
     }
 
     f_print_dynamic_raw(setting->line_last, print.to);
@@ -141,6 +218,25 @@ extern "C" {
   }
 #endif // _di_fake_print_line_last_unlocked_
 
+#ifndef _di_fake_print_operation_all_complete_
+  f_status_t fake_print_operation_all_complete(fake_setting_t * const setting, const fl_print_t print) {
+
+    if (!setting || print.verbosity < f_console_verbosity_normal_e) return F_output_not;
+    if (F_status_is_error(setting->status)) return F_output_not;
+
+    f_file_stream_lock(print.to);
+
+    fake_print_line_first_unlocked(setting, print);
+
+    fl_print_format("All operations complete.%r", print.to, f_string_eol_s, f_string_eol_s);
+
+    f_file_stream_flush(print.to);
+    f_file_stream_unlock(print.to);
+
+    return F_none;
+  }
+#endif // _di_fake_print_operation_all_complete_
+
 #ifdef __cplusplus
 } // extern "C"
 #endif
similarity index 50%
rename from level_3/fake/c/print.h
rename to level_3/fake/c/main/print.h
index 3164606bacae8c3808a7a7ff0db1e9215a6793ea..dc1ddf926fcfb047e8af23dd4a98a3265fbc31af 100644 (file)
@@ -1,7 +1,7 @@
 /**
  * FLL - Level 3
  *
- * Project: UTF-8
+ * Project: UTF8
  * API Version: 0.7
  * Licenses: lgpl-2.1-or-later
  */
@@ -13,6 +13,91 @@ extern "C" {
 #endif
 
 /**
+ * Print generic error message regarding a function failing in some way.
+ *
+ * @param setting
+ *   The main program settings.
+ *
+ *   This does not alter setting.status.
+ * @param status
+ *   The status to use.
+ *   This is provided, ignoring setting.status, for thread-safety reasons.
+ * @param print
+ *   Designates the how and where to print.
+ *
+ * @return
+ *   F_none on success.
+ *   F_output_not on success, but no printing is performed.
+ *
+ * @see fll_error_print()
+ */
+#ifndef _di_fake_print_error_
+  extern f_status_t fake_print_error(fake_setting_t * const setting, const f_status_t status, const fl_print_t print, const f_string_t function);
+#endif // _di_fake_print_error_
+
+/**
+ * Print error message for when an operation fails.
+ *
+ * @param setting
+ *   The main program settings.
+ *
+ *   This does not alter setting.status.
+ * @param print
+ *   Designates the how and where to print.
+ * @param operation
+ *   The name of the operation that failed.
+ *
+ * @return
+ *   F_none on success.
+ *   F_output_not on success, but no printing is performed.
+ */
+#ifndef _di_fake_print_error_failure_operation_
+  extern f_status_t fake_print_error_failure_operation(fake_setting_t * const setting, const fl_print_t print, const f_string_static_t operation);
+#endif // _di_fake_print_error_failure_operation_
+
+/**
+ * Print error message for when an operation fails.
+ *
+ * @param setting
+ *   The main program settings.
+ *
+ *   This does not alter setting.status.
+ * @param print
+ *   Designates the how and where to print.
+ * @param script
+ *   The name of the script that failed.
+ *
+ * @return
+ *   F_none on success.
+ *   F_output_not on success, but no printing is performed.
+ */
+#ifndef _di_fake_print_error_failure_script_
+  extern f_status_t fake_print_error_failure_script(fake_setting_t * const setting, const fl_print_t print, const f_string_static_t script);
+#endif // _di_fake_print_error_failure_script_
+
+/**
+ * Print error message for when two designated operations cannot be used together.
+ *
+ * @param setting
+ *   The main program settings.
+ *
+ *   This does not alter setting.status.
+ * @param print
+ *   Designates the how and where to print.
+ * @param operation_1
+ *   The symbol for the operation that cannot be used.
+ * @param operation_2
+ *   The second operation that cannot be used.
+ *
+ * @return
+ *   F_none on success.
+ *   F_output_not on success, but no printing is performed.
+ */
+#ifndef _di_fake_print_error_parameter_operation_not_with_
+  extern f_status_t fake_print_error_parameter_operation_not_with(fake_setting_t * const setting, const fl_print_t print, const f_string_static_t operation_1, const f_string_static_t operation_2);
+#endif // _di_fake_print_error_parameter_operation_not_with_
+
+/**
  * Print help.
  *
  * @param setting
@@ -24,6 +109,7 @@ extern "C" {
  *
  * @return
  *   F_none on success.
+ *   F_output_not on success, but no printing is performed.
  */
 #ifndef _di_fake_print_help_
   extern f_status_t fake_print_help(fake_setting_t * const setting, const fl_print_t print);
@@ -117,6 +203,24 @@ extern "C" {
   extern f_status_t fake_print_line_last_unlocked(fake_setting_t * const setting, const fl_print_t print);
 #endif // _di_fake_print_line_last_unlocked_
 
+/**
+ * Print message for when all operates successfully complete.
+ *
+ * @param setting
+ *   The main program settings.
+ *
+ *   This does not alter setting.status.
+ * @param print
+ *   Designates the how and where to print.
+ *
+ * @return
+ *   F_none on success.
+ *   F_output_not on success, but no printing is performed.
+ */
+#ifndef _di_fake_print_operation_all_complete_
+  extern f_status_t fake_print_operation_all_complete(fake_setting_t * const setting, const fl_print_t print);
+#endif // _di_fake_print_operation_all_complete_
+
 #ifdef __cplusplus
 } // extern "C"
 #endif
similarity index 97%
rename from level_3/fake/c/private-build-library.c
rename to level_3/fake/c/main/private-build-library.c
index bd267c50afd3e2fe52e74d8c34b69245e0d9e5f0..e5ce107e4a1332c262a48cc7e3d21e4e62f730b2 100644 (file)
@@ -24,8 +24,8 @@ extern "C" {
     if (F_status_is_error(*status) || f_file_exists(file_stage, F_true) == F_true || *status == F_child) return data->main->child;
     if (!data_build->setting.build_sources_library.used && !data_build->setting.build_sources_library_shared.used) return 0;
 
-    if (data->main->output.verbosity != f_console_verbosity_quiet_e && data->main->output.verbosity != f_console_verbosity_error_e) {
-      fll_print_format("%r%[Compiling shared library.%]%r", data->main->output.to, f_string_eol_s, data->main->context.set.important, data->main->context.set.important, f_string_eol_s);
+    if (data->main->message.verbosity != f_console_verbosity_quiet_e && data->main->message.verbosity != f_console_verbosity_error_e) {
+      fll_print_format("%r%[Compiling shared library.%]%r", data->main->message.to, f_string_eol_s, data->main->context.set.important, data->main->context.set.important, f_string_eol_s);
     }
 
     f_string_dynamics_t arguments = f_string_dynamics_t_initialize;
@@ -329,7 +329,7 @@ extern "C" {
       *status = f_file_link(parameter_file_name_major, parameter_file_path);
 
       if (F_status_is_error_not(*status) && data->main->error.verbosity >= f_console_verbosity_verbose_e) {
-        fll_print_format("Linked file '%Q' to '%Q'.%r", data->main->output.to, parameter_file_path, parameter_file_name_major, f_string_eol_s);
+        fll_print_format("Linked file '%Q' to '%Q'.%r", data->main->message.to, parameter_file_path, parameter_file_name_major, f_string_eol_s);
       }
       else if (F_status_is_error(*status)) {
         if (F_status_set_fine(*status) == F_file_found) {
@@ -360,7 +360,7 @@ extern "C" {
         *status = f_file_link(parameter_file_name_minor, parameter_file_path);
 
         if (F_status_is_error_not(*status) && data->main->error.verbosity >= f_console_verbosity_verbose_e) {
-          fll_print_format("Linked file '%Q' to '%Q'.%r", data->main->output.to, parameter_file_path, parameter_file_name_minor, f_string_eol_s);
+          fll_print_format("Linked file '%Q' to '%Q'.%r", data->main->message.to, parameter_file_path, parameter_file_name_minor, f_string_eol_s);
         }
         else if (F_status_is_error(*status)) {
           if (F_status_set_fine(*status) == F_file_found) {
@@ -389,7 +389,7 @@ extern "C" {
           *status = f_file_link(parameter_file_name_micro, parameter_file_path);
 
           if (F_status_is_error_not(*status) && data->main->error.verbosity >= f_console_verbosity_verbose_e) {
-            fll_print_format("Linked file '%Q' to '%Q'.%r", data->main->output.to, parameter_file_path, parameter_file_name_micro, f_string_eol_s);
+            fll_print_format("Linked file '%Q' to '%Q'.%r", data->main->message.to, parameter_file_path, parameter_file_name_micro, f_string_eol_s);
           }
           else if (F_status_is_error(*status)) {
             if (F_status_set_fine(*status) == F_file_found) {
@@ -417,7 +417,7 @@ extern "C" {
           *status = f_file_link(parameter_file_name_nano, parameter_file_path);
 
           if (F_status_is_error_not(*status) && data->main->error.verbosity >= f_console_verbosity_verbose_e) {
-            fll_print_format("Linked file '%Q' to '%Q'.%r", data->main->output.to, parameter_file_path, parameter_file_name_nano, f_string_eol_s);
+            fll_print_format("Linked file '%Q' to '%Q'.%r", data->main->message.to, parameter_file_path, parameter_file_name_nano, f_string_eol_s);
           }
           else if (F_status_is_error(*status)) {
             if (F_status_set_fine(*status) == F_file_found) {
@@ -446,8 +446,8 @@ extern "C" {
     if (F_status_is_error(*status) || f_file_exists(file_stage, F_true) == F_true || *status == F_child) return data->main->child;
     if (!data_build->setting.build_sources_library.used && !data_build->setting.build_sources_library_static.used) return 0;
 
-    if (data->main->output.verbosity != f_console_verbosity_quiet_e && data->main->output.verbosity != f_console_verbosity_error_e) {
-      fll_print_format("%r%[Compiling static library.%]%r", data->main->output.to, f_string_eol_s, data->main->context.set.important, data->main->context.set.important, f_string_eol_s);
+    if (data->main->message.verbosity != f_console_verbosity_quiet_e && data->main->message.verbosity != f_console_verbosity_error_e) {
+      fll_print_format("%r%[Compiling static library.%]%r", data->main->message.to, f_string_eol_s, data->main->context.set.important, data->main->context.set.important, f_string_eol_s);
     }
 
     f_string_dynamic_t file_name = f_string_dynamic_t_initialize;
similarity index 97%
rename from level_3/fake/c/private-build-load.c
rename to level_3/fake/c/main/private-build-load.c
index 343b1c5cfe5ba8f173d5e4cd1d6933cf06c98862..f5f41baf4f6abb499226587d4476e3c90b2cfb86 100644 (file)
@@ -44,7 +44,7 @@ extern "C" {
     if (environment->used + data_build->setting.environment.used > environment->size) {
       if (environment->used + data_build->setting.environment.used > f_environment_max_length_d) {
         if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
-          f_file_stream_lock(data->main->error);
+          f_file_stream_lock(data->main->error.to);
 
           fl_print_format("%r%[%QThe values for the setting '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
           fl_print_format("%[%r%]", data->main->error.to, data->main->error.notable, fake_build_setting_name_environment_s, data->main->error.notable);
@@ -52,7 +52,7 @@ extern "C" {
           fl_print_format("%[%r%]", data->main->error.to, data->main->error.notable, fake_build_setting_name_environment_s, data->main->error.notable);
           fl_print_format("%[' is too large.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
 
-          f_file_stream_lock(data->main->error);
+          f_file_stream_unlock(data->main->error.to);
         }
 
         *status = F_status_set_error(F_array_too_large);
@@ -75,7 +75,7 @@ extern "C" {
     if (F_status_is_error(*status)) return;
 
     if (fll_program_standard_signal_received(data->main)) {
-      fll_program_print_signal_received(main->warning, setting->line_first, main->signal_received);
+      fll_program_print_signal_received(data->main->warning, data->setting->line_first, data->main->signal_received);
 
       *status = F_status_set_error(F_interrupt);
 
@@ -99,7 +99,7 @@ extern "C" {
     if (build_arguments && build_arguments->used) {
       path_file.used = data->path_data_build.used + build_arguments->array[0].used;
     }
-    else if (!process_pipe || (data->flag & fake_data_flag_has_operation_e)) {
+    else if (!process_pipe || (data->flag & fake_data_flag_operation_e)) {
       path_file.used = data->file_data_build_settings.used;
     }
     else {
@@ -114,7 +114,7 @@ extern "C" {
       memcpy(path_file_string, data->path_data_build.string, sizeof(f_char_t) * data->path_data_build.used);
       memcpy(path_file_string + data->path_data_build.used, build_arguments->array[0].string, sizeof(f_char_t) * build_arguments->array[0].used);
     }
-    else if (!process_pipe || (data->flag & fake_data_flag_has_operation_e)) {
+    else if (!process_pipe || (data->flag & fake_data_flag_operation_e)) {
       memcpy(path_file_string, data->file_data_build_settings.string, sizeof(f_char_t) * data->file_data_build_settings.used);
     }
     else {
@@ -138,7 +138,7 @@ extern "C" {
       }
 
       if (F_status_is_error_not(*status)) {
-        if (build_arguments && build_arguments->used || !process_pipe || (data->flag & fake_data_flag_has_operation_e)) {
+        if (build_arguments && build_arguments->used || !process_pipe || (data->flag & fake_data_flag_operation_e)) {
           *status = fake_file_buffer(data, path_file, process_pipe ? F_false : F_true, &buffer);
         }
       }
@@ -200,7 +200,7 @@ extern "C" {
       for (uint8_t i = 0; i < 1; ++i) {
 
         if (!settings[i]->used) {
-          f_file_stream_lock(data->main->error);
+          f_file_stream_lock(data->main->error.to);
 
           fl_print_format("%r%[%QThe setting '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
           fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, names[i], data->main->error.notable);
@@ -208,7 +208,7 @@ extern "C" {
           fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, path_file, data->main->error.notable);
           fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
 
-          f_file_stream_unlock(data->main->error);
+          f_file_stream_unlock(data->main->error.to);
 
           failed = F_true;
         }
@@ -231,7 +231,7 @@ extern "C" {
     if (F_status_is_error(*status) && buffer.used) return;
 
     if (fll_program_standard_signal_received(data->main)) {
-      fll_program_print_signal_received(main->warning, setting->line_first, main->signal_received);
+      fll_program_print_signal_received(data->main->warning, data->setting->line_first, data->main->signal_received);
 
       *status = F_status_set_error(F_interrupt);
 
@@ -596,7 +596,7 @@ extern "C" {
 
         if (found == F_false) {
           if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
-            f_file_stream_lock(data->main->error);
+            f_file_stream_lock(data->main->error.to);
 
             fl_print_format("%r%[%QThe specified mode '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
             fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, modes->array[i], data->main->error.notable);
@@ -604,7 +604,7 @@ extern "C" {
             fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, path_file, data->main->error.notable);
             fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
 
-            f_file_stream_unlock(data->main->error);
+            f_file_stream_unlock(data->main->error.to);
           }
 
           error_printed = F_true;
@@ -690,13 +690,13 @@ extern "C" {
     if (F_status_is_error(*status)) {
       if (*status == F_status_set_error(F_string_too_large)) {
         if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
-          f_file_stream_unlock(data->main->error);
+          f_file_stream_unlock(data->main->error.to);
 
           fl_print_format("%r%[%QA setting in the file '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
           fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, path_file, data->main->error.notable);
           fl_print_format("%[' is too long.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
 
-          f_file_stream_unlock(data->main->error);
+          f_file_stream_unlock(data->main->error.to);
         }
       }
       else if (!error_printed) {
@@ -1159,7 +1159,7 @@ extern "C" {
             *settings_single_bool[i] = F_true;
 
             if (data->main->warning.verbosity >= f_console_verbosity_verbose_e) {
-              f_file_stream_lock(data->main->warning);
+              f_file_stream_lock(data->main->warning.to);
 
               fl_print_format("%r%[%QThe setting '%]", data->main->warning.to, f_string_eol_s, data->main->warning.context, data->main->warning.prefix, data->main->warning.context);
               fl_print_format("%[%r%]", data->main->warning.to, data->main->warning.notable, settings_single_name[i], data->main->warning.notable);
@@ -1173,7 +1173,7 @@ extern "C" {
               fl_print_format("%[%r%]", data->main->warning.to, data->main->warning.notable, fake_common_setting_bool_yes_s, data->main->warning.notable);
               fl_print_format("%['.%]%r", data->main->warning.to, data->main->warning.context, data->main->warning.context, f_string_eol_s);
 
-              f_file_stream_unlock(data->main->warning);
+              f_file_stream_unlock(data->main->warning.to);
             }
           }
         }
@@ -1191,7 +1191,7 @@ extern "C" {
             *settings_single_language[i] = fake_build_language_type_c_e;
 
             if (data->main->warning.verbosity >= f_console_verbosity_verbose_e) {
-              f_file_stream_lock(data->main->warning);
+              f_file_stream_lock(data->main->warning.to);
 
               fl_print_format("%r%[%QThe setting '%]", data->main->warning.to, f_string_eol_s, data->main->warning.context, data->main->warning.prefix, data->main->warning.context);
               fl_print_format("%[%r%]", data->main->warning.to, data->main->warning.notable, settings_single_name[i], data->main->warning.notable);
@@ -1207,7 +1207,7 @@ extern "C" {
               fl_print_format("%[%r%]", data->main->warning.to, data->main->warning.notable, fake_build_language_c_s, data->main->warning.notable);
               fl_print_format("%['.%]%r", data->main->warning.to, data->main->warning.context, data->main->warning.context, f_string_eol_s);
 
-              f_file_stream_unlock(data->main->warning);
+              f_file_stream_unlock(data->main->warning.to);
             }
           }
         }
@@ -1228,7 +1228,7 @@ extern "C" {
             *settings_single_version[i] = settings_single_version_default[i];
 
             if (data->main->warning.verbosity >= f_console_verbosity_verbose_e) {
-              f_file_stream_lock(data->main->warning);
+              f_file_stream_lock(data->main->warning.to);
 
               fl_print_format("%r%[%QThe setting '%]", data->main->warning.to, f_string_eol_s, data->main->warning.context, data->main->warning.prefix, data->main->warning.context);
               fl_print_format("%[%r%]", data->main->warning.to, data->main->warning.notable, settings_single_name[i], data->main->warning.notable);
@@ -1246,7 +1246,7 @@ extern "C" {
               fl_print_format("%[%r%]", data->main->warning.to, data->main->warning.notable, settings_single_version_default_name[i], data->main->warning.notable);
               fl_print_format("%['.%]%r", data->main->warning.to, data->main->warning.context, data->main->warning.context, f_string_eol_s);
 
-              f_file_stream_unlock(data->main->warning);
+              f_file_stream_unlock(data->main->warning.to);
             }
           }
         }
@@ -1289,7 +1289,7 @@ extern "C" {
           setting->version_file = fake_build_version_type_micro_e;
 
           if (data->main->warning.verbosity >= f_console_verbosity_verbose_e) {
-            f_file_stream_lock(data->main->warning);
+            f_file_stream_lock(data->main->warning.to);
 
             fl_print_format("%r%[%QThe setting '%]", data->main->warning.to, f_string_eol_s, data->main->warning.context, data->main->warning.prefix, data->main->warning.context);
             fl_print_format("%[%r%]", data->main->warning.to, data->main->warning.notable, fake_build_setting_name_version_file_s, data->main->warning.notable);
@@ -1299,7 +1299,7 @@ extern "C" {
             fl_print_format("%[%r%]", data->main->warning.to, data->main->warning.notable, fake_build_version_micro_s, data->main->warning.notable);
             fl_print_format("%['.%]%r", data->main->warning.to, data->main->warning.context, data->main->warning.context, f_string_eol_s);
 
-            f_file_stream_unlock(data->main->warning);
+            f_file_stream_unlock(data->main->warning.to);
           }
         }
 
@@ -1307,7 +1307,7 @@ extern "C" {
           setting->version_target = fake_build_version_type_major_e;
 
           if (data->main->warning.verbosity >= f_console_verbosity_verbose_e) {
-            f_file_stream_lock(data->main->warning);
+            f_file_stream_lock(data->main->warning.to);
 
             fl_print_format("%r%[%QThe setting '%]", data->main->warning.to, f_string_eol_s, data->main->warning.context, data->main->warning.prefix, data->main->warning.context);
             fl_print_format("%[%r%]", data->main->warning.to, data->main->warning.notable, fake_build_setting_name_version_target_s, data->main->warning.notable);
@@ -1317,7 +1317,7 @@ extern "C" {
             fl_print_format("%[%r%]", data->main->warning.to, data->main->warning.notable, fake_build_version_major_s, data->main->warning.notable);
             fl_print_format("%['.%]%r", data->main->warning.to, data->main->warning.context, data->main->warning.context, f_string_eol_s);
 
-            f_file_stream_unlock(data->main->warning);
+            f_file_stream_unlock(data->main->warning.to);
           }
         }
       }
@@ -1393,7 +1393,7 @@ extern "C" {
         }
 
         if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
-          f_file_stream_lock(data->main->error);
+          f_file_stream_lock(data->main->error.to);
 
           fl_print_format("%r%[%QThe parameters '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
           fl_print_format("%[%r%r%]", data->main->error.to, data->main->error.notable, f_console_symbol_long_normal_s, fake_long_shared_disabled_s, data->main->error.notable);
@@ -1403,7 +1403,7 @@ extern "C" {
           fl_print_format("%[%r%r%]", data->main->error.to, data->main->error.notable, f_console_symbol_long_normal_s, setting->build_shared ? fake_long_shared_enabled_s : fake_long_shared_disabled_s, data->main->error.notable);
           fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
 
-          f_file_stream_unlock(data->main->error);
+          f_file_stream_unlock(data->main->error.to);
         }
       }
       else {
@@ -1428,7 +1428,7 @@ extern "C" {
         }
 
         if (data->main->error.verbosity >= f_console_verbosity_verbose_e) {
-          f_file_stream_lock(data->main->error);
+          f_file_stream_lock(data->main->error.to);
 
           fl_print_format("%r%[%QThe parameters '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
           fl_print_format("%[%r%r%]", data->main->error.to, data->main->error.notable, f_console_symbol_long_normal_s, fake_long_static_disabled_s, data->main->error.notable);
@@ -1438,7 +1438,7 @@ extern "C" {
           fl_print_format("%[%r%r%]", data->main->error.to, data->main->error.notable, f_console_symbol_long_normal_s, setting->build_static ? fake_long_static_enabled_s : fake_long_static_disabled_s, data->main->error.notable);
           fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
 
-          f_file_stream_unlock(data->main->error);
+          f_file_stream_unlock(data->main->error.to);
         }
       }
       else {
@@ -1454,7 +1454,7 @@ extern "C" {
     if (setting->build_language == fake_build_language_type_c_e || setting->build_language == fake_build_language_type_cpp_e) {
       if (setting->build_shared == F_false && setting->build_static == F_false) {
         if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
-          f_file_stream_lock(data->main->error);
+          f_file_stream_lock(data->main->error.to);
 
           fl_print_format("%r%[%QThe build settings '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
           fl_print_format("%[%r%]", data->main->error.to, data->main->error.notable, fake_build_setting_name_build_shared_s, data->main->error.notable);
@@ -1464,7 +1464,7 @@ extern "C" {
           fl_print_format("%[%r%]", data->main->error.to, data->main->error.notable, setting->build_language == fake_build_language_type_c_e ? fake_build_language_c_s : fake_build_language_cpp_s, data->main->error.notable);
           fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
 
-          f_file_stream_unlock(data->main->error);
+          f_file_stream_unlock(data->main->error.to);
         }
 
         *status = F_status_set_error(F_failure);
@@ -1479,7 +1479,7 @@ extern "C" {
     if (F_status_is_error(*status)) return;
 
     if (fll_program_standard_signal_received(data->main)) {
-      fll_program_print_signal_received(main->warning, setting->line_first, main->signal_received);
+      fll_program_print_signal_received(data->main->warning, data->setting->line_first, data->main->signal_received);
 
       *status = F_status_set_error(F_interrupt);
 
similarity index 93%
rename from level_3/fake/c/private-build-object.c
rename to level_3/fake/c/main/private-build-object.c
index 5a64dcf5f45c93e8c38aeba9acbd5c047d310549..346764c0734f7812fde2c2793af3e9365974b27f 100644 (file)
@@ -25,8 +25,8 @@ extern "C" {
     if (F_status_is_error(*status) || f_file_exists(file_stage, F_true) == F_true || *status == F_child) return data->main->child;
     if (!data_build->setting.build_sources_object.used && !data_build->setting.build_sources_object_shared.used) return 0;
 
-    if (data->main->output.verbosity != f_console_verbosity_quiet_e && data->main->output.verbosity != f_console_verbosity_error_e) {
-      fll_print_format("%r%[Compiling shared object.%]%r", data->main->output.to, f_string_eol_s, data->main->context.set.important, data->main->context.set.important, f_string_eol_s);
+    if (data->main->message.verbosity != f_console_verbosity_quiet_e && data->main->message.verbosity != f_console_verbosity_error_e) {
+      fll_print_format("%r%[Compiling shared object.%]%r", data->main->message.to, f_string_eol_s, data->main->context.set.important, data->main->context.set.important, f_string_eol_s);
     }
 
     f_string_dynamics_t arguments = f_string_dynamics_t_initialize;
@@ -96,8 +96,8 @@ extern "C" {
     if (F_status_is_error(*status) || f_file_exists(file_stage, F_true) == F_true || *status == F_child) return data->main->child;
     if (!data_build->setting.build_sources_object.used && !data_build->setting.build_sources_object_static.used) return 0;
 
-    if (data->main->output.verbosity != f_console_verbosity_quiet_e && data->main->output.verbosity != f_console_verbosity_error_e) {
-      fll_print_format("%r%[Compiling static object.%]%r", data->main->output.to, f_string_eol_s, data->main->context.set.important, data->main->context.set.important, f_string_eol_s);
+    if (data->main->message.verbosity != f_console_verbosity_quiet_e && data->main->message.verbosity != f_console_verbosity_error_e) {
+      fll_print_format("%r%[Compiling static object.%]%r", data->main->message.to, f_string_eol_s, data->main->context.set.important, data->main->context.set.important, f_string_eol_s);
     }
 
     f_string_dynamics_t arguments = f_string_dynamics_t_initialize;
similarity index 93%
rename from level_3/fake/c/private-build-objects.c
rename to level_3/fake/c/main/private-build-objects.c
index 94d3be37dad474aa3de04253f92766126ad00a15..928e0c27541ec7c2ff28089c01eb1928bb617378 100644 (file)
@@ -14,8 +14,8 @@ extern "C" {
     if (F_status_is_error(*status) || f_file_exists(file_stage, F_true) == F_true || *status == F_child) return data->main->child;
     if (!data_build->setting.build_sources_library.used) return 0;
 
-    if (data->main->output.verbosity != f_console_verbosity_quiet_e && data->main->output.verbosity != f_console_verbosity_error_e) {
-      fll_print_format("%r%[Compiling objects for static library.%]%r", data->main->output.to, f_string_eol_s, data->main->context.set.important, data->main->context.set.important, f_string_eol_s);
+    if (data->main->message.verbosity != f_console_verbosity_quiet_e && data->main->message.verbosity != f_console_verbosity_error_e) {
+      fll_print_format("%r%[Compiling objects for static library.%]%r", data->main->message.to, f_string_eol_s, data->main->context.set.important, data->main->context.set.important, f_string_eol_s);
     }
 
     f_string_dynamics_t arguments = f_string_dynamics_t_initialize;
@@ -102,13 +102,13 @@ extern "C" {
 
           if (*status == F_false) {
             if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
-              f_file_stream_lock(data->main->error);
+              f_file_stream_lock(data->main->error.to);
 
               fl_print_format("%r%[%QThe path '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
               fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, destination_path, data->main->error.notable);
               fl_print_format("%[' exists but is not a directory.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
 
-              f_file_stream_unlock(data->main->error);
+              f_file_stream_unlock(data->main->error.to);
             }
 
             *status = F_status_set_error(F_failure);
@@ -121,13 +121,13 @@ extern "C" {
 
             if (F_status_is_error(*status)) {
               if (F_status_set_fine(*status) == F_file_found_not) {
-                f_file_stream_lock(data->main->error);
+                f_file_stream_lock(data->main->error.to);
 
                 fl_print_format("%r%[%QThe path '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
                 fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, destination_path, data->main->error.notable);
                 fl_print_format("%[' could not be created, a parent directory does not exist.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
 
-                f_file_stream_unlock(data->main->error);
+                f_file_stream_unlock(data->main->error.to);
               }
               else {
                 fll_error_file_print(data->main->error, F_status_set_fine(*status), "f_directory_create", F_true, destination_path, f_file_operation_create_s, fll_error_file_type_directory_e);
@@ -137,7 +137,7 @@ extern "C" {
             }
 
             if (data->main->error.verbosity >= f_console_verbosity_verbose_e) {
-              fll_print_format("Directory '%Q' created.%r", data->main->output.to, destination_path, f_string_eol_s);
+              fll_print_format("Directory '%Q' created.%r", data->main->message.to, destination_path, f_string_eol_s);
             }
           }
 
similarity index 95%
rename from level_3/fake/c/private-build-program.c
rename to level_3/fake/c/main/private-build-program.c
index b5ee21952400a3e39222e264aacb6c9751d8d0fd..446ccc7fbe0f62049464d242db1e8e92b96af490 100644 (file)
@@ -25,8 +25,8 @@ extern "C" {
     if (F_status_is_error(*status) || f_file_exists(file_stage, F_true) == F_true || *status == F_child) return data->main->child;
     if (!data_build->setting.build_sources_program.used && !data_build->setting.build_sources_program_shared.used) return 0;
 
-    if (data->main->output.verbosity != f_console_verbosity_quiet_e && data->main->output.verbosity != f_console_verbosity_error_e) {
-      fll_print_format("%r%[Compiling shared program.%]%r", data->main->output.to, f_string_eol_s, data->main->context.set.important, data->main->context.set.important, f_string_eol_s);
+    if (data->main->message.verbosity != f_console_verbosity_quiet_e && data->main->message.verbosity != f_console_verbosity_error_e) {
+      fll_print_format("%r%[Compiling shared program.%]%r", data->main->message.to, f_string_eol_s, data->main->context.set.important, data->main->context.set.important, f_string_eol_s);
     }
 
     f_string_dynamics_t arguments = f_string_dynamics_t_initialize;
@@ -119,8 +119,8 @@ extern "C" {
     if (F_status_is_error(*status) || f_file_exists(file_stage, F_true) == F_true || *status == F_child) return data->main->child;
     if (!data_build->setting.build_sources_program.used && !data_build->setting.build_sources_program_static.used) return 0;
 
-    if (data->main->output.verbosity != f_console_verbosity_quiet_e && data->main->output.verbosity != f_console_verbosity_error_e) {
-      fll_print_format("%r%[Compiling static program.%]%r", data->main->output.to, f_string_eol_s, data->main->context.set.important, data->main->context.set.important, f_string_eol_s);
+    if (data->main->message.verbosity != f_console_verbosity_quiet_e && data->main->message.verbosity != f_console_verbosity_error_e) {
+      fll_print_format("%r%[Compiling static program.%]%r", data->main->message.to, f_string_eol_s, data->main->context.set.important, data->main->context.set.important, f_string_eol_s);
     }
 
     f_string_dynamics_t arguments = f_string_dynamics_t_initialize;
similarity index 92%
rename from level_3/fake/c/private-build-skeleton.c
rename to level_3/fake/c/main/private-build-skeleton.c
index cb77a67172a719692ae6b59033858e4fdcf4ec22..29ac5c3eb2ec1c051ddda8a7fb2adb8723065708 100644 (file)
@@ -51,8 +51,8 @@ extern "C" {
       &path_headers,
     };
 
-    if (data->main->output.verbosity != f_console_verbosity_quiet_e && data->main->output.verbosity != f_console_verbosity_error_e) {
-      fll_print_format("%r%[Creating base build directories.%]%r", data->main->output.to, f_string_eol_s, data->main->context.set.important, data->main->context.set.important, f_string_eol_s);
+    if (data->main->message.verbosity != f_console_verbosity_quiet_e && data->main->message.verbosity != f_console_verbosity_error_e) {
+      fll_print_format("%r%[Creating base build directories.%]%r", data->main->message.to, f_string_eol_s, data->main->context.set.important, data->main->context.set.important, f_string_eol_s);
     }
 
     bool created = F_false;
@@ -113,7 +113,7 @@ extern "C" {
       }
 
       if (created && data->main->error.verbosity >= f_console_verbosity_verbose_e) {
-        fll_print_format("Created directory '%Q'.%r", data->main->output.to, *directorys[i], f_string_eol_s);
+        fll_print_format("Created directory '%Q'.%r", data->main->message.to, *directorys[i], f_string_eol_s);
       }
     } // for
 
similarity index 90%
rename from level_3/fake/c/private-build.c
rename to level_3/fake/c/main/private-build.c
index de21a027d2ad7edfec07a20fd3bfcce3487e3eb9..738820b21b1d8cf66b48570c806c29bf14001b16 100644 (file)
@@ -349,7 +349,7 @@ const f_string_static_t fake_build_documentation_files_s = macro_f_string_static
     if (F_status_is_error(*status) || f_file_exists(file_stage, F_true) == F_true || *status == F_child) return;
 
     if (fll_program_standard_signal_received(data->main)) {
-      fll_program_print_signal_received(main->warning, setting->line_first, main->signal_received);
+      fll_program_print_signal_received(data->main->warning, data->setting->line_first, data->main->signal_received);
 
       *status = F_status_set_error(F_interrupt);
 
@@ -357,19 +357,19 @@ const f_string_static_t fake_build_documentation_files_s = macro_f_string_static
     }
 
     f_directory_statuss_t failures = f_directory_statuss_t_initialize;
-    f_string_dynamic_t path_source = f_string_dynamic_t_initialize;
+    f_string_dynamic_t path_source = f_string_dynamic_t_initialize; // @todo move this to a shared buffer.
     f_string_dynamic_t destination_file = f_string_dynamic_t_initialize;
     f_string_dynamic_t destination_directory = f_string_dynamic_t_initialize;
     f_string_static_t buffer = f_string_static_t_initialize;
 
-    if (data->main->output.verbosity != f_console_verbosity_quiet_e && data->main->output.verbosity != f_console_verbosity_error_e) {
-      fll_print_format("%r%[Copying %Q.%]%r", data->main->output.to, f_string_eol_s, data->main->context.set.important, label, data->main->context.set.important, f_string_eol_s);
+    if (data->main->message.verbosity != f_console_verbosity_quiet_e && data->main->message.verbosity != f_console_verbosity_error_e) {
+      fll_print_format("%r%[Copying %Q.%]%r", data->main->message.to, f_string_eol_s, data->main->context.set.important, label, data->main->context.set.important, f_string_eol_s);
     }
 
     *status = f_string_dynamic_resize(source.used, &path_source);
 
     if (F_status_is_error(*status)) {
-      fll_error_print(data->main->error, F_status_set_fine(*status), " f_string_dynamic_resize", F_true);
+      fake_print_error(data->setting, *status, data->main->error, macro_fake_f(f_string_dynamic_resize));
 
       f_string_dynamic_resize(0, &path_source);
 
@@ -381,11 +381,7 @@ const f_string_static_t fake_build_documentation_files_s = macro_f_string_static
     fl_directory_recurse_t recurse = fl_directory_recurse_t_initialize;
 
     if (data->main->error.verbosity >= f_console_verbosity_verbose_e) {
-      recurse.output.stream = data->main->output.to;
-      recurse.output.id = data->main->output.to.id;
-      recurse.output.flag = data->main->output.to.flag;
-      recurse.output.size_read = data->main->output.to.size_read;
-      recurse.output.size_write = data->main->output.to.size_write;
+      recurse.output = data->main->message.to;
       recurse.verbose = fake_verbose_print_copy;
     }
 
@@ -395,7 +391,7 @@ const f_string_static_t fake_build_documentation_files_s = macro_f_string_static
 
       if (!(i % fake_signal_check_short_d)) {
         if (fll_program_standard_signal_received(data->main)) {
-          fll_program_print_signal_received(main->warning, setting->line_first, main->signal_received);
+          fll_program_print_signal_received(data->main->warning, data->setting->line_first, data->main->signal_received);
 
           *status = F_status_set_error(F_interrupt);
 
@@ -412,7 +408,7 @@ const f_string_static_t fake_build_documentation_files_s = macro_f_string_static
       *status = f_string_dynamic_append_nulless(files.array[i], &path_source);
 
       if (F_status_is_error(*status)) {
-        fll_error_print(data->main->error, F_status_set_fine(*status), "f_string_dynamic_append_nulless", F_true);
+        fake_print_error(data->setting, *status, data->main->error, macro_fake_f(f_string_dynamic_append_nulless));
 
         break;
       }
@@ -425,7 +421,7 @@ const f_string_static_t fake_build_documentation_files_s = macro_f_string_static
         *status = f_string_dynamic_append_nulless(destination, &destination_directory);
 
         if (F_status_is_error(*status)) {
-          fll_error_print(data->main->error, F_status_set_fine(*status), "f_string_dynamic_append_nulless", F_true);
+          fake_print_error(data->setting, *status, data->main->error, macro_fake_f(f_string_dynamic_append_nulless));
 
           break;
         }
@@ -433,7 +429,7 @@ const f_string_static_t fake_build_documentation_files_s = macro_f_string_static
         *status = f_file_name_base(path_source, &destination_directory);
 
         if (F_status_is_error(*status)) {
-          fll_error_print(data->main->error, F_status_set_fine(*status), "f_file_name_base", F_true);
+          fake_print_error(data->setting, *status, data->main->error, macro_fake_f(f_file_name_base));
 
           break;
         }
@@ -443,11 +439,12 @@ const f_string_static_t fake_build_documentation_files_s = macro_f_string_static
         if (F_status_is_error(*status)) {
           if (data->main->error.verbosity >= f_console_verbosity_verbose_e) {
             for (f_array_length_t j = 0; j < failures.used; ++j) {
-              fake_print_error_build_operation_file(data, F_status_set_fine(*status), "fl_directory_copy", fake_common_file_directory_copy_s, f_file_operation_to_s, path_source, destination_directory, F_true);
+              fake_print_error_build_operation_file(data, F_status_set_fine(*status), macro_fake_f(fl_directory_copy), fake_common_file_directory_copy_s, f_file_operation_to_s, path_source, destination_directory, F_true);
             } // for
 
             if (F_status_set_fine(*status) != F_failure) {
-              fll_error_print(data->main->error, F_status_set_fine(*status), "fl_directory_copy", F_true);
+              fake_print_error(data->setting, *status, data->main->error, macro_fake_f(fl_directory_copy));
+              fll_error_print(data->main->error, F_status_set_fine(*status), "", F_true);
             }
 
             break;
@@ -466,6 +463,7 @@ const f_string_static_t fake_build_documentation_files_s = macro_f_string_static
         *status = f_string_dynamic_append_nulless(destination, &destination_file);
 
         if (F_status_is_error(*status)) {
+          fake_print_error(data->setting, *status, data->main->error, macro_fake_f(f_string_dynamic_resize));
           fll_error_print(data->main->error, F_status_set_fine(*status), "f_string_dynamic_append_nulless", F_true);
 
           break;
@@ -475,6 +473,7 @@ const f_string_static_t fake_build_documentation_files_s = macro_f_string_static
           *status = f_string_dynamic_append_nulless(destination, &destination_directory);
 
           if (F_status_is_error(*status)) {
+            fake_print_error(data->setting, *status, data->main->error, macro_fake_f(f_string_dynamic_resize));
             fll_error_print(data->main->error, F_status_set_fine(*status), "f_string_dynamic_append_nulless", F_true);
 
             break;
@@ -486,6 +485,7 @@ const f_string_static_t fake_build_documentation_files_s = macro_f_string_static
           *status = f_file_name_directory(buffer, &destination_directory);
 
           if (F_status_is_error(*status)) {
+            fake_print_error(data->setting, *status, data->main->error, macro_fake_f(f_string_dynamic_resize));
             fll_error_print(data->main->error, F_status_set_fine(*status), "f_file_name_directory", F_true);
 
             break;
@@ -502,6 +502,7 @@ const f_string_static_t fake_build_documentation_files_s = macro_f_string_static
           *status = f_string_append(path_source.string + perserve_offset, path_source.used - perserve_offset, &destination_file);
 
           if (F_status_is_error(*status)) {
+            fake_print_error(data->setting, *status, data->main->error, macro_fake_f(f_string_dynamic_resize));
             fll_error_print(data->main->error, F_status_set_fine(*status), "f_string_append", F_true);
 
             break;
@@ -511,6 +512,7 @@ const f_string_static_t fake_build_documentation_files_s = macro_f_string_static
           *status = f_file_name_base(path_source, &destination_file);
 
           if (F_status_is_error(*status)) {
+            fake_print_error(data->setting, *status, data->main->error, macro_fake_f(f_string_dynamic_resize));
             fll_error_print(data->main->error, F_status_set_fine(*status), "f_file_name_base", F_true);
 
             break;
@@ -526,7 +528,7 @@ const f_string_static_t fake_build_documentation_files_s = macro_f_string_static
         }
 
         if (data->main->error.verbosity >= f_console_verbosity_verbose_e) {
-          fll_print_format("Copied file '%Q' to '%Q'.%r", data->main->output.to, path_source, destination_file, f_string_eol_s);
+          fll_print_format("Copied file '%Q' to '%Q'.%r", data->main->message.to, path_source, destination_file, f_string_eol_s);
         }
       }
       else if (F_status_is_error(*status)) {
@@ -612,7 +614,7 @@ const f_string_static_t fake_build_documentation_files_s = macro_f_string_static
     }
 
     if (F_status_is_error(*status)) {
-      fll_error_print(data->main->error, F_status_set_fine(*status), "fll_execute_arguments_add", F_true);
+      fake_print_error(data->setting, *status, data->main->error, macro_fake_f(fll_execute_arguments_add));
 
       f_string_dynamics_resize(0, &arguments);
 
@@ -630,7 +632,7 @@ const f_string_static_t fake_build_documentation_files_s = macro_f_string_static
         } // for
 
         if (F_status_is_error(*status)) {
-          fll_error_print(data->main->error, F_status_set_fine(*status), "f_string_dynamic_mash", F_true);
+          fake_print_error(data->setting, *status, data->main->error, macro_fake_f(f_string_dynamic_mash));
 
           f_string_dynamic_resize(0, &defines);
           f_string_dynamics_resize(0, &arguments);
@@ -674,7 +676,7 @@ const f_string_static_t fake_build_documentation_files_s = macro_f_string_static
       f_string_dynamic_resize(0, &defines);
 
       if (F_status_is_error(*status)) {
-        fll_error_print(data->main->error, F_status_set_fine(*status), "fll_execute_arguments_add_parameter_set", F_true);
+        fake_print_error(data->setting, *status, data->main->error, macro_fake_f(fll_execute_arguments_add_parameter_set));
 
         f_string_dynamics_resize(0, &arguments);
 
@@ -693,7 +695,7 @@ const f_string_static_t fake_build_documentation_files_s = macro_f_string_static
     }
 
     if (F_status_is_error(*status)) {
-      fll_error_print(data->main->error, F_status_set_fine(*status), "f_string_dynamic_append_nulless", F_true);
+      fake_print_error(data->setting, *status, data->main->error, macro_fake_f(f_string_dynamic_append_nulless));
 
       f_string_dynamic_resize(0, &path);
       f_string_dynamics_resize(0, &arguments);
@@ -715,25 +717,17 @@ const f_string_static_t fake_build_documentation_files_s = macro_f_string_static
     f_string_dynamics_resize(0, &arguments);
 
     if (fll_program_standard_signal_received(data->main)) {
-      fll_program_print_signal_received(main->warning, setting->line_first, main->signal_received);
+      fll_program_print_signal_received(data->main->warning, data->setting->line_first, data->main->signal_received);
 
       *status = F_status_set_error(F_interrupt);
     }
     else if (*status != F_child) {
       if (F_status_is_error(*status)) {
         if (F_status_set_fine(*status) == F_failure) {
-          if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
-            f_file_stream_lock(data->main->error);
-
-            fl_print_format("%r%[%QFailed to execute script: '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
-            fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, path, data->main->error.notable);
-            fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
-
-            f_file_stream_unlock(data->main->error);
-          }
+          fake_print_error_failure_script(data->setting, data->main->error, path);
         }
         else {
-          fll_error_print(data->main->error, F_status_set_fine(*status), "fll_execute_program", F_true);
+          fake_print_error(data->setting, *status, data->main->error, macro_fake_f(fll_execute_program));
         }
       }
       else {
@@ -757,14 +751,12 @@ const f_string_static_t fake_build_documentation_files_s = macro_f_string_static
     f_status_t status = f_file_name_base(path, name);
 
     if (F_status_is_error(status)) {
-      fll_error_print(data->main->error, F_status_set_fine(status), "f_file_name_base", F_true);
+      fake_print_error(data->setting, status, data->main->error, macro_fake_f(f_file_name_base));
 
       return status;
     }
 
-    f_array_length_t i = name->used;
-
-    for (; i > 0; --i) {
+    for (f_array_length_t i = name->used; i > 0; --i) {
 
       if (name->string[i] == f_path_extension_separator_s.string[0]) {
         name->used = i;
@@ -819,7 +811,7 @@ const f_string_static_t fake_build_documentation_files_s = macro_f_string_static
   f_status_t fake_build_operate(fake_data_t * const data, const f_string_statics_t * const build_arguments, const bool process_pipe) {
 
     if (fll_program_standard_signal_received(data->main)) {
-      fll_program_print_signal_received(main->warning, setting->line_first, main->signal_received);
+      fll_program_print_signal_received(data->main->warning, data->setting->line_first, data->main->signal_received);
 
       return F_status_set_error(F_interrupt);
     }
@@ -835,15 +827,15 @@ const f_string_static_t fake_build_documentation_files_s = macro_f_string_static
     fake_build_load_setting(data, build_arguments, process_pipe, &data_build.setting, &status);
 
     if (F_status_is_fine(status)) {
-      if (data->main->output.verbosity != f_console_verbosity_quiet_e && data->main->output.verbosity != f_console_verbosity_error_e) {
-        f_file_stream_lock(data->main->output);
+      if (data->main->message.verbosity != f_console_verbosity_quiet_e && data->main->message.verbosity != f_console_verbosity_error_e) {
+        f_file_stream_lock(data->main->message.to);
 
-        fl_print_format("%r%[Building%] ", data->main->output.to, f_string_eol_s, data->main->context.set.important, data->main->context.set.important);
-        fl_print_format("%[%Q%]", data->main->output.to, data->main->context.set.notable, data_build.setting.build_name, data->main->context.set.notable);
-        fl_print_format("%[ using '%]", data->main->output.to, data->main->context.set.important, data->main->context.set.important);
-        fl_print_format("%[%Q%]", data->main->output.to, data->main->context.set.notable, data->settings, data->main->context.set.notable);
+        fl_print_format("%r%[Building%] ", data->main->message.to, f_string_eol_s, data->main->context.set.important, data->main->context.set.important);
+        fl_print_format("%[%Q%]", data->main->message.to, data->main->context.set.notable, data_build.setting.build_name, data->main->context.set.notable);
+        fl_print_format("%[ using '%]", data->main->message.to, data->main->context.set.important, data->main->context.set.important);
+        fl_print_format("%[%Q%]", data->main->message.to, data->main->context.set.notable, data->settings, data->main->context.set.notable);
 
-        fl_print_format("%[' with modes '%]", data->main->output.to, data->main->context.set.important, data->main->context.set.important);
+        fl_print_format("%[' with modes '%]", data->main->message.to, data->main->context.set.important, data->main->context.set.important);
 
         f_string_statics_t modes_custom = f_string_statics_t_initialize;
         modes_custom.used = build_arguments && build_arguments->used > 1 ? build_arguments->used - 1 : 0;
@@ -865,16 +857,16 @@ const f_string_static_t fake_build_documentation_files_s = macro_f_string_static
 
         for (f_array_length_t i = 0; i < modes->used; ) {
 
-          fl_print_format("%[%Q%]", data->main->output.to, data->main->context.set.notable, modes->array[i], data->main->context.set.notable);
+          fl_print_format("%[%Q%]", data->main->message.to, data->main->context.set.notable, modes->array[i], data->main->context.set.notable);
 
           if (++i < modes->used) {
-            fl_print_format("%[', '%]", data->main->output.to, data->main->context.set.important, data->main->context.set.important);
+            fl_print_format("%[', '%]", data->main->message.to, data->main->context.set.important, data->main->context.set.important);
           }
         } // for
 
-        fl_print_format("%['.%]%r", data->main->output.to, data->main->context.set.important, data->main->context.set.important, f_string_eol_s);
+        fl_print_format("%['.%]%r", data->main->message.to, data->main->context.set.important, data->main->context.set.important, f_string_eol_s);
 
-        f_file_stream_unlock(data->main->output);
+        f_file_stream_unlock(data->main->message.to);
       }
     }
 
@@ -1138,7 +1130,7 @@ const f_string_static_t fake_build_documentation_files_s = macro_f_string_static
     if (F_status_is_error(*status)) return;
 
     if (fll_program_standard_signal_received(data->main)) {
-      fll_program_print_signal_received(main->warning, setting->line_first, main->signal_received);
+      fll_program_print_signal_received(data->main->warning, data->setting->line_first, data->main->signal_received);
 
       *status = F_status_set_error(F_interrupt);
 
similarity index 71%
rename from level_3/fake/c/private-clean.c
rename to level_3/fake/c/main/private-clean.c
index 7cff4cee8fba9746066fb71b5bef4fb48e8756b3..3ba31678365357191211cc93b2c6e969ca9d820d 100644 (file)
@@ -9,14 +9,14 @@ extern "C" {
 #ifndef _di_fake_clean_operate_
   f_status_t fake_clean_operate(fake_data_t * const data) {
 
-    if (data->main->output.verbosity != f_console_verbosity_quiet_e && data->main->output.verbosity != f_console_verbosity_error_e) {
-      f_file_stream_lock(data->main->output);
+    if (data->main->message.verbosity != f_console_verbosity_quiet_e && data->main->message.verbosity != f_console_verbosity_error_e) {
+      f_file_stream_lock(data->main->message.to);
 
-      fl_print_format("%r%[Deleting all files within build directory '%]", data->main->output.to, f_string_eol_s, data->main->context.set.important, data->main->context.set.important);
-      fl_print_format("%[%Q%]", data->main->output.to, data->main->context.set.notable, data->path_build, data->main->context.set.notable);
-      fl_print_format("%['.%]%r", data->main->output.to, data->main->context.set.important, data->main->context.set.important, f_string_eol_s);
+      fl_print_format("%r%[Deleting all files within build directory '%]", data->main->message.to, f_string_eol_s, data->main->context.set.important, data->main->context.set.important);
+      fl_print_format("%[%Q%]", data->main->message.to, data->main->context.set.notable, data->path_build, data->main->context.set.notable);
+      fl_print_format("%['.%]%r", data->main->message.to, data->main->context.set.important, data->main->context.set.important, f_string_eol_s);
 
-      f_file_stream_unlock(data->main->output);
+      f_file_stream_unlock(data->main->message.to);
     }
 
     f_status_t status = F_none;
@@ -55,8 +55,10 @@ extern "C" {
 
     if (!result) {
 
+      const f_file_t output = macro_f_file_t_initialize_stream(F_type_output_d);
+
       // @todo in order to get this working, the recursive function that calls this needs to be rewritten with more flexibility or provide a higher-level equivalent function.
-      fll_print_format("Removed '%S'.%r", F_type_input_d, path, f_string_eol_s);
+      fll_print_format("Removed '%S'.%r", output, path, f_string_eol_s);
     }
 
     return result;
similarity index 99%
rename from level_3/fake/c/private-common.h
rename to level_3/fake/c/main/private-common.h
index aab5dff99fa4816f40726607525d18c9b4fbfb1e..09b7e222b5ea71517a8e788121c9b9549ee23eed 100644 (file)
@@ -13,13 +13,23 @@ extern "C" {
 #endif
 
 /**
- * The program data.
+ * The program flags.
  *
  * fake_data_flag_*:
  *   - has_operation: Designate that an operation is explicitly passed.
+ */
+#ifndef _di_fake_data_flag_e_
+  enum {
+    fake_data_flag_operation_e = 0x1,
+  };
+#endif // _di_fake_data_flag_e_
+
+/**
+ * The program data.
  *
- * argv: The argument structure in the progam data parameters for simplifying syntax.
- * at:   The processed at parameter value.
+ * main:    The main program data.
+ * setting: The settings data.
+ * argv:    The argument structure in the progam data parameters for simplifying syntax.
  *
  * flag:      A set of flags, such as designating that no operations are provided.
  * operation: A code representing the currrent operation.
@@ -80,12 +90,9 @@ extern "C" {
  * mode:   The mode data.
  */
 #ifndef _di_fake_data_t_
-  enum {
-    fake_data_flag_has_operation_e = 0x1,
-  };
-
   typedef struct {
     fll_program_data_t *main;
+    fake_setting_t *setting;
     f_string_static_t *argv;
 
     uint8_t flag;
@@ -155,6 +162,7 @@ extern "C" {
       0, \
       0, \
       0, \
+      0, \
       f_string_dynamic_t_initialize, \
       f_string_dynamic_t_initialize, \
       f_string_dynamic_t_initialize, \
similarity index 92%
rename from level_3/fake/c/private-fake.c
rename to level_3/fake/c/main/private-fake.c
index c02ed63c4deabc2b9f46465663da4b2c34fbd2ce..26ec25b7e06962598c82108f851386aa92e27f1a 100644 (file)
@@ -13,23 +13,21 @@ extern "C" {
     if (F_status_is_error(*status)) return 1;
 
     if (data->main->error.verbosity >= f_console_verbosity_verbose_e) {
-      f_file_stream_lock(data->main->output);
+      f_file_stream_lock(data->main->message.to);
 
-      f_print_dynamic(program, data->main->output.to);
+      f_print_dynamic(program, data->main->message.to);
 
       for (f_array_length_t i = 0; i < arguments.used; ++i) {
 
         if (!arguments.array[i].used) continue;
 
-        fl_print_format(" %Q", data->main->output.to, arguments.array[i]);
+        fl_print_format(" %Q", data->main->message.to, arguments.array[i]);
       } // for
 
-      f_print_dynamic_raw(f_string_eol_s, data->main->output.to);
+      f_print_dynamic_raw(f_string_eol_s, data->main->message.to);
 
-      f_file_stream_unlock(data->main->output);
-
-      // Flush to stdout before executing command.
-      f_file_stream_flush(data->main->output.to);
+      f_file_stream_flush(data->main->message.to);
+      f_file_stream_unlock(data->main->message.to);
     }
 
     int return_code = 0;
@@ -46,7 +44,7 @@ extern "C" {
       *status = fll_execute_program(program, arguments, &parameter, 0, (void *) &return_code);
 
       if (fll_program_standard_signal_received(data->main)) {
-        fll_program_print_signal_received(main->warning, setting->line_first, main->signal_received);
+        fll_program_print_signal_received(data->main->warning, data->setting->line_first, data->main->signal_received);
 
         *status = F_status_set_error(F_interrupt);
 
@@ -67,13 +65,13 @@ extern "C" {
 
       if (F_status_set_fine(*status) == F_file_found_not) {
         if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
-          f_file_stream_lock(data->main->error);
+          f_file_stream_lock(data->main->error.to);
 
           fl_print_format("%r%[%QFailed to find program '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
           fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, program, data->main->error.notable);
           fl_print_format("%[' for executing.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
 
-          f_file_stream_unlock(data->main->error);
+          f_file_stream_unlock(data->main->error.to);
         }
       }
       else {
@@ -89,7 +87,7 @@ extern "C" {
   f_status_t fake_file_buffer(fake_data_t * const data, const f_string_static_t path_file, const bool required, f_string_dynamic_t * const buffer) {
 
     if (fll_program_standard_signal_received(data->main)) {
-      fll_program_print_signal_received(main->warning, setting->line_first, main->signal_received);
+      fll_program_print_signal_received(data->main->warning, data->setting->line_first, data->main->signal_received);
 
       return F_status_set_error(F_interrupt);
     }
@@ -173,7 +171,7 @@ extern "C" {
 
     do {
       if (fll_program_standard_signal_received(data->main)) {
-        fll_program_print_signal_received(main->warning, setting->line_first, main->signal_received);
+        fll_program_print_signal_received(data->main->warning, data->setting->line_first, data->main->signal_received);
 
         return F_status_set_error(F_interrupt);
       }
@@ -256,13 +254,13 @@ extern "C" {
 
                 if (F_status_is_error(status)) {
                   if (fll_error_print(data->main->error, F_status_set_fine(status), "f_utf_is_word_dash_plus", F_false) == F_known_not && data->main->error.verbosity > f_console_verbosity_quiet_e) {
-                    f_file_stream_lock(data->main->error);
+                    f_file_stream_lock(data->main->error.to);
 
                     fl_print_format("%r%[%QFailed to process the parameter '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
                     fl_print_format("%[%r%r%]", data->main->error.to, data->main->error.notable, f_console_symbol_long_normal_s, fake_long_process_s, data->main->error.notable);
                     fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
 
-                    f_file_stream_unlock(data->main->error);
+                    f_file_stream_unlock(data->main->error.to);
                   }
 
                   return status;
@@ -270,7 +268,7 @@ extern "C" {
 
                 if (status == F_false) {
                   if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
-                    f_file_stream_lock(data->main->error);
+                    f_file_stream_lock(data->main->error.to);
 
                     fl_print_format("%r%[%QThe '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
                     fl_print_format("%[%r%r%]", data->main->error.to, data->main->error.notable, f_console_symbol_long_normal_s, fake_long_process_s, data->main->error.notable);
@@ -278,7 +276,7 @@ extern "C" {
                     fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, data->main->parameters.arguments.array[index], data->main->error.notable);
                     fl_print_format("%[' contains non-word, non-dash, and non-plus characters.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
 
-                    f_file_stream_unlock(data->main->error);
+                    f_file_stream_unlock(data->main->error.to);
                   }
 
                   return F_status_set_error(F_parameter);
@@ -299,13 +297,13 @@ extern "C" {
             if (F_status_is_error(status)) {
               if (status == F_status_set_error(F_string_too_large)) {
                 if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
-                  f_file_stream_lock(data->main->error);
+                  f_file_stream_lock(data->main->error.to);
 
                   fl_print_format("%r%[%QThe parameter '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
                   fl_print_format("%[%r%Q%]", data->main->error.to, data->main->error.notable, f_console_symbol_long_normal_s, parameters_name[i], data->main->error.notable);
                   fl_print_format("%[' is too long.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
 
-                  f_file_stream_unlock(data->main->error);
+                  f_file_stream_unlock(data->main->error.to);
                 }
               }
               else {
@@ -320,13 +318,13 @@ extern "C" {
 
           if (!data->main->parameters.arguments.array[index].used || status == F_data_not) {
             if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
-              f_file_stream_lock(data->main->error);
+              f_file_stream_lock(data->main->error.to);
 
               fl_print_format("%r%[%QThe parameter '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
               fl_print_format("%[%r%r%]", data->main->error.to, data->main->error.notable, f_console_symbol_long_normal_s, parameters_name[i], data->main->error.notable);
               fl_print_format("%[' must not be empty and must not contain only white space.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
 
-              f_file_stream_unlock(data->main->error);
+              f_file_stream_unlock(data->main->error.to);
             }
           }
         }
@@ -414,13 +412,13 @@ extern "C" {
 
           if (F_status_is_error(status)) {
             if (fll_error_print(data->main->error, F_status_set_fine(status), "f_path_directory_cleanup", F_false) == F_known_not && data->main->error.verbosity > f_console_verbosity_quiet_e) {
-              f_file_stream_lock(data->main->error);
+              f_file_stream_lock(data->main->error.to);
 
               fl_print_format("%r%[%QFailed to process parameter '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
               fl_print_format("%[%r%r%]", data->main->error.to, data->main->error.notable, f_console_symbol_long_normal_s, parameters_name[i], data->main->error.notable);
               fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
 
-              f_file_stream_unlock(data->main->error);
+              f_file_stream_unlock(data->main->error.to);
             }
 
             return status;
@@ -441,13 +439,13 @@ extern "C" {
 
           if (F_status_is_error(status)) {
             if (fll_error_print(data->main->error, F_status_set_fine(status), " f_string_dynamic_append", F_false) == F_known_not && data->main->error.verbosity > f_console_verbosity_quiet_e) {
-              f_file_stream_lock(data->main->error);
+              f_file_stream_lock(data->main->error.to);
 
               fl_print_format("%r%[%QFailed to load default for the parameter '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
               fl_print_format("%[%r%r%]", data->main->error.to, data->main->error.notable, f_console_symbol_long_normal_s, parameters_name[i], data->main->error.notable);
               fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
 
-              f_file_stream_unlock(data->main->error);
+              f_file_stream_unlock(data->main->error.to);
             }
 
             return status;
@@ -461,13 +459,13 @@ extern "C" {
 
       if (F_status_is_error(status)) {
         if (fll_error_print(data->main->error, F_status_set_fine(status), "fll_program_parameter_additional_rip", F_false) == F_known_not && data->main->error.verbosity > f_console_verbosity_quiet_e) {
-          f_file_stream_lock(data->main->error);
+          f_file_stream_lock(data->main->error.to);
 
           fl_print_format("%r%[%QFailed to process the parameter '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
           fl_print_format("%[%r%r%]", data->main->error.to, data->main->error.notable, f_console_symbol_long_normal_s, fake_long_define_s, data->main->error.notable);
           fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
 
-          f_file_stream_unlock(data->main->error);
+          f_file_stream_unlock(data->main->error.to);
         }
 
         return status;
@@ -485,13 +483,13 @@ extern "C" {
 
       if (F_status_is_error(status)) {
         if (fll_error_print(data->main->error, F_status_set_fine(status), "fll_program_parameter_additional_rip", F_false) == F_known_not && data->main->error.verbosity > f_console_verbosity_quiet_e) {
-          f_file_stream_lock(data->main->error);
+          f_file_stream_lock(data->main->error.to);
 
           fl_print_format("%r%[%QFailed to process the parameter '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
           fl_print_format("%[%r%r%]", data->main->error.to, data->main->error.notable, f_console_symbol_long_normal_s, fake_long_mode_s, data->main->error.notable);
           fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
 
-          f_file_stream_unlock(data->main->error);
+          f_file_stream_unlock(data->main->error.to);
         }
 
         return status;
@@ -511,13 +509,13 @@ extern "C" {
 
           if (F_status_is_error(status)) {
             if (fll_error_print(data->main->error, F_status_set_fine(status), "f_utf_is_word_dash_plus", F_false) == F_known_not && data->main->error.verbosity > f_console_verbosity_quiet_e) {
-              f_file_stream_lock(data->main->error);
+              f_file_stream_lock(data->main->error.to);
 
               fl_print_format("%r%[%QFailed to process the parameter '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
               fl_print_format("%[%r%r%]", data->main->error.to, data->main->error.notable, f_console_symbol_long_normal_s, fake_long_mode_s, data->main->error.notable);
               fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
 
-              f_file_stream_unlock(data->main->error);
+              f_file_stream_unlock(data->main->error.to);
             }
 
             return status;
@@ -525,7 +523,7 @@ extern "C" {
 
           if (status == F_false) {
             if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
-              f_file_stream_lock(data->main->error);
+              f_file_stream_lock(data->main->error.to);
 
               fl_print_format("%r%[%QThe '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
               fl_print_format("%[%r%r%]", data->main->error.to, data->main->error.notable, f_console_symbol_long_normal_s, fake_long_mode_s, data->main->error.notable);
@@ -533,7 +531,7 @@ extern "C" {
               fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, data->mode.array[i], data->main->error.notable);
               fl_print_format("%[' contains non-word, non-dash, and non-plus characters.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
 
-              f_file_stream_unlock(data->main->error);
+              f_file_stream_unlock(data->main->error.to);
             }
 
             return F_status_set_error(F_parameter);
@@ -550,7 +548,7 @@ extern "C" {
   f_status_t fake_validate_parameter_paths(fake_data_t * const data) {
 
     if (fll_program_standard_signal_received(data->main)) {
-      fll_program_print_signal_received(main->warning, setting->line_first, main->signal_received);
+      fll_program_print_signal_received(data->main->warning, data->setting->line_first, data->main->signal_received);
 
       return F_status_set_error(F_interrupt);
     }
@@ -640,13 +638,13 @@ extern "C" {
         }
       }
       else if (parameters_required[i] == F_true) {
-        f_file_stream_lock(data->main->error);
+        f_file_stream_lock(data->main->error.to);
 
         fl_print_format("%r%[%QNo valid path for the (required) directory parameter '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
         fl_print_format("%[%r%r%]", data->main->error.to, data->main->error.notable, f_console_symbol_long_normal_s, parameters_name[i], data->main->error.notable);
         fl_print_format("%[' was found.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
 
-        f_file_stream_unlock(data->main->error);
+        f_file_stream_unlock(data->main->error.to);
 
         return F_status_set_error(F_directory_found_not);
       }
similarity index 98%
rename from level_3/fake/c/private-make-load_fakefile.c
rename to level_3/fake/c/main/private-make-load_fakefile.c
index 5a63981c346f3dea7ee12df48958a84607c9fb4c..14c7992fbbe58a3fa238c2c1e4a31bba5dd987fe 100644 (file)
@@ -16,7 +16,7 @@ extern "C" {
     if (F_status_is_error(*status)) return;
 
     if (fll_program_standard_signal_received(data_make->main)) {
-      fll_program_print_signal_received(main->warning, setting->line_first, main->signal_received);
+      fll_program_print_signal_received(data_make->main->warning, data_make->setting->line_first, data_make->main->signal_received);
 
       *status = F_status_set_error(F_interrupt);
 
@@ -120,7 +120,7 @@ extern "C" {
 
           if (!(i % fake_signal_check_short_d)) {
             if (fll_program_standard_signal_received(data_make->main)) {
-              fll_program_print_signal_received(main->warning, setting->line_first, main->signal_received);
+              fll_program_print_signal_received(data_make->main->warning, data_make->setting->line_first, data_make->main->signal_received);
 
               *status = F_status_set_error(F_interrupt);
 
@@ -450,13 +450,13 @@ extern "C" {
         }
         else {
           if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
-            f_file_stream_lock(data->main->error);
+            f_file_stream_lock(data->main->error.to);
 
             fl_print_format("%r%[%QInvalid characters in the define setting name '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
             fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, define.array[i].name, data->main->error.notable);
             fl_print_format("%[', only alpha-numeric ASCII characters and underscore (without a leading digit) are allowed.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
 
-            f_file_stream_unlock(data->main->error);
+            f_file_stream_unlock(data->main->error.to);
           }
 
           status = F_status_set_error(F_failure);
similarity index 96%
rename from level_3/fake/c/private-make-operate.c
rename to level_3/fake/c/main/private-make-operate.c
index 496cdce09bee06b800408a422dc8b015eed9fb1e..5588975632d2abacaf8f465054d239cf634ec9e7 100644 (file)
@@ -17,33 +17,33 @@ extern "C" {
   f_status_t fake_make_operate(fake_data_t * const data) {
 
     if (fll_program_standard_signal_received(data->main)) {
-      fll_program_print_signal_received(main->warning, setting->line_first, main->signal_received);
+      fll_program_print_signal_received(data->main->warning, data->setting->line_first, data->main->signal_received);
 
       return F_status_set_error(F_interrupt);
     }
 
-    if (data->main->output.verbosity != f_console_verbosity_quiet_e && data->main->output.verbosity != f_console_verbosity_error_e) {
-      f_file_stream_lock(data->main->output);
+    if (data->main->message.verbosity != f_console_verbosity_quiet_e && data->main->message.verbosity != f_console_verbosity_error_e) {
+      f_file_stream_lock(data->main->message.to);
 
-      fl_print_format("%r%[Now making using '%]", data->main->output.to, f_string_eol_s, data->main->context.set.important, data->main->context.set.important);
-      fl_print_format("%[%Q%]", data->main->output.to, data->main->context.set.notable, data->fakefile, data->main->context.set.notable);
+      fl_print_format("%r%[Now making using '%]", data->main->message.to, f_string_eol_s, data->main->context.set.important, data->main->context.set.important);
+      fl_print_format("%[%Q%]", data->main->message.to, 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, data->main->context.set.important, data->main->context.set.important);
+        fl_print_format("%[' with modes '%]", data->main->message.to, 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, data->main->context.set.notable, data->mode.array[i], data->main->context.set.notable);
+          fl_print_format("%[%Q%]", data->main->message.to, 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, data->main->context.set.important, data->main->context.set.important);
+            fl_print_format("%[', '%]", data->main->message.to, data->main->context.set.important, data->main->context.set.important);
           }
         } // for
       }
 
-      fl_print_format("%['.%]%r", data->main->output.to, data->main->context.set.important, data->main->context.set.important, f_string_eol_s);
+      fl_print_format("%['.%]%r", data->main->message.to, data->main->context.set.important, data->main->context.set.important, f_string_eol_s);
 
-      f_file_stream_unlock(data->main->output);
+      f_file_stream_unlock(data->main->message.to);
     }
 
     f_status_t status = F_none;
@@ -126,7 +126,7 @@ extern "C" {
       data_make.error.set = &data->main->context.set;
     }
 
-    data_make.error.verbosity = data->main->output.verbosity;
+    data_make.error.verbosity = data->main->message.verbosity;
 
     if (data->main->parameters.remaining.used) {
       f_array_length_t i = 0;
@@ -1250,14 +1250,14 @@ extern "C" {
 
     const f_fss_named_t *section = &data_make->fakefile.array[id_section];
 
-    if (data_make->main->output.verbosity != f_console_verbosity_quiet_e && data_make->main->output.verbosity != f_console_verbosity_error_e) {
-      f_file_stream_lock(data_make->output.to);
+    if (data_make->main->message.verbosity != f_console_verbosity_quiet_e && data_make->main->message.verbosity != f_console_verbosity_error_e) {
+      f_file_stream_lock(data_make->message.to);
 
-      fl_print_format("%r%[Processing Section '%]", data_make->main->output.to, f_string_eol_s, data_make->main->context.set.important, data_make->main->context.set.important);
-      fl_print_format("%[%/Q%]", data_make->main->output.to, data_make->main->context.set.notable, data_make->buffer, section->name, data_make->main->context.set.notable);
-      fl_print_format("%['.%]%r", data_make->main->output.to, data_make->main->context.set.important, data_make->main->context.set.important, f_string_eol_s);
+      fl_print_format("%r%[Processing Section '%]", data_make->main->message.to, f_string_eol_s, data_make->main->context.set.important, data_make->main->context.set.important);
+      fl_print_format("%[%/Q%]", data_make->main->message.to, data_make->main->context.set.notable, data_make->buffer, section->name, data_make->main->context.set.notable);
+      fl_print_format("%['.%]%r", data_make->main->message.to, data_make->main->context.set.important, data_make->main->context.set.important, f_string_eol_s);
 
-      f_file_stream_unlock(data_make->output.to);
+      f_file_stream_unlock(data_make->message.to);
     }
 
     if (!section->objects.used) {
@@ -1361,7 +1361,7 @@ extern "C" {
 
       if (!(i % fake_signal_check_short_d)) {
         if (fll_program_standard_signal_received(data_make->main)) {
-          fll_program_print_signal_received(main->warning, setting->line_first, main->signal_received);
+          fll_program_print_signal_received(data_make->main->warning, data_make->setting->line_first, data_make->main->signal_received);
 
           *status = F_status_set_error(F_interrupt);
 
similarity index 96%
rename from level_3/fake/c/private-make-operate_process.c
rename to level_3/fake/c/main/private-make-operate_process.c
index 94348043c456c676f578184e77e4e1923d49c6e2..9f059f43bd6a47a333c54cd4ecb04065ada39974 100644 (file)
@@ -287,7 +287,7 @@ extern "C" {
     if (!program.used && !arguments.used) return F_data_not;
 
     if (fll_program_standard_signal_received(data_make->main)) {
-      fll_program_print_signal_received(main->warning, setting->line_first, main->signal_received);
+      fll_program_print_signal_received(data_make->main->warning, data_make->setting->line_first, data_make->main->signal_received);
 
       return F_status_set_error(F_interrupt);
     }
@@ -323,32 +323,32 @@ extern "C" {
     }
 
     if (data_make->main->error.verbosity >= f_console_verbosity_verbose_e) {
-      f_file_stream_lock(data_make->output.to);
+      f_file_stream_lock(data_make->message.to);
 
       f_array_length_t i = 0;
 
       if (program.used) {
-        f_print_dynamic_safely(program, data_make->main->output.to);
+        f_print_dynamic_safely(program, data_make->main->message.to);
       }
       else {
         i = 1;
 
-        f_print_dynamic_safely(arguments.array[0], data_make->main->output.to);
+        f_print_dynamic_safely(arguments.array[0], data_make->main->message.to);
       }
 
       for (; i < arguments.used; ++i) {
 
         if (arguments.array[i].used) {
-          fll_print_format(" %Q", data_make->main->output.to, arguments.array[i]);
+          fll_print_format(" %Q", data_make->main->message.to, arguments.array[i]);
         }
       } // for
 
-      f_print_dynamic_raw(f_string_eol_s, data_make->main->output.to);
+      f_print_dynamic_raw(f_string_eol_s, data_make->main->message.to);
 
-      f_file_stream_unlock(data_make->output.to);
+      f_file_stream_unlock(data_make->message.to);
 
       // Flush to stdout before executing command.
-      f_file_stream_flush(data_make->main->output.to);
+      f_file_stream_flush(data_make->main->message.to);
     }
 
     int return_code = 0;
@@ -363,7 +363,7 @@ extern "C" {
     status = fll_execute_program(program, arguments, &parameter, 0, (void *) &return_code);
 
     if (fll_program_standard_signal_received(data_make->main)) {
-      fll_program_print_signal_received(main->warning, setting->line_first, main->signal_received);
+      fll_program_print_signal_received(data_make->main->warning, data_make->setting->line_first, data_make->main->signal_received);
 
       return F_status_set_error(F_interrupt);
     }
similarity index 93%
rename from level_3/fake/c/private-make-operate_process_type.c
rename to level_3/fake/c/main/private-make-operate_process_type.c
index 1c20f49e04d91e6df81054ef918eb3571acd28c8..46c6a44931de9506dc08317940d7e1319c2724f6 100644 (file)
@@ -30,13 +30,13 @@ extern "C" {
     }
 
     if (data_make->main->error.verbosity >= f_console_verbosity_verbose_e) {
-      f_file_stream_lock(data_make->output.to);
+      f_file_stream_lock(data_make->message.to);
 
-      fl_print_format("%rBreaking as '", data_make->main->output.to, f_string_eol_s);
-      fl_print_format("%[%Q%]", data_make->main->output.to, data_make->main->context.set.notable, data_make->cache_arguments.used ? data_make->cache_arguments.array[0] : fake_make_operation_argument_success_s, data_make->main->context.set.notable);
-      fl_print_format("'.%r", data_make->main->output.to, f_string_eol_s);
+      fl_print_format("%rBreaking as '", data_make->main->message.to, f_string_eol_s);
+      fl_print_format("%[%Q%]", data_make->main->message.to, data_make->main->context.set.notable, data_make->cache_arguments.used ? data_make->cache_arguments.array[0] : fake_make_operation_argument_success_s, data_make->main->context.set.notable);
+      fl_print_format("'.%r", data_make->main->message.to, f_string_eol_s);
 
-      f_file_stream_unlock(data_make->output.to);
+      f_file_stream_unlock(data_make->message.to);
     }
 
     return status;
@@ -216,7 +216,7 @@ extern "C" {
 
     if (clone) {
       if (data_make->main->error.verbosity >= f_console_verbosity_verbose_e) {
-        recurse.output = data_make->main->output.to;
+        recurse.output = data_make->main->message.to;
         recurse.verbose = fake_verbose_print_clone;
       }
 
@@ -226,7 +226,7 @@ extern "C" {
       macro_f_mode_t_set_default_umask(mode, data_make->main->umask);
 
       if (data_make->main->error.verbosity >= f_console_verbosity_verbose_e) {
-        recurse.output = data_make->main->output.to;
+        recurse.output = data_make->main->message.to;
         recurse.verbose = fake_verbose_print_copy;
       }
     }
@@ -327,12 +327,12 @@ extern "C" {
         }
 
         if (data_make->main->error.verbosity >= f_console_verbosity_verbose_e) {
-          f_file_stream_lock(data_make->output.to);
+          f_file_stream_lock(data_make->message.to);
 
-          fl_print_format("%r%s '%[%Q%]' to '", data_make->main->output.to, f_string_eol_s, clone ? "Cloned" : "Copied", data_make->main->context.set.notable, data_make->cache_arguments.array[i], data_make->main->context.set.notable);
-          fl_print_format("%[%Q%]'.%r", data_make->main->output.to, data_make->main->context.set.notable, destination, data_make->main->context.set.notable, f_string_eol_s);
+          fl_print_format("%r%s '%[%Q%]' to '", data_make->main->message.to, f_string_eol_s, clone ? "Cloned" : "Copied", data_make->main->context.set.notable, data_make->cache_arguments.array[i], data_make->main->context.set.notable);
+          fl_print_format("%[%Q%]'.%r", data_make->main->message.to, data_make->main->context.set.notable, destination, data_make->main->context.set.notable, f_string_eol_s);
 
-          f_file_stream_unlock(data_make->output.to);
+          f_file_stream_unlock(data_make->message.to);
         }
       }
       else if (F_status_is_error(status_file)) {
@@ -362,7 +362,7 @@ extern "C" {
       fll_error_print(data_make->error, F_status_set_fine(status), "f_environment_set", F_true);
     }
     else if (data_make->main->error.verbosity >= f_console_verbosity_verbose_e) {
-      fll_print_format("%rDefined environment variable '%[%Q%]'.%r", data_make->main->output.to, f_string_eol_s, data_make->main->context.set.notable, data_make->cache_arguments.array[0], data_make->main->context.set.notable, f_string_eol_s);
+      fll_print_format("%rDefined environment variable '%[%Q%]'.%r", data_make->main->message.to, f_string_eol_s, data_make->main->context.set.notable, data_make->cache_arguments.array[0], data_make->main->context.set.notable, f_string_eol_s);
     }
 
     return status;
@@ -413,7 +413,7 @@ extern "C" {
 
         if (F_status_set_fine(status) == F_file_found_not) {
           if (data_make->main->error.verbosity >= f_console_verbosity_verbose_e) {
-            fll_print_format("%rThe directory '%[%Q%]' does not exist.%r", data_make->main->output.to, f_string_eol_s, data_make->main->context.set.notable, data_make->cache_arguments.array[i], data_make->main->context.set.notable, f_string_eol_s);
+            fll_print_format("%rThe directory '%[%Q%]' does not exist.%r", data_make->main->message.to, f_string_eol_s, data_make->main->context.set.notable, data_make->cache_arguments.array[i], data_make->main->context.set.notable, f_string_eol_s);
           }
 
           status = F_none;
@@ -426,7 +426,7 @@ extern "C" {
         }
 
         if (data_make->main->error.verbosity >= f_console_verbosity_verbose_e) {
-          fll_print_format("%rRemoved '%[%Q%]'.%r", data_make->main->output.to, f_string_eol_s, data_make->main->context.set.notable, data_make->cache_arguments.array[i], data_make->main->context.set.notable, f_string_eol_s);
+          fll_print_format("%rRemoved '%[%Q%]'.%r", data_make->main->message.to, f_string_eol_s, data_make->main->context.set.notable, data_make->cache_arguments.array[i], data_make->main->context.set.notable, f_string_eol_s);
         }
       }
       else {
@@ -434,7 +434,7 @@ extern "C" {
 
         if (F_status_set_fine(status) == F_file_found_not) {
           if (data_make->main->error.verbosity >= f_console_verbosity_verbose_e) {
-            fll_print_format("%rThe file '%[%Q%]' does not exist.%r", data_make->main->output.to, f_string_eol_s, data_make->main->context.set.notable, data_make->cache_arguments.array[i], data_make->main->context.set.notable, f_string_eol_s);
+            fll_print_format("%rThe file '%[%Q%]' does not exist.%r", data_make->main->message.to, f_string_eol_s, data_make->main->context.set.notable, data_make->cache_arguments.array[i], data_make->main->context.set.notable, f_string_eol_s);
           }
 
           status = F_none;
@@ -447,7 +447,7 @@ extern "C" {
         }
 
         if (data_make->main->error.verbosity >= f_console_verbosity_verbose_e) {
-          fll_print_format("%rRemoved '%[%Q%]'.%r", data_make->main->output.to, f_string_eol_s, data_make->main->context.set.notable, data_make->cache_arguments.array[i], data_make->main->context.set.notable, f_string_eol_s);
+          fll_print_format("%rRemoved '%[%Q%]'.%r", data_make->main->message.to, f_string_eol_s, data_make->main->context.set.notable, data_make->cache_arguments.array[i], data_make->main->context.set.notable, f_string_eol_s);
         }
       }
     } // for
@@ -482,7 +482,7 @@ extern "C" {
     }
 
     if (data_make->main->error.verbosity >= f_console_verbosity_verbose_e) {
-      fll_print_format("%rExiting as '%[%Q%]'.%r", data_make->main->output.to, f_string_eol_s, data_make->main->context.set.notable, data_make->cache_arguments.used ? data_make->cache_arguments.array[0] : fake_make_operation_argument_success_s, data_make->main->context.set.notable, f_string_eol_s);
+      fll_print_format("%rExiting as '%[%Q%]'.%r", data_make->main->message.to, f_string_eol_s, data_make->main->context.set.notable, data_make->cache_arguments.used ? data_make->cache_arguments.array[0] : fake_make_operation_argument_success_s, data_make->main->context.set.notable, f_string_eol_s);
     }
 
     return status;
@@ -519,23 +519,23 @@ extern "C" {
     }
 
     if (data_make->main->error.verbosity >= f_console_verbosity_verbose_e) {
-      f_file_stream_lock(data_make->output.to);
+      f_file_stream_lock(data_make->message.to);
 
-      f_print_terminated("Set failure state to '", data_make->main->output.to);
+      f_print_terminated("Set failure state to '", data_make->main->message.to);
 
       if (data_make->setting_make.fail == fake_make_operation_fail_type_exit_e) {
-        fl_print_format("%[%r%]", data_make->main->output.to, data_make->main->context.set.notable, fake_make_operation_argument_exit_s, data_make->main->context.set.notable);
+        fl_print_format("%[%r%]", data_make->main->message.to, data_make->main->context.set.notable, fake_make_operation_argument_exit_s, data_make->main->context.set.notable);
       }
       else if (data_make->setting_make.fail == fake_make_operation_fail_type_warn_e) {
-        fl_print_format("%[%r%]", data_make->main->output.to, data_make->main->context.set.notable, fake_make_operation_argument_warn_s, data_make->main->context.set.notable);
+        fl_print_format("%[%r%]", data_make->main->message.to, data_make->main->context.set.notable, fake_make_operation_argument_warn_s, data_make->main->context.set.notable);
       }
       else {
-        fl_print_format("%[%r%]", data_make->main->output.to, data_make->main->context.set.notable, fake_make_operation_argument_ignore_s, data_make->main->context.set.notable);
+        fl_print_format("%[%r%]", data_make->main->message.to, data_make->main->context.set.notable, fake_make_operation_argument_ignore_s, data_make->main->context.set.notable);
       }
 
-      fl_print_format("'.%r", data_make->main->output.to, f_string_eol_s);
+      fl_print_format("'.%r", data_make->main->message.to, f_string_eol_s);
 
-      f_file_stream_unlock(data_make->output.to);
+      f_file_stream_unlock(data_make->message.to);
     }
   }
 #endif // _di_fake_make_operate_process_type_fail_
@@ -581,12 +581,12 @@ extern "C" {
       }
 
       if (data_make->main->error.verbosity >= f_console_verbosity_verbose_e) {
-        f_file_stream_lock(data_make->output.to);
+        f_file_stream_lock(data_make->message.to);
 
-        fl_print_format("%r group of '%[%r%]", data_make->main->output.to, all ? "Recursively changed" : "Changed", data_make->main->context.set.notable, data_make->cache_arguments.array[i], data_make->main->context.set.notable);
-        fl_print_format("' to %[%ul%].%r", data_make->main->output.to, data_make->main->context.set.notable, id, data_make->main->context.set.notable, f_string_eol_s);
+        fl_print_format("%r group of '%[%r%]", data_make->main->message.to, all ? "Recursively changed" : "Changed", data_make->main->context.set.notable, data_make->cache_arguments.array[i], data_make->main->context.set.notable);
+        fl_print_format("' to %[%ul%].%r", data_make->main->message.to, data_make->main->context.set.notable, id, data_make->main->context.set.notable, f_string_eol_s);
 
-        f_file_stream_unlock(data_make->output.to);
+        f_file_stream_unlock(data_make->message.to);
       }
     } // for
 
@@ -1363,12 +1363,12 @@ extern "C" {
     }
 
     if (data_make->main->error.verbosity >= f_console_verbosity_verbose_e) {
-      f_file_stream_lock(data_make->output.to);
+      f_file_stream_lock(data_make->message.to);
 
-      fl_print_format("Created symbolic link from '%[%Q%]", data_make->main->output.to, data_make->main->context.set.notable, data_make->cache_arguments.array[data_make->cache_arguments.used - 1], data_make->main->context.set.notable);
-      fl_print_format("' to %[%Q%].%r", data_make->main->output.to, data_make->main->context.set.notable, data_make->cache_arguments.array[0], data_make->main->context.set.notable, f_string_eol_s);
+      fl_print_format("Created symbolic link from '%[%Q%]", data_make->main->message.to, data_make->main->context.set.notable, data_make->cache_arguments.array[data_make->cache_arguments.used - 1], data_make->main->context.set.notable);
+      fl_print_format("' to %[%Q%].%r", data_make->main->message.to, data_make->main->context.set.notable, data_make->cache_arguments.array[0], data_make->main->context.set.notable, f_string_eol_s);
 
-      f_file_stream_unlock(data_make->output.to);
+      f_file_stream_unlock(data_make->message.to);
     }
 
     return F_none;
@@ -1426,7 +1426,7 @@ extern "C" {
       }
 
       if (data_make->main->error.verbosity >= f_console_verbosity_verbose_e) {
-        fll_print_format("Changed mode of '%Q' to %#@u.%r", data_make->main->output.to, data_make->cache_arguments.array[i], mode, f_string_eol_s);
+        fll_print_format("Changed mode of '%Q' to %#@u.%r", data_make->main->message.to, data_make->cache_arguments.array[i], mode, f_string_eol_s);
       }
     } // for
 
@@ -1446,7 +1446,7 @@ extern "C" {
     f_string_static_t destination = f_string_static_t_initialize;
 
     if (data_make->main->error.verbosity >= f_console_verbosity_verbose_e) {
-      recurse.output = data_make->main->output.to;
+      recurse.output = data_make->main->message.to;
       recurse.verbose = fake_verbose_print_move;
     }
 
@@ -1593,7 +1593,7 @@ extern "C" {
       }
 
       if (data_make->main->error.verbosity >= f_console_verbosity_verbose_e) {
-        fll_print_format("%s owner of '%Q' to %u.%r", data_make->main->output.to, all ? "Recursively changed" : "Changed", data_make->cache_arguments.array[i], id, f_string_eol_s);
+        fll_print_format("%s owner of '%Q' to %u.%r", data_make->main->message.to, all ? "Recursively changed" : "Changed", data_make->cache_arguments.array[i], id, f_string_eol_s);
       }
     } // for
 
@@ -1712,12 +1712,12 @@ extern "C" {
       // The created relative path is for verbosity purposes and as such its failure to be processed should not be treated as a failure of the function.
       if (F_status_is_error(status)) {
         fll_error_print(data_make->error, F_status_set_fine(status), "fake_make_path_relative", F_true);
-        fll_print_format("Changed to project path '%[%Q%]'.%r", data_make->main->output.to, data_make->main->context.set.notable, argument, data_make->main->context.set.notable, f_string_eol_s);
+        fll_print_format("Changed to project path '%[%Q%]'.%r", data_make->main->message.to, data_make->main->context.set.notable, argument, data_make->main->context.set.notable, f_string_eol_s);
 
         return F_status_set_error(F_failure);
       }
 
-      fll_print_format("Changed to project path '%[%Q%]'.%r", data_make->main->output.to, data_make->main->context.set.notable, data_make->cache_path, data_make->main->context.set.notable, f_string_eol_s);
+      fll_print_format("Changed to project path '%[%Q%]'.%r", data_make->main->message.to, data_make->main->context.set.notable, data_make->cache_path, data_make->main->context.set.notable, f_string_eol_s);
     }
 
     return F_none;
@@ -1773,12 +1773,12 @@ extern "C" {
       } // for
     }
 
-    f_file_stream_lock(data_make->output.to);
+    f_file_stream_lock(data_make->message.to);
 
-    fll_print_dynamic_raw(data_make->cache_1, data_make->main->output.to);
-    fll_print_dynamic_raw(f_string_eol_s, data_make->main->output.to);
+    fll_print_dynamic_raw(data_make->cache_1, data_make->main->message.to);
+    fll_print_dynamic_raw(f_string_eol_s, data_make->main->message.to);
 
-    f_file_stream_unlock(data_make->output.to);
+    f_file_stream_unlock(data_make->message.to);
 
     return F_none;
   }
@@ -1846,10 +1846,10 @@ extern "C" {
         // The created relative path is for verbosity purposes and as such its failure to be processed should not be treated as a failure of the function.
         if (F_status_is_error(status)) {
           fll_error_print(data_make->error, F_status_set_fine(status), "fake_make_path_relative", F_true);
-          fll_print_format("Changed to project path '%[%Q%]'.%r", data_make->main->output.to, data_make->main->context.set.notable, data_make->path.stack.array[data_make->path.stack.used], data_make->main->context.set.notable, f_string_eol_s);
+          fll_print_format("Changed to project path '%[%Q%]'.%r", data_make->main->message.to, data_make->main->context.set.notable, data_make->path.stack.array[data_make->path.stack.used], data_make->main->context.set.notable, f_string_eol_s);
         }
         else {
-          fll_print_format("Changed to project path '%[%Q%]'.%r", data_make->main->output.to, data_make->main->context.set.notable, data_make->cache_path, data_make->main->context.set.notable, f_string_eol_s);
+          fll_print_format("Changed to project path '%[%Q%]'.%r", data_make->main->message.to, data_make->main->context.set.notable, data_make->cache_path, data_make->main->context.set.notable, f_string_eol_s);
         }
       }
 
@@ -1874,7 +1874,7 @@ extern "C" {
     }
 
     if (data_make->main->error.verbosity >= f_console_verbosity_verbose_e) {
-      fll_print_format("Changed to project path ''.%r", data_make->main->output.to, f_string_eol_s);
+      fll_print_format("Changed to project path ''.%r", data_make->main->message.to, f_string_eol_s);
     }
 
     // Clear stack, except for the project root.
@@ -1928,7 +1928,7 @@ extern "C" {
       }
 
       if (data_make->main->error.verbosity >= f_console_verbosity_verbose_e) {
-        fll_print_format("Touched '%[%Q%]'.%r", data_make->main->output.to, data_make->main->context.set.notable, data_make->cache_arguments.array[i], data_make->main->context.set.notable, f_string_eol_s);
+        fll_print_format("Touched '%[%Q%]'.%r", data_make->main->message.to, data_make->main->context.set.notable, data_make->cache_arguments.array[i], data_make->main->context.set.notable, f_string_eol_s);
       }
     } // for
 
similarity index 93%
rename from level_3/fake/c/private-make.c
rename to level_3/fake/c/main/private-make.c
index 846cdf2b68e009aed977198707e745118e28df58..b3ccfd3af723aaf158cb0decc53727caa0f4e0f6 100644 (file)
@@ -60,13 +60,13 @@ extern "C" {
 
         if (status == F_exist_not) {
           if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
-            f_file_stream_lock(data->main->error);
+            f_file_stream_lock(data->main->error.to);
 
             fl_print_format("%r%[%QThe group name '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
             fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, buffer, data->main->error.notable);
             fl_print_format("%[' is not found.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
 
-            f_file_stream_unlock(data->main->error);
+            f_file_stream_unlock(data->main->error.to);
           }
 
           return F_status_set_error(F_failure);
@@ -82,13 +82,13 @@ extern "C" {
 
     if (number > F_type_size_32_unsigned_d) {
       if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
-        f_file_stream_lock(data->main->error);
+        f_file_stream_lock(data->main->error.to);
 
         fl_print_format("%r%[%QThe number '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
         fl_print_format("%[%un%]", data->main->error.to, data->main->error.notable, number, data->main->error.notable);
         fl_print_format("%[' is too large.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
 
-        f_file_stream_unlock(data->main->error);
+        f_file_stream_unlock(data->main->error.to);
       }
     }
 
@@ -112,13 +112,13 @@ extern "C" {
     if (F_status_is_error(status)) {
       if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
         if (F_status_set_fine(status) == F_syntax) {
-          f_file_stream_lock(data->main->error);
+          f_file_stream_lock(data->main->error.to);
 
           fl_print_format("%r%[%QThe mode '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
           fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, buffer, data->main->error.notable);
           fl_print_format("%[' is invalid.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
 
-          f_file_stream_unlock(data->main->error);
+          f_file_stream_unlock(data->main->error.to);
         }
         else {
           fll_error_print(print, status, "f_file_mode_from_string", F_true);
@@ -153,13 +153,13 @@ extern "C" {
 
         if (status == F_exist_not) {
           if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
-            f_file_stream_lock(data->main->error);
+            f_file_stream_lock(data->main->error.to);
 
             fl_print_format("%r%[%QThe user '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
             fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, buffer, data->main->error.notable);
             fl_print_format("%[' is not found.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
 
-            f_file_stream_unlock(data->main->error);
+            f_file_stream_unlock(data->main->error.to);
           }
 
           return F_status_set_error(F_failure);
@@ -175,13 +175,13 @@ extern "C" {
 
     if (number > F_type_size_32_unsigned_d) {
       if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
-        f_file_stream_lock(data->main->error);
+        f_file_stream_lock(data->main->error.to);
 
         fl_print_format("%r%[%QThe number '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
         fl_print_format("%[%un%]", data->main->error.to, data->main->error.notable, number, data->main->error.notable);
         fl_print_format("%[' is too large.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
 
-        f_file_stream_unlock(data->main->error);
+        f_file_stream_unlock(data->main->error.to);
       }
     }
 
similarity index 90%
rename from level_3/fake/c/private-print.c
rename to level_3/fake/c/main/private-print.c
index 112f94e81323323868683d22df7a52c25ca69a16..f0448ac7c336f0c4ae64449375232f24c949ec34 100644 (file)
@@ -7,11 +7,11 @@ extern "C" {
 #endif
 
 #ifndef _di_fake_print_error_build_operation_file_
-  bool fake_print_error_build_operation_file(fake_data_t * const data, const f_status_t status, const char *function, const f_string_static_t operation, const f_string_static_t source, const f_string_static_t destination, const f_string_static_t how, const bool fallback) {
+  bool fake_print_error_build_operation_file(fake_data_t * const data, const f_status_t status, const f_string_static_t function, const f_string_static_t operation, const f_string_static_t source, const f_string_static_t destination, const f_string_static_t how, const bool fallback) {
 
-    if (status == F_file_found_not) {
+    if (f_status_set_fine(status) == F_file_found_not) {
       if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
-        f_file_stream_lock(data->main->error);
+        f_file_stream_lock(data->main->error.to);
 
         fl_print_format("%r%[%QFailed to find '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
 
@@ -19,15 +19,15 @@ extern "C" {
 
         fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
 
-        f_file_stream_unlock(data->main->error);
+        f_file_stream_unlock(data->main->error.to);
       }
 
       return F_false;
     }
 
-    if (status == F_parameter) {
+    if (f_status_set_fine(status) == F_parameter) {
       if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
-        f_file_stream_lock(data->main->error);
+        f_file_stream_lock(data->main->error.to);
 
         fl_print_format("%r%[%QInvalid parameter when calling '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
         fl_print_format("%[%S%]", data->main->error.to, data->main->error.notable, function, data->main->error.notable);
@@ -37,15 +37,15 @@ extern "C" {
 
         fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
 
-        f_file_stream_unlock(data->main->error);
+        f_file_stream_unlock(data->main->error.to);
       }
 
       return F_false;
     }
 
-    if (status == F_name) {
+    if (f_status_set_fine(status) == F_name) {
       if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
-        f_file_stream_lock(data->main->error);
+        f_file_stream_lock(data->main->error.to);
 
         fl_print_format("%r%[%QInvalid name for '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
 
@@ -60,15 +60,15 @@ extern "C" {
 
         fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
 
-        f_file_stream_unlock(data->main->error);
+        f_file_stream_unlock(data->main->error.to);
       }
 
       return F_false;
     }
 
-    if (status == F_memory_not) {
+    if (f_status_set_fine(status) == F_memory_not) {
       if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
-        f_file_stream_lock(data->main->error);
+        f_file_stream_lock(data->main->error.to);
 
         fl_print_format("%r%[%QUnable to allocate memory, while trying to %Q '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, operation, data->main->error.context);
 
@@ -76,15 +76,15 @@ extern "C" {
 
         fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
 
-        f_file_stream_unlock(data->main->error);
+        f_file_stream_unlock(data->main->error.to);
       }
 
       return F_false;
     }
 
-    if (status == F_number_overflow) {
+    if (f_status_set_fine(status) == F_number_overflow) {
       if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
-        f_file_stream_lock(data->main->error);
+        f_file_stream_lock(data->main->error.to);
 
         fl_print_format("%r%[%QOverflow while trying to %Q '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, operation, data->main->error.context);
 
@@ -92,15 +92,15 @@ extern "C" {
 
         fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
 
-        f_file_stream_unlock(data->main->error);
+        f_file_stream_unlock(data->main->error.to);
       }
 
       return F_false;
     }
 
-    if (status == F_directory) {
+    if (f_status_set_fine(status) == F_directory) {
       if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
-        f_file_stream_lock(data->main->error);
+        f_file_stream_lock(data->main->error.to);
 
         fl_print_format("%r%[%QInvalid directory while trying to %Q '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, operation, data->main->error.context);
 
@@ -108,15 +108,15 @@ extern "C" {
 
         fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
 
-        f_file_stream_unlock(data->main->error);
+        f_file_stream_unlock(data->main->error.to);
       }
 
       return F_false;
     }
 
-    if (status == F_access_denied) {
+    if (f_status_set_fine(status) == F_access_denied) {
       if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
-        f_file_stream_lock(data->main->error);
+        f_file_stream_lock(data->main->error.to);
 
         fl_print_format("%r%[%QAccess denied while trying to %Q '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, operation, data->main->error.context);
 
@@ -124,15 +124,15 @@ extern "C" {
 
         fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
 
-        f_file_stream_unlock(data->main->error);
+        f_file_stream_unlock(data->main->error.to);
       }
 
       return F_false;
     }
 
-    if (status == F_loop) {
+    if (f_status_set_fine(status) == F_loop) {
       if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
-        f_file_stream_lock(data->main->error);
+        f_file_stream_lock(data->main->error.to);
 
         fl_print_format("%r%[%QLoop while trying to %Q '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, operation, data->main->error.context);
 
@@ -140,15 +140,15 @@ extern "C" {
 
         fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
 
-        f_file_stream_unlock(data->main->error);
+        f_file_stream_unlock(data->main->error.to);
       }
 
       return F_false;
     }
 
-    if (status == F_prohibited) {
+    if (f_status_set_fine(status) == F_prohibited) {
       if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
-        f_file_stream_lock(data->main->error);
+        f_file_stream_lock(data->main->error.to);
 
         fl_print_format("%r%[%QProhibited by system while trying to %Q '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, operation, data->main->error.context);
 
@@ -156,15 +156,15 @@ extern "C" {
 
         fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
 
-        f_file_stream_unlock(data->main->error);
+        f_file_stream_unlock(data->main->error.to);
       }
 
       return F_false;
     }
 
-    if (status == F_directory_found_not) {
+    if (f_status_set_fine(status) == F_directory_found_not) {
       if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
-        f_file_stream_lock(data->main->error);
+        f_file_stream_lock(data->main->error.to);
 
         fl_print_format("%r%[%QFailed to %Q '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, operation, data->main->error.context);
 
@@ -172,15 +172,15 @@ extern "C" {
 
         fl_print_format("%[' due to an invalid directory in the path.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
 
-        f_file_stream_unlock(data->main->error);
+        f_file_stream_unlock(data->main->error.to);
       }
 
       return F_false;
     }
 
-    if (status == F_failure) {
+    if (f_status_set_fine(status) == F_failure) {
       if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
-        f_file_stream_lock(data->main->error);
+        f_file_stream_lock(data->main->error.to);
 
         fl_print_format("%r%[%QFailed to %Q '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, operation, data->main->error.context);
 
@@ -188,24 +188,24 @@ extern "C" {
 
         fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
 
-        f_file_stream_unlock(data->main->error);
+        f_file_stream_unlock(data->main->error.to);
       }
 
       return F_false;
     }
 
-    if (fll_error_print(data->main->error, status, function, F_false) == F_known_not && fallback && data->main->error.verbosity > f_console_verbosity_quiet_e) {
-      f_file_stream_lock(data->main->error);
+    if (fll_error_print(data->main->error, f_status_set_fine(status), function, F_false) == F_known_not && fallback && data->main->error.verbosity > f_console_verbosity_quiet_e) {
+      f_file_stream_lock(data->main->error.to);
 
       fl_print_format("%r%[UNKNOWN %Q(%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
-      fl_print_format("%[%ui%]", data->main->error.to, data->main->error.notable, status, data->main->error.notable);
+      fl_print_format("%[%ui%]", data->main->error.to, data->main->error.notable, f_status_set_fine(status), data->main->error.notable);
       fl_print_format("%[) occurred while trying to %Q '%]", data->main->error.to, data->main->error.context, operation, data->main->error.context);
 
       fake_print_error_build_operation_file_message(data, operation, source, destination, how);
 
       fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
 
-      f_file_stream_unlock(data->main->error);
+      f_file_stream_unlock(data->main->error.to);
     }
 
     return F_true;
@@ -236,7 +236,7 @@ extern "C" {
 
     if (status == F_file_found_not) {
       if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
-        f_file_stream_lock(data->main->error);
+        f_file_stream_lock(data->main->error.to);
 
         fl_print_format("%r%[%QOccurred on invalid UTF-8 character at stop position (at '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
         fl_print_format("%[%un%]", data->main->error.to, data->main->error.notable, range.start, data->main->error.notable);
@@ -244,7 +244,7 @@ extern "C" {
         fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, path_file, data->main->error.notable);
         fl_print_format("%[').%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
 
-        f_file_stream_unlock(data->main->error);
+        f_file_stream_unlock(data->main->error.to);
       }
 
       return F_false;
@@ -252,7 +252,7 @@ extern "C" {
 
     if (status == F_complete_not_utf || status == F_complete_not_utf_eos || status == F_complete_not_utf_stop) {
       if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
-        f_file_stream_lock(data->main->error);
+        f_file_stream_lock(data->main->error.to);
 
         fl_print_format("%r%[%QOccurred on invalid UTF-8 character at %s (at '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, status == F_complete_not_utf_eos ? "end of string" : "stop point of string", data->main->error.context);
         fl_print_format("%[%un%]", data->main->error.to, data->main->error.notable, range.start, data->main->error.notable);
@@ -260,7 +260,7 @@ extern "C" {
         fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, path_file, data->main->error.notable);
         fl_print_format("%[').%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
 
-        f_file_stream_unlock(data->main->error);
+        f_file_stream_unlock(data->main->error.to);
       }
 
       return F_false;
@@ -268,7 +268,7 @@ extern "C" {
 
     if (status == F_complete_not_utf_stop) {
       if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
-        f_file_stream_lock(data->main->error);
+        f_file_stream_lock(data->main->error.to);
 
         fl_print_format("%r%[%QOccurred on invalid UTF-8 character at stop point of string (at '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
         fl_print_format("%[%un%]", data->main->error.to, data->main->error.notable, range.start, data->main->error.notable);
@@ -276,14 +276,14 @@ extern "C" {
         fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, path_file, data->main->error.notable);
         fl_print_format("%[').%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
 
-        f_file_stream_unlock(data->main->error);
+        f_file_stream_unlock(data->main->error.to);
       }
 
       return F_false;
     }
 
     if (fll_error_print(data->main->error, status, function, F_false) == F_known_not && fallback && data->main->error.verbosity > f_console_verbosity_quiet_e) {
-      f_file_stream_lock(data->main->error);
+      f_file_stream_lock(data->main->error.to);
 
       fl_print_format("%r%[UNKNOWN %Q(%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
       fl_print_format("%[%ui%]", data->main->error.to, data->main->error.notable, status, data->main->error.notable);
@@ -291,7 +291,7 @@ extern "C" {
       fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, function, data->main->error.notable);
       fl_print_format("%[().%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
 
-      f_file_stream_unlock(data->main->error);
+      f_file_stream_unlock(data->main->error.to);
     }
 
     return F_true;
@@ -303,13 +303,13 @@ extern "C" {
 
     if (data->main->error.verbosity == f_console_verbosity_quiet_e) return;
 
-    f_file_stream_lock(data->main->error);
+    f_file_stream_lock(data->main->error.to);
 
     fl_print_format("%r%[%QThe parameter '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
     fl_print_format("%[%r%r%]", data->main->error.to, data->main->error.notable, f_console_symbol_long_normal_s, parameter, data->main->error.notable);
     fl_print_format("%[' is specified, but no value is given.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
 
-    f_file_stream_unlock(data->main->error);
+    f_file_stream_unlock(data->main->error.to);
   }
 #endif // _di_fake_print_error_parameter_missing_value_
 
@@ -318,13 +318,13 @@ extern "C" {
 
     if (data->main->error.verbosity == f_console_verbosity_quiet_e) return;
 
-    f_file_stream_lock(data->main->error);
+    f_file_stream_lock(data->main->error.to);
 
     fl_print_format("%r%[%QThe parameter '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
     fl_print_format("%[%r%r%]", data->main->error.to, data->main->error.notable, f_console_symbol_long_normal_s, parameter, data->main->error.notable);
     fl_print_format("%[' was specified too many times.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
 
-    f_file_stream_unlock(data->main->error);
+    f_file_stream_unlock(data->main->error.to);
   }
 #endif // _di_fake_print_error_parameter_too_many_
 
@@ -445,7 +445,7 @@ extern "C" {
 
     if (data->main->error.verbosity == f_console_verbosity_quiet_e || !print.to) return;
 
-    f_file_stream_lock(data->main->error);
+    f_file_stream_lock(data->main->error.to);
 
     if (F_status_set_fine(status) == F_false) {
       fl_print_format("%r%[%QThe path '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
@@ -456,7 +456,7 @@ extern "C" {
       fll_error_file_print(data->main->error, F_status_set_fine(status), function, F_true, path, fake_common_file_path_determine_real_s, fll_error_file_type_file_e);
     }
 
-    f_file_stream_unlock(data->main->error);
+    f_file_stream_unlock(data->main->error.to);
   }
 #endif // _di_fake_print_message_section_operation_path_outside_
 
@@ -466,7 +466,7 @@ extern "C" {
     if (data->main->error.verbosity == f_console_verbosity_quiet_e || !print.to) return;
 
     if (status == F_array_too_large) {
-      f_file_stream_lock(data->main->error);
+      f_file_stream_lock(data->main->error.to);
 
       fl_print_format("%r%[%QMaximum stack size reached while processing path '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
       fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, path, data->main->error.notable);
@@ -479,7 +479,7 @@ extern "C" {
 
       fl_print_format(".%]%r", data->main->error.to, data->main->error.context, f_string_eol_s);
 
-      f_file_stream_unlock(data->main->error);
+      f_file_stream_unlock(data->main->error.to);
     }
     else {
       fll_error_file_print(print, status, function, F_true, path, fake_common_file_path_change_to_s, fll_error_file_type_directory_e);
@@ -497,7 +497,7 @@ extern "C" {
 
     f_fss_count_lines(state, buffer, operation_name.start, &line);
 
-    f_file_stream_lock(data->main->error);
+    f_file_stream_lock(data->main->error.to);
 
     fl_print_format("%r%[%QThe section operation '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
     fl_print_format("%[%/Q%]", data->main->error.to, data->main->error.notable, buffer, operation_name, data->main->error.notable);
@@ -509,7 +509,7 @@ extern "C" {
     fl_print_format("%[%ul%]", data->main->error.to, data->main->error.notable, stack_max, data->main->error.notable);
     fl_print_format(" %[has been reached.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
 
-    f_file_stream_unlock(data->main->error);
+    f_file_stream_unlock(data->main->error.to);
   }
 #endif // _di_fake_print_message_section_operation_stack_max_
 
@@ -523,7 +523,7 @@ extern "C" {
 
     f_fss_count_lines(state, buffer, operation_name.start, &line);
 
-    f_file_stream_lock(data->main->error);
+    f_file_stream_lock(data->main->error.to);
 
     fl_print_format("%r%[%QThe section operation '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
     fl_print_format("%[%/Q%]", data->main->error.to, data->main->error.notable, buffer, operation_name, data->main->error.notable);
@@ -533,7 +533,7 @@ extern "C" {
     fl_print_format("%[%ul%]", data->main->error.to, data->main->error.notable, line, data->main->error.notable);
     fl_print_format(" %[is not a known operation name.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
 
-    f_file_stream_unlock(data->main->error);
+    f_file_stream_unlock(data->main->error.to);
   }
 #endif // _di_fake_print_message_section_operation_unknown_
 
similarity index 99%
rename from level_3/fake/c/private-print.h
rename to level_3/fake/c/main/private-print.h
index b72453d823fccfb3ab58d99f695aa9222b3644a2..c202588c1c80be00c392264ec19deb72d0f27679 100644 (file)
@@ -18,7 +18,8 @@ extern "C" {
  * @param data
  *   The program data.
  * @param status
- *   The error status code to report on.
+ *   The status to use.
+ *   This is provided, ignoring data.setting->status, for thread-safety reasons.
  * @param function
  *   The name of the function where the error happened.
  * @param operation
similarity index 90%
rename from level_3/fake/c/private-skeleton.c
rename to level_3/fake/c/main/private-skeleton.c
index e6275de171a1e9b75a95dd468e29752379510a3b..df9a47ef91127729901e45a0780955b312d73efe 100644 (file)
@@ -11,11 +11,11 @@ extern "C" {
 
     f_status_t status = F_none;
 
-    if (data->main->output.verbosity != f_console_verbosity_quiet_e && data->main->output.verbosity != f_console_verbosity_error_e) {
-      fll_print_format("%rGenerating skeleton structure.%r", data->main->output.to, f_string_eol_s, f_string_eol_s);
+    if (data->main->message.verbosity != f_console_verbosity_quiet_e && data->main->message.verbosity != f_console_verbosity_error_e) {
+      fll_print_format("%rGenerating skeleton structure.%r", data->main->message.to, f_string_eol_s, f_string_eol_s);
 
-      if (data->main->output.verbosity >= f_console_verbosity_verbose_e) {
-        fll_print_dynamic(f_string_eol_s, data->main->output.to);
+      if (data->main->message.verbosity >= f_console_verbosity_verbose_e) {
+        fll_print_dynamic(f_string_eol_s, data->main->message.to);
       }
     }
 
@@ -88,8 +88,8 @@ extern "C" {
         }
       } // for
 
-      if (data->main->output.verbosity >= f_console_verbosity_verbose_e) {
-        fll_print_dynamic(f_string_eol_s, data->main->output.to);
+      if (data->main->message.verbosity >= f_console_verbosity_verbose_e) {
+        fll_print_dynamic(f_string_eol_s, data->main->message.to);
       }
     }
 
@@ -136,7 +136,7 @@ extern "C" {
 
     if (status == F_true) {
       if (data->main->error.verbosity >= f_console_verbosity_verbose_e) {
-        fll_print_format("Directory '%Q' already exists.%r", data->main->output.to, path, f_string_eol_s);
+        fll_print_format("Directory '%Q' already exists.%r", data->main->message.to, path, f_string_eol_s);
       }
 
       return F_none;
@@ -144,13 +144,13 @@ extern "C" {
 
     if (status == F_false) {
       if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
-        f_file_stream_lock(data->main->error);
+        f_file_stream_lock(data->main->error.to);
 
         fl_print_format("%r%[%QThe path '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
         fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, path, data->main->error.notable);
         fl_print_format("%[' exists but is not a directory.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
 
-        f_file_stream_unlock(data->main->error);
+        f_file_stream_unlock(data->main->error.to);
       }
 
       return F_status_set_warning(F_failure);
@@ -160,13 +160,13 @@ extern "C" {
 
       if (F_status_is_error(status)) {
         if (F_status_set_fine(status) == F_file_found_not) {
-          f_file_stream_lock(data->main->error);
+          f_file_stream_lock(data->main->error.to);
 
           fl_print_format("%r%[%QThe path '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
           fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, path, data->main->error.notable);
           fl_print_format("%[' could not be created, a parent directory does not exist.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
 
-          f_file_stream_unlock(data->main->error);
+          f_file_stream_unlock(data->main->error.to);
         }
         else {
           fll_error_file_print(data->main->error, F_status_set_fine(status), "f_directory_create", F_true, path, f_file_operation_create_s, fll_error_file_type_directory_e);
@@ -176,7 +176,7 @@ extern "C" {
       }
 
       if (data->main->error.verbosity >= f_console_verbosity_verbose_e) {
-        fll_print_format("Directory '%Q' created.%r", data->main->output.to, path, f_string_eol_s);
+        fll_print_format("Directory '%Q' created.%r", data->main->message.to, path, f_string_eol_s);
       }
     }
     else if (F_status_is_error(status)) {
@@ -200,7 +200,7 @@ extern "C" {
 
     if (status == F_true) {
       if (data->main->error.verbosity >= f_console_verbosity_verbose_e) {
-        fll_print_format("File '%Q' already exists.%r", data->main->output.to, path, f_string_eol_s);
+        fll_print_format("File '%Q' already exists.%r", data->main->message.to, path, f_string_eol_s);
       }
 
       return F_none;
@@ -212,7 +212,7 @@ extern "C" {
 
       if (status == F_true) {
         if (data->main->error.verbosity >= f_console_verbosity_verbose_e) {
-          fll_print_format("File '%Q' already exists (as a symbolic link).%r", data->main->output.to, path, f_string_eol_s);
+          fll_print_format("File '%Q' already exists (as a symbolic link).%r", data->main->message.to, path, f_string_eol_s);
         }
 
         return F_none;
@@ -221,7 +221,7 @@ extern "C" {
 
     if (status == F_false) {
       if (data->main->error.verbosity >= f_console_verbosity_verbose_e) {
-        fll_print_format("File '%Q' already exists but is not a regular file (or symbolic link).%r", data->main->output.to, path, f_string_eol_s);
+        fll_print_format("File '%Q' already exists but is not a regular file (or symbolic link).%r", data->main->message.to, path, f_string_eol_s);
       }
 
       return F_status_set_warning(F_none);
@@ -237,13 +237,13 @@ extern "C" {
 
       if (F_status_is_error(status)) {
         if (F_status_set_fine(status) == F_file_found_not) {
-          f_file_stream_lock(data->main->error);
+          f_file_stream_lock(data->main->error.to);
 
           fl_print_format("%r%[%QThe file '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
           fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, path, data->main->error.notable);
           fl_print_format("%[' could not be created, a parent directory does not exist.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
 
-          f_file_stream_unlock(data->main->error);
+          f_file_stream_unlock(data->main->error.to);
         }
         else {
           fll_error_file_print(data->main->error, F_status_set_fine(status), "f_file_create", F_true, path, f_file_operation_create_s, fll_error_file_type_file_e);
@@ -253,7 +253,7 @@ extern "C" {
       }
 
       if (data->main->error.verbosity >= f_console_verbosity_verbose_e) {
-        fll_print_format("File '%Q' created.%r", data->main->output.to, path, f_string_eol_s);
+        fll_print_format("File '%Q' created.%r", data->main->message.to, path, f_string_eol_s);
       }
 
       if (content.used) {
@@ -282,7 +282,7 @@ extern "C" {
         }
 
         if (data->main->error.verbosity >= f_console_verbosity_verbose_e) {
-          fll_print_format("File '%Q' pre-populated.%r", data->main->output.to, path, f_string_eol_s);
+          fll_print_format("File '%Q' pre-populated.%r", data->main->message.to, path, f_string_eol_s);
         }
 
         f_file_stream_flush(file);
index 3e74a1d31fc2a13a2580d0c0120923904abc4391..82786414478c0a5280711d048c2fd03dab848f3e 100644 (file)
@@ -27,16 +27,16 @@ build_libraries-individual -lf_account -lf_capability -lf_color -lf_console -lf_
 build_libraries-level -lfll_2 -lfll_1 -lfll_0
 build_libraries-monolithic -lfll
 
-build_sources_library fake.c common.c print.c
-build_sources_library private-build.c private-build-library.c private-build-load.c private-build-object.c private-build-objects.c private-build-program.c private-build-skeleton.c
-build_sources_library private-clean.c private-common.c private-make.c private-print.c private-skeleton.c
-build_sources_library private-make-load_fakefile.c private-make-load_parameters.c
-build_sources_library private-make-operate.c private-make-operate_block.c private-make-operate_process.c private-make-operate_process_type.c private-make-operate_validate.c private-make-operate_validate_type.c
-build_sources_library private-fake.c private-fake-path_generate.c
+build_sources_library main/fake.c main/common.c main/common-print.c main/print.c
+build_sources_library main/private-build.c main/private-build-library.c main/private-build-load.c main/private-build-object.c main/private-build-objects.c main/private-build-program.c main/private-build-skeleton.c
+build_sources_library main/private-clean.c main/private-common.c main/private-make.c main/private-print.c main/private-skeleton.c
+build_sources_library main/private-make-load_fakefile.c main/private-make-load_parameters.c
+build_sources_library main/private-make-operate.c main/private-make-operate_block.c main/private-make-operate_process.c main/private-make-operate_process_type.c main/private-make-operate_validate.c main/private-make-operate_validate_type.c
+build_sources_library main/private-fake.c main/private-fake-path_generate.c
 
-build_sources_program main.c
+build_sources_program main/main.c
 
-build_sources_headers fake.h common.h print.h
+build_sources_headers main/fake.h main/common.h main/common-print.h main/print.h
 
 build_sources_documentation man
 
index f12fc9c8823303cc9172206e604b3e4a9369bb2e..3ad52ec87952b14373f23fa58cc8368d36f5fe44 100644 (file)
@@ -386,7 +386,7 @@ extern "C" {
 
   #define firewall_console_parameter_t_initialize \
     { \
-      macro_f_console_parameter_t_initialize4(f_console_standard_short_help_s,          f_console_standard_long_help_s,          0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(f_console_standard_short_help_s,          f_console_standard_long_help_s,          0, f_console_flag_normal_e,  0), \
       macro_f_console_parameter_t_initialize4(f_console_standard_short_light_s,         f_console_standard_long_light_s,         0, f_console_flag_inverse_e, 0), \
       macro_f_console_parameter_t_initialize4(f_console_standard_short_dark_s,          f_console_standard_long_dark_s,          0, f_console_flag_inverse_e, 0), \
       macro_f_console_parameter_t_initialize4(f_console_standard_short_no_color_s,      f_console_standard_long_no_color_s,      0, f_console_flag_inverse_e, 0), \
@@ -399,11 +399,11 @@ extern "C" {
       macro_f_console_parameter_t_initialize4(f_console_standard_short_line_first_no_s, f_console_standard_long_line_first_no_s, 0, f_console_flag_inverse_e, 0), \
       macro_f_console_parameter_t_initialize4(f_console_standard_short_line_last_no_s,  f_console_standard_long_line_last_no_s,  0, f_console_flag_inverse_e, 0), \
       \
-      macro_f_console_parameter_t_initialize2(0, 0, firewall_command_start_s.string, F_false, f_console_flag_simple_e), \
-      macro_f_console_parameter_t_initialize2(0, 0, firewall_command_stop_s.string, F_false, f_console_flag_simple_e), \
-      macro_f_console_parameter_t_initialize2(0, 0, firewall_command_restart_s.string, F_false, f_console_flag_simple_e), \
-      macro_f_console_parameter_t_initialize2(0, 0, firewall_command_lock_s.string, F_false, f_console_flag_simple_e), \
-      macro_f_console_parameter_t_initialize2(0, 0, firewall_command_show_s.string, F_false, f_console_flag_simple_e), \
+      macro_f_console_parameter_t_initialize7(firewall_command_start_s,   0, f_console_flag_simple_e), \
+      macro_f_console_parameter_t_initialize7(firewall_command_stop_s,    0, f_console_flag_simple_e), \
+      macro_f_console_parameter_t_initialize7(firewall_command_restart_s, 0, f_console_flag_simple_e), \
+      macro_f_console_parameter_t_initialize7(firewall_command_lock_s,    0, f_console_flag_simple_e), \
+      macro_f_console_parameter_t_initialize7(firewall_command_show_s,    0, f_console_flag_simple_e), \
     }
 
   #define firewall_total_parameters_d 17
index aa7df5e96fc652f250729897a77605232025ddb7..e8c6ac77ab510873c2a31ea7b1ae45a491f87caa 100644 (file)
@@ -40,10 +40,10 @@ extern "C" {
 #ifndef _di_firewall_print_line_first_locked_
   f_status_t firewall_print_line_first_locked(firewall_setting_t * const setting, const fl_print_t print) {
 
-    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+    if (F_status_is_error_not(setting->status)) {
+      if (print.verbosity < f_console_verbosity_normal_e) return F_output_not;
     }
 
     f_print_dynamic_raw(setting->line_first, print.to);
@@ -55,10 +55,10 @@ extern "C" {
 #ifndef _di_firewall_print_line_first_unlocked_
   f_status_t firewall_print_line_first_unlocked(firewall_setting_t * const setting, const fl_print_t print) {
 
-    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+    if (F_status_is_error_not(setting->status)) {
+      if (print.verbosity < f_console_verbosity_normal_e) return F_output_not;
     }
 
     fll_print_dynamic_raw(setting->line_first, print.to);
@@ -70,10 +70,10 @@ extern "C" {
 #ifndef _di_firewall_print_line_last_locked_
   f_status_t firewall_print_line_last_locked(firewall_setting_t * const setting, const fl_print_t print) {
 
-    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+    if (F_status_is_error_not(setting->status)) {
+      if (print.verbosity < f_console_verbosity_normal_e) return F_output_not;
     }
 
     fll_print_dynamic_raw(setting->line_last, print.to);
@@ -85,10 +85,10 @@ extern "C" {
 #ifndef _di_firewall_print_line_last_unlocked_
   f_status_t firewall_print_line_last_unlocked(firewall_setting_t * const setting, const fl_print_t print) {
 
-    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+    if (F_status_is_error_not(setting->status)) {
+      if (print.verbosity < f_console_verbosity_normal_e) return F_output_not;
     }
 
     f_print_dynamic_raw(setting->line_last, print.to);
index fa27a894db6096acccf8e9f6510a6fa10b69702c..042b5d294da6fdd7748046c1ef6bc7377ff4134b 100644 (file)
@@ -1,7 +1,7 @@
 /**
  * FLL - Level 3
  *
- * Project: UTF-8
+ * Project: UTF8
  * API Version: 0.7
  * Licenses: lgpl-2.1-or-later
  */
index 265ebdfac8c5a5d6af8d196c9bf35d44113b8c60..85779a482135c70a20365431595f6c33b5d47b2f 100644 (file)
@@ -223,7 +223,7 @@ extern "C" {
 
   #define fss_basic_list_read_console_parameter_t_initialize \
     { \
-      macro_f_console_parameter_t_initialize4(f_console_standard_short_help_s,          f_console_standard_long_help_s,          0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(f_console_standard_short_help_s,          f_console_standard_long_help_s,          0, f_console_flag_normal_e,  0), \
       macro_f_console_parameter_t_initialize4(f_console_standard_short_light_s,         f_console_standard_long_light_s,         0, f_console_flag_inverse_e, 0), \
       macro_f_console_parameter_t_initialize4(f_console_standard_short_dark_s,          f_console_standard_long_dark_s,          0, f_console_flag_inverse_e, 0), \
       macro_f_console_parameter_t_initialize4(f_console_standard_short_no_color_s,      f_console_standard_long_no_color_s,      0, f_console_flag_inverse_e, 0), \
@@ -236,20 +236,20 @@ extern "C" {
       macro_f_console_parameter_t_initialize4(f_console_standard_short_line_first_no_s, f_console_standard_long_line_first_no_s, 0, f_console_flag_inverse_e, 0), \
       macro_f_console_parameter_t_initialize4(f_console_standard_short_line_last_no_s,  f_console_standard_long_line_last_no_s,  0, f_console_flag_inverse_e, 0), \
       \
-      macro_f_console_parameter_t_initialize2(fss_basic_list_read_short_at_s.string, fss_basic_list_read_long_at_s.string, 0, 1, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_basic_list_read_short_content_s.string, fss_basic_list_read_long_content_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_basic_list_read_short_columns_s.string, fss_basic_list_read_long_columns_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_basic_list_read_short_delimit_s.string, fss_basic_list_read_long_delimit_s.string, 0, 1, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_basic_list_read_short_depth_s.string, fss_basic_list_read_long_depth_s.string, 0, 1, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_basic_list_read_short_empty_s.string, fss_basic_list_read_long_empty_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_basic_list_read_short_line_s.string, fss_basic_list_read_long_line_s.string, 0, 1, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_basic_list_read_short_name_s.string, fss_basic_list_read_long_name_s.string, 0, 1, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_basic_list_read_short_object_s.string, fss_basic_list_read_long_object_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_basic_list_read_short_pipe_s.string, fss_basic_list_read_long_pipe_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_basic_list_read_short_original_s.string, fss_basic_list_read_long_original_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_basic_list_read_short_select_s.string, fss_basic_list_read_long_select_s.string, 0, 1, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_basic_list_read_short_total_s.string, fss_basic_list_read_long_total_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_basic_list_read_short_trim_s.string, fss_basic_list_read_long_trim_s.string, 0, 0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_basic_list_read_short_at_s, fss_basic_list_read_long_at_s, 0, 1, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_basic_list_read_short_content_s, fss_basic_list_read_long_content_s, 0, 0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_basic_list_read_short_columns_s, fss_basic_list_read_long_columns_s, 0, 0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_basic_list_read_short_delimit_s, fss_basic_list_read_long_delimit_s, 0, 1, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_basic_list_read_short_depth_s, fss_basic_list_read_long_depth_s, 0, 1, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_basic_list_read_short_empty_s, fss_basic_list_read_long_empty_s, 0, 0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_basic_list_read_short_line_s, fss_basic_list_read_long_line_s, 0, 1, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_basic_list_read_short_name_s, fss_basic_list_read_long_name_s, 0, 1, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_basic_list_read_short_object_s, fss_basic_list_read_long_object_s, 0, 0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_basic_list_read_short_pipe_s, fss_basic_list_read_long_pipe_s, 0, 0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_basic_list_read_short_original_s, fss_basic_list_read_long_original_s, 0, 0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_basic_list_read_short_select_s, fss_basic_list_read_long_select_s, 0, 1, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_basic_list_read_short_total_s, fss_basic_list_read_long_total_s, 0, 0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_basic_list_read_short_trim_s, fss_basic_list_read_long_trim_s, 0, 0, f_console_flag_normal_e, 0), \
     }
 
   #define fss_basic_list_read_total_parameters_d 26
index 46f8c8cf894a7a8b1081d53ca2ad708df4bf3a09..636c9d350cbc8d2d20e59b96d46e639be5559f3f 100644 (file)
@@ -118,10 +118,10 @@ extern "C" {
 #ifndef _di_fss_basic_list_read_print_line_first_locked_
   f_status_t fss_basic_list_read_print_line_first_locked(fss_basic_list_read_setting_t * const setting, const fl_print_t print) {
 
-    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+    if (F_status_is_error_not(setting->status)) {
+      if (print.verbosity < f_console_verbosity_normal_e) return F_output_not;
     }
 
     f_print_dynamic_raw(setting->line_first, print.to);
@@ -133,10 +133,10 @@ extern "C" {
 #ifndef _di_fss_basic_list_read_print_line_first_unlocked_
   f_status_t fss_basic_list_read_print_line_first_unlocked(fss_basic_list_read_setting_t * const setting, const fl_print_t print) {
 
-    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+    if (F_status_is_error_not(setting->status)) {
+      if (print.verbosity < f_console_verbosity_normal_e) return F_output_not;
     }
 
     fll_print_dynamic_raw(setting->line_first, print.to);
@@ -148,10 +148,10 @@ extern "C" {
 #ifndef _di_fss_basic_list_read_print_line_last_locked_
   f_status_t fss_basic_list_read_print_line_last_locked(fss_basic_list_read_setting_t * const setting, const fl_print_t print) {
 
-    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+    if (F_status_is_error_not(setting->status)) {
+      if (print.verbosity < f_console_verbosity_normal_e) return F_output_not;
     }
 
     fll_print_dynamic_raw(setting->line_last, print.to);
@@ -163,10 +163,10 @@ extern "C" {
 #ifndef _di_fss_basic_list_read_print_line_last_unlocked_
   f_status_t fss_basic_list_read_print_line_last_unlocked(fss_basic_list_read_setting_t * const setting, const fl_print_t print) {
 
-    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+    if (F_status_is_error_not(setting->status)) {
+      if (print.verbosity < f_console_verbosity_normal_e) return F_output_not;
     }
 
     f_print_dynamic_raw(setting->line_last, print.to);
index 12c3cddbf754be55082a7a56b1ebacf23fcc36a4..f9c92fd131560322df2f65fc9072756bba72ae94 100644 (file)
@@ -1,7 +1,7 @@
 /**
  * FLL - Level 3
  *
- * Project: UTF-8
+ * Project: UTF8
  * API Version: 0.7
  * Licenses: lgpl-2.1-or-later
  */
index 90de349e37cd099a55f40d3c8af7bce1c8982460..ad898ea5389c298807a639e17d96b7becf7aaa35 100644 (file)
@@ -221,7 +221,7 @@ extern "C" {
 
   #define fss_basic_read_console_parameter_t_initialize \
     { \
-      macro_f_console_parameter_t_initialize4(f_console_standard_short_help_s,          f_console_standard_long_help_s,          0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(f_console_standard_short_help_s,          f_console_standard_long_help_s,          0, f_console_flag_normal_e,  0), \
       macro_f_console_parameter_t_initialize4(f_console_standard_short_light_s,         f_console_standard_long_light_s,         0, f_console_flag_inverse_e, 0), \
       macro_f_console_parameter_t_initialize4(f_console_standard_short_dark_s,          f_console_standard_long_dark_s,          0, f_console_flag_inverse_e, 0), \
       macro_f_console_parameter_t_initialize4(f_console_standard_short_no_color_s,      f_console_standard_long_no_color_s,      0, f_console_flag_inverse_e, 0), \
@@ -234,20 +234,20 @@ extern "C" {
       macro_f_console_parameter_t_initialize4(f_console_standard_short_line_first_no_s, f_console_standard_long_line_first_no_s, 0, f_console_flag_inverse_e, 0), \
       macro_f_console_parameter_t_initialize4(f_console_standard_short_line_last_no_s,  f_console_standard_long_line_last_no_s,  0, f_console_flag_inverse_e, 0), \
       \
-      macro_f_console_parameter_t_initialize2(fss_basic_read_short_at_s.string, fss_basic_read_long_at_s.string, 0, 1, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_basic_read_short_content_s.string, fss_basic_read_long_content_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_basic_read_short_columns_s.string, fss_basic_read_long_columns_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_basic_read_short_delimit_s.string, fss_basic_read_long_delimit_s.string, 0, 1, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_basic_read_short_depth_s.string, fss_basic_read_long_depth_s.string, 0, 1, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_basic_read_short_empty_s.string, fss_basic_read_long_empty_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_basic_read_short_line_s.string, fss_basic_read_long_line_s.string, 0, 1, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_basic_read_short_name_s.string, fss_basic_read_long_name_s.string, 0, 1, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_basic_read_short_object_s.string, fss_basic_read_long_object_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_basic_read_short_pipe_s.string, fss_basic_read_long_pipe_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_basic_read_short_original_s.string, fss_basic_read_long_original_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_basic_read_short_select_s.string, fss_basic_read_long_select_s.string, 0, 1, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_basic_read_short_total_s.string, fss_basic_read_long_total_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_basic_read_short_trim_s.string, fss_basic_read_long_trim_s.string, 0, 0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_basic_read_short_at_s, fss_basic_read_long_at_s, 0, 1, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_basic_read_short_content_s, fss_basic_read_long_content_s, 0, 0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_basic_read_short_columns_s, fss_basic_read_long_columns_s, 0, 0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_basic_read_short_delimit_s, fss_basic_read_long_delimit_s, 0, 1, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_basic_read_short_depth_s, fss_basic_read_long_depth_s, 0, 1, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_basic_read_short_empty_s, fss_basic_read_long_empty_s, 0, 0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_basic_read_short_line_s, fss_basic_read_long_line_s, 0, 1, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_basic_read_short_name_s, fss_basic_read_long_name_s, 0, 1, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_basic_read_short_object_s, fss_basic_read_long_object_s, 0, 0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_basic_read_short_pipe_s, fss_basic_read_long_pipe_s, 0, 0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_basic_read_short_original_s, fss_basic_read_long_original_s, 0, 0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_basic_read_short_select_s, fss_basic_read_long_select_s, 0, 1, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_basic_read_short_total_s, fss_basic_read_long_total_s, 0, 0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_basic_read_short_trim_s, fss_basic_read_long_trim_s, 0, 0, f_console_flag_normal_e, 0), \
     }
 
   #define fss_basic_read_total_parameters_d 26
index 8b98e22f3da5ec47dd3cb75707f2e7ca6d09cf8d..08105c4317e5472b1fed5d33c9d79639c34cff4d 100644 (file)
@@ -118,10 +118,10 @@ extern "C" {
 #ifndef _di_fss_basic_read_print_line_first_locked_
   f_status_t fss_basic_read_print_line_first_locked(fss_basic_read_setting_t * const setting, const fl_print_t print) {
 
-    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+    if (F_status_is_error_not(setting->status)) {
+      if (print.verbosity < f_console_verbosity_normal_e) return F_output_not;
     }
 
     f_print_dynamic_raw(setting->line_first, print.to);
@@ -133,10 +133,10 @@ extern "C" {
 #ifndef _di_fss_basic_read_print_line_first_unlocked_
   f_status_t fss_basic_read_print_line_first_unlocked(fss_basic_read_setting_t * const setting, const fl_print_t print) {
 
-    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+    if (F_status_is_error_not(setting->status)) {
+      if (print.verbosity < f_console_verbosity_normal_e) return F_output_not;
     }
 
     fll_print_dynamic_raw(setting->line_first, print.to);
@@ -148,10 +148,10 @@ extern "C" {
 #ifndef _di_fss_basic_read_print_line_last_locked_
   f_status_t fss_basic_read_print_line_last_locked(fss_basic_read_setting_t * const setting, const fl_print_t print) {
 
-    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+    if (F_status_is_error_not(setting->status)) {
+      if (print.verbosity < f_console_verbosity_normal_e) return F_output_not;
     }
 
     fll_print_dynamic_raw(setting->line_last, print.to);
@@ -163,10 +163,10 @@ extern "C" {
 #ifndef _di_fss_basic_read_print_line_last_unlocked_
   f_status_t fss_basic_read_print_line_last_unlocked(fss_basic_read_setting_t * const setting, const fl_print_t print) {
 
-    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+    if (F_status_is_error_not(setting->status)) {
+      if (print.verbosity < f_console_verbosity_normal_e) return F_output_not;
     }
 
     f_print_dynamic_raw(setting->line_last, print.to);
index 483eb4b0c3c07782ed2d24fee02f6d41ad34728b..10014679dfec294765b4ad8c088c3d74ab60412c 100644 (file)
@@ -1,7 +1,7 @@
 /**
  * FLL - Level 3
  *
- * Project: UTF-8
+ * Project: UTF8
  * API Version: 0.7
  * Licenses: lgpl-2.1-or-later
  */
index 9cc14641f3916e9e1a7cf3a78f13269efffdd94a..1fcde393ee2fd5f49988b60ee709112d129689e7 100644 (file)
@@ -221,7 +221,7 @@ extern "C" {
 
   #define fss_embedded_list_read_console_parameter_t_initialize \
     { \
-      macro_f_console_parameter_t_initialize4(f_console_standard_short_help_s,          f_console_standard_long_help_s,          0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(f_console_standard_short_help_s,          f_console_standard_long_help_s,          0, f_console_flag_normal_e,  0), \
       macro_f_console_parameter_t_initialize4(f_console_standard_short_light_s,         f_console_standard_long_light_s,         0, f_console_flag_inverse_e, 0), \
       macro_f_console_parameter_t_initialize4(f_console_standard_short_dark_s,          f_console_standard_long_dark_s,          0, f_console_flag_inverse_e, 0), \
       macro_f_console_parameter_t_initialize4(f_console_standard_short_no_color_s,      f_console_standard_long_no_color_s,      0, f_console_flag_inverse_e, 0), \
@@ -234,20 +234,20 @@ extern "C" {
       macro_f_console_parameter_t_initialize4(f_console_standard_short_line_first_no_s, f_console_standard_long_line_first_no_s, 0, f_console_flag_inverse_e, 0), \
       macro_f_console_parameter_t_initialize4(f_console_standard_short_line_last_no_s,  f_console_standard_long_line_last_no_s,  0, f_console_flag_inverse_e, 0), \
       \
-      macro_f_console_parameter_t_initialize2(fss_embedded_list_read_short_at_s.string, fss_embedded_list_read_long_at_s.string, 0, 1, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_embedded_list_read_short_content_s.string, fss_embedded_list_read_long_content_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_embedded_list_read_short_columns_s.string, fss_embedded_list_read_long_columns_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_embedded_list_read_short_delimit_s.string, fss_embedded_list_read_long_delimit_s.string, 0, 1, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_embedded_list_read_short_depth_s.string, fss_embedded_list_read_long_depth_s.string, 0, 1, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_embedded_list_read_short_empty_s.string, fss_embedded_list_read_long_empty_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_embedded_list_read_short_line_s.string, fss_embedded_list_read_long_line_s.string, 0, 1, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_embedded_list_read_short_name_s.string, fss_embedded_list_read_long_name_s.string, 0, 1, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_embedded_list_read_short_object_s.string, fss_embedded_list_read_long_object_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_embedded_list_read_short_pipe_s.string, fss_embedded_list_read_long_pipe_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_embedded_list_read_short_original_s.string, fss_embedded_list_read_long_original_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_embedded_list_read_short_select_s.string, fss_embedded_list_read_long_select_s.string, 0, 1, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_embedded_list_read_short_total_s.string, fss_embedded_list_read_long_total_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_embedded_list_read_short_trim_s.string, fss_embedded_list_read_long_trim_s.string, 0, 0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_embedded_list_read_short_at_s.string, fss_embedded_list_read_long_at_s.string, 0, 1, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_embedded_list_read_short_content_s.string, fss_embedded_list_read_long_content_s.string, 0, 0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_embedded_list_read_short_columns_s.string, fss_embedded_list_read_long_columns_s.string, 0, 0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_embedded_list_read_short_delimit_s.string, fss_embedded_list_read_long_delimit_s.string, 0, 1, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_embedded_list_read_short_depth_s.string, fss_embedded_list_read_long_depth_s.string, 0, 1, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_embedded_list_read_short_empty_s.string, fss_embedded_list_read_long_empty_s.string, 0, 0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_embedded_list_read_short_line_s.string, fss_embedded_list_read_long_line_s.string, 0, 1, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_embedded_list_read_short_name_s.string, fss_embedded_list_read_long_name_s.string, 0, 1, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_embedded_list_read_short_object_s.string, fss_embedded_list_read_long_object_s.string, 0, 0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_embedded_list_read_short_pipe_s.string, fss_embedded_list_read_long_pipe_s.string, 0, 0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_embedded_list_read_short_original_s.string, fss_embedded_list_read_long_original_s.string, 0, 0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_embedded_list_read_short_select_s.string, fss_embedded_list_read_long_select_s.string, 0, 1, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_embedded_list_read_short_total_s.string, fss_embedded_list_read_long_total_s.string, 0, 0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_embedded_list_read_short_trim_s.string, fss_embedded_list_read_long_trim_s.string, 0, 0, f_console_flag_normal_e, 0), \
     }
 
   #define fss_embedded_list_read_total_parameters_d 26
index fe9d4e61c186dcefcffcf73519fd8b632160eca0..4ecb7e34f85db981e262ea7ef75f50b36bdb9b8f 100644 (file)
@@ -117,10 +117,10 @@ extern "C" {
 #ifndef _di_fss_embedded_list_read_print_line_first_locked_
   f_status_t fss_embedded_list_read_print_line_first_locked(fss_embedded_list_read_setting_t * const setting, const fl_print_t print) {
 
-    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+    if (F_status_is_error_not(setting->status)) {
+      if (print.verbosity < f_console_verbosity_normal_e) return F_output_not;
     }
 
     f_print_dynamic_raw(setting->line_first, print.to);
@@ -132,10 +132,10 @@ extern "C" {
 #ifndef _di_fss_embedded_list_read_print_line_first_unlocked_
   f_status_t fss_embedded_list_read_print_line_first_unlocked(fss_embedded_list_read_setting_t * const setting, const fl_print_t print) {
 
-    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+    if (F_status_is_error_not(setting->status)) {
+      if (print.verbosity < f_console_verbosity_normal_e) return F_output_not;
     }
 
     fll_print_dynamic_raw(setting->line_first, print.to);
@@ -147,10 +147,10 @@ extern "C" {
 #ifndef _di_fss_embedded_list_read_print_line_last_locked_
   f_status_t fss_embedded_list_read_print_line_last_locked(fss_embedded_list_read_setting_t * const setting, const fl_print_t print) {
 
-    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+    if (F_status_is_error_not(setting->status)) {
+      if (print.verbosity < f_console_verbosity_normal_e) return F_output_not;
     }
 
     fll_print_dynamic_raw(setting->line_last, print.to);
@@ -162,10 +162,10 @@ extern "C" {
 #ifndef _di_fss_embedded_list_read_print_line_last_unlocked_
   f_status_t fss_embedded_list_read_print_line_last_unlocked(fss_embedded_list_read_setting_t * const setting, const fl_print_t print) {
 
-    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+    if (F_status_is_error_not(setting->status)) {
+      if (print.verbosity < f_console_verbosity_normal_e) return F_output_not;
     }
 
     f_print_dynamic_raw(setting->line_last, print.to);
index 537428d7f9b0af45d97bf01fc4c3e5d826859c28..cc6a0add4412a0b6951e1dc828932c6886278024 100644 (file)
@@ -1,7 +1,7 @@
 /**
  * FLL - Level 3
  *
- * Project: UTF-8
+ * Project: UTF8
  * API Version: 0.7
  * Licenses: lgpl-2.1-or-later
  */
index 61e86cb1c0ff37c25c7da4648e53db9cc8ab1ade..1548dbaaefbcce87b6f42798aa5f585a41e24ee2 100644 (file)
@@ -205,7 +205,7 @@ extern "C" {
       for (j = i + 1; j < depths->used; ++j) {
 
         if (depths->array[i].depth == depths->array[j].depth) {
-          f_file_stream_lock(data->main->error);
+          f_file_stream_lock(data->main->error.to);
 
           fl_print_format("%r%[%QThe value '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
           fl_print_format("%[%ul%]", data->main->error.to, data->main->error.notable, depths->array[i].depth, data->main->error.notable);
@@ -213,12 +213,12 @@ extern "C" {
           fl_print_format("%[%r%r%]", data->main->error.to, data->main->error.notable, f_console_symbol_long_normal_s, fss_embedded_list_read_long_depth_s, data->main->error.notable);
           fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
 
-          f_file_stream_unlock(data->main->error);
+          f_file_stream_unlock(data->main->error.to);
 
           return F_status_set_error(F_parameter);
         }
         else if (depths->array[i].depth > depths->array[j].depth) {
-          f_file_stream_lock(data->main->error);
+          f_file_stream_lock(data->main->error.to);
 
           fl_print_format("%r%[%QThe parameter '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context);
           fl_print_format("%[%r%r%]", data->main->error.to, data->main->error.notable, f_console_symbol_long_normal_s, fss_embedded_list_read_long_depth_s, data->main->error.notable);
@@ -228,7 +228,7 @@ extern "C" {
           fl_print_format("%[%ul%]", data->main->error.to, data->main->error.notable, depths->array[j].depth, data->main->error.notable);
           fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s);
 
-          f_file_stream_unlock(data->main->error);
+          f_file_stream_unlock(data->main->error.to);
 
           return F_status_set_error(F_parameter);
         }
index 6125448f3ffb14059188d7c496c5ccbd7d801931..05d255ce32c5e254d8d7928af8e9d934d359d32c 100644 (file)
@@ -221,7 +221,7 @@ extern "C" {
 
   #define fss_extended_list_read_console_parameter_t_initialize \
     { \
-      macro_f_console_parameter_t_initialize4(f_console_standard_short_help_s,          f_console_standard_long_help_s,          0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(f_console_standard_short_help_s,          f_console_standard_long_help_s,          0, f_console_flag_normal_e,  0), \
       macro_f_console_parameter_t_initialize4(f_console_standard_short_light_s,         f_console_standard_long_light_s,         0, f_console_flag_inverse_e, 0), \
       macro_f_console_parameter_t_initialize4(f_console_standard_short_dark_s,          f_console_standard_long_dark_s,          0, f_console_flag_inverse_e, 0), \
       macro_f_console_parameter_t_initialize4(f_console_standard_short_no_color_s,      f_console_standard_long_no_color_s,      0, f_console_flag_inverse_e, 0), \
@@ -234,20 +234,20 @@ extern "C" {
       macro_f_console_parameter_t_initialize4(f_console_standard_short_line_first_no_s, f_console_standard_long_line_first_no_s, 0, f_console_flag_inverse_e, 0), \
       macro_f_console_parameter_t_initialize4(f_console_standard_short_line_last_no_s,  f_console_standard_long_line_last_no_s,  0, f_console_flag_inverse_e, 0), \
       \
-      macro_f_console_parameter_t_initialize2(fss_extended_list_read_short_at_s.string, fss_extended_list_read_long_at_s.string, 0, 1, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_extended_list_read_short_content_s.string, fss_extended_list_read_long_content_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_extended_list_read_short_columns_s.string, fss_extended_list_read_long_columns_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_extended_list_read_short_delimit_s.string, fss_extended_list_read_long_delimit_s.string, 0, 1, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_extended_list_read_short_depth_s.string, fss_extended_list_read_long_depth_s.string, 0, 1, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_extended_list_read_short_empty_s.string, fss_extended_list_read_long_empty_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_extended_list_read_short_line_s.string, fss_extended_list_read_long_line_s.string, 0, 1, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_extended_list_read_short_name_s.string, fss_extended_list_read_long_name_s.string, 0, 1, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_extended_list_read_short_object_s.string, fss_extended_list_read_long_object_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_extended_list_read_short_pipe_s.string, fss_extended_list_read_long_pipe_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_extended_list_read_short_original_s.string, fss_extended_list_read_long_original_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_extended_list_read_short_select_s.string, fss_extended_list_read_long_select_s.string, 0, 1, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_extended_list_read_short_total_s.string, fss_extended_list_read_long_total_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_extended_list_read_short_trim_s.string, fss_extended_list_read_long_trim_s.string, 0, 0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_extended_list_read_short_at_s, fss_extended_list_read_long_at_s, 0, 1, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_extended_list_read_short_content_s, fss_extended_list_read_long_content_s, 0, 0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_extended_list_read_short_columns_s, fss_extended_list_read_long_columns_s, 0, 0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_extended_list_read_short_delimit_s, fss_extended_list_read_long_delimit_s, 0, 1, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_extended_list_read_short_depth_s, fss_extended_list_read_long_depth_s, 0, 1, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_extended_list_read_short_empty_s, fss_extended_list_read_long_empty_s, 0, 0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_extended_list_read_short_line_s, fss_extended_list_read_long_line_s, 0, 1, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_extended_list_read_short_name_s, fss_extended_list_read_long_name_s, 0, 1, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_extended_list_read_short_object_s, fss_extended_list_read_long_object_s, 0, 0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_extended_list_read_short_pipe_s, fss_extended_list_read_long_pipe_s, 0, 0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_extended_list_read_short_original_s, fss_extended_list_read_long_original_s, 0, 0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_extended_list_read_short_select_s, fss_extended_list_read_long_select_s, 0, 1, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_extended_list_read_short_total_s, fss_extended_list_read_long_total_s, 0, 0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_extended_list_read_short_trim_s, fss_extended_list_read_long_trim_s, 0, 0, f_console_flag_normal_e, 0), \
     }
 
   #define fss_extended_list_read_total_parameters_d 26
index a78dcbc9c73b2a29ca1645694381c763ccd97a27..f50a50cf54afacc1c5ae21c2f856f57987aa5aee 100644 (file)
@@ -118,10 +118,10 @@ extern "C" {
 #ifndef _di_fss_extended_list_read_print_line_first_locked_
   f_status_t fss_extended_list_read_print_line_first_locked(fss_extended_list_read_setting_t * const setting, const fl_print_t print) {
 
-    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+    if (F_status_is_error_not(setting->status)) {
+      if (print.verbosity < f_console_verbosity_normal_e) return F_output_not;
     }
 
     f_print_dynamic_raw(setting->line_first, print.to);
@@ -133,10 +133,10 @@ extern "C" {
 #ifndef _di_fss_extended_list_read_print_line_first_unlocked_
   f_status_t fss_extended_list_read_print_line_first_unlocked(fss_extended_list_read_setting_t * const setting, const fl_print_t print) {
 
-    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+    if (F_status_is_error_not(setting->status)) {
+      if (print.verbosity < f_console_verbosity_normal_e) return F_output_not;
     }
 
     fll_print_dynamic_raw(setting->line_first, print.to);
@@ -151,7 +151,7 @@ extern "C" {
     if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
 
     if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+      if (print.verbosity < f_console_verbosity_error_e) return F_output_not;
       if (setting->flag & (fss_extended_list_read_main_flag_verify_e | fss_extended_list_read_main_flag_file_to_e)) return F_output_not;
     }
 
@@ -167,7 +167,7 @@ extern "C" {
     if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
 
     if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+      if (print.verbosity < f_console_verbosity_error_e) return F_output_not;
       if (setting->flag & (fss_extended_list_read_main_flag_verify_e | fss_extended_list_read_main_flag_file_to_e)) return F_output_not;
     }
 
index 005a08511104c054cd49e48c76bf2f16b9c6f74f..8293e4b264df0d9e846fc2b7404263772f9c532f 100644 (file)
@@ -1,7 +1,7 @@
 /**
  * FLL - Level 3
  *
- * Project: UTF-8
+ * Project: UTF8
  * API Version: 0.7
  * Licenses: lgpl-2.1-or-later
  */
index 870cb2398676425fe34c49babb3f78cacb5c4673..1ffdec24ee0c0cb4d9d3702eec6b05cf0a2d7ac6 100644 (file)
@@ -221,7 +221,7 @@ extern "C" {
 
   #define fss_extended_read_console_parameter_t_initialize \
     { \
-      macro_f_console_parameter_t_initialize4(f_console_standard_short_help_s,          f_console_standard_long_help_s,          0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(f_console_standard_short_help_s,          f_console_standard_long_help_s,          0, f_console_flag_normal_e,  0), \
       macro_f_console_parameter_t_initialize4(f_console_standard_short_light_s,         f_console_standard_long_light_s,         0, f_console_flag_inverse_e, 0), \
       macro_f_console_parameter_t_initialize4(f_console_standard_short_dark_s,          f_console_standard_long_dark_s,          0, f_console_flag_inverse_e, 0), \
       macro_f_console_parameter_t_initialize4(f_console_standard_short_no_color_s,      f_console_standard_long_no_color_s,      0, f_console_flag_inverse_e, 0), \
@@ -234,19 +234,19 @@ extern "C" {
       macro_f_console_parameter_t_initialize4(f_console_standard_short_line_first_no_s, f_console_standard_long_line_first_no_s, 0, f_console_flag_inverse_e, 0), \
       macro_f_console_parameter_t_initialize4(f_console_standard_short_line_last_no_s,  f_console_standard_long_line_last_no_s,  0, f_console_flag_inverse_e, 0), \
       \
-      macro_f_console_parameter_t_initialize2(fss_extended_read_short_content_s.string, fss_extended_read_long_content_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_extended_read_short_columns_s.string, fss_extended_read_long_columns_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_extended_read_short_delimit_s.string, fss_extended_read_long_delimit_s.string, 0, 1, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_extended_read_short_depth_s.string, fss_extended_read_long_depth_s.string, 0, 1, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_extended_read_short_empty_s.string, fss_extended_read_long_empty_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_extended_read_short_line_s.string, fss_extended_read_long_line_s.string, 0, 1, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_extended_read_short_name_s.string, fss_extended_read_long_name_s.string, 0, 1, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_extended_read_short_object_s.string, fss_extended_read_long_object_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_extended_read_short_pipe_s.string, fss_extended_read_long_pipe_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_extended_read_short_original_s.string, fss_extended_read_long_original_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_extended_read_short_select_s.string, fss_extended_read_long_select_s.string, 0, 1, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_extended_read_short_total_s.string, fss_extended_read_long_total_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_extended_read_short_trim_s.string, fss_extended_read_long_trim_s.string, 0, 0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_extended_read_short_content_s, fss_extended_read_long_content_s, 0, 0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_extended_read_short_columns_s, fss_extended_read_long_columns_s, 0, 0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_extended_read_short_delimit_s, fss_extended_read_long_delimit_s, 0, 1, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_extended_read_short_depth_s, fss_extended_read_long_depth_s, 0, 1, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_extended_read_short_empty_s, fss_extended_read_long_empty_s, 0, 0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_extended_read_short_line_s, fss_extended_read_long_line_s, 0, 1, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_extended_read_short_name_s, fss_extended_read_long_name_s, 0, 1, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_extended_read_short_object_s, fss_extended_read_long_object_s, 0, 0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_extended_read_short_pipe_s, fss_extended_read_long_pipe_s, 0, 0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_extended_read_short_original_s, fss_extended_read_long_original_s, 0, 0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_extended_read_short_select_s, fss_extended_read_long_select_s, 0, 1, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_extended_read_short_total_s, fss_extended_read_long_total_s, 0, 0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_extended_read_short_trim_s, fss_extended_read_long_trim_s, 0, 0, f_console_flag_normal_e, 0), \
     }
 
   #define fss_extended_read_total_parameters_d 26
index 77117be18f6ea751020994fbebf2853c276c5d75..f998c49b9f80da2b1be6aaf3d3b1f81fe64960a0 100644 (file)
@@ -118,10 +118,10 @@ extern "C" {
 #ifndef _di_fss_extended_read_print_line_first_locked_
   f_status_t fss_extended_read_print_line_first_locked(fss_extended_read_setting_t * const setting, const fl_print_t print) {
 
-    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+    if (F_status_is_error_not(setting->status)) {
+      if (print.verbosity < f_console_verbosity_normal_e) return F_output_not;
     }
 
     f_print_dynamic_raw(setting->line_first, print.to);
@@ -133,10 +133,10 @@ extern "C" {
 #ifndef _di_fss_extended_read_print_line_first_unlocked_
   f_status_t fss_extended_read_print_line_first_unlocked(fss_extended_read_setting_t * const setting, const fl_print_t print) {
 
-    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+    if (F_status_is_error_not(setting->status)) {
+      if (print.verbosity < f_console_verbosity_normal_e) return F_output_not;
     }
 
     fll_print_dynamic_raw(setting->line_first, print.to);
@@ -148,10 +148,10 @@ extern "C" {
 #ifndef _di_fss_extended_read_print_line_last_locked_
   f_status_t fss_extended_read_print_line_last_locked(fss_extended_read_setting_t * const setting, const fl_print_t print) {
 
-    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+    if (F_status_is_error_not(setting->status)) {
+      if (print.verbosity < f_console_verbosity_normal_e) return F_output_not;
       if (setting->flag & (fss_extended_read_main_flag_verify_e | fss_extended_read_main_flag_file_to_e)) return F_output_not;
     }
 
@@ -164,10 +164,10 @@ extern "C" {
 #ifndef _di_fss_extended_read_print_line_last_unlocked_
   f_status_t fss_extended_read_print_line_last_unlocked(fss_extended_read_setting_t * const setting, const fl_print_t print) {
 
-    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+    if (F_status_is_error_not(setting->status)) {
+      if (print.verbosity < f_console_verbosity_normal_e) return F_output_not;
       if (setting->flag & (fss_extended_read_main_flag_verify_e | fss_extended_read_main_flag_file_to_e)) return F_output_not;
     }
 
index b211b0fa05a6084b614bb15c1c7356fe25ba3ed2..e325aa33050c84753abb723ce518dfe298dc7cae 100644 (file)
@@ -1,7 +1,7 @@
 /**
  * FLL - Level 3
  *
- * Project: UTF-8
+ * Project: UTF8
  * API Version: 0.7
  * Licenses: lgpl-2.1-or-later
  */
index 5309a34f57578daf67f8b441b554b420c8aaecbf..a2f8a880f88f03870060fb308625251ac7f4f4c5 100644 (file)
@@ -129,7 +129,7 @@ extern "C" {
 
   #define fss_identify_console_parameter_t_initialize \
     { \
-      macro_f_console_parameter_t_initialize4(f_console_standard_short_help_s,          f_console_standard_long_help_s,          0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(f_console_standard_short_help_s,          f_console_standard_long_help_s,          0, f_console_flag_normal_e,  0), \
       macro_f_console_parameter_t_initialize4(f_console_standard_short_light_s,         f_console_standard_long_light_s,         0, f_console_flag_inverse_e, 0), \
       macro_f_console_parameter_t_initialize4(f_console_standard_short_dark_s,          f_console_standard_long_dark_s,          0, f_console_flag_inverse_e, 0), \
       macro_f_console_parameter_t_initialize4(f_console_standard_short_no_color_s,      f_console_standard_long_no_color_s,      0, f_console_flag_inverse_e, 0), \
@@ -142,11 +142,11 @@ extern "C" {
       macro_f_console_parameter_t_initialize4(f_console_standard_short_line_first_no_s, f_console_standard_long_line_first_no_s, 0, f_console_flag_inverse_e, 0), \
       macro_f_console_parameter_t_initialize4(f_console_standard_short_line_last_no_s,  f_console_standard_long_line_last_no_s,  0, f_console_flag_inverse_e, 0), \
       \
-      macro_f_console_parameter_t_initialize2(fss_identify_short_content_s.string, fss_identify_long_content_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_identify_short_line_s.string, fss_identify_long_line_s.string, 0, 1, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_identify_short_name_s.string, fss_identify_long_name_s.string, 0, 1, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_identify_short_object_s.string, fss_identify_long_object_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_identify_short_total_s.string, fss_identify_long_total_s.string, 0, 0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_identify_short_content_s, fss_identify_long_content_s, 0, 0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_identify_short_line_s, fss_identify_long_line_s, 0, 1, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_identify_short_name_s, fss_identify_long_name_s, 0, 1, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_identify_short_object_s, fss_identify_long_object_s, 0, 0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_identify_short_total_s, fss_identify_long_total_s, 0, 0, f_console_flag_normal_e, 0), \
     }
 
   #define fss_identify_total_parameters_d 17
index e38c9d79357aa06943e557efbdc42c6e6a44e29c..c3c062e3d46791c9ac9f99ad3e98058a34bd8b1c 100644 (file)
@@ -59,10 +59,10 @@ extern "C" {
 #ifndef _di_fss_identify_print_line_first_locked_
   f_status_t fss_identify_print_line_first_locked(fss_identify_setting_t * const setting, const fl_print_t print) {
 
-    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+    if (F_status_is_error_not(setting->status)) {
+      if (print.verbosity < f_console_verbosity_normal_e) return F_output_not;
     }
 
     f_print_dynamic_raw(setting->line_first, print.to);
@@ -74,10 +74,10 @@ extern "C" {
 #ifndef _di_fss_identify_print_line_first_unlocked_
   f_status_t fss_identify_print_line_first_unlocked(fss_identify_setting_t * const setting, const fl_print_t print) {
 
-    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+    if (F_status_is_error_not(setting->status)) {
+      if (print.verbosity < f_console_verbosity_normal_e) return F_output_not;
     }
 
     fll_print_dynamic_raw(setting->line_first, print.to);
@@ -89,10 +89,10 @@ extern "C" {
 #ifndef _di_fss_identify_print_line_last_locked_
   f_status_t fss_identify_print_line_last_locked(fss_identify_setting_t * const setting, const fl_print_t print) {
 
-    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+    if (F_status_is_error_not(setting->status)) {
+      if (print.verbosity < f_console_verbosity_normal_e) return F_output_not;
       if (setting->flag & (fss_identify_main_flag_verify_e | fss_identify_main_flag_file_to_e)) return F_output_not;
     }
 
@@ -105,10 +105,10 @@ extern "C" {
 #ifndef _di_fss_identify_print_line_last_unlocked_
   f_status_t fss_identify_print_line_last_unlocked(fss_identify_setting_t * const setting, const fl_print_t print) {
 
-    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+    if (F_status_is_error_not(setting->status)) {
+      if (print.verbosity < f_console_verbosity_normal_e) return F_output_not;
       if (setting->flag & (fss_identify_main_flag_verify_e | fss_identify_main_flag_file_to_e)) return F_output_not;
     }
 
index 93faff923083e1276185d823bb364ee08e81a587..aa748e14839915423ad45a97318b233b97ea79b6 100644 (file)
@@ -1,7 +1,7 @@
 /**
  * FLL - Level 3
  *
- * Project: UTF-8
+ * Project: UTF8
  * API Version: 0.7
  * Licenses: lgpl-2.1-or-later
  */
index c2473fd3f09d886fd3ffac58f8186e624226f50d..df54e4c1d232ee18698203cfdc649cb4eeb501e3 100644 (file)
@@ -215,7 +215,7 @@ extern "C" {
 
   #define fss_payload_read_console_parameter_t_initialize \
     { \
-      macro_f_console_parameter_t_initialize4(f_console_standard_short_help_s,          f_console_standard_long_help_s,          0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(f_console_standard_short_help_s,          f_console_standard_long_help_s,          0, f_console_flag_normal_e,  0), \
       macro_f_console_parameter_t_initialize4(f_console_standard_short_light_s,         f_console_standard_long_light_s,         0, f_console_flag_inverse_e, 0), \
       macro_f_console_parameter_t_initialize4(f_console_standard_short_dark_s,          f_console_standard_long_dark_s,          0, f_console_flag_inverse_e, 0), \
       macro_f_console_parameter_t_initialize4(f_console_standard_short_no_color_s,      f_console_standard_long_no_color_s,      0, f_console_flag_inverse_e, 0), \
@@ -228,20 +228,20 @@ extern "C" {
       macro_f_console_parameter_t_initialize4(f_console_standard_short_line_first_no_s, f_console_standard_long_line_first_no_s, 0, f_console_flag_inverse_e, 0), \
       macro_f_console_parameter_t_initialize4(f_console_standard_short_line_last_no_s,  f_console_standard_long_line_last_no_s,  0, f_console_flag_inverse_e, 0), \
       \
-      macro_f_console_parameter_t_initialize2(fss_payload_read_short_at_s.string, fss_payload_read_long_at_s.string, 0, 1, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_payload_read_short_content_s.string, fss_payload_read_long_content_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_payload_read_short_columns_s.string, fss_payload_read_long_columns_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_payload_read_short_delimit_s.string, fss_payload_read_long_delimit_s.string, 0, 1, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_payload_read_short_depth_s.string, fss_payload_read_long_depth_s.string, 0, 1, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_payload_read_short_empty_s.string, fss_payload_read_long_empty_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_payload_read_short_line_s.string, fss_payload_read_long_line_s.string, 0, 1, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_payload_read_short_name_s.string, fss_payload_read_long_name_s.string, 0, 1, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_payload_read_short_object_s.string, fss_payload_read_long_object_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_payload_read_short_pipe_s.string, fss_payload_read_long_pipe_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_payload_read_short_original_s.string, fss_payload_read_long_original_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_payload_read_short_select_s.string, fss_payload_read_long_select_s.string, 0, 1, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_payload_read_short_total_s.string, fss_payload_read_long_total_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_payload_read_short_trim_s.string, fss_payload_read_long_trim_s.string, 0, 0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_payload_read_short_at_s, fss_payload_read_long_at_s, 0, 1, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_payload_read_short_content_s, fss_payload_read_long_content_s, 0, 0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_payload_read_short_columns_s, fss_payload_read_long_columns_s, 0, 0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_payload_read_short_delimit_s, fss_payload_read_long_delimit_s, 0, 1, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_payload_read_short_depth_s, fss_payload_read_long_depth_s, 0, 1, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_payload_read_short_empty_s, fss_payload_read_long_empty_s, 0, 0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_payload_read_short_line_s, fss_payload_read_long_line_s, 0, 1, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_payload_read_short_name_s, fss_payload_read_long_name_s, 0, 1, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_payload_read_short_object_s, fss_payload_read_long_object_s, 0, 0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_payload_read_short_pipe_s, fss_payload_read_long_pipe_s, 0, 0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_payload_read_short_original_s, fss_payload_read_long_original_s, 0, 0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_payload_read_short_select_s, fss_payload_read_long_select_s, 0, 1, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_payload_read_short_total_s, fss_payload_read_long_total_s, 0, 0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_payload_read_short_trim_s, fss_payload_read_long_trim_s, 0, 0, f_console_flag_normal_e, 0), \
     }
 
   #define fss_payload_read_total_parameters_d 26
index 274a6233ecfa4c3a9557913eed94f3b98b3284d5..c1b482829159a0fa06a383e05813ba5b3712d5b0 100644 (file)
@@ -128,10 +128,10 @@ extern "C" {
 #ifndef _di_fss_payload_read_print_line_first_locked_
   f_status_t fss_payload_read_print_line_first_locked(fss_payload_read_setting_t * const setting, const fl_print_t print) {
 
-    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+    if (F_status_is_error_not(setting->status)) {
+      if (print.verbosity < f_console_verbosity_normal_e) return F_output_not;
     }
 
     f_print_dynamic_raw(setting->line_first, print.to);
@@ -143,10 +143,10 @@ extern "C" {
 #ifndef _di_fss_payload_read_print_line_first_unlocked_
   f_status_t fss_payload_read_print_line_first_unlocked(fss_payload_read_setting_t * const setting, const fl_print_t print) {
 
-    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+    if (F_status_is_error_not(setting->status)) {
+      if (print.verbosity < f_console_verbosity_normal_e) return F_output_not;
     }
 
     fll_print_dynamic_raw(setting->line_first, print.to);
@@ -158,10 +158,10 @@ extern "C" {
 #ifndef _di_fss_payload_read_print_line_last_locked_
   f_status_t fss_payload_read_print_line_last_locked(fss_payload_read_setting_t * const setting, const fl_print_t print) {
 
-    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+    if (F_status_is_error_not(setting->status)) {
+      if (print.verbosity < f_console_verbosity_normal_e) return F_output_not;
       if (setting->flag & (fss_payload_read_main_flag_verify_e | fss_payload_read_main_flag_file_to_e)) return F_output_not;
     }
 
@@ -176,8 +176,8 @@ extern "C" {
 
     if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
 
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+    if (F_status_is_error(setting->status)) {
+      if (print.verbosity < f_console_verbosity_normal_e) return F_output_not;
       if (setting->flag & (fss_payload_read_main_flag_verify_e | fss_payload_read_main_flag_file_to_e)) return F_output_not;
     }
 
index c429ba5f88fe6b5f8147052cb530f1804ddcea23..a0d81015ba848c6a8d3fc7d4ab4175f2a752d148 100644 (file)
@@ -1,7 +1,7 @@
 /**
  * FLL - Level 3
  *
- * Project: UTF-8
+ * Project: UTF8
  * API Version: 0.7
  * Licenses: lgpl-2.1-or-later
  */
index 32fcc535c7e83d57ee0ac0832bba6f2a6610d6bf..3d9b9e65ae68e7b0def6d0cad67d54ff3fcd9f92 100644 (file)
@@ -251,7 +251,7 @@ extern "C" {
 
   #define fss_write_console_parameter_t_initialize \
     { \
-      macro_f_console_parameter_t_initialize4(f_console_standard_short_help_s,          f_console_standard_long_help_s,          0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(f_console_standard_short_help_s,          f_console_standard_long_help_s,          0, f_console_flag_normal_e,  0), \
       macro_f_console_parameter_t_initialize4(f_console_standard_short_light_s,         f_console_standard_long_light_s,         0, f_console_flag_inverse_e, 0), \
       macro_f_console_parameter_t_initialize4(f_console_standard_short_dark_s,          f_console_standard_long_dark_s,          0, f_console_flag_inverse_e, 0), \
       macro_f_console_parameter_t_initialize4(f_console_standard_short_no_color_s,      f_console_standard_long_no_color_s,      0, f_console_flag_inverse_e, 0), \
@@ -264,20 +264,20 @@ extern "C" {
       macro_f_console_parameter_t_initialize4(f_console_standard_short_line_first_no_s, f_console_standard_long_line_first_no_s, 0, f_console_flag_inverse_e, 0), \
       macro_f_console_parameter_t_initialize4(f_console_standard_short_line_last_no_s,  f_console_standard_long_line_last_no_s,  0, f_console_flag_inverse_e, 0), \
       \
-      macro_f_console_parameter_t_initialize2(fss_write_short_as_s.string, fss_write_long_as_s.string, 0, 1, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_write_short_backtick_s.string, fss_write_long_backtick_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_write_short_content_s.string, fss_write_long_content_s.string, 0, 1, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_write_short_content_end_s.string, fss_write_long_content_end_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_write_short_content_next_s.string, fss_write_long_content_next_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_write_short_double_s.string, fss_write_long_double_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_write_short_file_s.string, fss_write_long_file_s.string, 0, 1, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_write_short_ignore_s.string, fss_write_long_ignore_s.string, 0, 2, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_write_short_object_s.string, fss_write_long_object_s.string, 0, 1, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_write_short_object_open_s.string, fss_write_long_object_open_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_write_short_partial_s.string, fss_write_long_partial_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_write_short_prepend_s.string, fss_write_long_prepend_s.string, 0, 1, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_write_short_single_s.string, fss_write_long_single_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(fss_write_short_trim_s.string, fss_write_long_trim_s.string, 0, 0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_write_short_as_s,           fss_write_long_as_s,           1, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_write_short_backtick_s,     fss_write_long_backtick_s,     0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_write_short_content_s,      fss_write_long_content_s,      1, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_write_short_content_end_s,  fss_write_long_content_end_s,  0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_write_short_content_next_s, fss_write_long_content_next_s, 0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_write_short_double_s,       fss_write_long_double_s,       0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_write_short_file_s,         fss_write_long_file_s,         1, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_write_short_ignore_s,       fss_write_long_ignore_s,       2, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_write_short_object_s,       fss_write_long_object_s,       1, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_write_short_object_open_s,  fss_write_long_object_open_s,  0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_write_short_partial_s,      fss_write_long_partial_s,      0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_write_short_prepend_s,      fss_write_long_prepend_s,      1, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_write_short_single_s,       fss_write_long_single_s,       0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(fss_write_short_trim_s,         fss_write_long_trim_s,         0, f_console_flag_normal_e, 0), \
     }
 
   #define fss_write_total_parameters_d 26
index 9c6b29d557e498ec9a81a26f634c1d49c16bbc2b..16ca8245634ab5283666b79f9f58686bf29545bb 100644 (file)
@@ -7,7 +7,7 @@ extern "C" {
 #ifndef _di_fss_write_print_error_
   f_status_t fss_write_print_error(fss_write_setting_t * const setting, const fl_print_t print, const f_string_t function) {
 
-    if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
 
     fss_write_print_line_first_locked(setting, print);
     fll_error_print(print, F_status_set_fine(setting->status), function, F_true);
@@ -20,7 +20,7 @@ extern "C" {
 #ifndef _di_fss_write_print_error_file_
   f_status_t fss_write_print_error_file(fss_write_setting_t * const setting, const fl_print_t print, const f_string_t function, const f_string_static_t name, const f_string_static_t operation, const uint8_t type) {
 
-    if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
 
     fss_write_print_line_first_locked(setting, print);
     fll_error_file_print(print, F_status_set_fine(setting->status), function, F_true, name, operation, type);
@@ -33,7 +33,7 @@ extern "C" {
 #ifndef _di_fss_write_print_error_parameter_same_times_at_least_
   f_status_t fss_write_print_error_parameter_same_times_at_least(fss_write_setting_t * const setting, const fl_print_t print) {
 
-    if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
 
     f_file_stream_lock(print.to);
 
@@ -56,7 +56,7 @@ extern "C" {
 #ifndef _di_fss_write_print_error_one_content_only_
   f_status_t fss_write_print_error_one_content_only(fss_write_setting_t * const setting, const fl_print_t print) {
 
-    if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
 
     f_file_stream_lock(print.to);
 
@@ -75,7 +75,7 @@ extern "C" {
 #ifndef _fss_write_print_error_prepend_only_whitespace_
   f_status_t fss_write_print_error_prepend_only_whitespace(fss_write_setting_t * const setting, const fl_print_t print) {
 
-    if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
 
     f_file_stream_lock(print.to);
 
@@ -92,7 +92,7 @@ extern "C" {
 #ifndef _di_fss_write_print_error_unsupported_eol_
   f_status_t fss_write_print_error_unsupported_eol(fss_write_setting_t * const setting, const fl_print_t print) {
 
-    if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
 
     f_file_stream_lock(print.to);
 
@@ -166,10 +166,10 @@ extern "C" {
 #ifndef _di_fss_write_print_line_first_locked_
   f_status_t fss_write_print_line_first_locked(fss_write_setting_t * const setting, const fl_print_t print) {
 
-    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+    if (F_status_is_error_not(setting->status)) {
+      if (print.verbosity < f_console_verbosity_normal_e) return F_output_not;
       if (setting->flag & fss_write_flag_file_to_e) return F_output_not;
     }
 
@@ -182,10 +182,10 @@ extern "C" {
 #ifndef _di_fss_write_print_line_first_unlocked_
   f_status_t fss_write_print_line_first_unlocked(fss_write_setting_t * const setting, const fl_print_t print) {
 
-    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+    if (F_status_is_error_not(setting->status)) {
+      if (print.verbosity < f_console_verbosity_normal_e) return F_output_not;
       if (setting->flag & fss_write_flag_file_to_e) return F_output_not;
     }
 
@@ -198,10 +198,10 @@ extern "C" {
 #ifndef _di_fss_write_print_line_last_locked_
   f_status_t fss_write_print_line_last_locked(fss_write_setting_t * const setting, const fl_print_t print) {
 
-    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+    if (F_status_is_error_not(setting->status)) {
+      if (print.verbosity < f_console_verbosity_normal_e) return F_output_not;
       if (setting->flag & fss_write_flag_file_to_e) return F_output_not;
     }
 
@@ -214,10 +214,10 @@ extern "C" {
 #ifndef _di_fss_write_print_line_last_unlocked_
   f_status_t fss_write_print_line_last_unlocked(fss_write_setting_t * const setting, const fl_print_t print) {
 
-    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+    if (F_status_is_error_not(setting->status)) {
+      if (print.verbosity < f_console_verbosity_normal_e) return F_output_not;
       if (setting->flag & fss_write_flag_file_to_e) return F_output_not;
     }
 
index b091049d84490f5a6095ec0e457daf20187f517e..f1c4e7853eab8d55d5b6a20d2b207f57563ed0c6 100644 (file)
@@ -7,7 +7,7 @@ extern "C" {
 #ifndef _di_fss_write_payload_print_error_payload_not_last_
   f_status_t fss_write_payload_print_error_payload_not_last(fss_write_setting_t * const setting, const fl_print_t print) {
 
-    if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
 
     f_file_stream_lock(print.to);
 
index c9366902baa8228976f81a5b09c21a3913b28831..39e437979bf237790ee65e81e1c60efcb99e85ba 100644 (file)
@@ -192,7 +192,7 @@ extern "C" {
 
   #define iki_read_console_parameter_t_initialize \
     { \
-      macro_f_console_parameter_t_initialize4(f_console_standard_short_help_s,          f_console_standard_long_help_s,          0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(f_console_standard_short_help_s,          f_console_standard_long_help_s,          0, f_console_flag_normal_e,  0), \
       macro_f_console_parameter_t_initialize4(f_console_standard_short_light_s,         f_console_standard_long_light_s,         0, f_console_flag_inverse_e, 0), \
       macro_f_console_parameter_t_initialize4(f_console_standard_short_dark_s,          f_console_standard_long_dark_s,          0, f_console_flag_inverse_e, 0), \
       macro_f_console_parameter_t_initialize4(f_console_standard_short_no_color_s,      f_console_standard_long_no_color_s,      0, f_console_flag_inverse_e, 0), \
@@ -205,18 +205,18 @@ extern "C" {
       macro_f_console_parameter_t_initialize4(f_console_standard_short_line_first_no_s, f_console_standard_long_line_first_no_s, 0, f_console_flag_inverse_e, 0), \
       macro_f_console_parameter_t_initialize4(f_console_standard_short_line_last_no_s,  f_console_standard_long_line_last_no_s,  0, f_console_flag_inverse_e, 0), \
       \
-      macro_f_console_parameter_t_initialize2(iki_read_short_at_s.string, iki_read_long_at_s.string, 0, 1, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(iki_read_short_content_s.string, iki_read_long_content_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(iki_read_short_line_s.string, iki_read_long_line_s.string, 0, 1, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(iki_read_short_literal_s.string, iki_read_long_literal_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(iki_read_short_name_s.string, iki_read_long_name_s.string, 0, 1, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(iki_read_short_object_s.string, iki_read_long_object_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(iki_read_short_reassign_s.string, iki_read_long_reassign_s.string, 0, 3, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(iki_read_short_replace_s.string, iki_read_long_replace_s.string, 0, 2, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(iki_read_short_substitute_s.string, iki_read_long_substitute_s.string, 0, 3, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(iki_read_short_total_s.string, iki_read_long_total_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(iki_read_short_whole_s.string, iki_read_long_whole_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(iki_read_short_wrap_s.string, iki_read_long_wrap_s.string, 0, 3, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(iki_read_short_at_s,         iki_read_long_at_s,         1, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(iki_read_short_content_s,    iki_read_long_content_s,    0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(iki_read_short_line_s,       iki_read_long_line_s,       1, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(iki_read_short_literal_s,    iki_read_long_literal_s,    0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(iki_read_short_name_s,       iki_read_long_name_s,       1, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(iki_read_short_object_s,     iki_read_long_object_s,     0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(iki_read_short_reassign_s,   iki_read_long_reassign_s,   3, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(iki_read_short_replace_s,    iki_read_long_replace_s,    2, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(iki_read_short_substitute_s, iki_read_long_substitute_s, 3, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(iki_read_short_total_s,      iki_read_long_total_s,      0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(iki_read_short_whole_s,      iki_read_long_whole_s,      0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(iki_read_short_wrap_s,       iki_read_long_wrap_s,       3, f_console_flag_normal_e, 0), \
     }
 
   #define iki_read_total_parameters_d 24
index 065e9b6b6d1ea5a916ecea7a892be556baed12e5..d93cfa608d50e349dde2fccc4528544d9f624eba 100644 (file)
@@ -8,11 +8,7 @@ extern "C" {
 #ifndef _di_iki_read_print_error_
   f_status_t iki_read_print_error(iki_read_setting_t * const setting, const fl_print_t print, const f_string_t function) {
 
-    if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
-
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
-    }
+    if (print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
     iki_read_print_line_first_locked(setting, print);
     fll_error_print(print, F_status_set_fine(setting->status), function, F_true);
@@ -25,11 +21,7 @@ extern "C" {
 #ifndef _di_iki_read_print_error_file_
   f_status_t iki_read_print_error_file(iki_read_setting_t * const setting, const fl_print_t print, const f_string_t function, const f_string_static_t name, const f_string_static_t operation, const uint8_t type) {
 
-    if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
-
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
-    }
+    if (print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
     iki_read_print_line_first_locked(setting, print);
     fll_error_file_print(print, F_status_set_fine(setting->status), function, F_true, name, operation, type);
@@ -137,10 +129,10 @@ extern "C" {
 #ifndef _di_iki_read_print_line_first_locked_
   f_status_t iki_read_print_line_first_locked(iki_read_setting_t * const setting, const fl_print_t print) {
 
-    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+    if (F_status_is_error_not(setting->status)) {
+      if (print.verbosity < f_console_verbosity_normal_e) return F_output_not;
     }
 
     f_print_dynamic_raw(setting->line_first, print.to);
@@ -152,10 +144,10 @@ extern "C" {
 #ifndef _di_iki_read_print_line_first_unlocked_
   f_status_t iki_read_print_line_first_unlocked(iki_read_setting_t * const setting, const fl_print_t print) {
 
-    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+    if (F_status_is_error_not(setting->status)) {
+      if (print.verbosity < f_console_verbosity_normal_e) return F_output_not;
     }
 
     fll_print_dynamic_raw(setting->line_first, print.to);
@@ -167,10 +159,10 @@ extern "C" {
 #ifndef _di_iki_read_print_line_last_locked_
   f_status_t iki_read_print_line_last_locked(iki_read_setting_t * const setting, const fl_print_t print) {
 
-    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+    if (F_status_is_error_not(setting->status)) {
+      if (print.verbosity < f_console_verbosity_normal_e) return F_output_not;
     }
 
     fll_print_dynamic_raw(setting->line_last, print.to);
@@ -182,10 +174,10 @@ extern "C" {
 #ifndef _di_iki_read_print_line_last_unlocked_
   f_status_t iki_read_print_line_last_unlocked(iki_read_setting_t * const setting, const fl_print_t print) {
 
-    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+    if (F_status_is_error_not(setting->status)) {
+      if (print.verbosity < f_console_verbosity_normal_e) return F_output_not;
     }
 
     f_print_dynamic_raw(setting->line_last, print.to);
index 7d1dc4cdf054aef4a7ef2c6d495be339850841d8..8883895217c3d2ee1eb68c1c5ce16e9f05e2db03 100644 (file)
@@ -1,7 +1,7 @@
 /**
  * FLL - Level 3
  *
- * Project: UTF-8
+ * Project: UTF8
  * API Version: 0.7
  * Licenses: lgpl-2.1-or-later
  */
index f4b329c4a7fea7dbdc3893a5d06630c403bb02e3..f83388c339a78eb11dce5e376fdcca5d13882244 100644 (file)
@@ -1,7 +1,7 @@
 /**
  * FLL - Level 3
  *
- * Project: FSS Write
+ * Project: IKI Write
  * API Version: 0.7
  * Licenses: lgpl-2.1-or-later
  *
index ef2394c480989980b5b073db6a65b47a789a2330..5afa6460909d3c6b1cbdb91f90bcb414f6ed055e 100644 (file)
@@ -147,7 +147,7 @@ extern "C" {
 
   #define iki_write_console_parameter_t_initialize \
     { \
-      macro_f_console_parameter_t_initialize4(f_console_standard_short_help_s,          f_console_standard_long_help_s,          0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(f_console_standard_short_help_s,          f_console_standard_long_help_s,          0, f_console_flag_normal_e,  0), \
       macro_f_console_parameter_t_initialize4(f_console_standard_short_light_s,         f_console_standard_long_light_s,         0, f_console_flag_inverse_e, 0), \
       macro_f_console_parameter_t_initialize4(f_console_standard_short_dark_s,          f_console_standard_long_dark_s,          0, f_console_flag_inverse_e, 0), \
       macro_f_console_parameter_t_initialize4(f_console_standard_short_no_color_s,      f_console_standard_long_no_color_s,      0, f_console_flag_inverse_e, 0), \
@@ -160,12 +160,12 @@ extern "C" {
       macro_f_console_parameter_t_initialize4(f_console_standard_short_line_first_no_s, f_console_standard_long_line_first_no_s, 0, f_console_flag_inverse_e, 0), \
       macro_f_console_parameter_t_initialize4(f_console_standard_short_line_last_no_s,  f_console_standard_long_line_last_no_s,  0, f_console_flag_inverse_e, 0), \
       \
-      macro_f_console_parameter_t_initialize2(iki_write_short_backtick_s.string, iki_write_long_backtick_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(iki_write_short_content_s.string,  iki_write_long_content_s.string,  0, 1, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(iki_write_short_double_s.string,   iki_write_long_double_s.string,   0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(iki_write_short_file_s.string,     iki_write_long_file_s.string,     0, 1, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(iki_write_short_object_s.string,   iki_write_long_object_s.string,   0, 1, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(iki_write_short_single_s.string,   iki_write_long_single_s.string,   0, 0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(iki_write_short_backtick_s, iki_write_long_backtick_s, 0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(iki_write_short_content_s,  iki_write_long_content_s,  1, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(iki_write_short_double_s,   iki_write_long_double_s,   0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(iki_write_short_file_s,     iki_write_long_file_s,     1, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(iki_write_short_object_s,   iki_write_long_object_s,   1, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(iki_write_short_single_s,   iki_write_long_single_s,   0, f_console_flag_normal_e, 0), \
     }
 
   #define iki_write_total_parameters_d 18
index e55e68e7aa5be501720242dc5bea0e98c1f2567a..4ed07f899a5b4bc09caf002a14dba8cb38ac3f37 100644 (file)
@@ -8,11 +8,7 @@ extern "C" {
 #ifndef _di_iki_write_print_error_
   f_status_t iki_write_print_error(iki_write_setting_t * const setting, const fl_print_t print, const f_string_t function) {
 
-    if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
-
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
-    }
+    if (print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
     iki_write_print_line_first_locked(setting, print);
     fll_error_print(print, F_status_set_fine(setting->status), function, F_true);
@@ -25,11 +21,7 @@ extern "C" {
 #ifndef _di_iki_write_print_error_file_
   f_status_t iki_write_print_error_file(iki_write_setting_t * const setting, const fl_print_t print, const f_string_t function, const f_string_static_t name, const f_string_static_t operation, const uint8_t type) {
 
-    if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
-
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
-    }
+    if (print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
     iki_write_print_line_first_locked(setting, print);
     fll_error_file_print(print, F_status_set_fine(setting->status), function, F_true, name, operation, type);
@@ -42,11 +34,7 @@ extern "C" {
 #ifndef _di_iki_write_print_error_main_missing_
   f_status_t iki_write_print_error_main_missing(iki_write_setting_t * const setting, const fl_print_t print) {
 
-    if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
-
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
-    }
+    if (print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
     f_file_stream_lock(print.to);
 
@@ -65,11 +53,7 @@ extern "C" {
 #ifndef _di_iki_write_print_error_object_not_valid_
   f_status_t iki_write_print_error_object_not_valid(iki_write_setting_t * const setting, const fl_print_t print, const f_string_static_t object) {
 
-    if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
-
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
-    }
+    if (print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
     f_file_stream_lock(print.to);
 
@@ -143,10 +127,10 @@ extern "C" {
 #ifndef _di_iki_write_print_line_first_locked_
   f_status_t iki_write_print_line_first_locked(iki_write_setting_t * const setting, const fl_print_t print) {
 
-    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+    if (F_status_is_error_not(setting->status)) {
+      if (print.verbosity < f_console_verbosity_normal_e) return F_output_not;
     }
 
     f_print_dynamic_raw(setting->line_first, print.to);
@@ -158,10 +142,10 @@ extern "C" {
 #ifndef _di_iki_write_print_line_first_unlocked_
   f_status_t iki_write_print_line_first_unlocked(iki_write_setting_t * const setting, const fl_print_t print) {
 
-    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+    if (F_status_is_error_not(setting->status)) {
+      if (print.verbosity < f_console_verbosity_normal_e) return F_output_not;
     }
 
     fll_print_dynamic_raw(setting->line_first, print.to);
@@ -173,10 +157,10 @@ extern "C" {
 #ifndef _di_iki_write_print_line_last_locked_
   f_status_t iki_write_print_line_last_locked(iki_write_setting_t * const setting, const fl_print_t print) {
 
-    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+    if (F_status_is_error_not(setting->status)) {
+      if (print.verbosity < f_console_verbosity_normal_e) return F_output_not;
     }
 
     fll_print_dynamic_raw(setting->line_last, print.to);
@@ -188,10 +172,10 @@ extern "C" {
 #ifndef _di_iki_write_print_line_last_unlocked_
   f_status_t iki_write_print_line_last_unlocked(iki_write_setting_t * const setting, const fl_print_t print) {
 
-    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+    if (F_status_is_error_not(setting->status)) {
+      if (print.verbosity < f_console_verbosity_normal_e) return F_output_not;
     }
 
     f_print_dynamic_raw(setting->line_last, print.to);
index 6fa4a6d86d13c9ddeae1fad2c02b208f22c5553d..88f9ff776aec54e65d384990d78e314b534373db 100644 (file)
@@ -1,7 +1,7 @@
 /**
  * FLL - Level 3
  *
- * Project: UTF-8
+ * Project: UTF8
  * API Version: 0.7
  * Licenses: lgpl-2.1-or-later
  */
index f9f7c2f3dcc605cc41b666cce792650c0fe6dee0..9ef38c05fe8154b551da07ff53f1324b76e30c78 100644 (file)
@@ -1,7 +1,7 @@
 /**
  * FLL - Level 3
  *
- * Project: FSS Write
+ * Project: Status Code
  * API Version: 0.7
  * Licenses: lgpl-2.1-or-later
  *
index 94d04225dd3b5d33c2f7c65aab728073452e5fcd..064e6b68145ecf1ee70bddc8d02956143fa323a9 100644 (file)
@@ -168,7 +168,7 @@ extern "C" {
 
   #define status_code_console_parameter_t_initialize \
     { \
-      macro_f_console_parameter_t_initialize4(f_console_standard_short_help_s,          f_console_standard_long_help_s,          0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(f_console_standard_short_help_s,          f_console_standard_long_help_s,          0, f_console_flag_normal_e,  0), \
       macro_f_console_parameter_t_initialize4(f_console_standard_short_light_s,         f_console_standard_long_light_s,         0, f_console_flag_inverse_e, 0), \
       macro_f_console_parameter_t_initialize4(f_console_standard_short_dark_s,          f_console_standard_long_dark_s,          0, f_console_flag_inverse_e, 0), \
       macro_f_console_parameter_t_initialize4(f_console_standard_short_no_color_s,      f_console_standard_long_no_color_s,      0, f_console_flag_inverse_e, 0), \
@@ -181,10 +181,10 @@ extern "C" {
       macro_f_console_parameter_t_initialize4(f_console_standard_short_line_first_no_s, f_console_standard_long_line_first_no_s, 0, f_console_flag_inverse_e, 0), \
       macro_f_console_parameter_t_initialize4(f_console_standard_short_line_last_no_s,  f_console_standard_long_line_last_no_s,  0, f_console_flag_inverse_e, 0), \
       \
-      macro_f_console_parameter_t_initialize2(status_code_short_fine_s.string, status_code_long_fine_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(status_code_short_warning_s.string, status_code_long_warning_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(status_code_short_error_s.string, status_code_long_error_s.string, 0, 0, f_console_flag_normal_e, 0), \
-      macro_f_console_parameter_t_initialize2(status_code_short_number_s.string, status_code_long_number_s.string, 0, 0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(status_code_short_fine_s,    status_code_long_fine_s,    0, f_console_flag_normal_e, 0) \
+      macro_f_console_parameter_t_initialize4(status_code_short_warning_s, status_code_long_warning_s, 0, f_console_flag_normal_e, 0) \
+      macro_f_console_parameter_t_initialize4(status_code_short_error_s,   status_code_long_error_s,   0, f_console_flag_normal_e, 0) \
+      macro_f_console_parameter_t_initialize4(status_code_short_number_s,  status_code_long_number_s,  0, f_console_flag_normal_e, 0) \
     }
 
   #define status_code_total_parameters_d 16
index 7b7b8070da852bda7cdcc69e3e875184fc7b0661..e74871f0a528a9e2145b392f44d66b90db8e3ee5 100644 (file)
@@ -8,11 +8,7 @@ extern "C" {
 #ifndef _di_status_code_print_error_
   f_status_t status_code_print_error(status_code_setting_t * const setting, const fl_print_t print, const f_string_t function) {
 
-    if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
-
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
-    }
+    if (print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
     status_code_print_line_first_locked(setting, print);
     fll_error_print(print, F_status_set_fine(setting->status), function, F_true);
@@ -25,11 +21,7 @@ extern "C" {
 #ifndef _di_status_code_print_error_cannot_error_warning_number_
   f_status_t status_code_print_error_cannot_error_warning_number(status_code_setting_t * const setting, const fl_print_t print) {
 
-    if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
-
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
-    }
+    if (print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
     f_file_stream_lock(print.to);
 
@@ -50,11 +42,7 @@ extern "C" {
 #ifndef _di_status_code_print_error_no_status_codes_
   f_status_t status_code_print_error_no_status_codes(status_code_setting_t * const setting, const fl_print_t print) {
 
-    if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
-
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
-    }
+    if (print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
     fll_print_format("%[No status code is specified.%]%r", print.to, print.context, print.context, f_string_eol_s);
 
@@ -65,11 +53,7 @@ extern "C" {
 #ifndef _di_status_code_print_error_invalid_callback_
   f_status_t status_code_print_error_invalid_callback(status_code_setting_t * const setting, const fl_print_t print, const f_string_t name) {
 
-    if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
-
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
-    }
+    if (print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
     f_file_stream_lock(print.to);
 
@@ -153,10 +137,10 @@ extern "C" {
 #ifndef _di_status_code_print_line_first_locked_
   f_status_t status_code_print_line_first_locked(status_code_setting_t * const setting, const fl_print_t print) {
 
-    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+    if (F_status_is_error_not(setting->status)) {
+      if (print.verbosity < f_console_verbosity_normal_e) return F_output_not;
     }
 
     f_print_dynamic_raw(setting->line_first, print.to);
@@ -168,10 +152,10 @@ extern "C" {
 #ifndef _di_status_code_print_line_first_unlocked_
   f_status_t status_code_print_line_first_unlocked(status_code_setting_t * const setting, const fl_print_t print) {
 
-    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+    if (F_status_is_error_not(setting->status)) {
+      if (print.verbosity < f_console_verbosity_normal_e) return F_output_not;
     }
 
     fll_print_dynamic_raw(setting->line_first, print.to);
@@ -183,10 +167,10 @@ extern "C" {
 #ifndef _di_status_code_print_line_last_locked_
   f_status_t status_code_print_line_last_locked(status_code_setting_t * const setting, const fl_print_t print) {
 
-    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+    if (F_status_is_error_not(setting->status)) {
+      if (print.verbosity < f_console_verbosity_normal_e) return F_output_not;
     }
 
     fll_print_dynamic_raw(setting->line_last, print.to);
@@ -198,10 +182,10 @@ extern "C" {
 #ifndef _di_status_code_print_line_last_unlocked_
   f_status_t status_code_print_line_last_unlocked(status_code_setting_t * const setting, const fl_print_t print) {
 
-    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+    if (F_status_is_error_not(setting->status)) {
+      if (print.verbosity < f_console_verbosity_normal_e) return F_output_not;
     }
 
     f_print_dynamic_raw(setting->line_last, print.to);
index e8bfa4cac11fbb5435369a4a6be041a8891a3090..c74d180e10414f8537c0d92ccefafc5721815ad8 100644 (file)
@@ -1,7 +1,7 @@
 /**
  * FLL - Level 3
  *
- * Project: FSS Write
+ * Project: UTF8
  * API Version: 0.7
  * Licenses: lgpl-2.1-or-later
  *
index 6fb1c24e29a813be5c56ecf9543e239ea1af11e7..11e31639bb30d02934f5be1d1825017de987cd20 100644 (file)
@@ -1,7 +1,7 @@
 /**
  * FLL - Level 3
  *
- * Project: UTF-8
+ * Project: UTF8
  * API Version: 0.7
  * Licenses: lgpl-2.1-or-later
  *
@@ -275,7 +275,7 @@ extern "C" {
 
   #define utf8_console_parameter_t_initialize \
     { \
-      macro_f_console_parameter_t_initialize4(f_console_standard_short_help_s,          f_console_standard_long_help_s,          0, f_console_flag_normal_e, 0), \
+      macro_f_console_parameter_t_initialize4(f_console_standard_short_help_s,          f_console_standard_long_help_s,          0, f_console_flag_normal_e,  0), \
       macro_f_console_parameter_t_initialize4(f_console_standard_short_light_s,         f_console_standard_long_light_s,         0, f_console_flag_inverse_e, 0), \
       macro_f_console_parameter_t_initialize4(f_console_standard_short_dark_s,          f_console_standard_long_dark_s,          0, f_console_flag_inverse_e, 0), \
       macro_f_console_parameter_t_initialize4(f_console_standard_short_no_color_s,      f_console_standard_long_no_color_s,      0, f_console_flag_inverse_e, 0), \
index f6537e037bd51cdb75af2a95cc45b662f1fdaf79..f6e3e8163db47a911eab59894b818ca615a77bb8 100644 (file)
@@ -1,7 +1,7 @@
 /**
  * FLL - Level 3
  *
- * Project: UTF-8
+ * Project: UTF8
  * API Version: 0.7
  * Licenses: lgpl-2.1-or-later
  *
index dd90e9bfc7107f729ca6d030ae71a8bfc49a7a9c..0c911516d6542cbefa60f3906ba058c91b39633d 100644 (file)
@@ -8,11 +8,7 @@ extern "C" {
 #ifndef _di_utf8_print_error_
   f_status_t utf8_print_error(utf8_setting_t * const setting, const fl_print_t print, const f_string_t function) {
 
-    if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
-
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
-    }
+    if (print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
     utf8_print_line_first_locked(setting, print);
     fll_error_print(print, F_status_set_fine(setting->status), function, F_true);
@@ -25,13 +21,9 @@ extern "C" {
 #ifndef _di_utf8_print_error_decode_
   f_status_t utf8_print_error_decode(utf8_setting_t * const setting, const fl_print_t print, const f_status_t status, const f_string_static_t invalid) {
 
-    if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (print.verbosity < f_console_verbosity_error_e) return F_output_not;
     if (setting->flag & (utf8_main_flag_strip_invalid_e | utf8_main_flag_verify_e)) return F_output_not;
 
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
-    }
-
     utf8_print_line_first_unlocked(setting, print);
 
     fl_print_format("%[%QFailed to decode character code '%]", print.to, print.set->error, print.prefix, print.set->error);
@@ -68,11 +60,7 @@ extern "C" {
 #ifndef _di_utf8_print_error_encode_
   f_status_t utf8_print_error_encode(utf8_setting_t * const setting, const fl_print_t print, const f_status_t status, const uint32_t codepoint) {
 
-    if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
-
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
-    }
+    if (print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
     utf8_print_line_first_unlocked(setting, print);
 
@@ -95,11 +83,7 @@ extern "C" {
 #ifndef _di_utf8_print_error_file_
   f_status_t utf8_print_error_file(utf8_setting_t * const setting, const fl_print_t print, const f_string_t function, const f_string_static_t name, const f_string_static_t operation, const uint8_t type) {
 
-    if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
-
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
-    }
+    if (print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
     utf8_print_line_first_locked(setting, print);
     fll_error_file_print(print, F_status_set_fine(setting->status), function, F_true, name, operation, type);
@@ -112,11 +96,7 @@ extern "C" {
 #ifndef _di_utf8_print_error_no_from_
   f_status_t utf8_print_error_no_from(utf8_setting_t * const setting, const fl_print_t print) {
 
-    if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
-
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
-    }
+    if (print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
     fll_print_format("%[%QNo from sources are specified, please pipe data, designate a file, or add parameters.%]%r", print.to, print.set->error, print.prefix, print.set->error, f_string_eol_s);
 
@@ -127,11 +107,7 @@ extern "C" {
 #ifndef _di_utf8_print_error_parameter_file_name_empty_
   f_status_t utf8_print_error_parameter_file_name_empty(utf8_setting_t * const setting, const fl_print_t print, const f_array_length_t index) {
 
-    if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
-
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
-    }
+    if (print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
     f_file_stream_lock(print.to);
 
@@ -150,11 +126,7 @@ extern "C" {
 #ifndef _di_utf8_print_error_parameter_file_not_found_
   f_status_t utf8_print_error_parameter_file_not_found(utf8_setting_t * const setting, const fl_print_t print, const bool from, const f_string_static_t name) {
 
-    if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
-
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
-    }
+    if (print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
     f_file_stream_lock(print.to);
 
@@ -173,11 +145,7 @@ extern "C" {
 #ifndef _di_utf8_print_error_parameter_file_to_too_many_
   f_status_t utf8_print_error_parameter_file_to_too_many(utf8_setting_t * const setting, const fl_print_t print) {
 
-    if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
-
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
-    }
+    if (print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
     utf8_print_line_first_locked(setting, print);
 
@@ -347,10 +315,10 @@ extern "C" {
 #ifndef _di_utf8_print_line_first_locked_
   f_status_t utf8_print_line_first_locked(utf8_setting_t * const setting, const fl_print_t print) {
 
-    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+    if (F_status_is_error_not(setting->status)) {
+      if (print.verbosity < f_console_verbosity_normal_e) return F_output_not;
       if (setting->flag & (utf8_main_flag_verify_e | utf8_main_flag_file_to_e)) return F_output_not;
     }
 
@@ -363,10 +331,10 @@ extern "C" {
 #ifndef _di_utf8_print_line_first_unlocked_
   f_status_t utf8_print_line_first_unlocked(utf8_setting_t * const setting, const fl_print_t print) {
 
-    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+    if (F_status_is_error_not(setting->status)) {
+      if (print.verbosity < f_console_verbosity_normal_e) return F_output_not;
       if (setting->flag & (utf8_main_flag_verify_e | utf8_main_flag_file_to_e)) return F_output_not;
     }
 
@@ -379,10 +347,10 @@ extern "C" {
 #ifndef _di_utf8_print_line_last_locked_
   f_status_t utf8_print_line_last_locked(utf8_setting_t * const setting, const fl_print_t print) {
 
-    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+    if (F_status_is_error_not(setting->status)) {
+      if (print.verbosity < f_console_verbosity_normal_e) return F_output_not;
       if (setting->flag & (utf8_main_flag_verify_e | utf8_main_flag_file_to_e)) return F_output_not;
     }
 
@@ -395,10 +363,10 @@ extern "C" {
 #ifndef _di_utf8_print_line_last_unlocked_
   f_status_t utf8_print_line_last_unlocked(utf8_setting_t * const setting, const fl_print_t print) {
 
-    if (!setting || print.verbosity == f_console_verbosity_quiet_e) return F_output_not;
+    if (!setting || print.verbosity < f_console_verbosity_error_e) return F_output_not;
 
-    if (!F_status_is_error(setting->status)) {
-      if (print.verbosity == f_console_verbosity_error_e) return F_output_not;
+    if (F_status_is_error_not(setting->status)) {
+      if (print.verbosity < f_console_verbosity_normal_e) return F_output_not;
       if (setting->flag & (utf8_main_flag_verify_e | utf8_main_flag_file_to_e)) return F_output_not;
     }
 
index 08842f7564f65911846265bbe361bd4e5545f7d7..923f03ddc153b1b297d31743ac09b0f20e64b0b5 100644 (file)
@@ -1,7 +1,7 @@
 /**
  * FLL - Level 3
  *
- * Project: UTF-8
+ * Project: UTF8
  * API Version: 0.7
  * Licenses: lgpl-2.1-or-later
  */
index 4e587c0581e2e9df7feccab66a1e8ad9abd17372..48dad90ef9862a0f200d1851fbd71a0da7d5672a 100644 (file)
@@ -1,7 +1,7 @@
 /**
  * FLL - Level 3
  *
- * Project: UTF-8
+ * Project: UTF8
  * API Version: 0.7
  * Licenses: lgpl-2.1-or-later
  */
index 6c6aca578f2c37f288011bf2dd6eba8bf895ea7d..6638f1209fd5a7a43288be9db29648d11240cd11 100644 (file)
@@ -1,7 +1,7 @@
 /**
  * FLL - Level 3
  *
- * Project: UTF-8
+ * Project: UTF8
  * API Version: 0.7
  * Licenses: lgpl-2.1-or-later
  */
index c2c66257790abcc5cfb26f1e36af2520d43d0d10..cd2c07556723c6b3726fded7cd408ba2295e3efd 100644 (file)
@@ -1,7 +1,7 @@
 /**
  * FLL - Level 3
  *
- * Project: UTF-8
+ * Project: UTF8
  * API Version: 0.7
  * Licenses: lgpl-2.1-or-later
  */
index 360e75b43949fcb039dd54d82e0541d7d305ccad..60b8ba8bc93118a2d77b0e98f02d5b8dd69ddb08 100644 (file)
@@ -1,7 +1,7 @@
 /**
  * FLL - Level 3
  *
- * Project: UTF-8
+ * Project: UTF8
  * API Version: 0.7
  * Licenses: lgpl-2.1-or-later
  */
index 4347b81215104cf78147207a3fea52f6f912b47d..ecc37ffb2bb574508c20c991218dfaec2f9a613e 100644 (file)
@@ -1,7 +1,7 @@
 /**
  * FLL - Level 3
  *
- * Project: UTF-8
+ * Project: UTF8
  * API Version: 0.7
  * Licenses: lgpl-2.1-or-later
  *