]> Kevux Git Server - fll/commitdiff
Update: Set the pipe flag consistely across programs.
authorKevin Day <kevin@kevux.org>
Fri, 4 Aug 2023 04:57:57 +0000 (23:57 -0500)
committerKevin Day <kevin@kevux.org>
Fri, 4 Aug 2023 04:57:57 +0000 (23:57 -0500)
Use the same practice of designating the pipe as a main flag, even if the program isn't using the input pipe.

For the fss_read programs that use the word "pipe" in a main flag are renamed to "pipe" "format".

26 files changed:
level_3/byte_dump/c/main/byte_dump.c
level_3/byte_dump/c/main/common.c
level_3/fake/c/main/common.c
level_3/fake/c/main/common/enumeration.h
level_3/fss_read/c/basic/print.c
level_3/fss_read/c/basic_list/print.c
level_3/fss_read/c/embedded_list/print.c
level_3/fss_read/c/extended/print.c
level_3/fss_read/c/extended_list/print.c
level_3/fss_read/c/main/common.c
level_3/fss_read/c/main/common/enumeration.h
level_3/fss_read/c/main/print/data.c
level_3/fss_read/c/payload/print.c
level_3/fss_write/c/main/common.c
level_3/fss_write/c/main/common/enumeration.h
level_3/fss_write/c/main/fss_write.c
level_3/iki_read/c/main/common.c
level_3/iki_read/c/main/common/enumeration.h
level_3/iki_read/c/main/iki_read.c
level_3/iki_write/c/main/common.c
level_3/iki_write/c/main/common/enumeration.h
level_3/iki_write/c/main/iki_write.c
level_3/status_code/c/main/common.c
level_3/status_code/c/main/common/enumeration.h
level_3/status_code/c/main/status_code.c
level_3/utf8/c/main/common.c

