From 6d49d8f2fe4865cf5052a07898353123b6708fc0 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Sat, 1 Jan 2022 22:00:02 -0600 Subject: [PATCH] Update: Add several new status codes and update existing ones. A new group "_di_F_status_network_" is provided. This is done in anticipation of a large amount of dedicated network related status codes. The next minor development release series (0.7.x) is planned to focus heavily on networking. The networking is highly specialized and will likely have network specific variations of many existing status codes. --- level_0/f_status/c/status.h | 41 +++++- level_0/f_status_string/c/status_string.c | 179 +++++++++++++++++++++++-- level_0/f_status_string/c/status_string.h | 119 +++++++++++++++-- level_2/fll_status_string/c/status_string.c | 198 ++++++++++++++++++++++++++-- 4 files changed, 501 insertions(+), 36 deletions(-) diff --git a/level_0/f_status/c/status.h b/level_0/f_status/c/status.h index 422dfb6..0beb0da 100644 --- a/level_0/f_status/c/status.h +++ b/level_0/f_status/c/status.h @@ -145,12 +145,16 @@ extern "C" { // Start at 197 to allow compatibility with the reserved bash return codes (keep in mind fss return codes can be larger than 255). #ifndef _di_F_status_basic_ F_none = 197, + F_abort, + F_abort_not, F_absolute, F_absolute_not, F_address, F_address_not, F_ascii, F_ascii_not, + F_begin, + F_begin_not, F_block, F_block_not, F_bound, @@ -161,10 +165,13 @@ extern "C" { F_child_not, F_complete, F_complete_not, - F_connected, - F_connected_not, + F_connect, + F_connect_not, + F_connect_refuse, F_container, F_container_not, + F_continue, + F_continue_not, F_control, F_control_not, F_control_group, @@ -193,6 +200,8 @@ extern "C" { F_enable_not, F_encoding, F_encoding_not, + F_end, + F_end_not, F_eoa, F_eoa_not, F_eof, @@ -260,8 +269,8 @@ extern "C" { F_next_not, F_nice, F_nice_not, - F_optional, - F_optional_not, + F_option, + F_option_not, F_output, F_output_not, F_parameter, @@ -276,6 +285,8 @@ extern "C" { F_previous_not, F_processor, F_processor_not, + F_progress, + F_progress_not, F_prohibited, F_prohibited_not, F_property, @@ -307,8 +318,12 @@ extern "C" { F_signal_not, F_space, F_space_not, + F_start, + F_start_not, F_stop, F_stop_not, + F_stream, + F_stream_not, F_string, F_string_not, F_string_too_large, @@ -323,8 +338,11 @@ extern "C" { F_thread_not, F_time, F_time_not, + F_time_out, F_too_large, F_too_small, + F_type, + F_type_not, F_user, F_user_not, F_utf, @@ -377,6 +395,21 @@ extern "C" { F_busy_socket, #endif // _di_F_status_busy_ + #ifndef _di_F_status_network_ + F_network, + F_network_busy, + F_network_busy_not, + F_network_found, + F_network_found_not, + F_network_lost, + F_network_lost_not, + F_network_not, + F_network_reach, + F_network_reach_not, + F_network_time, + F_network_time_not, + #endif // _di_F_status_network_ + #ifndef _di_F_status_number_ F_number, F_number_decimal, diff --git a/level_0/f_status_string/c/status_string.c b/level_0/f_status_string/c/status_string.c index 3515826..4d40ef1 100644 --- a/level_0/f_status_string/c/status_string.c +++ b/level_0/f_status_string/c/status_string.c @@ -79,12 +79,16 @@ extern "C" { #ifndef _di_F_status_basic_ const f_string_t f_status_none_s = F_status_none_s; + const f_string_t f_status_abort_s = F_status_abort_s; + const f_string_t f_status_abort_not_s = F_status_abort_not_s; const f_string_t f_status_absolute_s = F_status_absolute_s; const f_string_t f_status_absolute_not_s = F_status_absolute_not_s; const f_string_t f_status_address_s = F_status_address_s; const f_string_t f_status_address_not_s = F_status_address_not_s; const f_string_t f_status_ascii_s = F_status_ascii_s; const f_string_t f_status_ascii_not_s = F_status_ascii_not_s; + const f_string_t f_status_begin_s = F_status_begin_s; + const f_string_t f_status_begin_not_s = F_status_begin_not_s; const f_string_t f_status_block_s = F_status_block_s; const f_string_t f_status_block_not_s = F_status_block_not_s; const f_string_t f_status_bound_s = F_status_bound_s; @@ -95,10 +99,13 @@ extern "C" { const f_string_t f_status_child_not_s = F_status_child_not_s; const f_string_t f_status_complete_s = F_status_complete_s; const f_string_t f_status_complete_not_s = F_status_complete_not_s; - const f_string_t f_status_connected_s = F_status_connected_s; - const f_string_t f_status_connected_not_s = F_status_connected_not_s; + const f_string_t f_status_connect_s = F_status_connect_s; + const f_string_t f_status_connect_not_s = F_status_connect_not_s; + const f_string_t f_status_connect_refuse_s = F_status_connect_refuse_s; const f_string_t f_status_container_s = F_status_container_s; const f_string_t f_status_container_not_s = F_status_container_not_s; + const f_string_t f_status_continue_s = F_status_continue_s; + const f_string_t f_status_continue_not_s = F_status_continue_not_s; const f_string_t f_status_control_s = F_status_control_s; const f_string_t f_status_control_not_s = F_status_control_not_s; const f_string_t f_status_control_group_s = F_status_control_group_s; @@ -127,6 +134,8 @@ extern "C" { const f_string_t f_status_enable_not_s = F_status_enable_not_s; const f_string_t f_status_encoding_s = F_status_encoding_s; const f_string_t f_status_encoding_not_s = F_status_encoding_not_s; + const f_string_t f_status_end_s = F_status_end_s; + const f_string_t f_status_end_not_s = F_status_end_not_s; const f_string_t f_status_eoa_s = F_status_eoa_s; const f_string_t f_status_eoa_not_s = F_status_eoa_not_s; const f_string_t f_status_eof_s = F_status_eof_s; @@ -194,8 +203,8 @@ extern "C" { const f_string_t f_status_next_not_s = F_status_next_not_s; const f_string_t f_status_nice_s = F_status_nice_s; const f_string_t f_status_nice_not_s = F_status_nice_not_s; - const f_string_t f_status_optional_s = F_status_optional_s; - const f_string_t f_status_optional_not_s = F_status_optional_not_s; + const f_string_t f_status_option_s = F_status_option_s; + const f_string_t f_status_option_not_s = F_status_option_not_s; const f_string_t f_status_output_s = F_status_output_s; const f_string_t f_status_output_not_s = F_status_output_not_s; const f_string_t f_status_parameter_s = F_status_parameter_s; @@ -210,6 +219,8 @@ extern "C" { const f_string_t f_status_previous_not_s = F_status_previous_not_s; const f_string_t f_status_processor_s = F_status_processor_s; const f_string_t f_status_processor_not_s = F_status_processor_not_s; + const f_string_t f_status_progress_s = F_status_progress_s; + const f_string_t f_status_progress_not_s = F_status_progress_not_s; const f_string_t f_status_prohibited_s = F_status_prohibited_s; const f_string_t f_status_prohibited_not_s = F_status_prohibited_not_s; const f_string_t f_status_property_s = F_status_property_s; @@ -241,8 +252,12 @@ extern "C" { const f_string_t f_status_signal_not_s = F_status_signal_not_s; const f_string_t f_status_space_s = F_status_space_s; const f_string_t f_status_space_not_s = F_status_space_not_s; + const f_string_t f_status_start_s = F_status_start_s; + const f_string_t f_status_start_not_s = F_status_start_not_s; const f_string_t f_status_stop_s = F_status_stop_s; const f_string_t f_status_stop_not_s = F_status_stop_not_s; + const f_string_t f_status_stream_s = F_status_stream_s; + const f_string_t f_status_stream_not_s = F_status_stream_not_s; const f_string_t f_status_string_s = F_status_string_s; const f_string_t f_status_string_not_s = F_status_string_not_s; const f_string_t f_status_string_too_large_s = F_status_string_too_large_s; @@ -253,8 +268,11 @@ extern "C" { const f_string_t f_status_thread_not_s = F_status_thread_not_s; const f_string_t f_status_time_s = F_status_time_s; const f_string_t f_status_time_not_s = F_status_time_not_s; + const f_string_t f_status_time_out_s = F_status_time_out_s; const f_string_t f_status_too_large_s = F_status_too_large_s; const f_string_t f_status_too_small_s = F_status_too_small_s; + const f_string_t f_status_type_s = F_status_type_s; + const f_string_t f_status_type_not_s = F_status_type_not_s; const f_string_t f_status_success_s = F_status_success_s; const f_string_t f_status_success_not_s = F_status_success_not_s; const f_string_t f_status_supported_s = F_status_supported_s; @@ -311,6 +329,21 @@ extern "C" { const f_string_t f_status_busy_socket_s = F_status_busy_socket_s; #endif // _di_F_status_busy_ + #ifndef _di_F_status_network_ + const f_string_t f_status_network_s = F_status_network_s; + const f_string_t f_status_network_busy_s = F_status_network_busy_s; + const f_string_t f_status_network_busy_not_s = F_status_network_busy_not_s; + const f_string_t f_status_network_found_s = F_status_network_found_s; + const f_string_t f_status_network_found_not_s = F_status_network_found_not_s; + const f_string_t f_status_network_lost_s = F_status_network_lost_s; + const f_string_t f_status_network_lost_not_s = F_status_network_lost_not_s; + const f_string_t f_status_network_not_s = F_status_network_not_s; + const f_string_t f_status_network_reach_s = F_status_network_reach_s; + const f_string_t f_status_network_reach_not_s = F_status_network_reach_not_s; + const f_string_t f_status_network_time_s = F_status_network_time_s; + const f_string_t f_status_network_time_not_s = F_status_network_time_not_s; + #endif // _di_F_status_network_ + #ifndef _di_F_status_number_ const f_string_t f_status_number_s = F_status_number_s; const f_string_t f_status_number_decimal_s = F_status_number_decimal_s; @@ -800,6 +833,14 @@ extern "C" { *string = f_status_none_s; break; + case F_abort: + *string = f_status_abort_s; + break; + + case F_abort_not: + *string = f_status_abort_not_s; + break; + case F_absolute: *string = f_status_absolute_s; break; @@ -824,6 +865,14 @@ extern "C" { *string = f_status_ascii_not_s; break; + case F_begin: + *string = f_status_begin_s; + break; + + case F_begin_not: + *string = f_status_begin_not_s; + break; + case F_block: *string = f_status_block_s; break; @@ -864,12 +913,24 @@ extern "C" { *string = f_status_complete_not_s; break; - case F_connected: - *string = f_status_connected_s; + case F_connect: + *string = f_status_connect_s; + break; + + case F_connect_not: + *string = f_status_connect_not_s; + break; + + case F_connect_refuse: + *string = f_status_connect_refuse_s; + break; + + case F_continue: + *string = f_status_continue_s; break; - case F_connected_not: - *string = f_status_connected_not_s; + case F_continue_not: + *string = f_status_continue_not_s; break; case F_container: @@ -992,6 +1053,14 @@ extern "C" { *string = f_status_encoding_not_s; break; + case F_end: + *string = f_status_end_s; + break; + + case F_end_not: + *string = f_status_end_not_s; + break; + case F_eoa: *string = f_status_eoa_s; break; @@ -1252,12 +1321,12 @@ extern "C" { *string = f_status_nice_not_s; break; - case F_optional: - *string = f_status_optional_s; + case F_option: + *string = f_status_option_s; break; - case F_optional_not: - *string = f_status_optional_not_s; + case F_option_not: + *string = f_status_option_not_s; break; case F_output: @@ -1316,6 +1385,14 @@ extern "C" { *string = f_status_processor_not_s; break; + case F_progress: + *string = f_status_progress_s; + break; + + case F_progress_not: + *string = f_status_progress_not_s; + break; + case F_prohibited: *string = f_status_prohibited_s; break; @@ -1440,6 +1517,14 @@ extern "C" { *string = f_status_space_not_s; break; + case F_start: + *string = f_status_start_s; + break; + + case F_start_not: + *string = f_status_start_not_s; + break; + case F_stop: *string = f_status_stop_s; break; @@ -1448,6 +1533,14 @@ extern "C" { *string = f_status_stop_not_s; break; + case F_stream: + *string = f_status_stream_s; + break; + + case F_stream_not: + *string = f_status_stream_not_s; + break; + case F_string: *string = f_status_string_s; break; @@ -1488,6 +1581,10 @@ extern "C" { *string = f_status_time_not_s; break; + case F_time_out: + *string = f_status_time_out_s; + break; + case F_too_large: *string = f_status_too_large_s; break; @@ -1496,6 +1593,14 @@ extern "C" { *string = f_status_too_small_s; break; + case F_type: + *string = f_status_type_s; + break; + + case F_type_not: + *string = f_status_type_not_s; + break; + case F_known: *string = f_status_known_s; break; @@ -1691,6 +1796,56 @@ extern "C" { break; #endif // _di_F_status_busy_ + #ifndef _di_F_status_network_ + case F_network: + *string = f_status_network_s; + break; + + case F_network_busy: + *string = f_status_network_busy_s; + break; + + case F_network_busy_not: + *string = f_status_network_busy_not_s; + break; + + case F_network_found: + *string = f_status_network_found_s; + break; + + case F_network_found_not: + *string = f_status_network_found_not_s; + break; + + case F_network_lost: + *string = f_status_network_lost_s; + break; + + case F_network_lost_not: + *string = f_status_network_lost_not_s; + break; + + case F_network_not: + *string = f_status_network_not_s; + break; + + case F_network_reach: + *string = f_status_network_reach_s; + break; + + case F_network_reach_not: + *string = f_status_network_reach_not_s; + break; + + case F_network_time: + *string = f_status_network_time_s; + break; + + case F_network_time_not: + *string = f_status_network_time_not_s; + break; + #endif // _di_F_status_network_ + #ifndef _di_F_status_number_ case F_number: *string = f_status_number_s; diff --git a/level_0/f_status_string/c/status_string.h b/level_0/f_status_string/c/status_string.h index bf2edee..b4a2019 100644 --- a/level_0/f_status_string/c/status_string.h +++ b/level_0/f_status_string/c/status_string.h @@ -232,12 +232,16 @@ extern "C" { #ifndef _di_F_status_basic_ #define F_status_none_s "F_none" + #define F_status_abort_s "F_abort" + #define F_status_abort_not_s "F_abort_not" #define F_status_absolute_s "F_absolute" #define F_status_absolute_not_s "F_absolute_not" #define F_status_address_s "F_address" #define F_status_address_not_s "F_address_not" #define F_status_ascii_s "F_ascii" #define F_status_ascii_not_s "F_ascii_not" + #define F_status_begin_s "F_begin" + #define F_status_begin_not_s "F_begin_not" #define F_status_block_s "F_block" #define F_status_block_not_s "F_block_not" #define F_status_bound_s "F_bound" @@ -248,10 +252,13 @@ extern "C" { #define F_status_child_not_s "F_child_not" #define F_status_complete_s "F_complete" #define F_status_complete_not_s "F_complete_not" - #define F_status_connected_s "F_connected" - #define F_status_connected_not_s "F_connected_not" + #define F_status_connect_s "F_connect" + #define F_status_connect_not_s "F_connect_not" + #define F_status_connect_refuse_s "F_connect_refuse" #define F_status_container_s "F_container" #define F_status_container_not_s "F_container_not" + #define F_status_continue_s "F_continue" + #define F_status_continue_not_s "F_continue_not" #define F_status_control_s "F_control" #define F_status_control_not_s "F_control_not" #define F_status_control_group_s "F_control_group" @@ -280,6 +287,8 @@ extern "C" { #define F_status_enable_not_s "F_enable_not" #define F_status_encoding_s "F_encoding" #define F_status_encoding_not_s "F_encoding_not" + #define F_status_end_s "F_end" + #define F_status_end_not_s "F_end_not" #define F_status_eoa_s "F_eoa" #define F_status_eoa_not_s "F_eoa_not" #define F_status_eof_s "F_eof" @@ -347,8 +356,8 @@ extern "C" { #define F_status_next_not_s "F_next_not" #define F_status_nice_s "F_nice" #define F_status_nice_not_s "F_nice_not" - #define F_status_optional_s "F_optional" - #define F_status_optional_not_s "F_optional_not" + #define F_status_option_s "F_option" + #define F_status_option_not_s "F_option_not" #define F_status_output_s "F_output" #define F_status_output_not_s "F_output_not" #define F_status_parameter_s "F_parameter" @@ -363,6 +372,8 @@ extern "C" { #define F_status_previous_not_s "F_previous_not" #define F_status_processor_s "F_processor" #define F_status_processor_not_s "F_processor_not" + #define F_status_progress_s "F_progress" + #define F_status_progress_not_s "F_progress_not" #define F_status_prohibited_s "F_prohibited" #define F_status_prohibited_not_s "F_prohibited_not" #define F_status_property_s "F_property" @@ -394,8 +405,12 @@ extern "C" { #define F_status_signal_not_s "F_signal_not" #define F_status_space_s "F_space" #define F_status_space_not_s "F_space_not" + #define F_status_start_s "F_start" + #define F_status_start_not_s "F_start_not" #define F_status_stop_s "F_stop" #define F_status_stop_not_s "F_stop_not" + #define F_status_stream_s "F_stream" + #define F_status_stream_not_s "F_stream_not" #define F_status_string_s "F_string" #define F_status_string_not_s "F_string_not" #define F_status_string_too_large_s "F_string_too_large" @@ -406,8 +421,11 @@ extern "C" { #define F_status_thread_not_s "F_thread_not" #define F_status_time_s "F_time" #define F_status_time_not_s "F_time_not" + #define F_status_time_out_s "F_time_out" #define F_status_too_large_s "F_too_large" #define F_status_too_small_s "F_too_small" + #define F_status_type_s "F_type" + #define F_status_type_not_s "F_type_not" #define F_status_success_s "F_success" #define F_status_success_not_s "F_success_not" #define F_status_supported_s "F_supported" @@ -433,12 +451,16 @@ extern "C" { #define F_status_write_only_s "F_write_only" #define F_status_none_s_length 6 + #define F_status_abort_s_length 7 + #define F_status_abort_not_s_length 11 #define F_status_absolute_s_length 10 #define F_status_absolute_not_s_length 14 #define F_status_address_s_length 9 #define F_status_address_not_s_length 13 #define F_status_ascii_s_length 7 #define F_status_ascii_not_s_length 11 + #define F_status_begin_s_length 7 + #define F_status_begin_not_s_length 11 #define F_status_block_s_length 7 #define F_status_block_not_s_length 11 #define F_status_bound_s_length 7 @@ -449,10 +471,13 @@ extern "C" { #define F_status_child_not_s_length 11 #define F_status_complete_s_length 10 #define F_status_complete_not_s_length 14 - #define F_status_connected_s_length 11 - #define F_status_connected_not_s_length 15 + #define F_status_connect_s_length 9 + #define F_status_connect_not_s_length 13 + #define F_status_connect_refuse_s_length 16 #define F_status_container_s_length 11 #define F_status_container_not_s_length 15 + #define F_status_continue_s_length 10 + #define F_status_continue_not_s_length 14 #define F_status_control_s_length 9 #define F_status_control_not_s_length 13 #define F_status_control_group_s_length 15 @@ -481,6 +506,8 @@ extern "C" { #define F_status_enable_not_s_length 12 #define F_status_encoding_s_length 10 #define F_status_encoding_not_s_length 14 + #define F_status_end_s_length 5 + #define F_status_end_not_s_length 9 #define F_status_eoa_s_length 5 #define F_status_eoa_not_s_length 9 #define F_status_eof_s_length 5 @@ -548,8 +575,8 @@ extern "C" { #define F_status_next_not_s_length 10 #define F_status_nice_s_length 6 #define F_status_nice_not_s_length 10 - #define F_status_optional_s_length 10 - #define F_status_optional_not_s_length 14 + #define F_status_option_s_length 8 + #define F_status_option_not_s_length 12 #define F_status_output_s_length 8 #define F_status_output_not_s_length 12 #define F_status_parameter_s_length 11 @@ -564,6 +591,8 @@ extern "C" { #define F_status_previous_not_s_length 14 #define F_status_processor_s_length 11 #define F_status_processor_not_s_length 15 + #define F_status_progress_s_length 10 + #define F_status_progress_not_s_length 14 #define F_status_prohibited_s_length 12 #define F_status_prohibited_not_s_length 16 #define F_status_property_s_length 10 @@ -595,8 +624,12 @@ extern "C" { #define F_status_signal_not_s_length 12 #define F_status_space_s_length 7 #define F_status_space_not_s_length 11 + #define F_status_start_s_length 7 + #define F_status_start_not_s_length 11 #define F_status_stop_s_length 6 #define F_status_stop_not_s_length 10 + #define F_status_stream_s_length 8 + #define F_status_stream_not_s_length 12 #define F_status_string_s_length 8 #define F_status_string_not_s_length 12 #define F_status_string_too_large_s_length 18 @@ -611,8 +644,11 @@ extern "C" { #define F_status_thread_not_s_length 12 #define F_status_time_s_length 6 #define F_status_time_not_s_length 10 + #define F_status_time_out_s_length 10 #define F_status_too_large_s_length 11 #define F_status_too_small_s_length 11 + #define F_status_type_s_length 6 + #define F_status_type_not_s_length 10 #define F_status_user_s_length 6 #define F_status_user_not_s_length 10 #define F_status_utf_s_length 5 @@ -634,12 +670,16 @@ extern "C" { #define F_status_write_only_s_length 12 extern const f_string_t f_status_none_s; + extern const f_string_t f_status_abort_s; + extern const f_string_t f_status_abort_not_s; extern const f_string_t f_status_absolute_s; extern const f_string_t f_status_absolute_not_s; extern const f_string_t f_status_address_s; extern const f_string_t f_status_address_not_s; extern const f_string_t f_status_ascii_s; extern const f_string_t f_status_ascii_not_s; + extern const f_string_t f_status_begin_s; + extern const f_string_t f_status_begin_not_s; extern const f_string_t f_status_block_s; extern const f_string_t f_status_block_not_s; extern const f_string_t f_status_bound_s; @@ -650,10 +690,13 @@ extern "C" { extern const f_string_t f_status_child_not_s; extern const f_string_t f_status_complete_s; extern const f_string_t f_status_complete_not_s; - extern const f_string_t f_status_connected_s; - extern const f_string_t f_status_connected_not_s; + extern const f_string_t f_status_connect_s; + extern const f_string_t f_status_connect_not_s; + extern const f_string_t f_status_connect_refuse_s; extern const f_string_t f_status_container_s; extern const f_string_t f_status_container_not_s; + extern const f_string_t f_status_continue_s; + extern const f_string_t f_status_continue_not_s; extern const f_string_t f_status_control_s; extern const f_string_t f_status_control_not_s; extern const f_string_t f_status_control_group_s; @@ -682,6 +725,8 @@ extern "C" { extern const f_string_t f_status_enable_not_s; extern const f_string_t f_status_encoding_s; extern const f_string_t f_status_encoding_not_s; + extern const f_string_t f_status_end_s; + extern const f_string_t f_status_end_not_s; extern const f_string_t f_status_eoa_s; extern const f_string_t f_status_eoa_not_s; extern const f_string_t f_status_eof_s; @@ -749,8 +794,8 @@ extern "C" { extern const f_string_t f_status_next_not_s; extern const f_string_t f_status_nice_s; extern const f_string_t f_status_nice_not_s; - extern const f_string_t f_status_optional_s; - extern const f_string_t f_status_optional_not_s; + extern const f_string_t f_status_option_s; + extern const f_string_t f_status_option_not_s; extern const f_string_t f_status_output_s; extern const f_string_t f_status_output_not_s; extern const f_string_t f_status_parameter_s; @@ -765,6 +810,8 @@ extern "C" { extern const f_string_t f_status_port_not_s; extern const f_string_t f_status_processor_s; extern const f_string_t f_status_processor_not_s; + extern const f_string_t f_status_progress_s; + extern const f_string_t f_status_progress_not_s; extern const f_string_t f_status_prohibited_s; extern const f_string_t f_status_prohibited_not_s; extern const f_string_t f_status_property_s; @@ -796,8 +843,12 @@ extern "C" { extern const f_string_t f_status_signal_not_s; extern const f_string_t f_status_space_s; extern const f_string_t f_status_space_not_s; + extern const f_string_t f_status_start_s; + extern const f_string_t f_status_start_not_s; extern const f_string_t f_status_stop_s; extern const f_string_t f_status_stop_not_s; + extern const f_string_t f_status_stream_s; + extern const f_string_t f_status_stream_not_s; extern const f_string_t f_status_string_s; extern const f_string_t f_status_string_not_s; extern const f_string_t f_status_string_too_large_s; @@ -808,8 +859,11 @@ extern "C" { extern const f_string_t f_status_thread_not_s; extern const f_string_t f_status_time_s; extern const f_string_t f_status_time_not_s; + extern const f_string_t f_status_time_out_s; extern const f_string_t f_status_too_large_s; extern const f_string_t f_status_too_small_s; + extern const f_string_t f_status_type_s; + extern const f_string_t f_status_type_not_s; extern const f_string_t f_status_success_s; extern const f_string_t f_status_success_not_s; extern const f_string_t f_status_supported_s; @@ -916,6 +970,47 @@ extern "C" { extern const f_string_t f_status_busy_socket_s; #endif // _di_F_status_busy_ + #ifndef _di_F_status_network_ + #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" + #define F_status_network_found_s "F_network_found" + #define F_status_network_found_not_s "F_network_found_not" + #define F_status_network_lost_s "F_network_lost" + #define F_status_network_lost_not_s "F_network_lost_not" + #define F_status_network_not_s "F_network_not" + #define F_status_network_reach_s "F_network_reach" + #define F_status_network_reach_not_s "F_network_reach_not" + #define F_status_network_time_s "F_network_time" + #define F_status_network_time_not_s "F_network_time_not" + + #define F_status_network_s_length 9 + #define F_status_network_busy_s_length 14 + #define F_status_network_busy_not_s_length 18 + #define F_status_network_found_s_length 15 + #define F_status_network_found_not_s_length 19 + #define F_status_network_lost_s_length 14 + #define F_status_network_lost_not_s_length 18 + #define F_status_network_not_s_length 13 + #define F_status_network_reach_s_length 15 + #define F_status_network_reach_not_s_length 19 + #define F_status_network_time_s_length 14 + #define F_status_network_time_not_s_length 18 + + extern const f_string_t f_status_network_s; + extern const f_string_t f_status_network_busy_s; + extern const f_string_t f_status_network_busy_not_s; + extern const f_string_t f_status_network_found_s; + extern const f_string_t f_status_network_found_not_s; + extern const f_string_t f_status_network_lost_s; + extern const f_string_t f_status_network_lost_not_s; + extern const f_string_t f_status_network_not_s; + extern const f_string_t f_status_network_reach_s; + extern const f_string_t f_status_network_reach_not_s; + extern const f_string_t f_status_network_time_s; + extern const f_string_t f_status_network_time_not_s; + #endif // _di_F_status_network_ + #ifndef _di_F_status_number_ #define F_status_number_s "F_number" #define F_status_number_decimal_s "F_number_decimal" diff --git a/level_2/fll_status_string/c/status_string.c b/level_2/fll_status_string/c/status_string.c index b32b622..9053d67 100644 --- a/level_2/fll_status_string/c/status_string.c +++ b/level_2/fll_status_string/c/status_string.c @@ -433,6 +433,18 @@ extern "C" { return F_none; } + if (fl_string_compare(string, f_status_abort_s, length, F_status_abort_s_length) == F_equal_to) { + *code = F_abort; + + return F_none; + } + + if (fl_string_compare(string, f_status_abort_not_s, length, F_status_abort_not_s_length) == F_equal_to) { + *code = F_abort_not; + + return F_none; + } + if (fl_string_compare(string, f_status_absolute_s, length, F_status_absolute_s_length) == F_equal_to) { *code = F_absolute; @@ -469,6 +481,18 @@ extern "C" { return F_none; } + if (fl_string_compare(string, f_status_begin_s, length, F_status_begin_s_length) == F_equal_to) { + *code = F_begin; + + return F_none; + } + + if (fl_string_compare(string, f_status_begin_not_s, length, F_status_begin_not_s_length) == F_equal_to) { + *code = F_begin_not; + + return F_none; + } + if (fl_string_compare(string, f_status_block_s, length, F_status_block_s_length) == F_equal_to) { *code = F_block; @@ -529,14 +553,20 @@ extern "C" { return F_none; } - if (fl_string_compare(string, f_status_connected_s, length, F_status_connected_s_length) == F_equal_to) { - *code = F_connected; + if (fl_string_compare(string, f_status_connect_s, length, F_status_connect_s_length) == F_equal_to) { + *code = F_connect; + + return F_none; + } + + if (fl_string_compare(string, f_status_connect_not_s, length, F_status_connect_not_s_length) == F_equal_to) { + *code = F_connect_not; return F_none; } - if (fl_string_compare(string, f_status_connected_not_s, length, F_status_connected_not_s_length) == F_equal_to) { - *code = F_connected_not; + if (fl_string_compare(string, f_status_connect_refuse_s, length, F_status_connect_refuse_s_length) == F_equal_to) { + *code = F_connect_refuse; return F_none; } @@ -553,6 +583,18 @@ extern "C" { return F_none; } + if (fl_string_compare(string, f_status_continue_s, length, F_status_continue_s_length) == F_equal_to) { + *code = F_continue; + + return F_none; + } + + if (fl_string_compare(string, f_status_continue_not_s, length, F_status_continue_not_s_length) == F_equal_to) { + *code = F_continue_not; + + return F_none; + } + if (fl_string_compare(string, f_status_control_s, length, F_status_control_s_length) == F_equal_to) { *code = F_control; @@ -721,6 +763,18 @@ extern "C" { return F_none; } + if (fl_string_compare(string, f_status_end_s, length, F_status_end_s_length) == F_equal_to) { + *code = F_end; + + return F_none; + } + + if (fl_string_compare(string, f_status_end_not_s, length, F_status_end_not_s_length) == F_equal_to) { + *code = F_end_not; + + return F_none; + } + if (fl_string_compare(string, f_status_eoa_s, length, F_status_eoa_s_length) == F_equal_to) { *code = F_eoa; @@ -1123,14 +1177,14 @@ extern "C" { return F_none; } - if (fl_string_compare(string, f_status_optional_s, length, F_status_optional_s_length) == F_equal_to) { - *code = F_optional; + if (fl_string_compare(string, f_status_option_s, length, F_status_option_s_length) == F_equal_to) { + *code = F_option; return F_none; } - if (fl_string_compare(string, f_status_optional_not_s, length, F_status_optional_not_s_length) == F_equal_to) { - *code = F_optional_not; + if (fl_string_compare(string, f_status_option_not_s, length, F_status_option_not_s_length) == F_equal_to) { + *code = F_option_not; return F_none; } @@ -1219,6 +1273,18 @@ extern "C" { return F_none; } + if (fl_string_compare(string, f_status_progress_s, length, F_status_progress_s_length) == F_equal_to) { + *code = F_progress; + + return F_none; + } + + if (fl_string_compare(string, f_status_progress_not_s, length, F_status_progress_not_s_length) == F_equal_to) { + *code = F_progress_not; + + return F_none; + } + if (fl_string_compare(string, f_status_prohibited_s, length, F_status_prohibited_s_length) == F_equal_to) { *code = F_prohibited; @@ -1405,6 +1471,18 @@ extern "C" { return F_none; } + if (fl_string_compare(string, f_status_start_s, length, F_status_start_s_length) == F_equal_to) { + *code = F_start; + + return F_none; + } + + if (fl_string_compare(string, f_status_start_not_s, length, F_status_start_not_s_length) == F_equal_to) { + *code = F_start_not; + + return F_none; + } + if (fl_string_compare(string, f_status_stop_s, length, F_status_stop_s_length) == F_equal_to) { *code = F_stop; @@ -1417,6 +1495,18 @@ extern "C" { return F_none; } + if (fl_string_compare(string, f_status_stream_s, length, F_status_stream_s_length) == F_equal_to) { + *code = F_stream; + + return F_none; + } + + if (fl_string_compare(string, f_status_stream_not_s, length, F_status_stream_not_s_length) == F_equal_to) { + *code = F_stream_not; + + return F_none; + } + if (fl_string_compare(string, f_status_string_s, length, F_status_string_s_length) == F_equal_to) { *code = F_string; @@ -1501,6 +1591,12 @@ extern "C" { return F_none; } + if (fl_string_compare(string, f_status_time_out_s, length, F_status_time_out_s_length) == F_equal_to) { + *code = F_time_out; + + return F_none; + } + if (fl_string_compare(string, f_status_too_large_s, length, F_status_too_large_s_length) == F_equal_to) { *code = F_too_large; @@ -1513,6 +1609,18 @@ extern "C" { return F_none; } + if (fl_string_compare(string, f_status_type_s, length, F_status_type_s_length) == F_equal_to) { + *code = F_type; + + return F_none; + } + + if (fl_string_compare(string, f_status_type_not_s, length, F_status_type_not_s_length) == F_equal_to) { + *code = F_type_not; + + return F_none; + } + if (fl_string_compare(string, f_status_user_s, length, F_status_user_s_length) == F_equal_to) { *code = F_user; @@ -1766,6 +1874,80 @@ extern "C" { } #endif // _di_F_status_busy_ + #ifndef _di_F_status_network_ + if (fl_string_compare(string, f_status_network_s, length, F_status_network_s_length) == F_equal_to) { + *code = F_network; + + return F_none; + } + + if (fl_string_compare(string, f_status_network_busy_s, length, F_status_network_busy_s_length) == F_equal_to) { + *code = F_network_busy; + + return F_none; + } + + if (fl_string_compare(string, f_status_network_busy_not_s, length, F_status_network_busy_not_s_length) == F_equal_to) { + *code = F_network_busy_not; + + return F_none; + } + + if (fl_string_compare(string, f_status_network_found_s, length, F_status_network_found_s_length) == F_equal_to) { + *code = F_network_found; + + return F_none; + } + + if (fl_string_compare(string, f_status_network_found_not_s, length, F_status_network_found_not_s_length) == F_equal_to) { + *code = F_network_found_not; + + return F_none; + } + + if (fl_string_compare(string, f_status_network_lost_s, length, F_status_network_lost_s_length) == F_equal_to) { + *code = F_network_lost; + + return F_none; + } + + if (fl_string_compare(string, f_status_network_lost_not_s, length, F_status_network_lost_not_s_length) == F_equal_to) { + *code = F_network_lost_not; + + return F_none; + } + + if (fl_string_compare(string, f_status_network_not_s, length, F_status_network_not_s_length) == F_equal_to) { + *code = F_network_not; + + return F_none; + } + + if (fl_string_compare(string, f_status_network_reach_s, length, F_status_network_reach_s_length) == F_equal_to) { + *code = F_network_reach; + + return F_none; + } + + if (fl_string_compare(string, f_status_network_reach_not_s, length, F_status_network_reach_not_s_length) == F_equal_to) { + *code = F_network_reach_not; + + return F_none; + } + + if (fl_string_compare(string, f_status_network_time_s, length, F_status_network_time_s_length) == F_equal_to) { + *code = F_network_time; + + return F_none; + } + + if (fl_string_compare(string, f_status_network_time_not_s, length, F_status_network_time_not_s_length) == F_equal_to) { + *code = F_network_time_not; + + return F_none; + } + #endif // _di_F_status_network_ + #ifndef _di_F_status_number_ if (fl_string_compare(string, f_status_number_s, length, F_status_number_s_length) == F_equal_to) { *code = F_number; -- 1.8.3.1