From f5e1dfddefb5ec42f1d89dc34a6e21e35915043a Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Sat, 24 Jun 2023 17:36:59 -0500 Subject: [PATCH] Cleanup: Documentation comments, adding missing colon and fixing word usage. --- level_0/f_account/c/account.h | 8 ++++---- level_0/f_account/c/private-account.h | 2 +- level_0/f_serialize/c/serialize.h | 10 +++++----- level_3/fake/c/main/signal.h | 4 ++-- level_3/fss_read/c/main/signal.h | 4 ++-- level_3/fss_write/c/main/fss_write.h | 2 +- level_3/fss_write/c/main/signal.h | 4 ++-- level_3/iki_read/c/main/signal.h | 4 ++-- level_3/iki_write/c/main/signal.h | 4 ++-- level_3/status_code/c/main/signal.h | 4 ++-- level_3/utf8/c/main/common.c | 13 ++++++++----- level_3/utf8/c/main/signal.h | 4 ++-- 12 files changed, 33 insertions(+), 30 deletions(-) diff --git a/level_0/f_account/c/account.h b/level_0/f_account/c/account.h index 4a39dbb..cfa7fa0 100644 --- a/level_0/f_account/c/account.h +++ b/level_0/f_account/c/account.h @@ -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() * diff --git a/level_0/f_account/c/private-account.h b/level_0/f_account/c/private-account.h index 8ae1c92..f594699 100644 --- a/level_0/f_account/c/private-account.h +++ b/level_0/f_account/c/private-account.h @@ -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() */ diff --git a/level_0/f_serialize/c/serialize.h b/level_0/f_serialize/c/serialize.h index 564aea4..da8f79d 100644 --- a/level_0/f_serialize/c/serialize.h +++ b/level_0/f_serialize/c/serialize.h @@ -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() diff --git a/level_3/fake/c/main/signal.h b/level_3/fake/c/main/signal.h index 21d9bea..89dc952 100644 --- a/level_3/fake/c/main/signal.h +++ b/level_3/fake/c/main/signal.h @@ -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() diff --git a/level_3/fss_read/c/main/signal.h b/level_3/fss_read/c/main/signal.h index 68aeb51..3cea0ae 100644 --- a/level_3/fss_read/c/main/signal.h +++ b/level_3/fss_read/c/main/signal.h @@ -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() diff --git a/level_3/fss_write/c/main/fss_write.h b/level_3/fss_write/c/main/fss_write.h index 04d4a9d..3fe7bb9 100644 --- a/level_3/fss_write/c/main/fss_write.h +++ b/level_3/fss_write/c/main/fss_write.h @@ -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() */ diff --git a/level_3/fss_write/c/main/signal.h b/level_3/fss_write/c/main/signal.h index 7e2d888..c72d814 100644 --- a/level_3/fss_write/c/main/signal.h +++ b/level_3/fss_write/c/main/signal.h @@ -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() diff --git a/level_3/iki_read/c/main/signal.h b/level_3/iki_read/c/main/signal.h index 4be58af..e6d0967 100644 --- a/level_3/iki_read/c/main/signal.h +++ b/level_3/iki_read/c/main/signal.h @@ -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() diff --git a/level_3/iki_write/c/main/signal.h b/level_3/iki_write/c/main/signal.h index 2301f0b..8ad8ab8 100644 --- a/level_3/iki_write/c/main/signal.h +++ b/level_3/iki_write/c/main/signal.h @@ -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() diff --git a/level_3/status_code/c/main/signal.h b/level_3/status_code/c/main/signal.h index 905544b..479f373 100644 --- a/level_3/status_code/c/main/signal.h +++ b/level_3/status_code/c/main/signal.h @@ -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() diff --git a/level_3/utf8/c/main/common.c b/level_3/utf8/c/main/common.c index a0baca5..378f1a6 100644 --- a/level_3/utf8/c/main/common.c +++ b/level_3/utf8/c/main/common.c @@ -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_ diff --git a/level_3/utf8/c/main/signal.h b/level_3/utf8/c/main/signal.h index 2a54696..8baa1e2 100644 --- a/level_3/utf8/c/main/signal.h +++ b/level_3/utf8/c/main/signal.h @@ -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() -- 1.8.3.1