index 2909d666d47ef9162c82b4d67cf5f8732c6862c4..8062e47c181e95dfb33e0a7e73edb8abda4acf85 100644 (file)
@@ -44,7 +44,7 @@ extern "C" {
     if (main->setting.files.used || (main->program.pipe & fll_program_data_pipe_input_e)) {
       f_file_t file = f_file_t_initialize;
 
-      if (main->program.pipe & fll_program_data_pipe_input_e) {
+      if (main->setting.flag & byte_dump_main_flag_pipe_e) {
         file.id = F_type_descriptor_input_d;
         file.stream = F_type_input_d;
 
index b60d79fd49a91e5586c4c8c061bbfe2227185323..ffc3700898119203042c5c5932dec9252bc3bd29 100644 (file)
@@ -185,6 +185,13 @@ extern "C" {
     f_number_unsigned_t index = 0;
     f_number_unsigned_t number = 0;
 
+    if (main->program.pipe & fll_program_data_pipe_input_e) {
+      main->setting.flag |= byte_dump_main_flag_pipe_e;
+    }
+    else {
+      main->setting.flag -= main->setting.flag & byte_dump_main_flag_pipe_e;
+    }
+
     if (main->program.parameters.array[byte_dump_parameter_width_e].result & f_console_result_value_e) {
       index = main->program.parameters.array[byte_dump_parameter_width_e].values.array[main->program.parameters.array[byte_dump_parameter_width_e].values.used - 1];
 
index 68bcb86d2d25e106af509a19478756c26b611e74..2e1408cbd836a4d74678266042fa28c2ba802151 100644 (file)
@@ -95,6 +95,13 @@ extern "C" {
     f_number_unsigned_t j = 0;
     f_number_unsigned_t index = 0;
 
+    if (main->program.pipe & fll_program_data_pipe_input_e) {
+      main->setting.flag |= fake_main_flag_pipe_e;
+    }
+    else {
+      main->setting.flag -= main->setting.flag & fake_main_flag_pipe_e;
+    }
+
     {
       uint8_t i = 0;
 
index 6cb521c0f76182ea8132b6e044992a67353ca8b6..58aa555321013a02413d15237fa3abf2b15fca3e 100644 (file)
@@ -94,6 +94,7 @@ extern "C" {
  *   - operation_clean:    The clean operation is designated.
  *   - operation_make:     The make operation is designated (or enabled as default).
  *   - operation_skeleton: The skeleton operation is designated.
+ *   - pipe:               Use the input pipe.
  *   - print_first:        When set, print new line to message output on program begin after loading settings.
  *   - print_last:         When set, print new line to message output on program end.
  *   - separate:           Enable printing of separators.
@@ -115,12 +116,13 @@ extern "C" {
     fake_main_flag_operation_clean_e    = 0x100,
     fake_main_flag_operation_make_e     = 0x200,
     fake_main_flag_operation_skeleton_e = 0x400,
-    fake_main_flag_print_first_e        = 0x800,
-    fake_main_flag_print_last_e         = 0x1000,
-    fake_main_flag_separate_e           = 0x2000,
-    fake_main_flag_strip_invalid_e      = 0x4000,
-    fake_main_flag_verify_e             = 0x8000,
-    fake_main_flag_version_e            = 0x10000,
+    fake_main_flag_pipe_e               = 0x800,
+    fake_main_flag_print_first_e        = 0x1000,
+    fake_main_flag_print_last_e         = 0x2000,
+    fake_main_flag_separate_e           = 0x4000,
+    fake_main_flag_strip_invalid_e      = 0x8000,
+    fake_main_flag_verify_e             = 0x10000,
+    fake_main_flag_version_e            = 0x20000,
   }; // enum
 #endif // _di_fake_main_flag_e_
 
index 788c332a8b735fc0f0bbb19ee262a8c139aa129c..3d8696370d4b82d41bc2aaebba57653ca909cb92 100644 (file)
@@ -42,7 +42,7 @@ extern "C" {
     fss_read_main_t * const main = (fss_read_main_t *) print->custom;
 
     if (main->setting.flag & fss_read_main_flag_content_e) {
-      if (main->setting.flag & fss_read_main_flag_pipe_e) {
+      if (main->setting.flag & fss_read_main_flag_pipe_format_e) {
         fll_print_dynamic_raw(fss_read_pipe_content_start_s, print->to);
       }
       else {
index 21c45d54b1e823d1166aea5c9c0a84c9ee3bbee5..0d47ffb2a90930b017b250809ce3c46ff9415c67 100644 (file)
@@ -43,7 +43,7 @@ extern "C" {
 
     f_file_stream_lock(print->to);
 
-    if (main->setting.flag & fss_read_main_flag_pipe_e) {
+    if (main->setting.flag & fss_read_main_flag_pipe_format_e) {
       f_print_dynamic_raw(fss_read_pipe_content_start_s, print->to);
     }
     else {
index 243b21a07d2483b9371fd54d77cde45390b2a481..66a2a8e9f1a1c723b8c7d2329621c3207e59be31 100644 (file)
@@ -43,7 +43,7 @@ extern "C" {
 
     f_file_stream_lock(print->to);
 
-    if (main->setting.flag & fss_read_main_flag_pipe_e) {
+    if (main->setting.flag & fss_read_main_flag_pipe_format_e) {
       f_print_dynamic_raw(fss_read_pipe_content_start_s, print->to);
     }
     else {
index fc49463ff1220c06fb968d2f26a782c31e8b501b..040fe854b26f9969c549aae3e5efcf1c7c7a89f3 100644 (file)
@@ -12,7 +12,7 @@ extern "C" {
     fss_read_main_t * const main = (fss_read_main_t *) print->custom;
 
     if (main->setting.flag & fss_read_main_flag_content_e) {
-      fll_print_dynamic_raw((main->setting.flag & fss_read_main_flag_pipe_e) ? fss_read_pipe_content_start_s : f_fss_extended_next_s, print->to);
+      fll_print_dynamic_raw((main->setting.flag & fss_read_main_flag_pipe_format_e) ? fss_read_pipe_content_start_s : f_fss_extended_next_s, print->to);
     }
 
     return F_none;
@@ -57,7 +57,7 @@ extern "C" {
     fss_read_main_t * const main = (fss_read_main_t *) print->custom;
 
     if (main->setting.flag & fss_read_main_flag_content_e) {
-      if (main->setting.flag & fss_read_main_flag_pipe_e) {
+      if (main->setting.flag & fss_read_main_flag_pipe_format_e) {
         fll_print_dynamic_raw(fss_read_pipe_content_start_s, print->to);
       }
       else {
index 17e3f52009bb64dba90fe247251ea06d10263644..4ec740d5b7887a213c236e4882bc79a6aa7ae789 100644 (file)
@@ -43,7 +43,7 @@ extern "C" {
 
     f_file_stream_lock(print->to);
 
-    if (main->setting.flag & fss_read_main_flag_pipe_e) {
+    if (main->setting.flag & fss_read_main_flag_pipe_format_e) {
       f_print_dynamic_raw(fss_read_pipe_content_start_s, print->to);
     }
     else {
index 17c3d13b140553309d67aafe7bd27d0a31e29f39..903a9527cddd4fc437c071dc61df58ce3de99bee 100644 (file)
@@ -135,6 +135,13 @@ extern "C" {
     f_number_unsigned_t i = 0;
     f_number_unsigned_t index = 0;
 
+    if (main->program.pipe & fll_program_data_pipe_input_e) {
+      main->setting.flag |= fss_read_main_flag_pipe_e;
+    }
+    else {
+      main->setting.flag -= main->setting.flag & fss_read_main_flag_pipe_e;
+    }
+
     {
       static const f_number_unsigned_t parameter_code[] = {
         fss_read_parameter_at_e,
@@ -454,7 +461,7 @@ extern "C" {
     }
 
     if (parameters->array[fss_read_parameter_pipe_e].result & f_console_result_found_e) {
-      main->setting.flag |= fss_read_main_flag_pipe_e;
+      main->setting.flag |= fss_read_main_flag_pipe_format_e;
     }
 
     if (parameters->array[fss_read_parameter_total_e].result & f_console_result_found_e) {
index 4cbb25ed398457b616752d982cb7156d49c9ec02..59695bad5c2d7b1236f94ad46a3af1d820daec9f 100644 (file)
@@ -39,7 +39,8 @@ extern "C" {
  *   - object_as_line:    The Object is counted as its own line for the purpose of -l/--line or any other similar behavior.
  *   - object_trim:       Empty space before an after Objects are ignored while processing without affecting printing behavior.
  *   - original:          Enable original printing, where the quotes are printed and no delimits are applied.
- *   - pipe:              Print using the special pipe format.
+ *   - pipe:              Use the input pipe.
+ *   - pipe_format:       Print using the special pipe format.
  *   - print_first:       When set, print new line to message output on program begin after loading settings.
  *   - print_last:        When set, print new line to message output on program end.
  *   - quote_content:     Designate that the standard supports quotes on Content.
@@ -72,15 +73,16 @@ extern "C" {
     fss_read_main_flag_object_trim_e       = 0x10000,
     fss_read_main_flag_original_e          = 0x20000,
     fss_read_main_flag_pipe_e              = 0x40000,
-    fss_read_main_flag_print_first_e       = 0x80000,
-    fss_read_main_flag_print_last_e        = 0x100000,
-    fss_read_main_flag_quote_content_e     = 0x200000,
-    fss_read_main_flag_quote_object_e      = 0x400000,
-    fss_read_main_flag_select_e            = 0x800000,
-    fss_read_main_flag_total_e             = 0x1000000,
-    fss_read_main_flag_trim_e              = 0x2000000,
-    fss_read_main_flag_trim_object_e       = 0x4000000,
-    fss_read_main_flag_version_e           = 0x8000000,
+    fss_read_main_flag_pipe_format_e       = 0x80000,
+    fss_read_main_flag_print_first_e       = 0x100000,
+    fss_read_main_flag_print_last_e        = 0x200000,
+    fss_read_main_flag_quote_content_e     = 0x400000,
+    fss_read_main_flag_quote_object_e      = 0x800000,
+    fss_read_main_flag_select_e            = 0x1000000,
+    fss_read_main_flag_total_e             = 0x2000000,
+    fss_read_main_flag_trim_e              = 0x4000000,
+    fss_read_main_flag_trim_object_e       = 0x8000000,
+    fss_read_main_flag_version_e           = 0x10000000,
   }; // enum
 #endif // _di_fss_read_main_flag_e_
 
index 648f011cb3b9702a3e3d53b28ec1b94006183ee1..29a51d02266ff50d6d4a62971fe7e4a632331860 100644 (file)
@@ -103,7 +103,7 @@ extern "C" {
 
     fss_read_main_t * const main = (fss_read_main_t *) print->custom;
 
-    if (main->setting.flag & fss_read_main_flag_pipe_e) {
+    if (main->setting.flag & fss_read_main_flag_pipe_format_e) {
       fll_print_dynamic_raw(fss_read_pipe_content_ignore_s, print->to);
     }
 
@@ -195,7 +195,7 @@ extern "C" {
 
     fss_read_main_t * const main = (fss_read_main_t *) print->custom;
 
-    fll_print_dynamic_raw((main->setting.flag & fss_read_main_flag_pipe_e) ? fss_read_pipe_content_end_s : f_string_eol_s, print->to);
+    fll_print_dynamic_raw((main->setting.flag & fss_read_main_flag_pipe_format_e) ? fss_read_pipe_content_end_s : f_string_eol_s, print->to);
 
     return F_none;
   }
@@ -208,7 +208,7 @@ extern "C" {
 
     fss_read_main_t * const main = (fss_read_main_t *) print->custom;
 
-    if (main->setting.flag & fss_read_main_flag_pipe_e) {
+    if (main->setting.flag & fss_read_main_flag_pipe_format_e) {
       fll_print_dynamic_raw(fss_read_pipe_content_end_s, print->to);
     }
 
index d40e206d1327dc1a39ea7d9c30f9a6cd71d8efe5..6ab79f4d76a99dd044fc6fe85c79ca57a134ad44 100644 (file)
@@ -62,7 +62,7 @@ extern "C" {
 
     f_file_stream_lock(print->to);
 
-    if (main->setting.flag & fss_read_main_flag_pipe_e) {
+    if (main->setting.flag & fss_read_main_flag_pipe_format_e) {
       f_print_dynamic_raw(fss_read_pipe_content_start_s, print->to);
     }
     else {
index 3f778a177a73584cabe2a687c52c8a56a6c5ff88..1e87b75480d0e0c6116aac8f934558a08aa8f8f2 100644 (file)
@@ -80,6 +80,13 @@ extern "C" {
       main->setting.flag |= fss_write_main_flag_copyright_e;
     }
 
+    if (main->program.pipe & fll_program_data_pipe_input_e) {
+      main->setting.flag |= fss_write_main_flag_pipe_e;
+    }
+    else {
+      main->setting.flag -= main->setting.flag & fss_write_main_flag_pipe_e;
+    }
+
     if (callback) {
       callback(arguments, main);
       if (F_status_is_error(main->setting.state.status)) return;
index 2c6c8f2f21ddc57ac63acee4c81efb5894a762ee..7b2c33c7bf7368ff4d781097143595b63ba35358 100644 (file)
@@ -32,6 +32,7 @@ extern "C" {
  *   - object:           The Object being written is specified.
  *   - object_open:      The Object open characters are to be printed.
  *   - partial:          Do not write end of Object/Content character.
+ *   - pipe:             Use the input pipe.
  *   - print_first:      When set, print new line to message output on program begin after loading settings.
  *   - print_last:       When set, print new line to message output on program end.
  *   - trim:             Trim Object names.
@@ -51,11 +52,12 @@ extern "C" {
     fss_write_main_flag_object_e           = 0x100,
     fss_write_main_flag_object_open_e      = 0x200,
     fss_write_main_flag_partial_e          = 0x400,
-    fss_write_main_flag_prepend_e          = 0x800,
-    fss_write_main_flag_print_first_e      = 0x1000,
-    fss_write_main_flag_print_last_e       = 0x2000,
-    fss_write_main_flag_trim_e             = 0x4000,
-    fss_write_main_flag_version_e          = 0x8000,
+    fss_write_main_flag_pipe_e             = 0x800,
+    fss_write_main_flag_prepend_e          = 0x1000,
+    fss_write_main_flag_print_first_e      = 0x2000,
+    fss_write_main_flag_print_last_e       = 0x4000,
+    fss_write_main_flag_trim_e             = 0x8000,
+    fss_write_main_flag_version_e          = 0x10000,
   }; // enum
 #endif // _di_fss_write_main_flag_e_
 
index e0a8519825948530768c35bbda287527ca6a1eae..33e38a4fc7113902107a593be68240d11e036b4c 100644 (file)
@@ -48,7 +48,7 @@ extern "C" {
       return;
     }
 
-    if (main->program.pipe & fll_program_data_pipe_input_e) {
+    if (main->setting.flag & fss_write_main_flag_pipe_e) {
       if (main->callback.process_pipe) {
         main->callback.process_pipe(void_main);
       }
index b16e896c51cfc9000d1314edf31f244641eea9ba..97b7e0e1096c140f80a3e026b460f67b6ede5919 100644 (file)
@@ -82,6 +82,13 @@ extern "C" {
       return;
     }
 
+    if (main->program.pipe & fll_program_data_pipe_input_e) {
+      main->setting.flag |= iki_read_main_flag_pipe_e;
+    }
+    else {
+      main->setting.flag -= main->setting.flag & iki_read_main_flag_pipe_e;
+    }
+
     if (!(main->program.parameters.remaining.used || (main->program.pipe & fll_program_data_pipe_input_e))) {
       main->setting.state.status = F_status_set_error(F_parameter);
 
index 25a20468e4e0b2b006d2ec896596cffc15778947..6a112e17e59016b66d7d8521d90fde24ae678956 100644 (file)
@@ -29,6 +29,7 @@ extern "C" {
  *   - line:        Selecting at a specific line.
  *   - name:        Selecting using a specific Vocabulary name.
  *   - object:      Print Objects.
+ *   - pipe:        Use the input pipe.
  *   - print_first: When set, print new line to message output on program begin after loading settings.
  *   - print_last:  When set, print new line to message output on program end.
  *   - replace:     Using re-assignments.
@@ -50,15 +51,16 @@ extern "C" {
     iki_read_main_flag_line_e        = 0x20,
     iki_read_main_flag_name_e        = 0x40,
     iki_read_main_flag_object_e      = 0x80,
-    iki_read_main_flag_print_first_e = 0x100,
-    iki_read_main_flag_print_last_e  = 0x200,
-    iki_read_main_flag_reassign_e    = 0x400,
-    iki_read_main_flag_replace_e     = 0x800,
-    iki_read_main_flag_substitute_e  = 0x1000,
-    iki_read_main_flag_total_e       = 0x2000,
-    iki_read_main_flag_version_e     = 0x4000,
-    iki_read_main_flag_whole_e       = 0x8000,
-    iki_read_main_flag_wrap_e        = 0x10000,
+    iki_read_main_flag_pipe_e        = 0x100,
+    iki_read_main_flag_print_first_e = 0x200,
+    iki_read_main_flag_print_last_e  = 0x400,
+    iki_read_main_flag_reassign_e    = 0x800,
+    iki_read_main_flag_replace_e     = 0x1000,
+    iki_read_main_flag_substitute_e  = 0x2000,
+    iki_read_main_flag_total_e       = 0x4000,
+    iki_read_main_flag_version_e     = 0x8000,
+    iki_read_main_flag_whole_e       = 0x10000,
+    iki_read_main_flag_wrap_e        = 0x20000,
   }; // enum
 #endif // _di_iki_read_main_flag_e_
 
index 4bc798078ca22013b7c501c16eed303f1e7b17c5..7b34d01dd2a06a4a6230dedeca26d114fbf53a92 100644 (file)
@@ -41,7 +41,7 @@ extern "C" {
       return;
     }
 
-    if (main->program.pipe & fll_program_data_pipe_input_e) {
+    if (main->setting.flag & iki_read_main_flag_pipe_e) {
       f_file_t file = f_file_t_initialize;
 
       file.id = F_type_descriptor_input_d;
index 1b26f35df0bdfaa6c6ada8cc6191d11d5be24ff8..e0baed8d53b0c8d320f9ebb705a89d1d3e9ca3c4 100644 (file)
@@ -86,6 +86,13 @@ extern "C" {
       return;
     }
 
+    if (main->program.pipe & fll_program_data_pipe_input_e) {
+      main->setting.flag |= iki_write_main_flag_pipe_e;
+    }
+    else {
+      main->setting.flag -= main->setting.flag & iki_write_main_flag_pipe_e;
+    }
+
     if (main->program.parameters.array[iki_write_parameter_file_e].result & f_console_result_value_e && main->program.parameters.array[iki_write_parameter_file_e].values.used) {
       if (main->program.parameters.array[iki_write_parameter_file_e].values.used > 1) {
         main->setting.state.status = F_status_set_error(F_parameter);
index c946f33ef05e4f4f381d2fa52bf534dd6b6be7eb..2cb00f84787679edae21d5ff1501407f8cb33797 100644 (file)
@@ -26,6 +26,7 @@ extern "C" {
  *   - file_to:     Using a specified destination file.
  *   - help:        Print help.
  *   - object:      The Object being written is specified.
+ *   - pipe:        Use the input pipe.
  *   - print_first: When set, print new line to message output on program begin after loading settings.
  *   - print_last:  When set, print new line to message output on program end.
  *   - print_last:  The Object being written is specified.
@@ -40,10 +41,11 @@ extern "C" {
     iki_write_main_flag_file_to_e     = 0x4,
     iki_write_main_flag_help_e        = 0x8,
     iki_write_main_flag_object_e      = 0x10,
-    iki_write_main_flag_print_first_e = 0x20,
-    iki_write_main_flag_print_last_e  = 0x40,
-    iki_write_main_flag_version_e     = 0x80,
-    iki_write_main_flag_wrap_e        = 0x100,
+    iki_write_main_flag_pipe_e        = 0x20,
+    iki_write_main_flag_print_first_e = 0x40,
+    iki_write_main_flag_print_last_e  = 0x80,
+    iki_write_main_flag_version_e     = 0x100,
+    iki_write_main_flag_wrap_e        = 0x200,
   }; // enum
 #endif // _di_iki_write_main_flag_e_
 
index bb078195a447ed53f84ed6cb73a5bdde63ede96f..15a082b10ba66d14610bea0b6192d33d45872146 100644 (file)
@@ -43,7 +43,7 @@ extern "C" {
 
     main->setting.escaped.used = 0;
 
-    if (main->program.pipe & fll_program_data_pipe_input_e) {
+    if (main->setting.flag & iki_write_main_flag_pipe_e) {
       bool object_ended = F_false;
 
       f_number_unsigned_t previous = 0;
index 2b134343242961161cb22cf3d7edf3d34fc0f659..35d7b54e75cbde3c4de219a963b81848f1b84c42 100644 (file)
@@ -82,6 +82,13 @@ extern "C" {
       return;
     }
 
+    if (main->program.pipe & fll_program_data_pipe_input_e) {
+      main->setting.flag |= status_code_main_flag_pipe_e;
+    }
+    else {
+      main->setting.flag -= main->setting.flag & status_code_main_flag_pipe_e;
+    }
+
     if (main->program.parameters.array[status_code_parameter_error_e].result & f_console_result_found_e) {
       main->setting.flag |= status_code_main_flag_error_e;
     }
index ac99082559cc09d74c5f009df11b5be8c60d445d..b751f2c674c38af596408e2d24f69fece61a3413 100644 (file)
@@ -28,6 +28,7 @@ extern "C" {
  *   - fine:        Check if status is "fine".
  *   - help:        Print help.
  *   - number:      Operate in number mode.
+ *   - pipe:        Use the input pipe.
  *   - print_first: When set, print new line to message output on program begin after loading settings.
  *   - print_last:  When set, print new line to message output on program end.
  *   - version:     Print version.
@@ -41,10 +42,11 @@ extern "C" {
     status_code_main_flag_fine_e        = 0x4,
     status_code_main_flag_help_e        = 0x8,
     status_code_main_flag_number_e      = 0x10,
-    status_code_main_flag_print_first_e = 0x20,
-    status_code_main_flag_print_last_e  = 0x40,
-    status_code_main_flag_version_e     = 0x80,
-    status_code_main_flag_warning_e     = 0x100,
+    status_code_main_flag_pipe_e        = 0x20,
+    status_code_main_flag_print_first_e = 0x40,
+    status_code_main_flag_print_last_e  = 0x80,
+    status_code_main_flag_version_e     = 0x100,
+    status_code_main_flag_warning_e     = 0x200,
   }; // enum
 #endif // _di_status_code_main_flag_e_
 
index d975149b1793a79bbb1f721028e58fada4e44c18..4f4aa23e6f1eb6c6c2419439c3f7ec2a9cd4a318 100644 (file)
@@ -62,7 +62,7 @@ extern "C" {
     f_status_t status = F_none;
 
     if (main->setting.flag & status_code_main_flag_number_e) {
-      if (main->program.pipe & fll_program_data_pipe_input_e) {
+      if (main->setting.flag & status_code_main_flag_pipe_e) {
         // @todo call status_code_process_number() here for all main from pipe that are space separated.
       }
 
@@ -94,7 +94,7 @@ extern "C" {
       }
     }
     else if ((main->setting.flag & status_code_main_flag_error_e) || (main->setting.flag & status_code_main_flag_warning_e) || (main->setting.flag & status_code_main_flag_fine_e)) {
-      if (main->program.pipe & fll_program_data_pipe_input_e) {
+      if (main->setting.flag & status_code_main_flag_pipe_e) {
         // @todo call status_code_process_check() here for all main from pipe that is space separated.
       }
 
@@ -126,7 +126,7 @@ extern "C" {
       }
     }
     else {
-      if (main->program.pipe & fll_program_data_pipe_input_e) {
+      if (main->setting.flag & status_code_main_flag_pipe_e) {
         // @todo call status_code_process_normal() here for all main from pipe that is space separated.
       }
 
index c8601f9ed43f746c6cb395f937a00eac30a88db1..a56c2f8c637aeb94a33ff481bd522cdc9c6acb96 100644 (file)
@@ -173,6 +173,13 @@ extern "C" {
       return;
     }
 
+    if (main->program.pipe & fll_program_data_pipe_input_e) {
+      main->setting.flag |= utf8_main_flag_pipe_e;
+    }
+    else {
+      main->setting.flag -= main->setting.flag & utf8_main_flag_pipe_e;
+    }
+
     if (main->program.parameters.array[utf8_parameter_to_file_e].result & f_console_result_value_e) {
       if (main->program.parameters.array[utf8_parameter_to_file_e].values.used > 1) {
         main->setting.state.status = F_status_set_error(F_parameter);
@@ -365,13 +372,6 @@ extern "C" {
       } // for
     }
 
-    if (main->program.pipe & fll_program_data_pipe_input_e) {
-      main->setting.flag |= utf8_main_flag_pipe_e;
-    }
-    else {
-      main->setting.flag -= main->setting.flag & utf8_main_flag_pipe_e;
-    }
-
     if (!((main->setting.flag & (utf8_main_flag_pipe_e | utf8_main_flag_file_from_e)) || main->program.parameters.remaining.used)) {
       main->setting.state.status = F_status_set_error(F_parameter);