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-Url: https://git.kevux.org/?a=commitdiff_plain;h=ec54713d09c5098375eb90f60cfb0810bec4a358;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 fd52cc9..0da72e4 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); @@ -375,9 +375,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); @@ -386,16 +386,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); @@ -405,9 +405,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); @@ -417,9 +417,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); @@ -442,9 +442,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); @@ -462,9 +462,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); @@ -496,9 +496,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); @@ -524,15 +524,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); @@ -576,16 +576,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); @@ -606,25 +606,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); @@ -646,9 +646,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); @@ -659,10 +659,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) { @@ -671,7 +671,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; @@ -681,9 +681,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: @@ -1000,9 +1000,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; @@ -2477,9 +2477,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; @@ -2519,9 +2519,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; @@ -2541,9 +2541,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; @@ -2588,9 +2588,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; @@ -2635,9 +2635,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; @@ -2747,9 +2747,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; @@ -2834,9 +2834,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; @@ -2986,9 +2986,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; @@ -3113,9 +3113,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; @@ -3130,9 +3130,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; @@ -3347,9 +3347,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; @@ -3369,9 +3369,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; @@ -3471,9 +3471,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; @@ -3503,9 +3503,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; @@ -3525,9 +3525,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; @@ -3632,9 +3632,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; @@ -3684,7 +3684,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 2294570..0993cf8 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" @@ -1126,9 +1126,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" @@ -1155,9 +1155,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" @@ -1172,9 +1172,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" @@ -1204,9 +1204,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" @@ -1236,9 +1236,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" @@ -1307,9 +1307,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" @@ -1363,9 +1363,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" @@ -1461,9 +1461,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" @@ -1541,9 +1541,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" @@ -1555,9 +1555,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" @@ -1689,9 +1689,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" @@ -1706,9 +1706,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" @@ -1771,9 +1771,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" @@ -1794,9 +1794,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" @@ -1811,9 +1811,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" @@ -1879,9 +1879,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" @@ -1914,13 +1914,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 acf0280..17a3fb5 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; @@ -2195,9 +2195,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; @@ -2245,9 +2245,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; @@ -2271,9 +2271,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; @@ -2327,9 +2327,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; @@ -2383,9 +2383,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; @@ -2517,9 +2517,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; @@ -2621,9 +2621,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; @@ -2785,9 +2785,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; @@ -2919,9 +2919,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; @@ -2939,9 +2939,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; @@ -3199,9 +3199,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; @@ -3225,9 +3225,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; @@ -3347,9 +3347,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; @@ -3385,9 +3385,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; @@ -3411,9 +3411,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; @@ -3557,9 +3557,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; @@ -3619,7 +3619,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;