From cd5a46ee236cfe0936d279cbabc7d2eb1d39d044 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Thu, 8 Dec 2022 00:09:56 -0600 Subject: [PATCH] Update: More consistently follow the recent clarifications of the style guide for defines. I discovered that the "_s" type of notation to be incredibly helpful while working on the stand alone projects. I also noticed some inconsistency in the naming structure to some extent. I updated and clarified the style guide and then updated the defines where needed. This turned out to be more work than expect and has been rushed a little. Look out for mistakes. --- build/disable/level_0/f_account.h | 2 +- build/disable/level_0/f_color.h | 4 +- build/disable/level_0/f_control_group.h | 2 +- build/disable/level_0/f_conversion.h | 6 +- build/disable/level_0/f_directory.h | 8 +- build/disable/level_0/f_environment.h | 2 +- build/disable/level_0/f_execute.h | 2 +- build/disable/level_0/f_file.h | 16 ++-- build/disable/level_0/f_fss.h | 24 ++--- build/disable/level_0/f_iki.h | 10 +-- build/disable/level_0/f_memory.h | 2 +- build/disable/level_0/f_path.h | 6 +- build/disable/level_0/f_print.h | 8 +- build/disable/level_0/f_socket.h | 14 +-- build/disable/level_0/f_utf.h | 10 +-- build/disable/level_1/fl_conversion.h | 4 +- build/disable/level_2/fll_error.h | 2 +- build/disable/level_2/fll_program.h | 2 +- build/stand_alone/byte_dump.config.h | 54 +++++------ build/stand_alone/fake.config.h | 109 +++++++++++------------ build/stand_alone/firewall.config.h | 99 ++++++++++---------- build/stand_alone/utf8.config.h | 54 +++++------ level_0/f_account/c/account/common.h | 4 +- level_0/f_color/c/color/common.h | 8 +- level_0/f_control_group/c/control_group/common.c | 4 +- level_0/f_control_group/c/control_group/common.h | 4 +- level_0/f_conversion/c/conversion/common.c | 4 +- level_0/f_conversion/c/conversion/common.h | 12 +-- level_0/f_directory/c/directory/common.c | 4 +- level_0/f_directory/c/directory/common.h | 16 ++-- level_0/f_environment/c/environment/common.h | 4 +- level_0/f_execute/c/execute/common.h | 4 +- level_0/f_file/c/file/common.c | 12 +-- level_0/f_file/c/file/common.h | 75 ++++++++-------- level_0/f_fss/c/fss/common.c | 4 +- level_0/f_fss/c/fss/common.h | 57 ++++++------ level_0/f_iki/c/iki/common.c | 4 +- level_0/f_iki/c/iki/common.h | 20 ++--- level_0/f_memory/c/memory/common.h | 4 +- level_0/f_path/c/path/common.c | 8 +- level_0/f_path/c/path/common.h | 29 +++--- level_0/f_print/c/print/common.c | 4 +- level_0/f_print/c/print/common.h | 14 +-- level_0/f_socket/c/socket/common.h | 28 +++--- level_0/f_utf/c/utf/common.c | 12 +-- level_0/f_utf/c/utf/common.h | 20 ++--- level_1/fl_conversion/c/conversion/common.c | 4 +- level_1/fl_conversion/c/conversion/common.h | 8 +- level_1/fl_directory/c/directory/common.h | 12 ++- level_2/fll_error/c/error/common.c | 4 +- level_2/fll_error/c/error/common.h | 18 +++- level_2/fll_program/c/program/common.c | 4 +- level_2/fll_program/c/program/common.h | 6 +- level_3/byte_dump/c/common.c | 20 ++--- level_3/byte_dump/c/common.h | 50 ++++++----- level_3/control/c/common.c | 12 +-- level_3/control/c/common.h | 28 +++--- level_3/controller/c/common.c | 8 +- level_3/controller/c/common.h | 48 +++++----- level_3/fake/c/common.c | 36 ++++---- level_3/fake/c/common.h | 96 +++++++++++--------- level_3/firewall/c/common.c | 20 ++--- level_3/firewall/c/common.h | 34 +++---- level_3/fss_basic_list_read/c/common.c | 20 ++--- level_3/fss_basic_list_read/c/common.h | 40 ++++++--- level_3/fss_basic_list_write/c/common.c | 16 ++-- level_3/fss_basic_list_write/c/common.h | 29 +++--- level_3/fss_basic_read/c/common.c | 20 ++--- level_3/fss_basic_read/c/common.h | 42 +++++---- level_3/fss_basic_write/c/common.c | 10 +-- level_3/fss_basic_write/c/common.h | 31 ++++--- level_3/fss_embedded_list_read/c/common.c | 20 ++--- level_3/fss_embedded_list_read/c/common.h | 42 +++++---- level_3/fss_embedded_list_write/c/common.c | 16 ++-- level_3/fss_embedded_list_write/c/common.h | 29 +++--- level_3/fss_extended_list_read/c/common.c | 20 ++--- level_3/fss_extended_list_read/c/common.h | 38 +++++--- level_3/fss_extended_list_write/c/common.c | 16 ++-- level_3/fss_extended_list_write/c/common.h | 29 +++--- level_3/fss_extended_read/c/common.c | 20 ++--- level_3/fss_extended_read/c/common.h | 42 +++++---- level_3/fss_extended_write/c/common.c | 16 ++-- level_3/fss_extended_write/c/common.h | 31 ++++--- level_3/fss_identify/c/common.c | 12 +-- level_3/fss_identify/c/common.h | 20 ++--- level_3/fss_payload_read/c/common.c | 20 ++--- level_3/fss_payload_read/c/common.h | 38 +++++--- level_3/fss_write/c/basic/common.c | 4 +- level_3/fss_write/c/basic/common.h | 4 +- level_3/fss_write/c/basic_list/common.c | 4 +- level_3/fss_write/c/basic_list/common.h | 4 +- level_3/fss_write/c/embedded_list/common.c | 4 +- level_3/fss_write/c/embedded_list/common.h | 4 +- level_3/fss_write/c/extended/common.c | 4 +- level_3/fss_write/c/extended/common.h | 4 +- level_3/fss_write/c/extended_list/common.c | 4 +- level_3/fss_write/c/extended_list/common.h | 4 +- level_3/fss_write/c/main/common.c | 20 ++--- level_3/fss_write/c/main/common.h | 61 ++++++++----- level_3/fss_write/c/payload/common.c | 4 +- level_3/fss_write/c/payload/common.h | 4 +- level_3/fss_write/c/payload/fss_write.c | 2 +- level_3/iki_read/c/common.c | 16 ++-- level_3/iki_read/c/common.h | 22 ++--- level_3/iki_write/c/common.c | 16 ++-- level_3/iki_write/c/common.h | 32 +++---- level_3/status_code/c/common.c | 20 ++--- level_3/status_code/c/common.h | 36 ++++---- level_3/status_code/c/main-fss_status_code.c | 4 +- level_3/utf8/c/common.c | 20 ++--- level_3/utf8/c/common.h | 35 ++++---- 111 files changed, 1152 insertions(+), 1000 deletions(-) diff --git a/build/disable/level_0/f_account.h b/build/disable/level_0/f_account.h index 7f9da6d..c3a4a98 100644 --- a/build/disable/level_0/f_account.h +++ b/build/disable/level_0/f_account.h @@ -1,6 +1,6 @@ #define _di_f_account_by_id_ #define _di_f_account_by_name_ -#define _di_f_account_defines_ +#define _di_f_account_d_ #define _di_f_account_delete_ #define _di_f_account_destroy_ #define _di_f_account_group_id_by_name_ diff --git a/build/disable/level_0/f_color.h b/build/disable/level_0/f_color.h index b28e67f..77453da 100644 --- a/build/disable/level_0/f_color.h +++ b/build/disable/level_0/f_color.h @@ -4,7 +4,7 @@ #define _di_f_color_context_t_ #define _di_f_color_format_t_ #define _di_f_color_load_context_ -#define _di_f_color_max_size_ +#define _di_f_color_max_size_d_ #define _di_f_color_mode_t_ #define _di_f_color_save_1_ #define _di_f_color_save_2_ @@ -14,7 +14,7 @@ #define _di_f_color_set_context_t_ #define _di_f_color_set_string_empty_s_ #define _di_f_color_set_t_ -#define _di_f_color_string_s_ +#define _di_f_color_s_ #define _di_f_color_strings_s_ #define _di_f_color_t_ #define _di_f_color_terminal_s_ diff --git a/build/disable/level_0/f_control_group.h b/build/disable/level_0/f_control_group.h index 6352965..a2b2139 100644 --- a/build/disable/level_0/f_control_group.h +++ b/build/disable/level_0/f_control_group.h @@ -1,3 +1,3 @@ #define _di_f_control_group_copy_ -#define _di_f_control_group_defines_ +#define _di_f_control_group_s_ #define _di_f_control_group_t_ diff --git a/build/disable/level_0/f_conversion.h b/build/disable/level_0/f_conversion.h index 9659987..51c9f32 100644 --- a/build/disable/level_0/f_conversion.h +++ b/build/disable/level_0/f_conversion.h @@ -8,10 +8,10 @@ #define _di_f_conversion_character_to_duodecimal_ #define _di_f_conversion_character_to_hexidecimal_ #define _di_f_conversion_character_to_octal_ -#define _di_f_conversion_data_flag_ +#define _di_f_conversion_data_flag_d_ #define _di_f_conversion_data_t_ -#define _di_f_conversion_data_t_defines_ -#define _di_f_conversion_digits_d_ +#define _di_f_conversion_data_c_ +#define _di_f_conversion_d_ #define _di_f_conversion_number_signed_print_ #define _di_f_conversion_number_signed_to_string_ #define _di_f_conversion_number_unsigned_print_ diff --git a/build/disable/level_0/f_directory.h b/build/disable/level_0/f_directory.h index fd68aac..a313cdf 100644 --- a/build/disable/level_0/f_directory.h +++ b/build/disable/level_0/f_directory.h @@ -1,12 +1,12 @@ -#define _di_f_directory_at_ +#define _di_f_directory_at_d_ #define _di_f_directory_create_ #define _di_f_directory_create_at_ #define _di_f_directory_exists_ #define _di_f_directory_exists_at_ -#define _di_f_directory_flag_ +#define _di_f_directory_flag_d_ #define _di_f_directory_is_ #define _di_f_directory_is_at_ -#define _di_f_directory_limitations_ +#define _di_f_directory_d_ #define _di_f_directory_list_ #define _di_f_directory_listing_t_ #define _di_f_directory_open_ @@ -15,6 +15,6 @@ #define _di_f_directory_remove_custom_ #define _di_f_directory_statuss_t_ #define _di_f_directory_status_t_ -#define _di_f_directory_string_ +#define _di_f_directory_s_ #define _di_f_directory_touch_ #define _di_f_directory_touch_at_ diff --git a/build/disable/level_0/f_environment.h b/build/disable/level_0/f_environment.h index e5f6452..346e9cf 100644 --- a/build/disable/level_0/f_environment.h +++ b/build/disable/level_0/f_environment.h @@ -1,5 +1,5 @@ #define _di_f_environment_clear_ -#define _di_f_environment_defines_ +#define _di_f_environment_d_ #define _di_f_environment_exists_ #define _di_f_environment_get_ #define _di_f_environment_get_all_ diff --git a/build/disable/level_0/f_execute.h b/build/disable/level_0/f_execute.h index ee62b2d..f933cfd 100644 --- a/build/disable/level_0/f_execute.h +++ b/build/disable/level_0/f_execute.h @@ -1,4 +1,4 @@ -#define _di_f_execute_codes_ +#define _di_f_execute_e_ #define _di_f_execute_result_t_ #define _di_f_execute_scheduler_t_ #define _di_f_execute_status_from_status_ diff --git a/build/disable/level_0/f_file.h b/build/disable/level_0/f_file.h index 650f60b..64bf090 100644 --- a/build/disable/level_0/f_file.h +++ b/build/disable/level_0/f_file.h @@ -1,7 +1,7 @@ #define _di_f_file_access_ #define _di_f_file_access_at_ -#define _di_f_file_access_modes_ -#define _di_f_file_at_ +#define _di_f_file_access_mode_d_ +#define _di_f_file_at_d_ #define _di_f_file_clone_ #define _di_f_file_close_ #define _di_f_file_copy_ @@ -16,7 +16,7 @@ #define _di_f_file_descriptor_ #define _di_f_file_exists_ #define _di_f_file_exists_at_ -#define _di_f_file_flag_ +#define _di_f_file_flag_d_ #define _di_f_file_flush_ #define _di_f_file_group_read_ #define _di_f_file_is_ @@ -39,8 +39,8 @@ #define _di_f_file_name_directory_ #define _di_f_file_open_ #define _di_f_file_open_at_ -#define _di_f_file_open_modes_ -#define _di_f_file_operation_strings_ +#define _di_f_file_open_mode_s_ +#define _di_f_file_operation_s_ #define _di_f_file_owner_read_ #define _di_f_file_read_ #define _di_f_file_read_block_ @@ -52,14 +52,14 @@ #define _di_f_file_role_change_ #define _di_f_file_role_change_at_ #define _di_f_file_seek_ -#define _di_f_file_seeks_ +#define _di_f_file_seeks_d_ #define _di_f_file_size_ #define _di_f_file_size_at_ #define _di_f_file_size_by_id_ #define _di_f_file_stat_ #define _di_f_file_stat_at_ #define _di_f_file_stat_by_id_ -#define _di_f_file_stat_flags_ +#define _di_f_file_stat_flags_e_ #define _di_f_file_stream_close_ #define _di_f_file_stream_flush_ #define _di_f_file_stream_lock_ @@ -79,7 +79,7 @@ #define _di_f_file_touch_at_ #define _di_f_file_type_ #define _di_f_file_type_at_ -#define _di_f_file_types_ +#define _di_f_file_type_d_ #define _di_f_file_umask_get_ #define _di_f_file_umask_set_ #define _di_f_file_write_ diff --git a/build/disable/level_0/f_fss.h b/build/disable/level_0/f_fss.h index 71c4dc0..81b8e9d 100644 --- a/build/disable/level_0/f_fss.h +++ b/build/disable/level_0/f_fss.h @@ -1,17 +1,17 @@ #define _di_f_fss_apply_delimit_ #define _di_f_fss_apply_delimit_range_ -#define _di_f_fss_codes_ +#define _di_f_fss_e_ #define _di_f_fss_commentss_t_ #define _di_f_fss_comments_t_ #define _di_f_fss_comment_t_ -#define _di_f_fss_complete_ +#define _di_f_fss_complete_e_ #define _di_f_fss_contents_t_ #define _di_f_fss_content_t_ #define _di_f_fss_count_lines_ #define _di_f_fss_count_lines_range_ -#define _di_f_fss_default_allocation_step_ -#define _di_f_fss_defaults_ -#define _di_f_fss_delimiters_ +#define _di_f_fss_default_d_ +#define _di_f_fss_default_d_ +#define _di_f_fss_placeholder_s_ #define _di_f_fss_delimitss_t_ #define _di_f_fss_delimits_t_ #define _di_f_fss_delimit_t_ @@ -91,10 +91,10 @@ #define _di_f_fss_set_t_ #define _di_f_fss_skip_past_delimit_ #define _di_f_fss_skip_past_space_ -#define _di_f_fss_state_flags_ -#define _di_f_fss_status_codes_ -#define _di_f_fss_status_error_ -#define _di_f_fss_status_success_ -#define _di_f_fss_status_warning_ -#define _di_f_fss_strings_ -#define _di_f_fss_types_t_ +#define _di_f_fss_state_flag_e_ +#define _di_f_fss_status_codes_e_ +#define _di_f_fss_status_error_e_ +#define _di_f_fss_status_success_e_ +#define _di_f_fss_status_warning_e_ +#define _di_f_fss_s_ +#define _di_f_fss_s_ diff --git a/build/disable/level_0/f_iki.h b/build/disable/level_0/f_iki.h index f86a963..91f9694 100644 --- a/build/disable/level_0/f_iki.h +++ b/build/disable/level_0/f_iki.h @@ -21,13 +21,13 @@ #define _di_f_iki_datass_t_ #define _di_f_iki_datas_t_ #define _di_f_iki_data_t_ -#define _di_f_iki_default_allocation_step_ +#define _di_f_iki_default_d_ #define _di_f_iki_object_is_ #define _di_f_iki_object_partial_is_ #define _di_f_iki_read_ -#define _di_f_iki_state_flags_ -#define _di_f_iki_syntax_ -#define _di_f_iki_vocabulary_0001_ +#define _di_f_iki_state_flag_e_ +#define _di_f_iki_syntax_s_ #define _di_f_iki_vocabulary_0001_s_ -#define _di_f_iki_vocabulary_0002_ +#define _di_f_iki_vocabulary_0001_s_ +#define _di_f_iki_vocabulary_0002_s_ #define _di_f_iki_vocabulary_0002_s_ diff --git a/build/disable/level_0/f_memory.h b/build/disable/level_0/f_memory.h index 6e3dc3a..acfbac4 100644 --- a/build/disable/level_0/f_memory.h +++ b/build/disable/level_0/f_memory.h @@ -1,5 +1,5 @@ #define _di_f_memory_adjust_ -#define _di_f_memory_default_allocation_step_ +#define _di_f_memory_default_d_ #define _di_f_memory_delete_ #define _di_f_memory_destroy_ #define _di_f_memory_new_ diff --git a/build/disable/level_0/f_path.h b/build/disable/level_0/f_path.h index fd6cf4b..7cc6dc5 100644 --- a/build/disable/level_0/f_path.h +++ b/build/disable/level_0/f_path.h @@ -1,11 +1,11 @@ #define _di_f_path_change_ #define _di_f_path_change_at_ #define _di_f_path_current_ -#define _di_f_path_defines_ +#define _di_f_path_d_ #define _di_f_path_is_ #define _di_f_path_is_absolute_ #define _di_f_path_is_relative_ #define _di_f_path_is_relative_current_ #define _di_f_path_real_ -#define _di_f_path_tree_hierarchy_standard_ -#define _di_f_path_tree_kevux_standard_ +#define _di_f_path_tree_hierarchy_standard_d_ +#define _di_f_path_tree_kevux_standard_d_ diff --git a/build/disable/level_0/f_print.h b/build/disable/level_0/f_print.h index 7e16f19..8ff8e76 100644 --- a/build/disable/level_0/f_print.h +++ b/build/disable/level_0/f_print.h @@ -38,15 +38,15 @@ #define _di_f_print_except_raw_ #define _di_f_print_except_raw_safely_ #define _di_f_print_except_safely_ -#define _di_f_print_format_flag_ -#define _di_f_print_format_type_ +#define _di_f_print_format_flag_d_ +#define _di_f_print_format_type_e_ #define _di_f_print_raw_ #define _di_f_print_raw_safely_ #define _di_f_print_raw_terminated_ #define _di_f_print_safely_ #define _di_f_print_safely_get_ #define _di_f_print_safely_terminated_ -#define _di_f_print_sequences_ +#define _di_f_print_sequence_s_ #define _di_f_print_sequences_set_control_s_ #define _di_f_print_terminated_ #define _di_f_print_to_ @@ -90,4 +90,4 @@ #define _di_f_print_to_safely_ #define _di_f_print_to_safely_terminated_ #define _di_f_print_to_terminated_ -#define _di_f_print_write_max_ +#define _di_f_print_write_max_d_ diff --git a/build/disable/level_0/f_socket.h b/build/disable/level_0/f_socket.h index cad5748..f30ed47 100644 --- a/build/disable/level_0/f_socket.h +++ b/build/disable/level_0/f_socket.h @@ -1,22 +1,22 @@ #define _di_f_socket_accept_ #define _di_f_socket_bind_ #define _di_f_socket_bind_local_ -#define _di_f_socket_closes_ +#define _di_f_socket_close_e_ #define _di_f_socket_connect_ #define _di_f_socket_create_ #define _di_f_socket_create_pair_ -#define _di_f_socket_defaults_ +#define _di_f_socket_default_d_ #define _di_f_socket_disconnect_ -#define _di_f_socket_domains_ -#define _di_f_socket_flags_ +#define _di_f_socket_domain_d_ +#define _di_f_socket_flag_d_ #define _di_f_socket_listen_ -#define _di_f_socket_message_flags_ +#define _di_f_socket_message_flag_d_ #define _di_f_socket_option_get_ -#define _di_f_socket_options_ +#define _di_f_socket_option_d_ #define _di_f_socket_option_set_ #define _di_f_socket_read_ #define _di_f_socket_read_message_ #define _di_f_socket_t_ -#define _di_f_socket_types_ +#define _di_f_socket_type_d_ #define _di_f_socket_write_ #define _di_f_socket_write_message_ diff --git a/build/disable/level_0/f_utf.h b/build/disable/level_0/f_utf.h index 3fa6331..9cb6880 100644 --- a/build/disable/level_0/f_utf.h +++ b/build/disable/level_0/f_utf.h @@ -1,6 +1,6 @@ #define _di_f_utf_buffer_decrement_ #define _di_f_utf_buffer_increment_ -#define _di_f_utf_byte_ +#define _di_f_utf_byte_d_ #define _di_f_utf_character_is_ #define _di_f_utf_character_is_alphabetic_ #define _di_f_utf_character_is_alphabetic_digit_ @@ -37,7 +37,7 @@ #define _di_f_utf_character_unicode_string_to_ #define _di_f_utf_character_unicode_to_ #define _di_f_utf_char_t_ -#define _di_f_utf_char_t_codes_ +#define _di_f_utf_char_s_ #define _di_f_utf_char_to_char_ #define _di_f_utf_char_to_character_ #define _di_f_utf_is_ @@ -72,7 +72,7 @@ #define _di_f_utf_is_word_dash_ #define _di_f_utf_is_word_dash_plus_ #define _di_f_utf_is_zero_width_ -#define _di_f_utf_space_ +#define _di_f_utf_space_s_ #define _di_f_utf_string_append_ #define _di_f_utf_string_append_assure_ #define _di_f_utf_string_append_assure_nulless_ @@ -204,8 +204,8 @@ #define _di_f_utf_string_tripless_t_ #define _di_f_utf_string_triples_t_ #define _di_f_utf_string_triple_t_ -#define _di_f_utf_substitute_ +#define _di_f_utf_substitute_s_ #define _di_f_utf_unicode_from_ #define _di_f_utf_unicode_string_to_ #define _di_f_utf_unicode_to_ -#define _di_f_utf_widths_t_ +#define _di_f_utf_width_e_ diff --git a/build/disable/level_1/fl_conversion.h b/build/disable/level_1/fl_conversion.h index 817335c..5f4bb63 100644 --- a/build/disable/level_1/fl_conversion.h +++ b/build/disable/level_1/fl_conversion.h @@ -1,6 +1,6 @@ -#define _di_fl_conversion_data_flag_ +#define _di_fl_conversion_data_flag_d_ #define _di_fl_conversion_data_t_ -#define _di_fl_conversion_data_t_defines_ +#define _di_fl_conversion_data_c_ #define _di_fl_conversion_dynamic_partial_to_signed_ #define _di_fl_conversion_dynamic_partial_to_signed_detect_ #define _di_fl_conversion_dynamic_partial_to_unsigned_ diff --git a/build/disable/level_2/fll_error.h b/build/disable/level_2/fll_error.h index 531cc40..2d1997d 100644 --- a/build/disable/level_2/fll_error.h +++ b/build/disable/level_2/fll_error.h @@ -1,4 +1,4 @@ #define _di_fll_error_file_print_ -#define _di_fll_error_file_type_ +#define _di_fll_error_file_type_e_ #define _di_fll_error_parameter_integer_print_ #define _di_fll_error_print_ diff --git a/build/disable/level_2/fll_program.h b/build/disable/level_2/fll_program.h index f3de772..639fcc2 100644 --- a/build/disable/level_2/fll_program.h +++ b/build/disable/level_2/fll_program.h @@ -9,7 +9,7 @@ #define _di_fll_program_parameter_process_context_ #define _di_fll_program_parameter_process_empty_ #define _di_fll_program_parameter_process_verbosity_ -#define _di_fll_program_parameters_ +#define _di_fll_program_parameter_s_ #define _di_fll_program_print_error_missing_file_ #define _di_fll_program_print_error_missing_variable_not_zero_ #define _di_fll_program_print_error_parameter_allows_either_xor_ diff --git a/build/stand_alone/byte_dump.config.h b/build/stand_alone/byte_dump.config.h index f15dfdc..8d42fde 100644 --- a/build/stand_alone/byte_dump.config.h +++ b/build/stand_alone/byte_dump.config.h @@ -8,7 +8,7 @@ //#define _di_f_color_context_t_ //#define _di_f_color_format_t_ //#define _di_f_color_load_context_ -//#define _di_f_color_max_size_ +//#define _di_f_color_max_size_d_ //#define _di_f_color_mode_t_ #define _di_f_color_save_1_ #define _di_f_color_save_2_ @@ -18,7 +18,7 @@ //#define _di_f_color_set_context_t_ //#define _di_f_color_set_string_empty_s_ //#define _di_f_color_set_t_ -//#define _di_f_color_string_s_ +//#define _di_f_color_s_ //#define _di_f_color_strings_s_ //#define _di_f_color_t_ //#define _di_f_color_terminal_s_ @@ -52,10 +52,10 @@ //#define _di_f_conversion_character_to_duodecimal_ //#define _di_f_conversion_character_to_hexidecimal_ //#define _di_f_conversion_character_to_octal_ -//#define _di_f_conversion_data_flag_ +//#define _di_f_conversion_data_flag_d_ //#define _di_f_conversion_data_t_ -#define _di_f_conversion_data_t_defines_ -//#define _di_f_conversion_digits_d_ +#define _di_f_conversion_data_d_ +//#define _di_f_conversion_d_ //#define _di_f_conversion_number_signed_print_ #define _di_f_conversion_number_signed_to_string_ //#define _di_f_conversion_number_unsigned_print_ @@ -63,8 +63,8 @@ #define _di_f_file_access_ #define _di_f_file_access_at_ -#define _di_f_file_access_modes_ -#define _di_f_file_at_ +#define _di_f_file_access_mode_d_ +#define _di_f_file_at_d_ #define _di_f_file_clone_ //#define _di_f_file_close_ #define _di_f_file_close_flush_ @@ -81,7 +81,7 @@ #define _di_f_file_descriptor_ //#define _di_f_file_exists_ #define _di_f_file_exists_at_ -//#define _di_f_file_flag_ +//#define _di_f_file_flag_d_ #define _di_f_file_flush_ #define _di_f_file_group_read_ #define _di_f_file_is_ @@ -104,8 +104,8 @@ #define _di_f_file_name_directory_ //#define _di_f_file_open_ #define _di_f_file_open_at_ -//#define _di_f_file_open_modes_ -//#define _di_f_file_operation_strings_ +//#define _di_f_file_open_mode_s_ +//#define _di_f_file_operation_s_ #define _di_f_file_owner_read_ #define _di_f_file_read_ #define _di_f_file_read_block_ @@ -117,14 +117,14 @@ #define _di_f_file_role_change_ #define _di_f_file_role_change_at_ #define _di_f_file_seek_ -#define _di_f_file_seeks_ +#define _di_f_file_seeks_d_ #define _di_f_file_size_ #define _di_f_file_size_at_ #define _di_f_file_size_by_id_ #define _di_f_file_stat_ #define _di_f_file_stat_at_ #define _di_f_file_stat_by_id_ -#define _di_f_file_stat_flags_ +#define _di_f_file_stat_flags_e_ //#define _di_f_file_stream_close_ //#define _di_f_file_stream_open_ #define _di_f_file_stream_open_descriptor_ @@ -141,7 +141,7 @@ #define _di_f_file_touch_at_ #define _di_f_file_type_ #define _di_f_file_type_at_ -#define _di_f_file_types_ +#define _di_f_file_type_d_ #define _di_f_file_umask_get_ #define _di_f_file_umask_set_ #define _di_f_file_write_ @@ -151,7 +151,7 @@ #define _di_f_memory_adjust_ -//#define _di_f_memory_default_allocation_step_ +//#define _di_f_memory_default_d_ #define _di_f_memory_delete_ #define _di_f_memory_destroy_ #define _di_f_memory_new_ @@ -209,15 +209,15 @@ #define _di_f_print_except_raw_ #define _di_f_print_except_raw_safely_ #define _di_f_print_except_safely_ -//#define _di_f_print_format_flag_ -//#define _di_f_print_format_type_ +//#define _di_f_print_format_flag_d_ +//#define _di_f_print_format_type_e_ //#define _di_f_print_raw_ //#define _di_f_print_raw_safely_ #define _di_f_print_raw_terminated_ //#define _di_f_print_safely_ #define _di_f_print_safely_get_ //#define _di_f_print_safely_terminated_ -//#define _di_f_print_sequences_ +//#define _di_f_print_sequence_s_ //#define _di_f_print_sequences_set_control_s_ //#define _di_f_print_terminated_ #define _di_f_print_to_ @@ -261,7 +261,7 @@ #define _di_f_print_to_safely_ #define _di_f_print_to_safely_terminated_ #define _di_f_print_to_terminated_ -//#define _di_f_print_write_max_ +//#define _di_f_print_write_max_d_ #define _di_f_signal_action_ //#define _di_f_signal_close_ @@ -753,7 +753,7 @@ #define _di_f_utf_buffer_decrement_ #define _di_f_utf_buffer_increment_ -//#define _di_f_utf_byte_ +//#define _di_f_utf_byte_d_ #define _di_f_utf_character_is_ #define _di_f_utf_character_is_alphabetic_ #define _di_f_utf_character_is_alphabetic_digit_ @@ -790,7 +790,7 @@ #define _di_f_utf_character_unicode_string_to_ #define _di_f_utf_character_unicode_to_ //#define _di_f_utf_char_t_ -#define _di_f_utf_char_t_codes_ +#define _di_f_utf_char_s_ #define _di_f_utf_char_to_char_ //#define _di_f_utf_char_to_character_ #define _di_f_utf_is_ @@ -825,7 +825,7 @@ #define _di_f_utf_is_word_dash_ #define _di_f_utf_is_word_dash_plus_ #define _di_f_utf_is_zero_width_ -#define _di_f_utf_space_ +#define _di_f_utf_space_s_ #define _di_f_utf_string_append_ #define _di_f_utf_string_append_assure_ #define _di_f_utf_string_append_assure_nulless_ @@ -957,15 +957,15 @@ //#define _di_f_utf_string_tripless_t_ //#define _di_f_utf_string_triples_t_ //#define _di_f_utf_string_triple_t_ -#define _di_f_utf_substitute_ +#define _di_f_utf_substitute_s_ #define _di_f_utf_unicode_from_ #define _di_f_utf_unicode_string_to_ #define _di_f_utf_unicode_to_ -#define _di_f_utf_widths_t_ +#define _di_f_utf_width_e_ -//#define _di_fl_conversion_data_flag_ +//#define _di_fl_conversion_data_flag_d_ //#define _di_fl_conversion_data_t_ -//#define _di_fl_conversion_data_t_defines_ +//#define _di_fl_conversion_data_c_ #define _di_fl_conversion_dynamic_partial_to_signed_ #define _di_fl_conversion_dynamic_partial_to_signed_detect_ #define _di_fl_conversion_dynamic_partial_to_unsigned_ @@ -1057,7 +1057,7 @@ #define _di_fl_string_seek_to_utf_character_ //#define _di_fll_error_file_print_ -//#define _di_fll_error_file_type_ +//#define _di_fll_error_file_type_e_ #define _di_fll_error_parameter_integer_print_ //#define _di_fll_error_print_ @@ -1152,7 +1152,7 @@ #define _di_fll_program_parameter_long_print_cannot_use_with_ //#define _di_fll_program_parameter_process_ //#define _di_fll_program_parameter_process_empty_ -//#define _di_fll_program_parameters_ +//#define _di_fll_program_parameter_s_ //#define _di_fll_program_print_help_header_ //#define _di_fll_program_print_help_option_ //#define _di_fll_program_print_help_option_long_ diff --git a/build/stand_alone/fake.config.h b/build/stand_alone/fake.config.h index 584616a..a0f036e 100644 --- a/build/stand_alone/fake.config.h +++ b/build/stand_alone/fake.config.h @@ -6,7 +6,7 @@ #define _di_f_account_by_id_ #define _di_f_account_by_name_ #define _di_f_account_destroy_ -//#define _di_f_account_defines_ +//#define _di_f_account_d_ //#define _di_f_account_group_id_by_name_ #define _di_f_account_group_name_by_id_ //#define _di_f_account_id_by_name_ @@ -80,7 +80,7 @@ //#define _di_f_color_context_t_ //#define _di_f_color_format_t_ //#define _di_f_color_load_context_ -//#define _di_f_color_max_size_ +//#define _di_f_color_max_size_d_ //#define _di_f_color_mode_t_ #define _di_f_color_save_1_ #define _di_f_color_save_2_ @@ -90,7 +90,7 @@ //#define _di_f_color_set_context_t_ //#define _di_f_color_set_string_empty_s_ //#define _di_f_color_set_t_ -//#define _di_f_color_string_s_ +//#define _di_f_color_s_ //#define _di_f_color_strings_s_ //#define _di_f_color_t_ //#define _di_f_color_terminal_s_ @@ -115,7 +115,7 @@ //#define _di_f_console_verbosity_ #define _di_f_control_group_copy_ -//#define _di_f_control_group_defines_ +//#define _di_f_control_group_s_ //#define _di_f_control_group_t_ //#define _di_f_conversion_character_is_binary_ @@ -128,24 +128,24 @@ //#define _di_f_conversion_character_to_duodecimal_ //#define _di_f_conversion_character_to_hexidecimal_ //#define _di_f_conversion_character_to_octal_ -//#define _di_f_conversion_data_flag_ +//#define _di_f_conversion_data_flag_d_ //#define _di_f_conversion_data_t_ -//#define _di_f_conversion_data_t_defines_ -//#define _di_f_conversion_digits_d_ +//#define _di_f_conversion_data_d_ +//#define _di_f_conversion_d_ //#define _di_f_conversion_number_signed_print_ //#define _di_f_conversion_number_signed_to_string_ //#define _di_f_conversion_number_unsigned_print_ //#define _di_f_conversion_number_unsigned_to_string_ -//#define _di_f_directory_at_ +//#define _di_f_directory_at_d_ //#define _di_f_directory_create_ #define _di_f_directory_create_at_ //#define _di_f_directory_exists_ #define _di_f_directory_exists_at_ -//#define _di_f_directory_flag_ +//#define _di_f_directory_flag_d_ //#define _di_f_directory_is_ #define _di_f_directory_is_at_ -//#define _di_f_directory_limitations_ +//#define _di_f_directory_d_ #define _di_f_directory_list_ //#define _di_f_directory_listing_t_ //#define _di_f_directory_open_ @@ -154,12 +154,12 @@ //#define _di_f_directory_remove_custom_ //#define _di_f_directory_statuss_t_ //#define _di_f_directory_status_t_ -//#define _di_f_directory_string_ +//#define _di_f_directory_s_ //#define _di_f_directory_touch_ #define _di_f_directory_touch_at_ #define _di_f_environment_clear_ -//#define _di_f_environment_defines_ +//#define _di_f_environment_d_ //#define _di_f_environment_exists_ //#define _di_f_environment_get_ //#define _di_f_environment_get_all_ @@ -167,7 +167,7 @@ //#define _di_f_environment_set_ #define _di_f_environment_unset_ -//#define _di_f_execute_codes_ +//#define _di_f_execute_e_ //#define _di_f_execute_result_t_ //#define _di_f_execute_scheduler_t_ #define _di_f_execute_status_from_status_ @@ -175,8 +175,8 @@ #define _di_f_file_access_ #define _di_f_file_access_at_ -#define _di_f_file_access_modes_ -//#define _di_f_file_at_ +#define _di_f_file_access_mode_d_ +//#define _di_f_file_at_d_ //#define _di_f_file_clone_ //#define _di_f_file_close_ #define _di_f_file_close_flush_ @@ -193,7 +193,7 @@ #define _di_f_file_descriptor_ //#define _di_f_file_exists_ #define _di_f_file_exists_at_ -//#define _di_f_file_flag_ +//#define _di_f_file_flag_d_ #define _di_f_file_flush_ //#define _di_f_file_group_read_ //#define _di_f_file_is_ @@ -216,8 +216,8 @@ //#define _di_f_file_name_directory_ //#define _di_f_file_open_ #define _di_f_file_open_at_ -//#define _di_f_file_open_modes_ -//#define _di_f_file_operation_strings_ +//#define _di_f_file_open_mode_s_ +//#define _di_f_file_operation_s_ #//define _di_f_file_owner_read_ //#define _di_f_file_read_ //#define _di_f_file_read_block_ @@ -229,14 +229,14 @@ //#define _di_f_file_role_change_ #define _di_f_file_role_change_at_ #define _di_f_file_seek_ -#define _di_f_file_seeks_ +#define _di_f_file_seeks_d_ //#define _di_f_file_size_ #define _di_f_file_size_at_ #define _di_f_file_size_by_id_ //#define _di_f_file_stat_ //#define _di_f_file_stat_at_ #define _di_f_file_stat_by_id_ -//#define _di_f_file_stat_flags_ +//#define _di_f_file_stat_flags_e_ //#define _di_f_file_stream_close_ //#define _di_f_file_stream_open_ #define _di_f_file_stream_open_descriptor_ @@ -253,7 +253,7 @@ #define _di_f_file_touch_at_ #define _di_f_file_type_ #define _di_f_file_type_at_ -//#define _di_f_file_types_ +//#define _di_f_file_type_d_ //#define _di_f_file_umask_get_ #define _di_f_file_umask_set_ //#define _di_f_file_write_ @@ -263,18 +263,17 @@ //#define _di_f_fss_apply_delimit_ #define _di_f_fss_apply_delimit_range_ -//#define _di_f_fss_codes_ +//#define _di_f_fss_e_ #define _di_f_fss_commentss_t_ //#define _di_f_fss_comments_t_ //#define _di_f_fss_comment_t_ -#define _di_f_fss_complete_ +#define _di_f_fss_complete_e_ //#define _di_f_fss_content_t_ //#define _di_f_fss_contents_t_ //#define _di_f_fss_count_lines_ #define _di_f_fss_count_lines_range_ -//#define _di_f_fss_default_allocation_step_ -//#define _di_f_fss_defaults_ -//#define _di_f_fss_delimiters_ +//#define _di_f_fss_default_d_ +//#define _di_f_fss_placeholder_s_ #define _di_f_fss_delimitss_t_ //#define _di_f_fss_delimits_t_ //#define _di_f_fss_delimit_t_ @@ -357,13 +356,12 @@ //#define _di_f_fss_set_t_ //#define _di_f_fss_skip_past_delimit_ //#define _di_f_fss_skip_past_space_ -//#define _di_f_fss_state_flags_ -//#define _di_f_fss_status_codes_ -//#define _di_f_fss_status_error_ -//#define _di_f_fss_status_success_ -//#define _di_f_fss_status_warning_ -//#define _di_f_fss_strings_ -//#define _di_f_fss_types_t_ +//#define _di_f_fss_state_flag_e_ +//#define _di_f_fss_status_codes_e_ +//#define _di_f_fss_status_error_e_ +//#define _di_f_fss_status_success_e_ +//#define _di_f_fss_status_warning_e_ +//#define _di_f_fss_s_ #define _di_f_iki_content_is_ #define _di_f_iki_content_partial_is_ @@ -390,20 +388,20 @@ #define _di_f_iki_datass_t_ #define _di_f_iki_datas_t_ //#define _di_f_iki_data_t_ -#define _di_f_iki_default_allocation_step_ +#define _di_f_iki_default_d_ #define _di_f_iki_delimitss_t_ //#define _di_f_iki_delimits_t_ //#define _di_f_iki_delimit_t_ #define _di_f_iki_object_is_ #define _di_f_iki_object_partial_is_ //#define _di_f_iki_read_ -//#define _di_f_iki_state_flags_ -//#define _di_f_iki_syntax_ +//#define _di_f_iki_state_flag_e_ +//#define _di_f_iki_syntax_s_ #define _di_f_iki_variables_t_ //#define _di_f_iki_variable_t_ -//#define _di_f_iki_vocabulary_0001_ //#define _di_f_iki_vocabulary_0001_s_ -//#define _di_f_iki_vocabulary_0002_ +//#define _di_f_iki_vocabulary_0001_s_ +//#define _di_f_iki_vocabulary_0002_s_ //#define _di_f_iki_vocabulary_0002_s_ //#define _di_f_iki_vocabularys_t_ //#define _di_f_iki_vocabulary_t_ @@ -449,7 +447,7 @@ //#define _di_f_limit_value_t_ //#define _di_f_memory_adjust_ -//#define _di_f_memory_default_allocation_step_ +//#define _di_f_memory_default_d_ //#define _di_f_memory_delete_ #define _di_f_memory_destroy_ #define _di_f_memory_new_ @@ -465,14 +463,15 @@ //#define _di_f_path_change_ //#define _di_f_path_change_at_ //#define _di_f_path_current_ -//#define _di_f_path_defines_ +//#define _di_f_path_d_ +//#define _di_f_path_s_ //#define _di_f_path_is_ //#define _di_f_path_is_absolute_ #define _di_f_path_is_relative_ //#define _di_f_path_is_relative_current_ #define _di_f_path_real_ -#define _di_f_path_tree_hierarchy_standard_ -#define _di_f_path_tree_kevux_standard_ +#define _di_f_path_tree_hierarchy_standard_d_ +#define _di_f_path_tree_kevux_standard_d_ #define _di_f_pipe_debug_exists_ #define _di_f_pipe_error_exists_ @@ -519,15 +518,15 @@ #define _di_f_print_except_raw_ #define _di_f_print_except_raw_safely_ #define _di_f_print_except_safely_ -//#define _di_f_print_format_flag_ -//#define _di_f_print_format_type_ +//#define _di_f_print_format_flag_d_ +//#define _di_f_print_format_type_e_ //#define _di_f_print_raw_ //#define _di_f_print_raw_safely_ #define _di_f_print_raw_terminated_ //#define _di_f_print_safely_ #define _di_f_print_safely_get_ //#define _di_f_print_safely_terminated_ -//#define _di_f_print_sequences_ +//#define _di_f_print_sequence_s_ //#define _di_f_print_sequences_set_control_s_ //#define _di_f_print_terminated_ #define _di_f_print_to_ @@ -571,7 +570,7 @@ #define _di_f_print_to_safely_ #define _di_f_print_to_safely_terminated_ #define _di_f_print_to_terminated_ -//#define _di_f_print_write_max_ +//#define _di_f_print_write_max_d_ #define _di_f_signal_action_ //#define _di_f_signal_close_ @@ -1301,7 +1300,7 @@ #define _di_f_utf_buffer_decrement_ //#define _di_f_utf_buffer_increment_ -//#define _di_f_utf_byte_ +//#define _di_f_utf_byte_d_ #define _di_f_utf_character_is_ #define _di_f_utf_character_is_alphabetic_ #define _di_f_utf_character_is_alphabetic_digit_ @@ -1338,7 +1337,7 @@ #define _di_f_utf_character_unicode_string_to_ #define _di_f_utf_character_unicode_to_ //#define _di_f_utf_char_t_ -#define _di_f_utf_char_t_codes_ +#define _di_f_utf_char_s_ #define _di_f_utf_char_to_char_ //#define _di_f_utf_char_to_character_ #define _di_f_utf_is_ @@ -1373,7 +1372,7 @@ #define _di_f_utf_is_word_dash_ //#define _di_f_utf_is_word_dash_plus_ //#define _di_f_utf_is_zero_width_ -#define _di_f_utf_space_ +#define _di_f_utf_space_s_ #define _di_f_utf_string_append_ #define _di_f_utf_string_append_assure_ #define _di_f_utf_string_append_assure_nulless_ @@ -1505,17 +1504,17 @@ //#define _di_f_utf_string_tripless_t_ //#define _di_f_utf_string_triples_t_ //#define _di_f_utf_string_triple_t_ -#define _di_f_utf_substitute_ +#define _di_f_utf_substitute_s_ //#define _di_f_utf_unicode_from_ //#define _di_f_utf_unicode_string_to_ #define _di_f_utf_unicode_to_ -#define _di_f_utf_widths_t_ +#define _di_f_utf_width_e_ //#define _di_fl_control_group_apply_ -//#define _di_fl_conversion_data_flag_ +//#define _di_fl_conversion_data_flag_d_ //#define _di_fl_conversion_data_t_ -//#define _di_fl_conversion_data_t_defines_ +//#define _di_fl_conversion_data_c_ #define _di_fl_conversion_dynamic_partial_to_signed_ #define _di_fl_conversion_dynamic_partial_to_signed_detect_ #define _di_fl_conversion_dynamic_partial_to_unsigned_ @@ -1645,7 +1644,7 @@ #define _di_fl_string_seek_to_utf_character_ //#define _di_fll_error_file_print_ -//#define _di_fll_error_file_type_ +//#define _di_fll_error_file_type_e_ #define _di_fll_error_parameter_integer_print_ //#define _di_fll_error_print_ @@ -1777,7 +1776,7 @@ #define _di_fll_program_parameter_long_print_cannot_use_with_ //#define _di_fll_program_parameter_process_ //#define _di_fll_program_parameter_process_empty_ -//#define _di_fll_program_parameters_ +//#define _di_fll_program_parameter_s_ //#define _di_fll_program_print_help_header_ //#define _di_fll_program_print_help_option_ //#define _di_fll_program_print_help_option_long_ diff --git a/build/stand_alone/firewall.config.h b/build/stand_alone/firewall.config.h index b76163b..a85348a 100644 --- a/build/stand_alone/firewall.config.h +++ b/build/stand_alone/firewall.config.h @@ -4,7 +4,7 @@ #define _di_f_account_by_id_ #define _di_f_account_by_name_ -//#define _di_f_account_defines_ +//#define _di_f_account_d_ #define _di_f_account_group_id_by_name_ #define _di_f_account_group_name_by_id_ #define _di_f_account_id_by_name_ @@ -59,7 +59,7 @@ //#define _di_f_color_context_t_ //#define _di_f_color_format_t_ //#define _di_f_color_load_context_ -//#define _di_f_color_max_size_ +//#define _di_f_color_max_size_d_ //#define _di_f_color_mode_t_ #define _di_f_color_save_1_ #define _di_f_color_save_2_ @@ -69,7 +69,7 @@ //#define _di_f_color_set_context_t_ //#define _di_f_color_set_string_empty_s_ //#define _di_f_color_set_t_ -//#define _di_f_color_string_s_ +//#define _di_f_color_s_ //#define _di_f_color_strings_s_ //#define _di_f_color_t_ //#define _di_f_color_terminal_s_ @@ -94,7 +94,7 @@ //#define _di_f_console_verbosity_ #define _di_f_control_group_copy_ -//#define _di_f_control_group_defines_ +//#define _di_f_control_group_s_ //#define _di_f_control_group_t_ #define _di_f_conversion_character_is_binary_ @@ -107,25 +107,25 @@ //#define _di_f_conversion_character_to_duodecimal_ //#define _di_f_conversion_character_to_hexidecimal_ //#define _di_f_conversion_character_to_octal_ -//#define _di_f_conversion_data_flag_ +//#define _di_f_conversion_data_flag_d_ //#define _di_f_conversion_data_t_ -#define _di_f_conversion_data_t_defines_ -//#define _di_f_conversion_digits_d_ +#define _di_f_conversion_data_d_ +//#define _di_f_conversion_d_ //#define _di_f_conversion_number_signed_print_ #define _di_f_conversion_number_signed_to_string_ //#define _di_f_conversion_number_unsigned_print_ #define _di_f_conversion_number_unsigned_to_string_ //#define _di_f_type_number_64_t_ -#define _di_f_directory_at_ +#define _di_f_directory_at_d_ #define _di_f_directory_create_ #define _di_f_directory_create_at_ #define _di_f_directory_exists_ #define _di_f_directory_exists_at_ -//#define _di_f_directory_flag_ +//#define _di_f_directory_flag_d_ #define _di_f_directory_is_ #define _di_f_directory_is_at_ -//#define _di_f_directory_limitations_ +//#define _di_f_directory_d_ //#define _di_f_directory_list_ #define _di_f_directory_listing_t_ #define _di_f_directory_open_ @@ -134,12 +134,12 @@ #define _di_f_directory_remove_custom_ #define _di_f_directory_statuss_t_ //#define _di_f_directory_status_t_ -//#define _di_f_directory_string_ +//#define _di_f_directory_s_ #define _di_f_directory_touch_ #define _di_f_directory_touch_at_ #define _di_f_environment_clear_ -//#define _di_f_environment_defines_ +//#define _di_f_environment_d_ #define _di_f_environment_exists_ //#define _di_f_environment_get_ #define _di_f_environment_get_all_ @@ -147,7 +147,7 @@ //#define _di_f_environment_set_ #define _di_f_environment_unset_ -//#define _di_f_execute_codes_ +//#define _di_f_execute_e_ //#define _di_f_execute_result_t_ //#define _di_f_execute_scheduler_t_ #define _di_f_execute_status_from_status_ @@ -155,8 +155,8 @@ #define _di_f_file_access_ #define _di_f_file_access_at_ -#define _di_f_file_access_modes_ -#define _di_f_file_at_ +#define _di_f_file_access_mode_d_ +#define _di_f_file_at_d_ #define _di_f_file_clone_ //#define _di_f_file_close_ #define _di_f_file_close_flush_ @@ -173,7 +173,7 @@ #define _di_f_file_descriptor_ //#define _di_f_file_exists_ #define _di_f_file_exists_at_ -//#define _di_f_file_flag_ +//#define _di_f_file_flag_d_ #define _di_f_file_flush_ #define _di_f_file_group_read_ #define _di_f_file_is_ @@ -196,8 +196,8 @@ #define _di_f_file_name_directory_ //#define _di_f_file_open_ #define _di_f_file_open_at_ -//#define _di_f_file_open_modes_ -//#define _di_f_file_operation_strings_ +//#define _di_f_file_open_mode_s_ +//#define _di_f_file_operation_s_ #define _di_f_file_owner_read_ //#define _di_f_file_read_ //#define _di_f_file_read_block_ @@ -209,14 +209,14 @@ #define _di_f_file_role_change_ #define _di_f_file_role_change_at_ #define _di_f_file_seek_ -#define _di_f_file_seeks_ +#define _di_f_file_seeks_d_ #define _di_f_file_size_ #define _di_f_file_size_at_ #define _di_f_file_size_by_id_ #define _di_f_file_stat_ #define _di_f_file_stat_at_ #define _di_f_file_stat_by_id_ -#define _di_f_file_stat_flags_ +#define _di_f_file_stat_flags_e_ //#define _di_f_file_stream_close_ //#define _di_f_file_stream_open_ #define _di_f_file_stream_open_descriptor_ @@ -233,7 +233,7 @@ #define _di_f_file_touch_at_ #define _di_f_file_type_ #define _di_f_file_type_at_ -#define _di_f_file_types_ +#define _di_f_file_type_d_ #define _di_f_file_umask_get_ #define _di_f_file_umask_set_ //#define _di_f_file_write_ @@ -243,18 +243,17 @@ //#define _di_f_fss_apply_delimit_ #define _di_f_fss_apply_delimit_range_ -//#define _di_f_fss_codes_ +//#define _di_f_fss_e_ #define _di_f_fss_commentss_t_ //#define _di_f_fss_comments_t_ //#define _di_f_fss_comment_t_ -#define _di_f_fss_complete_ +#define _di_f_fss_complete_e_ //#define _di_f_fss_contents_t_ //#define _di_f_fss_content_t_ #define _di_f_fss_count_lines_ #define _di_f_fss_count_lines_range_ -//#define _di_f_fss_default_allocation_step_ -//#define _di_f_fss_defaults_ -//#define _di_f_fss_delimiters_ +//#define _di_f_fss_default_d_ +//#define _di_f_fss_placeholder_s_ #define _di_f_fss_delimitss_t_ //#define _di_f_fss_delimits_t_ //#define _di_f_fss_delimit_t_ @@ -337,13 +336,12 @@ #define _di_f_fss_set_t_ //#define _di_f_fss_skip_past_delimit_ //#define _di_f_fss_skip_past_space_ -//#define _di_f_fss_state_flags_ -//#define _di_f_fss_status_codes_ -//#define _di_f_fss_status_error_ -//#define _di_f_fss_status_success_ -//#define _di_f_fss_status_warning_ -//#define _di_f_fss_strings_ -//#define _di_f_fss_types_t_ +//#define _di_f_fss_state_flag_e_ +//#define _di_f_fss_status_codes_e_ +//#define _di_f_fss_status_error_e_ +//#define _di_f_fss_status_success_e_ +//#define _di_f_fss_status_warning_e_ +//#define _di_f_fss_s_ //#define _di_f_limit_process_ #define _di_f_limit_sets_adjust_ @@ -386,7 +384,7 @@ //#define _di_f_limit_value_t_ #define _di_f_memory_adjust_ -//#define _di_f_memory_default_allocation_step_ +//#define _di_f_memory_default_d_ //#define _di_f_memory_delete_ #define _di_f_memory_destroy_ #define _di_f_memory_new_ @@ -402,14 +400,15 @@ #define _di_f_path_change_ #define _di_f_path_change_at_ #define _di_f_path_current_ -//#define _di_f_path_defines_ +//#define _di_f_path_d_ +//#define _di_f_path_s_ #define _di_f_path_is_ #define _di_f_path_is_absolute_ #define _di_f_path_is_relative_ #define _di_f_path_is_relative_current_ #define _di_f_path_real_ -#define _di_f_path_tree_hierarchy_standard_ -#define _di_f_path_tree_kevux_standard_ +#define _di_f_path_tree_hierarchy_standard_d_ +#define _di_f_path_tree_kevux_standard_d_ #define _di_f_pipe_debug_exists_ #define _di_f_pipe_error_exists_ @@ -456,15 +455,15 @@ #define _di_f_print_except_raw_ #define _di_f_print_except_raw_safely_ #define _di_f_print_except_safely_ -//#define _di_f_print_format_flag_ -//#define _di_f_print_format_type_ +//#define _di_f_print_format_flag_d_ +//#define _di_f_print_format_type_e_ //#define _di_f_print_raw_ //#define _di_f_print_raw_safely_ #define _di_f_print_raw_terminated_ //#define _di_f_print_safely_ #define _di_f_print_safely_get_ //#define _di_f_print_safely_terminated_ -//#define _di_f_print_sequences_ +//#define _di_f_print_sequence_s_ //#define _di_f_print_sequences_set_control_s_ //#define _di_f_print_terminated_ //#define _di_f_print_to_ @@ -508,7 +507,7 @@ #define _di_f_print_to_safely_ #define _di_f_print_to_safely_terminated_ #define _di_f_print_to_terminated_ -//#define _di_f_print_write_max_ +//#define _di_f_print_write_max_d_ #define _di_f_signal_action_ //#define _di_f_signal_close_ @@ -1235,7 +1234,7 @@ #define _di_f_utf_buffer_decrement_ //#define _di_f_utf_buffer_increment_ -//#define _di_f_utf_byte_ +//#define _di_f_utf_byte_d_ #define _di_f_utf_character_is_ #define _di_f_utf_character_is_alphabetic_ #define _di_f_utf_character_is_alphabetic_digit_ @@ -1272,7 +1271,7 @@ #define _di_f_utf_character_unicode_string_to_ #define _di_f_utf_character_unicode_to_ //#define _di_f_utf_char_t_ -#define _di_f_utf_char_t_codes_ +#define _di_f_utf_char_s_ #define _di_f_utf_char_to_char_ //#define _di_f_utf_char_to_character_ #define _di_f_utf_is_ @@ -1307,7 +1306,7 @@ #define _di_f_utf_is_word_dash_ #define _di_f_utf_is_word_dash_plus_ //#define _di_f_utf_is_zero_width_ -#define _di_f_utf_space_ +#define _di_f_utf_space_s_ #define _di_f_utf_string_append_ #define _di_f_utf_string_append_assure_ #define _di_f_utf_string_append_assure_nulless_ @@ -1439,17 +1438,17 @@ //#define _di_f_utf_string_tripless_t_ //#define _di_f_utf_string_triples_t_ //#define _di_f_utf_string_triple_t_ -#define _di_f_utf_substitute_ +#define _di_f_utf_substitute_s_ #define _di_f_utf_unicode_from_ #define _di_f_utf_unicode_string_to_ #define _di_f_utf_unicode_to_ -#define _di_f_utf_widths_t_ +#define _di_f_utf_width_e_ //#define _di_fl_control_group_apply_ -//#define _di_fl_conversion_data_flag_ +//#define _di_fl_conversion_data_flag_d_ //#define _di_fl_conversion_data_t_ -#define _di_fl_conversion_data_t_defines_ +#define _di_fl_conversion_data_c_ #define _di_fl_conversion_dynamic_partial_to_signed_ #define _di_fl_conversion_dynamic_partial_to_signed_detect_ #define _di_fl_conversion_dynamic_partial_to_unsigned_ @@ -1567,7 +1566,7 @@ #define _di_fl_string_seek_to_utf_character_ //#define _di_fll_error_file_print_ -//#define _di_fll_error_file_type_ +//#define _di_fll_error_file_type_e_ #define _di_fll_error_parameter_integer_print_ //#define _di_fll_error_print_ @@ -1693,7 +1692,7 @@ #define _di_fll_program_parameter_long_print_cannot_use_with_ //#define _di_fll_program_parameter_process_ //#define _di_fll_program_parameter_process_empty_ -//#define _di_fll_program_parameters_ +//#define _di_fll_program_parameter_s_ //#define _di_fll_program_print_help_header_ //#define _di_fll_program_print_help_option_ //#define _di_fll_program_print_help_option_long_ diff --git a/build/stand_alone/utf8.config.h b/build/stand_alone/utf8.config.h index 862cce9..a761b48 100644 --- a/build/stand_alone/utf8.config.h +++ b/build/stand_alone/utf8.config.h @@ -8,7 +8,7 @@ //#define _di_f_color_context_t_ //#define _di_f_color_format_t_ //#define _di_f_color_load_context_ -//#define _di_f_color_max_size_ +//#define _di_f_color_max_size_d_ //#define _di_f_color_mode_t_ #define _di_f_color_save_1_ #define _di_f_color_save_2_ @@ -18,7 +18,7 @@ //#define _di_f_color_set_context_t_ //#define _di_f_color_set_string_empty_s_ //#define _di_f_color_set_t_ -//#define _di_f_color_string_s_ +//#define _di_f_color_s_ //#define _di_f_color_strings_s_ //#define _di_f_color_t_ //#define _di_f_color_terminal_s_ @@ -52,10 +52,10 @@ //#define _di_f_conversion_character_to_duodecimal_ //#define _di_f_conversion_character_to_hexidecimal_ //#define _di_f_conversion_character_to_octal_ -//#define _di_f_conversion_data_flag_ +//#define _di_f_conversion_data_flag_d_ //#define _di_f_conversion_data_t_ -#define _di_f_conversion_data_t_defines_ -//#define _di_f_conversion_digits_d_ +#define _di_f_conversion_data_d_ +//#define _di_f_conversion_d_ //#define _di_f_conversion_number_signed_print_ #define _di_f_conversion_number_signed_to_string_ //#define _di_f_conversion_number_unsigned_print_ @@ -63,8 +63,8 @@ #define _di_f_file_access_ #define _di_f_file_access_at_ -#define _di_f_file_access_modes_ -#define _di_f_file_at_ +#define _di_f_file_access_mode_d_ +#define _di_f_file_at_d_ #define _di_f_file_clone_ //#define _di_f_file_close_ #define _di_f_file_close_flush_ @@ -81,7 +81,7 @@ #define _di_f_file_descriptor_ //#define _di_f_file_exists_ #define _di_f_file_exists_at_ -//#define _di_f_file_flag_ +//#define _di_f_file_flag_d_ #define _di_f_file_flush_ #define _di_f_file_group_read_ #define _di_f_file_is_ @@ -104,8 +104,8 @@ #define _di_f_file_name_directory_ #define _di_f_file_open_ #define _di_f_file_open_at_ -//#define _di_f_file_open_modes_ -//#define _di_f_file_operation_strings_ +//#define _di_f_file_open_mode_s_ +//#define _di_f_file_operation_s_ #define _di_f_file_owner_read_ #define _di_f_file_read_ #define _di_f_file_read_block_ @@ -117,14 +117,14 @@ #define _di_f_file_role_change_ #define _di_f_file_role_change_at_ #define _di_f_file_seek_ -#define _di_f_file_seeks_ +#define _di_f_file_seeks_d_ #define _di_f_file_size_ #define _di_f_file_size_at_ #define _di_f_file_size_by_id_ #define _di_f_file_stat_ #define _di_f_file_stat_at_ #define _di_f_file_stat_by_id_ -#define _di_f_file_stat_flags_ +#define _di_f_file_stat_flags_e_ //#define _di_f_file_stream_close_ //#define _di_f_file_stream_open_ #define _di_f_file_stream_open_descriptor_ @@ -141,7 +141,7 @@ #define _di_f_file_touch_at_ #define _di_f_file_type_ #define _di_f_file_type_at_ -#define _di_f_file_types_ +#define _di_f_file_type_d_ #define _di_f_file_umask_get_ #define _di_f_file_umask_set_ #define _di_f_file_write_ @@ -150,7 +150,7 @@ #define _di_f_file_write_until_ #define _di_f_memory_adjust_ -//#define _di_f_memory_default_allocation_step_ +//#define _di_f_memory_default_d_ #define _di_f_memory_delete_ #define _di_f_memory_destroy_ #define _di_f_memory_new_ @@ -208,15 +208,15 @@ #define _di_f_print_except_raw_ #define _di_f_print_except_raw_safely_ #define _di_f_print_except_safely_ -//#define _di_f_print_format_flag_ -//#define _di_f_print_format_type_ +//#define _di_f_print_format_flag_d_ +//#define _di_f_print_format_type_e_ //#define _di_f_print_raw_ //#define _di_f_print_raw_safely_ #define _di_f_print_raw_terminated_ //#define _di_f_print_safely_ #define _di_f_print_safely_get_ //#define _di_f_print_safely_terminated_ -//#define _di_f_print_sequences_ +//#define _di_f_print_sequence_s_ //#define _di_f_print_sequences_set_control_s_ //#define _di_f_print_terminated_ #define _di_f_print_to_ @@ -260,7 +260,7 @@ #define _di_f_print_to_safely_ #define _di_f_print_to_safely_terminated_ #define _di_f_print_to_terminated_ -//#define _di_f_print_write_max_ +//#define _di_f_print_write_max_d_ #define _di_f_signal_action_ //#define _di_f_signal_close_ @@ -751,7 +751,7 @@ #define _di_f_utf_buffer_decrement_ #define _di_f_utf_buffer_increment_ -//#define _di_f_utf_byte_ +//#define _di_f_utf_byte_d_ #define _di_f_utf_character_is_ #define _di_f_utf_character_is_alphabetic_ #define _di_f_utf_character_is_alphabetic_digit_ @@ -788,7 +788,7 @@ #define _di_f_utf_character_unicode_string_to_ #define _di_f_utf_character_unicode_to_ //#define _di_f_utf_char_t_ -#define _di_f_utf_char_t_codes_ +#define _di_f_utf_char_s_ #define _di_f_utf_char_to_char_ //#define _di_f_utf_char_to_character_ #define _di_f_utf_is_ @@ -823,7 +823,7 @@ #define _di_f_utf_is_word_dash_ #define _di_f_utf_is_word_dash_plus_ #define _di_f_utf_is_zero_width_ -#define _di_f_utf_space_ +#define _di_f_utf_space_s_ #define _di_f_utf_string_append_ #define _di_f_utf_string_append_assure_ #define _di_f_utf_string_append_assure_nulless_ @@ -955,15 +955,15 @@ //#define _di_f_utf_string_tripless_t_ //#define _di_f_utf_string_triples_t_ //#define _di_f_utf_string_triple_t_ -#define _di_f_utf_substitute_ +#define _di_f_utf_substitute_s_ //#define _di_f_utf_unicode_from_ //#define _di_f_utf_unicode_string_to_ //#define _di_f_utf_unicode_to_ -#define _di_f_utf_widths_t_ +#define _di_f_utf_width_e_ -//#define _di_fl_conversion_data_flag_ +//#define _di_fl_conversion_data_flag_d_ //#define _di_fl_conversion_data_t_ -//#define _di_fl_conversion_data_t_defines_ +//#define _di_fl_conversion_data_c_ #define _di_fl_conversion_dynamic_partial_to_signed_ #define _di_fl_conversion_dynamic_partial_to_signed_detect_ #define _di_fl_conversion_dynamic_partial_to_unsigned_ @@ -1055,7 +1055,7 @@ #define _di_fl_string_seek_to_utf_character_ //#define _di_fll_error_file_print_ -//#define _di_fll_error_file_type_ +//#define _di_fll_error_file_type_e_ #define _di_fll_error_parameter_integer_print_ //#define _di_fll_error_print_ @@ -1150,7 +1150,7 @@ #define _di_fll_program_parameter_long_print_cannot_use_with_ //#define _di_fll_program_parameter_process_ //#define _di_fll_program_parameter_process_empty_ -#define _di_fll_program_parameters_ +#define _di_fll_program_parameter_s_ //#define _di_fll_program_print_help_header_ //#define _di_fll_program_print_help_option_ #define _di_fll_program_print_help_option_long_ diff --git a/level_0/f_account/c/account/common.h b/level_0/f_account/c/account/common.h index c90adf9..632f75a 100644 --- a/level_0/f_account/c/account/common.h +++ b/level_0/f_account/c/account/common.h @@ -23,10 +23,10 @@ extern "C" { * - first: provide a fallback max length for when sysconf(_SC_GETPW_R_SIZE_MAX) return -1 (aka: infinite). * - second: provide a fallback max length for when F_account_pwd_length_fallback_first_d is too small. */ -#ifndef _di_f_account_defines_ +#ifndef _di_f_account_d_ #define F_account_pwd_length_fallback_first_d 8192 #define F_account_pwd_length_fallback_second_d 32767 -#endif // _di_f_account_defines_ +#endif // _di_f_account_d_ /** * Provide a complete standard password account structure. diff --git a/level_0/f_color/c/color/common.h b/level_0/f_color/c/color/common.h index 52099f2..52a95fd 100644 --- a/level_0/f_color/c/color/common.h +++ b/level_0/f_color/c/color/common.h @@ -23,10 +23,10 @@ extern "C" { * * A color max size terminated represents the max size with the terminating null. */ -#ifndef _di_f_color_max_size_ +#ifndef _di_f_color_max_size_d_ #define F_color_max_size_d 7 #define F_color_max_size_terminated_d 8 -#endif // _di_f_color_max_size_ +#endif // _di_f_color_max_size_d_ /** * Define codes representing color sets. @@ -114,7 +114,7 @@ extern "C" { * - bright_teal_bg: String used to describe bright teal backgound color code. * - bright_white_bg: String used to describe bright white backgound color code. */ -#ifndef _di_f_color_string_s_ +#ifndef _di_f_color_s_ #define F_color_string_begin_s "\033[" #define F_color_string_end_s "m" #define F_color_string_medium_s ";" @@ -243,7 +243,7 @@ extern "C" { extern const f_string_static_t f_color_string_code_bright_purple_bg_s; extern const f_string_static_t f_color_string_code_bright_teal_bg_s; extern const f_string_static_t f_color_string_code_bright_white_bg_s; -#endif // _di_f_color_string_s_ +#endif // _di_f_color_s_ /** * Color modes communicate how the color is supposed to be. diff --git a/level_0/f_control_group/c/control_group/common.c b/level_0/f_control_group/c/control_group/common.c index 3eebb8a..5d117ca 100644 --- a/level_0/f_control_group/c/control_group/common.c +++ b/level_0/f_control_group/c/control_group/common.c @@ -4,11 +4,11 @@ extern "C" { #endif -#ifndef _di_f_control_group_defines_ +#ifndef _di_f_control_group_s_ const f_string_static_t f_control_group_path_system_default_s = macro_f_string_static_t_initialize(F_control_group_path_system_default_s, 0, F_control_group_path_system_default_s_length); const f_string_static_t f_control_group_path_system_prefix_s = macro_f_string_static_t_initialize(F_control_group_path_system_prefix_s, 0, F_control_group_path_system_prefix_s_length); const f_string_static_t f_control_group_path_system_suffix_s = macro_f_string_static_t_initialize(F_control_group_path_system_suffix_s, 0, F_control_group_path_system_suffix_s_length); -#endif // _di_f_control_group_defines_ +#endif // _di_f_control_group_s_ #ifdef __cplusplus } // extern "C" diff --git a/level_0/f_control_group/c/control_group/common.h b/level_0/f_control_group/c/control_group/common.h index 5389ec9..2264735 100644 --- a/level_0/f_control_group/c/control_group/common.h +++ b/level_0/f_control_group/c/control_group/common.h @@ -19,7 +19,7 @@ extern "C" { /** * The defines for control groups. */ -#ifndef _di_f_control_group_defines_ +#ifndef _di_f_control_group_s_ #define F_control_group_path_system_default_s "sys/fs/cgroup/" #define F_control_group_path_system_prefix_s "/" #define F_control_group_path_system_suffix_s "/cgroup.procs" @@ -33,7 +33,7 @@ extern "C" { extern const f_string_static_t f_control_group_path_system_default_s; extern const f_string_static_t f_control_group_path_system_prefix_s; extern const f_string_static_t f_control_group_path_system_suffix_s; -#endif // _di_f_control_group_defines_ +#endif // _di_f_control_group_s_ /** * Provide a structure for associating some process with one or more control groups (cgroups). diff --git a/level_0/f_conversion/c/conversion/common.c b/level_0/f_conversion/c/conversion/common.c index a509f5f..9c14609 100644 --- a/level_0/f_conversion/c/conversion/common.c +++ b/level_0/f_conversion/c/conversion/common.c @@ -4,13 +4,13 @@ extern "C" { #endif -#ifndef _di_f_conversion_data_t_defines_ +#ifndef _di_f_conversion_data_c_ const f_conversion_data_t f_conversion_data_base_2_c = macro_f_conversion_data_t_initialize(2, 0, 1); const f_conversion_data_t f_conversion_data_base_8_c = macro_f_conversion_data_t_initialize(8, 0, 1); const f_conversion_data_t f_conversion_data_base_10_c = macro_f_conversion_data_t_initialize(10, 0, 1); const f_conversion_data_t f_conversion_data_base_12_c = macro_f_conversion_data_t_initialize(12, 0, 1); const f_conversion_data_t f_conversion_data_base_16_c = macro_f_conversion_data_t_initialize(16, 0, 1); -#endif // _di_f_conversion_data_t_defines_ +#endif // _di_f_conversion_data_c_ #ifdef __cplusplus } // extern "C" diff --git a/level_0/f_conversion/c/conversion/common.h b/level_0/f_conversion/c/conversion/common.h index b2d0d17..b8a7c50 100644 --- a/level_0/f_conversion/c/conversion/common.h +++ b/level_0/f_conversion/c/conversion/common.h @@ -23,7 +23,7 @@ extern "C" { * * 64-bit is the designed default. */ -#ifndef _di_f_conversion_digits_d_ +#ifndef _di_f_conversion_d_ #ifndef _di_f_type_number_64_t_ #define F_conversion_digits_binary_unsigned_d 64 #define F_conversion_digits_binary_signed_d 63 @@ -74,7 +74,7 @@ extern "C" { #define F_conversion_digits_hexidecimal_unsigned_d 32 #define F_conversion_digits_hexidecimal_signed_d 32 #endif // _en_f_type_number_128_t_ -#endif // _di_f_conversion_digits_d_ +#endif // _di_f_conversion_d_ /** * Provide a structure for customizing conversion settings for a conversion function to use. @@ -111,13 +111,13 @@ extern "C" { * - 12: Basic base-12 conversion structure. * - 16: Basic base-16 conversion structure. */ -#ifndef _di_f_conversion_data_t_defines_ +#ifndef _di_f_conversion_data_c_ extern const f_conversion_data_t f_conversion_data_base_2_c; extern const f_conversion_data_t f_conversion_data_base_8_c; extern const f_conversion_data_t f_conversion_data_base_10_c; extern const f_conversion_data_t f_conversion_data_base_12_c; extern const f_conversion_data_t f_conversion_data_base_16_c; -#endif // _di_f_conversion_data_t_defines_ +#endif // _di_f_conversion_data_c_ /** * Define flags used by f_conversion_data_t. @@ -142,7 +142,7 @@ extern "C" { * - base 12: 0d, 0D. * - base 16: 0x, 0X. */ -#ifndef _di_f_conversion_data_flag_ +#ifndef _di_f_conversion_data_flag_d_ #define F_conversion_data_flag_align_left_d 0x1 #define F_conversion_data_flag_base_prepend_d 0x2 #define F_conversion_data_flag_base_upper_d 0x4 @@ -154,7 +154,7 @@ extern "C" { #define F_conversion_data_flag_sign_always_d 0x100 #define F_conversion_data_flag_sign_pad_d 0x200 #define F_conversion_data_flag_zeros_leading_d 0x400 -#endif // _di_f_conversion_data_flag_ +#endif // _di_f_conversion_data_flag_d_ #ifdef __cplusplus } // extern "C" diff --git a/level_0/f_directory/c/directory/common.c b/level_0/f_directory/c/directory/common.c index d658a00..f556f54 100644 --- a/level_0/f_directory/c/directory/common.c +++ b/level_0/f_directory/c/directory/common.c @@ -4,10 +4,10 @@ extern "C" { #endif -#ifndef _di_f_directory_string_ +#ifndef _di_f_directory_s_ const f_string_static_t f_directory_back_s = macro_f_string_static_t_initialize(F_directory_back_s, 0, F_directory_back_s_length); const f_string_static_t f_directory_current_s = macro_f_string_static_t_initialize(F_directory_current_s, 0, F_directory_current_s_length); -#endif // _di_f_directory_string_ +#endif // _di_f_directory_s_ #ifdef __cplusplus } // extern "C" diff --git a/level_0/f_directory/c/directory/common.h b/level_0/f_directory/c/directory/common.h index ccc1ccd..2992134 100644 --- a/level_0/f_directory/c/directory/common.h +++ b/level_0/f_directory/c/directory/common.h @@ -16,7 +16,7 @@ extern "C" { #endif -#ifndef _di_f_directory_string_ +#ifndef _di_f_directory_s_ #define F_directory_back_s ".." #define F_directory_current_s "." @@ -25,12 +25,12 @@ extern "C" { extern const f_string_static_t f_directory_back_s; extern const f_string_static_t f_directory_current_s; -#endif // _di_f_directory_string_ +#endif // _di_f_directory_s_ /** * Directory AT_* define related functionality. */ -#ifndef _di_f_directory_at_ +#ifndef _di_f_directory_at_d_ #define F_directory_at_current_working_d -100 #define F_directory_at_symlink_follow_d 0x400 #define F_directory_at_symlink_follow_no_d 0x100 @@ -41,12 +41,12 @@ extern "C" { #define F_directory_at_statx_sync_as_stat_d 0x0000 #define F_directory_at_statx_sync_force_d 0x2000 #define F_directory_at_statx_sync_no_d 0x4000 -#endif // _di_f_directory_at_ +#endif // _di_f_directory_at_d_ /** * Directory flag related functionality. */ -#ifndef _di_f_directory_flag_ +#ifndef _di_f_directory_flag_d_ // directory open flags #define F_directory_flag_append_d O_APPEND @@ -69,7 +69,7 @@ extern "C" { #define F_directory_flag_temporary_d O_TMPFILE #define F_directory_flag_truncate_d O_TRUNC #define F_directory_flag_write_only_d O_WRONLY -#endif // _di_f_directory_flag_ +#endif // _di_f_directory_flag_d_ /** * Provide limitations and related defines. @@ -77,7 +77,7 @@ extern "C" { * The directory max descriptors is more of a default than a rule. * This is generally used for nftw() recursive operations to reduce the number of open file descriptors during recursion. */ -#ifndef _di_f_directory_limitations_ +#ifndef _di_f_directory_d_ #define F_directory_default_allocation_step_d F_memory_default_allocation_small_d #define F_directory_descriptors_max_d 255 @@ -87,7 +87,7 @@ extern "C" { #else #define F_directory_name_max_d 255 #endif // NAME_MAX -#endif // _di_f_directory_limitations_ +#endif // _di_f_directory_d_ #ifdef __cplusplus } // extern "C" diff --git a/level_0/f_environment/c/environment/common.h b/level_0/f_environment/c/environment/common.h index 88651d3..e4cbed1 100644 --- a/level_0/f_environment/c/environment/common.h +++ b/level_0/f_environment/c/environment/common.h @@ -19,9 +19,9 @@ extern "C" { /** * Environment related defines. */ -#ifndef _di_f_environment_defines_ +#ifndef _di_f_environment_d_ #define f_environment_max_length F_string_t_size_d -#endif // _di_f_environment_defines_ +#endif // _di_f_environment_d_ #ifdef __cplusplus } // extern "C" diff --git a/level_0/f_execute/c/execute/common.h b/level_0/f_execute/c/execute/common.h index d2d0167..bd4bf24 100644 --- a/level_0/f_execute/c/execute/common.h +++ b/level_0/f_execute/c/execute/common.h @@ -39,7 +39,7 @@ extern "C" { * Warning: F_execute and F_execute_not are F_status_t status codes and are not F_execute_codes. * The F_execute_off is the execute code equivalent of F_execute_not. */ -#ifndef _di_f_execute_codes_ +#ifndef _di_f_execute_e_ enum { F_execute_none = 0, F_execute_failure, @@ -150,7 +150,7 @@ extern "C" { // Required. F_execute_code_last = 255, }; // enum -#endif // _di_f_execute_codes_ +#endif // _di_f_execute_e_ /** * A structure representing a scheduler and its parameters for execution. diff --git a/level_0/f_file/c/file/common.c b/level_0/f_file/c/file/common.c index 7356b86..410b079 100644 --- a/level_0/f_file/c/file/common.c +++ b/level_0/f_file/c/file/common.c @@ -4,7 +4,7 @@ extern "C" { #endif -#ifndef _di_f_file_types_ +#ifndef _di_f_file_type_d_ const f_string_static_t f_file_type_name_block_s = macro_f_string_static_t_initialize(F_file_type_name_block_s, 0, F_file_type_name_block_s_length); const f_string_static_t f_file_type_name_character_s = macro_f_string_static_t_initialize(F_file_type_name_character_s, 0, F_file_type_name_character_s_length); const f_string_static_t f_file_type_name_directory_s = macro_f_string_static_t_initialize(F_file_type_name_directory_s, 0, F_file_type_name_directory_s_length); @@ -12,18 +12,18 @@ extern "C" { const f_string_static_t f_file_type_name_link_s = macro_f_string_static_t_initialize(F_file_type_name_link_s, 0, F_file_type_name_link_s_length); const f_string_static_t f_file_type_name_regular_s = macro_f_string_static_t_initialize(F_file_type_name_regular_s, 0, F_file_type_name_regular_s_length); const f_string_static_t f_file_type_name_socket_s = macro_f_string_static_t_initialize(F_file_type_name_socket_s, 0, F_file_type_name_socket_s_length); -#endif // _di_f_file_types_ +#endif // _di_f_file_type_d_ -#ifndef _di_f_file_open_modes_ +#ifndef _di_f_file_open_mode_s_ const f_string_static_t f_file_open_mode_append_s = macro_f_string_static_t_initialize(F_file_open_mode_append_s, 0, F_file_open_mode_append_s_length); const f_string_static_t f_file_open_mode_read_s = macro_f_string_static_t_initialize(F_file_open_mode_read_s, 0, F_file_open_mode_read_s_length); const f_string_static_t f_file_open_mode_read_append_s = macro_f_string_static_t_initialize(F_file_open_mode_read_append_s, 0, F_file_open_mode_read_append_s_length); const f_string_static_t f_file_open_mode_read_truncate_s = macro_f_string_static_t_initialize(F_file_open_mode_read_truncate_s, 0, F_file_open_mode_read_truncate_s_length); const f_string_static_t f_file_open_mode_read_write_s = macro_f_string_static_t_initialize(F_file_open_mode_read_write_s, 0, F_file_open_mode_read_write_s_length); const f_string_static_t f_file_open_mode_truncate_s = macro_f_string_static_t_initialize(F_file_open_mode_truncate_s, 0, F_file_open_mode_truncate_s_length); -#endif // _di_f_file_open_modes_ +#endif // _di_f_file_open_mode_s_ -#ifndef _di_f_file_operation_strings_ +#ifndef _di_f_file_operation_s_ const f_string_static_t f_file_operation_access_s = macro_f_string_static_t_initialize(F_file_operation_access_s, 0, F_file_operation_access_s_length); const f_string_static_t f_file_operation_analyze_s = macro_f_string_static_t_initialize(F_file_operation_analyze_s, 0, F_file_operation_analyze_s_length); const f_string_static_t f_file_operation_append_s = macro_f_string_static_t_initialize(F_file_operation_append_s, 0, F_file_operation_append_s_length); @@ -68,7 +68,7 @@ extern "C" { const f_string_static_t f_file_operation_verify_s = macro_f_string_static_t_initialize(F_file_operation_verify_s, 0, F_file_operation_verify_s_length); const f_string_static_t f_file_operation_wipe_s = macro_f_string_static_t_initialize(F_file_operation_wipe_s, 0, F_file_operation_wipe_s_length); const f_string_static_t f_file_operation_write_s = macro_f_string_static_t_initialize(F_file_operation_write_s, 0, F_file_operation_write_s_length); -#endif // _di_f_file_operation_strings_ +#endif // _di_f_file_operation_s_ #ifdef __cplusplus } // extern "C" diff --git a/level_0/f_file/c/file/common.h b/level_0/f_file/c/file/common.h index f51bfb8..6307e4a 100644 --- a/level_0/f_file/c/file/common.h +++ b/level_0/f_file/c/file/common.h @@ -28,13 +28,13 @@ extern "C" { * - hole: sets the file pointer from this many bytes from the end of the file, relative to the next hole. * - to: sets the file pointer from this many bytes relative to the current position. */ -#ifndef _di_f_file_seeks_ +#ifndef _di_f_file_seeks_d_ #define macro_f_file_seek_begin(file, bytes) fseek(file, bytes, SEEK_SET) #define macro_f_file_seek_data(file, bytes) fseek(file, bytes, SEEK_DATA) #define macro_f_file_seek_end(file) fseek(file, bytes, SEEK_END) #define macro_f_file_seek_hole(file, bytes) fseek(file, bytes, SEEK_HOLE) #define macro_f_file_seek_to(file, bytes) fseek(file, bytes, SEEK_CUR) -#endif // _di_f_file_seeks_ +#endif // _di_f_file_seeks_d_ /** * Provide file type macros. @@ -50,17 +50,8 @@ extern "C" { * - link: The file type is a file link. * - regular: The file type is a regular file. * - socket: The file type is a socket file. - * - * F_file_type_name_*: - * - block: A string representing the block file type. - * - character: A string representing the character file type. - * - directory: A string representing the directory file type. - * - fifo: A string representing the fifo file type. - * - link: A string representing the link file type. - * - regular: A string representing the regular file type. - * - socket: A string representing the socket file type. */ -#ifndef _di_f_file_types_ +#ifndef _di_f_file_type_d_ #define F_file_type_block_d S_IFBLK #define F_file_type_character_d S_IFCHR #define F_file_type_directory_d S_IFDIR @@ -70,6 +61,30 @@ extern "C" { #define F_file_type_regular_d S_IFREG #define F_file_type_socket_d S_IFSOCK + #define macro_f_file_type_get(mode) (F_file_type_mask_d & mode) + + #define macro_f_file_type_is_block(mode) (macro_f_file_type_get(mode) == F_file_type_block_d) + #define macro_f_file_type_is_character(mode) (macro_f_file_type_get(mode) == F_file_type_character_d) + #define macro_f_file_type_is_directory(mode) (macro_f_file_type_get(mode) == F_file_type_directory_d) + #define macro_f_file_type_is_fifo(mode) (macro_f_file_type_get(mode) == F_file_type_fifo_d) + #define macro_f_file_type_is_link(mode) (macro_f_file_type_get(mode) == F_file_type_link_d) + #define macro_f_file_type_is_regular(mode) (macro_f_file_type_get(mode) == F_file_type_regular_d) + #define macro_f_file_type_is_socket(mode) (macro_f_file_type_get(mode) == F_file_type_socket_d) +#endif // _di_f_file_type_d_ + +/** + * Provide file type strings. + * + * F_file_type_name_*: + * - block: A string representing the block file type. + * - character: A string representing the character file type. + * - directory: A string representing the directory file type. + * - fifo: A string representing the fifo file type. + * - link: A string representing the link file type. + * - regular: A string representing the regular file type. + * - socket: A string representing the socket file type. + */ +#ifndef _di_f_file_type_s_ #define F_file_type_name_block_s "block" #define F_file_type_name_character_s "character" #define F_file_type_name_directory_s "directory" @@ -86,16 +101,6 @@ extern "C" { #define F_file_type_name_regular_s_length 7 #define F_file_type_name_socket_s_length 6 - #define macro_f_file_type_get(mode) (F_file_type_mask_d & mode) - - #define macro_f_file_type_is_block(mode) (macro_f_file_type_get(mode) == F_file_type_block_d) - #define macro_f_file_type_is_character(mode) (macro_f_file_type_get(mode) == F_file_type_character_d) - #define macro_f_file_type_is_directory(mode) (macro_f_file_type_get(mode) == F_file_type_directory_d) - #define macro_f_file_type_is_fifo(mode) (macro_f_file_type_get(mode) == F_file_type_fifo_d) - #define macro_f_file_type_is_link(mode) (macro_f_file_type_get(mode) == F_file_type_link_d) - #define macro_f_file_type_is_regular(mode) (macro_f_file_type_get(mode) == F_file_type_regular_d) - #define macro_f_file_type_is_socket(mode) (macro_f_file_type_get(mode) == F_file_type_socket_d) - extern const f_string_static_t f_file_type_name_block_s; extern const f_string_static_t f_file_type_name_character_s; extern const f_string_static_t f_file_type_name_directory_s; @@ -103,7 +108,7 @@ extern "C" { extern const f_string_static_t f_file_type_name_link_s; extern const f_string_static_t f_file_type_name_regular_s; extern const f_string_static_t f_file_type_name_socket_s; -#endif // _di_f_file_types_ +#endif // _di_f_file_type_s_ /** * Provide macros for file access mode operations. @@ -114,12 +119,12 @@ extern "C" { * - read: Check if file can be read. * - write: Check if file can be written to. */ -#ifndef _di_f_file_access_modes_ +#ifndef _di_f_file_access_mode_d_ #define F_file_access_mode_execute_d X_OK #define F_file_access_mode_exist_d F_OK #define F_file_access_mode_read_d R_OK #define F_file_access_mode_write_d W_OK -#endif // _di_f_file_access_modes_ +#endif // _di_f_file_access_mode_d_ /** * Provide file open mode macros. @@ -132,7 +137,7 @@ extern "C" { * - read_write: Open file in read write mode. * - truncate: Open file in truncate mode. */ -#ifndef _di_f_file_open_modes_ +#ifndef _di_f_file_open_mode_s_ #define F_file_open_mode_append_s "a" #define F_file_open_mode_read_s "r" #define F_file_open_mode_read_append_s "a+" @@ -153,12 +158,12 @@ extern "C" { extern const f_string_static_t f_file_open_mode_read_truncate_s; extern const f_string_static_t f_file_open_mode_read_write_s; extern const f_string_static_t f_file_open_mode_truncate_s; -#endif // _di_f_file_open_modes_ +#endif // _di_f_file_open_mode_s_ /** * File AT_* define related functionality. */ -#ifndef _di_f_file_at_ +#ifndef _di_f_file_at_d_ #define F_file_at_current_working_d -100 #define F_file_at_symlink_follow_d 0x400 #define F_file_at_symlink_follow_no_d 0x100 @@ -169,12 +174,12 @@ extern "C" { #define F_file_at_statx_sync_as_stat_d 0x0000 #define F_file_at_statx_sync_force_d 0x2000 #define F_file_at_statx_sync_no_d 0x4000 -#endif // _di_f_file_at_ +#endif // _di_f_file_at_d_ /** * File flag related functionality. */ -#ifndef _di_f_file_flag_ +#ifndef _di_f_file_flag_d_ // file open flags #define F_file_flag_append_d O_APPEND @@ -272,7 +277,7 @@ extern "C" { #define F_file_flag_large_async_create_new_ro_d (O_LARGEFILE | O_ASYNC | O_CREAT | O_EXCL | O_RDONLY) #define F_file_flag_large_async_create_new_wo_d (O_LARGEFILE | O_ASYNC | O_CREAT | O_EXCL | O_WRONLY) #define F_file_flag_large_async_create_new_rw_d (O_LARGEFILE | O_ASYNC | O_CREAT | O_EXCL | O_RDRW) -#endif // _di_f_file_flag_ +#endif // _di_f_file_flag_d_ /** * File mode related functionality. @@ -418,7 +423,7 @@ extern "C" { * - owner: Copy the owner. * - reference: Do not perform dereference. */ -#ifndef _di_f_file_stat_flags_ +#ifndef _di_f_file_stat_flags_e_ enum { f_file_stat_flag_none_e = 0, f_file_stat_flag_exclusive_e = 0x1, @@ -426,7 +431,7 @@ extern "C" { f_file_stat_flag_owner_e = 0x4, f_file_stat_flag_reference_e = 0x8, }; // enum -#endif // _di_f_file_stat_flags_ +#endif // _di_f_file_stat_flags_e_ /** * Provide common file operation strings. @@ -477,7 +482,7 @@ extern "C" { * - wipe: Wipe a file. * - write: Write a file. */ -#ifndef _di_f_file_operation_strings_ +#ifndef _di_f_file_operation_s_ #define F_file_operation_access_s "access" #define F_file_operation_analyze_s "analyze" #define F_file_operation_append_s "append" @@ -612,7 +617,7 @@ extern "C" { extern const f_string_static_t f_file_operation_verify_s; extern const f_string_static_t f_file_operation_wipe_s; extern const f_string_static_t f_file_operation_write_s; -#endif // _di_f_file_operation_strings_ +#endif // _di_f_file_operation_s_ #ifdef __cplusplus } // extern "C" diff --git a/level_0/f_fss/c/fss/common.c b/level_0/f_fss/c/fss/common.c index f5b0174..7594b85 100644 --- a/level_0/f_fss/c/fss/common.c +++ b/level_0/f_fss/c/fss/common.c @@ -4,10 +4,10 @@ extern "C" { #endif -#ifndef _di_f_fss_strings_ +#ifndef _di_f_fss_s_ const f_string_static_t f_fss_string_header_s = macro_f_string_static_t_initialize(F_fss_string_header_s, 0, F_fss_string_header_s_length); const f_string_static_t f_fss_string_payload_s = macro_f_string_static_t_initialize(F_fss_string_payload_s, 0, F_fss_string_payload_s_length); -#endif // _di_f_fss_strings_ +#endif // _di_f_fss_s_ #ifdef __cplusplus } // extern "C" diff --git a/level_0/f_fss/c/fss/common.h b/level_0/f_fss/c/fss/common.h index ef61bc0..ed1b5c1 100644 --- a/level_0/f_fss/c/fss/common.h +++ b/level_0/f_fss/c/fss/common.h @@ -19,7 +19,7 @@ extern "C" { /** * FSS-specific types. */ -#ifndef _di_f_fss_types_t_ +#ifndef _di_f_fss_type_s_ #define F_fss_brace_close_s F_string_ascii_brace_close_s #define F_fss_brace_open_s F_string_ascii_brace_open_s #define F_fss_colon_s F_string_ascii_colon_s @@ -94,18 +94,18 @@ extern "C" { #define f_fss_type_header_part4_s f_fss_s_s #define f_fss_type_header_part5_s f_fss_minus_s #define f_fss_type_header_close_s f_string_eol_s -#endif // _di_f_fss_types_t_ +#endif // _di_f_fss_type_s_ /** * FSS-specific delimiters. */ -#ifndef _di_f_fss_delimiters_ +#ifndef _di_f_fss_placeholder_s_ #define F_fss_placeholder_s F_string_placeholder_s #define F_fss_placeholder_s_length F_string_placeholder_s_length #define f_fss_placeholder_s f_string_placeholder_s -#endif //_di_f_fss_delimiters_ +#endif //_di_f_fss_placeholder_s_ /** * Provide strings used by FSS. @@ -114,7 +114,7 @@ extern "C" { * - header: String representing the header Object name. * - payload: String representing the payload Object name. */ -#ifndef _di_f_fss_strings_ +#ifndef _di_f_fss_s_ #define F_fss_string_header_s "header" #define F_fss_string_payload_s "payload" @@ -123,7 +123,7 @@ extern "C" { extern const f_string_static_t f_fss_string_header_s; extern const f_string_static_t f_fss_string_payload_s; -#endif // _di_f_fss_strings_ +#endif // _di_f_fss_s_ /** * Codes for every known FSS standard. @@ -146,7 +146,7 @@ extern "C" { * - payload: FSS-000E: Payload. * - simple_packet: FSS-000F: Simple Packet. */ -#ifndef _di_f_fss_codes_ +#ifndef _di_f_fss_e_ enum { f_fss_basic_e = 1, f_fss_extended_e, @@ -165,7 +165,7 @@ extern "C" { f_fss_payload_e, f_fss_simple_packet_e, }; -#endif // _di_f_fss_codes_ +#endif // _di_f_fss_e_ /** * Codes for FSS completeness. @@ -184,7 +184,7 @@ extern "C" { * - partial: Complete, but do not add terminating EOL, where applicable. * - partial_trim: Complete, but do not add terminating EOL and remove any leading or trailing whitespace, where applicable. */ -#ifndef _di_f_fss_complete_ +#ifndef _di_f_fss_complete_e_ enum { f_fss_complete_none_e = 1, f_fss_complete_end_e, @@ -194,7 +194,7 @@ extern "C" { f_fss_complete_partial_e, f_fss_complete_partial_trim_e, }; -#endif // _di_f_fss_complete_ +#endif // _di_f_fss_complete_e_ /** * FSS-specific Status codes. @@ -202,27 +202,27 @@ extern "C" { enum { F_fss_status_code_first = F_status_code_last + 1, - #ifndef _di_f_fss_status_error_ + #ifndef _di_f_fss_status_error_e_ F_fss_format, F_fss_format_eos, - #endif // _di_f_fss_status_error_ + #endif // _di_f_fss_status_error_e_ - #ifndef _di_f_fss_status_warning_ + #ifndef _di_f_fss_status_warning_e_ F_fss_accepted_invalid, F_fss_accepted_invalid_eos, - #endif // _di_f_fss_status_warning_ + #endif // _di_f_fss_status_warning_e_ - #ifndef _di_f_fss_status_success_ + #ifndef _di_f_fss_status_success_e_ F_fss_found_content, F_fss_found_object, F_fss_found_object_content_not, F_fss_found_content_not, F_fss_found_object_not, - #endif // _di_f_fss_status_success_ + #endif // _di_f_fss_status_success_e_ - #ifndef _di_f_fss_status_codes_ + #ifndef _di_f_fss_status_codes_e_ F_fss_found_comment, - #endif // _di_f_fss_status_codes_ + #endif // _di_f_fss_status_codes_e_ F_fss_status_code_last, }; // enum @@ -231,15 +231,6 @@ enum { * Default allocation steps. * * Recommended to be set to at least 4 to be UTF-8 friendlier. - */ -#ifndef _di_f_fss_default_allocation_step_ - #define F_fss_default_allocation_step_d F_memory_default_allocation_small_d - #define F_fss_default_allocation_step_small_d F_memory_default_allocation_small_d - #define F_fss_default_allocation_step_large_d F_memory_default_allocation_large_d -#endif // _di_f_fss_default_allocation_step_ - -/** - * Common FSS defaults. * * F_fss_default_*: * - block_size_huge: The "huge" size in blocks to process for an FSS related task. @@ -247,12 +238,16 @@ enum { * - block_size_small: The "small" size in blocks to process for an FSS related task. * - block_size_tiny: The "tiny" size in blocks to process for an FSS related task. */ -#ifndef _di_f_fss_defaults_ +#ifndef _di_f_fss_default_d_ + #define F_fss_default_allocation_step_d F_memory_default_allocation_small_d + #define F_fss_default_allocation_step_small_d F_memory_default_allocation_small_d + #define F_fss_default_allocation_step_large_d F_memory_default_allocation_large_d + #define F_fss_default_block_size_huge_d 65536 #define F_fss_default_block_size_normal_d 16384 #define F_fss_default_block_size_small_d 4096 #define F_fss_default_block_size_tiny_d 512 -#endif // _di_f_fss_defaults_ +#endif // _di_f_fss_default_d_ /** * This is a range that represents an object. @@ -367,12 +362,12 @@ enum { * - none: No flags are set. * - utf_fail_on_valid_not: Immediately fail on invalid UTF-8 character (including incomplete). */ -#ifndef _di_f_fss_state_flags_ +#ifndef _di_f_fss_state_flag_e_ enum { f_fss_state_flag_none_e = 0, f_fss_state_flag_utf_fail_on_valid_not_e = 0x1, }; // enum -#endif // _di_f_fss_state_flags_ +#endif // _di_f_fss_state_flag_e_ #ifdef __cplusplus } // extern "C" diff --git a/level_0/f_iki/c/iki/common.c b/level_0/f_iki/c/iki/common.c index 454f098..f4a2b5f 100644 --- a/level_0/f_iki/c/iki/common.c +++ b/level_0/f_iki/c/iki/common.c @@ -5,14 +5,14 @@ extern "C" { #endif -#ifndef _di_f_iki_syntax_ +#ifndef _di_f_iki_syntax_s_ const f_string_static_t f_iki_syntax_separator_s = macro_f_string_static_t_initialize(F_iki_syntax_separator_s, 0, F_iki_syntax_separator_s_length); const f_string_static_t f_iki_syntax_placeholder_s = macro_f_string_static_t_initialize(F_iki_syntax_placeholder_s, 0, F_iki_syntax_placeholder_s_length); const f_string_static_t f_iki_syntax_quote_backtick_s = macro_f_string_static_t_initialize(F_iki_syntax_quote_backtick_s, 0, F_iki_syntax_quote_backtick_s_length); const f_string_static_t f_iki_syntax_quote_double_s = macro_f_string_static_t_initialize(F_iki_syntax_quote_double_s, 0, F_iki_syntax_quote_double_s_length); const f_string_static_t f_iki_syntax_quote_single_s = macro_f_string_static_t_initialize(F_iki_syntax_quote_single_s, 0, F_iki_syntax_quote_single_s_length); const f_string_static_t f_iki_syntax_slash_s = macro_f_string_static_t_initialize(F_iki_syntax_slash_s, 0, F_iki_syntax_slash_s_length); -#endif //_di_f_iki_syntax_ +#endif //_di_f_iki_syntax_s_ #ifndef _di_f_iki_vocabulary_0001_s_ const f_string_static_t f_iki_vocabulary_0001_address_s = macro_f_string_static_t_initialize(F_iki_vocabulary_0001_address_s, 0, F_iki_vocabulary_0001_address_s_length); diff --git a/level_0/f_iki/c/iki/common.h b/level_0/f_iki/c/iki/common.h index e651ec5..f08e5eb 100644 --- a/level_0/f_iki/c/iki/common.h +++ b/level_0/f_iki/c/iki/common.h @@ -27,17 +27,17 @@ extern "C" { * - none: No flags are set. * - utf_fail_on_valid_not: Immediately fail on invalid UTF-8 character (including incomplete). */ -#ifndef _di_f_iki_state_flags_ +#ifndef _di_f_iki_state_flag_e_ enum { f_iki_state_flag_none_e = 0, f_iki_state_flag_utf_fail_on_valid_not_e = 0x1, }; // enum -#endif // _di_f_iki_state_flags_ +#endif // _di_f_iki_state_flag_e_ /** * IKI-specific syntax. */ -#ifndef _di_f_iki_syntax_ +#ifndef _di_f_iki_syntax_s_ #define F_iki_syntax_separator_s F_string_ascii_colon_s #define F_iki_syntax_placeholder_s F_string_placeholder_s #define F_iki_syntax_quote_backtick_s F_string_ascii_grave_s @@ -58,9 +58,9 @@ extern "C" { extern const f_string_static_t f_iki_syntax_quote_double_s; extern const f_string_static_t f_iki_syntax_quote_single_s; extern const f_string_static_t f_iki_syntax_slash_s; -#endif //_di_f_iki_syntax_ +#endif //_di_f_iki_syntax_s_ -#ifndef _di_f_iki_vocabulary_0001_ +#ifndef _di_f_iki_vocabulary_0001_s_ #define F_iki_vocabulary_0001_address_s "address" #define F_iki_vocabulary_0001_code_s "code" #define F_iki_vocabulary_0001_email_s "email" @@ -93,9 +93,9 @@ extern "C" { extern const f_string_static_t f_iki_vocabulary_0001_url_s; extern const f_string_static_t f_iki_vocabulary_0001_urn_s; extern const f_string_static_t f_iki_vocabulary_0001_variable_s; -#endif // _di_f_iki_vocabulary_0001_ +#endif // _di_f_iki_vocabulary_0001_s_ -#ifndef _di_f_iki_vocabulary_0002_ +#ifndef _di_f_iki_vocabulary_0002_s_ #define F_iki_vocabulary_0002_context_s "context" #define F_iki_vocabulary_0002_define_s "define" #define F_iki_vocabulary_0002_parameter_s "parameter" @@ -107,7 +107,7 @@ extern "C" { extern const f_string_static_t f_iki_vocabulary_0002_context_s; extern const f_string_static_t f_iki_vocabulary_0002_define_s; extern const f_string_static_t f_iki_vocabulary_0002_parameter_s; -#endif // _di_f_iki_vocabulary_0002_ +#endif // _di_f_iki_vocabulary_0002_s_ /** * This containg all of the IKI data. @@ -221,10 +221,10 @@ extern "C" { * - large: The large allocation size. * - small: The small allocation size, in particular used for allocation iki strings. */ -#ifndef _di_f_iki_default_allocation_step_ +#ifndef _di_f_iki_default_d_ #define F_iki_default_allocation_large_d F_memory_default_allocation_large_d #define F_iki_default_allocation_small_d 8 -#endif // _di_f_iki_default_allocation_step_ +#endif // _di_f_iki_default_d_ #ifdef __cplusplus } // extern "C" diff --git a/level_0/f_memory/c/memory/common.h b/level_0/f_memory/c/memory/common.h index 73ad175..5f1c580 100644 --- a/level_0/f_memory/c/memory/common.h +++ b/level_0/f_memory/c/memory/common.h @@ -37,10 +37,10 @@ extern "C" { * * Other projects may provide their own values. */ -#ifndef _di_f_memory_default_allocation_step_ +#ifndef _di_f_memory_default_d_ #define F_memory_default_allocation_large_d 64 #define F_memory_default_allocation_small_d 8 -#endif // _di_f_memory_default_allocation_step_ +#endif // _di_f_memory_default_d_ /** * Reset a generic memory stucture to 0 (clear all values). diff --git a/level_0/f_path/c/path/common.c b/level_0/f_path/c/path/common.c index 9dc37f1..078ef32 100644 --- a/level_0/f_path/c/path/common.c +++ b/level_0/f_path/c/path/common.c @@ -4,7 +4,7 @@ extern "C" { #endif -#ifndef _di_f_path_defines_ +#ifndef _di_f_path_d_ const f_string_static_t f_path_separator_s = macro_f_string_static_t_initialize(F_string_ascii_slash_forward_s, 0, F_string_ascii_slash_forward_s_length); const f_string_static_t f_path_separator_current_s = macro_f_string_static_t_initialize(F_string_ascii_period_s, 0, F_string_ascii_period_s_length); const f_string_static_t f_path_separator_variable_s = macro_f_string_static_t_initialize(F_string_ascii_colon_s, 0, F_string_ascii_colon_s_length); @@ -15,9 +15,9 @@ extern "C" { const f_string_static_t f_path_home_wildcard_s = macro_f_string_static_t_initialize(F_string_ascii_tilde_s, 0, F_string_ascii_tilde_s_length); const f_string_static_t f_path_present_working_s = macro_f_string_static_t_initialize(F_path_present_working_s, 0, F_path_present_working_s_length); const f_string_static_t f_path_present_working_old_s = macro_f_string_static_t_initialize(F_path_present_working_old_s, 0, F_path_present_working_old_s_length); -#endif // _di_f_path_defines_ +#endif // _di_f_path_d_ -#if defined(_di_f_path_tree_s_) && !defined(_di_f_path_tree_hierarchy_standard_) && !defined(_di_f_path_tree_kevux_standard_) +#if defined(_di_f_path_tree_s_) && !defined(_di_f_path_tree_hierarchy_standard_d_) && !defined(_di_f_path_tree_kevux_standard_d_) // KFS Root Level. const f_string_static_t f_path_tree_devices_s = macro_f_string_static_t_initialize(F_path_tree_devices_s, 0, F_path_tree_devices_s_length); @@ -81,7 +81,7 @@ extern "C" { const f_string_static_t f_path_user_data_s = macro_f_string_static_t_initialize(F_path_user_data_s, 0, F_path_user_data_s_length); const f_string_static_t f_path_user_temporary_s = macro_f_string_static_t_initialize(F_path_user_temporary_s, 0, F_path_user_temporary_s_length); const f_string_static_t f_path_user_shared_s = macro_f_string_static_t_initialize(F_path_user_shared_s, 0, F_path_user_shared_s_length); -#endif // defined(_di_f_path_tree_s_) && !defined(_di_f_path_tree_hierarchy_standard_) && !defined(_di_f_path_tree_kevux_standard_) +#endif // defined(_di_f_path_tree_s_) && !defined(_di_f_path_tree_hierarchy_standard_d_) && !defined(_di_f_path_tree_kevux_standard_d_) #ifdef __cplusplus } // extern "C" diff --git a/level_0/f_path/c/path/common.h b/level_0/f_path/c/path/common.h index 7068ae1..f38de54 100644 --- a/level_0/f_path/c/path/common.h +++ b/level_0/f_path/c/path/common.h @@ -18,6 +18,13 @@ extern "C" { /** * Standard path defines. + */ +#ifndef _di_f_path_d_ + #define F_path_length_max_d PATH_MAX +#endif // _di_f_path_d_ + +/** + * Standard path strings. * * The path separator, intended to be represented as a single character. * The path separator length must be a 1-byte wide character. @@ -31,7 +38,7 @@ extern "C" { * * The path extension separator is for the separator that separates the main part of a file path with its extension (which is generally a '.'). */ -#ifndef _di_f_path_defines_ +#ifndef _di_f_path_s_ #define F_path_separator_s F_string_ascii_slash_forward_s #define F_path_separator_current_s F_string_ascii_period_s #define F_path_separator_variable_s F_string_ascii_colon_s @@ -54,8 +61,6 @@ extern "C" { #define F_path_present_working_s_length 3 #define F_path_present_working_old_s_length 6 - #define F_path_length_max_d PATH_MAX - extern const f_string_static_t f_path_separator_s; extern const f_string_static_t f_path_separator_current_s; extern const f_string_static_t f_path_separator_variable_s; @@ -66,15 +71,15 @@ extern "C" { extern const f_string_static_t f_path_home_wildcard_s; extern const f_string_static_t f_path_present_working_s; extern const f_string_static_t f_path_present_working_old_s; -#endif // _di_f_path_defines_ +#endif // _di_f_path_s_ /** * KFS Filesystem Paths */ -#ifndef _di_f_path_tree_kevux_standard_ +#ifndef _di_f_path_tree_kevux_standard_d_ // Disable the FHS default paths. - #define _di_f_path_tree_hierarchy_standard_ + #define _di_f_path_tree_hierarchy_standard_d_ // KFS Root Level. #define F_path_tree_devices_s F_path_separator_s "devices" @@ -193,15 +198,15 @@ extern "C" { #define F_path_tree_user_data_s_length 4 #define F_path_tree_user_temporary_s_length 9 #define F_path_tree_user_shared_s_length 6 -#endif // _di_f_path_tree_kevux_standard_ +#endif // _di_f_path_tree_kevux_standard_d_ /** * FHS Filesystem Paths */ -#ifndef _di_f_path_tree_hierarchy_standard_ +#ifndef _di_f_path_tree_hierarchy_standard_d_ // Disable the kevux standard default paths. - #define _di_f_path_tree_kevux_standard_ + #define _di_f_path_tree_kevux_standard_d_ // KFS Root Level. #define F_path_tree_devices_s F_path_separator_s @@ -320,9 +325,9 @@ extern "C" { #define F_path_tree_user_data_s_length 0 #define F_path_tree_user_temporary_s_length 0 #define F_path_tree_user_shared_s_length 0 -#endif // _di_f_path_tree_hierarchy_standard_ +#endif // _di_f_path_tree_hierarchy_standard_d_ -#if defined(_di_f_path_tree_s_) && !defined(_di_f_path_tree_hierarchy_standard_) && !defined(_di_f_path_tree_kevux_standard_) +#if defined(_di_f_path_tree_s_) && !defined(_di_f_path_tree_hierarchy_standard_d_) && !defined(_di_f_path_tree_kevux_standard_d_) // KFS Root Level. extern const f_string_static_t f_path_tree_devices_s; @@ -386,7 +391,7 @@ extern "C" { extern const f_string_static_t f_path_user_data_s; extern const f_string_static_t f_path_user_temporary_s; extern const f_string_static_t f_path_user_shared_s; -#endif // defined(_di_f_path_tree_s_) && !defined(_di_f_path_tree_hierarchy_standard_) && !defined(_di_f_path_tree_kevux_standard_) +#endif // defined(_di_f_path_tree_s_) && !defined(_di_f_path_tree_hierarchy_standard_d_) && !defined(_di_f_path_tree_kevux_standard_d_) #ifdef __cplusplus } // extern "C" diff --git a/level_0/f_print/c/print/common.c b/level_0/f_print/c/print/common.c index 2f1f9a9..e9ad87e 100644 --- a/level_0/f_print/c/print/common.c +++ b/level_0/f_print/c/print/common.c @@ -4,7 +4,7 @@ extern "C" { #endif -#ifndef _di_f_print_sequences_ +#ifndef _di_f_print_sequence_s_ const f_string_static_t f_print_sequence_acknowledge_s = macro_f_string_static_t_initialize(F_print_sequence_acknowledge_s, 0, F_print_sequence_acknowledge_s_length); const f_string_static_t f_print_sequence_acknowledge_negative_s = macro_f_string_static_t_initialize(F_print_sequence_acknowledge_negative_s, 0, F_print_sequence_acknowledge_negative_s_length); const f_string_static_t f_print_sequence_backspace_s = macro_f_string_static_t_initialize(F_print_sequence_backspace_s, 0, F_print_sequence_backspace_s_length); @@ -41,7 +41,7 @@ extern "C" { const f_string_static_t f_print_sequence_tab_s = macro_f_string_static_t_initialize(F_print_sequence_tab_s, 0, F_print_sequence_tab_s_length); const f_string_static_t f_print_sequence_tab_vertical_s = macro_f_string_static_t_initialize(F_print_sequence_tab_vertical_s, 0, F_print_sequence_tab_vertical_s_length); const f_string_static_t f_print_sequence_unknown_s = macro_f_string_static_t_initialize(F_print_sequence_unknown_s, 0, F_print_sequence_unknown_s_length); -#endif // _di_f_print_sequences_ +#endif // _di_f_print_sequence_s_ #ifndef _di_f_print_sequences_set_control_s_ #ifdef _clang_not_a_compile_time_constant_workaround_ diff --git a/level_0/f_print/c/print/common.h b/level_0/f_print/c/print/common.h index 7069e3e..c026f7d 100644 --- a/level_0/f_print/c/print/common.h +++ b/level_0/f_print/c/print/common.h @@ -28,9 +28,9 @@ extern "C" { * * This is documented in the man write(2) pages under Linux to being 0x7ffff000 regardless of 32-bit or 64-bit. */ -#ifndef _di_f_print_write_max_ +#ifndef _di_f_print_write_max_d_ #define F_print_write_max_d 0x7ffff000 -#endif // _di_f_print_write_max_ +#endif // _di_f_print_write_max_d_ /** * Common print sequences. @@ -42,7 +42,7 @@ extern "C" { * * The code currently expects these to be 3-bytes wide so changing this to any other width will require changing code that utilizes these. */ -#ifndef _di_f_print_sequences_ +#ifndef _di_f_print_sequence_s_ #define F_print_sequence_acknowledge_s "␆" #define F_print_sequence_acknowledge_negative_s "␕" #define F_print_sequence_backspace_s "␈" @@ -153,7 +153,7 @@ extern "C" { extern const f_string_static_t f_print_sequence_tab_s; extern const f_string_static_t f_print_sequence_tab_vertical_s; extern const f_string_static_t f_print_sequence_unknown_s; -#endif // _di_f_print_sequences_ +#endif // _di_f_print_sequence_s_ /** * A map for converting control ASCII codes into the representation sequences. @@ -189,7 +189,7 @@ extern "C" { * * @see fprintf() */ -#ifndef _di_f_print_format_flag_ +#ifndef _di_f_print_format_flag_d_ #define F_print_format_flag_align_left_d 0x1 #define F_print_format_flag_convert_d 0x2 #define F_print_format_flag_exponent_d 0x4 @@ -241,7 +241,7 @@ extern "C" { * * @see fprintf() */ -#ifndef _di_f_print_format_type_ +#ifndef _di_f_print_format_type_e_ enum { f_print_format_type_character_e = 1, f_print_format_type_character_safe_e, @@ -269,7 +269,7 @@ extern "C" { f_print_format_type_unsigned_128_e, f_print_format_type_unsigned_number_e, }; -#endif // _di_f_print_format_type_ +#endif // _di_f_print_format_type_e_ #ifdef __cplusplus } // extern "C" diff --git a/level_0/f_socket/c/socket/common.h b/level_0/f_socket/c/socket/common.h index a004a25..1d88eff 100644 --- a/level_0/f_socket/c/socket/common.h +++ b/level_0/f_socket/c/socket/common.h @@ -23,10 +23,10 @@ extern "C" { * - read_size: Default read size in bytes. * - write_size: Default write size in bytes. */ -#ifndef _di_f_socket_defaults_ +#ifndef _di_f_socket_default_d_ #define F_socket_default_read_size_d 8192 #define F_socket_default_write_size_d 8192 -#endif // _di_f_socket_defaults_ +#endif // _di_f_socket_default_d_ /** * Socket Closes. @@ -37,14 +37,14 @@ extern "C" { * - read_write: Read/Write close, as in shutdown(, SHUT_RDWR). * - write: Write close, as in shutdown(, SHUT_WR). */ -#ifndef _di_f_socket_closes_ +#ifndef _di_f_socket_close_e_ enum { f_socket_close_fast_e = 1, f_socket_close_read_e, f_socket_close_write_e, f_socket_close_read_write_e, }; -#endif // _di_f_socket_closes_ +#endif // _di_f_socket_close_e_ /** * Socket protocol families, referred to as a domain. @@ -61,7 +61,7 @@ extern "C" { * - radio: Amateur Radio. * - x25: ITU-T X.25 / ISO-8208 protocol */ -#ifndef _di_f_socket_domains_ +#ifndef _di_f_socket_domain_d_ #define f_socket_domain_apple_talk_d AF_APPLETALK #define f_socket_domain_atm_d AF_ATMPVC #define f_socket_domain_cryptographic_d AF_ALG @@ -72,7 +72,7 @@ extern "C" { #define f_socket_domain_kernel_d AF_NETLINK #define f_socket_domain_radio_d AF_AX25 #define f_socket_domain_x25_d AF_X25 -#endif // _di_f_socket_domains_ +#endif // _di_f_socket_domain_d_ /** * Socket Options. @@ -142,7 +142,7 @@ extern "C" { * - wifi_status: Wifi status. * - zero_copy_d Zero copy. */ -#ifndef _di_f_socket_options_ +#ifndef _di_f_socket_option_d_ #define f_socket_option_address_reuse_d SO_REUSEADDR #define f_socket_option_advice_cnx_d SO_CNX_ADVICE #define f_socket_option_bpf_attach_d SO_ATTACH_BPF @@ -206,7 +206,7 @@ extern "C" { #define f_socket_option_type_d SO_TYPE #define f_socket_option_wifi_status_d SO_WIFI_STATUS #define f_socket_option_zero_copy_d SO_ZEROCOPY -#endif // _di_f_socket_options_ +#endif // _di_f_socket_option_d_ /** * Socket Flags. @@ -227,7 +227,7 @@ extern "C" { * - wait_all: Block until the full request is satisfied. * - wait_not: Use non-blocking. */ -#ifndef _di_f_socket_flags_ +#ifndef _di_f_socket_flag_d_ #define f_socket_flag_close_on_exit_d MSG_CMSG_CLOEXEC #define f_socket_flag_confirm_d MSG_CONFIRM #define f_socket_flag_error_queue_d MSG_ERRQUEUE @@ -240,7 +240,7 @@ extern "C" { #define f_socket_flag_truncate_d MSG_TRUNC #define f_socket_flag_wait_all_d MSG_WAITALL #define f_socket_flag_wait_not_d MSG_DONTWAIT -#endif // _di_f_socket_flags_ +#endif // _di_f_socket_flag_d_ /** * Socket Message Flags. @@ -254,13 +254,13 @@ extern "C" { * - truncate: The data has been truncated due to lack of space in the buffer. * - truncate_control: The control data has been truncated due to lack of space in the buffer. */ -#ifndef _di_f_socket_message_flags_ +#ifndef _di_f_socket_message_flag_d_ #define f_socket_message_flag_error_queue_d MSG_ERRQUEUE #define f_socket_message_flag_out_of_band_d MSG_OOB #define f_socket_message_flag_record_end_d MSG_EOR #define f_socket_message_flag_truncate_d MSG_TRUNC #define f_socket_message_flag_truncate_control_d MSG_CTRUNC -#endif // _di_f_socket_flags_ +#endif // _di_f_socket_flag_d_ /** * Socket types. @@ -274,7 +274,7 @@ extern "C" { * - raw: Raw access. * - stream: Stream. */ -#ifndef _di_f_socket_types_ +#ifndef _di_f_socket_type_d_ #define f_socket_type_close_on_execute_d SOCK_CLOEXEC #define f_socket_type_datagram_d SOCK_DGRAM #define f_socket_type_datagram_reliable_d SOCK_RDM @@ -282,7 +282,7 @@ extern "C" { #define f_socket_type_nonblocking_d SOCK_NONBLOCK #define f_socket_type_raw_d SOCK_RAW #define f_socket_type_stream_d SOCK_STREAM -#endif // _di_f_socket_types_ +#endif // _di_f_socket_type_d_ /** * Commonly used socket related properties, loosely based off of f_file_t. diff --git a/level_0/f_utf/c/utf/common.c b/level_0/f_utf/c/utf/common.c index fb8d6a4..65fe501 100644 --- a/level_0/f_utf/c/utf/common.c +++ b/level_0/f_utf/c/utf/common.c @@ -4,13 +4,13 @@ extern "C" { #endif -#ifndef _di_f_utf_char_t_codes_ +#ifndef _di_f_utf_char_s_ const f_utf_char_t f_utf_char_t_eol_s = (f_utf_char_t) F_utf_char_t_eol_s; const f_utf_char_t f_utf_char_t_eos_s = (f_utf_char_t) F_utf_char_t_eol_s; const f_utf_char_t f_utf_char_t_placeholder_s = (f_utf_char_t) F_utf_char_t_eol_s; -#endif // _di_f_utf_char_t_codes_ +#endif // _di_f_utf_char_s_ -#ifndef _di_f_utf_space_ +#ifndef _di_f_utf_space_s_ const f_char_t f_utf_space_em_s[F_utf_space_em_s_length] = { 0xe2, 0x80, 0x83 }; const f_char_t f_utf_space_em_quad_s[F_utf_space_em_quad_s_length] = { 0xe2, 0x80, 0x81 }; const f_char_t f_utf_space_em_per_three_s[F_utf_space_em_per_three_s_length] = { 0xe2, 0x80, 0x84 }; @@ -37,9 +37,9 @@ extern "C" { const f_char_t f_utf_space_separator_line_s[F_utf_space_separator_line_s_length] = { 0xe2, 0x80, 0xa8 }; const f_char_t f_utf_space_separator_paragraph_s[F_utf_space_separator_paragraph_s_length] = { 0xe2, 0x80, 0xa8 }; -#endif // _di_f_utf_space_ +#endif // _di_f_utf_space_s_ -#ifndef _di_f_utf_substitute_ +#ifndef _di_f_utf_substitute_s_ const f_char_t f_utf_substitute_symbol_blank_s[F_utf_substitute_symbol_blank_s_length] = { 0xe2, 0x90, 0xa2 }; const f_char_t f_utf_substitute_symbol_space_s[F_utf_substitute_symbol_space_s_length] = { 0xe2, 0x90, 0xa0 }; @@ -47,7 +47,7 @@ extern "C" { const f_char_t f_utf_substitute_open_box_s[F_utf_substitute_open_box_s_length] = { 0xe2, 0x90, 0xa3 }; const f_char_t f_utf_substitute_open_box_shouldered_s[F_utf_substitute_open_box_shouldered_s_length] = { 0xe2, 0x8d, 0xbd }; -#endif // _di_f_utf_substitute_ +#endif // _di_f_utf_substitute_s_ #ifdef __cplusplus } // extern "C" diff --git a/level_0/f_utf/c/utf/common.h b/level_0/f_utf/c/utf/common.h index 070ad28..89c9afc 100644 --- a/level_0/f_utf/c/utf/common.h +++ b/level_0/f_utf/c/utf/common.h @@ -33,7 +33,7 @@ extern "C" { * The macro_f_utf_byte_width macro determines a width of the character. * The macro_f_utf_byte_width_is is identical to macro_f_utf_byte_width, except it returns 0 when character is ASCII. */ -#ifndef _di_f_utf_byte_ +#ifndef _di_f_utf_byte_d_ #define F_utf_byte_1_d 0x80 // 1000 0000 #define F_utf_byte_2_d 0xc0 // 1100 0000 #define F_utf_byte_3_d 0xe0 // 1110 0000 @@ -53,7 +53,7 @@ extern "C" { #define macro_f_utf_byte_width(character) ((!macro_f_utf_byte_is(character) || macro_f_utf_byte_is_1(character)) ? 1 : (macro_f_utf_byte_is_2(character) ? 2 : (macro_f_utf_byte_is_3(character) ? 3 : 4))) #define macro_f_utf_byte_width_is(character) (macro_f_utf_byte_is(character) ? (macro_f_utf_byte_is_1(character) ? 1 : (macro_f_utf_byte_is_2(character) ? 2 : (macro_f_utf_byte_is_3(character) ? 3 : 4))) : 0) -#endif // _di_f_utf_byte_ +#endif // _di_f_utf_byte_d_ /** * Define the UTF-8 general whitespace codes. @@ -62,7 +62,7 @@ extern "C" { * * This does not provide whitespace codes for standard ascii whitespaces, such as '\t' or '\r'. */ -#ifndef _di_f_utf_space_ +#ifndef _di_f_utf_space_s_ #define F_utf_space_em_s_length 3 #define F_utf_space_em_quad_s_length 3 #define F_utf_space_em_per_three_s_length 3 @@ -116,7 +116,7 @@ extern "C" { extern const f_char_t f_utf_space_separator_line_s[]; extern const f_char_t f_utf_space_separator_paragraph_s[]; -#endif // _di_f_utf_space_ +#endif // _di_f_utf_space_s_ /** * Define the UTF-8 general substitute whitespace codes. @@ -127,7 +127,7 @@ extern "C" { * * This does not provide substitute whitespace codes for standard ascii whitespaces, such as '\t' or '\r'. */ -#ifndef _di_f_utf_substitute_ +#ifndef _di_f_utf_substitute_s_ #define F_utf_substitute_symbol_blank_s_length 3 #define F_utf_substitute_symbol_space_s_length 3 @@ -143,7 +143,7 @@ extern "C" { extern const f_char_t f_utf_substitute_open_box_s[]; extern const f_char_t f_utf_substitute_open_box_shouldered_s[]; -#endif // _di_f_utf_substitute_ +#endif // _di_f_utf_substitute_s_ /** * Provide a basic UTF-8 byte sequence as a single 4-byte variable. @@ -259,7 +259,7 @@ extern "C" { * The macros that end in "_be" or "_le" represent "big endian" and "little endian". * The default macros without the "_be" should be in "big endian" because the strings are always stored as if they were "big endian" without regard to the host byte order. */ -#ifndef _di_f_utf_char_t_codes_ +#ifndef _di_f_utf_char_s_ // Big Endian. #define F_utf_char_t_eol_be_s 0x0a000000 // 0000 1010, 0000 0000, 0000 0000, 0000 0000 @@ -278,7 +278,7 @@ extern "C" { extern const f_utf_char_t f_utf_char_t_eol_s; extern const f_utf_char_t f_utf_char_t_eos_s; extern const f_utf_char_t f_utf_char_t_placeholder_s; -#endif // _di_f_utf_char_t_codes_ +#endif // _di_f_utf_char_s_ /** * Define the basic string type. @@ -311,7 +311,7 @@ extern "C" { * - nuetral: Characters that do not appear in East Asian DBCS codes. * - wide: Wide byte sequence, without a narrow equivalent. */ -#ifndef _di_f_utf_widths_t_ +#ifndef _di_f_utf_width_e_ enum { F_utf_width_none_e, F_utf_width_ambiguous_e, @@ -321,7 +321,7 @@ extern "C" { F_utf_width_nuetral_e, F_utf_width_wide_e, }; -#endif // _di_f_utf_widths_t_ +#endif // _di_f_utf_width_e_ #ifdef __cplusplus } // extern "C" diff --git a/level_1/fl_conversion/c/conversion/common.c b/level_1/fl_conversion/c/conversion/common.c index 4da2963..255ad5a 100644 --- a/level_1/fl_conversion/c/conversion/common.c +++ b/level_1/fl_conversion/c/conversion/common.c @@ -4,7 +4,7 @@ extern "C" { #endif -#ifndef _di_fl_conversion_data_t_defines_ +#ifndef _di_fl_conversion_data_c_ const fl_conversion_data_t fl_conversion_data_base_2_c = macro_fl_conversion_data_t_initialize(2, 0); const fl_conversion_data_t fl_conversion_data_base_8_c = macro_fl_conversion_data_t_initialize(8, 0); const fl_conversion_data_t fl_conversion_data_base_10_c = macro_fl_conversion_data_t_initialize(10, 0); @@ -12,7 +12,7 @@ extern "C" { const fl_conversion_data_t fl_conversion_data_base_16_c = macro_fl_conversion_data_t_initialize(16, 0); const fl_conversion_data_t fl_conversion_data_endian_big_c = macro_fl_conversion_data_t_initialize(10, FL_conversion_data_flag_endian_big_d); const fl_conversion_data_t fl_conversion_data_endian_little_c = macro_fl_conversion_data_t_initialize(10, FL_conversion_data_flag_endian_little_d); -#endif // _di_fl_conversion_data_t_defines_ +#endif // _di_fl_conversion_data_c_ #ifdef __cplusplus } // extern "C" diff --git a/level_1/fl_conversion/c/conversion/common.h b/level_1/fl_conversion/c/conversion/common.h index b19d6da..d92832f 100644 --- a/level_1/fl_conversion/c/conversion/common.h +++ b/level_1/fl_conversion/c/conversion/common.h @@ -50,7 +50,7 @@ extern "C" { * - endian_little: Basic base-10 conversion with little-endian flag. * - shift_left: Basic base-10 conversion with shift left flag. */ -#ifndef _di_fl_conversion_data_t_defines_ +#ifndef _di_fl_conversion_data_c_ extern const fl_conversion_data_t fl_conversion_data_base_2_c; extern const fl_conversion_data_t fl_conversion_data_base_8_c; extern const fl_conversion_data_t fl_conversion_data_base_10_c; @@ -59,7 +59,7 @@ extern "C" { extern const fl_conversion_data_t fl_conversion_data_endian_big_c; extern const fl_conversion_data_t fl_conversion_data_endian_little_c; extern const fl_conversion_data_t fl_conversion_data_shift_left_c; -#endif // _di_fl_conversion_data_t_defines_ +#endif // _di_fl_conversion_data_c_ /** * Define flags used by fl_conversion_data_t. @@ -69,11 +69,11 @@ extern "C" { * - endian_little: Use little-endian rather than host byte order or big-endian when converting. * - negative: Treat the string as a negative number. */ -#ifndef _di_fl_conversion_data_flag_ +#ifndef _di_fl_conversion_data_flag_d_ #define FL_conversion_data_flag_endian_big_d 0x1 #define FL_conversion_data_flag_endian_little_d 0x2 #define FL_conversion_data_flag_negative_d 0x4 -#endif // _di_fl_conversion_data_flag_ +#endif // _di_fl_conversion_data_flag_d_ #ifdef __cplusplus } // extern "C" diff --git a/level_1/fl_directory/c/directory/common.h b/level_1/fl_directory/c/directory/common.h index 5b0dac6..03f7df3 100644 --- a/level_1/fl_directory/c/directory/common.h +++ b/level_1/fl_directory/c/directory/common.h @@ -16,13 +16,19 @@ extern "C" { #endif + +/** + * An association of a path and a status code. + */ +#ifndef _di_fl_directory_recurse_d_ + #define FL_directory_recurse_depth_max_d 65535 +#endif // _di_fl_directory_recurse_d_ + /** * An association of a path and a status code. * * The allocation macros apply to the path. * - * depth_max: - * The max recursion depth. * size_block: * The default number of chunks to read at a time with each chunk being 1-byte. * Must be greater than 0. @@ -52,8 +58,6 @@ extern "C" { * If 0, then this and statuses are ignored. */ #ifndef _di_fl_directory_recurse_t_ - #define FL_directory_recurse_depth_max_d 65535 - typedef struct { f_number_unsigned_t depth_max; f_number_unsigned_t size_block; diff --git a/level_2/fll_error/c/error/common.c b/level_2/fll_error/c/error/common.c index e8691f2..f568569 100644 --- a/level_2/fll_error/c/error/common.c +++ b/level_2/fll_error/c/error/common.c @@ -4,13 +4,13 @@ extern "C" { #endif -#ifndef _di_fll_error_file_type_ +#ifndef _di_fll_error_file_type_s_ const f_string_static_t fll_error_file_type_directory_s = macro_f_string_static_t_initialize(FLL_error_file_type_directory_s, 0, FLL_error_file_type_directory_s_length); const f_string_static_t fll_error_file_type_file_s = macro_f_string_static_t_initialize(FLL_error_file_type_file_s, 0, FLL_error_file_type_file_s_length); const f_string_static_t fll_error_file_type_path_s = macro_f_string_static_t_initialize(FLL_error_file_type_path_s, 0, FLL_error_file_type_path_s_length); const f_string_static_t fll_error_file_type_pipe_s = macro_f_string_static_t_initialize(FLL_error_file_type_pipe_s, 0, FLL_error_file_type_pipe_s_length); const f_string_static_t fll_error_file_type_socket_s = macro_f_string_static_t_initialize(FLL_error_file_type_socket_s, 0, FLL_error_file_type_socket_s_length); -#endif // _di_fll_error_file_type_ +#endif // _di_fll_error_file_type_s_ #ifdef __cplusplus } // extern "C" diff --git a/level_2/fll_error/c/error/common.h b/level_2/fll_error/c/error/common.h index c9eb26c..b5ffc2b 100644 --- a/level_2/fll_error/c/error/common.h +++ b/level_2/fll_error/c/error/common.h @@ -26,15 +26,27 @@ extern "C" { * - pipe: Pipe error. * - socket: Socket error. */ -#ifndef _di_fll_error_file_type_ +#ifndef _di_fll_error_file_type_e_ enum { fll_error_file_type_file_e = 1, fll_error_file_type_directory_e, fll_error_file_type_path_e, fll_error_file_type_pipe_e, fll_error_file_type_socket_e, - }; + }; // enum +#endif // _di_fll_error_file_type_e_ +/** + * Error file types. + * + * fll_error_file_type_*: + * - file: File error. + * - directory: Directory error. + * - path: Path error. + * - pipe: Pipe error. + * - socket: Socket error. + */ +#ifndef _di_fll_error_file_type_s_ #define FLL_error_file_type_directory_s "directory" #define FLL_error_file_type_file_s "file" #define FLL_error_file_type_path_s "path" @@ -52,7 +64,7 @@ extern "C" { extern const f_string_static_t fll_error_file_type_path_s; extern const f_string_static_t fll_error_file_type_pipe_s; extern const f_string_static_t fll_error_file_type_socket_s; -#endif // _di_fll_error_file_type_ +#endif // _di_fll_error_file_type_s_ #ifdef __cplusplus } // extern "C" diff --git a/level_2/fll_program/c/program/common.c b/level_2/fll_program/c/program/common.c index d3446d5..222a2c5 100644 --- a/level_2/fll_program/c/program/common.c +++ b/level_2/fll_program/c/program/common.c @@ -4,10 +4,10 @@ extern "C" { #endif -#ifndef _di_fll_program_parameters_ +#ifndef _di_fll_program_parameter_s_ const f_string_static_t fll_program_parameter_filename_s = macro_f_string_static_t_initialize(FLL_program_parameter_filename_s, 0, FLL_program_parameter_filename_s_length); const f_string_static_t fll_program_parameter_filenames_s = macro_f_string_static_t_initialize(FLL_program_parameter_filenames_s, 0, FLL_program_parameter_filenames_s_length); -#endif // _di_fll_program_parameters_ +#endif // _di_fll_program_parameter_s_ #ifndef _di_fll_program_data_delete_ f_status_t fll_program_data_delete(fll_program_data_t * const data) { diff --git a/level_2/fll_program/c/program/common.h b/level_2/fll_program/c/program/common.h index cd06915..1bb9022 100644 --- a/level_2/fll_program/c/program/common.h +++ b/level_2/fll_program/c/program/common.h @@ -16,7 +16,7 @@ extern "C" { #endif -#ifndef _di_fll_program_parameters_ +#ifndef _di_fll_program_parameter_s_ #define FLL_program_parameter_filename_s "filename" #define FLL_program_parameter_filenames_s "filename(s)" @@ -25,7 +25,7 @@ extern "C" { extern const f_string_static_t fll_program_parameter_filename_s; extern const f_string_static_t fll_program_parameter_filenames_s; -#endif // _di_fll_program_parameters_ +#endif // _di_fll_program_parameter_s_ /** * Program data pipe codes. @@ -44,7 +44,7 @@ extern "C" { fll_program_data_pipe_error_e = 0x1, fll_program_data_pipe_input_e = 0x2, fll_program_data_pipe_output_e = 0x4, - }; + }; // enum #endif // _di_fll_program_data_pipe_e_ /** diff --git a/level_3/byte_dump/c/common.c b/level_3/byte_dump/c/common.c index c6bc7fd..1d14f56 100644 --- a/level_3/byte_dump/c/common.c +++ b/level_3/byte_dump/c/common.c @@ -5,31 +5,31 @@ extern "C" { #endif -#ifndef _di_byte_dump_program_version_ +#ifndef _di_byte_dump_program_version_d_ const f_string_static_t byte_dump_program_version_s = macro_f_string_static_t_initialize(BYTE_DUMP_program_version_s, 0, BYTE_DUMP_program_version_s_length); -#endif // _di_byte_dump_program_version_ +#endif // _di_byte_dump_program_version_d_ -#ifndef _di_byte_dump_program_name_ +#ifndef _di_byte_dump_program_name_s_ const f_string_static_t byte_dump_program_name_s = macro_f_string_static_t_initialize(BYTE_DUMP_program_name_s, 0, BYTE_DUMP_program_name_s_length); const f_string_static_t byte_dump_program_name_long_s = macro_f_string_static_t_initialize(BYTE_DUMP_program_name_long_s, 0, BYTE_DUMP_program_name_long_s_length); -#endif // _di_byte_dump_program_name_ +#endif // _di_byte_dump_program_name_s_ -#ifndef _di_byte_dump_print_strings_ +#ifndef _di_byte_dump_print_s_ const f_string_static_t byte_dump_print_strings_hexidecimal_s = macro_f_string_static_t_initialize(BYTE_DUMP_print_strings_hexidecimal_s, 0, BYTE_DUMP_print_strings_hexidecimal_s_length); const f_string_static_t byte_dump_print_strings_duodecimal_s = macro_f_string_static_t_initialize(BYTE_DUMP_print_strings_duodecimal_s, 0, BYTE_DUMP_print_strings_duodecimal_s_length); const f_string_static_t byte_dump_print_strings_octal_s = macro_f_string_static_t_initialize(BYTE_DUMP_print_strings_octal_s, 0, BYTE_DUMP_print_strings_octal_s_length); const f_string_static_t byte_dump_print_strings_binary_s = macro_f_string_static_t_initialize(BYTE_DUMP_print_strings_binary_s, 0, BYTE_DUMP_print_strings_binary_s_length); const f_string_static_t byte_dump_print_strings_decimal_s = macro_f_string_static_t_initialize(BYTE_DUMP_print_strings_decimal_s, 0, BYTE_DUMP_print_strings_decimal_s_length); -#endif // _di_byte_dump_print_strings_ +#endif // _di_byte_dump_print_s_ -#ifndef _di_byte_dump_defines_ +#ifndef _di_byte_dump_s_ const f_string_static_t byte_dump_character_wall_s = macro_f_string_static_t_initialize(BYTE_DUMP_character_wall_s, 0, BYTE_DUMP_character_wall_s_length); const f_string_static_t byte_dump_character_placeholder_s = macro_f_string_static_t_initialize(BYTE_DUMP_character_placeholder_s, 0, BYTE_DUMP_character_placeholder_s_length); const f_string_static_t byte_dump_character_incomplete_s = macro_f_string_static_t_initialize(BYTE_DUMP_character_incomplete_s, 0, BYTE_DUMP_character_incomplete_s_length); const f_string_static_t byte_dump_character_unused_s = macro_f_string_static_t_initialize(BYTE_DUMP_character_unused_s, 0, BYTE_DUMP_character_unused_s_length); -#endif // _di_byte_dump_defines_ +#endif // _di_byte_dump_s_ -#ifndef _di_byte_dump_parameters_ +#ifndef _di_byte_dump_parameter_d_ const f_string_static_t byte_dump_short_binary_s = macro_f_string_static_t_initialize(BYTE_DUMP_short_binary_s, 0, BYTE_DUMP_short_binary_s_length); const f_string_static_t byte_dump_short_decimal_s = macro_f_string_static_t_initialize(BYTE_DUMP_short_decimal_s, 0, BYTE_DUMP_short_decimal_s_length); const f_string_static_t byte_dump_short_duodecimal_s = macro_f_string_static_t_initialize(BYTE_DUMP_short_duodecimal_s, 0, BYTE_DUMP_short_duodecimal_s_length); @@ -65,7 +65,7 @@ extern "C" { const f_string_static_t byte_dump_long_normal_s = macro_f_string_static_t_initialize(BYTE_DUMP_long_normal_s, 0, BYTE_DUMP_long_normal_s_length); const f_string_static_t byte_dump_long_simple_s = macro_f_string_static_t_initialize(BYTE_DUMP_long_simple_s, 0, BYTE_DUMP_long_simple_s_length); const f_string_static_t byte_dump_long_classic_s = macro_f_string_static_t_initialize(BYTE_DUMP_long_classic_s, 0, BYTE_DUMP_long_classic_s_length); -#endif // _di_byte_dump_parameters_ +#endif // _di_byte_dump_parameter_d_ #ifndef _di_byte_dump_setting_delete_ f_status_t byte_dump_setting_delete(byte_dump_setting_t * const setting) { diff --git a/level_3/byte_dump/c/common.h b/level_3/byte_dump/c/common.h index 4925cb9..90dc0bb 100644 --- a/level_3/byte_dump/c/common.h +++ b/level_3/byte_dump/c/common.h @@ -19,7 +19,7 @@ extern "C" { /** * The program version. */ -#ifndef _di_byte_dump_program_version_ +#ifndef _di_byte_dump_program_version_d_ #define BYTE_DUMP_program_version_major_s F_string_ascii_0_s #define BYTE_DUMP_program_version_minor_s F_string_ascii_7_s #define BYTE_DUMP_program_version_micro_s F_string_ascii_0_s @@ -43,12 +43,12 @@ extern "C" { #define BYTE_DUMP_program_version_s_length BYTE_DUMP_program_version_major_s_length + F_string_ascii_period_s_length + BYTE_DUMP_program_version_minor_s_length + F_string_ascii_period_s_length + BYTE_DUMP_program_version_micro_s_length + BYTE_DUMP_program_version_nano_prefix_s_length + BYTE_DUMP_program_version_nano_s_length extern const f_string_static_t byte_dump_program_version_s; -#endif // _di_byte_dump_program_version_ +#endif // _di_byte_dump_program_version_d_ /** * The program name. */ -#ifndef _di_byte_dump_program_name_ +#ifndef _di_byte_dump_program_name_s_ #define BYTE_DUMP_program_name_s "byte_dump" #define BYTE_DUMP_program_name_long_s "Byte Dump" @@ -57,12 +57,12 @@ extern "C" { extern const f_string_static_t byte_dump_program_name_s; extern const f_string_static_t byte_dump_program_name_long_s; -#endif // _di_byte_dump_program_name_ +#endif // _di_byte_dump_program_name_s_ /** * The program strings for printing. */ -#ifndef _di_byte_dump_print_strings_ +#ifndef _di_byte_dump_print_s_ #define BYTE_DUMP_print_strings_hexidecimal_s "Hexidecimal" #define BYTE_DUMP_print_strings_duodecimal_s "Duodecimal" #define BYTE_DUMP_print_strings_octal_s "Octal" @@ -80,17 +80,26 @@ extern "C" { extern const f_string_static_t byte_dump_print_strings_octal_s; extern const f_string_static_t byte_dump_print_strings_binary_s; extern const f_string_static_t byte_dump_print_strings_decimal_s; -#endif // _di_byte_dump_print_strings_ +#endif // _di_byte_dump_print_s_ /** * Set to at least 4 to provide a UTF-8 friendly allocation step. */ -#ifndef _di_byte_dump_default_allocation_step_ +#ifndef _di_byte_dump_default_d_ #define byte_dump_default_allocation_step_d 4 -#endif // _di_byte_dump_default_allocation_step_ +#endif // _di_byte_dump_default_d_ /** * The program defines. + */ +#ifndef _di_byte_dump_d_ + #define byte_dump_option_wide_d 0x1 + + #define byte_dump_signal_check_d 20000 +#endif // _di_byte_dump_d_ + +/** + * The program enumerations. * * byte_dump_mode_*: * - hexidecimal: Display using hexidecimal notation (base 16). @@ -104,25 +113,26 @@ extern "C" { * - simple: Simple presentation mode. * - classic: Classic presentation mode. */ -#ifndef _di_byte_dump_defines_ +#ifndef _di_byte_dump_e_ enum { byte_dump_mode_hexidecimal_e = 1, byte_dump_mode_duodecimal_e, byte_dump_mode_octal_e, byte_dump_mode_binary_e, byte_dump_mode_decimal_e, - }; + }; // enum enum { byte_dump_presentation_normal_e = 1, byte_dump_presentation_simple_e, byte_dump_presentation_classic_e, - }; - - #define byte_dump_option_wide_d 0x1 - - #define byte_dump_signal_check_d 20000 + }; // enum +#endif // _di_byte_dump_e_ +/** + * The program strings. + */ +#ifndef _di_byte_dump_s_ #define BYTE_DUMP_character_wall_s "|" #define BYTE_DUMP_character_placeholder_s "␣" // Other likely choices: (substitute form 1: '␚', substitute form 2: '␦'). #define BYTE_DUMP_character_incomplete_s "�" @@ -137,7 +147,7 @@ extern "C" { extern const f_string_static_t byte_dump_character_placeholder_s; extern const f_string_static_t byte_dump_character_incomplete_s; extern const f_string_static_t byte_dump_character_unused_s; -#endif // _di_byte_dump_defines_ +#endif // _di_byte_dump_s_ /** * The program parameters. @@ -163,7 +173,7 @@ extern "C" { * - simple: Use simple presentation, displaying spaces for ASCII special codes instead of UTF-8 sequence codes. * - classic: Use classic presentation, displaying periods for ASCII special codes instead of UTF-8 sequence codes. */ -#ifndef _di_byte_dump_parameters_ +#ifndef _di_byte_dump_parameter_d_ #define BYTE_DUMP_short_binary_s "b" #define BYTE_DUMP_short_decimal_s "d" #define BYTE_DUMP_short_duodecimal_s "D" @@ -305,7 +315,7 @@ extern "C" { byte_dump_parameter_normal_e, byte_dump_parameter_simple_e, byte_dump_parameter_classic_e, - }; + }; // enum #define byte_dump_console_parameter_t_initialize \ { \ @@ -341,7 +351,7 @@ extern "C" { } #define byte_dump_total_parameters_d 28 -#endif // _di_byte_dump_parameters_ +#endif // _di_byte_dump_parameter_d_ /** * Flags used to represent flags passed to the main function. @@ -368,7 +378,7 @@ extern "C" { byte_dump_main_flag_strip_invalid_e = 0x20, byte_dump_main_flag_verify_e = 0x40, byte_dump_main_flag_version_e = 0x80, - }; + }; // enum #endif // _di_byte_dump_main_flag_e_ /** diff --git a/level_3/control/c/common.c b/level_3/control/c/common.c index f4c9d66..8c5ae9e 100644 --- a/level_3/control/c/common.c +++ b/level_3/control/c/common.c @@ -5,16 +5,16 @@ extern "C" { #endif -#ifndef _di_control_program_version_ +#ifndef _di_control_program_version_s_ const f_string_static_t control_program_version_s = macro_f_string_static_t_initialize(CONTROL_program_version_s, 0, CONTROL_program_version_s_length); -#endif // _di_control_program_version_ +#endif // _di_control_program_version_s_ -#ifndef _di_control_program_name_ +#ifndef _di_control_program_name_s_ const f_string_static_t control_program_name_s = macro_f_string_static_t_initialize(CONTROL_program_name_s, 0, CONTROL_program_name_s_length); const f_string_static_t control_program_name_long_s = macro_f_string_static_t_initialize(CONTROL_program_name_long_s, 0, CONTROL_program_name_long_s_length); -#endif // _di_control_program_name_ +#endif // _di_control_program_name_s_ -#ifndef _di_control_parameters_ +#ifndef _di_control_parameter_d_ const f_string_static_t control_short_name_s = macro_f_string_static_t_initialize(CONTROL_short_name_s, 0, CONTROL_short_name_s_length); const f_string_static_t control_short_return_s = macro_f_string_static_t_initialize(CONTROL_short_return_s, 0, CONTROL_short_return_s_length); const f_string_static_t control_short_settings_s = macro_f_string_static_t_initialize(CONTROL_short_settings_s, 0, CONTROL_short_settings_s_length); @@ -24,7 +24,7 @@ extern "C" { const f_string_static_t control_long_return_s = macro_f_string_static_t_initialize(CONTROL_long_return_s, 0, CONTROL_long_return_s_length); const f_string_static_t control_long_settings_s = macro_f_string_static_t_initialize(CONTROL_long_settings_s, 0, CONTROL_long_settings_s_length); const f_string_static_t control_long_socket_s = macro_f_string_static_t_initialize(CONTROL_long_socket_s, 0, CONTROL_long_socket_s_length); -#endif // _di_control_parameters_ +#endif // _di_control_parameter_d_ #ifndef _di_control_action_type_identify_ uint8_t control_action_type_identify(const f_string_static_t action) { diff --git a/level_3/control/c/common.h b/level_3/control/c/common.h index 8862cad..4620183 100644 --- a/level_3/control/c/common.h +++ b/level_3/control/c/common.h @@ -19,7 +19,7 @@ extern "C" { /** * The program version. */ -#ifndef _di_control_program_version_ +#ifndef _di_control_program_version_s_ #define CONTROL_program_version_major_s F_string_ascii_0_s #define CONTROL_program_version_minor_s F_string_ascii_7_s #define CONTROL_program_version_micro_s F_string_ascii_0_s @@ -43,12 +43,12 @@ extern "C" { #define CONTROL_program_version_s_length CONTROL_program_version_major_s_length + F_string_ascii_period_s_length + CONTROL_program_version_minor_s_length + F_string_ascii_period_s_length + CONTROL_program_version_micro_s_length + CONTROL_program_version_nano_prefix_s_length + CONTROL_program_version_nano_s_length extern const f_string_static_t control_program_version_s; -#endif // _di_control_program_version_ +#endif // _di_control_program_version_s_ /** * The program name. */ -#ifndef _di_control_program_name_ +#ifndef _di_control_program_name_s_ #define CONTROL_program_name_s "control" #define CONTROL_program_name_long_s "Control Program" @@ -57,12 +57,12 @@ extern "C" { extern const f_string_static_t control_program_name_s; extern const f_string_static_t control_program_name_long_s; -#endif // _di_control_program_name_ +#endif // _di_control_program_name_s_ /** * The main program parameters. */ -#ifndef _di_control_parameters_ +#ifndef _di_control_parameter_d_ #define CONTROL_short_name_s "n" #define CONTROL_short_return_s "R" #define CONTROL_short_settings_s "s" @@ -111,7 +111,7 @@ extern "C" { control_parameter_return_e, control_parameter_settings_e, control_parameter_socket_e, - }; + }; // enum #define control_console_parameter_t_initialize \ { \ @@ -135,7 +135,7 @@ extern "C" { } #define control_total_parameters_d 16 -#endif // _di_control_parameters_ +#endif // _di_control_parameter_d_ /** * Codes representing supported actions. @@ -154,7 +154,7 @@ extern "C" { * stop: Perform the stop controller operation. * thaw: Perform the thaw controller operation. */ -#ifndef _di_control_action_types_ +#ifndef _di_control_action_type_e_ enum { control_action_type_freeze_e = 1, control_action_type_kexec_e, @@ -169,8 +169,8 @@ extern "C" { control_action_type_start_e, control_action_type_stop_e, control_action_type_thaw_e, - }; -#endif // _di_control_action_types_ + }; // enum +#endif // _di_control_action_type_e_ /** * Supported payload types. @@ -179,13 +179,13 @@ extern "C" { * error: The payload is an error payload. * init: The payload is an init payload (only available when operating in "init" mode). */ -#ifndef _di_control_payload_types_ +#ifndef _di_control_payload_type_e_ enum { control_payload_type_controller_e = 1, control_payload_type_error_e, control_payload_type_init_e, - }; -#endif // _di_control_payload_types_ + }; // enum +#endif // _di_control_payload_type_e_ /** * Flags used to represent flags passed to the main function. @@ -212,7 +212,7 @@ extern "C" { control_main_flag_strip_invalid_e = 0x20, control_main_flag_verify_e = 0x40, control_main_flag_version_e = 0x80, - }; + }; // enum #endif // _di_control_main_flag_e_ /** diff --git a/level_3/controller/c/common.c b/level_3/controller/c/common.c index 4389cfe..dd09a31 100644 --- a/level_3/controller/c/common.c +++ b/level_3/controller/c/common.c @@ -5,11 +5,11 @@ extern "C" { #endif -#ifndef _di_controller_program_version_ +#ifndef _di_controller_program_version_s_ const f_string_static_t controller_program_version_s = macro_f_string_static_t_initialize(CONTROLLER_program_version_s, 0, CONTROLLER_program_version_s_length); -#endif // _di_controller_program_version_ +#endif // _di_controller_program_version_s_ -#ifndef _di_controller_parameters_ +#ifndef _di_controller_parameter_d_ const f_string_static_t controller_short_cgroup_s = macro_f_string_static_t_initialize(CONTROLLER_short_cgroup_s, 0, CONTROLLER_short_cgroup_s_length); const f_string_static_t controller_short_daemon_s = macro_f_string_static_t_initialize(CONTROLLER_short_daemon_s, 0, CONTROLLER_short_daemon_s_length); const f_string_static_t controller_short_init_s = macro_f_string_static_t_initialize(CONTROLLER_short_init_s, 0, CONTROLLER_short_init_s_length); @@ -31,7 +31,7 @@ extern "C" { const f_string_static_t controller_long_socket_s = macro_f_string_static_t_initialize(CONTROLLER_long_socket_s, 0, CONTROLLER_long_socket_s_length); const f_string_static_t controller_long_uninterruptible_s = macro_f_string_static_t_initialize(CONTROLLER_long_uninterruptible_s, 0, CONTROLLER_long_uninterruptible_s_length); const f_string_static_t controller_long_validate_s = macro_f_string_static_t_initialize(CONTROLLER_long_validate_s, 0, CONTROLLER_long_validate_s_length); -#endif // _di_controller_parameters_ +#endif // _di_controller_parameter_d_ #ifndef _di_controller_control_payload_type_identify_ uint8_t controller_control_payload_type_identify(const f_string_static_t payload) { diff --git a/level_3/controller/c/common.h b/level_3/controller/c/common.h index c4f056f..26a9ad6 100644 --- a/level_3/controller/c/common.h +++ b/level_3/controller/c/common.h @@ -19,7 +19,7 @@ extern "C" { /** * The program version. */ -#ifndef _di_controller_program_version_ +#ifndef _di_controller_program_version_s_ #define CONTROLLER_program_version_major_s F_string_ascii_0_s #define CONTROLLER_program_version_minor_s F_string_ascii_7_s #define CONTROLLER_program_version_micro_s F_string_ascii_0_s @@ -43,12 +43,12 @@ extern "C" { #define CONTROLLER_program_version_s_length CONTROLLER_program_version_major_s_length + F_string_ascii_period_s_length + CONTROLLER_program_version_minor_s_length + F_string_ascii_period_s_length + CONTROLLER_program_version_micro_s_length + CONTROLLER_program_version_nano_prefix_s_length + CONTROLLER_program_version_nano_s_length extern const f_string_static_t controller_program_version_s; -#endif // _di_controller_program_version_ +#endif // _di_controller_program_version_s_ /** * The main program parameters. */ -#ifndef _di_controller_parameters_ +#ifndef _di_controller_parameter_d_ #define CONTROLLER_short_cgroup_s "c" #define CONTROLLER_short_daemon_s "d" #define CONTROLLER_short_init_s "I" @@ -139,7 +139,7 @@ extern "C" { controller_parameter_socket_e, controller_parameter_uninterruptible_e, controller_parameter_validate_e, - }; + }; // enum #define controller_console_parameter_t_initialize \ { \ @@ -169,7 +169,7 @@ extern "C" { } #define controller_total_parameters_d 22 -#endif // _di_controller_parameters_ +#endif // _di_controller_parameter_d_ /** * The main program data. @@ -272,13 +272,13 @@ extern "C" { * - error: The item type represents a script operation. * - init: The item type represents an init operation (Only fo init mode). */ -#ifndef _di_controller_control_payload_types_t_ +#ifndef _di_controller_control_payload_type_e_ enum { controller_control_payload_type_controller_e = 1, controller_control_payload_type_error_e, controller_control_payload_type_init_e, - }; -#endif // _di_controller_control_payload_types_t_ + }; // enum +#endif // _di_controller_control_payload_type_e_ /** * Codes representing supported actions. @@ -302,7 +302,7 @@ extern "C" { * - timeout: Perform the timeout controller operation. * - thaw: Perform the thaw controller operation. */ -#ifndef _di_controller_entry_action_types_t_ +#ifndef _di_controller_entry_action_type_e_ enum { controller_entry_action_type_consider_e = 1, controller_entry_action_type_execute_e, @@ -322,8 +322,8 @@ extern "C" { controller_entry_action_type_stop_e, controller_entry_action_type_timeout_e, controller_entry_action_type_thaw_e, - }; -#endif // _di_controller_entry_action_types_t_ + }; // enum +#endif // _di_controller_entry_action_type_e_ /** * Codes representing rule actions. @@ -344,7 +344,7 @@ extern "C" { * - user: The User setting. * - with: The With flags. */ -#ifndef _di_controller_rule_action_types_t_ +#ifndef _di_controller_rule_action_type_e_ enum { controller_rule_action_type_freeze_e = 1, controller_rule_action_type_group_e, @@ -363,8 +363,8 @@ extern "C" { // Designate the largest value in the enum, the '__' is intended. controller_rule_action_type__enum_size_e, - }; -#endif // _di_controller_rule_action_types_t_ + }; // enum +#endif // _di_controller_rule_action_type_e_ /** * Codes representing rule action executes. @@ -382,7 +382,7 @@ extern "C" { * - stop: The Stop execution instructions. * - thaw: The Thaw execution instructions. */ -#ifndef _di_controller_rule_action_execute_types_t_ +#ifndef _di_controller_rule_action_execute_type_e_ enum { controller_rule_action_execute_type_freeze_e = 0, controller_rule_action_execute_type_kill_e, @@ -396,8 +396,8 @@ extern "C" { // Designate the largest value in the enum, the '__' is intended. controller_rule_action_execute_type__enum_size_e, - }; -#endif // _di_controller_rule_action_execute_types_t_ + }; // enum +#endif // _di_controller_rule_action_execute_type_e_ /** * Codes representing rule items. @@ -409,22 +409,22 @@ extern "C" { * - settings: The item type represents a setting operation. * - utility: The item type represents a utility operation. */ -#ifndef _di_controller_rule_item_types_t_ +#ifndef _di_controller_rule_item_type_e_ enum { controller_rule_item_type_command_e = 1, controller_rule_item_type_script_e, controller_rule_item_type_service_e, controller_rule_item_type_settings_e, controller_rule_item_type_utility_e, - }; -#endif // _di_controller_rule_item_types_t_ + }; // enum +#endif // _di_controller_rule_item_type_e_ /** * A set of codes for resource limitations. * * This essentally converts the POSIX standard names into a more verbose format. */ -#ifndef _di_controller_resource_limit_t_ +#ifndef _di_controller_resource_limit_type_d_ enum { controller_resource_limit_type_as_e = RLIMIT_AS, controller_resource_limit_type_core_e = RLIMIT_CORE, @@ -442,8 +442,8 @@ extern "C" { controller_resource_limit_type_rttime_e = RLIMIT_RTTIME, controller_resource_limit_type_sigpending_e = RLIMIT_SIGPENDING, controller_resource_limit_type_stack_e = RLIMIT_STACK, - }; -#endif // _di_controller_resource_limit_t_ + }; // enum +#endif // _di_controller_resource_limit_type_d_ /** * Flags used to represent flags passed to the main function. @@ -470,7 +470,7 @@ extern "C" { controller_main_flag_strip_invalid_e = 0x20, controller_main_flag_verify_e = 0x40, controller_main_flag_version_e = 0x80, - }; + }; // enum #endif // _di_controller_main_flag_e_ /** diff --git a/level_3/fake/c/common.c b/level_3/fake/c/common.c index 19f7e72..52ce637 100644 --- a/level_3/fake/c/common.c +++ b/level_3/fake/c/common.c @@ -4,24 +4,24 @@ extern "C" { #endif -#ifndef _di_fake_program_version_ +#ifndef _di_fake_program_version_s_ const f_string_static_t fake_program_version_s = macro_f_string_static_t_initialize(FAKE_program_version_s, 0, FAKE_program_version_s_length); -#endif // _di_fake_program_version_ +#endif // _di_fake_program_version_s_ -#ifndef _di_fake_program_name_ +#ifndef _di_fake_program_name_s_ const f_string_static_t fake_program_name_s = macro_f_string_static_t_initialize(FAKE_program_name_s, 0, FAKE_program_name_s_length); const f_string_static_t fake_program_name_long_s = macro_f_string_static_t_initialize(FAKE_program_name_long_s, 0, FAKE_program_name_long_s_length); -#endif // _di_fake_program_name_ +#endif // _di_fake_program_name_s_ -#ifndef _di_fake_program_help_parameters_ +#ifndef _di_fake_program_help_parameter_s_ const f_string_static_t fake_program_help_parameters_s = macro_f_string_static_t_initialize(FAKE_program_help_parameters_s, 0, FAKE_program_help_parameters_s_length); -#endif // _di_fake_program_help_parameters_ +#endif // _di_fake_program_help_parameter_s_ /** * The build operation utilizes pre-defined path structures. * These structures are hard-coded by their individual pieces to be constructed later on. */ -#ifndef _di_fake_path_ +#ifndef _di_fake_path_s_ const f_string_static_t fake_path_part_bash_s = macro_f_string_static_t_initialize(FAKE_path_part_bash_s, 0, FAKE_path_part_bash_s_length); const f_string_static_t fake_path_part_build_s = macro_f_string_static_t_initialize(FAKE_path_part_build_s, 0, FAKE_path_part_build_s_length); const f_string_static_t fake_path_part_c_s = macro_f_string_static_t_initialize(FAKE_path_part_c_s, 0, FAKE_path_part_c_s_length); @@ -40,20 +40,20 @@ extern "C" { const f_string_static_t fake_path_part_specifications_s = macro_f_string_static_t_initialize(FAKE_path_part_specifications_s, 0, FAKE_path_part_specifications_s_length); const f_string_static_t fake_path_part_stage_s = macro_f_string_static_t_initialize(FAKE_path_part_stage_s, 0, FAKE_path_part_stage_s_length); const f_string_static_t fake_path_part_static_s = macro_f_string_static_t_initialize(FAKE_path_part_static_s, 0, FAKE_path_part_static_s_length); -#endif // _di_fake_path_ +#endif // _di_fake_path_s_ -#ifndef _di_fake_file_ +#ifndef _di_fake_file_s_ const f_string_static_t fake_file_defines_s = macro_f_string_static_t_initialize(FAKE_file_defines_s, 0, FAKE_file_defines_s_length); const f_string_static_t fake_file_dependencies_s = macro_f_string_static_t_initialize(FAKE_file_dependencies_s, 0, FAKE_file_dependencies_s_length); const f_string_static_t fake_file_process_pre_s = macro_f_string_static_t_initialize(FAKE_file_process_pre_s, 0, FAKE_file_process_pre_s_length); const f_string_static_t fake_file_process_post_s = macro_f_string_static_t_initialize(FAKE_file_process_post_s, 0, FAKE_file_process_post_s_length); const f_string_static_t fake_file_readme_s = macro_f_string_static_t_initialize(FAKE_file_readme_s, 0, FAKE_file_readme_s_length); -#endif // _di_fake_file_ +#endif // _di_fake_file_s_ /** * Provide default settings. */ -#ifndef _di_fake_defaults_ +#ifndef _di_fake_default_s_ const f_string_static_t fake_default_path_build_s = macro_f_string_static_t_initialize(FAKE_default_path_build_s, 0, FAKE_default_path_build_s_length); const f_string_static_t fake_default_path_data_s = macro_f_string_static_t_initialize(FAKE_default_path_data_s, 0, FAKE_default_path_data_s_length); const f_string_static_t fake_default_path_sources_s = macro_f_string_static_t_initialize(FAKE_default_path_sources_s, 0, FAKE_default_path_sources_s_length); @@ -64,22 +64,22 @@ extern "C" { const f_string_static_t fake_default_mode_s = macro_f_string_static_t_initialize(FAKE_default_mode_s, 0, FAKE_default_mode_s_length); const f_string_static_t fake_default_process_s = macro_f_string_static_t_initialize(FAKE_default_process_s, 0, FAKE_default_process_s_length); const f_string_static_t fake_default_settings_s = macro_f_string_static_t_initialize(FAKE_default_settings_s, 0, FAKE_default_settings_s_length); -#endif // _di_fake_defaults_ +#endif // _di_fake_default_s_ -#ifndef _di_fake_build_language_ +#ifndef _di_fake_build_language_s_ const f_string_static_t fake_build_language_bash_s = macro_f_string_static_t_initialize(FAKE_build_language_bash_s, 0, FAKE_build_language_bash_s_length); const f_string_static_t fake_build_language_c_s = macro_f_string_static_t_initialize(FAKE_build_language_c_s, 0, FAKE_build_language_c_s_length); const f_string_static_t fake_build_language_cpp_s = macro_f_string_static_t_initialize(FAKE_build_language_cpp_s, 0, FAKE_build_language_cpp_s_length); -#endif // _di_fake_build_language_ +#endif // _di_fake_build_language_s_ -#ifndef _di_fake_build_version_ +#ifndef _di_fake_build_version_s_ const f_string_static_t fake_build_version_major_s = macro_f_string_static_t_initialize(FAKE_build_version_major_s, 0, FAKE_build_version_major_s_length); const f_string_static_t fake_build_version_minor_s = macro_f_string_static_t_initialize(FAKE_build_version_minor_s, 0, FAKE_build_version_minor_s_length); const f_string_static_t fake_build_version_micro_s = macro_f_string_static_t_initialize(FAKE_build_version_micro_s, 0, FAKE_build_version_micro_s_length); const f_string_static_t fake_build_version_nano_s = macro_f_string_static_t_initialize(FAKE_build_version_nano_s, 0, FAKE_build_version_nano_s_length); -#endif // _di_fake_build_version_ +#endif // _di_fake_build_version_s_ -#ifndef _di_fake_parameters_ +#ifndef _di_fake_parameter_d_ const f_string_static_t fake_short_define_s = macro_f_string_static_t_initialize(FAKE_short_define_s, 0, FAKE_short_define_s_length); const f_string_static_t fake_short_fakefile_s = macro_f_string_static_t_initialize(FAKE_short_fakefile_s, 0, FAKE_short_fakefile_s_length); const f_string_static_t fake_short_mode_s = macro_f_string_static_t_initialize(FAKE_short_mode_s, 0, FAKE_short_mode_s_length); @@ -113,7 +113,7 @@ extern "C" { const f_string_static_t fake_other_operation_clean_s = macro_f_string_static_t_initialize(FAKE_other_operation_clean_s, 0, FAKE_other_operation_clean_s_length); const f_string_static_t fake_other_operation_make_s = macro_f_string_static_t_initialize(FAKE_other_operation_make_s, 0, FAKE_other_operation_make_s_length); const f_string_static_t fake_other_operation_skeleton_s = macro_f_string_static_t_initialize(FAKE_other_operation_skeleton_s, 0, FAKE_other_operation_skeleton_s_length); -#endif // _di_fake_parameters_ +#endif // _di_fake_parameter_d_ #ifndef _di_fake_setting_delete_ f_status_t fake_setting_delete(fake_setting_t * const setting) { diff --git a/level_3/fake/c/common.h b/level_3/fake/c/common.h index 51b9b9f..344153f 100644 --- a/level_3/fake/c/common.h +++ b/level_3/fake/c/common.h @@ -19,7 +19,7 @@ extern "C" { /** * The program version. */ -#ifndef _di_fake_program_version_ +#ifndef _di_fake_program_version_s_ #define FAKE_program_version_major_s F_string_ascii_0_s #define FAKE_program_version_minor_s F_string_ascii_7_s #define FAKE_program_version_micro_s F_string_ascii_0_s @@ -43,12 +43,12 @@ extern "C" { #define FAKE_program_version_s_length FAKE_program_version_major_s_length + F_string_ascii_period_s_length + FAKE_program_version_minor_s_length + F_string_ascii_period_s_length + FAKE_program_version_micro_s_length + FAKE_program_version_nano_prefix_s_length + FAKE_program_version_nano_s_length extern const f_string_static_t fake_program_version_s; -#endif // _di_fake_program_version_ +#endif // _di_fake_program_version_s_ /** * The program name. */ -#ifndef _di_fake_program_name_ +#ifndef _di_fake_program_name_s_ #define FAKE_program_name_s "fake" #define FAKE_program_name_long_s "Featureless Make" @@ -57,34 +57,23 @@ extern "C" { extern const f_string_static_t fake_program_name_s; extern const f_string_static_t fake_program_name_long_s; -#endif // _di_fake_program_name_ +#endif // _di_fake_program_name_s_ /** * The program help related data. */ -#ifndef _di_fake_program_help_parameters_ +#ifndef _di_fake_program_help_parameter_s_ #define FAKE_program_help_parameters_s "operation" #define FAKE_program_help_parameters_s_length 9 extern const f_string_static_t fake_program_help_parameters_s; -#endif // _di_fake_program_help_parameters_ - -/*** - * Default allocations. - * - * Set to at least 4 to provide a UTF-8 friendly allocation step. - */ -#ifndef _di_fake_default_allocation_ - #define fake_default_allocation_pipe_d 16384 - #define fake_default_allocation_large_d 64 - #define fake_default_allocation_small_d 8 -#endif // _di_fake_default_allocation_ +#endif // _di_fake_program_help_parameter_s_ /** * The build operation utilizes pre-defined path structures. * These structures are hard-coded by their individual pieces to be constructed later on. */ -#ifndef _di_fake_path_ +#ifndef _di_fake_path_s_ #define FAKE_path_part_bash_s "bash" F_path_separator_s #define FAKE_path_part_build_s "build" F_path_separator_s #define FAKE_path_part_c_s "c" F_path_separator_s @@ -141,12 +130,12 @@ extern "C" { extern const f_string_static_t fake_path_part_specifications_s; extern const f_string_static_t fake_path_part_stage_s; extern const f_string_static_t fake_path_part_static_s; -#endif // _di_fake_path_ +#endif // _di_fake_path_s_ /** * The file settings. */ -#ifndef _di_fake_file_ +#ifndef _di_fake_file_s_ #define FAKE_file_defines_s "defines" #define FAKE_file_dependencies_s "dependencies" #define FAKE_file_process_pre_s "process_pre.sh" @@ -164,12 +153,23 @@ extern "C" { extern const f_string_static_t fake_file_process_pre_s; extern const f_string_static_t fake_file_process_post_s; extern const f_string_static_t fake_file_readme_s; -#endif // _di_fake_file_ +#endif // _di_fake_file_s_ + +/*** + * Default allocations. + * + * Set to at least 4 to provide a UTF-8 friendly allocation step. + */ +#ifndef _di_fake_default_d_ + #define fake_default_allocation_pipe_d 16384 + #define fake_default_allocation_large_d 64 + #define fake_default_allocation_small_d 8 +#endif // _di_fake_default_d_ /** * Provide default settings. */ -#ifndef _di_fake_defaults_ +#ifndef _di_fake_default_s_ #define FAKE_default_path_build_s "build" F_path_separator_s #define FAKE_default_path_data_s "data" F_path_separator_s #define FAKE_default_path_sources_s "sources" F_path_separator_s @@ -202,18 +202,23 @@ extern "C" { extern const f_string_static_t fake_default_mode_s; extern const f_string_static_t fake_default_process_s; extern const f_string_static_t fake_default_settings_s; -#endif // _di_fake_defaults_ +#endif // _di_fake_default_s_ /** - * The build languages. + * The build language enumerations. */ -#ifndef _di_fake_build_language_ +#ifndef _di_fake_build_language_e_ enum { fake_build_language_type_bash_e = 1, fake_build_language_type_c_e, fake_build_language_type_cpp_e, - }; + }; // enum +#endif // _di_fake_build_language_e_ +/** + * The build language strings. + */ +#ifndef _di_fake_build_language_s_ #define FAKE_build_language_bash_s "bash" #define FAKE_build_language_c_s "c" #define FAKE_build_language_cpp_s "c++" @@ -225,19 +230,24 @@ extern "C" { extern const f_string_static_t fake_build_language_bash_s; extern const f_string_static_t fake_build_language_c_s; extern const f_string_static_t fake_build_language_cpp_s; -#endif // _di_fake_build_language_ +#endif // _di_fake_build_language_s_ /** - * The program version. + * The program version enumerations. */ -#ifndef _di_fake_build_version_ +#ifndef _di_fake_build_version_e_ enum { fake_build_version_type_major_e = 1, fake_build_version_type_minor_e, fake_build_version_type_micro_e, fake_build_version_type_nano_e, - }; + }; // enum +#endif // _di_fake_build_version_e_ +/** + * The program version strings. + */ +#ifndef _di_fake_build_version_s_ #define FAKE_build_version_major_s "major" #define FAKE_build_version_minor_s "minor" #define FAKE_build_version_micro_s "micro" @@ -252,31 +262,33 @@ extern "C" { extern const f_string_static_t fake_build_version_minor_s; extern const f_string_static_t fake_build_version_micro_s; extern const f_string_static_t fake_build_version_nano_s; -#endif // _di_fake_build_version_ +#endif // _di_fake_build_version_s_ /** - * The program defines. + * The program operation enumerations. */ -#ifndef _di_fake_defines_ +#ifndef _di_fake_operation_e_ enum { fake_operation_build_e = 1, fake_operation_clean_e, fake_operation_make_e, fake_operation_skeleton_e, - }; + }; // enum +#endif // _di_fake_operation_e_ +/** + * The program defines. + */ +#ifndef _di_fake_d_ #define fake_signal_check_d 500000 #define fake_signal_check_tiny_d 4 #define fake_signal_check_short_d 16 - - #define fake_operations_total_d 4 - #define fake_operations_initialize { 0, 0, 0, 0 } -#endif // _di_fake_defines_ +#endif // _di_fake_d_ /** * The main program parameters. */ -#ifndef _di_fake_parameters_ +#ifndef _di_fake_parameter_d_ #define FAKE_short_define_s "d" #define FAKE_short_fakefile_s "f" #define FAKE_short_mode_s "m" @@ -416,7 +428,7 @@ extern "C" { fake_parameter_operation_clean_e, fake_parameter_operation_make_e, fake_parameter_operation_skeleton_e, - }; + }; // enum #define fake_console_parameter_t_initialize \ { \ @@ -455,7 +467,7 @@ extern "C" { } #define fake_total_parameters_d 31 -#endif // _di_fake_parameters_ +#endif // _di_fake_parameter_d_ /** * Flags used to represent flags passed to the main function. @@ -482,7 +494,7 @@ extern "C" { fake_main_flag_strip_invalid_e = 0x20, fake_main_flag_verify_e = 0x40, fake_main_flag_version_e = 0x80, - }; + }; // enum #endif // _di_fake_main_flag_e_ /** diff --git a/level_3/firewall/c/common.c b/level_3/firewall/c/common.c index 1d16175..cbfc3df 100644 --- a/level_3/firewall/c/common.c +++ b/level_3/firewall/c/common.c @@ -4,20 +4,20 @@ extern "C" { #endif -#ifndef _di_firewall_program_version_ +#ifndef _di_firewall_program_version_s_ const f_string_static_t firewall_program_version_s = macro_f_string_static_t_initialize(FIREWALL_program_version_s, 0, FIREWALL_program_version_s_length); -#endif // _di_firewall_program_version_ +#endif // _di_firewall_program_version_s_ -#ifndef _di_firewall_program_name_ +#ifndef _di_firewall_program_name_s_ const f_string_static_t firewall_program_name_s = macro_f_string_static_t_initialize(FIREWALL_program_name_s, 0, FIREWALL_program_name_s_length); const f_string_static_t firewall_program_name_long_s = macro_f_string_static_t_initialize(FIREWALL_program_name_long_s, 0, FIREWALL_program_name_long_s_length); -#endif // _di_firewall_program_name_ +#endif // _di_firewall_program_name_s_ -#ifndef _di_firewall_program_help_parameters_ +#ifndef _di_firewall_program_help_parameters_s_ const f_string_static_t firewall_program_help_parameters_s = macro_f_string_static_t_initialize(FIREWALL_program_help_parameters_s, 0, FIREWALL_program_help_parameters_s_length); -#endif // _di_firewall_program_help_parameters_ +#endif // _di_firewall_program_help_parameters_s_ -#ifndef _di_firewall_paths_ +#ifndef _di_firewall_path_s_ const f_string_static_t firewall_file_first_s = macro_f_string_static_t_initialize(FIREWALL_file_first_s, 0, FIREWALL_file_first_s_length); const f_string_static_t firewall_file_last_s = macro_f_string_static_t_initialize(FIREWALL_file_last_s, 0, FIREWALL_file_last_s_length); const f_string_static_t firewall_file_other_s = macro_f_string_static_t_initialize(FIREWALL_file_other_s, 0, FIREWALL_file_other_s_length); @@ -25,9 +25,9 @@ extern "C" { const f_string_static_t firewall_network_path_s = macro_f_string_static_t_initialize(FIREWALL_network_path_s, 0, FIREWALL_network_path_s_length); const f_string_static_t firewall_network_devices_s = macro_f_string_static_t_initialize(FIREWALL_network_devices_s, 0, FIREWALL_network_devices_s_length); -#endif // _di_firewall_paths_ +#endif // _di_firewall_path_s_ -#ifndef _di_firewall_defines_ +#ifndef _di_firewall_d_ const f_string_static_t firewall_action_s = macro_f_string_static_t_initialize(FIREWALL_action_s, 0, FIREWALL_action_s_length); const f_string_static_t firewall_action_append_s = macro_f_string_static_t_initialize(FIREWALL_action_append_s, 0, FIREWALL_action_append_s_length); const f_string_static_t firewall_action_insert_s = macro_f_string_static_t_initialize(FIREWALL_action_insert_s, 0, FIREWALL_action_insert_s_length); @@ -101,7 +101,7 @@ extern "C" { const f_string_static_t firewall_tool_ip6tables_s = macro_f_string_static_t_initialize(FIREWALL_tool_ip6tables_s, 0, FIREWALL_tool_ip6tables_s_length); const f_string_static_t firewall_tool_ip46tables_s = macro_f_string_static_t_initialize(FIREWALL_tool_ip46tables_s, 0, FIREWALL_tool_ip46tables_s_length); const f_string_static_t firewall_tool_ipset_s = macro_f_string_static_t_initialize(FIREWALL_tool_ipset_s, 0, FIREWALL_tool_ipset_s_length); -#endif // _di_firewall_defines_ +#endif // _di_firewall_d_ #ifndef _di_firewall_setting_delete_ f_status_t firewall_setting_delete(firewall_setting_t * const setting) { diff --git a/level_3/firewall/c/common.h b/level_3/firewall/c/common.h index 8a80dea..2db3934 100644 --- a/level_3/firewall/c/common.h +++ b/level_3/firewall/c/common.h @@ -19,7 +19,7 @@ extern "C" { /** * The program version. */ -#ifndef _di_firewall_program_version_ +#ifndef _di_firewall_program_version_s_ #define FIREWALL_program_version_major_s F_string_ascii_0_s #define FIREWALL_program_version_minor_s F_string_ascii_7_s #define FIREWALL_program_version_micro_s F_string_ascii_0_s @@ -43,12 +43,12 @@ extern "C" { #define FIREWALL_program_version_s_length FIREWALL_program_version_major_s_length + F_string_ascii_period_s_length + FIREWALL_program_version_minor_s_length + F_string_ascii_period_s_length + FIREWALL_program_version_micro_s_length + FIREWALL_program_version_nano_prefix_s_length + FIREWALL_program_version_nano_s_length extern const f_string_static_t firewall_program_version_s; -#endif // _di_firewall_program_version_ +#endif // _di_firewall_program_version_s_ /** * The program name. */ -#ifndef _di_firewall_program_name_ +#ifndef _di_firewall_program_name_s_ #define FIREWALL_program_name_s "firewall" #define FIREWALL_program_name_long_s "Kevux Firewall Manager" @@ -57,22 +57,22 @@ extern "C" { extern const f_string_static_t firewall_program_name_s; extern const f_string_static_t firewall_program_name_long_s; -#endif // _di_firewall_program_name_ +#endif // _di_firewall_program_name_s_ /** * The program help related data. */ -#ifndef _di_firewall_program_help_parameters_ +#ifndef _di_firewall_program_help_parameters_s_ #define FIREWALL_program_help_parameters_s "command" #define FIREWALL_program_help_parameters_s_length 7 extern const f_string_static_t firewall_program_help_parameters_s; -#endif // _di_firewall_program_help_parameters_ +#endif // _di_firewall_program_help_parameters_s_ /** * The program paths. */ -#ifndef _di_firewall_paths_ +#ifndef _di_firewall_path_s_ #define FIREWALL_file_first_s "firewall-first" #define FIREWALL_file_last_s "firewall-last" #define FIREWALL_file_other_s "firewall-other" @@ -96,26 +96,26 @@ extern "C" { extern const f_string_static_t firewall_network_path_s; extern const f_string_static_t firewall_network_devices_s; -#endif // _di_firewall_paths_ +#endif // _di_firewall_path_s_ /** * Default allocations. */ -#ifndef _di_firewall_default_allocation_step_ +#ifndef _di_firewall_default_d_ #define firewall_default_allocation_step_d F_memory_default_allocation_small_d -#endif // _di_firewall_default_allocation_step_ +#endif // _di_firewall_default_d_ /** * The program defines. */ -#ifndef _di_firewall_defines_ +#ifndef _di_firewall_d_ #define firewall_signal_check_d 20000 -#endif // _di_firewall_defines_ +#endif // _di_firewall_d_ /** * The main program parameters. */ -#ifndef _di_firewall_parameters_ +#ifndef _di_firewall_parameter_d_ #define FIREWALL_action_s "action" #define FIREWALL_action_append_s "append" #define FIREWALL_action_insert_s "insert" @@ -344,7 +344,7 @@ extern "C" { firewall_program_ip6tables_e, firewall_program_ip46tables_e, firewall_program_ipset_e, - }; + }; // enum enum { firewall_parameter_help_e, @@ -382,7 +382,7 @@ extern "C" { firewall_action_insert_id_e, firewall_action_policy_id_e, firewall_action_none_id_e, - }; + }; // enum #define firewall_console_parameter_t_initialize \ { \ @@ -407,7 +407,7 @@ extern "C" { } #define firewall_total_parameters_d 17 -#endif // _di_firewall_defines_ +#endif // _di_firewall_parameter_d_ /** * Flags used to represent flags passed to the main function. @@ -434,7 +434,7 @@ extern "C" { firewall_main_flag_strip_invalid_e = 0x20, firewall_main_flag_verify_e = 0x40, firewall_main_flag_version_e = 0x80, - }; + }; // enum #endif // _di_firewall_main_flag_e_ /** diff --git a/level_3/fss_basic_list_read/c/common.c b/level_3/fss_basic_list_read/c/common.c index 66bea4b..aaedcf4 100644 --- a/level_3/fss_basic_list_read/c/common.c +++ b/level_3/fss_basic_list_read/c/common.c @@ -4,24 +4,24 @@ extern "C" { #endif -#ifndef _di_fss_basic_list_read_program_version_ +#ifndef _di_fss_basic_list_read_program_version_s_ const f_string_static_t fss_basic_list_read_program_version_s = macro_f_string_static_t_initialize(FSS_BASIC_LIST_READ_program_version_s, 0, FSS_BASIC_LIST_READ_program_version_s_length); -#endif // _di_fss_basic_list_read_program_version_ +#endif // _di_fss_basic_list_read_program_version_s_ -#ifndef _di_fss_basic_list_read_program_name_ +#ifndef _di_fss_basic_list_read_program_name_s_ const f_string_static_t fss_basic_list_read_program_name_s = macro_f_string_static_t_initialize(FSS_BASIC_LIST_READ_program_name_s, 0, FSS_BASIC_LIST_READ_program_name_s_length); const f_string_static_t fss_basic_list_read_program_name_long_s = macro_f_string_static_t_initialize(FSS_BASIC_LIST_READ_program_name_long_s, 0, FSS_BASIC_LIST_READ_program_name_long_s_length); -#endif // _di_fss_basic_list_read_program_name_ +#endif // _di_fss_basic_list_read_program_name_s_ -#ifndef _di_fss_basic_list_read_defines_ +#ifndef _di_fss_basic_list_read_pipe_s_ const f_string_static_t fss_basic_list_read_pipe_name_s = macro_f_string_static_t_initialize(FSS_BASIC_LIST_READ_pipe_name_s, 0, FSS_BASIC_LIST_READ_pipe_name_s_length); const f_string_static_t fss_basic_list_read_pipe_content_end_s = macro_f_string_static_t_initialize(FSS_BASIC_LIST_READ_pipe_content_end_s, 0, FSS_BASIC_LIST_READ_pipe_content_end_s_length); const f_string_static_t fss_basic_list_read_pipe_content_ignore_s = macro_f_string_static_t_initialize(FSS_BASIC_LIST_READ_pipe_content_ignore_s, 0, FSS_BASIC_LIST_READ_pipe_content_ignore_s_length); const f_string_static_t fss_basic_list_read_pipe_content_start_s = macro_f_string_static_t_initialize(FSS_BASIC_LIST_READ_pipe_content_start_s, 0, FSS_BASIC_LIST_READ_pipe_content_start_s_length); -#endif // _di_fss_basic_list_read_defines_ +#endif // _di_fss_basic_list_read_pipe_s_ -#ifndef _di_fss_basic_list_read_parameters_ +#ifndef _di_fss_basic_list_read_parameter_d_ const f_string_static_t fss_basic_list_read_short_at_s = macro_f_string_static_t_initialize(FSS_BASIC_LIST_READ_short_at_s, 0, FSS_BASIC_LIST_READ_short_at_s_length); const f_string_static_t fss_basic_list_read_short_content_s = macro_f_string_static_t_initialize(FSS_BASIC_LIST_READ_short_content_s, 0, FSS_BASIC_LIST_READ_short_content_s_length); const f_string_static_t fss_basic_list_read_short_columns_s = macro_f_string_static_t_initialize(FSS_BASIC_LIST_READ_short_columns_s, 0, FSS_BASIC_LIST_READ_short_columns_s_length); @@ -51,15 +51,15 @@ extern "C" { const f_string_static_t fss_basic_list_read_long_select_s = macro_f_string_static_t_initialize(FSS_BASIC_LIST_READ_long_select_s, 0, FSS_BASIC_LIST_READ_long_select_s_length); const f_string_static_t fss_basic_list_read_long_total_s = macro_f_string_static_t_initialize(FSS_BASIC_LIST_READ_long_total_s, 0, FSS_BASIC_LIST_READ_long_total_s_length); const f_string_static_t fss_basic_list_read_long_trim_s = macro_f_string_static_t_initialize(FSS_BASIC_LIST_READ_long_trim_s, 0, FSS_BASIC_LIST_READ_long_trim_s_length); -#endif // _di_fss_basic_list_read_parameters_ +#endif // _di_fss_basic_list_read_parameter_d_ -#ifndef _di_fss_basic_list_read_delimit_mode_ +#ifndef _di_fss_basic_list_read_delimit_mode_s_ const f_string_static_t fss_basic_list_read_delimit_mode_name_none_s = macro_f_string_static_t_initialize(FSS_BASIC_LIST_READ_delimit_mode_name_none_s, 0, FSS_BASIC_LIST_READ_delimit_mode_name_none_s_length); const f_string_static_t fss_basic_list_read_delimit_mode_name_all_s = macro_f_string_static_t_initialize(FSS_BASIC_LIST_READ_delimit_mode_name_all_s, 0, FSS_BASIC_LIST_READ_delimit_mode_name_all_s_length); const f_string_static_t fss_basic_list_read_delimit_mode_name_object_s = macro_f_string_static_t_initialize(FSS_BASIC_LIST_READ_delimit_mode_name_object_s, 0, FSS_BASIC_LIST_READ_delimit_mode_name_object_s_length); const f_string_static_t fss_basic_list_read_delimit_mode_name_greater_s = macro_f_string_static_t_initialize(FSS_BASIC_LIST_READ_delimit_mode_name_greater_s, 0, FSS_BASIC_LIST_READ_delimit_mode_name_greater_s_length); const f_string_static_t fss_basic_list_read_delimit_mode_name_lesser_s = macro_f_string_static_t_initialize(FSS_BASIC_LIST_READ_delimit_mode_name_lesser_s, 0, FSS_BASIC_LIST_READ_delimit_mode_name_lesser_s_length); -#endif // _di_fss_basic_list_read_delimit_mode_ +#endif // _di_fss_basic_list_read_delimit_mode_s_ #ifndef _di_fss_basic_list_read_setting_delete_ f_status_t fss_basic_list_read_setting_delete(fss_basic_list_read_setting_t * const setting) { diff --git a/level_3/fss_basic_list_read/c/common.h b/level_3/fss_basic_list_read/c/common.h index d822b30..d94e738 100644 --- a/level_3/fss_basic_list_read/c/common.h +++ b/level_3/fss_basic_list_read/c/common.h @@ -19,7 +19,7 @@ extern "C" { /** * The program version. */ -#ifndef _di_fss_basic_list_read_program_version_ +#ifndef _di_fss_basic_list_read_program_version_s_ #define FSS_BASIC_LIST_READ_program_version_major_s F_string_ascii_0_s #define FSS_BASIC_LIST_READ_program_version_minor_s F_string_ascii_7_s #define FSS_BASIC_LIST_READ_program_version_micro_s F_string_ascii_0_s @@ -43,12 +43,12 @@ extern "C" { #define FSS_BASIC_LIST_READ_program_version_s_length FSS_BASIC_LIST_READ_program_version_major_s_length + F_string_ascii_period_s_length + FSS_BASIC_LIST_READ_program_version_minor_s_length + F_string_ascii_period_s_length + FSS_BASIC_LIST_READ_program_version_micro_s_length + FSS_BASIC_LIST_READ_program_version_nano_prefix_s_length + FSS_BASIC_LIST_READ_program_version_nano_s_length extern const f_string_static_t fss_basic_list_read_program_version_s; -#endif // _di_fss_basic_list_read_program_version_ +#endif // _di_fss_basic_list_read_program_version_s_ /** * The program name. */ -#ifndef _di_fss_basic_list_read_program_name_ +#ifndef _di_fss_basic_list_read_program_name_s_ #define FSS_BASIC_LIST_READ_program_name_s "fss_basic_list_read" #define FSS_BASIC_LIST_READ_program_name_long_s "FSS Basic List Read" @@ -57,7 +57,14 @@ extern "C" { extern const f_string_static_t fss_basic_list_read_program_name_s; extern const f_string_static_t fss_basic_list_read_program_name_long_s; -#endif // _di_fss_basic_list_read_program_name_ +#endif // _di_fss_basic_list_read_program_name_s_ + +/** + * The program signal defines. + */ +#ifndef _di_fss_basic_list_read_d_ + #define fss_basic_list_read_signal_check_d 20000 +#endif // _di_fss_basic_list_read_d_ /** * The program defines. @@ -68,7 +75,7 @@ extern "C" { * - content_ignore: A code used to represent the ignoring Content for use in binary formats. * - content_start: A code used to represent the start of Content for use in binary formats. */ -#ifndef _di_fss_basic_list_read_defines_ +#ifndef _di_fss_basic_list_read_pipe_s_ #define fss_basic_list_read_signal_check_d 20000 #define FSS_BASIC_LIST_READ_pipe_name_s "(pipe)" @@ -88,12 +95,12 @@ extern "C" { extern const f_string_static_t fss_basic_list_read_pipe_content_end_s; extern const f_string_static_t fss_basic_list_read_pipe_content_ignore_s; extern const f_string_static_t fss_basic_list_read_pipe_content_start_s; -#endif // _di_fss_basic_list_read_defines_ +#endif // _di_fss_basic_list_read_pipe_s_ /** * The main program parameters. */ -#ifndef _di_fss_basic_list_read_parameters_ +#ifndef _di_fss_basic_list_read_parameter_d_ #define FSS_BASIC_LIST_READ_short_at_s "a" #define FSS_BASIC_LIST_READ_short_content_s "c" #define FSS_BASIC_LIST_READ_short_columns_s "C" @@ -212,7 +219,7 @@ extern "C" { fss_basic_list_read_parameter_select_e, fss_basic_list_read_parameter_total_e, fss_basic_list_read_parameter_trim_e, - }; + }; // enum #define fss_basic_list_read_console_parameter_t_initialize \ { \ @@ -246,10 +253,10 @@ extern "C" { } #define fss_basic_list_read_total_parameters_d 26 -#endif // _di_fss_basic_list_read_parameters_ +#endif // _di_fss_basic_list_read_parameter_d_ /** - * FSS Delimit Parameter data. + * FSS Delimit Parameter strings. * * fss_basic_list_read_delimit_mode_*: * - all: All delimits are to be aplied. @@ -261,7 +268,7 @@ extern "C" { * - content_object: Objects and Content are to have delimits applied * - object: Objects arre to have delimits applied. */ -#ifndef _di_fss_basic_list_read_delimit_mode_ +#ifndef _di_fss_basic_list_read_delimit_mode_s_ #define FSS_BASIC_LIST_READ_delimit_mode_name_none_s "none" #define FSS_BASIC_LIST_READ_delimit_mode_name_all_s "all" #define FSS_BASIC_LIST_READ_delimit_mode_name_object_s "object" @@ -279,7 +286,12 @@ extern "C" { extern const f_string_static_t fss_basic_list_read_delimit_mode_name_object_s; extern const f_string_static_t fss_basic_list_read_delimit_mode_name_greater_s; extern const f_string_static_t fss_basic_list_read_delimit_mode_name_lesser_s; +#endif // _di_fss_basic_list_read_delimit_mode_s_ +/** + * FSS Delimit Parameter enumerations. + */ +#ifndef _di_fss_basic_list_read_delimit_mode_e_ enum { fss_basic_list_read_delimit_mode_none_e = 1, fss_basic_list_read_delimit_mode_all_e, @@ -290,8 +302,8 @@ extern "C" { fss_basic_list_read_delimit_mode_content_lesser_object_e, fss_basic_list_read_delimit_mode_content_object_e, fss_basic_list_read_delimit_mode_object_e, - }; -#endif // _di_fss_basic_list_read_delimit_modes_ + }; // enum +#endif // _di_fss_basic_list_read_delimit_mode_e_ /** * Flags used to represent flags passed to the main function. @@ -318,7 +330,7 @@ extern "C" { 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, - }; + }; // enum #endif // _di_fss_basic_list_read_main_flag_e_ /** diff --git a/level_3/fss_basic_list_write/c/common.c b/level_3/fss_basic_list_write/c/common.c index 7f7a0f3..184e098 100644 --- a/level_3/fss_basic_list_write/c/common.c +++ b/level_3/fss_basic_list_write/c/common.c @@ -4,23 +4,23 @@ extern "C" { #endif -#ifndef _di_fss_basic_list_write_program_version_ +#ifndef _di_fss_basic_list_write_program_version_s_ const f_string_static_t fss_basic_list_write_program_version_s = macro_f_string_static_t_initialize(FSS_BASIC_LIST_WRITE_program_version_s, 0, FSS_BASIC_LIST_WRITE_program_version_s_length); -#endif // _di_fss_basic_list_write_program_version_ +#endif // _di_fss_basic_list_write_program_version_s_ -#ifndef _di_fss_basic_list_write_program_name_ +#ifndef _di_fss_basic_list_write_program_name_s_ const f_string_static_t fss_basic_list_write_program_name_s = macro_f_string_static_t_initialize(FSS_BASIC_LIST_WRITE_program_name_s, 0, FSS_BASIC_LIST_WRITE_program_name_s_length); const f_string_static_t fss_basic_list_write_program_name_long_s = macro_f_string_static_t_initialize(FSS_BASIC_LIST_WRITE_program_name_long_s, 0, FSS_BASIC_LIST_WRITE_program_name_long_s_length); -#endif // _di_fss_basic_list_write_program_name_ +#endif // _di_fss_basic_list_write_program_name_s_ -#ifndef _di_fss_basic_list_write_defines_ +#ifndef _di_fss_basic_list_write_pipe_s_ const f_string_static_t fss_basic_list_write_pipe_name_s = macro_f_string_static_t_initialize(FSS_BASIC_LIST_WRITE_pipe_name_s, 0, FSS_BASIC_LIST_WRITE_pipe_name_s_length); const f_string_static_t fss_basic_list_write_pipe_content_end_s = macro_f_string_static_t_initialize(FSS_BASIC_LIST_WRITE_pipe_content_end_s, 0, FSS_BASIC_LIST_WRITE_pipe_content_end_s_length); const f_string_static_t fss_basic_list_write_pipe_content_ignore_s = macro_f_string_static_t_initialize(FSS_BASIC_LIST_WRITE_pipe_content_ignore_s, 0, FSS_BASIC_LIST_WRITE_pipe_content_ignore_s_length); const f_string_static_t fss_basic_list_write_pipe_content_start_s = macro_f_string_static_t_initialize(FSS_BASIC_LIST_WRITE_pipe_content_start_s, 0, FSS_BASIC_LIST_WRITE_pipe_content_start_s_length); -#endif // _di_fss_basic_list_write_defines_ +#endif // _di_fss_basic_list_write_pipe_s_ -#ifndef _di_fss_basic_list_write_parameters_ +#ifndef _di_fss_basic_list_write_parameter_d_ const f_string_static_t fss_basic_list_write_short_file_s = macro_f_string_static_t_initialize(FSS_BASIC_LIST_WRITE_short_file_s, 0, FSS_BASIC_LIST_WRITE_short_file_s_length); const f_string_static_t fss_basic_list_write_short_content_s = macro_f_string_static_t_initialize(FSS_BASIC_LIST_WRITE_short_content_s, 0, FSS_BASIC_LIST_WRITE_short_content_s_length); const f_string_static_t fss_basic_list_write_short_double_s = macro_f_string_static_t_initialize(FSS_BASIC_LIST_WRITE_short_double_s, 0, FSS_BASIC_LIST_WRITE_short_double_s_length); @@ -40,7 +40,7 @@ extern "C" { const f_string_static_t fss_basic_list_write_long_prepend_s = macro_f_string_static_t_initialize(FSS_BASIC_LIST_WRITE_long_prepend_s, 0, FSS_BASIC_LIST_WRITE_long_prepend_s_length); const f_string_static_t fss_basic_list_write_long_single_s = macro_f_string_static_t_initialize(FSS_BASIC_LIST_WRITE_long_single_s, 0, FSS_BASIC_LIST_WRITE_long_single_s_length); const f_string_static_t fss_basic_list_write_long_trim_s = macro_f_string_static_t_initialize(FSS_BASIC_LIST_WRITE_long_trim_s, 0, FSS_BASIC_LIST_WRITE_long_trim_s_length); -#endif // _di_fss_basic_list_write_parameters_ +#endif // _di_fss_basic_list_write_parameter_d_ #ifndef _di_fss_basic_list_write_setting_delete_ f_status_t fss_basic_list_write_setting_delete(fss_basic_list_write_setting_t * const setting) { diff --git a/level_3/fss_basic_list_write/c/common.h b/level_3/fss_basic_list_write/c/common.h index 8f9a21e..da2986d 100644 --- a/level_3/fss_basic_list_write/c/common.h +++ b/level_3/fss_basic_list_write/c/common.h @@ -19,7 +19,7 @@ extern "C" { /** * The program version. */ -#ifndef _di_fss_basic_list_write_program_version_ +#ifndef _di_fss_basic_list_write_program_version_s_ #define FSS_BASIC_LIST_WRITE_program_version_major_s F_string_ascii_0_s #define FSS_BASIC_LIST_WRITE_program_version_minor_s F_string_ascii_7_s #define FSS_BASIC_LIST_WRITE_program_version_micro_s F_string_ascii_0_s @@ -43,12 +43,12 @@ extern "C" { #define FSS_BASIC_LIST_WRITE_program_version_s_length FSS_BASIC_LIST_WRITE_program_version_major_s_length + F_string_ascii_period_s_length + FSS_BASIC_LIST_WRITE_program_version_minor_s_length + F_string_ascii_period_s_length + FSS_BASIC_LIST_WRITE_program_version_micro_s_length + FSS_BASIC_LIST_WRITE_program_version_nano_prefix_s_length + FSS_BASIC_LIST_WRITE_program_version_nano_s_length extern const f_string_static_t fss_basic_list_write_program_version_s; -#endif // _di_fss_basic_list_write_program_version_ +#endif // _di_fss_basic_list_write_program_version_s_ /** * The program name. */ -#ifndef _di_fss_basic_list_write_program_name_ +#ifndef _di_fss_basic_list_write_program_name_s_ #define FSS_BASIC_LIST_WRITE_program_name_s "fss_basic_list_write" #define FSS_BASIC_LIST_WRITE_program_name_long_s "FSS Basic List Write" @@ -57,10 +57,17 @@ extern "C" { extern const f_string_static_t fss_basic_list_write_program_name_s; extern const f_string_static_t fss_basic_list_write_program_name_long_s; -#endif // _di_fss_basic_list_write_program_name_ +#endif // _di_fss_basic_list_write_program_name_s_ /** - * The program defines. + * The program define. + */ +#ifndef _di_fss_basic_list_write_d_ + #define fss_basic_list_write_signal_check_d 20000 +#endif // _di_fss_basic_list_write_d_ + +/** + * The program pipe strings. * * fss_basic_list_write_pipe_*: * - name: A name used to represent the pipe when printing file names. @@ -68,7 +75,7 @@ extern "C" { * - content_ignore: A code used to represent the ignoring Content for use in binary formats. * - content_start: A code used to represent the start of Content for use in binary formats. */ -#ifndef _di_fss_basic_list_write_defines_ +#ifndef _di_fss_basic_list_write_pipe_s_ #define fss_basic_list_write_signal_check_d 20000 #define FSS_BASIC_LIST_WRITE_pipe_name_s "(pipe)" @@ -88,12 +95,12 @@ extern "C" { extern const f_string_static_t fss_basic_list_write_pipe_content_end_s; extern const f_string_static_t fss_basic_list_write_pipe_content_ignore_s; extern const f_string_static_t fss_basic_list_write_pipe_content_start_s; -#endif // _di_fss_basic_list_write_defines_ +#endif // _di_fss_basic_list_write_pipe_s_ /** * The main program parameters. */ -#ifndef _di_fss_basic_list_write_parameters_ +#ifndef _di_fss_basic_list_write_parameter_d_ #define FSS_BASIC_LIST_WRITE_short_file_s "f" #define FSS_BASIC_LIST_WRITE_short_content_s "c" #define FSS_BASIC_LIST_WRITE_short_double_s "d" @@ -177,7 +184,7 @@ extern "C" { fss_basic_list_write_parameter_prepend_e, fss_basic_list_write_parameter_single_e, fss_basic_list_write_parameter_trim_e, - }; + }; // enum #define fss_basic_list_write_console_parameter_t_initialize \ { \ @@ -206,7 +213,7 @@ extern "C" { } #define fss_basic_list_write_total_parameters_d 21 -#endif // _di_fss_basic_list_write_parameters_ +#endif // _di_fss_basic_list_write_parameter_d_ /** * Flags used to represent flags passed to the main function. @@ -233,7 +240,7 @@ extern "C" { fss_basic_list_write_main_flag_strip_invalid_e = 0x20, fss_basic_list_write_main_flag_verify_e = 0x40, fss_basic_list_write_main_flag_version_e = 0x80, - }; + }; // enum #endif // _di_fss_basic_list_write_main_flag_e_ /** diff --git a/level_3/fss_basic_read/c/common.c b/level_3/fss_basic_read/c/common.c index 0ae3213..dcefd29 100644 --- a/level_3/fss_basic_read/c/common.c +++ b/level_3/fss_basic_read/c/common.c @@ -4,23 +4,23 @@ extern "C" { #endif -#ifndef _di_fss_basic_read_program_version_ +#ifndef _di_fss_basic_read_program_version_s_ const f_string_static_t fss_basic_read_program_version_s = macro_f_string_static_t_initialize(FSS_BASIC_READ_program_version_s, 0, FSS_BASIC_READ_program_version_s_length); -#endif // _di_fss_basic_read_program_version_ +#endif // _di_fss_basic_read_program_version_s_ -#ifndef _di_fss_basic_read_program_name_ +#ifndef _di_fss_basic_read_program_name_s_ const f_string_static_t fss_basic_read_program_name_s = macro_f_string_static_t_initialize(FSS_BASIC_READ_program_name_s, 0, FSS_BASIC_READ_program_name_s_length); const f_string_static_t fss_basic_read_program_name_long_s = macro_f_string_static_t_initialize(FSS_BASIC_READ_program_name_long_s, 0, FSS_BASIC_READ_program_name_long_s_length); -#endif // _di_fss_basic_read_program_name_ +#endif // _di_fss_basic_read_program_name_s_ -#ifndef _di_fss_basic_read_defines_ +#ifndef _di_fss_basic_read_pipe_s_ const f_string_static_t fss_basic_read_pipe_name_s = macro_f_string_static_t_initialize(FSS_BASIC_READ_pipe_name_s, 0, FSS_BASIC_READ_pipe_name_s_length); const f_string_static_t fss_basic_read_pipe_content_end_s = macro_f_string_static_t_initialize(FSS_BASIC_READ_pipe_content_end_s, 0, FSS_BASIC_READ_pipe_content_end_s_length); const f_string_static_t fss_basic_read_pipe_content_ignore_s = macro_f_string_static_t_initialize(FSS_BASIC_READ_pipe_content_ignore_s, 0, FSS_BASIC_READ_pipe_content_ignore_s_length); const f_string_static_t fss_basic_read_pipe_content_start_s = macro_f_string_static_t_initialize(FSS_BASIC_READ_pipe_content_start_s, 0, FSS_BASIC_READ_pipe_content_start_s_length); -#endif // _di_fss_basic_read_defines_ +#endif // _di_fss_basic_read_pipe_s_ -#ifndef _di_fss_basic_read_parameters_ +#ifndef _di_fss_basic_read_parameter_d_ const f_string_static_t fss_basic_read_short_at_s = macro_f_string_static_t_initialize(FSS_BASIC_READ_short_at_s, 0, FSS_BASIC_READ_short_at_s_length); const f_string_static_t fss_basic_read_short_content_s = macro_f_string_static_t_initialize(FSS_BASIC_READ_short_content_s, 0, FSS_BASIC_READ_short_content_s_length); const f_string_static_t fss_basic_read_short_columns_s = macro_f_string_static_t_initialize(FSS_BASIC_READ_short_columns_s, 0, FSS_BASIC_READ_short_columns_s_length); @@ -50,15 +50,15 @@ extern "C" { const f_string_static_t fss_basic_read_long_select_s = macro_f_string_static_t_initialize(FSS_BASIC_READ_long_select_s, 0, FSS_BASIC_READ_long_select_s_length); const f_string_static_t fss_basic_read_long_total_s = macro_f_string_static_t_initialize(FSS_BASIC_READ_long_total_s, 0, FSS_BASIC_READ_long_total_s_length); const f_string_static_t fss_basic_read_long_trim_s = macro_f_string_static_t_initialize(FSS_BASIC_READ_long_trim_s, 0, FSS_BASIC_READ_long_trim_s_length); -#endif // _di_fss_basic_read_parameters_ +#endif // _di_fss_basic_read_parameter_d_ -#ifndef _di_fss_basic_read_delimit_mode_ +#ifndef _di_fss_basic_read_delimit_mode_s_ const f_string_static_t fss_basic_read_delimit_mode_name_none_s = macro_f_string_static_t_initialize(FSS_BASIC_READ_delimit_mode_name_none_s, 0, FSS_BASIC_READ_delimit_mode_name_none_s_length); const f_string_static_t fss_basic_read_delimit_mode_name_all_s = macro_f_string_static_t_initialize(FSS_BASIC_READ_delimit_mode_name_all_s, 0, FSS_BASIC_READ_delimit_mode_name_all_s_length); const f_string_static_t fss_basic_read_delimit_mode_name_object_s = macro_f_string_static_t_initialize(FSS_BASIC_READ_delimit_mode_name_object_s, 0, FSS_BASIC_READ_delimit_mode_name_object_s_length); const f_string_static_t fss_basic_read_delimit_mode_name_greater_s = macro_f_string_static_t_initialize(FSS_BASIC_READ_delimit_mode_name_greater_s, 0, FSS_BASIC_READ_delimit_mode_name_greater_s_length); const f_string_static_t fss_basic_read_delimit_mode_name_lesser_s = macro_f_string_static_t_initialize(FSS_BASIC_READ_delimit_mode_name_lesser_s, 0, FSS_BASIC_READ_delimit_mode_name_lesser_s_length); -#endif // _di_fss_basic_read_delimit_mode_ +#endif // _di_fss_basic_read_delimit_mode_s_ #ifndef _di_fss_basic_read_setting_delete_ f_status_t fss_basic_read_setting_delete(fss_basic_read_setting_t * const setting) { diff --git a/level_3/fss_basic_read/c/common.h b/level_3/fss_basic_read/c/common.h index ec8410a..71e55bd 100644 --- a/level_3/fss_basic_read/c/common.h +++ b/level_3/fss_basic_read/c/common.h @@ -19,7 +19,7 @@ extern "C" { /** * The program version. */ -#ifndef _di_fss_basic_read_program_version_ +#ifndef _di_fss_basic_read_program_version_s_ #define FSS_BASIC_READ_program_version_major_s F_string_ascii_0_s #define FSS_BASIC_READ_program_version_minor_s F_string_ascii_7_s #define FSS_BASIC_READ_program_version_micro_s F_string_ascii_0_s @@ -43,12 +43,12 @@ extern "C" { #define FSS_BASIC_READ_program_version_s_length FSS_BASIC_READ_program_version_major_s_length + F_string_ascii_period_s_length + FSS_BASIC_READ_program_version_minor_s_length + F_string_ascii_period_s_length + FSS_BASIC_READ_program_version_micro_s_length + FSS_BASIC_READ_program_version_nano_prefix_s_length + FSS_BASIC_READ_program_version_nano_s_length extern const f_string_static_t fss_basic_read_program_version_s; -#endif // _di_fss_basic_read_program_version_ +#endif // _di_fss_basic_read_program_version_s_ /** * The program name. */ -#ifndef _di_fss_basic_read_program_name_ +#ifndef _di_fss_basic_read_program_name_s_ #define FSS_BASIC_READ_program_name_s "fss_basic_read" #define FSS_BASIC_READ_program_name_long_s "FSS Basic Read" @@ -57,10 +57,17 @@ extern "C" { extern const f_string_static_t fss_basic_read_program_name_s; extern const f_string_static_t fss_basic_read_program_name_long_s; -#endif // _di_fss_basic_read_program_name_ +#endif // _di_fss_basic_read_program_name_s_ /** * The program defines. + */ +#ifndef _di_fss_basic_read_d_ + #define fss_basic_read_signal_check_d 20000 +#endif // _di_fss_basic_read_d_ + +/** + * The program pipe strings. * * fss_basic_read_pipe_*: * - name: A name used to represent the pipe when printing file names. @@ -68,9 +75,7 @@ extern "C" { * - content_ignore: A code used to represent the ignoring Content for use in binary formats. * - content_start: A code used to represent the start of Content for use in binary formats. */ -#ifndef _di_fss_basic_read_defines_ - #define fss_basic_read_signal_check_d 20000 - +#ifndef _di_fss_basic_read_pipe_s_ #define FSS_BASIC_READ_pipe_name_s "(pipe)" #define FSS_BASIC_READ_pipe_content_end_s "\f" @@ -88,12 +93,12 @@ extern "C" { extern const f_string_static_t fss_basic_read_pipe_content_end_s; extern const f_string_static_t fss_basic_read_pipe_content_ignore_s; extern const f_string_static_t fss_basic_read_pipe_content_start_s; -#endif // _di_fss_basic_read_defines_ +#endif // _di_fss_basic_read_pipe_s_ /** * The main program parameters. */ -#ifndef _di_fss_basic_read_parameters_ +#ifndef _di_fss_basic_read_parameter_d_ #define FSS_BASIC_READ_short_at_s "a" #define FSS_BASIC_READ_short_content_s "c" #define FSS_BASIC_READ_short_columns_s "C" @@ -212,7 +217,7 @@ extern "C" { fss_basic_read_parameter_select_e, fss_basic_read_parameter_total_e, fss_basic_read_parameter_trim_e, - }; + }; // enum #define fss_basic_read_console_parameter_t_initialize \ { \ @@ -246,10 +251,10 @@ extern "C" { } #define fss_basic_read_total_parameters_d 26 -#endif // _di_fss_basic_read_parameters_ +#endif // _di_fss_basic_read_parameter_d_ /** - * FSS Delimit Parameter data. + * FSS Delimit Parameter strings. * * fss_basic_read_delimit_mode_*: * - all: All delimits are to be aplied. @@ -261,7 +266,7 @@ extern "C" { * - content_object: Objects and Content are to have delimits applied * - object: Objects arre to have delimits applied. */ -#ifndef _di_fss_basic_read_delimit_mode_ +#ifndef _di_fss_basic_read_delimit_mode_s_ #define FSS_BASIC_READ_delimit_mode_name_none_s "none" #define FSS_BASIC_READ_delimit_mode_name_all_s "all" #define FSS_BASIC_READ_delimit_mode_name_object_s "object" @@ -279,7 +284,12 @@ extern "C" { extern const f_string_static_t fss_basic_read_delimit_mode_name_object_s; extern const f_string_static_t fss_basic_read_delimit_mode_name_greater_s; extern const f_string_static_t fss_basic_read_delimit_mode_name_lesser_s; +#endif // _di_fss_basic_read_delimit_modes_ +/** + * FSS Delimit Parameter enumerations. + */ +#ifndef _di_fss_basic_read_delimit_mode_e_ enum { fss_basic_read_delimit_mode_none_e = 1, fss_basic_read_delimit_mode_all_e, @@ -290,8 +300,8 @@ extern "C" { fss_basic_read_delimit_mode_content_lesser_object_e, fss_basic_read_delimit_mode_content_object_e, fss_basic_read_delimit_mode_object_e, - }; -#endif // _di_fss_basic_read_delimit_modes_ + }; // enum +#endif // _di_fss_basic_read_delimit_mode_e_ /** * Flags used to represent flags passed to the main function. @@ -318,7 +328,7 @@ extern "C" { 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, - }; + }; // enum #endif // _di_fss_basic_read_main_flag_e_ /** diff --git a/level_3/fss_basic_write/c/common.c b/level_3/fss_basic_write/c/common.c index f98f67d..4565f03 100644 --- a/level_3/fss_basic_write/c/common.c +++ b/level_3/fss_basic_write/c/common.c @@ -4,16 +4,16 @@ extern "C" { #endif -#ifndef _di_fss_basic_write_program_version_ +#ifndef _di_fss_basic_write_program_version_s_ const f_string_static_t fss_basic_write_program_version_s = macro_f_string_static_t_initialize(FSS_BASIC_WRITE_program_version_s, 0, FSS_BASIC_WRITE_program_version_s_length); -#endif // _di_fss_basic_write_program_version_ +#endif // _di_fss_basic_write_program_version_s_ -#ifndef _di_fss_basic_write_program_name_ +#ifndef _di_fss_basic_write_program_name_s_ const f_string_static_t fss_basic_write_program_name_s = macro_f_string_static_t_initialize(FSS_BASIC_WRITE_program_name_s, 0, FSS_BASIC_WRITE_program_name_s_length); const f_string_static_t fss_basic_write_program_name_long_s = macro_f_string_static_t_initialize(FSS_BASIC_WRITE_program_name_long_s, 0, FSS_BASIC_WRITE_program_name_long_s_length); -#endif // _di_fss_basic_write_program_name_ +#endif // _di_fss_basic_write_program_name_s_ -#ifndef _di_fss_basic_write_defines_ +#ifndef _di_fss_basic_write_pipe_s_ const f_string_static_t fss_basic_write_pipe_name_s = macro_f_string_static_t_initialize(FSS_BASIC_WRITE_pipe_name_s, 0, FSS_BASIC_WRITE_pipe_name_s_length); const f_string_static_t fss_basic_write_pipe_content_end_s = macro_f_string_static_t_initialize(FSS_BASIC_WRITE_pipe_content_end_s, 0, FSS_BASIC_WRITE_pipe_content_end_s_length); const f_string_static_t fss_basic_write_pipe_content_ignore_s = macro_f_string_static_t_initialize(FSS_BASIC_WRITE_pipe_content_ignore_s, 0, FSS_BASIC_WRITE_pipe_content_ignore_s_length); diff --git a/level_3/fss_basic_write/c/common.h b/level_3/fss_basic_write/c/common.h index 5c84600..bc3f269 100644 --- a/level_3/fss_basic_write/c/common.h +++ b/level_3/fss_basic_write/c/common.h @@ -19,7 +19,7 @@ extern "C" { /** * The program version. */ -#ifndef _di_fss_basic_write_program_version_ +#ifndef _di_fss_basic_write_program_version_s_ #define FSS_BASIC_WRITE_program_version_major_s F_string_ascii_0_s #define FSS_BASIC_WRITE_program_version_minor_s F_string_ascii_7_s #define FSS_BASIC_WRITE_program_version_micro_s F_string_ascii_0_s @@ -43,12 +43,12 @@ extern "C" { #define FSS_BASIC_WRITE_program_version_s_length FSS_BASIC_WRITE_program_version_major_s_length + F_string_ascii_period_s_length + FSS_BASIC_WRITE_program_version_minor_s_length + F_string_ascii_period_s_length + FSS_BASIC_WRITE_program_version_micro_s_length + FSS_BASIC_WRITE_program_version_nano_prefix_s_length + FSS_BASIC_WRITE_program_version_nano_s_length extern const f_string_static_t fss_basic_write_program_version_s; -#endif // _di_fss_basic_write_program_version_ +#endif // _di_fss_basic_write_program_version_s_ /** * The main program name. */ -#ifndef _di_fss_basic_write_program_name_ +#ifndef _di_fss_basic_write_program_name_s_ #define FSS_BASIC_WRITE_program_name_s "fss_basic_write" #define FSS_BASIC_WRITE_program_name_long_s "FSS Basic Write" @@ -57,10 +57,17 @@ extern "C" { extern const f_string_static_t fss_basic_write_program_name_s; extern const f_string_static_t fss_basic_write_program_name_long_s; -#endif // _di_fss_basic_write_program_name_ +#endif // _di_fss_basic_write_program_name_s_ /** - * The program defines. + * The program signal defines. + */ +#ifndef _di_fss_basic_write_d_ + #define fss_basic_write_signal_check_d 20000 +#endif // _di_fss_basic_write_d_. + +/** + * The program pipe strings. * * fss_basic_write_pipe_*: * - name: A name used to represent the pipe when printing file names. @@ -68,9 +75,7 @@ extern "C" { * - content_ignore: A code used to represent the ignoring Content for use in binary formats. * - content_start: A code used to represent the start of Content for use in binary formats. */ -#ifndef _di_fss_basic_write_defines_ - #define fss_basic_write_signal_check_d 20000 - +#ifndef _di_fss_basic_write_pipe_s_ #define FSS_BASIC_WRITE_pipe_name_s "(pipe)" #define FSS_BASIC_WRITE_pipe_content_end_s "\f" @@ -88,12 +93,12 @@ extern "C" { extern const f_string_static_t fss_basic_write_pipe_content_end_s; extern const f_string_static_t fss_basic_write_pipe_content_ignore_s; extern const f_string_static_t fss_basic_write_pipe_content_start_s; -#endif // _di_fss_basic_write_defines. +#endif // _di_fss_basic_write_pipe_s_. /** * The main program parameters. */ -#ifndef _di_fss_basic_write_parameters_ +#ifndef _di_fss_basic_write_parameter_d_ #define FSS_BASIC_WRITE_short_file_s "f" #define FSS_BASIC_WRITE_short_content_s "c" #define FSS_BASIC_WRITE_short_double_s "d" @@ -177,7 +182,7 @@ extern "C" { fss_basic_write_parameter_prepend_e, fss_basic_write_parameter_single_e, fss_basic_write_parameter_trim_e, - }; + }; // enum #define fss_basic_write_console_parameter_t_initialize \ { \ @@ -206,7 +211,7 @@ extern "C" { } #define fss_basic_write_total_parameters_d 20 -#endif // _di_fss_basic_write_parameters_ +#endif // _di_fss_basic_write_parameter_d_ /** * Flags used to represent flags passed to the main function. @@ -233,7 +238,7 @@ extern "C" { fss_basic_write_main_flag_strip_invalid_e = 0x20, fss_basic_write_main_flag_verify_e = 0x40, fss_basic_write_main_flag_version_e = 0x80, - }; + }; // enum #endif // _di_fss_basic_write_main_flag_e_ /** diff --git a/level_3/fss_embedded_list_read/c/common.c b/level_3/fss_embedded_list_read/c/common.c index 317a799..75db20d 100644 --- a/level_3/fss_embedded_list_read/c/common.c +++ b/level_3/fss_embedded_list_read/c/common.c @@ -4,23 +4,23 @@ extern "C" { #endif -#ifndef _di_fss_embedded_list_read_program_version_ +#ifndef _di_fss_embedded_list_read_program_version_s_ const f_string_static_t fss_embedded_list_read_program_version_s = macro_f_string_static_t_initialize(FSS_EMBEDDED_LIST_READ_program_version_s, 0, FSS_EMBEDDED_LIST_READ_program_version_s_length); -#endif // _di_fss_embedded_list_read_program_version_ +#endif // _di_fss_embedded_list_read_program_version_s_ -#ifndef _di_fss_embedded_list_read_program_name_ +#ifndef _di_fss_embedded_list_read_program_name_s_ const f_string_static_t fss_embedded_list_read_program_name_s = macro_f_string_static_t_initialize(FSS_EMBEDDED_LIST_READ_program_name_s, 0, FSS_EMBEDDED_LIST_READ_program_name_s_length); const f_string_static_t fss_embedded_list_read_program_name_long_s = macro_f_string_static_t_initialize(FSS_EMBEDDED_LIST_READ_program_name_long_s, 0, FSS_EMBEDDED_LIST_READ_program_name_long_s_length); -#endif // _di_fss_embedded_list_read_program_name_ +#endif // _di_fss_embedded_list_read_program_name_s_ -#ifndef _di_fss_embedded_list_read_defines_ +#ifndef _di_fss_embedded_list_read_pipe_s_ const f_string_static_t fss_embedded_list_read_pipe_name_s = macro_f_string_static_t_initialize(FSS_EMBEDDED_LIST_READ_pipe_name_s, 0, FSS_EMBEDDED_LIST_READ_pipe_name_s_length); const f_string_static_t fss_embedded_list_read_pipe_content_end_s = macro_f_string_static_t_initialize(FSS_EMBEDDED_LIST_READ_pipe_content_end_s, 0, FSS_EMBEDDED_LIST_READ_pipe_content_end_s_length); const f_string_static_t fss_embedded_list_read_pipe_content_ignore_s = macro_f_string_static_t_initialize(FSS_EMBEDDED_LIST_READ_pipe_content_ignore_s, 0, FSS_EMBEDDED_LIST_READ_pipe_content_ignore_s_length); const f_string_static_t fss_embedded_list_read_pipe_content_start_s = macro_f_string_static_t_initialize(FSS_EMBEDDED_LIST_READ_pipe_content_start_s, 0, FSS_EMBEDDED_LIST_READ_pipe_content_start_s_length); -#endif // _di_fss_embedded_list_read_defines_ +#endif // _di_fss_embedded_list_read_pipe_s_ -#ifndef _di_fss_embedded_list_read_parameters_ +#ifndef _di_fss_embedded_list_read_parameter_d_ const f_string_static_t fss_embedded_list_read_short_at_s = macro_f_string_static_t_initialize(FSS_EMBEDDED_LIST_READ_short_at_s, 0, FSS_EMBEDDED_LIST_READ_short_at_s_length); const f_string_static_t fss_embedded_list_read_short_content_s = macro_f_string_static_t_initialize(FSS_EMBEDDED_LIST_READ_short_content_s, 0, FSS_EMBEDDED_LIST_READ_short_content_s_length); const f_string_static_t fss_embedded_list_read_short_columns_s = macro_f_string_static_t_initialize(FSS_EMBEDDED_LIST_READ_short_columns_s, 0, FSS_EMBEDDED_LIST_READ_short_columns_s_length); @@ -50,14 +50,14 @@ extern "C" { const f_string_static_t fss_embedded_list_read_long_select_s = macro_f_string_static_t_initialize(FSS_EMBEDDED_LIST_READ_long_select_s, 0, FSS_EMBEDDED_LIST_READ_long_select_s_length); const f_string_static_t fss_embedded_list_read_long_total_s = macro_f_string_static_t_initialize(FSS_EMBEDDED_LIST_READ_long_total_s, 0, FSS_EMBEDDED_LIST_READ_long_total_s_length); const f_string_static_t fss_embedded_list_read_long_trim_s = macro_f_string_static_t_initialize(FSS_EMBEDDED_LIST_READ_long_trim_s, 0, FSS_EMBEDDED_LIST_READ_long_trim_s_length); -#endif // _di_fss_embedded_list_read_parameters_ +#endif // _di_fss_embedded_list_read_parameter_d_ -#ifndef _di_fss_embedded_list_read_delimit_mode_ +#ifndef _di_fss_embedded_list_read_delimit_mode_s_ const f_string_static_t fss_embedded_list_read_delimit_mode_name_none_s = macro_f_string_static_t_initialize(FSS_EMBEDDED_LIST_READ_delimit_mode_name_none_s, 0, FSS_EMBEDDED_LIST_READ_delimit_mode_name_none_s_length); const f_string_static_t fss_embedded_list_read_delimit_mode_name_all_s = macro_f_string_static_t_initialize(FSS_EMBEDDED_LIST_READ_delimit_mode_name_all_s, 0, FSS_EMBEDDED_LIST_READ_delimit_mode_name_all_s_length); const f_string_static_t fss_embedded_list_read_delimit_mode_name_greater_s = macro_f_string_static_t_initialize(FSS_EMBEDDED_LIST_READ_delimit_mode_name_greater_s, 0, FSS_EMBEDDED_LIST_READ_delimit_mode_name_greater_s_length); const f_string_static_t fss_embedded_list_read_delimit_mode_name_lesser_s = macro_f_string_static_t_initialize(FSS_EMBEDDED_LIST_READ_delimit_mode_name_lesser_s, 0, FSS_EMBEDDED_LIST_READ_delimit_mode_name_lesser_s_length); -#endif // _di_fss_embedded_list_read_delimit_mode_ +#endif // _di_fss_embedded_list_read_delimit_mode_s_ #ifndef _di_fss_embedded_list_read_setting_delete_ f_status_t fss_embedded_list_read_setting_delete(fss_embedded_list_read_setting_t * const setting) { diff --git a/level_3/fss_embedded_list_read/c/common.h b/level_3/fss_embedded_list_read/c/common.h index b00b814..a110112 100644 --- a/level_3/fss_embedded_list_read/c/common.h +++ b/level_3/fss_embedded_list_read/c/common.h @@ -19,7 +19,7 @@ extern "C" { /** * The program version. */ -#ifndef _di_fss_embedded_list_read_program_version_ +#ifndef _di_fss_embedded_list_read_program_version_s_ #define FSS_EMBEDDED_LIST_READ_program_version_major_s F_string_ascii_0_s #define FSS_EMBEDDED_LIST_READ_program_version_minor_s F_string_ascii_7_s #define FSS_EMBEDDED_LIST_READ_program_version_micro_s F_string_ascii_0_s @@ -43,12 +43,12 @@ extern "C" { #define FSS_EMBEDDED_LIST_READ_program_version_s_length FSS_EMBEDDED_LIST_READ_program_version_major_s_length + F_string_ascii_period_s_length + FSS_EMBEDDED_LIST_READ_program_version_minor_s_length + F_string_ascii_period_s_length + FSS_EMBEDDED_LIST_READ_program_version_micro_s_length + FSS_EMBEDDED_LIST_READ_program_version_nano_prefix_s_length + FSS_EMBEDDED_LIST_READ_program_version_nano_s_length extern const f_string_static_t fss_embedded_list_read_program_version_s; -#endif // _di_fss_embedded_list_read_program_version_ +#endif // _di_fss_embedded_list_read_program_version_s_ /** * The program name. */ -#ifndef _di_fss_embedded_list_read_program_name_ +#ifndef _di_fss_embedded_list_read_program_name_s_ #define FSS_EMBEDDED_LIST_READ_program_name_s "fss_embedded_list_read" #define FSS_EMBEDDED_LIST_READ_program_name_long_s "FSS Embedded List Read" @@ -57,7 +57,14 @@ extern "C" { extern const f_string_static_t fss_embedded_list_read_program_name_s; extern const f_string_static_t fss_embedded_list_read_program_name_long_s; -#endif // _di_fss_embedded_list_read_program_name_ +#endif // _di_fss_embedded_list_read_program_name_s_ + +/** + * The program defines. + */ +#ifndef _di_fss_embedded_list_read_d_ + #define fss_embedded_list_read_signal_check_d 20000 +#endif // _di_fss_embedded_list_read_d_ /** * The program defines. @@ -68,9 +75,7 @@ extern "C" { * - content_ignore: A code used to represent the ignoring Content for use in binary formats. * - content_start: A code used to represent the start of Content for use in binary formats. */ -#ifndef _di_fss_embedded_list_read_defines_ - #define fss_embedded_list_read_signal_check_d 20000 - +#ifndef _di_fss_embedded_list_read_pipe_s_ #define FSS_EMBEDDED_LIST_READ_pipe_name_s "(pipe)" #define FSS_EMBEDDED_LIST_READ_pipe_content_end_s "\f" @@ -88,12 +93,12 @@ extern "C" { extern const f_string_static_t fss_embedded_list_read_pipe_content_end_s; extern const f_string_static_t fss_embedded_list_read_pipe_content_ignore_s; extern const f_string_static_t fss_embedded_list_read_pipe_content_start_s; -#endif // _di_fss_embedded_list_read_defines_ +#endif // _di_fss_embedded_list_read_pipe_s_ /** * The main program parameters. */ -#ifndef _di_fss_embedded_list_read_parameters_ +#ifndef _di_fss_embedded_list_read_parameter_d_ #define FSS_EMBEDDED_LIST_READ_short_at_s "a" #define FSS_EMBEDDED_LIST_READ_short_content_s "c" #define FSS_EMBEDDED_LIST_READ_short_columns_s "C" @@ -212,7 +217,7 @@ extern "C" { fss_embedded_list_read_parameter_select_e, fss_embedded_list_read_parameter_total_e, fss_embedded_list_read_parameter_trim_e, - }; + }; // enum #define fss_embedded_list_read_console_parameter_t_initialize \ { \ @@ -246,12 +251,12 @@ extern "C" { } #define fss_embedded_list_read_total_parameters_d 26 -#endif // _di_fss_embedded_list_read_parameters_ +#endif // _di_fss_embedded_list_read_parameter_d_ /** - * Provide delimit management. + * Provide delimit strings. */ -#ifndef _di_fss_embedded_list_read_delimit_mode_ +#ifndef _di_fss_embedded_list_read_delimit_mode_s_ #define FSS_EMBEDDED_LIST_READ_delimit_mode_name_none_s "none" #define FSS_EMBEDDED_LIST_READ_delimit_mode_name_all_s "all" #define FSS_EMBEDDED_LIST_READ_delimit_mode_name_greater_s "+" @@ -266,15 +271,20 @@ extern "C" { extern const f_string_static_t fss_embedded_list_read_delimit_mode_name_all_s; extern const f_string_static_t fss_embedded_list_read_delimit_mode_name_greater_s; extern const f_string_static_t fss_embedded_list_read_delimit_mode_name_lesser_s; +#endif // _di_fss_embedded_list_read_delimit_modes_ +/** + * Provide delimit enumerations. + */ +#ifndef _di_fss_embedded_list_read_delimit_mode_e_ enum { fss_embedded_list_read_delimit_mode_none_e = 1, fss_embedded_list_read_delimit_mode_all_e, fss_embedded_list_read_delimit_mode_depth_e, fss_embedded_list_read_delimit_mode_depth_greater_e, fss_embedded_list_read_delimit_mode_depth_lesser_e, - }; -#endif // _di_fss_embedded_list_read_delimit_modes_ + }; // enum +#endif // _di_fss_embedded_list_read_delimit_mode_e_ /** * Flags used to represent flags passed to the main function. @@ -301,7 +311,7 @@ extern "C" { 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, - }; + }; // enum #endif // _di_fss_embedded_list_read_main_flag_e_ /** diff --git a/level_3/fss_embedded_list_write/c/common.c b/level_3/fss_embedded_list_write/c/common.c index 88b47bc..4a6b399 100644 --- a/level_3/fss_embedded_list_write/c/common.c +++ b/level_3/fss_embedded_list_write/c/common.c @@ -4,23 +4,23 @@ extern "C" { #endif -#ifndef _di_fss_embedded_list_write_program_version_ +#ifndef _di_fss_embedded_list_write_program_version_s_ const f_string_static_t fss_embedded_list_write_program_version_s = macro_f_string_static_t_initialize(FSS_EMBEDDED_LIST_WRITE_program_version_s, 0, FSS_EMBEDDED_LIST_WRITE_program_version_s_length); -#endif // _di_fss_embedded_list_write_program_version_ +#endif // _di_fss_embedded_list_write_program_version_s_ -#ifndef _di_fss_embedded_list_write_program_name_ +#ifndef _di_fss_embedded_list_write_program_name_s_ const f_string_static_t fss_embedded_list_write_program_name_s = macro_f_string_static_t_initialize(FSS_EMBEDDED_LIST_WRITE_program_name_s, 0, FSS_EMBEDDED_LIST_WRITE_program_name_s_length); const f_string_static_t fss_embedded_list_write_program_name_long_s = macro_f_string_static_t_initialize(FSS_EMBEDDED_LIST_WRITE_program_name_long_s, 0, FSS_EMBEDDED_LIST_WRITE_program_name_long_s_length); -#endif // _di_fss_embedded_list_write_program_name_ +#endif // _di_fss_embedded_list_write_program_name_s_ -#ifndef _di_fss_embedded_list_write_defines_ +#ifndef _di_fss_embedded_list_write_pipe_s_ const f_string_static_t fss_embedded_list_write_pipe_name_s = macro_f_string_static_t_initialize(FSS_EMBEDDED_LIST_WRITE_pipe_name_s, 0, FSS_EMBEDDED_LIST_WRITE_pipe_name_s_length); const f_string_static_t fss_embedded_list_write_pipe_content_end_s = macro_f_string_static_t_initialize(FSS_EMBEDDED_LIST_WRITE_pipe_content_end_s, 0, FSS_EMBEDDED_LIST_WRITE_pipe_content_end_s_length); const f_string_static_t fss_embedded_list_write_pipe_content_ignore_s = macro_f_string_static_t_initialize(FSS_EMBEDDED_LIST_WRITE_pipe_content_ignore_s, 0, FSS_EMBEDDED_LIST_WRITE_pipe_content_ignore_s_length); const f_string_static_t fss_embedded_list_write_pipe_content_start_s = macro_f_string_static_t_initialize(FSS_EMBEDDED_LIST_WRITE_pipe_content_start_s, 0, FSS_EMBEDDED_LIST_WRITE_pipe_content_start_s_length); -#endif // _di_fss_embedded_list_write_defines_ +#endif // _di_fss_embedded_list_write_pipe_s_ -#ifndef _di_fss_embedded_list_write_parameters_ +#ifndef _di_fss_embedded_list_write_parameter_d_ const f_string_static_t fss_embedded_list_write_short_file_s = macro_f_string_static_t_initialize(FSS_EMBEDDED_LIST_WRITE_short_file_s, 0, FSS_EMBEDDED_LIST_WRITE_short_file_s_length); const f_string_static_t fss_embedded_list_write_short_content_s = macro_f_string_static_t_initialize(FSS_EMBEDDED_LIST_WRITE_short_content_s, 0, FSS_EMBEDDED_LIST_WRITE_short_content_s_length); const f_string_static_t fss_embedded_list_write_short_double_s = macro_f_string_static_t_initialize(FSS_EMBEDDED_LIST_WRITE_short_double_s, 0, FSS_EMBEDDED_LIST_WRITE_short_double_s_length); @@ -40,7 +40,7 @@ extern "C" { const f_string_static_t fss_embedded_list_write_long_prepend_s = macro_f_string_static_t_initialize(FSS_EMBEDDED_LIST_WRITE_long_prepend_s, 0, FSS_EMBEDDED_LIST_WRITE_long_prepend_s_length); const f_string_static_t fss_embedded_list_write_long_single_s = macro_f_string_static_t_initialize(FSS_EMBEDDED_LIST_WRITE_long_single_s, 0, FSS_EMBEDDED_LIST_WRITE_long_single_s_length); const f_string_static_t fss_embedded_list_write_long_trim_s = macro_f_string_static_t_initialize(FSS_EMBEDDED_LIST_WRITE_long_trim_s, 0, FSS_EMBEDDED_LIST_WRITE_long_trim_s_length); -#endif // _di_fss_embedded_list_write_parameters_ +#endif // _di_fss_embedded_list_write_parameter_d_ #ifndef _di_fss_embedded_list_write_setting_delete_ f_status_t fss_embedded_list_write_setting_delete(fss_embedded_list_write_setting_t * const setting) { diff --git a/level_3/fss_embedded_list_write/c/common.h b/level_3/fss_embedded_list_write/c/common.h index d41f27d..c744f98 100644 --- a/level_3/fss_embedded_list_write/c/common.h +++ b/level_3/fss_embedded_list_write/c/common.h @@ -19,7 +19,7 @@ extern "C" { /** * The program version. */ -#ifndef _di_fss_embedded_list_write_program_version_ +#ifndef _di_fss_embedded_list_write_program_version_s_ #define FSS_EMBEDDED_LIST_WRITE_program_version_major_s F_string_ascii_0_s #define FSS_EMBEDDED_LIST_WRITE_program_version_minor_s F_string_ascii_7_s #define FSS_EMBEDDED_LIST_WRITE_program_version_micro_s F_string_ascii_0_s @@ -43,12 +43,12 @@ extern "C" { #define FSS_EMBEDDED_LIST_WRITE_program_version_s_length FSS_EMBEDDED_LIST_WRITE_program_version_major_s_length + F_string_ascii_period_s_length + FSS_EMBEDDED_LIST_WRITE_program_version_minor_s_length + F_string_ascii_period_s_length + FSS_EMBEDDED_LIST_WRITE_program_version_micro_s_length + FSS_EMBEDDED_LIST_WRITE_program_version_nano_prefix_s_length + FSS_EMBEDDED_LIST_WRITE_program_version_nano_s_length extern const f_string_static_t fss_embedded_list_write_program_version_s; -#endif // _di_fss_embedded_list_write_program_version_ +#endif // _di_fss_embedded_list_write_program_version_s_ /** * The program name. */ -#ifndef _di_fss_embedded_list_write_program_name_ +#ifndef _di_fss_embedded_list_write_program_name_s_ #define FSS_EMBEDDED_LIST_WRITE_program_name_s "fss_embedded_list_write" #define FSS_EMBEDDED_LIST_WRITE_program_name_long_s "FSS Embedded List Write" @@ -57,10 +57,17 @@ extern "C" { extern const f_string_static_t fss_embedded_list_write_program_name_s; extern const f_string_static_t fss_embedded_list_write_program_name_long_s; -#endif // _di_fss_embedded_list_write_program_name_ +#endif // _di_fss_embedded_list_write_program_name_s_ /** * The program defines. + */ +#ifndef _di_fss_embedded_list_write_d_ + #define fss_embedded_list_write_signal_check_d 20000 +#endif // _di_fss_embedded_list_write_d_ + +/** + * The program pipe strings. * * fss_embedded_list_write_pipe_*: * - name: A name used to represent the pipe when printing file names. @@ -68,9 +75,7 @@ extern "C" { * - content_ignore: A code used to represent the ignoring Content for use in binary formats. * - content_start: A code used to represent the start of Content for use in binary formats. */ -#ifndef _di_fss_embedded_list_write_defines_ - #define fss_embedded_list_write_signal_check_d 20000 - +#ifndef _di_fss_embedded_list_write_pipe_s_ #define FSS_EMBEDDED_LIST_WRITE_pipe_name_s "(pipe)" #define FSS_EMBEDDED_LIST_WRITE_pipe_content_end_s "\f" @@ -88,12 +93,12 @@ extern "C" { extern const f_string_static_t fss_embedded_list_write_pipe_content_end_s; extern const f_string_static_t fss_embedded_list_write_pipe_content_ignore_s; extern const f_string_static_t fss_embedded_list_write_pipe_content_start_s; -#endif // _di_fss_embedded_list_write_defines_ +#endif // _di_fss_embedded_list_write_pipe_s_ /** * The main program parameters. */ -#ifndef _di_fss_embedded_list_write_parameters_ +#ifndef _di_fss_embedded_list_write_parameter_d_ #define FSS_EMBEDDED_LIST_WRITE_short_file_s "f" #define FSS_EMBEDDED_LIST_WRITE_short_content_s "c" #define FSS_EMBEDDED_LIST_WRITE_short_double_s "d" @@ -177,7 +182,7 @@ extern "C" { fss_embedded_list_write_parameter_prepend_e, fss_embedded_list_write_parameter_single_e, fss_embedded_list_write_parameter_trim_e, - }; + }; // enum #define fss_embedded_list_write_console_parameter_t_initialize \ { \ @@ -206,7 +211,7 @@ extern "C" { } #define fss_embedded_list_write_total_parameters_d 21 -#endif // _di_fss_embedded_list_write_parameters_ +#endif // _di_fss_embedded_list_write_parameter_d_ /** * Flags used to represent flags passed to the main function. @@ -233,7 +238,7 @@ extern "C" { fss_embedded_list_write_main_flag_strip_invalid_e = 0x20, fss_embedded_list_write_main_flag_verify_e = 0x40, fss_embedded_list_write_main_flag_version_e = 0x80, - }; + }; // enum #endif // _di_fss_embedded_list_write_main_flag_e_ /** diff --git a/level_3/fss_extended_list_read/c/common.c b/level_3/fss_extended_list_read/c/common.c index 8e7ab59..a58d3f7 100644 --- a/level_3/fss_extended_list_read/c/common.c +++ b/level_3/fss_extended_list_read/c/common.c @@ -4,23 +4,23 @@ extern "C" { #endif -#ifndef _di_fss_extended_list_read_program_version_ +#ifndef _di_fss_extended_list_read_program_version_s_ const f_string_static_t fss_extended_list_read_program_version_s = macro_f_string_static_t_initialize(FSS_EXTENDED_LIST_READ_program_version_s, 0, FSS_EXTENDED_LIST_READ_program_version_s_length); -#endif // _di_fss_extended_list_read_program_version_ +#endif // _di_fss_extended_list_read_program_version_s_ -#ifndef _di_fss_extended_list_read_program_name_ +#ifndef _di_fss_extended_list_read_program_name_s_ const f_string_static_t fss_extended_list_read_program_name_s = macro_f_string_static_t_initialize(FSS_EXTENDED_LIST_READ_program_name_s, 0, FSS_EXTENDED_LIST_READ_program_name_s_length); const f_string_static_t fss_extended_list_read_program_name_long_s = macro_f_string_static_t_initialize(FSS_EXTENDED_LIST_READ_program_name_long_s, 0, FSS_EXTENDED_LIST_READ_program_name_long_s_length); -#endif // _di_fss_extended_list_read_program_name_ +#endif // _di_fss_extended_list_read_program_name_s_ -#ifndef _di_fss_extended_list_read_defines_ +#ifndef _di_fss_extended_list_read_pipe_s_ const f_string_static_t fss_extended_list_read_pipe_name_s = macro_f_string_static_t_initialize(FSS_EXTENDED_LIST_READ_pipe_name_s, 0, FSS_EXTENDED_LIST_READ_pipe_name_s_length); const f_string_static_t fss_extended_list_read_pipe_content_end_s = macro_f_string_static_t_initialize(FSS_EXTENDED_LIST_READ_pipe_content_end_s, 0, FSS_EXTENDED_LIST_READ_pipe_content_end_s_length); const f_string_static_t fss_extended_list_read_pipe_content_ignore_s = macro_f_string_static_t_initialize(FSS_EXTENDED_LIST_READ_pipe_content_ignore_s, 0, FSS_EXTENDED_LIST_READ_pipe_content_ignore_s_length); const f_string_static_t fss_extended_list_read_pipe_content_start_s = macro_f_string_static_t_initialize(FSS_EXTENDED_LIST_READ_pipe_content_start_s, 0, FSS_EXTENDED_LIST_READ_pipe_content_start_s_length); -#endif // _di_fss_extended_list_read_defines_ +#endif // _di_fss_extended_list_read_pipe_s_ -#ifndef _di_fss_extended_list_read_parameters_ +#ifndef _di_fss_extended_list_read_parameter_d_ const f_string_static_t fss_extended_list_read_short_at_s = macro_f_string_static_t_initialize(FSS_EXTENDED_LIST_READ_short_at_s, 0, FSS_EXTENDED_LIST_READ_short_at_s_length); const f_string_static_t fss_extended_list_read_short_content_s = macro_f_string_static_t_initialize(FSS_EXTENDED_LIST_READ_short_content_s, 0, FSS_EXTENDED_LIST_READ_short_content_s_length); const f_string_static_t fss_extended_list_read_short_columns_s = macro_f_string_static_t_initialize(FSS_EXTENDED_LIST_READ_short_columns_s, 0, FSS_EXTENDED_LIST_READ_short_columns_s_length); @@ -50,15 +50,15 @@ extern "C" { const f_string_static_t fss_extended_list_read_long_select_s = macro_f_string_static_t_initialize(FSS_EXTENDED_LIST_READ_long_select_s, 0, FSS_EXTENDED_LIST_READ_long_select_s_length); const f_string_static_t fss_extended_list_read_long_total_s = macro_f_string_static_t_initialize(FSS_EXTENDED_LIST_READ_long_total_s, 0, FSS_EXTENDED_LIST_READ_long_total_s_length); const f_string_static_t fss_extended_list_read_long_trim_s = macro_f_string_static_t_initialize(FSS_EXTENDED_LIST_READ_long_trim_s, 0, FSS_EXTENDED_LIST_READ_long_trim_s_length); -#endif // _di_fss_extended_list_read_parameters_ +#endif // _di_fss_extended_list_read_parameter_d_ -#ifndef _di_fss_extended_list_read_delimit_mode_ +#ifndef _di_fss_extended_list_read_delimit_mode_s_ const f_string_static_t fss_extended_list_read_delimit_mode_name_none_s = macro_f_string_static_t_initialize(FSS_EXTENDED_LIST_READ_delimit_mode_name_none_s, 0, FSS_EXTENDED_LIST_READ_delimit_mode_name_none_s_length); const f_string_static_t fss_extended_list_read_delimit_mode_name_all_s = macro_f_string_static_t_initialize(FSS_EXTENDED_LIST_READ_delimit_mode_name_all_s, 0, FSS_EXTENDED_LIST_READ_delimit_mode_name_all_s_length); const f_string_static_t fss_extended_list_read_delimit_mode_name_object_s = macro_f_string_static_t_initialize(FSS_EXTENDED_LIST_READ_delimit_mode_name_object_s, 0, FSS_EXTENDED_LIST_READ_delimit_mode_name_object_s_length); const f_string_static_t fss_extended_list_read_delimit_mode_name_greater_s = macro_f_string_static_t_initialize(FSS_EXTENDED_LIST_READ_delimit_mode_name_greater_s, 0, FSS_EXTENDED_LIST_READ_delimit_mode_name_greater_s_length); const f_string_static_t fss_extended_list_read_delimit_mode_name_lesser_s = macro_f_string_static_t_initialize(FSS_EXTENDED_LIST_READ_delimit_mode_name_lesser_s, 0, FSS_EXTENDED_LIST_READ_delimit_mode_name_lesser_s_length); -#endif // _di_fss_extended_list_read_delimit_mode_ +#endif // _di_fss_extended_list_read_delimit_mode_s_ #ifndef _di_fss_extended_list_read_main_delete_ f_status_t fss_extended_list_read_main_delete(fll_program_data_t *main) { diff --git a/level_3/fss_extended_list_read/c/common.h b/level_3/fss_extended_list_read/c/common.h index 41897f8..f4d6f27 100644 --- a/level_3/fss_extended_list_read/c/common.h +++ b/level_3/fss_extended_list_read/c/common.h @@ -19,7 +19,7 @@ extern "C" { /** * The program version. */ -#ifndef _di_fss_extended_list_read_program_version_ +#ifndef _di_fss_extended_list_read_program_version_s_ #define FSS_EXTENDED_LIST_READ_program_version_major_s F_string_ascii_0_s #define FSS_EXTENDED_LIST_READ_program_version_minor_s F_string_ascii_7_s #define FSS_EXTENDED_LIST_READ_program_version_micro_s F_string_ascii_0_s @@ -43,7 +43,7 @@ extern "C" { #define FSS_EXTENDED_LIST_READ_program_version_s_length FSS_EXTENDED_LIST_READ_program_version_major_s_length + F_string_ascii_period_s_length + FSS_EXTENDED_LIST_READ_program_version_minor_s_length + F_string_ascii_period_s_length + FSS_EXTENDED_LIST_READ_program_version_micro_s_length + FSS_EXTENDED_LIST_READ_program_version_nano_prefix_s_length + FSS_EXTENDED_LIST_READ_program_version_nano_s_length extern const f_string_static_t fss_extended_list_read_program_version_s; -#endif // _di_fss_extended_list_read_program_version_ +#endif // _di_fss_extended_list_read_program_version_s_ /** * The program name. @@ -54,7 +54,7 @@ extern "C" { * - content_ignore: A code used to represent the ignoring Content for use in binary formats. * - content_start: A code used to represent the start of Content for use in binary formats. */ -#ifndef _di_fss_extended_list_read_program_name_ +#ifndef _di_fss_extended_list_read_program_name_s_ #define FSS_EXTENDED_LIST_READ_program_name_s "fss_extended_list_read" #define FSS_EXTENDED_LIST_READ_program_name_long_s "FSS Extended List Read" @@ -63,14 +63,19 @@ extern "C" { extern const f_string_static_t fss_extended_list_read_program_name_s; extern const f_string_static_t fss_extended_list_read_program_name_long_s; -#endif // _di_fss_extended_list_read_program_name_ +#endif // _di_fss_extended_list_read_program_name_s_ /** * The program defines. */ -#ifndef _di_fss_extended_list_read_defines_ +#ifndef _di_fss_extended_list_read_d_ #define fss_extended_list_read_signal_check_d 20000 +#endif // _di_fss_extended_list_read_d_ +/** + * The program pipe strings. + */ +#ifndef _di_fss_extended_list_read_pipe_s_ #define FSS_EXTENDED_LIST_READ_pipe_name_s "(pipe)" #define FSS_EXTENDED_LIST_READ_pipe_content_end_s "\f" @@ -88,12 +93,12 @@ extern "C" { extern const f_string_static_t fss_extended_list_read_pipe_content_end_s; extern const f_string_static_t fss_extended_list_read_pipe_content_ignore_s; extern const f_string_static_t fss_extended_list_read_pipe_content_start_s; -#endif // _di_fss_extended_list_read_defines_ +#endif // _di_fss_extended_list_read_pipe_s_ /** * The main program parameters. */ -#ifndef _di_fss_extended_list_read_parameters_ +#ifndef _di_fss_extended_list_read_parameter_d_ #define FSS_EXTENDED_LIST_READ_short_at_s "a" #define FSS_EXTENDED_LIST_READ_short_content_s "c" #define FSS_EXTENDED_LIST_READ_short_columns_s "C" @@ -212,7 +217,7 @@ extern "C" { fss_extended_list_read_parameter_select_e, fss_extended_list_read_parameter_total_e, fss_extended_list_read_parameter_trim_e, - }; + }; // enum #define fss_extended_list_read_console_parameter_t_initialize \ { \ @@ -246,10 +251,10 @@ extern "C" { } #define fss_extended_list_read_total_parameters_d 26 -#endif // _di_fss_extended_list_read_parameters_ +#endif // _di_fss_extended_list_read_parameter_d_ /** - * FSS Delimit Parameter data. + * FSS Delimit Parameter strings. * * fss_extended_list_read_delimit_mode_*: * - all: All delimits are to be aplied. @@ -261,7 +266,7 @@ extern "C" { * - content_object: Objects and Content are to have delimits applied * - object: Objects arre to have delimits applied. */ -#ifndef _di_fss_extended_list_read_delimit_mode_ +#ifndef _di_fss_extended_list_read_delimit_mode_s_ #define FSS_EXTENDED_LIST_READ_delimit_mode_name_none_s "none" #define FSS_EXTENDED_LIST_READ_delimit_mode_name_all_s "all" #define FSS_EXTENDED_LIST_READ_delimit_mode_name_object_s "object" @@ -279,7 +284,12 @@ extern "C" { extern const f_string_static_t fss_extended_list_read_delimit_mode_name_object_s; extern const f_string_static_t fss_extended_list_read_delimit_mode_name_greater_s; extern const f_string_static_t fss_extended_list_read_delimit_mode_name_lesser_s; +#endif // _di_fss_extended_list_read_delimit_modes_ +/** + * FSS Delimit Parameter strings. + */ +#ifndef _di_fss_extended_list_read_delimit_mode_e_ enum { fss_extended_list_read_delimit_mode_none_e = 1, fss_extended_list_read_delimit_mode_all_e, @@ -290,8 +300,8 @@ extern "C" { fss_extended_list_read_delimit_mode_content_lesser_object_e, fss_extended_list_read_delimit_mode_content_object_e, fss_extended_list_read_delimit_mode_object_e, - }; -#endif // _di_fss_extended_list_read_delimit_modes_ + }; // enum +#endif // _di_fss_extended_list_read_delimit_mode_e_ /** * Flags used to represent flags passed to the main function. @@ -318,7 +328,7 @@ extern "C" { 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, - }; + }; // enum #endif // _di_fss_extended_list_read_main_flag_e_ /** diff --git a/level_3/fss_extended_list_write/c/common.c b/level_3/fss_extended_list_write/c/common.c index d4c4df5..89d6406 100644 --- a/level_3/fss_extended_list_write/c/common.c +++ b/level_3/fss_extended_list_write/c/common.c @@ -4,23 +4,23 @@ extern "C" { #endif -#ifndef _di_fss_extended_list_write_program_version_ +#ifndef _di_fss_extended_list_write_program_version_s_ const f_string_static_t fss_extended_list_write_program_version_s = macro_f_string_static_t_initialize(FSS_EXTENDED_LIST_WRITE_program_version_s, 0, FSS_EXTENDED_LIST_WRITE_program_version_s_length); -#endif // _di_fss_extended_list_write_program_version_ +#endif // _di_fss_extended_list_write_program_version_s_ -#ifndef _di_fss_extended_list_write_program_name_ +#ifndef _di_fss_extended_list_write_program_name_s_ const f_string_static_t fss_extended_list_write_program_name_s = macro_f_string_static_t_initialize(FSS_EXTENDED_LIST_WRITE_program_name_s, 0, FSS_EXTENDED_LIST_WRITE_program_name_s_length); const f_string_static_t fss_extended_list_write_program_name_long_s = macro_f_string_static_t_initialize(FSS_EXTENDED_LIST_WRITE_program_name_long_s, 0, FSS_EXTENDED_LIST_WRITE_program_name_long_s_length); -#endif // _di_fss_extended_list_write_program_name_ +#endif // _di_fss_extended_list_write_program_name_s_ -#ifndef _di_fss_extended_list_write_defines_ +#ifndef _di_fss_extended_list_write_pipe_s_ const f_string_static_t fss_extended_list_write_pipe_name_s = macro_f_string_static_t_initialize(FSS_EXTENDED_LIST_WRITE_pipe_name_s, 0, FSS_EXTENDED_LIST_WRITE_pipe_name_s_length); const f_string_static_t fss_extended_list_write_pipe_content_end_s = macro_f_string_static_t_initialize(FSS_EXTENDED_LIST_WRITE_pipe_content_end_s, 0, FSS_EXTENDED_LIST_WRITE_pipe_content_end_s_length); const f_string_static_t fss_extended_list_write_pipe_content_ignore_s = macro_f_string_static_t_initialize(FSS_EXTENDED_LIST_WRITE_pipe_content_ignore_s, 0, FSS_EXTENDED_LIST_WRITE_pipe_content_ignore_s_length); const f_string_static_t fss_extended_list_write_pipe_content_start_s = macro_f_string_static_t_initialize(FSS_EXTENDED_LIST_WRITE_pipe_content_start_s, 0, FSS_EXTENDED_LIST_WRITE_pipe_content_start_s_length); -#endif // _di_fss_extended_list_write_defines_ +#endif // _di_fss_extended_list_write_pipe_s_ -#ifndef _di_fss_extended_list_write_parameters_ +#ifndef _di_fss_extended_list_write_parameter_d_ const f_string_static_t fss_extended_list_write_short_file_s = macro_f_string_static_t_initialize(FSS_EXTENDED_LIST_WRITE_short_file_s, 0, FSS_EXTENDED_LIST_WRITE_short_file_s_length); const f_string_static_t fss_extended_list_write_short_content_s = macro_f_string_static_t_initialize(FSS_EXTENDED_LIST_WRITE_short_content_s, 0, FSS_EXTENDED_LIST_WRITE_short_content_s_length); const f_string_static_t fss_extended_list_write_short_double_s = macro_f_string_static_t_initialize(FSS_EXTENDED_LIST_WRITE_short_double_s, 0, FSS_EXTENDED_LIST_WRITE_short_double_s_length); @@ -40,7 +40,7 @@ extern "C" { const f_string_static_t fss_extended_list_write_long_prepend_s = macro_f_string_static_t_initialize(FSS_EXTENDED_LIST_WRITE_long_prepend_s, 0, FSS_EXTENDED_LIST_WRITE_long_prepend_s_length); const f_string_static_t fss_extended_list_write_long_single_s = macro_f_string_static_t_initialize(FSS_EXTENDED_LIST_WRITE_long_single_s, 0, FSS_EXTENDED_LIST_WRITE_long_single_s_length); const f_string_static_t fss_extended_list_write_long_trim_s = macro_f_string_static_t_initialize(FSS_EXTENDED_LIST_WRITE_long_trim_s, 0, FSS_EXTENDED_LIST_WRITE_long_trim_s_length); -#endif // _di_fss_extended_list_write_parameters_ +#endif // _di_fss_extended_list_write_parameter_d_ #ifndef _di_fss_extended_list_write_main_delete_ f_status_t fss_extended_list_write_main_delete(fll_program_data_t *main) { diff --git a/level_3/fss_extended_list_write/c/common.h b/level_3/fss_extended_list_write/c/common.h index c3f858f..20e27bb 100644 --- a/level_3/fss_extended_list_write/c/common.h +++ b/level_3/fss_extended_list_write/c/common.h @@ -19,7 +19,7 @@ extern "C" { /** * The program version. */ -#ifndef _di_fss_extended_list_write_program_version_ +#ifndef _di_fss_extended_list_write_program_version_s_ #define FSS_EXTENDED_LIST_WRITE_program_version_major_s F_string_ascii_0_s #define FSS_EXTENDED_LIST_WRITE_program_version_minor_s F_string_ascii_7_s #define FSS_EXTENDED_LIST_WRITE_program_version_micro_s F_string_ascii_0_s @@ -43,12 +43,12 @@ extern "C" { #define FSS_EXTENDED_LIST_WRITE_program_version_s_length FSS_EXTENDED_LIST_WRITE_program_version_major_s_length + F_string_ascii_period_s_length + FSS_EXTENDED_LIST_WRITE_program_version_minor_s_length + F_string_ascii_period_s_length + FSS_EXTENDED_LIST_WRITE_program_version_micro_s_length + FSS_EXTENDED_LIST_WRITE_program_version_nano_prefix_s_length + FSS_EXTENDED_LIST_WRITE_program_version_nano_s_length extern const f_string_static_t fss_extended_list_write_program_version_s; -#endif // _di_fss_extended_list_write_program_version_ +#endif // _di_fss_extended_list_write_program_version_s_ /** * The program name. */ -#ifndef _di_fss_extended_list_write_program_name_ +#ifndef _di_fss_extended_list_write_program_name_s_ #define FSS_EXTENDED_LIST_WRITE_program_name_s "fss_extended_list_write" #define FSS_EXTENDED_LIST_WRITE_program_name_long_s "FSS Extended List Write" @@ -57,10 +57,17 @@ extern "C" { extern const f_string_static_t fss_extended_list_write_program_name_s; extern const f_string_static_t fss_extended_list_write_program_name_long_s; -#endif // _di_fss_extended_list_write_program_name_ +#endif // _di_fss_extended_list_write_program_name_s_ /** * The program defines. + */ +#ifndef _di_fss_extended_list_write_d_ + #define fss_extended_list_write_signal_check_d 20000 +#endif // _di_fss_extended_list_write_d_ + +/** + * The program pipe strings. * * fss_extended_list_write_pipe_*: * - name: A name used to represent the pipe when printing file names. @@ -68,9 +75,7 @@ extern "C" { * - content_ignore: A code used to represent the ignoring Content for use in binary formats. * - content_start: A code used to represent the start of Content for use in binary formats. */ -#ifndef _di_fss_extended_list_write_defines_ - #define fss_extended_list_write_signal_check_d 20000 - +#ifndef _di_fss_extended_list_write_pipe_s_ #define FSS_EXTENDED_LIST_WRITE_pipe_name_s "(pipe)" #define FSS_EXTENDED_LIST_WRITE_pipe_name_s_length 6 @@ -88,12 +93,12 @@ extern "C" { extern const f_string_static_t fss_extended_list_write_pipe_content_end_s; extern const f_string_static_t fss_extended_list_write_pipe_content_ignore_s; extern const f_string_static_t fss_extended_list_write_pipe_content_start_s; -#endif // _di_fss_extended_list_write_defines_ +#endif // _di_fss_extended_list_write_pipe_s_ /** * The main program parameters. */ -#ifndef _di_fss_extended_list_write_parameters_ +#ifndef _di_fss_extended_list_write_parameter_d_ #define FSS_EXTENDED_LIST_WRITE_short_file_s "f" #define FSS_EXTENDED_LIST_WRITE_short_content_s "c" #define FSS_EXTENDED_LIST_WRITE_short_double_s "d" @@ -177,7 +182,7 @@ extern "C" { fss_extended_list_write_parameter_prepend_e, fss_extended_list_write_parameter_single_e, fss_extended_list_write_parameter_trim_e, - }; + }; // enum #define fss_extended_list_write_console_parameter_t_initialize \ { \ @@ -206,7 +211,7 @@ extern "C" { } #define fss_extended_list_write_total_parameters_d 21 -#endif // _di_fss_extended_list_write_parameters_ +#endif // _di_fss_extended_list_write_parameter_d_ /** * Deallocate main. @@ -250,7 +255,7 @@ extern "C" { fss_extended_list_write_main_flag_strip_invalid_e = 0x20, fss_extended_list_write_main_flag_verify_e = 0x40, fss_extended_list_write_main_flag_version_e = 0x80, - }; + }; // enum #endif // _di_fss_extended_list_write_main_flag_e_ /** diff --git a/level_3/fss_extended_read/c/common.c b/level_3/fss_extended_read/c/common.c index 9b44d52..66048fe 100644 --- a/level_3/fss_extended_read/c/common.c +++ b/level_3/fss_extended_read/c/common.c @@ -4,23 +4,23 @@ extern "C" { #endif -#ifndef _di_fss_extended_read_program_version_ +#ifndef _di_fss_extended_read_program_version_s_ const f_string_static_t fss_extended_read_program_version_s = macro_f_string_static_t_initialize(FSS_EXTENDED_READ_program_version_s, 0, FSS_EXTENDED_READ_program_version_s_length); -#endif // _di_fss_extended_read_program_version_ +#endif // _di_fss_extended_read_program_version_s_ -#ifndef _di_fss_extended_read_program_name_ +#ifndef _di_fss_extended_read_program_name_s_ const f_string_static_t fss_extended_read_program_name_s = macro_f_string_static_t_initialize(FSS_EXTENDED_READ_program_name_s, 0, FSS_EXTENDED_READ_program_name_s_length); const f_string_static_t fss_extended_read_program_name_long_s = macro_f_string_static_t_initialize(FSS_EXTENDED_READ_program_name_long_s, 0, FSS_EXTENDED_READ_program_name_long_s_length); -#endif // _di_fss_extended_read_program_name_ +#endif // _di_fss_extended_read_program_name_s_ -#ifndef _di_fss_extended_read_defines_ +#ifndef _di_fss_extended_read_pipe_s_ const f_string_static_t fss_extended_read_pipe_name_s = macro_f_string_static_t_initialize(FSS_EXTENDED_READ_pipe_name_s, 0, FSS_EXTENDED_READ_pipe_name_s_length); const f_string_static_t fss_extended_read_pipe_content_end_s = macro_f_string_static_t_initialize(FSS_EXTENDED_READ_pipe_content_end_s, 0, FSS_EXTENDED_READ_pipe_content_end_s_length); const f_string_static_t fss_extended_read_pipe_content_ignore_s = macro_f_string_static_t_initialize(FSS_EXTENDED_READ_pipe_content_ignore_s, 0, FSS_EXTENDED_READ_pipe_content_ignore_s_length); const f_string_static_t fss_extended_read_pipe_content_start_s = macro_f_string_static_t_initialize(FSS_EXTENDED_READ_pipe_content_start_s, 0, FSS_EXTENDED_READ_pipe_content_start_s_length); -#endif // _di_fss_extended_read_defines_ +#endif // _di_fss_extended_read_pipe_s_ -#ifndef _di_fss_extended_read_parameters_ +#ifndef _di_fss_extended_read_parameter_d_ const f_string_static_t fss_extended_read_short_at_s = macro_f_string_static_t_initialize(FSS_EXTENDED_READ_short_at_s, 0, FSS_EXTENDED_READ_short_at_s_length); const f_string_static_t fss_extended_read_short_content_s = macro_f_string_static_t_initialize(FSS_EXTENDED_READ_short_content_s, 0, FSS_EXTENDED_READ_short_content_s_length); const f_string_static_t fss_extended_read_short_columns_s = macro_f_string_static_t_initialize(FSS_EXTENDED_READ_short_columns_s, 0, FSS_EXTENDED_READ_short_columns_s_length); @@ -50,15 +50,15 @@ extern "C" { const f_string_static_t fss_extended_read_long_select_s = macro_f_string_static_t_initialize(FSS_EXTENDED_READ_long_select_s, 0, FSS_EXTENDED_READ_long_select_s_length); const f_string_static_t fss_extended_read_long_total_s = macro_f_string_static_t_initialize(FSS_EXTENDED_READ_long_total_s, 0, FSS_EXTENDED_READ_long_total_s_length); const f_string_static_t fss_extended_read_long_trim_s = macro_f_string_static_t_initialize(FSS_EXTENDED_READ_long_trim_s, 0, FSS_EXTENDED_READ_long_trim_s_length); -#endif // _di_fss_extended_read_parameters_ +#endif // _di_fss_extended_read_parameter_d_ -#ifndef _di_fss_extended_read_delimit_mode_ +#ifndef _di_fss_extended_read_delimit_mode_s_ const f_string_static_t fss_extended_read_delimit_mode_name_none_s = macro_f_string_static_t_initialize(FSS_EXTENDED_READ_delimit_mode_name_none_s, 0, FSS_EXTENDED_READ_delimit_mode_name_none_s_length); const f_string_static_t fss_extended_read_delimit_mode_name_all_s = macro_f_string_static_t_initialize(FSS_EXTENDED_READ_delimit_mode_name_all_s, 0, FSS_EXTENDED_READ_delimit_mode_name_all_s_length); const f_string_static_t fss_extended_read_delimit_mode_name_object_s = macro_f_string_static_t_initialize(FSS_EXTENDED_READ_delimit_mode_name_object_s, 0, FSS_EXTENDED_READ_delimit_mode_name_object_s_length); const f_string_static_t fss_extended_read_delimit_mode_name_greater_s = macro_f_string_static_t_initialize(FSS_EXTENDED_READ_delimit_mode_name_greater_s, 0, FSS_EXTENDED_READ_delimit_mode_name_greater_s_length); const f_string_static_t fss_extended_read_delimit_mode_name_lesser_s = macro_f_string_static_t_initialize(FSS_EXTENDED_READ_delimit_mode_name_lesser_s, 0, FSS_EXTENDED_READ_delimit_mode_name_lesser_s_length); -#endif // _di_fss_extended_read_delimit_mode_ +#endif // _di_fss_extended_read_delimit_mode_s_ #ifndef _di_fss_extended_read_setting_delete_ f_status_t fss_extended_read_setting_delete(fss_extended_read_setting_t * const setting) { diff --git a/level_3/fss_extended_read/c/common.h b/level_3/fss_extended_read/c/common.h index 727ac05..a0b2489 100644 --- a/level_3/fss_extended_read/c/common.h +++ b/level_3/fss_extended_read/c/common.h @@ -19,7 +19,7 @@ extern "C" { /** * The program version. */ -#ifndef _di_fss_extended_read_program_version_ +#ifndef _di_fss_extended_read_program_version_s_ #define FSS_EXTENDED_READ_program_version_major_s F_string_ascii_0_s #define FSS_EXTENDED_READ_program_version_minor_s F_string_ascii_7_s #define FSS_EXTENDED_READ_program_version_micro_s F_string_ascii_0_s @@ -43,12 +43,12 @@ extern "C" { #define FSS_EXTENDED_READ_program_version_s_length FSS_EXTENDED_READ_program_version_major_s_length + F_string_ascii_period_s_length + FSS_EXTENDED_READ_program_version_minor_s_length + F_string_ascii_period_s_length + FSS_EXTENDED_READ_program_version_micro_s_length + FSS_EXTENDED_READ_program_version_nano_prefix_s_length + FSS_EXTENDED_READ_program_version_nano_s_length extern const f_string_static_t fss_extended_read_program_version_s; -#endif // _di_fss_extended_read_program_version_ +#endif // _di_fss_extended_read_program_version_s_ /** * The program name. */ -#ifndef _di_fss_extended_read_program_name_ +#ifndef _di_fss_extended_read_program_name_s_ #define FSS_EXTENDED_READ_program_name_s "fss_extended_read" #define FSS_EXTENDED_READ_program_name_long_s "FSS Extended Read" @@ -57,10 +57,17 @@ extern "C" { extern const f_string_static_t fss_extended_read_program_name_s; extern const f_string_static_t fss_extended_read_program_name_long_s; -#endif // _di_fss_extended_read_program_name_ +#endif // _di_fss_extended_read_program_name_s_ /** * The program defines. + */ +#ifndef _di_fss_extended_read_d_ + #define fss_extended_read_signal_check_d 20000 +#endif // _di_fss_extended_read_d_ + +/** + * The program pipe strings. * * fss_extended_read_pipe_*: * - name: A name used to represent the pipe when printing file names. @@ -68,9 +75,7 @@ extern "C" { * - content_ignore: A code used to represent the ignoring Content for use in binary formats. * - content_start: A code used to represent the start of Content for use in binary formats. */ -#ifndef _di_fss_extended_read_defines_ - #define fss_extended_read_signal_check_d 20000 - +#ifndef _di_fss_extended_read_pipe_s_ #define FSS_EXTENDED_READ_pipe_name_s "(pipe)" #define FSS_EXTENDED_READ_pipe_content_end_s "\f" @@ -88,12 +93,12 @@ extern "C" { extern const f_string_static_t fss_extended_read_pipe_content_end_s; extern const f_string_static_t fss_extended_read_pipe_content_ignore_s; extern const f_string_static_t fss_extended_read_pipe_content_start_s; -#endif // _di_fss_extended_read_defines_ +#endif // _di_fss_extended_read_pipe_s_ /** * The main program parameters. */ -#ifndef _di_fss_extended_read_parameters_ +#ifndef _di_fss_extended_read_parameter_d_ #define FSS_EXTENDED_READ_short_at_s "a" #define FSS_EXTENDED_READ_short_content_s "c" #define FSS_EXTENDED_READ_short_columns_s "C" @@ -212,7 +217,7 @@ extern "C" { fss_extended_read_parameter_select_e, fss_extended_read_parameter_total_e, fss_extended_read_parameter_trim_e, - }; + }; // enum #define fss_extended_read_console_parameter_t_initialize \ { \ @@ -245,10 +250,10 @@ extern "C" { } #define fss_extended_read_total_parameters_d 26 -#endif // _di_fss_extended_read_parameters_ +#endif // _di_fss_extended_read_parameter_d_ /** - * FSS Delimit Parameter data. + * FSS Delimit Parameter strings. * * fss_extended_read_delimit_mode_*: * - all: All delimits are to be aplied. @@ -260,7 +265,7 @@ extern "C" { * - content_object: Objects and Content are to have delimits applied * - object: Objects arre to have delimits applied. */ -#ifndef _di_fss_extended_read_delimit_mode_ +#ifndef _di_fss_extended_read_delimit_mode_s_ #define FSS_EXTENDED_READ_delimit_mode_name_none_s "none" #define FSS_EXTENDED_READ_delimit_mode_name_all_s "all" #define FSS_EXTENDED_READ_delimit_mode_name_object_s "object" @@ -278,7 +283,12 @@ extern "C" { extern const f_string_static_t fss_extended_read_delimit_mode_name_object_s; extern const f_string_static_t fss_extended_read_delimit_mode_name_greater_s; extern const f_string_static_t fss_extended_read_delimit_mode_name_lesser_s; +#endif // _di_fss_extended_read_delimit_mode_s_ +/** + * FSS Delimit Parameter enumerations. + */ +#ifndef _di_fss_extended_read_delimit_mode_e_ enum { fss_extended_read_delimit_mode_none_e = 1, fss_extended_read_delimit_mode_all_e, @@ -289,8 +299,8 @@ extern "C" { fss_extended_read_delimit_mode_content_lesser_object_e, fss_extended_read_delimit_mode_content_object_e, fss_extended_read_delimit_mode_object_e, - }; -#endif // _di_fss_extended_read_delimit_modes_ + }; // enum +#endif // _di_fss_extended_read_delimit_mode_e_ /** * Flags used to represent flags passed to the main function. @@ -317,7 +327,7 @@ extern "C" { 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, - }; + }; // enum #endif // _di_fss_extended_read_main_flag_e_ /** diff --git a/level_3/fss_extended_write/c/common.c b/level_3/fss_extended_write/c/common.c index e85733e..037c36a 100644 --- a/level_3/fss_extended_write/c/common.c +++ b/level_3/fss_extended_write/c/common.c @@ -4,23 +4,23 @@ extern "C" { #endif -#ifndef _di_fss_extended_write_program_version_ +#ifndef _di_fss_extended_write_program_version_s_ const f_string_static_t fss_extended_write_program_version_s = macro_f_string_static_t_initialize(FSS_EXTENDED_WRITE_program_version_s, 0, FSS_EXTENDED_WRITE_program_version_s_length); -#endif // _di_fss_extended_write_program_version_ +#endif // _di_fss_extended_write_program_version_s_ -#ifndef _di_fss_extended_write_program_name_ +#ifndef _di_fss_extended_write_program_name_s_ const f_string_static_t fss_extended_write_program_name_s = macro_f_string_static_t_initialize(FSS_EXTENDED_WRITE_program_name_s, 0, FSS_EXTENDED_WRITE_program_name_s_length); const f_string_static_t fss_extended_write_program_name_long_s = macro_f_string_static_t_initialize(FSS_EXTENDED_WRITE_program_name_long_s, 0, FSS_EXTENDED_WRITE_program_name_long_s_length); -#endif // _di_fss_extended_write_program_name_ +#endif // _di_fss_extended_write_program_name_s_ -#ifndef _di_fss_extended_write_defines_ +#ifndef _di_fss_extended_write_pipe_s_ const f_string_static_t fss_extended_write_pipe_name_s = macro_f_string_static_t_initialize(FSS_EXTENDED_WRITE_pipe_name_s, 0, FSS_EXTENDED_WRITE_pipe_name_s_length); const f_string_static_t fss_extended_write_pipe_content_end_s = macro_f_string_static_t_initialize(FSS_EXTENDED_WRITE_pipe_content_end_s, 0, FSS_EXTENDED_WRITE_pipe_content_end_s_length); const f_string_static_t fss_extended_write_pipe_content_ignore_s = macro_f_string_static_t_initialize(FSS_EXTENDED_WRITE_pipe_content_ignore_s, 0, FSS_EXTENDED_WRITE_pipe_content_ignore_s_length); const f_string_static_t fss_extended_write_pipe_content_start_s = macro_f_string_static_t_initialize(FSS_EXTENDED_WRITE_pipe_content_start_s, 0, FSS_EXTENDED_WRITE_pipe_content_start_s_length); -#endif // _di_fss_extended_write_defines_ +#endif // _di_fss_extended_write_pipe_s_ -#ifndef _di_fss_extended_write_parameters_ +#ifndef _di_fss_extended_write_parameter_d_ const f_string_static_t fss_extended_write_short_file_s = macro_f_string_static_t_initialize(FSS_EXTENDED_WRITE_short_file_s, 0, FSS_EXTENDED_WRITE_short_file_s_length); const f_string_static_t fss_extended_write_short_content_s = macro_f_string_static_t_initialize(FSS_EXTENDED_WRITE_short_content_s, 0, FSS_EXTENDED_WRITE_short_content_s_length); const f_string_static_t fss_extended_write_short_double_s = macro_f_string_static_t_initialize(FSS_EXTENDED_WRITE_short_double_s, 0, FSS_EXTENDED_WRITE_short_double_s_length); @@ -40,7 +40,7 @@ extern "C" { const f_string_static_t fss_extended_write_long_prepend_s = macro_f_string_static_t_initialize(FSS_EXTENDED_WRITE_long_prepend_s, 0, FSS_EXTENDED_WRITE_long_prepend_s_length); const f_string_static_t fss_extended_write_long_single_s = macro_f_string_static_t_initialize(FSS_EXTENDED_WRITE_long_single_s, 0, FSS_EXTENDED_WRITE_long_single_s_length); const f_string_static_t fss_extended_write_long_trim_s = macro_f_string_static_t_initialize(FSS_EXTENDED_WRITE_long_trim_s, 0, FSS_EXTENDED_WRITE_long_trim_s_length); -#endif // _di_fss_extended_write_parameters_ +#endif // _di_fss_extended_write_parameter_d_ #ifndef _di_fss_extended_write_setting_delete_ f_status_t fss_extended_write_setting_delete(fss_extended_write_setting_t * const setting) { diff --git a/level_3/fss_extended_write/c/common.h b/level_3/fss_extended_write/c/common.h index f3d6ef9..26fc63f 100644 --- a/level_3/fss_extended_write/c/common.h +++ b/level_3/fss_extended_write/c/common.h @@ -19,7 +19,7 @@ extern "C" { /** * The program version. */ -#ifndef _di_fss_extended_write_program_version_ +#ifndef _di_fss_extended_write_program_version_s_ #define FSS_EXTENDED_WRITE_program_version_major_s F_string_ascii_0_s #define FSS_EXTENDED_WRITE_program_version_minor_s F_string_ascii_7_s #define FSS_EXTENDED_WRITE_program_version_micro_s F_string_ascii_0_s @@ -43,12 +43,12 @@ extern "C" { #define FSS_EXTENDED_WRITE_program_version_s_length FSS_EXTENDED_WRITE_program_version_major_s_length + F_string_ascii_period_s_length + FSS_EXTENDED_WRITE_program_version_minor_s_length + F_string_ascii_period_s_length + FSS_EXTENDED_WRITE_program_version_micro_s_length + FSS_EXTENDED_WRITE_program_version_nano_prefix_s_length + FSS_EXTENDED_WRITE_program_version_nano_s_length extern const f_string_static_t fss_extended_write_program_version_s; -#endif // _di_fss_extended_write_program_version_ +#endif // _di_fss_extended_write_program_version_s_ /** * The program name. */ -#ifndef _di_fss_extended_write_program_name_ +#ifndef _di_fss_extended_write_program_name_s_ #define FSS_EXTENDED_WRITE_program_name_s "fss_extended_write" #define FSS_EXTENDED_WRITE_program_name_long_s "FSS Extended Write" @@ -57,10 +57,17 @@ extern "C" { extern const f_string_static_t fss_extended_write_program_name_s; extern const f_string_static_t fss_extended_write_program_name_long_s; -#endif // _di_fss_extended_write_program_name_ +#endif // _di_fss_extended_write_program_name_s_ /** - * The main program defines. + * The main program signal defines. + */ +#ifndef _di_fss_extended_write_d_ + #define fss_extended_write_signal_check_d 20000 +#endif // _di_fss_extended_write_d_ + +/** + * The main program pipe strings. * * fss_extended_write_pipe_*: * - name: A name used to represent the pipe when printing file names. @@ -68,9 +75,7 @@ extern "C" { * - content_ignore: A code used to represent the ignoring Content for use in binary formats. * - content_start: A code used to represent the start of Content for use in binary formats. */ -#ifndef _di_fss_extended_write_defines_ - #define fss_extended_write_signal_check_d 20000 - +#ifndef _di_fss_extended_write_pipe_s_ #define FSS_EXTENDED_WRITE_pipe_name_s "(pipe)" #define FSS_EXTENDED_WRITE_pipe_content_end_s "\f" @@ -88,12 +93,12 @@ extern "C" { extern const f_string_static_t fss_extended_write_pipe_content_end_s; extern const f_string_static_t fss_extended_write_pipe_content_ignore_s; extern const f_string_static_t fss_extended_write_pipe_content_start_s; -#endif // _di_fss_extended_write_defines_ +#endif // _di_fss_extended_write_pipe_s_ /** * The main program parameters. */ -#ifndef _di_fss_extended_write_parameters_ +#ifndef _di_fss_extended_write_parameter_d_ #define FSS_EXTENDED_WRITE_short_file_s "f" #define FSS_EXTENDED_WRITE_short_content_s "c" #define FSS_EXTENDED_WRITE_short_double_s "d" @@ -177,7 +182,7 @@ extern "C" { fss_extended_write_parameter_prepend_e, fss_extended_write_parameter_single_e, fss_extended_write_parameter_trim_e, - }; + }; // enum #define fss_extended_write_console_parameter_t_initialize \ { \ @@ -206,7 +211,7 @@ extern "C" { } #define fss_extended_write_total_parameters_d 20 -#endif // _di_fss_extended_write_parameters_ +#endif // _di_fss_extended_write_parameter_d_ /** * Flags used to represent flags passed to the main function. @@ -233,7 +238,7 @@ extern "C" { fss_extended_write_main_flag_strip_invalid_e = 0x20, fss_extended_write_main_flag_verify_e = 0x40, fss_extended_write_main_flag_version_e = 0x80, - }; + }; // enum #endif // _di_fss_extended_write_main_flag_e_ /** diff --git a/level_3/fss_identify/c/common.c b/level_3/fss_identify/c/common.c index ea366be..89a5c5b 100644 --- a/level_3/fss_identify/c/common.c +++ b/level_3/fss_identify/c/common.c @@ -4,16 +4,16 @@ extern "C" { #endif -#ifndef _di_fss_identify_program_version_ +#ifndef _di_fss_identify_program_version_s_ const f_string_static_t fss_identify_program_version_s = macro_f_string_static_t_initialize(FSS_IDENTIFY_program_version_s, 0, FSS_IDENTIFY_program_version_s_length); -#endif // _di_fss_identify_program_version_ +#endif // _di_fss_identify_program_version_s_ -#ifndef _di_fss_identify_program_name_ +#ifndef _di_fss_identify_program_name_s_ const f_string_static_t fss_identify_program_name_s = macro_f_string_static_t_initialize(FSS_IDENTIFY_program_name_s, 0, FSS_IDENTIFY_program_name_s_length); const f_string_static_t fss_identify_program_name_long_s = macro_f_string_static_t_initialize(FSS_IDENTIFY_program_name_long_s, 0, FSS_IDENTIFY_program_name_long_s_length); -#endif // _di_fss_identify_program_name_ +#endif // _di_fss_identify_program_name_s_ -#ifndef _di_fss_identify_parameters_ +#ifndef _di_fss_identify_parameter_d_ const f_string_static_t fss_identify_short_content_s = macro_f_string_static_t_initialize(FSS_IDENTIFY_short_content_s, 0, FSS_IDENTIFY_short_content_s_length); const f_string_static_t fss_identify_short_line_s = macro_f_string_static_t_initialize(FSS_IDENTIFY_short_line_s, 0, FSS_IDENTIFY_short_line_s_length); const f_string_static_t fss_identify_short_name_s = macro_f_string_static_t_initialize(FSS_IDENTIFY_short_name_s, 0, FSS_IDENTIFY_short_name_s_length); @@ -25,7 +25,7 @@ extern "C" { const f_string_static_t fss_identify_long_name_s = macro_f_string_static_t_initialize(FSS_IDENTIFY_long_name_s, 0, FSS_IDENTIFY_long_name_s_length); const f_string_static_t fss_identify_long_object_s = macro_f_string_static_t_initialize(FSS_IDENTIFY_long_object_s, 0, FSS_IDENTIFY_long_object_s_length); const f_string_static_t fss_identify_long_total_s = macro_f_string_static_t_initialize(FSS_IDENTIFY_long_total_s, 0, FSS_IDENTIFY_long_total_s_length); -#endif // _di_fss_identify_parameters_ +#endif // _di_fss_identify_parameter_d_ #ifndef _di_fss_identify_setting_delete_ f_status_t fss_identify_setting_delete(fss_identify_setting_t * const setting) { diff --git a/level_3/fss_identify/c/common.h b/level_3/fss_identify/c/common.h index 4758941..fec33c7 100644 --- a/level_3/fss_identify/c/common.h +++ b/level_3/fss_identify/c/common.h @@ -19,7 +19,7 @@ extern "C" { /** * The program version. */ -#ifndef _di_fss_identify_program_version_ +#ifndef _di_fss_identify_program_version_s_ #define FSS_IDENTIFY_program_version_major_s F_string_ascii_0_s #define FSS_IDENTIFY_program_version_minor_s F_string_ascii_7_s #define FSS_IDENTIFY_program_version_micro_s F_string_ascii_0_s @@ -43,12 +43,12 @@ extern "C" { #define FSS_IDENTIFY_program_version_s_length FSS_IDENTIFY_program_version_major_s_length + F_string_ascii_period_s_length + FSS_IDENTIFY_program_version_minor_s_length + F_string_ascii_period_s_length + FSS_IDENTIFY_program_version_micro_s_length + FSS_IDENTIFY_program_version_nano_prefix_s_length + FSS_IDENTIFY_program_version_nano_s_length extern const f_string_static_t fss_identify_program_version_s; -#endif // _di_fss_identify_program_version_ +#endif // _di_fss_identify_program_version_s_ /** * The program name. */ -#ifndef _di_fss_identify_program_name_ +#ifndef _di_fss_identify_program_name_s_ #define FSS_IDENTIFY_program_name_s "fss_identify" #define FSS_IDENTIFY_program_name_long_s "FSS Identify" @@ -57,19 +57,19 @@ extern "C" { extern const f_string_static_t fss_identify_program_name_s; extern const f_string_static_t fss_identify_program_name_long_s; -#endif // _di_fss_identify_program_name_ +#endif // _di_fss_identify_program_name_s_ /** * The program defines. */ -#ifndef _di_fss_identify_defines_ +#ifndef _di_fss_identify_d_ #define fss_identify_signal_check_d 20000 -#endif // _di_fss_identify_defines_ +#endif // _di_fss_identify_d_ /** * The main program parameters. */ -#ifndef _di_fss_identify_parameters_ +#ifndef _di_fss_identify_parameter_d_ #define FSS_IDENTIFY_short_content_s "c" #define FSS_IDENTIFY_short_line_s "l" #define FSS_IDENTIFY_short_name_s "n" @@ -125,7 +125,7 @@ extern "C" { fss_identify_parameter_name_e, fss_identify_parameter_object_e, fss_identify_parameter_total_e, - }; + }; // enum #define fss_identify_console_parameter_t_initialize \ { \ @@ -150,7 +150,7 @@ extern "C" { } #define fss_identify_total_parameters_d 17 -#endif // _di_fss_identify_parameters_ +#endif // _di_fss_identify_parameter_d_ /** * Flags used to represent flags passed to the main function. @@ -177,7 +177,7 @@ extern "C" { fss_identify_main_flag_strip_invalid_e = 0x20, fss_identify_main_flag_verify_e = 0x40, fss_identify_main_flag_version_e = 0x80, - }; + }; // enum #endif // _di_fss_identify_main_flag_e_ /** diff --git a/level_3/fss_payload_read/c/common.c b/level_3/fss_payload_read/c/common.c index e89088b..c5d93b6 100644 --- a/level_3/fss_payload_read/c/common.c +++ b/level_3/fss_payload_read/c/common.c @@ -4,24 +4,24 @@ extern "C" { #endif -#ifndef _di_fss_payload_read_program_version_ +#ifndef _di_fss_payload_read_program_version_s_ const f_string_static_t fss_payload_read_program_version_s = macro_f_string_static_t_initialize(FSS_PAYLOAD_READ_program_version_s, 0, FSS_PAYLOAD_READ_program_version_s_length); -#endif // _di_fss_payload_read_program_version_ +#endif // _di_fss_payload_read_program_version_s_ -#ifndef _di_fss_payload_read_program_name_ +#ifndef _di_fss_payload_read_program_name_s_ const f_string_static_t fss_payload_read_program_name_s = macro_f_string_static_t_initialize(FSS_PAYLOAD_READ_program_name_s, 0, FSS_PAYLOAD_READ_program_name_s_length); const f_string_static_t fss_payload_read_program_name_long_s = macro_f_string_static_t_initialize(FSS_PAYLOAD_READ_program_name_long_s, 0, FSS_PAYLOAD_READ_program_name_long_s_length); -#endif // _di_fss_payload_read_program_name_ +#endif // _di_fss_payload_read_program_name_s_ -#ifndef _di_fss_payload_read_defines_ +#ifndef _di_fss_payload_read_pipe_s_ const f_string_static_t fss_payload_read_pipe_name_s = macro_f_string_static_t_initialize(FSS_PAYLOAD_READ_pipe_name_s, 0, FSS_PAYLOAD_READ_pipe_name_s_length); const f_string_static_t fss_payload_read_pipe_content_end_s = macro_f_string_static_t_initialize(FSS_PAYLOAD_READ_pipe_content_end_s, 0, FSS_PAYLOAD_READ_pipe_content_end_s_length); const f_string_static_t fss_payload_read_pipe_content_ignore_s = macro_f_string_static_t_initialize(FSS_PAYLOAD_READ_pipe_content_ignore_s, 0, FSS_PAYLOAD_READ_pipe_content_ignore_s_length); const f_string_static_t fss_payload_read_pipe_content_start_s = macro_f_string_static_t_initialize(FSS_PAYLOAD_READ_pipe_content_start_s, 0, FSS_PAYLOAD_READ_pipe_content_start_s_length); -#endif // _di_fss_payload_read_defines_ +#endif // _di_fss_payload_read_pipe_s_ -#ifndef _di_fss_payload_read_parameters_ +#ifndef _di_fss_payload_read_parameter_d_ const f_string_static_t fss_payload_read_short_at_s = macro_f_string_static_t_initialize(FSS_PAYLOAD_READ_short_at_s, 0, FSS_PAYLOAD_READ_short_at_s_length); const f_string_static_t fss_payload_read_short_content_s = macro_f_string_static_t_initialize(FSS_PAYLOAD_READ_short_content_s, 0, FSS_PAYLOAD_READ_short_content_s_length); const f_string_static_t fss_payload_read_short_columns_s = macro_f_string_static_t_initialize(FSS_PAYLOAD_READ_short_columns_s, 0, FSS_PAYLOAD_READ_short_columns_s_length); @@ -51,15 +51,15 @@ extern "C" { const f_string_static_t fss_payload_read_long_select_s = macro_f_string_static_t_initialize(FSS_PAYLOAD_READ_long_select_s, 0, FSS_PAYLOAD_READ_long_select_s_length); const f_string_static_t fss_payload_read_long_total_s = macro_f_string_static_t_initialize(FSS_PAYLOAD_READ_long_total_s, 0, FSS_PAYLOAD_READ_long_total_s_length); const f_string_static_t fss_payload_read_long_trim_s = macro_f_string_static_t_initialize(FSS_PAYLOAD_READ_long_trim_s, 0, FSS_PAYLOAD_READ_long_trim_s_length); -#endif // _di_fss_payload_read_parameters_ +#endif // _di_fss_payload_read_parameter_d_ -#ifndef _di_fss_payload_read_delimit_mode_ +#ifndef _di_fss_payload_read_delimit_mode_s_ const f_string_static_t fss_payload_read_delimit_mode_name_none_s = macro_f_string_static_t_initialize(FSS_PAYLOAD_READ_delimit_mode_name_none_s, 0, FSS_PAYLOAD_READ_delimit_mode_name_none_s_length); const f_string_static_t fss_payload_read_delimit_mode_name_all_s = macro_f_string_static_t_initialize(FSS_PAYLOAD_READ_delimit_mode_name_all_s, 0, FSS_PAYLOAD_READ_delimit_mode_name_all_s_length); const f_string_static_t fss_payload_read_delimit_mode_name_object_s = macro_f_string_static_t_initialize(FSS_PAYLOAD_READ_delimit_mode_name_object_s, 0, FSS_PAYLOAD_READ_delimit_mode_name_object_s_length); const f_string_static_t fss_payload_read_delimit_mode_name_greater_s = macro_f_string_static_t_initialize(FSS_PAYLOAD_READ_delimit_mode_name_greater_s, 0, FSS_PAYLOAD_READ_delimit_mode_name_greater_s_length); const f_string_static_t fss_payload_read_delimit_mode_name_lesser_s = macro_f_string_static_t_initialize(FSS_PAYLOAD_READ_delimit_mode_name_lesser_s, 0, FSS_PAYLOAD_READ_delimit_mode_name_lesser_s_length); -#endif // _di_fss_payload_read_delimit_mode_ +#endif // _di_fss_payload_read_delimit_mode_s_ #ifndef _di_fss_payload_read_setting_delete_ f_status_t fss_payload_read_setting_delete(fss_payload_read_setting_t * const setting) { diff --git a/level_3/fss_payload_read/c/common.h b/level_3/fss_payload_read/c/common.h index 703efb1..6afc92b 100644 --- a/level_3/fss_payload_read/c/common.h +++ b/level_3/fss_payload_read/c/common.h @@ -19,7 +19,7 @@ extern "C" { /** * The program version. */ -#ifndef _di_fss_payload_read_program_version_ +#ifndef _di_fss_payload_read_program_version_s_ #define FSS_PAYLOAD_READ_program_version_major_s F_string_ascii_0_s #define FSS_PAYLOAD_READ_program_version_minor_s F_string_ascii_7_s #define FSS_PAYLOAD_READ_program_version_micro_s F_string_ascii_0_s @@ -43,12 +43,12 @@ extern "C" { #define FSS_PAYLOAD_READ_program_version_s_length FSS_PAYLOAD_READ_program_version_major_s_length + F_string_ascii_period_s_length + FSS_PAYLOAD_READ_program_version_minor_s_length + F_string_ascii_period_s_length + FSS_PAYLOAD_READ_program_version_micro_s_length + FSS_PAYLOAD_READ_program_version_nano_prefix_s_length + FSS_PAYLOAD_READ_program_version_nano_s_length extern const f_string_static_t fss_payload_read_program_version_s; -#endif // _di_fss_payload_read_program_version_ +#endif // _di_fss_payload_read_program_version_s_ /** * The program name. */ -#ifndef _di_fss_payload_read_program_name_ +#ifndef _di_fss_payload_read_program_name_s_ #define FSS_PAYLOAD_READ_program_name_s "fss_payload_read" #define FSS_PAYLOAD_READ_program_name_long_s "FSS Payload Read" @@ -57,14 +57,19 @@ extern "C" { extern const f_string_static_t fss_payload_read_program_name_s; extern const f_string_static_t fss_payload_read_program_name_long_s; -#endif // _di_fss_payload_read_program_name_ +#endif // _di_fss_payload_read_program_name_s_ /** * The program defines. */ -#ifndef _di_fss_payload_read_defines_ +#ifndef _di_fss_payload_read_d_ #define fss_payload_read_signal_check_d 20000 +#endif // _di_fss_payload_read_d_ +/** + * The program pipe strings. + */ +#ifndef _di_fss_payload_read_pipe_s_ #define FSS_PAYLOAD_READ_pipe_name_s "(pipe)" #define FSS_PAYLOAD_READ_pipe_content_end_s "\f" @@ -82,12 +87,12 @@ extern "C" { extern const f_string_static_t fss_payload_read_pipe_content_end_s; extern const f_string_static_t fss_payload_read_pipe_content_ignore_s; extern const f_string_static_t fss_payload_read_pipe_content_start_s; -#endif // _di_fss_payload_read_defines_ +#endif // _di_fss_payload_read_pipe_s_ /** * The main program parameters. */ -#ifndef _di_fss_payload_read_parameters_ +#ifndef _di_fss_payload_read_parameter_d_ #define FSS_PAYLOAD_READ_short_at_s "a" #define FSS_PAYLOAD_READ_short_content_s "c" #define FSS_PAYLOAD_READ_short_columns_s "C" @@ -206,7 +211,7 @@ extern "C" { fss_payload_read_parameter_select_e, fss_payload_read_parameter_total_e, fss_payload_read_parameter_trim_e, - }; + }; // enum #define fss_payload_read_console_parameter_t_initialize \ { \ @@ -240,10 +245,10 @@ extern "C" { } #define fss_payload_read_total_parameters_d 26 -#endif // _di_fss_payload_read_parameters_ +#endif // _di_fss_payload_read_parameter_d_ /** - * FSS Delimit Parameter data. + * FSS Delimit Parameter strings. * * fss_payload_read_delimit_mode_*: * - all: All delimits are to be aplied. @@ -255,7 +260,7 @@ extern "C" { * - content_object: Objects and Content are to have delimits applied * - object: Objects arre to have delimits applied. */ -#ifndef _di_fss_payload_read_delimit_mode_ +#ifndef _di_fss_payload_read_delimit_mode_s_ #define FSS_PAYLOAD_READ_delimit_mode_name_none_s "none" #define FSS_PAYLOAD_READ_delimit_mode_name_all_s "all" #define FSS_PAYLOAD_READ_delimit_mode_name_object_s "object" @@ -273,7 +278,12 @@ extern "C" { extern const f_string_static_t fss_payload_read_delimit_mode_name_object_s; extern const f_string_static_t fss_payload_read_delimit_mode_name_greater_s; extern const f_string_static_t fss_payload_read_delimit_mode_name_lesser_s; +#endif // _di_fss_payload_read_delimit_mode_s_ +/** + * FSS Delimit Parameter enumerations. + */ +#ifndef _di_fss_payload_read_delimit_mode_e_ enum { fss_payload_read_delimit_mode_none_e = 1, fss_payload_read_delimit_mode_all_e, @@ -284,8 +294,8 @@ extern "C" { fss_payload_read_delimit_mode_content_lesser_object_e, fss_payload_read_delimit_mode_content_object_e, fss_payload_read_delimit_mode_object_e, - }; -#endif // _di_fss_payload_read_delimit_modes_ + }; // enum +#endif // _di_fss_payload_read_delimit_mode_e_ /** * Flags used to represent flags passed to the main function. @@ -324,7 +334,7 @@ extern "C" { fss_payload_read_main_flag_version_e = 0x800, fss_payload_read_main_flag_whole_e = 0x1000, fss_payload_read_main_flag_wrap_e = 0x2000, - }; + }; // enum #endif // _di_fss_payload_read_main_flag_e_ /** diff --git a/level_3/fss_write/c/basic/common.c b/level_3/fss_write/c/basic/common.c index 78d096b..8370c64 100644 --- a/level_3/fss_write/c/basic/common.c +++ b/level_3/fss_write/c/basic/common.c @@ -4,7 +4,7 @@ extern "C" { #endif -#ifndef _di_fss_write_basic_strings_ +#ifndef _di_fss_write_basic_s_ const f_string_static_t fss_write_basic_standard_s = macro_f_string_static_t_initialize(FSS_WRITE_basic_standard_s, 0, FSS_WRITE_basic_standard_s_length); const f_string_static_t fss_write_basic_program_name_s = macro_f_string_static_t_initialize(FSS_WRITE_basic_program_name_s, 0, FSS_WRITE_basic_program_name_s_length); @@ -13,7 +13,7 @@ extern "C" { const f_string_static_t fss_write_format_code_short_0000_s = macro_f_string_static_t_initialize(FSS_WRITE_format_code_short_0000_s, 0, FSS_WRITE_format_code_short_0000_s_length); const f_string_static_t fss_write_format_code_long_0000_s = macro_f_string_static_t_initialize(FSS_WRITE_format_code_long_0000_s, 0, FSS_WRITE_format_code_long_0000_s_length); const f_string_static_t fss_write_format_code_human_0000_s = macro_f_string_static_t_initialize(FSS_WRITE_format_code_human_0000_s, 0, FSS_WRITE_format_code_human_0000_s_length); -#endif // _di_fss_write_basic_strings_ +#endif // _di_fss_write_basic_s_ #ifdef __cplusplus } // extern "C" diff --git a/level_3/fss_write/c/basic/common.h b/level_3/fss_write/c/basic/common.h index b796ef9..d3ad084 100644 --- a/level_3/fss_write/c/basic/common.h +++ b/level_3/fss_write/c/basic/common.h @@ -19,7 +19,7 @@ extern "C" { /** * The FSS-0000 (Basic) specific strings. */ -#ifndef _di_fss_write_basic_strings_ +#ifndef _di_fss_write_basic_s_ #define FSS_WRITE_basic_standard_s "FSS-0000 (Basic)" #define FSS_WRITE_basic_program_name_s "fss_basic_write" @@ -46,7 +46,7 @@ extern "C" { extern const f_string_static_t fss_write_format_code_short_0000_s; extern const f_string_static_t fss_write_format_code_long_0000_s; extern const f_string_static_t fss_write_format_code_human_0000_s; -#endif // _di_fss_write_basic_strings_ +#endif // _di_fss_write_basic_s_ #ifdef __cplusplus } // extern "C" diff --git a/level_3/fss_write/c/basic_list/common.c b/level_3/fss_write/c/basic_list/common.c index 4271316..78e9483 100644 --- a/level_3/fss_write/c/basic_list/common.c +++ b/level_3/fss_write/c/basic_list/common.c @@ -4,7 +4,7 @@ extern "C" { #endif -#ifndef _di_fss_write_basic_list_strings_ +#ifndef _di_fss_write_basic_list_s_ const f_string_static_t fss_write_basic_list_standard_s = macro_f_string_static_t_initialize(FSS_WRITE_basic_list_standard_s, 0, FSS_WRITE_basic_list_standard_s_length); const f_string_static_t fss_write_basic_list_program_name_s = macro_f_string_static_t_initialize(FSS_WRITE_basic_list_program_name_s, 0, FSS_WRITE_basic_list_program_name_s_length); @@ -13,7 +13,7 @@ extern "C" { const f_string_static_t fss_write_format_code_short_0002_s = macro_f_string_static_t_initialize(FSS_WRITE_format_code_short_0002_s, 0, FSS_WRITE_format_code_short_0002_s_length); const f_string_static_t fss_write_format_code_long_0002_s = macro_f_string_static_t_initialize(FSS_WRITE_format_code_long_0002_s, 0, FSS_WRITE_format_code_long_0002_s_length); const f_string_static_t fss_write_format_code_human_0002_s = macro_f_string_static_t_initialize(FSS_WRITE_format_code_human_0002_s, 0, FSS_WRITE_format_code_human_0002_s_length); -#endif // _di_fss_write_basic_list_strings_ +#endif // _di_fss_write_basic_list_s_ #ifdef __cplusplus } // extern "C" diff --git a/level_3/fss_write/c/basic_list/common.h b/level_3/fss_write/c/basic_list/common.h index 11cfe38..4d240f3 100644 --- a/level_3/fss_write/c/basic_list/common.h +++ b/level_3/fss_write/c/basic_list/common.h @@ -19,7 +19,7 @@ extern "C" { /** * The FSS-0002 (Basic List) specific strings. */ -#ifndef _di_fss_write_basic_list_strings_ +#ifndef _di_fss_write_basic_list_s_ #define FSS_WRITE_basic_list_standard_s "FSS-0002 (Basic List)" #define FSS_WRITE_basic_list_program_name_s "fss_basic_list_write" @@ -46,7 +46,7 @@ extern "C" { extern const f_string_static_t fss_write_format_code_short_0002_s; extern const f_string_static_t fss_write_format_code_long_0002_s; extern const f_string_static_t fss_write_format_code_human_0002_s; -#endif // _di_fss_write_basic_list_strings_ +#endif // _di_fss_write_basic_list_s_ #ifdef __cplusplus } // extern "C" diff --git a/level_3/fss_write/c/embedded_list/common.c b/level_3/fss_write/c/embedded_list/common.c index bedc8e7..68384be 100644 --- a/level_3/fss_write/c/embedded_list/common.c +++ b/level_3/fss_write/c/embedded_list/common.c @@ -4,7 +4,7 @@ extern "C" { #endif -#ifndef _di_fss_write_embedded_list_strings_ +#ifndef _di_fss_write_embedded_list_s_ const f_string_static_t fss_write_embedded_list_standard_s = macro_f_string_static_t_initialize(FSS_WRITE_embedded_list_standard_s, 0, FSS_WRITE_embedded_list_standard_s_length); const f_string_static_t fss_write_embedded_list_program_name_s = macro_f_string_static_t_initialize(FSS_WRITE_embedded_list_program_name_s, 0, FSS_WRITE_embedded_list_program_name_s_length); @@ -13,7 +13,7 @@ extern "C" { const f_string_static_t fss_write_format_code_short_0008_s = macro_f_string_static_t_initialize(FSS_WRITE_format_code_short_0008_s, 0, FSS_WRITE_format_code_short_0008_s_length); const f_string_static_t fss_write_format_code_long_0008_s = macro_f_string_static_t_initialize(FSS_WRITE_format_code_long_0008_s, 0, FSS_WRITE_format_code_long_0008_s_length); const f_string_static_t fss_write_format_code_human_0008_s = macro_f_string_static_t_initialize(FSS_WRITE_format_code_human_0008_s, 0, FSS_WRITE_format_code_human_0008_s_length); -#endif // _di_fss_write_embedded_list_strings_ +#endif // _di_fss_write_embedded_list_s_ #ifdef __cplusplus } // extern "C" diff --git a/level_3/fss_write/c/embedded_list/common.h b/level_3/fss_write/c/embedded_list/common.h index f4f05e3..31952cd 100644 --- a/level_3/fss_write/c/embedded_list/common.h +++ b/level_3/fss_write/c/embedded_list/common.h @@ -19,7 +19,7 @@ extern "C" { /** * The FSS-0008 (Embedded List) specific strings. */ -#ifndef _di_fss_write_embedded_list_strings_ +#ifndef _di_fss_write_embedded_list_s_ #define FSS_WRITE_embedded_list_standard_s "FSS-0008 (Embedded List)" #define FSS_WRITE_embedded_list_program_name_s "fss_embedded_list_write" @@ -46,7 +46,7 @@ extern "C" { extern const f_string_static_t fss_write_format_code_short_0008_s; extern const f_string_static_t fss_write_format_code_long_0008_s; extern const f_string_static_t fss_write_format_code_human_0008_s; -#endif // _di_fss_write_embedded_list_strings_ +#endif // _di_fss_write_embedded_list_s_ #ifdef __cplusplus } // extern "C" diff --git a/level_3/fss_write/c/extended/common.c b/level_3/fss_write/c/extended/common.c index dca3a8c..c220e9b 100644 --- a/level_3/fss_write/c/extended/common.c +++ b/level_3/fss_write/c/extended/common.c @@ -4,7 +4,7 @@ extern "C" { #endif -#ifndef _di_fss_write_extended_strings_ +#ifndef _di_fss_write_extended_s_ const f_string_static_t fss_write_extended_standard_s = macro_f_string_static_t_initialize(FSS_WRITE_extended_standard_s, 0, FSS_WRITE_extended_standard_s_length); const f_string_static_t fss_write_extended_program_name_s = macro_f_string_static_t_initialize(FSS_WRITE_extended_program_name_s, 0, FSS_WRITE_extended_program_name_s_length); @@ -13,7 +13,7 @@ extern "C" { const f_string_static_t fss_write_format_code_short_0001_s = macro_f_string_static_t_initialize(FSS_WRITE_format_code_short_0001_s, 0, FSS_WRITE_format_code_short_0001_s_length); const f_string_static_t fss_write_format_code_long_0001_s = macro_f_string_static_t_initialize(FSS_WRITE_format_code_long_0001_s, 0, FSS_WRITE_format_code_long_0001_s_length); const f_string_static_t fss_write_format_code_human_0001_s = macro_f_string_static_t_initialize(FSS_WRITE_format_code_human_0001_s, 0, FSS_WRITE_format_code_human_0001_s_length); -#endif // _di_fss_write_extended_strings_ +#endif // _di_fss_write_extended_s_ #ifdef __cplusplus } // extern "C" diff --git a/level_3/fss_write/c/extended/common.h b/level_3/fss_write/c/extended/common.h index 595cd9d..95c1cf7 100644 --- a/level_3/fss_write/c/extended/common.h +++ b/level_3/fss_write/c/extended/common.h @@ -19,7 +19,7 @@ extern "C" { /** * The FSS-0001 (Extended) specific strings. */ -#ifndef _di_fss_write_extended_strings_ +#ifndef _di_fss_write_extended_s_ #define FSS_WRITE_extended_standard_s "FSS-0001 (Extended)" #define FSS_WRITE_extended_program_name_s "fss_extended_write" @@ -46,7 +46,7 @@ extern "C" { extern const f_string_static_t fss_write_format_code_short_0001_s; extern const f_string_static_t fss_write_format_code_long_0001_s; extern const f_string_static_t fss_write_format_code_human_0001_s; -#endif // _di_fss_write_extended_strings_ +#endif // _di_fss_write_extended_s_ #ifdef __cplusplus } // extern "C" diff --git a/level_3/fss_write/c/extended_list/common.c b/level_3/fss_write/c/extended_list/common.c index 6645cd3..2e9fcca 100644 --- a/level_3/fss_write/c/extended_list/common.c +++ b/level_3/fss_write/c/extended_list/common.c @@ -4,7 +4,7 @@ extern "C" { #endif -#ifndef _di_fss_write_extended_list_strings_ +#ifndef _di_fss_write_extended_list_s_ const f_string_static_t fss_write_extended_list_standard_s = macro_f_string_static_t_initialize(FSS_WRITE_extended_list_standard_s, 0, FSS_WRITE_extended_list_standard_s_length); const f_string_static_t fss_write_extended_list_program_name_s = macro_f_string_static_t_initialize(FSS_WRITE_extended_list_program_name_s, 0, FSS_WRITE_extended_list_program_name_s_length); @@ -13,7 +13,7 @@ extern "C" { const f_string_static_t fss_write_format_code_short_0003_s = macro_f_string_static_t_initialize(FSS_WRITE_format_code_short_0003_s, 0, FSS_WRITE_format_code_short_0003_s_length); const f_string_static_t fss_write_format_code_long_0003_s = macro_f_string_static_t_initialize(FSS_WRITE_format_code_long_0003_s, 0, FSS_WRITE_format_code_long_0003_s_length); const f_string_static_t fss_write_format_code_human_0003_s = macro_f_string_static_t_initialize(FSS_WRITE_format_code_human_0003_s, 0, FSS_WRITE_format_code_human_0003_s_length); -#endif // _di_fss_write_extended_list_strings_ +#endif // _di_fss_write_extended_list_s_ #ifdef __cplusplus } // extern "C" diff --git a/level_3/fss_write/c/extended_list/common.h b/level_3/fss_write/c/extended_list/common.h index f842ab1..0e7a1e8 100644 --- a/level_3/fss_write/c/extended_list/common.h +++ b/level_3/fss_write/c/extended_list/common.h @@ -19,7 +19,7 @@ extern "C" { /** * The FSS-0001 (Extended List) specific strings. */ -#ifndef _di_fss_write_extended_list_strings_ +#ifndef _di_fss_write_extended_list_s_ #define FSS_WRITE_extended_list_standard_s "FSS-0003 (Extended List)" #define FSS_WRITE_extended_list_program_name_s "fss_extended_list_write" @@ -46,7 +46,7 @@ extern "C" { extern const f_string_static_t fss_write_format_code_short_0003_s; extern const f_string_static_t fss_write_format_code_long_0003_s; extern const f_string_static_t fss_write_format_code_human_0003_s; -#endif // _di_fss_write_extended_list_strings_ +#endif // _di_fss_write_extended_list_s_ #ifdef __cplusplus } // extern "C" diff --git a/level_3/fss_write/c/main/common.c b/level_3/fss_write/c/main/common.c index 220d4d1..f21c0ba 100644 --- a/level_3/fss_write/c/main/common.c +++ b/level_3/fss_write/c/main/common.c @@ -4,26 +4,26 @@ extern "C" { #endif -#ifndef _di_fss_write_program_version_ +#ifndef _di_fss_write_program_version_s_ const f_string_static_t fss_write_program_version_s = macro_f_string_static_t_initialize(FSS_WRITE_program_version_s, 0, FSS_WRITE_program_version_s_length); -#endif // _di_fss_write_program_version_ +#endif // _di_fss_write_program_version_s_ -#ifndef _di_fss_write_program_name_ +#ifndef _di_fss_write_program_name_s_ const f_string_static_t fss_write_program_name_s = macro_f_string_static_t_initialize(FSS_WRITE_program_name_s, 0, FSS_WRITE_program_name_s_length); const f_string_static_t fss_write_program_name_long_s = macro_f_string_static_t_initialize(FSS_WRITE_program_name_long_s, 0, FSS_WRITE_program_name_long_s_length); -#endif // _di_fss_write_program_name_ +#endif // _di_fss_write_program_name_s_ -#ifndef _di_fss_write_defines_ +#ifndef _di_fss_write_pipe_s_ const f_string_static_t fss_write_pipe_content_end_s = macro_f_string_static_t_initialize(FSS_WRITE_pipe_content_end_s, 0, FSS_WRITE_pipe_content_end_s_length); const f_string_static_t fss_write_pipe_content_ignore_s = macro_f_string_static_t_initialize(FSS_WRITE_pipe_content_ignore_s, 0, FSS_WRITE_pipe_content_ignore_s_length); const f_string_static_t fss_write_pipe_content_start_s = macro_f_string_static_t_initialize(FSS_WRITE_pipe_content_start_s, 0, FSS_WRITE_pipe_content_start_s_length); -#endif // _di_fss_write_defines_ +#endif // _di_fss_write_pipe_s_ -#ifndef _di_fss_write_strings_ +#ifndef _di_fss_write_s_ const f_string_static_t fss_write_string_two_s = macro_f_string_static_t_initialize(FSS_WRITE_string_two_s, 0, FSS_WRITE_string_two_s_length); -#endif // _di_fss_write_strings_ +#endif // _di_fss_write_s_ -#ifndef _di_fss_write_parameters_ +#ifndef _di_fss_write_parameter_d_ const f_string_static_t fss_write_short_as_s = macro_f_string_static_t_initialize(FSS_WRITE_short_as_s, 0, FSS_WRITE_short_as_s_length); const f_string_static_t fss_write_short_backtick_s = macro_f_string_static_t_initialize(FSS_WRITE_short_backtick_s, 0, FSS_WRITE_short_backtick_s_length); const f_string_static_t fss_write_short_content_s = macro_f_string_static_t_initialize(FSS_WRITE_short_content_s, 0, FSS_WRITE_short_content_s_length); @@ -47,7 +47,7 @@ extern "C" { const f_string_static_t fss_write_long_prepend_s = macro_f_string_static_t_initialize(FSS_WRITE_long_prepend_s, 0, FSS_WRITE_long_prepend_s_length); const f_string_static_t fss_write_long_single_s = macro_f_string_static_t_initialize(FSS_WRITE_long_single_s, 0, FSS_WRITE_long_single_s_length); const f_string_static_t fss_write_long_trim_s = macro_f_string_static_t_initialize(FSS_WRITE_long_trim_s, 0, FSS_WRITE_long_trim_s_length); -#endif // _di_fss_write_parameters_ +#endif // _di_fss_write_parameter_d_ #ifndef _di_fss_write_setting_delete_ f_status_t fss_write_setting_delete(fss_write_setting_t * const setting) { diff --git a/level_3/fss_write/c/main/common.h b/level_3/fss_write/c/main/common.h index fd6fe44..acbb791 100644 --- a/level_3/fss_write/c/main/common.h +++ b/level_3/fss_write/c/main/common.h @@ -19,7 +19,7 @@ extern "C" { /** * The program version. */ -#ifndef _di_fss_write_program_version_ +#ifndef _di_fss_write_program_version_s_ #define FSS_WRITE_program_version_major_s F_string_ascii_0_s #define FSS_WRITE_program_version_minor_s F_string_ascii_7_s #define FSS_WRITE_program_version_micro_s F_string_ascii_0_s @@ -43,12 +43,12 @@ extern "C" { #define FSS_WRITE_program_version_s_length FSS_WRITE_program_version_major_s_length + F_string_ascii_period_s_length + FSS_WRITE_program_version_minor_s_length + F_string_ascii_period_s_length + FSS_WRITE_program_version_micro_s_length + FSS_WRITE_program_version_nano_prefix_s_length + FSS_WRITE_program_version_nano_s_length extern const f_string_static_t fss_write_program_version_s; -#endif // _di_fss_write_program_version_ +#endif // _di_fss_write_program_version_s_ /** * The program name. */ -#ifndef _di_fss_write_program_name_ +#ifndef _di_fss_write_program_name_s_ #define FSS_WRITE_program_name_s "fss_write" #define FSS_WRITE_program_name_long_s "FSS Write" @@ -57,16 +57,38 @@ extern "C" { extern const f_string_static_t fss_write_program_name_s; extern const f_string_static_t fss_write_program_name_long_s; -#endif // _di_fss_write_program_name_ +#endif // _di_fss_write_program_name_s_ /** - * The program defines. - * - * The fss_write_pipe_content_*_s strings are strings rather than characters to allow for wide characters. + * The program default defines. * - * payload_write_common_allocation_*: + * fss_write_default_allocation_*: * - large: An allocation step used for buffers that are anticipated to have large buffers. * - small: An allocation step used for buffers that are anticipated to have small buffers. + */ +#ifndef _di_fss_write_default_d_ + #define fss_write_default_allocation_large_d 2048 + #define fss_write_default_allocation_small_d 128 +#endif // _di_fss_write_default_d_ + +/** + * The program defines. + * + * macro_fss_write_setting: + * - Used to represent a cast to ((fss_write_setting_t *) setting). + * - Simplifies the number of parenthesis used to make code slightly cleaner. + * - Is wrapped in a parenthesis and not a block. + */ +#ifndef _di_fss_write_d_ + #define fss_write_signal_check_d 20000 + + #define macro_fss_write_setting(setting) ((fss_write_setting_t *) setting) +#endif // _di_fss_write_d_ + +/** + * The program pipe strings. + * + * The fss_write_pipe_content_*_s strings are strings rather than characters to allow for wide characters. * * fss_write_pipe_content_*_s: * - end: The character representing the end of content. @@ -78,12 +100,7 @@ extern "C" { * - Simplifies the number of parenthesis used to make code slightly cleaner. * - Is wrapped in a parenthesis and not a block. */ -#ifndef _di_fss_write_defines_ - #define fss_write_signal_check_d 20000 - - #define fss_write_common_allocation_large_d 2048 - #define fss_write_common_allocation_small_d 128 - +#ifndef _di_fss_write_pipe_s_ #define FSS_WRITE_pipe_content_end_s "\f" #define FSS_WRITE_pipe_content_ignore_s "\v" #define FSS_WRITE_pipe_content_start_s "\b" @@ -97,23 +114,23 @@ extern "C" { extern const f_string_static_t fss_write_pipe_content_start_s; #define macro_fss_write_setting(setting) ((fss_write_setting_t *) setting) -#endif // _di_fss_write_defines_ +#endif // _di_fss_write_pipe_s_ /** * A collection of static strings associated with FSS Payload Write. */ -#ifndef _di_fss_write_strings_ +#ifndef _di_fss_write_s_ #define FSS_WRITE_string_two_s "two" #define FSS_WRITE_string_two_s_length 3 extern const f_string_static_t fss_write_string_two_s; -#endif // _di_fss_write_strings_ +#endif // _di_fss_write_s_ /** * The main program parameters. */ -#ifndef _di_fss_write_parameters_ +#ifndef _di_fss_write_parameter_d_ #define FSS_WRITE_short_as_s "a" #define FSS_WRITE_short_backtick_s "b" #define FSS_WRITE_short_content_s "c" @@ -211,7 +228,7 @@ extern "C" { fss_write_parameter_prepend_e, fss_write_parameter_single_e, fss_write_parameter_trim_e, - }; + }; // enum #define fss_write_console_parameter_t_initialize \ { \ @@ -242,7 +259,7 @@ extern "C" { } #define fss_write_total_parameters_d 23 -#endif // _di_fss_write_parameters_ +#endif // _di_fss_write_parameter_d_ /** * Flags used to represent flags passed to the main function. @@ -273,7 +290,7 @@ extern "C" { fss_write_flag_prepend_e = 0x80, fss_write_flag_trim_e = 0x100, fss_write_flag_version_e = 0x200, - }; + }; // enum #endif // _di_fss_write_flag_e_ /** @@ -364,7 +381,7 @@ extern "C" { { \ fss_write_flag_none_e, \ F_none, \ - macro_f_state_t_initialize(fss_write_common_allocation_large_d, fss_write_common_allocation_small_d, 0, 0, &fll_program_standard_signal_state, 0, 0, 0), \ + macro_f_state_t_initialize(fss_write_default_allocation_large_d, fss_write_default_allocation_small_d, 0, 0, &fll_program_standard_signal_state, 0, 0, 0), \ f_string_range_t_initialize, \ f_string_static_t_initialize, \ f_string_static_t_initialize, \ diff --git a/level_3/fss_write/c/payload/common.c b/level_3/fss_write/c/payload/common.c index 1b3494e..49328e3 100644 --- a/level_3/fss_write/c/payload/common.c +++ b/level_3/fss_write/c/payload/common.c @@ -4,7 +4,7 @@ extern "C" { #endif -#ifndef _di_fss_write_payload_strings_ +#ifndef _di_fss_write_payload_s_ const f_string_static_t fss_write_payload_s = macro_f_string_static_t_initialize(FSS_WRITE_payload_s, 0, FSS_WRITE_payload_s_length); const f_string_static_t fss_write_payload_standard_s = macro_f_string_static_t_initialize(FSS_WRITE_payload_standard_s, 0, FSS_WRITE_payload_standard_s_length); @@ -15,7 +15,7 @@ extern "C" { const f_string_static_t fss_write_format_code_short_000e_s = macro_f_string_static_t_initialize(FSS_WRITE_format_code_short_000e_s, 0, FSS_WRITE_format_code_short_000e_s_length); const f_string_static_t fss_write_format_code_long_000e_s = macro_f_string_static_t_initialize(FSS_WRITE_format_code_long_000e_s, 0, FSS_WRITE_format_code_long_000e_s_length); const f_string_static_t fss_write_format_code_human_000e_s = macro_f_string_static_t_initialize(FSS_WRITE_format_code_human_000e_s, 0, FSS_WRITE_format_code_human_000e_s_length); -#endif // _di_fss_write_payload_strings_ +#endif // _di_fss_write_payload_s_ #ifdef __cplusplus } // extern "C" diff --git a/level_3/fss_write/c/payload/common.h b/level_3/fss_write/c/payload/common.h index e34d452..30f9910 100644 --- a/level_3/fss_write/c/payload/common.h +++ b/level_3/fss_write/c/payload/common.h @@ -19,7 +19,7 @@ extern "C" { /** * The FSS-000E (Payload) specific strings. */ -#ifndef _di_fss_write_payload_strings_ +#ifndef _di_fss_write_payload_s_ #define FSS_WRITE_payload_s "payload" #define FSS_WRITE_payload_standard_s "FSS-000E (Payload)" @@ -52,7 +52,7 @@ extern "C" { extern const f_string_static_t fss_write_format_code_short_000e_s; extern const f_string_static_t fss_write_format_code_long_000e_s; extern const f_string_static_t fss_write_format_code_human_000e_s; -#endif // _di_fss_write_payload_strings_ +#endif // _di_fss_write_payload_s_ #ifdef __cplusplus } // extern "C" diff --git a/level_3/fss_write/c/payload/fss_write.c b/level_3/fss_write/c/payload/fss_write.c index 740344f..f293460 100644 --- a/level_3/fss_write/c/payload/fss_write.c +++ b/level_3/fss_write/c/payload/fss_write.c @@ -20,7 +20,7 @@ extern "C" { f_status_t status_pipe = F_none; f_file_t input = f_file_t_initialize; input.id = F_type_descriptor_input_d; - input.size_read = fss_write_common_allocation_large_d; + input.size_read = fss_write_default_allocation_large_d; fss_write_setting_t * const setting = macro_fss_write_setting(void_setting); diff --git a/level_3/iki_read/c/common.c b/level_3/iki_read/c/common.c index d74fa6d..dc52d8f 100644 --- a/level_3/iki_read/c/common.c +++ b/level_3/iki_read/c/common.c @@ -4,21 +4,21 @@ extern "C" { #endif -#ifndef _di_iki_read_program_version_ +#ifndef _di_iki_read_program_version_s_ const f_string_static_t iki_read_program_version_s = macro_f_string_static_t_initialize(IKI_READ_program_version_s, 0, IKI_READ_program_version_s_length); -#endif // _di_iki_read_program_version_ +#endif // _di_iki_read_program_version_s_ -#ifndef _di_iki_read_program_name_ +#ifndef _di_iki_read_program_name_s_ const f_string_static_t iki_read_program_name_s = macro_f_string_static_t_initialize(IKI_READ_program_name_s, 0, IKI_READ_program_name_s_length); const f_string_static_t iki_read_program_name_long_s = macro_f_string_static_t_initialize(IKI_READ_program_name_long_s, 0, IKI_READ_program_name_long_s_length); -#endif // _di_iki_read_program_name_ +#endif // _di_iki_read_program_name_s_ -#ifndef _di_iki_read_strings_ +#ifndef _di_iki_read_s_ const f_string_static_t iki_read_string_two_s = macro_f_string_static_t_initialize(IKI_READ_string_two_s, 0, IKI_READ_string_two_s_length); const f_string_static_t iki_read_string_three_s = macro_f_string_static_t_initialize(IKI_READ_string_three_s, 0, IKI_READ_string_three_s_length); -#endif // _di_iki_read_strings_ +#endif // _di_iki_read_s_ -#ifndef _di_iki_read_parameters_ +#ifndef _di_iki_read_parameter_d_ const f_string_static_t iki_read_short_at_s = macro_f_string_static_t_initialize(IKI_READ_short_at_s, 0, IKI_READ_short_at_s_length); const f_string_static_t iki_read_short_content_s = macro_f_string_static_t_initialize(IKI_READ_short_content_s, 0, IKI_READ_short_content_s_length); const f_string_static_t iki_read_short_line_s = macro_f_string_static_t_initialize(IKI_READ_short_line_s, 0, IKI_READ_short_line_s_length); @@ -44,7 +44,7 @@ extern "C" { const f_string_static_t iki_read_long_total_s = macro_f_string_static_t_initialize(IKI_READ_long_total_s, 0, IKI_READ_long_total_s_length); const f_string_static_t iki_read_long_whole_s = macro_f_string_static_t_initialize(IKI_READ_long_whole_s, 0, IKI_READ_long_whole_s_length); const f_string_static_t iki_read_long_wrap_s = macro_f_string_static_t_initialize(IKI_READ_long_wrap_s, 0, IKI_READ_long_wrap_s_length); -#endif // _di_iki_read_parameters_ +#endif // _di_iki_read_parameter_d_ #ifndef _di_iki_read_substitution_t_ const f_string_static_t iki_read_substitution_after_s = macro_f_string_static_t_initialize(IKI_READ_substitution_after_s, 0, IKI_READ_substitution_after_s_length); diff --git a/level_3/iki_read/c/common.h b/level_3/iki_read/c/common.h index 87c3732..3221d7c 100644 --- a/level_3/iki_read/c/common.h +++ b/level_3/iki_read/c/common.h @@ -19,7 +19,7 @@ extern "C" { /** * The program version. */ -#ifndef _di_iki_read_program_version_ +#ifndef _di_iki_read_program_version_s_ #define IKI_READ_program_version_major_s F_string_ascii_0_s #define IKI_READ_program_version_minor_s F_string_ascii_7_s #define IKI_READ_program_version_micro_s F_string_ascii_0_s @@ -43,12 +43,12 @@ extern "C" { #define IKI_READ_program_version_s_length IKI_READ_program_version_major_s_length + F_string_ascii_period_s_length + IKI_READ_program_version_minor_s_length + F_string_ascii_period_s_length + IKI_READ_program_version_micro_s_length + IKI_READ_program_version_nano_prefix_s_length + IKI_READ_program_version_nano_s_length extern const f_string_static_t iki_read_program_version_s; -#endif // _di_iki_read_program_version_ +#endif // _di_iki_read_program_version_s_ /** * The program name. */ -#ifndef _di_iki_read_program_name_ +#ifndef _di_iki_read_program_name_s_ #define IKI_READ_program_name_s "iki_read" #define IKI_READ_program_name_long_s "IKI Read" @@ -57,19 +57,19 @@ extern "C" { extern const f_string_static_t iki_read_program_name_s; extern const f_string_static_t iki_read_program_name_long_s; -#endif // _di_iki_read_program_name_ +#endif // _di_iki_read_program_name_s_ /** * The program defines. */ -#ifndef _di_iki_read_defines_ +#ifndef _di_iki_read_d_ #define iki_read_signal_check_d 20000 -#endif // _di_iki_read_defines_ +#endif // _di_iki_read_d_ /** * A collection of static strings associated with IKI Read. */ -#ifndef _di_iki_read_strings_ +#ifndef _di_iki_read_s_ #define IKI_READ_string_two_s "two" #define IKI_READ_string_three_s "three" @@ -78,12 +78,12 @@ extern "C" { extern const f_string_static_t iki_read_string_two_s; extern const f_string_static_t iki_read_string_three_s; -#endif // _di_iki_read_strings_ +#endif // _di_iki_read_s_ /** * The main program parameters. */ -#ifndef _di_iki_read_parameters_ +#ifndef _di_iki_read_parameter_d_ #define IKI_READ_short_at_s "a" #define IKI_READ_short_content_s "c" #define IKI_READ_short_line_s "l" @@ -188,7 +188,7 @@ extern "C" { iki_read_parameter_total_e, iki_read_parameter_whole_e, iki_read_parameter_wrap_e, - }; + }; // enum #define iki_read_console_parameter_t_initialize \ { \ @@ -220,7 +220,7 @@ extern "C" { } #define iki_read_total_parameters_d 24 -#endif // _di_iki_read_parameters_ +#endif // _di_iki_read_parameter_d_ #ifndef _di_iki_read_substitution_t_ #define IKI_READ_substitution_after_s "after" diff --git a/level_3/iki_write/c/common.c b/level_3/iki_write/c/common.c index f6454ec..6166cc4 100644 --- a/level_3/iki_write/c/common.c +++ b/level_3/iki_write/c/common.c @@ -4,20 +4,20 @@ extern "C" { #endif -#ifndef _di_iki_write_program_version_ +#ifndef _di_iki_write_program_version_s_ const f_string_static_t iki_write_program_version_s = macro_f_string_static_t_initialize(IKI_WRITE_program_version_s, 0, IKI_WRITE_program_version_s_length); -#endif // _di_iki_write_program_version_ +#endif // _di_iki_write_program_version_s_ -#ifndef _di_iki_write_program_name_ +#ifndef _di_iki_write_program_name_s_ const f_string_static_t iki_write_program_name_s = macro_f_string_static_t_initialize(IKI_WRITE_program_name_s, 0, IKI_WRITE_program_name_s_length); const f_string_static_t iki_write_program_name_long_s = macro_f_string_static_t_initialize(IKI_WRITE_program_name_long_s, 0, IKI_WRITE_program_name_long_s_length); -#endif // _di_iki_write_program_name_ +#endif // _di_iki_write_program_name_s_ -#ifndef _di_iki_write_strings_ +#ifndef _di_iki_write_s_ const f_string_static_t iki_write_object_s = macro_f_string_static_t_initialize(IKI_WRITE_object_s, 0, IKI_WRITE_object_s_length); -#endif // _di_iki_write_strings_ +#endif // _di_iki_write_s_ -#ifndef _di_iki_write_parameters_ +#ifndef _di_iki_write_parameter_d_ const f_string_static_t iki_write_short_backtick_s = macro_f_string_static_t_initialize(IKI_WRITE_short_backtick_s, 0, IKI_WRITE_short_backtick_s_length); const f_string_static_t iki_write_short_content_s = macro_f_string_static_t_initialize(IKI_WRITE_short_content_s, 0, IKI_WRITE_short_content_s_length); const f_string_static_t iki_write_short_double_s = macro_f_string_static_t_initialize(IKI_WRITE_short_double_s, 0, IKI_WRITE_short_double_s_length); @@ -31,7 +31,7 @@ extern "C" { const f_string_static_t iki_write_long_file_s = macro_f_string_static_t_initialize(IKI_WRITE_long_file_s, 0, IKI_WRITE_long_file_s_length); const f_string_static_t iki_write_long_object_s = macro_f_string_static_t_initialize(IKI_WRITE_long_object_s, 0, IKI_WRITE_long_object_s_length); const f_string_static_t iki_write_long_single_s = macro_f_string_static_t_initialize(IKI_WRITE_long_single_s, 0, IKI_WRITE_long_single_s_length); -#endif // _di_iki_write_parameters_ +#endif // _di_iki_write_parameter_d_ #ifndef _di_iki_write_setting_delete_ f_status_t iki_write_setting_delete(iki_write_setting_t * const setting) { diff --git a/level_3/iki_write/c/common.h b/level_3/iki_write/c/common.h index 0d63610..469c506 100644 --- a/level_3/iki_write/c/common.h +++ b/level_3/iki_write/c/common.h @@ -19,7 +19,7 @@ extern "C" { /** * The program version. */ -#ifndef _di_iki_write_program_version_ +#ifndef _di_iki_write_program_version_s_ #define IKI_WRITE_program_version_major_s F_string_ascii_0_s #define IKI_WRITE_program_version_minor_s F_string_ascii_7_s #define IKI_WRITE_program_version_micro_s F_string_ascii_0_s @@ -43,12 +43,12 @@ extern "C" { #define IKI_WRITE_program_version_s_length IKI_WRITE_program_version_major_s_length + F_string_ascii_period_s_length + IKI_WRITE_program_version_minor_s_length + F_string_ascii_period_s_length + IKI_WRITE_program_version_micro_s_length + IKI_WRITE_program_version_nano_prefix_s_length + IKI_WRITE_program_version_nano_s_length extern const f_string_static_t iki_write_program_version_s; -#endif // _di_iki_write_program_version_ +#endif // _di_iki_write_program_version_s_ /** * The program name. */ -#ifndef _di_iki_write_program_name_ +#ifndef _di_iki_write_program_name_s_ #define IKI_WRITE_program_name_s "iki_write" #define IKI_WRITE_program_name_long_s "IKI Write" @@ -57,30 +57,30 @@ extern "C" { extern const f_string_static_t iki_write_program_name_s; extern const f_string_static_t iki_write_program_name_long_s; -#endif // _di_iki_write_program_name_ +#endif // _di_iki_write_program_name_s_ + +/** + * The program defines. + */ +#ifndef _di_iki_write_d_ + #define iki_write_signal_check_d 20000 +#endif // _di_iki_write_d_ /** * Special strings used by this program. */ -#ifndef _di_iki_write_strings_ +#ifndef _di_iki_write_s_ #define IKI_WRITE_object_s "object" #define IKI_WRITE_object_s_length 6 extern const f_string_static_t iki_write_object_s; -#endif // _di_iki_write_strings_ - -/** - * The program defines. - */ -#ifndef _di_iki_write_defines_ - #define iki_write_signal_check_d 20000 -#endif // _di_iki_write_defines_ +#endif // _di_iki_write_s_ /** * The main program parameters. */ -#ifndef _di_iki_write_parameters_ +#ifndef _di_iki_write_parameter_d_ #define IKI_WRITE_short_backtick_s "b" #define IKI_WRITE_short_content_s "c" #define IKI_WRITE_short_double_s "d" @@ -143,7 +143,7 @@ extern "C" { iki_write_parameter_file_e, iki_write_parameter_object_e, iki_write_parameter_single_e, - }; + }; // enum #define iki_write_console_parameter_t_initialize \ { \ @@ -169,7 +169,7 @@ extern "C" { } #define iki_write_total_parameters_d 18 -#endif // _di_iki_write_parameters_ +#endif // _di_iki_write_parameter_d_ /** * Flags used to represent flags passed to the main function. diff --git a/level_3/status_code/c/common.c b/level_3/status_code/c/common.c index 1d23a13..74e27d7 100644 --- a/level_3/status_code/c/common.c +++ b/level_3/status_code/c/common.c @@ -4,20 +4,20 @@ extern "C" { #endif -#ifndef _di_status_code_program_version_ +#ifndef _di_status_code_program_version_s_ const f_string_static_t status_code_program_version_s = macro_f_string_static_t_initialize(STATUS_CODE_program_version_s, 0, STATUS_CODE_program_version_s_length); -#endif // _di_status_code_program_version_ +#endif // _di_status_code_program_version_s_ -#ifndef _di_status_code_program_name_ +#ifndef _di_status_code_program_name_s_ const f_string_static_t status_code_program_name_s = macro_f_string_static_t_initialize(STATUS_CODE_program_name_s, 0, STATUS_CODE_program_name_s_length); const f_string_static_t status_code_program_name_long_s = macro_f_string_static_t_initialize(STATUS_CODE_program_name_long_s, 0, STATUS_CODE_program_name_long_s_length); -#endif // _di_status_code_program_name_ +#endif // _di_status_code_program_name_s_ -#ifndef _di_status_code_program_help_parameters_ +#ifndef _di_status_code_program_help_parameters_s_ const f_string_static_t status_code_program_help_parameters_s = macro_f_string_static_t_initialize(STATUS_CODE_program_help_parameters_s, 0, STATUS_CODE_program_help_parameters_s_length); -#endif // _di_status_code_program_help_parameters_ +#endif // _di_status_code_program_help_parameters_s_ -#ifndef _di_status_code_strings_ +#ifndef _di_status_code_s_ const f_string_static_t status_code_failed_to_convert_s = macro_f_string_static_t_initialize(STATUS_CODE_failed_to_convert_s, 0, STATUS_CODE_failed_to_convert_s_length); const f_string_static_t status_code_invalid_number_s = macro_f_string_static_t_initialize(STATUS_CODE_invalid_number_s, 0, STATUS_CODE_invalid_number_s_length); const f_string_static_t status_code_invalid_name_s = macro_f_string_static_t_initialize(STATUS_CODE_invalid_number_s, 0, STATUS_CODE_invalid_number_s_length); @@ -25,9 +25,9 @@ extern "C" { const f_string_static_t status_code_out_of_range_s = macro_f_string_static_t_initialize(STATUS_CODE_out_of_range_s, 0, STATUS_CODE_out_of_range_s_length); const f_string_static_t status_code_unknown_code_s = macro_f_string_static_t_initialize(STATUS_CODE_unknown_code_s, 0, STATUS_CODE_unknown_code_s_length); const f_string_static_t status_code_unknown_name_s = macro_f_string_static_t_initialize(STATUS_CODE_unknown_name_s, 0, STATUS_CODE_unknown_name_s_length); -#endif // _di_status_code_strings_ +#endif // _di_status_code_s_ -#ifndef _di_status_code_parameters_ +#ifndef _di_status_code_parameter_d_ const f_string_static_t status_code_short_fine_s = macro_f_string_static_t_initialize(STATUS_CODE_short_fine_s, 0, STATUS_CODE_short_fine_s_length); const f_string_static_t status_code_short_warning_s = macro_f_string_static_t_initialize(STATUS_CODE_short_warning_s, 0, STATUS_CODE_short_warning_s_length); const f_string_static_t status_code_short_error_s = macro_f_string_static_t_initialize(STATUS_CODE_short_error_s, 0, STATUS_CODE_short_error_s_length); @@ -37,7 +37,7 @@ extern "C" { const f_string_static_t status_code_long_warning_s = macro_f_string_static_t_initialize(STATUS_CODE_long_warning_s, 0, STATUS_CODE_long_warning_s_length); const f_string_static_t status_code_long_error_s = macro_f_string_static_t_initialize(STATUS_CODE_long_error_s, 0, STATUS_CODE_long_error_s_length); const f_string_static_t status_code_long_number_s = macro_f_string_static_t_initialize(STATUS_CODE_long_number_s, 0, STATUS_CODE_long_number_s_length); -#endif // _di_status_code_parameters_ +#endif // _di_status_code_parameter_d_ #ifndef _di_status_code_setting_delete_ f_status_t status_code_setting_delete(status_code_setting_t * const setting) { diff --git a/level_3/status_code/c/common.h b/level_3/status_code/c/common.h index 4f2c414..15f310f 100644 --- a/level_3/status_code/c/common.h +++ b/level_3/status_code/c/common.h @@ -19,7 +19,7 @@ extern "C" { /** * The program version. */ -#ifndef _di_status_code_program_version_ +#ifndef _di_status_code_program_version_s_ #define STATUS_CODE_program_version_major_s F_string_ascii_0_s #define STATUS_CODE_program_version_minor_s F_string_ascii_7_s #define STATUS_CODE_program_version_micro_s F_string_ascii_0_s @@ -43,12 +43,12 @@ extern "C" { #define STATUS_CODE_program_version_s_length STATUS_CODE_program_version_major_s_length + F_string_ascii_period_s_length + STATUS_CODE_program_version_minor_s_length + F_string_ascii_period_s_length + STATUS_CODE_program_version_micro_s_length + STATUS_CODE_program_version_nano_prefix_s_length + STATUS_CODE_program_version_nano_s_length extern const f_string_static_t status_code_program_version_s; -#endif // _di_status_code_program_version_ +#endif // _di_status_code_program_version_s_ /** * The program name. */ -#ifndef _di_status_code_program_name_ +#ifndef _di_status_code_program_name_s_ #ifdef _status_code_as_fss_status_code #define STATUS_CODE_program_name_s "fss_status_code" #define STATUS_CODE_program_name_long_s "FSS Status Code" @@ -65,22 +65,29 @@ extern "C" { extern const f_string_static_t status_code_program_name_s; extern const f_string_static_t status_code_program_name_long_s; -#endif // _di_status_code_program_name_ +#endif // _di_status_code_program_name_s_ /** * The program help related data. */ -#ifndef _di_status_code_program_help_parameters_ +#ifndef _di_status_code_program_help_parameters_s_ #define STATUS_CODE_program_help_parameters_s "status code(s)" #define STATUS_CODE_program_help_parameters_s_length 14 extern const f_string_static_t status_code_program_help_parameters_s; -#endif // _di_status_code_program_help_parameters_ +#endif // _di_status_code_program_help_parameters_s_ + +/** + * The program defines. + */ +#ifndef _di_status_code_d_ + #define status_code_signal_check_d 20000 +#endif // _di_status_code_d_ /** * Special strings used by this program. */ -#ifndef _di_status_code_strings_ +#ifndef _di_status_code_s_ #define STATUS_CODE_failed_to_convert_s "failed to convert" #define STATUS_CODE_invalid_number_s "invalid number" #define STATUS_CODE_invalid_name_s "invalid name" @@ -104,19 +111,12 @@ extern "C" { extern const f_string_static_t status_code_out_of_range_s; extern const f_string_static_t status_code_unknown_code_s; extern const f_string_static_t status_code_unknown_name_s; -#endif // _di_status_code_strings_ - -/** - * The program defines. - */ -#ifndef _di_status_code_defines_ - #define status_code_signal_check_d 20000 -#endif // _di_status_code_defines_ +#endif // _di_status_code_s_ /** * The main program parameters. */ -#ifndef _di_status_code_parameters_ +#ifndef _di_status_code_parameter_d_ #define STATUS_CODE_short_fine_s "f" #define STATUS_CODE_short_warning_s "w" #define STATUS_CODE_short_error_s "e" @@ -165,7 +165,7 @@ extern "C" { status_code_parameter_warning_e, status_code_parameter_error_e, status_code_parameter_number_e, - }; + }; // enum #define status_code_console_parameter_t_initialize \ { \ @@ -189,7 +189,7 @@ extern "C" { } #define status_code_total_parameters_d 16 -#endif // _di_status_code_parameters_ +#endif // _di_status_code_parameter_d_ /** * Flags used to represent flags passed to the main function. diff --git a/level_3/status_code/c/main-fss_status_code.c b/level_3/status_code/c/main-fss_status_code.c index 8643661..afdfd5f 100644 --- a/level_3/status_code/c/main-fss_status_code.c +++ b/level_3/status_code/c/main-fss_status_code.c @@ -3,10 +3,10 @@ // FLL-2 includes. #include -#ifndef _di_status_code_program_name_ +#ifndef _di_status_code_program_name_s_ const f_string_static_t status_code_program_name_s = macro_f_string_static_t_initialize(STATUS_CODE_program_name_s, 0, STATUS_CODE_program_name_s_length); const f_string_static_t status_code_program_name_long_s = macro_f_string_static_t_initialize(STATUS_CODE_program_name_long_s, 0, STATUS_CODE_program_name_long_s_length); -#endif // _di_status_code_program_name_ +#endif // _di_status_code_program_name_s_ int main(const int argc, const f_string_t *argv, const f_string_t *envp) { diff --git a/level_3/utf8/c/common.c b/level_3/utf8/c/common.c index 4ee5260..d473d96 100644 --- a/level_3/utf8/c/common.c +++ b/level_3/utf8/c/common.c @@ -4,20 +4,20 @@ extern "C" { #endif -#ifndef _di_utf8_program_version_ +#ifndef _di_utf8_program_version_s_ const f_string_static_t utf8_program_version_s = macro_f_string_static_t_initialize(UTF8_program_version_s, 0, UTF8_program_version_s_length); -#endif // _di_utf8_program_version_ +#endif // _di_utf8_program_version_s_ -#ifndef _di_utf8_program_name_ +#ifndef _di_utf8_program_name_s_ const f_string_static_t utf8_program_name_s = macro_f_string_static_t_initialize(UTF8_program_name_s, 0, UTF8_program_name_s_length); const f_string_static_t utf8_program_name_long_s = macro_f_string_static_t_initialize(UTF8_program_name_long_s, 0, UTF8_program_name_long_s_length); -#endif // _di_utf8_program_name_ +#endif // _di_utf8_program_name_s_ -#ifndef _di_utf8_program_help_parameters_ +#ifndef _di_utf8_program_help_parameters_s_ const f_string_static_t utf8_program_help_parameters_s = macro_f_string_static_t_initialize(UTF8_program_help_parameters_s, 0, UTF8_program_help_parameters_s_length); -#endif // _di_utf8_program_help_parameters_ +#endif // _di_utf8_program_help_parameters_s_ -#ifndef _di_utf8_defines_ +#ifndef _di_utf8_s_ const f_string_static_t utf8_string_combining_is_s = macro_f_string_static_t_initialize(UTF8_string_combining_is_s, 0, UTF8_string_combining_is_s_length); const f_string_static_t utf8_string_combining_not_s = macro_f_string_static_t_initialize(UTF8_string_combining_not_s, 0, UTF8_string_combining_not_s_length); const f_string_static_t utf8_string_unknown_s = macro_f_string_static_t_initialize(UTF8_string_unknown_s, 0, UTF8_string_unknown_s_length); @@ -37,9 +37,9 @@ extern "C" { const f_string_static_t utf8_string_width_2_s = macro_f_string_static_t_initialize(UTF8_string_width_2_s, 0, UTF8_string_width_2_s_length); const f_string_static_t utf8_string_width_3_s = macro_f_string_static_t_initialize(UTF8_string_width_3_s, 0, UTF8_string_width_3_s_length); const f_string_static_t utf8_string_width_4_s = macro_f_string_static_t_initialize(UTF8_string_width_4_s, 0, UTF8_string_width_4_s_length); -#endif // _di_utf8_defines_ +#endif // _di_utf8_s_ -#ifndef _di_utf8_parameters_ +#ifndef _di_utf8_parameter_d_ const f_string_static_t utf8_short_from_bytesequence_s = macro_f_string_static_t_initialize(UTF8_short_from_bytesequence_s, 0, UTF8_short_from_bytesequence_s_length); const f_string_static_t utf8_short_from_codepoint_s = macro_f_string_static_t_initialize(UTF8_short_from_codepoint_s, 0, UTF8_short_from_codepoint_s_length); const f_string_static_t utf8_short_from_file_s = macro_f_string_static_t_initialize(UTF8_short_from_file_s, 0, UTF8_short_from_file_s_length); @@ -69,7 +69,7 @@ extern "C" { const f_string_static_t utf8_long_to_combining_s = macro_f_string_static_t_initialize(UTF8_long_to_combining_s, 0, UTF8_long_to_combining_s_length); const f_string_static_t utf8_long_to_file_s = macro_f_string_static_t_initialize(UTF8_long_to_file_s, 0, UTF8_long_to_file_s_length); const f_string_static_t utf8_long_to_width_s = macro_f_string_static_t_initialize(UTF8_long_to_width_s, 0, UTF8_long_to_width_s_length); -#endif // _di_utf8_parameters_ +#endif // _di_utf8_parameter_d_ #ifndef _di_utf8_setting_delete_ f_status_t utf8_setting_delete(utf8_setting_t * const setting) { diff --git a/level_3/utf8/c/common.h b/level_3/utf8/c/common.h index a0d6e83..722b1b1 100644 --- a/level_3/utf8/c/common.h +++ b/level_3/utf8/c/common.h @@ -19,7 +19,7 @@ extern "C" { /** * The program version. */ -#ifndef _di_utf8_program_version_ +#ifndef _di_utf8_program_version_s_ #define UTF8_program_version_major_s F_string_ascii_0_s #define UTF8_program_version_minor_s F_string_ascii_7_s #define UTF8_program_version_micro_s F_string_ascii_0_s @@ -43,12 +43,12 @@ extern "C" { #define UTF8_program_version_s_length UTF8_program_version_major_s_length + F_string_ascii_period_s_length + UTF8_program_version_minor_s_length + F_string_ascii_period_s_length + UTF8_program_version_micro_s_length + UTF8_program_version_nano_prefix_s_length + UTF8_program_version_nano_s_length extern const f_string_static_t utf8_program_version_s; -#endif // _di_utf8_program_version_ +#endif // _di_utf8_program_version_s_ /** * The program name. */ -#ifndef _di_utf8_program_name_ +#ifndef _di_utf8_program_name_s_ #define UTF8_program_name_s "utf8" #define UTF8_program_name_long_s "UTF-8" @@ -57,31 +57,36 @@ extern "C" { extern const f_string_static_t utf8_program_name_s; extern const f_string_static_t utf8_program_name_long_s; -#endif // _di_utf8_program_name_ +#endif // _di_utf8_program_name_s_ /** * The program help related data. */ -#ifndef _di_utf8_program_help_parameters_ +#ifndef _di_utf8_program_help_parameters_s_ #define UTF8_program_help_parameters_s "character(s)" #define UTF8_program_help_parameters_s_length 12 extern const f_string_static_t utf8_program_help_parameters_s; -#endif // _di_utf8_program_help_parameters_ +#endif // _di_utf8_program_help_parameters_s_ /** * Set to at least 4 to provide a UTF-8 friendly allocation step. */ -#ifndef _di_utf8_default_allocation_step_ +#ifndef _di_utf8_default_d_ #define utf8_default_allocation_step_d 16 -#endif // _di_utf8_default_allocation_step_ +#endif // _di_utf8_default_d_ /** * The program defines. */ -#ifndef _di_utf8_defines_ +#ifndef _di_utf8_d_ #define utf8_signal_check_d 20000 +#endif // _di_utf8_d_ +/** + * The program strings. + */ +#ifndef _di_utf8_s_ #define UTF8_string_combining_is_s "C" #define UTF8_string_combining_not_s "N" #define UTF8_string_unknown_s "?" @@ -141,12 +146,12 @@ extern "C" { extern const f_string_static_t utf8_string_width_4_s; extern const f_string_static_t utf8_string_valid_not_s; -#endif // _di_utf8_defines_ +#endif // _di_utf8_s_ /** * The main program parameters. */ -#ifndef _di_utf8_parameters_ +#ifndef _di_utf8_parameter_d_ #define UTF8_short_from_bytesequence_s "b" #define UTF8_short_from_codepoint_s "c" #define UTF8_short_from_file_s "f" @@ -266,7 +271,7 @@ extern "C" { utf8_parameter_to_width_e, utf8_parameter_verify_e, - }; + }; // enum #define utf8_console_parameter_t_initialize \ { \ @@ -298,7 +303,7 @@ extern "C" { } #define utf8_total_parameters_d 24 -#endif // _di_utf8_parameters_ +#endif // _di_utf8_parameter_d_ /** * Modes used to designate how to the input and output are to be processed. @@ -325,7 +330,7 @@ extern "C" { utf8_mode_to_codepoint_e = 0x8, utf8_mode_to_combining_e = 0x10, utf8_mode_to_width_e = 0x20, - }; + }; // enum #endif // _di_utf8_modes_e_ /** @@ -355,7 +360,7 @@ extern "C" { utf8_main_flag_strip_invalid_e = 0x40, utf8_main_flag_verify_e = 0x80, utf8_main_flag_version_e = 0x100, - }; + }; // enum #endif // _di_utf8_main_flag_e_ /** -- 1.8.3.1