From: Kevin Day Date: Fri, 9 Dec 2022 04:20:01 +0000 (-0600) Subject: Update: The status code wrapping global constant string wrapping defines should end... X-Git-Tag: 0.6.2~33 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=f812e87a0c6b835a232ff773b058b860a4e5c651;p=fll Update: The status code wrapping global constant string wrapping defines should end in _s. --- diff --git a/level_0/f_status_string/c/status_string.c b/level_0/f_status_string/c/status_string.c index 3d7098d..3eb9ef8 100644 --- a/level_0/f_status_string/c/status_string.c +++ b/level_0/f_status_string/c/status_string.c @@ -4,13 +4,13 @@ extern "C" { #endif -#ifndef _di_f_status_string_ - #ifndef _di_f_status_boolean_ +#ifndef _di_f_status_string_s_ + #ifndef _di_f_status_boolean_s_ const f_string_static_t f_status_false_s = macro_f_string_static_t_initialize(F_status_false_s, 0, F_status_false_s_length); const f_string_static_t f_status_true_s = macro_f_string_static_t_initialize(F_status_true_s, 0, F_status_true_s_length); - #endif // _di_f_status_boolean_ + #endif // _di_f_status_boolean_s_ - #ifndef _di_f_status_signal_ + #ifndef _di_f_status_signal_s_ const f_string_static_t f_status_signal_hangup_s = macro_f_string_static_t_initialize(F_status_signal_hangup_s, 0, F_status_signal_hangup_s_length); const f_string_static_t f_status_signal_interrupt_s = macro_f_string_static_t_initialize(F_status_signal_interrupt_s, 0, F_status_signal_interrupt_s_length); const f_string_static_t f_status_signal_quit_s = macro_f_string_static_t_initialize(F_status_signal_quit_s, 0, F_status_signal_quit_s_length); @@ -75,9 +75,9 @@ extern "C" { const f_string_static_t f_status_signal_reserved_62_s = macro_f_string_static_t_initialize(F_status_signal_reserved_62_s, 0, F_status_signal_reserved_62_s_length); const f_string_static_t f_status_signal_reserved_63_s = macro_f_string_static_t_initialize(F_status_signal_reserved_63_s, 0, F_status_signal_reserved_63_s_length); const f_string_static_t f_status_signal_reserved_64_s = macro_f_string_static_t_initialize(F_status_signal_reserved_64_s, 0, F_status_signal_reserved_64_s_length); - #endif // _di_f_status_signal_ + #endif // _di_f_status_signal_s_ - #ifndef _di_f_status_basic_ + #ifndef _di_f_status_basic_s_ const f_string_static_t f_status_none_s = macro_f_string_static_t_initialize(F_status_none_s, 0, F_status_none_s_length); const f_string_static_t f_status_abort_s = macro_f_string_static_t_initialize(F_status_abort_s, 0, F_status_abort_s_length); const f_string_static_t f_status_abort_not_s = macro_f_string_static_t_initialize(F_status_abort_not_s, 0, F_status_abort_not_s_length); @@ -371,9 +371,9 @@ extern "C" { const f_string_static_t f_status_write_only_s = macro_f_string_static_t_initialize(F_status_write_only_s, 0, F_status_write_only_s_length); const f_string_static_t f_status_yes_s = macro_f_string_static_t_initialize(F_status_yes_s, 0, F_status_yes_s_length); const f_string_static_t f_status_yes_not_s = macro_f_string_static_t_initialize(F_status_yes_not_s, 0, F_status_yes_not_s_length); - #endif // _di_f_status_basic_ + #endif // _di_f_status_basic_s_ - #ifndef _di_f_status_return_ + #ifndef _di_f_status_return_s_ const f_string_static_t f_status_debug_s = macro_f_string_static_t_initialize(F_status_debug_s, 0, F_status_debug_s_length); const f_string_static_t f_status_debug_not_s = macro_f_string_static_t_initialize(F_status_debug_not_s, 0, F_status_debug_not_s_length); const f_string_static_t f_status_error_s = macro_f_string_static_t_initialize(F_status_error_s, 0, F_status_error_s_length); @@ -382,16 +382,16 @@ extern "C" { const f_string_static_t f_status_fine_not_s = macro_f_string_static_t_initialize(F_status_fine_not_s, 0, F_status_fine_not_s_length); const f_string_static_t f_status_warning_s = macro_f_string_static_t_initialize(F_status_warning_s, 0, F_status_warning_s_length); const f_string_static_t f_status_warning_not_s = macro_f_string_static_t_initialize(F_status_warning_not_s, 0, F_status_warning_not_s_length); - #endif // _di_f_status_return_ + #endif // _di_f_status_return_s_ - #ifndef _di_f_status_array_ + #ifndef _di_f_status_array_s_ const f_string_static_t f_status_array_s = macro_f_string_static_t_initialize(F_status_array_s, 0, F_status_array_s_length); const f_string_static_t f_status_array_not_s = macro_f_string_static_t_initialize(F_status_array_not_s, 0, F_status_array_not_s_length); const f_string_static_t f_status_array_too_large_s = macro_f_string_static_t_initialize(F_status_array_too_large_s, 0, F_status_array_too_large_s_length); const f_string_static_t f_status_array_too_small_s = macro_f_string_static_t_initialize(F_status_array_too_small_s, 0, F_status_array_too_small_s_length); - #endif // _di_f_status_array_ + #endif // _di_f_status_array_s_ - #ifndef _di_f_status_available_ + #ifndef _di_f_status_available_s_ const f_string_static_t f_status_available_s = macro_f_string_static_t_initialize(F_status_available_s, 0, F_status_available_s_length); const f_string_static_t f_status_available_not_s = macro_f_string_static_t_initialize(F_status_available_not_s, 0, F_status_available_not_s_length); const f_string_static_t f_status_available_not_address_s = macro_f_string_static_t_initialize(F_status_available_not_address_s, 0, F_status_available_not_address_s_length); @@ -401,9 +401,9 @@ extern "C" { const f_string_static_t f_status_available_not_port_s = macro_f_string_static_t_initialize(F_status_available_not_port_s, 0, F_status_available_not_port_s_length); const f_string_static_t f_status_available_not_process_s = macro_f_string_static_t_initialize(F_status_available_not_process_s, 0, F_status_available_not_process_s_length); const f_string_static_t f_status_available_not_socket_s = macro_f_string_static_t_initialize(F_status_available_not_socket_s, 0, F_status_available_not_socket_s_length); - #endif // _di_f_status_available_ + #endif // _di_f_status_available_s_ - #ifndef _di_f_status_busy_ + #ifndef _di_f_status_busy_s_ const f_string_static_t f_status_busy_s = macro_f_string_static_t_initialize(F_status_busy_s, 0, F_status_busy_s_length); const f_string_static_t f_status_busy_address_s = macro_f_string_static_t_initialize(F_status_busy_address_s, 0, F_status_busy_address_s_length); const f_string_static_t f_status_busy_buffer_s = macro_f_string_static_t_initialize(F_status_busy_buffer_s, 0, F_status_busy_buffer_s_length); @@ -413,9 +413,9 @@ extern "C" { const f_string_static_t f_status_busy_port_s = macro_f_string_static_t_initialize(F_status_busy_port_s, 0, F_status_busy_port_s_length); const f_string_static_t f_status_busy_process_s = macro_f_string_static_t_initialize(F_status_busy_process_s, 0, F_status_busy_process_s_length); const f_string_static_t f_status_busy_socket_s = macro_f_string_static_t_initialize(F_status_busy_socket_s, 0, F_status_busy_socket_s_length); - #endif // _di_f_status_busy_ + #endif // _di_f_status_busy_s_ - #ifndef _di_f_status_network_ + #ifndef _di_f_status_network_s_ const f_string_static_t f_status_network_s = macro_f_string_static_t_initialize(F_status_network_s, 0, F_status_network_s_length); const f_string_static_t f_status_network_busy_s = macro_f_string_static_t_initialize(F_status_network_busy_s, 0, F_status_network_busy_s_length); const f_string_static_t f_status_network_busy_not_s = macro_f_string_static_t_initialize(F_status_network_busy_not_s, 0, F_status_network_busy_not_s_length); @@ -438,9 +438,9 @@ extern "C" { const f_string_static_t f_status_network_server_not_s = macro_f_string_static_t_initialize(F_status_network_server_not_s, 0, F_status_network_server_not_s_length); const f_string_static_t f_status_network_time_s = macro_f_string_static_t_initialize(F_status_network_time_s, 0, F_status_network_time_s_length); const f_string_static_t f_status_network_time_not_s = macro_f_string_static_t_initialize(F_status_network_time_not_s, 0, F_status_network_time_not_s_length); - #endif // _di_f_status_network_ + #endif // _di_f_status_network_s_ - #ifndef _di_f_status_number_ + #ifndef _di_f_status_number_s_ const f_string_static_t f_status_number_s = macro_f_string_static_t_initialize(F_status_number_s, 0, F_status_number_s_length); const f_string_static_t f_status_number_decimal_s = macro_f_string_static_t_initialize(F_status_number_decimal_s, 0, F_status_number_decimal_s_length); const f_string_static_t f_status_number_decimal_not_s = macro_f_string_static_t_initialize(F_status_number_decimal_not_s, 0, F_status_number_decimal_not_s_length); @@ -458,9 +458,9 @@ extern "C" { const f_string_static_t f_status_number_whole_not_s = macro_f_string_static_t_initialize(F_status_number_whole_not_s, 0, F_status_number_whole_not_s_length); const f_string_static_t f_status_number_zero_s = macro_f_string_static_t_initialize(F_status_number_zero_s, 0, F_status_number_zero_s_length); const f_string_static_t f_status_number_zero_not_s = macro_f_string_static_t_initialize(F_status_number_zero_not_s, 0, F_status_number_zero_not_s_length); - #endif // _di_f_status_number_ + #endif // _di_f_status_number_s_ - #ifndef _di_f_status_buffer_ + #ifndef _di_f_status_buffer_s_ const f_string_static_t f_status_buffer_s = macro_f_string_static_t_initialize(F_status_buffer_s, 0, F_status_buffer_s_length); const f_string_static_t f_status_buffer_not_s = macro_f_string_static_t_initialize(F_status_buffer_not_s, 0, F_status_buffer_not_s_length); const f_string_static_t f_status_buffer_overflow_s = macro_f_string_static_t_initialize(F_status_buffer_overflow_s, 0, F_status_buffer_overflow_s_length); @@ -492,9 +492,9 @@ extern "C" { const f_string_static_t f_status_data_not_eos_s = macro_f_string_static_t_initialize(F_status_data_not_eos_s, 0, F_status_data_not_eos_s_length); const f_string_static_t f_status_data_not_start_s = macro_f_string_static_t_initialize(F_status_data_not_start_s, 0, F_status_data_not_start_s_length); const f_string_static_t f_status_data_not_stop_s = macro_f_string_static_t_initialize(F_status_data_not_stop_s, 0, F_status_data_not_stop_s_length); - #endif // _di_f_status_buffer_ + #endif // _di_f_status_buffer_s_ - #ifndef _di_f_status_end_ + #ifndef _di_f_status_end_s_ const f_string_static_t f_status_end_s = macro_f_string_static_t_initialize(F_status_end_s, 0, F_status_end_s_length); const f_string_static_t f_status_end_not_s = macro_f_string_static_t_initialize(F_status_end_not_s, 0, F_status_end_not_s_length); const f_string_static_t f_status_end_not_block_s = macro_f_string_static_t_initialize(F_status_end_not_block_s, 0, F_status_end_not_block_s_length); @@ -520,15 +520,15 @@ extern "C" { const f_string_static_t f_status_end_not_nest_eos_s = macro_f_string_static_t_initialize(F_status_end_not_nest_eos_s, 0, F_status_end_not_nest_eos_s_length); const f_string_static_t f_status_end_not_nest_start_s = macro_f_string_static_t_initialize(F_status_end_not_nest_start_s, 0, F_status_end_not_nest_start_s_length); const f_string_static_t f_status_end_not_nest_stop_s = macro_f_string_static_t_initialize(F_status_end_not_nest_stop_s, 0, F_status_end_not_nest_stop_s_length); - #endif // _di_f_status_end_ + #endif // _di_f_status_end_s_ - #ifndef _di_f_status_process_ + #ifndef _di_f_status_process_s_ const f_string_static_t f_status_process_s = macro_f_string_static_t_initialize(F_status_process_s, 0, F_status_process_s_length); const f_string_static_t f_status_process_not_s = macro_f_string_static_t_initialize(F_status_process_not_s, 0, F_status_process_not_s_length); const f_string_static_t f_status_process_too_many_s = macro_f_string_static_t_initialize(F_status_process_too_many_s, 0, F_status_process_too_many_s_length); - #endif // _di_f_status_process_ + #endif // _di_f_status_process_s_ - #ifndef _di_f_status_file_ + #ifndef _di_f_status_file_s_ const f_string_static_t f_status_file_s = macro_f_string_static_t_initialize(F_status_file_s, 0, F_status_file_s_length); const f_string_static_t f_status_file_close_s = macro_f_string_static_t_initialize(F_status_file_close_s, 0, F_status_file_close_s_length); const f_string_static_t f_status_file_closed_s = macro_f_string_static_t_initialize(F_status_file_closed_s, 0, F_status_file_closed_s_length); @@ -572,16 +572,16 @@ extern "C" { const f_string_static_t f_status_file_utf_s = macro_f_string_static_t_initialize(F_status_file_utf_s, 0, F_status_file_utf_s_length); const f_string_static_t f_status_file_utf_not_s = macro_f_string_static_t_initialize(F_status_file_utf_not_s, 0, F_status_file_utf_not_s_length); const f_string_static_t f_status_file_write_s = macro_f_string_static_t_initialize(F_status_file_write_s, 0, F_status_file_write_s_length); - #endif // _di_f_status_file_ + #endif // _di_f_status_file_s_ - #ifndef _di_f_status_filesystem_ + #ifndef _di_f_status_filesystem_s_ const f_string_static_t f_status_filesystem_s = macro_f_string_static_t_initialize(F_status_filesystem_s, 0, F_status_filesystem_s_length); const f_string_static_t f_status_filesystem_not_s = macro_f_string_static_t_initialize(F_status_filesystem_not_s, 0, F_status_filesystem_not_s_length); const f_string_static_t f_status_filesystem_quota_block_s = macro_f_string_static_t_initialize(F_status_filesystem_quota_block_s, 0, F_status_filesystem_quota_block_s_length); const f_string_static_t f_status_filesystem_quota_reached_s = macro_f_string_static_t_initialize(F_status_filesystem_quota_reached_s, 0, F_status_filesystem_quota_reached_s_length); - #endif // _di_f_status_filesystem_ + #endif // _di_f_status_filesystem_s_ - #ifndef _di_f_status_directory_ + #ifndef _di_f_status_directory_s_ const f_string_static_t f_status_directory_s = macro_f_string_static_t_initialize(F_status_directory_s, 0, F_status_directory_s_length); const f_string_static_t f_status_directory_close_s = macro_f_string_static_t_initialize(F_status_directory_close_s, 0, F_status_directory_close_s_length); const f_string_static_t f_status_directory_closed_s = macro_f_string_static_t_initialize(F_status_directory_closed_s, 0, F_status_directory_closed_s_length); @@ -602,25 +602,25 @@ extern "C" { const f_string_static_t f_status_directory_utf_s = macro_f_string_static_t_initialize(F_status_directory_utf_s, 0, F_status_directory_utf_s_length); const f_string_static_t f_status_directory_utf_not_s = macro_f_string_static_t_initialize(F_status_directory_utf_not_s, 0, F_status_directory_utf_not_s_length); const f_string_static_t f_status_directory_write_s = macro_f_string_static_t_initialize(F_status_directory_write_s, 0, F_status_directory_write_s_length); - #endif // _di_f_status_directory_ + #endif // _di_f_status_directory_s_ - #ifndef _di_f_status_socket_ + #ifndef _di_f_status_socket_s_ const f_string_static_t f_status_socket_s = macro_f_string_static_t_initialize(F_status_socket_s, 0, F_status_socket_s_length); const f_string_static_t f_status_socket_client_s = macro_f_string_static_t_initialize(F_status_socket_client_s, 0, F_status_socket_client_s_length); const f_string_static_t f_status_socket_not_s = macro_f_string_static_t_initialize(F_status_socket_not_s, 0, F_status_socket_not_s_length); const f_string_static_t f_status_socket_receive_s = macro_f_string_static_t_initialize(F_status_socket_receive_s, 0, F_status_socket_receive_s_length); const f_string_static_t f_status_socket_send_s = macro_f_string_static_t_initialize(F_status_socket_send_s, 0, F_status_socket_send_s_length); const f_string_static_t f_status_socket_target_s = macro_f_string_static_t_initialize(F_status_socket_target_s, 0, F_status_socket_target_s_length); - #endif // _di_f_status_socket_ + #endif // _di_f_status_socket_s_ - #ifndef _di_f_status_compare_ + #ifndef _di_f_status_compare_s_ const f_string_static_t f_status_equal_to_s = macro_f_string_static_t_initialize(F_status_equal_to_s, 0, F_status_equal_to_s_length); const f_string_static_t f_status_equal_to_not_s = macro_f_string_static_t_initialize(F_status_equal_to_not_s, 0, F_status_equal_to_not_s_length); const f_string_static_t f_status_than_greater_s = macro_f_string_static_t_initialize(F_status_than_greater_s, 0, F_status_than_greater_s_length); const f_string_static_t f_status_than_less_s = macro_f_string_static_t_initialize(F_status_than_less_s, 0, F_status_than_less_s_length); - #endif // _di_f_status_compare_ + #endif // _di_f_status_compare_s_ - #ifndef _di_f_status_access_ + #ifndef _di_f_status_access_s_ const f_string_static_t f_status_access_s = macro_f_string_static_t_initialize(F_status_access_s, 0, F_status_access_s_length); const f_string_static_t f_status_access_denied_s = macro_f_string_static_t_initialize(F_status_access_denied_s, 0, F_status_access_denied_s_length); const f_string_static_t f_status_access_denied_user_s = macro_f_string_static_t_initialize(F_status_access_denied_user_s, 0, F_status_access_denied_user_s_length); @@ -642,9 +642,9 @@ extern "C" { const f_string_static_t f_status_access_mode_s = macro_f_string_static_t_initialize(F_status_access_mode_s, 0, F_status_access_mode_s_length); const f_string_static_t f_status_access_not_s = macro_f_string_static_t_initialize(F_status_access_not_s, 0, F_status_access_not_s_length); const f_string_static_t f_status_access_owner_s = macro_f_string_static_t_initialize(F_status_access_owner_s, 0, F_status_access_owner_s_length); - #endif // _di_f_status_access_ + #endif // _di_f_status_access_s_ - #ifndef _di_f_status_terminal_ + #ifndef _di_f_status_terminal_s_ const f_string_static_t f_status_terminal_s = macro_f_string_static_t_initialize(F_status_terminal_s, 0, F_status_terminal_s_length); const f_string_static_t f_status_terminal_access_s = macro_f_string_static_t_initialize(F_status_terminal_access_s, 0, F_status_terminal_access_s_length); const f_string_static_t f_status_terminal_known_s = macro_f_string_static_t_initialize(F_status_terminal_known_s, 0, F_status_terminal_known_s_length); @@ -655,10 +655,10 @@ extern "C" { const f_string_static_t f_status_terminal_valid_s = macro_f_string_static_t_initialize(F_status_terminal_valid_s, 0, F_status_terminal_valid_s_length); const f_string_static_t f_status_terminal_valid_not_s = macro_f_string_static_t_initialize(F_status_terminal_valid_not_s, 0, F_status_terminal_valid_not_s_length); const f_string_static_t f_status_terminal_write_s = macro_f_string_static_t_initialize(F_status_terminal_write_s, 0, F_status_terminal_write_s_length); - #endif // _di_f_status_terminal_ + #endif // _di_f_status_terminal_s_ const f_string_static_t f_status_status_code_last_s = macro_f_string_static_t_initialize(F_status_status_code_last_s, 0, F_status_status_code_last_s_length); -#endif // _di_f_status_string_ +#endif // _di_f_status_string_s_ #ifndef _di_f_status_string_to_ f_status_t f_status_string_to(const f_status_t code, f_string_static_t * const name) { @@ -667,7 +667,7 @@ extern "C" { #endif // _di_level_0_parameter_checking_ switch (F_status_set_fine(code)) { - #ifndef _di_f_status_boolean_ + #ifndef _di_f_status_boolean_s_ case F_false: *name = f_status_false_s; @@ -677,9 +677,9 @@ extern "C" { *name = f_status_true_s; break; - #endif // _di_f_status_boolean_ + #endif // _di_f_status_boolean_s_ - #ifndef _di_f_status_signal_ + #ifndef _di_f_status_signal_s_ // F_signal_hangup is not used because it has the same code as F_true. case F_signal_interrupt: @@ -996,9 +996,9 @@ extern "C" { *name = f_status_signal_reserved_64_s; break; - #endif // _di_f_status_signal_ + #endif // _di_f_status_signal_s_ - #ifndef _di_f_status_basic_ + #ifndef _di_f_status_basic_s_ case F_none: *name = f_status_none_s; @@ -2463,9 +2463,9 @@ extern "C" { *name = f_status_yes_not_s; break; - #endif // _di_f_status_basic_ + #endif // _di_f_status_basic_s_ - #ifndef _di_f_status_return_ + #ifndef _di_f_status_return_s_ case F_debug: *name = f_status_debug_s; @@ -2505,9 +2505,9 @@ extern "C" { *name = f_status_warning_not_s; break; - #endif // _di_f_status_return_ + #endif // _di_f_status_return_s_ - #ifndef _di_f_status_array_ + #ifndef _di_f_status_array_s_ case F_array: *name = f_status_array_s; @@ -2527,9 +2527,9 @@ extern "C" { *name = f_status_array_too_small_s; break; - #endif // _di_f_status_array_ + #endif // _di_f_status_array_s_ - #ifndef _di_f_status_available_ + #ifndef _di_f_status_available_s_ case F_available: *name = f_status_available_s; @@ -2574,9 +2574,9 @@ extern "C" { *name = f_status_available_not_socket_s; break; - #endif // _di_f_status_available_ + #endif // _di_f_status_available_s_ - #ifndef _di_f_status_busy_ + #ifndef _di_f_status_busy_s_ case F_busy: *name = f_status_busy_s; @@ -2621,9 +2621,9 @@ extern "C" { *name = f_status_busy_socket_s; break; - #endif // _di_f_status_busy_ + #endif // _di_f_status_busy_s_ - #ifndef _di_f_status_network_ + #ifndef _di_f_status_network_s_ case F_network: *name = f_status_network_s; @@ -2733,9 +2733,9 @@ extern "C" { *name = f_status_network_time_not_s; break; - #endif // _di_f_status_network_ + #endif // _di_f_status_network_s_ - #ifndef _di_f_status_number_ + #ifndef _di_f_status_number_s_ case F_number: *name = f_status_number_s; @@ -2820,9 +2820,9 @@ extern "C" { *name = f_status_number_zero_not_s; break; - #endif // _di_f_status_number_ + #endif // _di_f_status_number_s_ - #ifndef _di_f_status_buffers_ + #ifndef _di_f_status_buffers_s_ case F_buffer: *name = f_status_buffer_s; @@ -2972,9 +2972,9 @@ extern "C" { *name = f_status_data_not_stop_s; break; - #endif // _di_f_status_buffers_ + #endif // _di_f_status_buffers_s_ - #ifndef _di_f_status_end_ + #ifndef _di_f_status_end_s_ case F_end: *name = f_status_end_s; @@ -3099,9 +3099,9 @@ extern "C" { *name = f_status_end_not_stop_s; break; - #endif // _di_f_status_end_ + #endif // _di_f_status_end_s_ - #ifndef _di_f_status_process_ + #ifndef _di_f_status_process_s_ case F_process: *name = f_status_process_s; @@ -3116,9 +3116,9 @@ extern "C" { *name = f_status_process_too_many_s; break; - #endif // _di_f_status_process_ + #endif // _di_f_status_process_s_ - #ifndef _di_f_status_file_ + #ifndef _di_f_status_file_s_ case F_file: *name = f_status_file_s; @@ -3333,9 +3333,9 @@ extern "C" { *name = f_status_file_write_s; break; - #endif // _di_f_status_file_ + #endif // _di_f_status_file_s_ - #ifndef _di_f_status_filesystem_ + #ifndef _di_f_status_filesystem_s_ case F_filesystem: *name = f_status_filesystem_s; @@ -3355,9 +3355,9 @@ extern "C" { *name = f_status_filesystem_quota_reached_s; break; - #endif // _di_f_status_filesystem_ + #endif // _di_f_status_filesystem_s_ - #ifndef _di_f_status_directory_ + #ifndef _di_f_status_directory_s_ case F_directory: *name = f_status_directory_s; @@ -3457,9 +3457,9 @@ extern "C" { *name = f_status_directory_write_s; break; - #endif // _di_f_status_directory_ + #endif // _di_f_status_directory_s_ - #ifndef _di_f_status_socket_ + #ifndef _di_f_status_socket_s_ case F_socket: *name = f_status_socket_s; @@ -3489,9 +3489,9 @@ extern "C" { *name = f_status_socket_target_s; break; - #endif // _di_f_status_socket_ + #endif // _di_f_status_socket_s_ - #ifndef _di_f_error_compare_ + #ifndef _di_f_status_compare_s_ case F_equal_to: *name = f_status_equal_to_s; @@ -3511,9 +3511,9 @@ extern "C" { *name = f_status_than_less_s; break; - #endif // _di_f_status_compare_ + #endif // _di_f_status_compare_s_ - #ifndef _di_f_status_access_ + #ifndef _di_f_status_access_s_ case F_access: *name = f_status_access_s; @@ -3618,9 +3618,9 @@ extern "C" { *name = f_status_access_owner_s; break; - #endif // _di_f_status_access_ + #endif // _di_f_status_access_s_ - #ifndef _di_f_status_terminal_ + #ifndef _di_f_status_terminal_s_ case F_terminal: *name = f_status_terminal_s; @@ -3670,7 +3670,7 @@ extern "C" { *name = f_status_terminal_write_s; break; - #endif // _di_f_status_terminal_ + #endif // _di_f_status_terminal_s_ case F_status_code_last: *name = f_status_status_code_last_s; diff --git a/level_0/f_status_string/c/status_string.h b/level_0/f_status_string/c/status_string.h index bf649e7..a489b6e 100644 --- a/level_0/f_status_string/c/status_string.h +++ b/level_0/f_status_string/c/status_string.h @@ -21,8 +21,8 @@ extern "C" { #endif -#ifndef _di_f_status_string_ - #ifndef _di_f_status_boolean_ +#ifndef _di_f_status_string_s_ + #ifndef _di_f_status_boolean_s_ #define F_status_false_s "F_false" #define F_status_true_s "F_true" @@ -31,9 +31,9 @@ extern "C" { extern const f_string_static_t f_status_false_s; extern const f_string_static_t f_status_true_s; - #endif // _di_f_status_boolean_ + #endif // _di_f_status_boolean_s_ - #ifndef _di_f_status_signal_ + #ifndef _di_f_status_signal_s_ #define F_status_signal_hangup_s "F_signal_hangup" #define F_status_signal_interrupt_s "F_signal_interrupt" #define F_status_signal_quit_s "F_signal_quit" @@ -228,9 +228,9 @@ extern "C" { extern const f_string_static_t f_status_signal_reserved_62_s; extern const f_string_static_t f_status_signal_reserved_63_s; extern const f_string_static_t f_status_signal_reserved_64_s; - #endif // _di_f_status_signal_ + #endif // _di_f_status_signal_s_ - #ifndef _di_f_status_basic_ + #ifndef _di_f_status_basic_s_ #define F_status_none_s "F_none" #define F_status_abort_s "F_abort" #define F_status_abort_not_s "F_abort_not" @@ -1114,9 +1114,9 @@ extern "C" { extern const f_string_static_t f_status_write_only_s; extern const f_string_static_t f_status_yes_s; extern const f_string_static_t f_status_yes_not_s; - #endif // _di_f_status_basic_ + #endif // _di_f_status_basic_s_ - #ifndef _di_f_status_return_ + #ifndef _di_f_status_return_s_ #define F_status_debug_s "F_debug" #define F_status_debug_not_s "F_debug_not" #define F_status_error_s "F_error" @@ -1143,9 +1143,9 @@ extern "C" { extern const f_string_static_t f_status_fine_not_s; extern const f_string_static_t f_status_warning_s; extern const f_string_static_t f_status_warning_not_s; - #endif // _di_f_status_return_ + #endif // _di_f_status_return_s_ - #ifndef _di_f_status_array_ + #ifndef _di_f_status_array_s_ #define F_status_array_s "F_array" #define F_status_array_not_s "F_array_not" #define F_status_array_too_large_s "F_array_too_large" @@ -1160,9 +1160,9 @@ extern "C" { extern const f_string_static_t f_status_array_not_s; extern const f_string_static_t f_status_array_too_large_s; extern const f_string_static_t f_status_array_too_small_s; - #endif // _di_f_status_array_ + #endif // _di_f_status_array_s_ - #ifndef _di_f_status_available_ + #ifndef _di_f_status_available_s_ #define F_status_available_s "F_available" #define F_status_available_not_s "F_available_not" #define F_status_available_not_address_s "F_available_not_address" @@ -1192,9 +1192,9 @@ extern "C" { extern const f_string_static_t f_status_available_not_port_s; extern const f_string_static_t f_status_available_not_process_s; extern const f_string_static_t f_status_available_not_socket_s; - #endif // _di_f_status_available_ + #endif // _di_f_status_available_s_ - #ifndef _di_f_status_busy_ + #ifndef _di_f_status_busy_s_ #define F_status_busy_s "F_busy" #define F_status_busy_address_s "F_busy_address" #define F_status_busy_buffer_s "F_busy_buffer" @@ -1224,9 +1224,9 @@ extern "C" { extern const f_string_static_t f_status_busy_port_s; extern const f_string_static_t f_status_busy_process_s; extern const f_string_static_t f_status_busy_socket_s; - #endif // _di_f_status_busy_ + #endif // _di_f_status_busy_s_ - #ifndef _di_f_status_network_ + #ifndef _di_f_status_network_s_ #define F_status_network_s "F_network" #define F_status_network_busy_s "F_network_busy" #define F_status_network_busy_not_s "F_network_busy_not" @@ -1295,9 +1295,9 @@ extern "C" { extern const f_string_static_t f_status_network_server_not_s; extern const f_string_static_t f_status_network_time_s; extern const f_string_static_t f_status_network_time_not_s; - #endif // _di_f_status_network_ + #endif // _di_f_status_network_s_ - #ifndef _di_f_status_number_ + #ifndef _di_f_status_number_s_ #define F_status_number_s "F_number" #define F_status_number_decimal_s "F_number_decimal" #define F_status_number_decimal_not_s "F_number_decimal_not" @@ -1351,9 +1351,9 @@ extern "C" { extern const f_string_static_t f_status_number_whole_not_s; extern const f_string_static_t f_status_number_zero_s; extern const f_string_static_t f_status_number_zero_not_s; - #endif // _di_f_status_number_ + #endif // _di_f_status_number_s_ - #ifndef _di_f_status_buffer_ + #ifndef _di_f_status_buffer_s_ #define F_status_buffer_s "F_buffer" #define F_status_buffer_not_s "F_buffer_not" #define F_status_buffer_overflow_s "F_buffer_overflow" @@ -1449,9 +1449,9 @@ extern "C" { extern const f_string_static_t f_status_data_not_eos_s; extern const f_string_static_t f_status_data_not_start_s; extern const f_string_static_t f_status_data_not_stop_s; - #endif // _di_f_status_buffer_ + #endif // _di_f_status_buffer_s_ - #ifndef _di_f_status_end_ + #ifndef _di_f_status_end_s_ #define F_status_end_s "F_end" #define F_status_end_not_s "F_end_not" #define F_status_end_not_block_s "F_end_not_block" @@ -1529,9 +1529,9 @@ extern "C" { extern const f_string_static_t f_status_end_not_nest_eos_s; extern const f_string_static_t f_status_end_not_nest_start_s; extern const f_string_static_t f_status_end_not_nest_stop_s; - #endif // _di_f_status_end_ + #endif // _di_f_status_end_s_ - #ifndef _di_f_status_process_ + #ifndef _di_f_status_process_s_ #define F_status_process_s "F_process" #define F_status_process_not_s "F_process_not" #define F_status_process_too_many_s "F_process_too_many" @@ -1543,9 +1543,9 @@ extern "C" { extern const f_string_static_t f_status_process_s; extern const f_string_static_t f_status_process_not_s; extern const f_string_static_t f_status_process_too_many_s; - #endif // _di_f_status_process_ + #endif // _di_f_status_process_s_ - #ifndef _di_f_status_file_ + #ifndef _di_f_status_file_s_ #define F_status_file_s "F_file" #define F_status_file_close_s "F_file_close" #define F_status_file_closed_s "F_file_closed" @@ -1677,9 +1677,9 @@ extern "C" { extern const f_string_static_t f_status_file_utf_s; extern const f_string_static_t f_status_file_utf_not_s; extern const f_string_static_t f_status_file_write_s; - #endif // _di_f_status_file_ + #endif // _di_f_status_file_s_ - #ifndef _di_f_status_filesystem_ + #ifndef _di_f_status_filesystem_s_ #define F_status_filesystem_s "F_filesystem" #define F_status_filesystem_not_s "F_filesystem_not" #define F_status_filesystem_quota_block_s "F_filesystem_quota_block" @@ -1694,9 +1694,9 @@ extern "C" { extern const f_string_static_t f_status_filesystem_not_s; extern const f_string_static_t f_status_filesystem_quota_block_s; extern const f_string_static_t f_status_filesystem_quota_reached_s; - #endif // _di_f_status_filesystem_ + #endif // _di_f_status_filesystem_s_ - #ifndef _di_f_status_directory_ + #ifndef _di_f_status_directory_s_ #define F_status_directory_s "F_directory" #define F_status_directory_close_s "F_directory_close" #define F_status_directory_closed_s "F_directory_closed" @@ -1759,9 +1759,9 @@ extern "C" { extern const f_string_static_t f_status_directory_utf_s; extern const f_string_static_t f_status_directory_utf_not_s; extern const f_string_static_t f_status_directory_write_s; - #endif // _di_f_status_directory_ + #endif // _di_f_status_directory_s_ - #ifndef _di_f_status_socket_ + #ifndef _di_f_status_socket_s_ #define F_status_socket_s "F_socket" #define F_status_socket_client_s "F_socket_client" #define F_status_socket_not_s "F_socket_not" @@ -1782,9 +1782,9 @@ extern "C" { extern const f_string_static_t f_status_socket_receive_s; extern const f_string_static_t f_status_socket_send_s; extern const f_string_static_t f_status_socket_target_s; - #endif // _di_f_status_socket_ + #endif // _di_f_status_socket_s_ - #ifndef _di_f_status_compare_ + #ifndef _di_f_status_compare_s_ #define F_status_equal_to_s "F_equal_to" #define F_status_equal_to_not_s "F_equal_to_not" #define F_status_than_greater_s "F_than_greater" @@ -1799,9 +1799,9 @@ extern "C" { extern const f_string_static_t f_status_equal_to_not_s; extern const f_string_static_t f_status_than_greater_s; extern const f_string_static_t f_status_than_less_s; - #endif // _di_f_status_compare_ + #endif // _di_f_status_compare_s_ - #ifndef _di_f_status_access_ + #ifndef _di_f_status_access_s_ #define F_status_access_s "F_access" #define F_status_access_denied_s "F_access_denied" #define F_status_access_denied_user_s "F_access_denied_user" @@ -1867,9 +1867,9 @@ extern "C" { extern const f_string_static_t f_status_access_mode_s; extern const f_string_static_t f_status_access_not_s; extern const f_string_static_t f_status_access_owner_s; - #endif // _di_f_status_access_ + #endif // _di_f_status_access_s_ - #ifndef _di_f_status_terminal_ + #ifndef _di_f_status_terminal_s_ #define F_status_terminal_s "F_terminal" #define F_status_terminal_access_s "F_terminal_access" #define F_status_terminal_known_s "F_terminal_known" @@ -1902,13 +1902,13 @@ extern "C" { extern const f_string_static_t f_status_terminal_valid_s; extern const f_string_static_t f_status_terminal_valid_not_s; extern const f_string_static_t f_status_terminal_write_s; - #endif // _di_f_status_terminal_ + #endif // _di_f_status_terminal_s_ #define F_status_status_code_last_s "F_status_code_last" #define F_status_status_code_last_s_length 18 extern const f_string_static_t f_status_status_code_last_s; -#endif // _di_f_status_string_ +#endif // _di_f_status_string_s_ /** * Convert status codes to their string representation. diff --git a/level_2/fll_status_string/c/status_string.c b/level_2/fll_status_string/c/status_string.c index 981f516..269d710 100644 --- a/level_2/fll_status_string/c/status_string.c +++ b/level_2/fll_status_string/c/status_string.c @@ -25,7 +25,7 @@ extern "C" { return status; } - #ifndef _di_f_status_boolean_ + #ifndef _di_f_status_boolean_s_ if (fl_string_dynamic_compare(name, f_status_false_s) == F_equal_to) { *code = F_false; @@ -37,9 +37,9 @@ extern "C" { return F_none; } - #endif // _di_f_status_boolean_ + #endif // _di_f_status_boolean_s_ - #ifndef _di_f_status_signal_ + #ifndef _di_f_status_signal_s_ if (fl_string_dynamic_compare(name, f_status_signal_hangup_s) == F_equal_to) { *code = F_signal_hangup; @@ -423,9 +423,9 @@ extern "C" { return F_none; } - #endif // _di_f_status_signal_ + #endif // _di_f_status_signal_s_ - #ifndef _di_f_status_basic_ + #ifndef _di_f_status_basic_s_ if (fl_string_dynamic_compare(name, f_status_none_s) == F_equal_to) { *code = F_none; @@ -2183,9 +2183,9 @@ extern "C" { return F_none; } - #endif // _di_f_status_basic_ + #endif // _di_f_status_basic_s_ - #ifndef _di_f_status_return_ + #ifndef _di_f_status_return_s_ if (fl_string_dynamic_compare(name, f_status_debug_s) == F_equal_to) { *code = F_debug; @@ -2233,9 +2233,9 @@ extern "C" { return F_none; } - #endif // _di_f_status_return_ + #endif // _di_f_status_return_s_ - #ifndef _di_f_status_array_ + #ifndef _di_f_status_array_s_ if (fl_string_dynamic_compare(name, f_status_array_s) == F_equal_to) { *code = F_array; @@ -2259,9 +2259,9 @@ extern "C" { return F_none; } - #endif // _di_f_status_array_ + #endif // _di_f_status_array_s_ - #ifndef _di_f_status_available_ + #ifndef _di_f_status_available_s_ if (fl_string_dynamic_compare(name, f_status_available_s) == F_equal_to) { *code = F_available; @@ -2315,9 +2315,9 @@ extern "C" { return F_none; } - #endif // _di_f_status_available_ + #endif // _di_f_status_available_s_ - #ifndef _di_f_status_busy_ + #ifndef _di_f_status_busy_s_ if (fl_string_dynamic_compare(name, f_status_busy_s) == F_equal_to) { *code = F_busy; @@ -2371,9 +2371,9 @@ extern "C" { return F_none; } - #endif // _di_f_status_busy_ + #endif // _di_f_status_busy_s_ - #ifndef _di_f_status_network_ + #ifndef _di_f_status_network_s_ if (fl_string_dynamic_compare(name, f_status_network_s) == F_equal_to) { *code = F_network; @@ -2505,9 +2505,9 @@ extern "C" { return F_none; } - #endif // _di_f_status_network_ + #endif // _di_f_status_network_s_ - #ifndef _di_f_status_number_ + #ifndef _di_f_status_number_s_ if (fl_string_dynamic_compare(name, f_status_number_s) == F_equal_to) { *code = F_number; @@ -2609,9 +2609,9 @@ extern "C" { return F_none; } - #endif // _di_f_status_number_ + #endif // _di_f_status_number_s_ - #ifndef _di_f_status_buffer_ + #ifndef _di_f_status_buffer_s_ if (fl_string_dynamic_compare(name, f_status_buffer_s) == F_equal_to) { *code = F_buffer; @@ -2773,9 +2773,9 @@ extern "C" { return F_none; } - #endif // _di_f_status_buffer_ + #endif // _di_f_status_buffer_s_ - #ifndef _di_f_status_end_ + #ifndef _di_f_status_end_s_ if (fl_string_dynamic_compare(name, f_status_end_s) == F_equal_to) { *code = F_end; @@ -2907,9 +2907,9 @@ extern "C" { return F_none; } - #endif // _di_f_status_end_ + #endif // _di_f_status_end_s_ - #ifndef _di_f_status_process_ + #ifndef _di_f_status_process_s_ if (fl_string_dynamic_compare(name, f_status_process_s) == F_equal_to) { *code = F_process; @@ -2927,9 +2927,9 @@ extern "C" { return F_none; } - #endif // _di_f_status_process_ + #endif // _di_f_status_process_s_ - #ifndef _di_f_status_file_ + #ifndef _di_f_status_file_s_ if (fl_string_dynamic_compare(name, f_status_file_s) == F_equal_to) { *code = F_file; @@ -3187,9 +3187,9 @@ extern "C" { return F_none; } - #endif // _di_f_status_file_ + #endif // _di_f_status_file_s_ - #ifndef _di_f_status_filesystem_ + #ifndef _di_f_status_filesystem_s_ if (fl_string_dynamic_compare(name, f_status_filesystem_s) == F_equal_to) { *code = F_filesystem; @@ -3213,9 +3213,9 @@ extern "C" { return F_none; } - #endif // _di_f_status_filesystem_ + #endif // _di_f_status_filesystem_s_ - #ifndef _di_f_status_directory_ + #ifndef _di_f_status_directory_s_ if (fl_string_dynamic_compare(name, f_status_directory_s) == F_equal_to) { *code = F_directory; @@ -3335,9 +3335,9 @@ extern "C" { return F_none; } - #endif // _di_f_status_directory_ + #endif // _di_f_status_directory_s_ - #ifndef _di_f_status_socket_ + #ifndef _di_f_status_socket_s_ if (fl_string_dynamic_compare(name, f_status_socket_s) == F_equal_to) { *code = F_socket; @@ -3373,9 +3373,9 @@ extern "C" { return F_none; } - #endif // _di_f_status_socket_ + #endif // _di_f_status_socket_s_ - #ifndef _di_f_status_compare_ + #ifndef _di_f_status_compare_s_ if (fl_string_dynamic_compare(name, f_status_equal_to_s) == F_equal_to) { *code = F_equal_to; @@ -3399,9 +3399,9 @@ extern "C" { return F_none; } - #endif // _di_f_status_compare_ + #endif // _di_f_status_compare_s_ - #ifndef _di_f_status_access_ + #ifndef _di_f_status_access_s_ if (fl_string_dynamic_compare(name, f_status_access_s) == F_equal_to) { *code = F_access; @@ -3545,9 +3545,9 @@ extern "C" { return F_none; } - #endif // _di_f_status_access_ + #endif // _di_f_status_access_s_ - #ifndef _di_f_status_terminal_ + #ifndef _di_f_status_terminal_s_ if (fl_string_dynamic_compare(name, f_status_terminal_s) == F_equal_to) { *code = F_terminal; @@ -3607,7 +3607,7 @@ extern "C" { return F_none; } - #endif // _di_f_status_terminal_ + #endif // _di_f_status_terminal_s_ if (fl_string_dynamic_compare(name, f_status_status_code_last_s) == F_equal_to) { *code = F_status_code_last;