From: Kevin Day Date: Wed, 9 Dec 2020 04:38:29 +0000 (-0600) Subject: Feature: add F_ready, F_ready_not, F_wait, and F_wait_not statuses. X-Git-Tag: 0.5.2~31 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=108a6759fdc49426501f82a45781669612118261;p=fll Feature: add F_ready, F_ready_not, F_wait, and F_wait_not statuses. --- diff --git a/level_0/f_status/c/status.h b/level_0/f_status/c/status.h index 1ac8025..a49e09b 100644 --- a/level_0/f_status/c/status.h +++ b/level_0/f_status/c/status.h @@ -221,6 +221,8 @@ extern "C" { F_read, F_read_not, F_read_only, + F_ready, + F_ready_not, F_recurse, F_recurse_not, F_relative, @@ -249,6 +251,8 @@ extern "C" { F_valid_not, F_value, F_value_not, + F_wait, + F_wait_not, F_warn, F_warn_not, F_write, diff --git a/level_1/fl_status/c/status.c b/level_1/fl_status/c/status.c index a437556..68ea346 100644 --- a/level_1/fl_status/c/status.c +++ b/level_1/fl_status/c/status.c @@ -446,6 +446,12 @@ extern "C" { case F_read_only: *string = FL_status_string_read_only; break; + case F_ready: + *string = FL_status_string_ready; + break; + case F_ready_not: + *string = FL_status_string_ready_not; + break; case F_recurse: *string = FL_status_string_recurse; break; @@ -530,6 +536,12 @@ extern "C" { case F_value_not: *string = FL_status_string_value_not; break; + case F_wait: + *string = FL_status_string_wait; + break; + case F_wait_not: + *string = FL_status_string_wait_not; + break; case F_warn: *string = FL_status_string_warn; break; diff --git a/level_1/fl_status/c/status.h b/level_1/fl_status/c/status.h index 7357057..4985b75 100644 --- a/level_1/fl_status/c/status.h +++ b/level_1/fl_status/c/status.h @@ -240,6 +240,8 @@ extern "C" { #define FL_status_string_read "F_read" #define FL_status_string_read_not "F_read_not" #define FL_status_string_read_only "F_read_only" + #define FL_status_string_ready "F_ready" + #define FL_status_string_ready_not "F_ready_not" #define FL_status_string_recurse "F_recurse" #define FL_status_string_recurse_not "F_recurse_not" #define FL_status_string_relative "F_relative" @@ -268,6 +270,8 @@ extern "C" { #define FL_status_string_valid_not "F_valid_not" #define FL_status_string_value "F_value" #define FL_status_string_value_not "F_value_not" + #define FL_status_string_wait "F_wait" + #define FL_status_string_wait_not "F_wait_not" #define FL_status_string_warn "F_warn" #define FL_status_string_warn_not "F_warn_not" #define FL_status_string_write "F_write" @@ -351,6 +355,8 @@ extern "C" { #define FL_status_string_read_length 6 #define FL_status_string_read_not_length 10 #define FL_status_string_read_only_length 11 + #define FL_status_string_ready_length 7 + #define FL_status_string_ready_not_length 11 #define FL_status_string_recurse_length 9 #define FL_status_string_recurse_not_length 13 #define FL_status_string_relative_length 10 @@ -379,6 +385,8 @@ extern "C" { #define FL_status_string_valid_not_length 11 #define FL_status_string_value_length 7 #define FL_status_string_value_not_length 11 + #define FL_status_string_wait_length 6 + #define FL_status_string_wait_not_length 10 #define FL_status_string_warn_length 6 #define FL_status_string_warn_not_length 10 #define FL_status_string_write_length 7 diff --git a/level_2/fll_status/c/status.c b/level_2/fll_status/c/status.c index 8ec157f..c209c88 100644 --- a/level_2/fll_status/c/status.c +++ b/level_2/fll_status/c/status.c @@ -746,6 +746,16 @@ extern "C" { return F_none; } + if (fl_string_compare(string, FL_status_string_ready, length, FL_status_string_ready_length) == F_equal_to) { + *code = F_ready; + return F_none; + } + + if (fl_string_compare(string, FL_status_string_ready_not, length, FL_status_string_ready_not_length) == F_equal_to) { + *code = F_ready_not; + return F_none; + } + if (fl_string_compare(string, FL_status_string_recurse, length, FL_status_string_recurse_length) == F_equal_to) { *code = F_recurse; return F_none; @@ -886,6 +896,16 @@ extern "C" { return F_none; } + if (fl_string_compare(string, FL_status_string_wait, length, FL_status_string_wait_length) == F_equal_to) { + *code = F_wait; + return F_none; + } + + if (fl_string_compare(string, FL_status_string_wait_not, length, FL_status_string_wait_not_length) == F_equal_to) { + *code = F_wait_not; + return F_none; + } + if (fl_string_compare(string, FL_status_string_warn, length, FL_status_string_warn_length) == F_equal_to) { *code = F_warn; return F_none;