Focused on Featureless Make.
Other changes made as convenient.
#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), \
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
#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;
}
#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;
}
#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;
}
#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;
}
/**
* FLL - Level 3
*
- * Project: UTF-8
+ * Project: UTF8
* API Version: 0.7
* Licenses: lgpl-2.1-or-later
*/
#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), \
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
#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;
}
#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;
}
#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;
}
#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;
}
/**
* FLL - Level 3
*
- * Project: UTF-8
+ * Project: UTF8
* API Version: 0.7
* Licenses: lgpl-2.1-or-later
*/
#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), \
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
#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;
}
#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;
}
#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;
}
#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;
}
/**
* FLL - Level 3
*
- * Project: UTF-8
+ * Project: UTF8
* API Version: 0.7
* Licenses: lgpl-2.1-or-later
*/
--- /dev/null
+#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
--- /dev/null
+/**
+ * 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
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_
#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), \
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
* - 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.
#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;
// 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;
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;
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);
}
}
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) {
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);
}
}
}
} // 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];
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;
}
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_
#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" {
*
* @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
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);
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;
#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);
#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);
#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);
#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);
}
#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
/**
* FLL - Level 3
*
- * Project: UTF-8
+ * Project: UTF8
* API Version: 0.7
* Licenses: lgpl-2.1-or-later
*/
#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
*
* @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);
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
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;
*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) {
*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) {
*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) {
*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) {
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;
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);
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);
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);
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 {
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 {
}
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);
}
}
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);
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;
}
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);
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);
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;
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) {
*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);
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);
}
}
}
*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);
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);
}
}
}
*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);
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);
}
}
}
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);
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);
}
}
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);
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);
}
}
}
}
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);
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 {
}
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);
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 {
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);
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);
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);
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;
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;
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;
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);
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);
}
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);
}
}
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;
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;
&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;
}
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
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);
}
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);
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;
}
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);
*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;
}
*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;
}
*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;
}
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;
*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;
*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;
*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;
*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;
*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;
}
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)) {
}
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);
} // 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);
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);
}
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);
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 {
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;
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);
}
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;
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);
}
}
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);
#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;
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;
#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.
* 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;
0, \
0, \
0, \
+ 0, \
f_string_dynamic_t_initialize, \
f_string_dynamic_t_initialize, \
f_string_dynamic_t_initialize, \
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;
*status = fll_execute_program(program, arguments, ¶meter, 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);
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 {
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);
}
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);
}
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;
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);
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);
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 {
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);
}
}
}
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;
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;
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;
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;
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;
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);
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);
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);
}
}
}
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);
}
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);
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);
}
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);
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;
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;
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) {
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);
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);
}
}
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;
status = fll_execute_program(program, arguments, ¶meter, 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);
}
}
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;
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;
}
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;
}
}
}
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)) {
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;
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;
}
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 {
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;
}
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
}
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;
}
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_
}
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
}
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;
}
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
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;
}
}
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
// 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;
} // 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;
}
// 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);
}
}
}
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.
}
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
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);
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);
}
}
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);
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);
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);
}
}
#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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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;
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);
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 (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);
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 (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);
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);
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;
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_
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_
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);
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_
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);
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);
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);
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_
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);
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_
* @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
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);
}
}
}
} // 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);
}
}
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;
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);
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);
}
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)) {
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;
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;
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);
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);
}
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) {
}
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);
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
#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), \
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
#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);
#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);
#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);
#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);
/**
* FLL - Level 3
*
- * Project: UTF-8
+ * Project: UTF8
* API Version: 0.7
* Licenses: lgpl-2.1-or-later
*/
#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), \
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
#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);
#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);
#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);
#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);
/**
* FLL - Level 3
*
- * Project: UTF-8
+ * Project: UTF8
* API Version: 0.7
* Licenses: lgpl-2.1-or-later
*/
#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), \
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
#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);
#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);
#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);
#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);
/**
* FLL - Level 3
*
- * Project: UTF-8
+ * Project: UTF8
* API Version: 0.7
* Licenses: lgpl-2.1-or-later
*/
#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), \
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
#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);
#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);
#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);
#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);
/**
* FLL - Level 3
*
- * Project: UTF-8
+ * Project: UTF8
* API Version: 0.7
* Licenses: lgpl-2.1-or-later
*/
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);
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);
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);
}
#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), \
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
#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);
#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);
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;
}
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;
}
/**
* FLL - Level 3
*
- * Project: UTF-8
+ * Project: UTF8
* API Version: 0.7
* Licenses: lgpl-2.1-or-later
*/
#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), \
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
#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);
#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);
#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;
}
#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;
}
/**
* FLL - Level 3
*
- * Project: UTF-8
+ * Project: UTF8
* API Version: 0.7
* Licenses: lgpl-2.1-or-later
*/
#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), \
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
#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);
#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);
#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;
}
#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;
}
/**
* FLL - Level 3
*
- * Project: UTF-8
+ * Project: UTF8
* API Version: 0.7
* Licenses: lgpl-2.1-or-later
*/
#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), \
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
#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);
#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);
#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;
}
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;
}
/**
* FLL - Level 3
*
- * Project: UTF-8
+ * Project: UTF8
* API Version: 0.7
* Licenses: lgpl-2.1-or-later
*/
#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), \
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
#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);
#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);
#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);
#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);
#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);
#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);
#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;
}
#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;
}
#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;
}
#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;
}
#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);
#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), \
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
#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);
#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);
#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);
#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);
#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);
#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);
/**
* FLL - Level 3
*
- * Project: UTF-8
+ * Project: UTF8
* API Version: 0.7
* Licenses: lgpl-2.1-or-later
*/
/**
* FLL - Level 3
*
- * Project: FSS Write
+ * Project: IKI Write
* API Version: 0.7
* Licenses: lgpl-2.1-or-later
*
#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), \
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
#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);
#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);
#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);
#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);
#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);
#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);
#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);
#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);
/**
* FLL - Level 3
*
- * Project: UTF-8
+ * Project: UTF8
* API Version: 0.7
* Licenses: lgpl-2.1-or-later
*/
/**
* FLL - Level 3
*
- * Project: FSS Write
+ * Project: Status Code
* API Version: 0.7
* Licenses: lgpl-2.1-or-later
*
#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), \
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
#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);
#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);
#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);
#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);
#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);
#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);
#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);
#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);
/**
* FLL - Level 3
*
- * Project: FSS Write
+ * Project: UTF8
* API Version: 0.7
* Licenses: lgpl-2.1-or-later
*
/**
* FLL - Level 3
*
- * Project: UTF-8
+ * Project: UTF8
* API Version: 0.7
* Licenses: lgpl-2.1-or-later
*
#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), \
/**
* FLL - Level 3
*
- * Project: UTF-8
+ * Project: UTF8
* API Version: 0.7
* Licenses: lgpl-2.1-or-later
*
#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);
#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);
#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);
#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);
#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);
#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);
#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);
#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);
#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;
}
#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;
}
#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;
}
#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;
}
/**
* FLL - Level 3
*
- * Project: UTF-8
+ * Project: UTF8
* API Version: 0.7
* Licenses: lgpl-2.1-or-later
*/
/**
* FLL - Level 3
*
- * Project: UTF-8
+ * Project: UTF8
* API Version: 0.7
* Licenses: lgpl-2.1-or-later
*/
/**
* FLL - Level 3
*
- * Project: UTF-8
+ * Project: UTF8
* API Version: 0.7
* Licenses: lgpl-2.1-or-later
*/
/**
* FLL - Level 3
*
- * Project: UTF-8
+ * Project: UTF8
* API Version: 0.7
* Licenses: lgpl-2.1-or-later
*/
/**
* FLL - Level 3
*
- * Project: UTF-8
+ * Project: UTF8
* API Version: 0.7
* Licenses: lgpl-2.1-or-later
*/
/**
* FLL - Level 3
*
- * Project: UTF-8
+ * Project: UTF8
* API Version: 0.7
* Licenses: lgpl-2.1-or-later
*