]> Kevux Git Server - fll/commitdiff
Cleanup: Documentation comments, adding missing colon and fixing word usage.
authorKevin Day <kevin@kevux.org>
Sat, 24 Jun 2023 22:36:59 +0000 (17:36 -0500)
committerKevin Day <kevin@kevux.org>
Sat, 24 Jun 2023 22:36:59 +0000 (17:36 -0500)
12 files changed:
level_0/f_account/c/account.h
level_0/f_account/c/private-account.h
level_0/f_serialize/c/serialize.h
level_3/fake/c/main/signal.h
level_3/fss_read/c/main/signal.h
level_3/fss_write/c/main/fss_write.h
level_3/fss_write/c/main/signal.h
level_3/iki_read/c/main/signal.h
level_3/iki_write/c/main/signal.h
level_3/status_code/c/main/signal.h
level_3/utf8/c/main/common.c
level_3/utf8/c/main/signal.h

index 4a39dbb..cfa7fa0 100644 (file)
@@ -54,7 +54,7 @@ extern "C" {
  *   F_parameter (with error bit) if a parameter is invalid.
  *   F_failure (with error bit) on any other error.
  *
- *   Errors (with error bit) from f_string_dynamic_increase_by().
+ *   Errors (with error bit) from: f_string_dynamic_increase_by().
  *
  * @see getpwuid_r()
  * @see sysconf()
@@ -87,7 +87,7 @@ extern "C" {
  *   F_parameter (with error bit) if a parameter is invalid.
  *   F_failure (with error bit) on any other error.
  *
- *   Errors (with error bit) from f_string_dynamic_increase_by().
+ *   Errors (with error bit) from: f_string_dynamic_increase_by().
  *
  * @see getpwnam_r()
  *
@@ -145,7 +145,7 @@ extern "C" {
  *   F_parameter (with error bit) if a parameter is invalid.
  *   F_failure (with error bit) on any other error.
  *
- *   Errors (with error bit) from f_string_dynamic_increase_by().
+ *   Errors (with error bit) from: f_string_dynamic_increase_by().
  *
  * @see getgrgid_r()
  *
@@ -203,7 +203,7 @@ extern "C" {
  *   F_parameter (with error bit) if a parameter is invalid.
  *   F_failure (with error bit) on any other error.
  *
- *   Errors (with error bit) from f_string_dynamic_increase_by().
+ *   Errors (with error bit) from: f_string_dynamic_increase_by().
  *
  * @see getpwuid_r()
  *
index 8ae1c92..f594699 100644 (file)
@@ -32,7 +32,7 @@ extern "C" {
  * @return
  *   F_none on success.
  *
- *   Errors (with error bit) from f_string_dynamic_increase_by().
+ *   Errors (with error bit) from: f_string_dynamic_increase_by().
  *
  * @see f_string_dynamic_increase_by()
  */
index 564aea4..da8f79d 100644 (file)
@@ -53,8 +53,8 @@ extern "C" {
  *
  *   F_parameter (with error bit) if a parameter is invalid.
  *
- *   Errors (with error bit) from f_string_append();
- *   Errors (with error bit) from f_string_dynamics_increase_by();
+ *   Errors (with error bit) from: f_string_append();
+ *   Errors (with error bit) from: f_string_dynamics_increase_by();
  *
  * @see f_string_append()
  * @see f_string_dynamics_increase_by()
@@ -121,7 +121,7 @@ extern "C" {
  *
  *   F_parameter (with error bit) if a parameter is invalid.
  *
- *   Errors (with error bit) from f_string_ranges_increase()
+ *   Errors (with error bit) from: f_string_ranges_increase()
  *
  * @see f_string_ranges_increase()
  */
@@ -182,8 +182,8 @@ extern "C" {
  *
  *   F_parameter (with error bit) if a parameter is invalid.
  *
- *   Errors (with error bit) from f_string_dynamic_append();
- *   Errors (with error bit) from f_string_dynamic_append_assure();
+ *   Errors (with error bit) from: f_string_dynamic_append();
+ *   Errors (with error bit) from: f_string_dynamic_append_assure();
  *
  * @see f_string_dynamic_append()
  * @see f_string_dynamic_append_assure()
index 21d9bea..89dc952 100644 (file)
@@ -68,8 +68,8 @@ extern "C" {
  *   This alters main.program.signal_received, setting it to a received signal.
  *
  *   This alters setting.status:
- *     Errors with (error bit set) from: f_signal_open()
- *     Errors with (error bit set) from: f_signal_wait()
+ *     Errors (with error bit) from: f_signal_open()
+ *     Errors (with error bit) from: f_signal_wait()
  *
  * @see f_signal_close()
  * @see f_signal_open()
index 68aeb51..3cea0ae 100644 (file)
@@ -68,8 +68,8 @@ extern "C" {
  *   This alters main.program.signal_received, setting it to a received signal.
  *
  *   This alters setting.status:
- *     Errors with (error bit set) from: f_signal_open()
- *     Errors with (error bit set) from: f_signal_wait()
+ *     Errors (with error bit) from: f_signal_open()
+ *     Errors (with error bit) from: f_signal_wait()
  *
  * @see f_signal_close()
  * @see f_signal_open()
index 04d4a9d..3fe7bb9 100644 (file)
@@ -103,7 +103,7 @@ extern "C" {
  *   This alters main.custom.setting.state.status:
  *     status from fss_write_process_normal_data().
  *
- *     Errors (with error bit) from fss_write_process_normal_data().
+ *     Errors (with error bit) from: fss_write_process_normal_data().
  *
  * @see fss_write_process_normal_data()
  */
index 7e2d888..c72d814 100644 (file)
@@ -68,8 +68,8 @@ extern "C" {
  *   This alters main.program.signal_received, setting it to a received signal.
  *
  *   This alters setting.status:
- *     Errors with (error bit set) from: f_signal_open()
- *     Errors with (error bit set) from: f_signal_wait()
+ *     Errors (with error bit) from: f_signal_open()
+ *     Errors (with error bit) from: f_signal_wait()
  *
  * @see f_signal_close()
  * @see f_signal_open()
index 4be58af..e6d0967 100644 (file)
@@ -68,8 +68,8 @@ extern "C" {
  *   This alters main.program.signal_received, setting it to a received signal.
  *
  *   This alters setting.status:
- *     Errors with (error bit set) from: f_signal_open()
- *     Errors with (error bit set) from: f_signal_wait()
+ *     Errors (with error bit) from: f_signal_open()
+ *     Errors (with error bit) from: f_signal_wait()
  *
  * @see f_signal_close()
  * @see f_signal_open()
index 2301f0b..8ad8ab8 100644 (file)
@@ -68,8 +68,8 @@ extern "C" {
  *   This alters main.program.signal_received, setting it to a received signal.
  *
  *   This alters setting.status:
- *     Errors with (error bit set) from: f_signal_open()
- *     Errors with (error bit set) from: f_signal_wait()
+ *     Errors (with error bit) from: f_signal_open()
+ *     Errors (with error bit) from: f_signal_wait()
  *
  * @see f_signal_close()
  * @see f_signal_open()
index 905544b..479f373 100644 (file)
@@ -68,8 +68,8 @@ extern "C" {
  *   This alters main.program.signal_received, setting it to a received signal.
  *
  *   This alters setting.status:
- *     Errors with (error bit set) from: f_signal_open()
- *     Errors with (error bit set) from: f_signal_wait()
+ *     Errors (with error bit) from: f_signal_open()
+ *     Errors (with error bit) from: f_signal_wait()
  *
  * @see f_signal_close()
  * @see f_signal_open()
index a0baca5..378f1a6 100644 (file)
@@ -382,7 +382,14 @@ extern "C" {
       } // for
     }
 
-    if (!(main->program.parameters.array[utf8_parameter_from_file_e].result & f_console_result_found_e) && !((main->program.pipe & fll_program_data_pipe_input_e) || main->program.parameters.remaining.used)) {
+    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 & (fss_identify_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);
 
       if ((main->setting.flag & utf8_main_flag_print_first_e) && main->program.message.verbosity > f_console_verbosity_error_e) {
@@ -434,10 +441,6 @@ extern "C" {
     }
 
     main->setting.valid_not = main->program.message.set->error;
-
-    if (main->program.pipe & fll_program_data_pipe_input_e) {
-      main->setting.flag |= utf8_main_flag_pipe_e;
-    }
   }
 #endif // _di_utf8_setting_load_
 
index 2a54696..8baa1e2 100644 (file)
@@ -68,8 +68,8 @@ extern "C" {
  *   This alters main.program.signal_received, setting it to a received signal.
  *
  *   This alters setting.status:
- *     Errors with (error bit set) from: f_signal_open()
- *     Errors with (error bit set) from: f_signal_wait()
+ *     Errors (with error bit) from: f_signal_open()
+ *     Errors (with error bit) from: f_signal_wait()
  *
  * @see f_signal_close()
  * @see f_signal_open()