Provide copyright printing that can be slighty fine tuned using verbosity.
Provide a define (_di_detailed_copyright_) for reducing some of the string printed.
--- /dev/null
+# fss-0000
+
+_di_detailed_copyright_ Disable the detailed copyright message (saves a small amount of space).
--- /dev/null
+# fss-0000
+
+_di_detailed_copyright_ Disable the detailed copyright message (saves a small amount of space).
#endif
#ifndef _di_f_console_standard_s_
+ #ifndef _di_f_console_standard_short_copyright_s_
+ const f_string_static_t f_console_standard_short_copyright_s = macro_f_string_static_t_initialize(F_console_standard_short_copyright_s, 0, F_console_standard_short_copyright_s_length);
+ #endif // _di_f_console_standard_short_copyright_s_
+
#ifndef _di_f_console_standard_short_dark_s_
const f_string_static_t f_console_standard_short_dark_s = macro_f_string_static_t_initialize(F_console_standard_short_dark_s, 0, F_console_standard_short_dark_s_length);
#endif // _di_f_console_standard_short_dark_s_
const f_string_static_t f_console_standard_short_version_s = macro_f_string_static_t_initialize(F_console_standard_short_version_s, 0, F_console_standard_short_version_s_length);
#endif // _di_f_console_standard_short_version_s_
+ #ifndef _di_f_console_standard_long_copyright_s_
+ const f_string_static_t f_console_standard_long_copyright_s = macro_f_string_static_t_initialize(F_console_standard_long_copyright_s, 0, F_console_standard_long_copyright_s_length);
+ #endif // _di_f_console_standard_long_copyright_s_
+
#ifndef _di_f_console_standard_long_dark_s_
const f_string_static_t f_console_standard_long_dark_s = macro_f_string_static_t_initialize(F_console_standard_long_dark_s, 0, F_console_standard_long_dark_s_length);
#endif // _di_f_console_standard_long_dark_s_
* This is not strictly a requirement, but expect level 3 projects to work this way.
*
* The following options are subjective in interpretation of the verbosity but are expected to be follow the general interpretation:
+ * - copyright: Display copyright, if compiled in (consider combining with quiet, verbose, and normal).
* - debug: Enable debugging, which will likely increase output verbosity.
* - error: Similar to quiet, except that error messages are printed (this is less verbose than "normal").
* - normal: Use normal printing (don't use debug/quiet/verbose).
* - To avoid problems with the status code after a program is forcibly killed, the status_out environment variable should be cleared at program start.
*/
#ifndef _di_f_console_standard_s_
+ #define F_console_standard_short_copyright_s "C"
#define F_console_standard_short_dark_s "d"
#define F_console_standard_short_debug_s "D"
#define F_console_standard_short_error_s "E"
#define F_console_standard_short_verbose_s "V"
#define F_console_standard_short_version_s "v"
+ #define F_console_standard_short_copyright_s_length 1
#define F_console_standard_short_dark_s_length 1
#define F_console_standard_short_debug_s_length 1
#define F_console_standard_short_error_s_length 1
#define F_console_standard_short_verbose_s_length 1
#define F_console_standard_short_version_s_length 1
+ #define F_console_standard_long_copyright_s "copyright"
#define F_console_standard_long_dark_s "dark"
#define F_console_standard_long_debug_s "debug"
#define F_console_standard_long_error_s "error"
#define F_console_standard_long_verbose_s "verbose"
#define F_console_standard_long_version_s "version"
+ #define F_console_standard_long_copyright_s_length 9
#define F_console_standard_long_dark_s_length 4
#define F_console_standard_long_debug_s_length 5
#define F_console_standard_long_error_s_length 5
#define F_console_standard_long_verbose_s_length 7
#define F_console_standard_long_version_s_length 7
+ #ifndef _di_f_console_standard_short_copyright_s_
+ extern const f_string_static_t f_console_standard_short_copyright_s;
+ #endif // _di_f_console_standard_short_copyright_s_
+
#ifndef _di_f_console_standard_short_dark_s_
extern const f_string_static_t f_console_standard_short_dark_s;
#endif // _di_f_console_standard_short_dark_s_
extern const f_string_static_t f_console_standard_short_version_s;
#endif // _di_f_console_standard_short_version_s_
+ #ifndef _di_f_console_standard_long_copyright_s_
+ extern const f_string_static_t f_console_standard_long_copyright_s;
+ #endif // _di_f_console_standard_long_copyright_s_
+
#ifndef _di_f_console_standard_long_dark_s_
extern const f_string_static_t f_console_standard_long_dark_s;
#endif // _di_f_console_standard_long_dark_s_
extern "C" {
#endif
+#ifndef _di_fll_program_print_copyright_
+ f_status_t fll_program_print_copyright(const fl_print_t print, const uint8_t first_last) {
+
+ f_file_stream_lock(print.to);
+
+ if (first_last & 0x1) {
+ f_print_dynamic_raw(f_string_eol_s, print.to);
+ }
+
+ fl_print_format("Copyright © 2007-2023 Kevin Day.%r", print.to, f_string_eol_s);
+
+ #ifndef _di_detailed_copyright_
+ if (print.verbosity > f_console_verbosity_quiet_e) {
+ if (print.verbosity > f_console_verbosity_normal_e) {
+ fl_print_format("%rThis program comes with ABSOLUTELY NO WARRANTY.%r", print.to, f_string_eol_s, f_string_eol_s);
+ fl_print_format("This is free software, and you are welcome to modify or redistribute in accordance to the license.%r", print.to, f_string_eol_s);
+ }
+
+ fl_print_format("%rSource code license lgpl-2.1-or-later.%r", print.to, f_string_eol_s, f_string_eol_s);
+ fl_print_format("Standard and specification license open-standard-license-1.0.%r", print.to, f_string_eol_s);
+ fl_print_format("Documentation license cc-by-sa-4.0.%r", print.to, f_string_eol_s);
+ }
+ #endif // _di_detailed_copyright_
+
+ if (first_last & 0x2) {
+ f_print_dynamic_raw(f_string_eol_s, print.to);
+ }
+
+ f_file_stream_unlock(print.to);
+
+ return F_none;
+ }
+#endif // _di_fll_program_print_copyright_
+
#ifndef _di_fll_program_print_error_missing_file_
f_status_t fll_program_print_error_missing_file(const fl_print_t print) {
f_status_t fll_program_print_help_option_standard(const fl_print_t print) {
private_fll_program_print_help_option(print, f_console_standard_short_help_s, f_console_standard_long_help_s, f_console_symbol_short_normal_s, f_console_symbol_long_normal_s, " Print this help message.");
+ private_fll_program_print_help_option(print, f_console_standard_short_copyright_s, f_console_standard_long_copyright_s, f_console_symbol_short_inverse_s, f_console_symbol_long_inverse_s, " Print the copyright.");
private_fll_program_print_help_option(print, f_console_standard_short_dark_s, f_console_standard_long_dark_s, f_console_symbol_short_inverse_s, f_console_symbol_long_inverse_s, " Output using colors that show up better on dark backgrounds.");
private_fll_program_print_help_option(print, f_console_standard_short_light_s, f_console_standard_long_light_s, f_console_symbol_short_inverse_s, f_console_symbol_long_inverse_s, " Output using colors that show up better on light backgrounds.");
private_fll_program_print_help_option(print, f_console_standard_short_no_color_s, f_console_standard_long_no_color_s, f_console_symbol_short_inverse_s, f_console_symbol_long_inverse_s, " Do not print using color.");
#endif
/**
+ * Print Featureless Linux Library copyright.
+ *
+ * @param print
+ * The output structure to print to.
+ * The print.verbosity is used to determine how much detail is printed (except for when _di_detailed_copyright_ is set).
+ * @param uint8_t
+ * Bitwise variable representing whether or not to print the first and last new line.
+ * Set bit 0x1 to printing first line.
+ * Set bit 0x2 to printing last line.
+ *
+ * @return
+ * F_none on success.
+ * F_output_not on success, but no printing is performed.
+ */
+#ifndef _di_fll_program_print_copyright_
+ extern f_status_t fll_program_print_copyright(const fl_print_t print, const uint8_t first_last);
+#endif // _di_fll_program_print_copyright_
+
+/**
* Print an error message when a file is not provided.
*
* This is only printed when verbosity is not set to quiet.
# fss-0000
+_di_detailed_copyright_ Disable the detailed copyright message (saves a small amount of space).
}
}
- status = F_none;
-
if (main->parameters.array[byte_dump_parameter_help_e].result & f_console_result_found_e) {
byte_dump_print_help(setting, main->message);
return F_none;
}
+ if (main->parameters.array[byte_dump_parameter_copyright_e].result & f_console_result_found_e) {
+ fll_program_print_copyright(main->message, (setting->line_first.used ? 0x1 : 0x0) | (setting->line_last.used ? 0x2 : 0x0));
+
+ return F_none;
+ }
+
+ status = F_none;
+
if (main->parameters.remaining.used || (main->pipe & fll_program_data_pipe_input_e)) {
if (main->parameters.array[byte_dump_parameter_width_e].result & f_console_result_found_e) {
f_file_stream_lock(main->error.to);
enum {
byte_dump_parameter_help_e,
+ byte_dump_parameter_copyright_e,
byte_dump_parameter_light_e,
byte_dump_parameter_dark_e,
byte_dump_parameter_no_color_e,
#define byte_dump_console_parameter_t_initialize \
{ \
- macro_f_console_parameter_t_initialize_3(f_console_standard_short_help_s, f_console_standard_long_help_s, 0, f_console_flag_normal_e, 0), \
+ macro_f_console_parameter_t_initialize_3(f_console_standard_short_help_s, f_console_standard_long_help_s, 0, f_console_flag_normal_e), \
+ macro_f_console_parameter_t_initialize_3(f_console_standard_short_copyright_s, f_console_standard_long_copyright_s, 0, f_console_flag_normal_e), \
macro_f_console_parameter_t_initialize_3(f_console_standard_short_light_s, f_console_standard_long_light_s, 0, f_console_flag_inverse_e), \
macro_f_console_parameter_t_initialize_3(f_console_standard_short_dark_s, f_console_standard_long_dark_s, 0, f_console_flag_inverse_e), \
macro_f_console_parameter_t_initialize_3(f_console_standard_short_no_color_s, f_console_standard_long_no_color_s, 0, f_console_flag_inverse_e), \
macro_f_console_parameter_t_initialize_5(byte_dump_long_classic_s, 0, f_console_flag_normal_e), \
}
- #define byte_dump_total_parameters_d 28
+ #define byte_dump_total_parameters_d 29
#endif // _di_byte_dump_parameter_d_
/**
return;
}
+ if (main->parameters.array[control_parameter_copyright_e].result & f_console_result_found_e) {
+ setting->flag |= control_main_flag_copyright_e;
+
+ return;
+ }
+
f_string_static_t * const args = main->parameters.arguments.array;
if (main->parameters.array[control_parameter_strip_invalid_e].result & f_console_result_found_e) {
enum {
control_parameter_help_e = 0,
+ control_parameter_copyright_e,
control_parameter_light_e,
control_parameter_dark_e,
control_parameter_no_color_e,
#define control_console_parameter_t_initialize \
{ \
- macro_f_console_parameter_t_initialize_3(f_console_standard_short_help_s, f_console_standard_long_help_s, 0, f_console_flag_normal_e, 0), \
+ macro_f_console_parameter_t_initialize_3(f_console_standard_short_help_s, f_console_standard_long_help_s, 0, f_console_flag_normal_e), \
+ macro_f_console_parameter_t_initialize_3(f_console_standard_short_copyright_s, f_console_standard_long_copyright_s, 0, f_console_flag_inverse_e), \
macro_f_console_parameter_t_initialize_3(f_console_standard_short_light_s, f_console_standard_long_light_s, 0, f_console_flag_inverse_e), \
macro_f_console_parameter_t_initialize_3(f_console_standard_short_dark_s, f_console_standard_long_dark_s, 0, f_console_flag_inverse_e), \
macro_f_console_parameter_t_initialize_3(f_console_standard_short_no_color_s, f_console_standard_long_no_color_s, 0, f_console_flag_inverse_e), \
macro_f_console_parameter_t_initialize_3(control_short_socket_s, control_long_socket_s, 1, f_console_flag_normal_e), \
}
- #define control_total_parameters_d 16
+ #define control_total_parameters_d 17
#endif // _di_control_parameter_d_
/**
*
* control_main_flag_*_e:
* - none: No flags set.
+ * - copyright: Print copyright.
* - file_from: Using a specified source file.
* - file_to: Using a specified destination file.
* - help: Print help.
#ifndef _di_control_main_flag_e_
enum {
control_main_flag_none_e = 0x0,
- control_main_flag_file_from_e = 0x1,
- control_main_flag_file_to_e = 0x2,
- control_main_flag_header_e = 0x4,
- control_main_flag_help_e = 0x8,
- control_main_flag_separate_e = 0x10,
- control_main_flag_strip_invalid_e = 0x20,
- control_main_flag_verify_e = 0x40,
- control_main_flag_version_e = 0x80,
+ control_main_flag_copyright_e = 0x1,
+ control_main_flag_file_from_e = 0x2,
+ control_main_flag_file_to_e = 0x4,
+ control_main_flag_header_e = 0x8,
+ control_main_flag_help_e = 0x10,
+ control_main_flag_separate_e = 0x20,
+ control_main_flag_strip_invalid_e = 0x40,
+ control_main_flag_verify_e = 0x80,
+ control_main_flag_version_e = 0x100,
}; // enum
#endif // _di_control_main_flag_e_
}
}
- status = F_none;
-
if (main->parameters.array[control_parameter_help_e].result & f_console_result_found_e) {
control_print_help(main);
return F_none;
}
+ if (main->parameters.array[control_parameter_copyright_e].result & f_console_result_found_e) {
+ fll_program_print_copyright(main->message, (setting->line_first.used ? 0x1 : 0x0) | (setting->line_last.used ? 0x2 : 0x0));
+
+ return F_none;
+ }
+
+ status = F_none;
+
{
uint8_t ids[] = {
control_parameter_name_e,
return;
}
+ if (main->parameters.array[controller_parameter_copyright_e].result & f_console_result_found_e) {
+ setting->flag |= controller_main_flag_copyright_e;
+
+ return;
+ }
+
f_string_static_t * const args = main->parameters.arguments.array;
if (main->parameters.array[controller_parameter_strip_invalid_e].result & f_console_result_found_e) {
enum {
controller_parameter_help_e,
+ controller_parameter_copyright_e,
controller_parameter_light_e,
controller_parameter_dark_e,
controller_parameter_no_color_e,
#define controller_console_parameter_t_initialize \
{ \
- macro_f_console_parameter_t_initialize_3(f_console_standard_short_help_s, f_console_standard_long_help_s, 0, f_console_flag_normal_e, 0), \
+ macro_f_console_parameter_t_initialize_3(f_console_standard_short_help_s, f_console_standard_long_help_s, 0, f_console_flag_normal_e), \
+ macro_f_console_parameter_t_initialize_3(f_console_standard_short_copyright_s, f_console_standard_long_copyright_s, 0, f_console_flag_inverse_e), \
macro_f_console_parameter_t_initialize_3(f_console_standard_short_light_s, f_console_standard_long_light_s, 0, f_console_flag_inverse_e), \
macro_f_console_parameter_t_initialize_3(f_console_standard_short_dark_s, f_console_standard_long_dark_s, 0, f_console_flag_inverse_e), \
macro_f_console_parameter_t_initialize_3(f_console_standard_short_no_color_s, f_console_standard_long_no_color_s, 0, f_console_flag_inverse_e), \
macro_f_console_parameter_t_initialize_3(controller_short_validate_s, controller_long_validate_s, 0, f_console_flag_normal_e), \
}
- #define controller_total_parameters_d 22
+ #define controller_total_parameters_d 23
#endif // _di_controller_parameter_d_
/**
*
* controller_main_flag_*_e:
* - none: No flags set.
+ * - copyright: Print copyright.
* - file_from: Using a specified source file.
* - file_to: Using a specified destination file.
* - help: Print help.
#ifndef _di_controller_main_flag_e_
enum {
controller_main_flag_none_e = 0x0,
- controller_main_flag_file_from_e = 0x1,
- controller_main_flag_file_to_e = 0x2,
- controller_main_flag_header_e = 0x4,
- controller_main_flag_help_e = 0x8,
- controller_main_flag_separate_e = 0x10,
- controller_main_flag_strip_invalid_e = 0x20,
- controller_main_flag_verify_e = 0x40,
- controller_main_flag_version_e = 0x80,
+ controller_main_flag_copyright_e = 0x1,
+ controller_main_flag_file_from_e = 0x2,
+ controller_main_flag_file_to_e = 0x4,
+ controller_main_flag_header_e = 0x8,
+ controller_main_flag_help_e = 0x10,
+ controller_main_flag_separate_e = 0x20,
+ controller_main_flag_strip_invalid_e = 0x40,
+ controller_main_flag_verify_e = 0x80,
+ controller_main_flag_version_e = 0x100,
}; // enum
#endif // _di_controller_main_flag_e_
}
}
- f_string_static_t * const argv = main->parameters.arguments.array;
-
- status = F_none;
-
if (main->parameters.array[controller_parameter_help_e].result & f_console_result_found_e) {
controller_print_help(main);
return F_none;
}
+ if (main->parameters.array[controller_parameter_copyright_e].result & f_console_result_found_e) {
+ fll_program_print_copyright(main->message, (setting->line_first.used ? 0x1 : 0x0) | (setting->line_last.used ? 0x2 : 0x0));
+
+ return F_none;
+ }
+
+ status = F_none;
+
+ f_string_static_t * const argv = main->parameters.arguments.array;
+
controller_setting_t setting = controller_setting_t_initialize;
setting.control.server.address = (struct sockaddr *) &setting.control.address;
# fss-0000
_di_libcap_ Disable libcap support, allow for compiling and linking without libcap (-lcap).
+
_libcap_legacy_only_ Disable functionality provided by later versions of libcap (2.43 and later).
_controller_as_init_ Build the program to run as if it were "init" by default, including displaying the program name as "Init Program" or "Init". This changes the main.c file only, leaving the library shareable between both "controller" and "init".
_override_controller_default_engine_ Provide a custom scripting engine name string to execute (such as php).
return;
}
+ if (main->parameters.array[fake_parameter_copyright_e].result & f_console_result_found_e) {
+ setting->flag |= fake_main_flag_copyright_e;
+
+ return;
+ }
+
f_array_length_t j = 0;
f_array_length_t index = 0;
enum {
fake_parameter_help_e,
+ fake_parameter_copyright_e,
fake_parameter_light_e,
fake_parameter_dark_e,
fake_parameter_no_color_e,
#define fake_console_parameter_t_initialize \
{ \
macro_f_console_parameter_t_initialize_3(f_console_standard_short_help_s, f_console_standard_long_help_s, 0, f_console_flag_normal_e), \
+ macro_f_console_parameter_t_initialize_3(f_console_standard_short_copyright_s, f_console_standard_long_copyright_s, 0, f_console_flag_inverse_e), \
macro_f_console_parameter_t_initialize_3(f_console_standard_short_light_s, f_console_standard_long_light_s, 0, f_console_flag_inverse_e), \
macro_f_console_parameter_t_initialize_3(f_console_standard_short_dark_s, f_console_standard_long_dark_s, 0, f_console_flag_inverse_e), \
macro_f_console_parameter_t_initialize_3(f_console_standard_short_no_color_s, f_console_standard_long_no_color_s, 0, f_console_flag_inverse_e), \
macro_f_console_parameter_t_initialize_6(fake_other_operation_skeleton_s, 0, f_console_flag_simple_e), \
}
- #define fake_total_parameters_d 31
+ #define fake_total_parameters_d 32
#endif // _di_fake_parameter_d_
/**
*
* fake_main_flag_*_e:
* - none: No flags set.
+ * - copyright: Print copyright.
* - enable_documents: Enable documents, as-in --enable-doc (not specifying means --disable-doc).
* - enable_shared: Enable shared, as-in --enable-shared (not specifying means --disable-shared).
* - enable_static: Enable static, as-in --enable-static (not specifying means --disable-static).
#ifndef _di_fake_main_flag_e_
enum {
fake_main_flag_none_e = 0x0,
- fake_main_flag_enable_documents_e = 0x1,
- fake_main_flag_enable_shared_e = 0x2,
- fake_main_flag_enable_static_e = 0x4,
- fake_main_flag_file_from_e = 0x8,
- fake_main_flag_file_to_e = 0x10,
- fake_main_flag_header_e = 0x20,
- fake_main_flag_help_e = 0x40,
- fake_data_flag_operation_e = 0x80,
- fake_data_flag_operation_build_e = 0x100,
- fake_data_flag_operation_clean_e = 0x200,
- fake_data_flag_operation_make_e = 0x400,
- fake_data_flag_operation_skeleton_e = 0x800,
- fake_main_flag_separate_e = 0x1000,
- fake_main_flag_strip_invalid_e = 0x2000,
- fake_main_flag_verify_e = 0x4000,
- fake_main_flag_version_e = 0x8000,
+ fake_main_flag_copyright_e = 0x1,
+ fake_main_flag_enable_documents_e = 0x2,
+ fake_main_flag_enable_shared_e = 0x4,
+ fake_main_flag_enable_static_e = 0x8,
+ fake_main_flag_file_from_e = 0x10,
+ fake_main_flag_file_to_e = 0x20,
+ fake_main_flag_header_e = 0x40,
+ fake_main_flag_help_e = 0x80,
+ fake_data_flag_operation_e = 0x100,
+ fake_data_flag_operation_build_e = 0x200,
+ fake_data_flag_operation_clean_e = 0x400,
+ fake_data_flag_operation_make_e = 0x800,
+ fake_data_flag_operation_skeleton_e = 0x1000,
+ fake_main_flag_separate_e = 0x2000,
+ fake_main_flag_strip_invalid_e = 0x4000,
+ fake_main_flag_verify_e = 0x8000,
+ fake_main_flag_version_e = 0x10000,
}; // enum
#endif // _di_fake_main_flag_e_
*/
#ifndef _di_fake_setting_t_
typedef struct {
- uint16_t flag;
+ uint32_t flag;
f_state_t state;
f_status_t status;
return;
}
+ if (setting->flag & fake_main_flag_copyright_e) {
+ fll_program_print_copyright(main->message, (setting->line_first.used ? 0x1 : 0x0) | (setting->line_last.used ? 0x2 : 0x0));
+
+ return;
+ }
+
if ((setting->flag & fake_data_flag_operation_build_e) && (setting->flag & fake_data_flag_operation_make_e)) {
setting->status = F_status_set_error(F_parameter);
# fss-0000
_di_libcap_ Disable libcap support, allow for compiling and linking without libcap (-lcap).
+
_libcap_legacy_only_ Disable functionality provided by later versions of libcap (2.43 and later).
_pthread_attr_unsupported_ Disable non-portable functionality associated with pthread_attr.
_pthread_sigqueue_unsupported_ Disable GNU specific sigqueue().
}
}
- firewall_data_t data = firewall_data_t_initialize;
- data.main = main;
- data.argv = main->parameters.arguments.array;
-
- status = F_none;
-
if (main->parameters.array[firewall_parameter_help_e].result & f_console_result_found_e) {
firewall_print_help(setting, main->message);
return F_none;
}
+ if (main->parameters.array[firewall_parameter_copyright_e].result & f_console_result_found_e) {
+ fll_program_print_copyright(main->message, (setting->line_first.used ? 0x1 : 0x0) | (setting->line_last.used ? 0x2 : 0x0));
+
+ return F_none;
+ }
+
+ status = F_none;
+
+ firewall_data_t data = firewall_data_t_initialize;
+ data.main = main;
+ data.argv = main->parameters.arguments.array;
+
// now determine which command was placed first
bool found_command = F_false;
unsigned int command = 0;
# fss-0000
_di_libcap_ Disable libcap support, allow for compiling and linking without libcap (-lcap).
+
_libcap_legacy_only_ Disable functionality provided by later versions of libcap (2.43 and later).
_pthread_attr_unsupported_ Disable non-portable functionality associated with pthread_attr.
_pthread_sigqueue_unsupported_ Disable GNU specific sigqueue().
return;
}
+ if (main->parameters.array[fss_basic_list_read_parameter_copyright_e].result & f_console_result_found_e) {
+ setting->flag |= fss_basic_list_read_main_flag_copyright_e;
+
+ return;
+ }
+
f_string_static_t * const args = main->parameters.arguments.array;
if (main->parameters.array[fss_basic_list_read_parameter_strip_invalid_e].result & f_console_result_found_e) {
enum {
fss_basic_list_read_parameter_help_e,
+ fss_basic_list_read_parameter_copyright_e,
fss_basic_list_read_parameter_light_e,
fss_basic_list_read_parameter_dark_e,
fss_basic_list_read_parameter_no_color_e,
#define fss_basic_list_read_console_parameter_t_initialize \
{ \
- macro_f_console_parameter_t_initialize_3(f_console_standard_short_help_s, f_console_standard_long_help_s, 0, f_console_flag_normal_e, 0), \
+ macro_f_console_parameter_t_initialize_3(f_console_standard_short_help_s, f_console_standard_long_help_s, 0, f_console_flag_normal_e), \
+ macro_f_console_parameter_t_initialize_3(f_console_standard_short_copyright_s, f_console_standard_long_copyright_s, 0, f_console_flag_inverse_e), \
macro_f_console_parameter_t_initialize_3(f_console_standard_short_light_s, f_console_standard_long_light_s, 0, f_console_flag_inverse_e), \
macro_f_console_parameter_t_initialize_3(f_console_standard_short_dark_s, f_console_standard_long_dark_s, 0, f_console_flag_inverse_e), \
macro_f_console_parameter_t_initialize_3(f_console_standard_short_no_color_s, f_console_standard_long_no_color_s, 0, f_console_flag_inverse_e), \
macro_f_console_parameter_t_initialize_3(fss_basic_list_read_short_trim_s, fss_basic_list_read_long_trim_s, 0, 0, f_console_flag_normal_e), \
}
- #define fss_basic_list_read_total_parameters_d 26
+ #define fss_basic_list_read_total_parameters_d 27
#endif // _di_fss_basic_list_read_parameter_d_
/**
*
* fss_basic_list_read_main_flag_*_e:
* - none: No flags set.
+ * - copyright: Print copyright.
* - file_from: Using a specified source file.
* - file_to: Using a specified destination file.
* - help: Print help.
#ifndef _di_fss_basic_list_read_main_flag_e_
enum {
fss_basic_list_read_main_flag_none_e = 0x0,
- fss_basic_list_read_main_flag_file_from_e = 0x1,
- fss_basic_list_read_main_flag_file_to_e = 0x2,
- fss_basic_list_read_main_flag_header_e = 0x4,
- fss_basic_list_read_main_flag_help_e = 0x8,
- fss_basic_list_read_main_flag_separate_e = 0x10,
- fss_basic_list_read_main_flag_strip_invalid_e = 0x20,
- fss_basic_list_read_main_flag_verify_e = 0x40,
- fss_basic_list_read_main_flag_version_e = 0x80,
+ fss_basic_list_read_main_flag_copyright_e = 0x1,
+ fss_basic_list_read_main_flag_file_from_e = 0x2,
+ fss_basic_list_read_main_flag_file_to_e = 0x4,
+ fss_basic_list_read_main_flag_header_e = 0x8,
+ fss_basic_list_read_main_flag_help_e = 0x10,
+ fss_basic_list_read_main_flag_separate_e = 0x20,
+ fss_basic_list_read_main_flag_strip_invalid_e = 0x40,
+ fss_basic_list_read_main_flag_verify_e = 0x80,
+ fss_basic_list_read_main_flag_version_e = 0x100,
}; // enum
#endif // _di_fss_basic_list_read_main_flag_e_
}
}
- status = F_none;
-
if (main->parameters.array[fss_basic_list_read_parameter_help_e].result & f_console_result_found_e) {
fss_basic_list_read_print_help(setting, main->message);
- return status;
+ return F_none;
}
if (main->parameters.array[fss_basic_list_read_parameter_version_e].result & f_console_result_found_e) {
fll_program_print_version(main->message, fss_basic_list_read_program_version_s);
- return status;
+ return F_none;
}
+ if (main->parameters.array[fss_basic_list_read_parameter_copyright_e].result & f_console_result_found_e) {
+ fll_program_print_copyright(main->message, (setting->line_first.used ? 0x1 : 0x0) | (setting->line_last.used ? 0x2 : 0x0));
+
+ return F_none;
+ }
+
+ status = F_none;
+
// Provide a range designating where within the buffer a particular file exists, using a statically allocated array.
fss_basic_list_read_file_t files_array[main->parameters.remaining.used + 1];
fss_basic_list_read_data_t data = fss_basic_list_read_data_t_initialize;
return;
}
+ if (main->parameters.array[fss_basic_read_parameter_copyright_e].result & f_console_result_found_e) {
+ setting->flag |= fss_basic_read_main_flag_copyright_e;
+
+ return;
+ }
+
f_string_static_t * const args = main->parameters.arguments.array;
if (main->parameters.array[fss_basic_read_parameter_strip_invalid_e].result & f_console_result_found_e) {
enum {
fss_basic_read_parameter_help_e,
+ fss_basic_read_parameter_copyright_e,
fss_basic_read_parameter_light_e,
fss_basic_read_parameter_dark_e,
fss_basic_read_parameter_no_color_e,
#define fss_basic_read_console_parameter_t_initialize \
{ \
- macro_f_console_parameter_t_initialize_3(f_console_standard_short_help_s, f_console_standard_long_help_s, 0, f_console_flag_normal_e, 0), \
+ macro_f_console_parameter_t_initialize_3(f_console_standard_short_help_s, f_console_standard_long_help_s, 0, f_console_flag_normal_e), \
+ macro_f_console_parameter_t_initialize_3(f_console_standard_short_copyright_s, f_console_standard_long_copyright_s, 0, f_console_flag_inverse_e), \
macro_f_console_parameter_t_initialize_3(f_console_standard_short_light_s, f_console_standard_long_light_s, 0, f_console_flag_inverse_e), \
macro_f_console_parameter_t_initialize_3(f_console_standard_short_dark_s, f_console_standard_long_dark_s, 0, f_console_flag_inverse_e), \
macro_f_console_parameter_t_initialize_3(f_console_standard_short_no_color_s, f_console_standard_long_no_color_s, 0, f_console_flag_inverse_e), \
macro_f_console_parameter_t_initialize_3(fss_basic_read_short_trim_s, fss_basic_read_long_trim_s, 0, 0, f_console_flag_normal_e), \
}
- #define fss_basic_read_total_parameters_d 26
+ #define fss_basic_read_total_parameters_d 27
#endif // _di_fss_basic_read_parameter_d_
/**
*
* fss_basic_read_main_flag_*_e:
* - none: No flags set.
+ * - copyright: Print copyright.
* - file_from: Using a specified source file.
* - file_to: Using a specified destination file.
* - help: Print help.
#ifndef _di_fss_basic_read_main_flag_e_
enum {
fss_basic_read_main_flag_none_e = 0x0,
- fss_basic_read_main_flag_file_from_e = 0x1,
- fss_basic_read_main_flag_file_to_e = 0x2,
- fss_basic_read_main_flag_header_e = 0x4,
- fss_basic_read_main_flag_help_e = 0x8,
- fss_basic_read_main_flag_separate_e = 0x10,
- fss_basic_read_main_flag_strip_invalid_e = 0x20,
- fss_basic_read_main_flag_verify_e = 0x40,
- fss_basic_read_main_flag_version_e = 0x80,
+ fss_basic_read_main_flag_copyright_e = 0x1,
+ fss_basic_read_main_flag_file_from_e = 0x2,
+ fss_basic_read_main_flag_file_to_e = 0x4,
+ fss_basic_read_main_flag_header_e = 0x8,
+ fss_basic_read_main_flag_help_e = 0x10,
+ fss_basic_read_main_flag_separate_e = 0x20,
+ fss_basic_read_main_flag_strip_invalid_e = 0x40,
+ fss_basic_read_main_flag_verify_e = 0x80,
+ fss_basic_read_main_flag_version_e = 0x100,
}; // enum
#endif // _di_fss_basic_read_main_flag_e_
}
}
- status = F_none;
-
if (main->parameters.array[fss_basic_read_parameter_help_e].result & f_console_result_found_e) {
fss_basic_read_print_help(setting, main->message);
- return status;
+ return F_none;
}
if (main->parameters.array[fss_basic_read_parameter_version_e].result & f_console_result_found_e) {
fll_program_print_version(main->message, fss_basic_read_program_version_s);
- return status;
+ return F_none;
}
+ if (main->parameters.array[fss_basic_read_parameter_copyright_e].result & f_console_result_found_e) {
+ fll_program_print_copyright(main->message, (setting->line_first.used ? 0x1 : 0x0) | (setting->line_last.used ? 0x2 : 0x0));
+
+ return F_none;
+ }
+
+ status = F_none;
+
// Provide a range designating where within the buffer a particular file exists, using a statically allocated array.
fss_basic_read_file_t files_array[main->parameters.remaining.used + 1];
fss_basic_read_data_t data = fss_basic_read_data_t_initialize;
return;
}
+ if (main->parameters.array[fss_embedded_list_read_parameter_copyright_e].result & f_console_result_found_e) {
+ setting->flag |= fss_embedded_list_read_main_flag_copyright_e;
+
+ return;
+ }
+
f_string_static_t * const args = main->parameters.arguments.array;
if (main->parameters.array[fss_embedded_list_read_parameter_strip_invalid_e].result & f_console_result_found_e) {
enum {
fss_embedded_list_read_parameter_help_e,
+ fss_embedded_list_read_parameter_copyright_e,
fss_embedded_list_read_parameter_light_e,
fss_embedded_list_read_parameter_dark_e,
fss_embedded_list_read_parameter_no_color_e,
#define fss_embedded_list_read_console_parameter_t_initialize \
{ \
- macro_f_console_parameter_t_initialize_3(f_console_standard_short_help_s, f_console_standard_long_help_s, 0, f_console_flag_normal_e, 0), \
+ macro_f_console_parameter_t_initialize_3(f_console_standard_short_help_s, f_console_standard_long_help_s, 0, f_console_flag_normal_e), \
+ macro_f_console_parameter_t_initialize_3(f_console_standard_short_copyright_s, f_console_standard_long_copyright_s, 0, f_console_flag_inverse_e), \
macro_f_console_parameter_t_initialize_3(f_console_standard_short_light_s, f_console_standard_long_light_s, 0, f_console_flag_inverse_e), \
macro_f_console_parameter_t_initialize_3(f_console_standard_short_dark_s, f_console_standard_long_dark_s, 0, f_console_flag_inverse_e), \
macro_f_console_parameter_t_initialize_3(f_console_standard_short_no_color_s, f_console_standard_long_no_color_s, 0, f_console_flag_inverse_e), \
macro_f_console_parameter_t_initialize_3(fss_embedded_list_read_short_trim_s.string, fss_embedded_list_read_long_trim_s.string, 0, 0, f_console_flag_normal_e), \
}
- #define fss_embedded_list_read_total_parameters_d 26
+ #define fss_embedded_list_read_total_parameters_d 27
#endif // _di_fss_embedded_list_read_parameter_d_
/**
*
* fss_embedded_list_read_main_flag_*_e:
* - none: No flags set.
+ * - copyright: Print copyright.
* - file_from: Using a specified source file.
* - file_to: Using a specified destination file.
* - help: Print help.
#ifndef _di_fss_embedded_list_read_main_flag_e_
enum {
fss_embedded_list_read_main_flag_none_e = 0x0,
- fss_embedded_list_read_main_flag_file_from_e = 0x1,
- fss_embedded_list_read_main_flag_file_to_e = 0x2,
- fss_embedded_list_read_main_flag_header_e = 0x4,
- fss_embedded_list_read_main_flag_help_e = 0x8,
- fss_embedded_list_read_main_flag_separate_e = 0x10,
- fss_embedded_list_read_main_flag_strip_invalid_e = 0x20,
- fss_embedded_list_read_main_flag_verify_e = 0x40,
- fss_embedded_list_read_main_flag_version_e = 0x80,
+ fss_embedded_list_read_main_flag_copyright_e = 0x1,
+ fss_embedded_list_read_main_flag_file_from_e = 0x2,
+ fss_embedded_list_read_main_flag_file_to_e = 0x4,
+ fss_embedded_list_read_main_flag_header_e = 0x8,
+ fss_embedded_list_read_main_flag_help_e = 0x10,
+ fss_embedded_list_read_main_flag_separate_e = 0x20,
+ fss_embedded_list_read_main_flag_strip_invalid_e = 0x40,
+ fss_embedded_list_read_main_flag_verify_e = 0x80,
+ fss_embedded_list_read_main_flag_version_e = 0x100,
}; // enum
#endif // _di_fss_embedded_list_read_main_flag_e_
}
}
- fss_embedded_list_read_data_t data = fss_embedded_list_read_data_t_initialize;
- data.main = main;
- data.argv = main->parameters.arguments.array;
-
- status = F_none;
-
if (main->parameters.array[fss_embedded_list_read_parameter_help_e].result & f_console_result_found_e) {
fss_embedded_list_read_print_help(setting, main->message);
- fss_embedded_list_read_data_delete(&data);
-
return F_none;
}
if (main->parameters.array[fss_embedded_list_read_parameter_version_e].result & f_console_result_found_e) {
fll_program_print_version(main->message, fss_embedded_list_read_program_version_s);
- fss_embedded_list_read_data_delete(&data);
+ return F_none;
+ }
+
+ if (main->parameters.array[fss_embedded_list_read_parameter_copyright_e].result & f_console_result_found_e) {
+ fll_program_print_copyright(main->message, (setting->line_first.used ? 0x1 : 0x0) | (setting->line_last.used ? 0x2 : 0x0));
return F_none;
}
+ status = F_none;
+
+ fss_embedded_list_read_data_t data = fss_embedded_list_read_data_t_initialize;
+ data.main = main;
+ data.argv = main->parameters.arguments.array;
+
if (F_status_is_error_not(status) && (main->parameters.array[fss_embedded_list_read_parameter_total_e].result & f_console_result_found_e)) {
if (main->parameters.array[fss_embedded_list_read_parameter_columns_e].result & f_console_result_found_e) {
if (main->error.verbosity > f_console_verbosity_quiet_e) {
return;
}
+ if (main->parameters.array[fss_extended_list_read_parameter_copyright_e].result & f_console_result_found_e) {
+ setting->flag |= fss_extended_list_read_main_flag_copyright_e;
+
+ return;
+ }
+
f_string_static_t * const args = main->parameters.arguments.array;
if (main->parameters.array[fss_extended_list_read_parameter_strip_invalid_e].result & f_console_result_found_e) {
enum {
fss_extended_list_read_parameter_help_e,
+ fss_extended_list_read_parameter_copyright_e
fss_extended_list_read_parameter_light_e,
fss_extended_list_read_parameter_dark_e,
fss_extended_list_read_parameter_no_color_e,
#define fss_extended_list_read_console_parameter_t_initialize \
{ \
- macro_f_console_parameter_t_initialize_3(f_console_standard_short_help_s, f_console_standard_long_help_s, 0, f_console_flag_normal_e, 0), \
+ macro_f_console_parameter_t_initialize_3(f_console_standard_short_help_s, f_console_standard_long_help_s, 0, f_console_flag_normal_e), \
+ macro_f_console_parameter_t_initialize_3(f_console_standard_short_copyright_s, f_console_standard_long_copyright_s, 0, f_console_flag_inverse_e), \
macro_f_console_parameter_t_initialize_3(f_console_standard_short_light_s, f_console_standard_long_light_s, 0, f_console_flag_inverse_e), \
macro_f_console_parameter_t_initialize_3(f_console_standard_short_dark_s, f_console_standard_long_dark_s, 0, f_console_flag_inverse_e), \
macro_f_console_parameter_t_initialize_3(f_console_standard_short_no_color_s, f_console_standard_long_no_color_s, 0, f_console_flag_inverse_e), \
macro_f_console_parameter_t_initialize_3(fss_extended_list_read_short_trim_s, fss_extended_list_read_long_trim_s, 0, 0, f_console_flag_normal_e), \
}
- #define fss_extended_list_read_total_parameters_d 26
+ #define fss_extended_list_read_total_parameters_d 27
#endif // _di_fss_extended_list_read_parameter_d_
/**
*
* fss_extended_list_read_main_flag_*_e:
* - none: No flags set.
+ * - copyright: Print copyright.
* - file_from: Using a specified source file.
* - file_to: Using a specified destination file.
* - help: Print help.
#ifndef _di_fss_extended_list_read_main_flag_e_
enum {
fss_extended_list_read_main_flag_none_e = 0x0,
- fss_extended_list_read_main_flag_file_from_e = 0x1,
- fss_extended_list_read_main_flag_file_to_e = 0x2,
- fss_extended_list_read_main_flag_header_e = 0x4,
- fss_extended_list_read_main_flag_help_e = 0x8,
- fss_extended_list_read_main_flag_separate_e = 0x10,
- fss_extended_list_read_main_flag_strip_invalid_e = 0x20,
- fss_extended_list_read_main_flag_verify_e = 0x40,
- fss_extended_list_read_main_flag_version_e = 0x80,
+ fss_extended_list_read_main_flag_copyright_e = 0x1,
+ fss_extended_list_read_main_flag_file_from_e = 0x2,
+ fss_extended_list_read_main_flag_file_to_e = 0x4,
+ fss_extended_list_read_main_flag_header_e = 0x8,
+ fss_extended_list_read_main_flag_help_e = 0x10,
+ fss_extended_list_read_main_flag_separate_e = 0x20,
+ fss_extended_list_read_main_flag_strip_invalid_e = 0x40,
+ fss_extended_list_read_main_flag_verify_e = 0x80,
+ fss_extended_list_read_main_flag_version_e = 0x100,
}; // enum
#endif // _di_fss_extended_list_read_main_flag_e_
}
}
- status = F_none;
-
if (main->parameters.array[fss_extended_list_read_parameter_help_e].result & f_console_result_found_e) {
fss_extended_list_read_print_help(setting, main->message);
return status;
}
+ if (main->parameters.array[fss_extended_list_read_parameter_copyright_e].result & f_console_result_found_e) {
+ fll_program_print_copyright(main->message, (setting->line_first.used ? 0x1 : 0x0) | (setting->line_last.used ? 0x2 : 0x0));
+
+ return status;
+ }
+
+ status = F_none;
+
// Provide a range designating where within the buffer a particular file exists, using a statically allocated array.
fss_extended_list_read_file_t files_array[main->parameters.remaining.used + 1];
fss_extended_list_read_data_t data = fss_extended_list_read_data_t_initialize;
return;
}
+ if (main->parameters.array[fss_extended_read_parameter_copyright_e].result & f_console_result_found_e) {
+ setting->flag |= fss_extended_read_main_flag_copyright_e;
+
+ return;
+ }
+
f_string_static_t * const args = main->parameters.arguments.array;
if (main->parameters.array[fss_extended_read_parameter_strip_invalid_e].result & f_console_result_found_e) {
enum {
fss_extended_read_parameter_help_e,
+ fss_extended_read_parameter_copyright_e,
fss_extended_read_parameter_light_e,
fss_extended_read_parameter_dark_e,
fss_extended_read_parameter_no_color_e,
#define fss_extended_read_console_parameter_t_initialize \
{ \
- macro_f_console_parameter_t_initialize_3(f_console_standard_short_help_s, f_console_standard_long_help_s, 0, f_console_flag_normal_e, 0), \
+ macro_f_console_parameter_t_initialize_3(f_console_standard_short_help_s, f_console_standard_long_help_s, 0, f_console_flag_normal_e), \
+ macro_f_console_parameter_t_initialize_3(f_console_standard_short_copyright_s, f_console_standard_long_copyright_s, 0, f_console_flag_inverse_e), \
macro_f_console_parameter_t_initialize_3(f_console_standard_short_light_s, f_console_standard_long_light_s, 0, f_console_flag_inverse_e), \
macro_f_console_parameter_t_initialize_3(f_console_standard_short_dark_s, f_console_standard_long_dark_s, 0, f_console_flag_inverse_e), \
macro_f_console_parameter_t_initialize_3(f_console_standard_short_no_color_s, f_console_standard_long_no_color_s, 0, f_console_flag_inverse_e), \
macro_f_console_parameter_t_initialize_3(fss_extended_read_short_trim_s, fss_extended_read_long_trim_s, 0, 0, f_console_flag_normal_e), \
}
- #define fss_extended_read_total_parameters_d 26
+ #define fss_extended_read_total_parameters_d 27
#endif // _di_fss_extended_read_parameter_d_
/**
*
* fss_extended_read_main_flag_*_e:
* - none: No flags set.
+ * - copyright: Print copyright.
* - file_from: Using a specified source file.
* - file_to: Using a specified destination file.
* - help: Print help.
#ifndef _di_fss_extended_read_main_flag_e_
enum {
fss_extended_read_main_flag_none_e = 0x0,
- fss_extended_read_main_flag_file_from_e = 0x1,
- fss_extended_read_main_flag_file_to_e = 0x2,
- fss_extended_read_main_flag_header_e = 0x4,
- fss_extended_read_main_flag_help_e = 0x8,
- fss_extended_read_main_flag_separate_e = 0x10,
- fss_extended_read_main_flag_strip_invalid_e = 0x20,
- fss_extended_read_main_flag_verify_e = 0x40,
- fss_extended_read_main_flag_version_e = 0x80,
+ fss_extended_read_main_flag_copyright_e = 0x1,
+ fss_extended_read_main_flag_file_from_e = 0x2,
+ fss_extended_read_main_flag_file_to_e = 0x4,
+ fss_extended_read_main_flag_header_e = 0x8,
+ fss_extended_read_main_flag_help_e = 0x10,
+ fss_extended_read_main_flag_separate_e = 0x20,
+ fss_extended_read_main_flag_strip_invalid_e = 0x40,
+ fss_extended_read_main_flag_verify_e = 0x80,
+ fss_extended_read_main_flag_version_e = 0x100,
}; // enum
#endif // _di_fss_extended_read_main_flag_e_
}
}
- status = F_none;
-
if (main->parameters.array[fss_extended_read_parameter_help_e].result & f_console_result_found_e) {
fss_extended_read_print_help(setting, main->message);
return status;
}
+ if (main->parameters.array[fss_extended_read_parameter_copyright_e].result & f_console_result_found_e) {
+ fll_program_print_copyright(main->message, (setting->line_first.used ? 0x1 : 0x0) | (setting->line_last.used ? 0x2 : 0x0));
+
+ return status;
+ }
+
+ status = F_none;
+
// Provide a range designating where within the buffer a particular file exists, using a statically allocated array.
fss_extended_read_file_t files_array[main->parameters.remaining.used + 1];
fss_extended_read_data_t data = fss_extended_read_data_t_initialize;
return;
}
+ if (main->parameters.array[fss_identify_parameter_copyright_e].result & f_console_result_found_e) {
+ setting->flag |= fss_identify_main_flag_copyright_e;
+
+ return;
+ }
+
f_string_static_t * const args = main->parameters.arguments.array;
if (main->parameters.array[fss_identify_parameter_strip_invalid_e].result & f_console_result_found_e) {
enum {
fss_identify_parameter_help_e,
+ fss_identify_parameter_copyright_e,
fss_identify_parameter_light_e,
fss_identify_parameter_dark_e,
fss_identify_parameter_no_color_e,
#define fss_identify_console_parameter_t_initialize \
{ \
- macro_f_console_parameter_t_initialize_3(f_console_standard_short_help_s, f_console_standard_long_help_s, 0, f_console_flag_normal_e, 0), \
+ macro_f_console_parameter_t_initialize_3(f_console_standard_short_help_s, f_console_standard_long_help_s, 0, f_console_flag_normal_e), \
+ macro_f_console_parameter_t_initialize_3(f_console_standard_short_copyright_s, f_console_standard_long_copyright_s, 0, f_console_flag_inverse_e), \
macro_f_console_parameter_t_initialize_3(f_console_standard_short_light_s, f_console_standard_long_light_s, 0, f_console_flag_inverse_e), \
macro_f_console_parameter_t_initialize_3(f_console_standard_short_dark_s, f_console_standard_long_dark_s, 0, f_console_flag_inverse_e), \
macro_f_console_parameter_t_initialize_3(f_console_standard_short_no_color_s, f_console_standard_long_no_color_s, 0, f_console_flag_inverse_e), \
macro_f_console_parameter_t_initialize_3(fss_identify_short_total_s, fss_identify_long_total_s, 0, 0, f_console_flag_normal_e), \
}
- #define fss_identify_total_parameters_d 17
+ #define fss_identify_total_parameters_d 18
#endif // _di_fss_identify_parameter_d_
/**
*
* fss_identify_main_flag_*_e:
* - none: No flags set.
+ * - copyright: Print copyright.
* - file_from: Using a specified source file.
* - file_to: Using a specified destination file.
* - help: Print help.
#ifndef _di_fss_identify_main_flag_e_
enum {
fss_identify_main_flag_none_e = 0x0,
- fss_identify_main_flag_file_from_e = 0x1,
- fss_identify_main_flag_file_to_e = 0x2,
- fss_identify_main_flag_header_e = 0x4,
- fss_identify_main_flag_help_e = 0x8,
- fss_identify_main_flag_separate_e = 0x10,
- fss_identify_main_flag_strip_invalid_e = 0x20,
- fss_identify_main_flag_verify_e = 0x40,
- fss_identify_main_flag_version_e = 0x80,
+ fss_identify_main_flag_copyright_e = 0x1,
+ fss_identify_main_flag_file_from_e = 0x2,
+ fss_identify_main_flag_file_to_e = 0x4,
+ fss_identify_main_flag_header_e = 0x8,
+ fss_identify_main_flag_help_e = 0x10,
+ fss_identify_main_flag_separate_e = 0x20,
+ fss_identify_main_flag_strip_invalid_e = 0x40,
+ fss_identify_main_flag_verify_e = 0x80,
+ fss_identify_main_flag_version_e = 0x100,
}; // enum
#endif // _di_fss_identify_main_flag_e_
}
}
- status = F_none;
-
if (main->parameters.array[fss_identify_parameter_help_e].result & f_console_result_found_e) {
fss_identify_print_help(setting, main->message);
return F_none;
}
+ if (main->parameters.array[fss_identify_parameter_copyright_e].result & f_console_result_found_e) {
+ fll_program_print_copyright(main->message, (setting->line_first.used ? 0x1 : 0x0) | (setting->line_last.used ? 0x2 : 0x0));
+
+ return F_none;
+ }
+
+ status = F_none;
+
fss_identify_data_t data = fss_identify_data_t_initialize;
data.argv = main->parameters.arguments.array;
return;
}
+ if (main->parameters.array[fss_payload_read_parameter_copyright_e].result & f_console_result_found_e) {
+ setting->flag |= fss_payload_read_main_flag_copyright_e;
+
+ return;
+ }
+
f_string_static_t * const args = main->parameters.arguments.array;
if (main->parameters.array[fss_payload_read_parameter_strip_invalid_e].result & f_console_result_found_e) {
enum {
fss_payload_read_parameter_help_e,
+ fss_payload_read_parameter_copyright_e,
fss_payload_read_parameter_light_e,
fss_payload_read_parameter_dark_e,
fss_payload_read_parameter_no_color_e,
#define fss_payload_read_console_parameter_t_initialize \
{ \
- macro_f_console_parameter_t_initialize_3(f_console_standard_short_help_s, f_console_standard_long_help_s, 0, f_console_flag_normal_e, 0), \
+ macro_f_console_parameter_t_initialize_3(f_console_standard_short_help_s, f_console_standard_long_help_s, 0, f_console_flag_normal_e), \
+ macro_f_console_parameter_t_initialize_3(f_console_standard_short_copyright_s, f_console_standard_long_copyright_s, 0, f_console_flag_inverse_e), \
macro_f_console_parameter_t_initialize_3(f_console_standard_short_light_s, f_console_standard_long_light_s, 0, f_console_flag_inverse_e), \
macro_f_console_parameter_t_initialize_3(f_console_standard_short_dark_s, f_console_standard_long_dark_s, 0, f_console_flag_inverse_e), \
macro_f_console_parameter_t_initialize_3(f_console_standard_short_no_color_s, f_console_standard_long_no_color_s, 0, f_console_flag_inverse_e), \
macro_f_console_parameter_t_initialize_3(fss_payload_read_short_trim_s, fss_payload_read_long_trim_s, 0, 0, f_console_flag_normal_e), \
}
- #define fss_payload_read_total_parameters_d 26
+ #define fss_payload_read_total_parameters_d 27
#endif // _di_fss_payload_read_parameter_d_
/**
* - none: No flags set.
* - at: Selecting at a specific index.
* - content: Print Contents.
+ * - copyright: Print copyright.
* - help: Print help.
* - literal: Print as literal data (printing entire variable).
* - line: Selecting at a specific line.
fss_payload_read_main_flag_none_e = 0x0,
fss_payload_read_main_flag_at_e = 0x1,
fss_payload_read_main_flag_content_e = 0x2,
- fss_payload_read_main_flag_help_e = 0x4,
- fss_payload_read_main_flag_literal_e = 0x8,
- fss_payload_read_main_flag_line_e = 0x10,
- fss_payload_read_main_flag_name_e = 0x20,
- fss_payload_read_main_flag_object_e = 0x40,
- fss_payload_read_main_flag_reassign_e = 0x80,
- fss_payload_read_main_flag_replace_e = 0x100,
- fss_payload_read_main_flag_substitute_e = 0x200,
- fss_payload_read_main_flag_total_e = 0x400,
- fss_payload_read_main_flag_version_e = 0x800,
- fss_payload_read_main_flag_whole_e = 0x1000,
- fss_payload_read_main_flag_wrap_e = 0x2000,
+ fss_payload_read_main_flag_copyright_e = 0x4,
+ fss_payload_read_main_flag_help_e = 0x8,
+ fss_payload_read_main_flag_literal_e = 0x10,
+ fss_payload_read_main_flag_line_e = 0x20,
+ fss_payload_read_main_flag_name_e = 0x40,
+ fss_payload_read_main_flag_object_e = 0x80,
+ fss_payload_read_main_flag_reassign_e = 0x100,
+ fss_payload_read_main_flag_replace_e = 0x200,
+ fss_payload_read_main_flag_substitute_e = 0x400,
+ fss_payload_read_main_flag_total_e = 0x800,
+ fss_payload_read_main_flag_version_e = 0x1000,
+ fss_payload_read_main_flag_whole_e = 0x2000,
+ fss_payload_read_main_flag_wrap_e = 0x4000,
}; // enum
#endif // _di_fss_payload_read_main_flag_e_
}
}
- status = F_none;
-
if (main->parameters.array[fss_payload_read_parameter_help_e].result & f_console_result_found_e) {
fss_payload_read_print_help(setting, main->message);
return status;
}
+ if (main->parameters.array[fss_payload_read_parameter_copyright_e].result & f_console_result_found_e) {
+ fll_program_print_copyright(main->message, (setting->line_first.used ? 0x1 : 0x0) | (setting->line_last.used ? 0x2 : 0x0));
+
+ return status;
+ }
+
+ status = F_none;
+
// Provide a range designating where within the buffer a particular file exists, using a statically allocated array.
fss_payload_read_file_t files_array[main->parameters.remaining.used + 1];
fss_payload_read_data_t data = fss_payload_read_data_t_initialize;
setting->flag |= fss_write_flag_version_e;
}
+ if (main->parameters.array[fss_write_parameter_copyright_e].result & f_console_result_found_e) {
+ setting->flag |= fss_write_flag_copyright_e;
+ }
+
if (callback) {
callback(arguments, state, main, setting);
if (F_status_is_error(setting->status)) return;
enum {
fss_write_parameter_help_e,
+ fss_write_parameter_copyright_e,
fss_write_parameter_light_e,
fss_write_parameter_dark_e,
fss_write_parameter_no_color_e,
#define fss_write_console_parameter_t_initialize \
{ \
macro_f_console_parameter_t_initialize_3(f_console_standard_short_help_s, f_console_standard_long_help_s, 0, f_console_flag_normal_e), \
+ macro_f_console_parameter_t_initialize_3(f_console_standard_short_copyright_s, f_console_standard_long_copyright_s, 0, f_console_flag_inverse_e), \
macro_f_console_parameter_t_initialize_3(f_console_standard_short_light_s, f_console_standard_long_light_s, 0, f_console_flag_inverse_e), \
macro_f_console_parameter_t_initialize_3(f_console_standard_short_dark_s, f_console_standard_long_dark_s, 0, f_console_flag_inverse_e), \
macro_f_console_parameter_t_initialize_3(f_console_standard_short_no_color_s, f_console_standard_long_no_color_s, 0, f_console_flag_inverse_e), \
macro_f_console_parameter_t_initialize_3(fss_write_short_trim_s, fss_write_long_trim_s, 0, f_console_flag_normal_e), \
}
- #define fss_write_total_parameters_d 26
+ #define fss_write_total_parameters_d 27
#endif // _di_fss_write_parameter_d_
/**
* - content_end: The Content end characters are to be printed.
* - content_multiple: Designate that multiple Content is allowed for an Object for this standard rather than a single Content per Object.
* - content_next: The Content next characters are to be printed.
+ * - copyright: Print copyright.
* - file_to: Using a specified destination file.
* - help: Print help.
* - ignore: Ignore a given range within a Content (specify flag before setting loading to designate ignores is supported by standard).
fss_write_flag_content_end_e = 0x2,
fss_write_flag_content_multiple_e = 0x4,
fss_write_flag_content_next_e = 0x8,
- fss_write_flag_file_to_e = 0x10,
- fss_write_flag_help_e = 0x20,
- fss_write_flag_ignore_e = 0x40,
- fss_write_flag_object_e = 0x80,
- fss_write_flag_object_open_e = 0x100,
- fss_write_flag_partial_e = 0x200,
- fss_write_flag_prepend_e = 0x400,
- fss_write_flag_trim_e = 0x800,
- fss_write_flag_version_e = 0x1000,
+ fss_write_flag_copyright_e = 0x10,
+ fss_write_flag_file_to_e = 0x20,
+ fss_write_flag_help_e = 0x40,
+ fss_write_flag_ignore_e = 0x80,
+ fss_write_flag_object_e = 0x100,
+ fss_write_flag_object_open_e = 0x200,
+ fss_write_flag_partial_e = 0x400,
+ fss_write_flag_prepend_e = 0x800,
+ fss_write_flag_trim_e = 0x1000,
+ fss_write_flag_version_e = 0x2000,
}; // enum
#endif // _di_fss_write_flag_e_
return;
}
+ if (setting->flag & fss_write_flag_copyright_e) {
+ fll_program_print_copyright(main->message, (setting->line_first.used ? 0x1 : 0x0) | (setting->line_last.used ? 0x2 : 0x0));
+
+ return;
+ }
+
setting->escaped.used = 0;
if (main->pipe & fll_program_data_pipe_input_e) {
return;
}
+
+ if (main->parameters.array[iki_read_parameter_copyright_e].result & f_console_result_found_e) {
+ setting->flag |= iki_read_main_flag_copyright_e;
+
+ return;
+ }
}
if (!(main->parameters.remaining.used || (main->pipe & fll_program_data_pipe_input_e))) {
enum {
iki_read_parameter_help_e,
+ iki_read_parameter_copyright_e,
iki_read_parameter_light_e,
iki_read_parameter_dark_e,
iki_read_parameter_no_color_e,
#define iki_read_console_parameter_t_initialize \
{ \
macro_f_console_parameter_t_initialize_3(f_console_standard_short_help_s, f_console_standard_long_help_s, 0, f_console_flag_normal_e), \
+ macro_f_console_parameter_t_initialize_3(f_console_standard_short_copyright_s, f_console_standard_long_copyright_s, 0, f_console_flag_inverse_e), \
macro_f_console_parameter_t_initialize_3(f_console_standard_short_light_s, f_console_standard_long_light_s, 0, f_console_flag_inverse_e), \
macro_f_console_parameter_t_initialize_3(f_console_standard_short_dark_s, f_console_standard_long_dark_s, 0, f_console_flag_inverse_e), \
macro_f_console_parameter_t_initialize_3(f_console_standard_short_no_color_s, f_console_standard_long_no_color_s, 0, f_console_flag_inverse_e), \
macro_f_console_parameter_t_initialize_3(iki_read_short_wrap_s, iki_read_long_wrap_s, 3, f_console_flag_normal_e), \
}
- #define iki_read_total_parameters_d 24
+ #define iki_read_total_parameters_d 25
#endif // _di_iki_read_parameter_d_
#ifndef _di_iki_read_substitution_t_
* - none: No flags set.
* - at: Selecting at a specific index.
* - content: Print Contents.
+ * - copyright: Print copyright.
* - help: Print help.
* - literal: Print as literal data (printing entire variable).
* - line: Selecting at a specific line.
iki_read_main_flag_none_e = 0x0,
iki_read_main_flag_at_e = 0x1,
iki_read_main_flag_content_e = 0x2,
- iki_read_main_flag_help_e = 0x4,
- iki_read_main_flag_literal_e = 0x8,
- iki_read_main_flag_line_e = 0x10,
- iki_read_main_flag_name_e = 0x20,
- iki_read_main_flag_object_e = 0x40,
- iki_read_main_flag_reassign_e = 0x80,
- iki_read_main_flag_replace_e = 0x100,
- iki_read_main_flag_substitute_e = 0x200,
- iki_read_main_flag_total_e = 0x400,
- iki_read_main_flag_version_e = 0x800,
- iki_read_main_flag_whole_e = 0x1000,
- iki_read_main_flag_wrap_e = 0x2000,
+ iki_read_main_flag_copyright_e = 0x4,
+ iki_read_main_flag_help_e = 0x8,
+ iki_read_main_flag_literal_e = 0x10,
+ iki_read_main_flag_line_e = 0x20,
+ iki_read_main_flag_name_e = 0x40,
+ iki_read_main_flag_object_e = 0x80,
+ iki_read_main_flag_reassign_e = 0x100,
+ iki_read_main_flag_replace_e = 0x200,
+ iki_read_main_flag_substitute_e = 0x400,
+ iki_read_main_flag_total_e = 0x800,
+ iki_read_main_flag_version_e = 0x1000,
+ iki_read_main_flag_whole_e = 0x2000,
+ iki_read_main_flag_wrap_e = 0x4000,
};
#endif // _di_iki_read_main_flag_e_
return;
}
+ if (setting->flag & iki_read_main_flag_copyright_e) {
+ fll_program_print_copyright(main->message, (setting->line_first.used ? 0x1 : 0x0) | (setting->line_last.used ? 0x2 : 0x0));
+
+ return;
+ }
+
if (main->pipe & fll_program_data_pipe_input_e) {
f_file_t file = f_file_t_initialize;
return;
}
+ if (main->parameters.array[iki_write_parameter_copyright_e].result & f_console_result_found_e) {
+ setting->flag |= iki_write_main_flag_copyright_e;
+
+ return;
+ }
+
if (main->parameters.array[iki_write_parameter_file_e].result & f_console_result_value_e && main->parameters.array[iki_write_parameter_file_e].values.used) {
if (main->parameters.array[iki_write_parameter_file_e].values.used > 1) {
setting->status = F_status_set_error(F_parameter);
enum {
iki_write_parameter_help_e,
+ iki_write_parameter_copyright_e,
iki_write_parameter_light_e,
iki_write_parameter_dark_e,
iki_write_parameter_no_color_e,
#define iki_write_console_parameter_t_initialize \
{ \
macro_f_console_parameter_t_initialize_3(f_console_standard_short_help_s, f_console_standard_long_help_s, 0, f_console_flag_normal_e), \
+ macro_f_console_parameter_t_initialize_3(f_console_standard_short_copyright_s, f_console_standard_long_copyright_s, 0, f_console_flag_inverse_e), \
macro_f_console_parameter_t_initialize_3(f_console_standard_short_light_s, f_console_standard_long_light_s, 0, f_console_flag_inverse_e), \
macro_f_console_parameter_t_initialize_3(f_console_standard_short_dark_s, f_console_standard_long_dark_s, 0, f_console_flag_inverse_e), \
macro_f_console_parameter_t_initialize_3(f_console_standard_short_no_color_s, f_console_standard_long_no_color_s, 0, f_console_flag_inverse_e), \
macro_f_console_parameter_t_initialize_3(iki_write_short_single_s, iki_write_long_single_s, 0, f_console_flag_normal_e), \
}
- #define iki_write_total_parameters_d 18
+ #define iki_write_total_parameters_d 19
#endif // _di_iki_write_parameter_d_
/**
* Flags passed to the main function or program.
*
* iki_write_main_flag_*_e:
- * - none: No flags set.
- * - content: The Content being written is specified.
- * - file_to: Using a specified destination file.
- * - help: Print help.
- * - object: The Object being written is specified.
- * - version: Print version.
+ * - none: No flags set.
+ * - content: The Content being written is specified.
+ * - copyright: Print copyright.
+ * - file_to: Using a specified destination file.
+ * - help: Print help.
+ * - object: The Object being written is specified.
+ * - version: Print version.
*/
#ifndef _di_iki_write_main_flag_e_
enum {
- iki_write_main_flag_none_e = 0x0,
- iki_write_main_flag_content_e = 0x1,
- iki_write_main_flag_file_to_e = 0x2,
- iki_write_main_flag_help_e = 0x4,
- iki_write_main_flag_object_e = 0x8,
- iki_write_main_flag_version_e = 0x10,
+ iki_write_main_flag_none_e = 0x0,
+ iki_write_main_flag_content_e = 0x1,
+ iki_write_main_flag_copyright_e = 0x2,
+ iki_write_main_flag_file_to_e = 0x4,
+ iki_write_main_flag_help_e = 0x8,
+ iki_write_main_flag_object_e = 0x10,
+ iki_write_main_flag_version_e = 0x20,
};
#endif // _di_iki_write_main_flag_e_
return;
}
+ if (setting->flag & iki_write_main_flag_copyright_e) {
+ fll_program_print_copyright(main->message, (setting->line_first.used ? 0x1 : 0x0) | (setting->line_last.used ? 0x2 : 0x0));
+
+ return;
+ }
+
setting->escaped.used = 0;
if (main->pipe & fll_program_data_pipe_input_e) {
return;
}
+
+ if (main->parameters.array[status_code_parameter_copyright_e].result & f_console_result_found_e) {
+ setting->flag |= status_code_main_flag_copyright_e;
+
+ return;
+ }
}
if (main->parameters.array[status_code_parameter_error_e].result & f_console_result_found_e) {
enum {
status_code_parameter_help_e,
+ status_code_parameter_copyright_e,
status_code_parameter_light_e,
status_code_parameter_dark_e,
status_code_parameter_no_color_e,
#define status_code_console_parameter_t_initialize \
{ \
macro_f_console_parameter_t_initialize_3(f_console_standard_short_help_s, f_console_standard_long_help_s, 0, f_console_flag_normal_e), \
+ macro_f_console_parameter_t_initialize_3(f_console_standard_short_copyright_s, f_console_standard_long_copyright_s, 0, f_console_flag_inverse_e), \
macro_f_console_parameter_t_initialize_3(f_console_standard_short_light_s, f_console_standard_long_light_s, 0, f_console_flag_inverse_e), \
macro_f_console_parameter_t_initialize_3(f_console_standard_short_dark_s, f_console_standard_long_dark_s, 0, f_console_flag_inverse_e), \
macro_f_console_parameter_t_initialize_3(f_console_standard_short_no_color_s, f_console_standard_long_no_color_s, 0, f_console_flag_inverse_e), \
macro_f_console_parameter_t_initialize_3(status_code_short_number_s, status_code_long_number_s, 0, f_console_flag_normal_e), \
}
- #define status_code_total_parameters_d 16
+ #define status_code_total_parameters_d 17
#endif // _di_status_code_parameter_d_
/**
* When number mode is not specified, then mode is "string" mode (there is no flag for "string" mode).
*
* status_code_main_flag_*_e:
- * - none: No flags set.
- * - error: Check if status is "error".
- * - fine: Check if status is "fine".
- * - help: Print help.
- * - number: Operate in number mode.
- * - version: Print version.
- * - warning: Check if status is "warning".
+ * - none: No flags set.
+ * - copyright: Print copyright.
+ * - error: Check if status is "error".
+ * - fine: Check if status is "fine".
+ * - help: Print help.
+ * - number: Operate in number mode.
+ * - version: Print version.
+ * - warning: Check if status is "warning".
*/
#ifndef _di_status_code_main_flag_e_
enum {
- status_code_main_flag_none_e = 0x0,
- status_code_main_flag_error_e = 0x1,
- status_code_main_flag_fine_e = 0x2,
- status_code_main_flag_help_e = 0x4,
- status_code_main_flag_number_e = 0x8,
- status_code_main_flag_version_e = 0x10,
- status_code_main_flag_warning_e = 0x20,
+ status_code_main_flag_none_e = 0x0,
+ status_code_main_flag_copyright_e = 0x1,
+ status_code_main_flag_error_e = 0x2,
+ status_code_main_flag_fine_e = 0x4,
+ status_code_main_flag_help_e = 0x8,
+ status_code_main_flag_number_e = 0x10,
+ status_code_main_flag_version_e = 0x20,
+ status_code_main_flag_warning_e = 0x40,
};
#endif // _di_status_code_main_flag_e_
return;
}
+ if (setting->flag & status_code_main_flag_copyright_e) {
+ fll_program_print_copyright(main->message, (setting->line_first.used ? 0x1 : 0x0) | (setting->line_last.used ? 0x2 : 0x0));
+
+ return;
+ }
+
f_status_t status2 = F_none;
if (setting->flag & status_code_main_flag_number_e) {
return;
}
+ if (main->parameters.array[utf8_parameter_copyright_e].result & f_console_result_found_e) {
+ setting->flag |= utf8_main_flag_copyright_e;
+
+ return;
+ }
+
if (main->parameters.array[utf8_parameter_to_file_e].result & f_console_result_value_e) {
if (main->parameters.array[utf8_parameter_to_file_e].values.used > 1) {
setting->status = F_status_set_error(F_parameter);
enum {
utf8_parameter_help_e,
+ utf8_parameter_copyright_e,
utf8_parameter_light_e,
utf8_parameter_dark_e,
utf8_parameter_no_color_e,
#define utf8_console_parameter_t_initialize \
{ \
macro_f_console_parameter_t_initialize_3(f_console_standard_short_help_s, f_console_standard_long_help_s, 0, f_console_flag_normal_e), \
+ macro_f_console_parameter_t_initialize_3(f_console_standard_short_copyright_s, f_console_standard_long_copyright_s, 0, f_console_flag_inverse_e), \
macro_f_console_parameter_t_initialize_3(f_console_standard_short_light_s, f_console_standard_long_light_s, 0, f_console_flag_inverse_e), \
macro_f_console_parameter_t_initialize_3(f_console_standard_short_dark_s, f_console_standard_long_dark_s, 0, f_console_flag_inverse_e), \
macro_f_console_parameter_t_initialize_3(f_console_standard_short_no_color_s, f_console_standard_long_no_color_s, 0, f_console_flag_inverse_e), \
macro_f_console_parameter_t_initialize_3(utf8_short_verify_s, utf8_long_verify_s, 0, f_console_flag_normal_e), \
}
- #define utf8_total_parameters_d 24
+ #define utf8_total_parameters_d 25
#endif // _di_utf8_parameter_d_
/**
*
* utf8_main_flag_*_e:
* - none: No flags set.
+ * - copyright: Print the copyright.
* - file_from: Using a specified source file.
* - file_to: Using a specified destination file.
* - header: Enable printing of headers.
#ifndef _di_utf8_main_flag_e_
enum {
utf8_main_flag_none_e = 0x0,
- utf8_main_flag_file_from_e = 0x1,
- utf8_main_flag_file_to_e = 0x2,
- utf8_main_flag_header_e = 0x4,
- utf8_main_flag_help_e = 0x8,
- utf8_main_flag_pipe_e = 0x10,
- utf8_main_flag_separate_e = 0x20,
- utf8_main_flag_strip_invalid_e = 0x40,
- utf8_main_flag_verify_e = 0x80,
- utf8_main_flag_version_e = 0x100,
+ utf8_main_flag_copyright_e = 0x1,
+ utf8_main_flag_file_from_e = 0x2,
+ utf8_main_flag_file_to_e = 0x4,
+ utf8_main_flag_header_e = 0x8,
+ utf8_main_flag_help_e = 0x10,
+ utf8_main_flag_pipe_e = 0x20,
+ utf8_main_flag_separate_e = 0x40,
+ utf8_main_flag_strip_invalid_e = 0x80,
+ utf8_main_flag_verify_e = 0x100,
+ utf8_main_flag_version_e = 0x200,
}; // enum
#endif // _di_utf8_main_flag_e_
return;
}
+ if (setting->flag & utf8_main_flag_copyright_e) {
+ fll_program_print_copyright(main->message, (setting->line_first.used ? 0x1 : 0x0) | (setting->line_last.used ? 0x2 : 0x0));
+
+ return;
+ }
+
if (!(setting->flag & utf8_main_flag_header_e)) {
utf8_print_line_first_locked(setting, main->message);
}