From 43675cc14103bac6a4e449aebc41b8b084911e61 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Thu, 19 Nov 2020 22:14:15 -0600 Subject: [PATCH] Update: add F_file_not and F_link_not status codes. --- level_0/f_status/c/status.h | 2 ++ level_1/fl_status/c/status.c | 6 ++++++ level_1/fl_status/c/status.h | 4 ++++ level_2/fll_status/c/status.c | 10 ++++++++++ 4 files changed, 22 insertions(+) diff --git a/level_0/f_status/c/status.h b/level_0/f_status/c/status.h index e9f5324..7e7e9b6 100644 --- a/level_0/f_status/c/status.h +++ b/level_0/f_status/c/status.h @@ -164,6 +164,7 @@ extern "C" { F_failure, F_fork, F_found, + F_found_not, F_incomplete, F_input, F_input_output, @@ -171,6 +172,7 @@ extern "C" { F_invalid, F_output, F_link, + F_link_not, F_lock, F_lock_not, F_loop, diff --git a/level_1/fl_status/c/status.c b/level_1/fl_status/c/status.c index 3b2ed64..e8b9434 100644 --- a/level_1/fl_status/c/status.c +++ b/level_1/fl_status/c/status.c @@ -275,6 +275,9 @@ extern "C" { case F_found: *string = FL_status_string_found; break; + case F_found_not: + *string = FL_status_string_found_not; + break; case F_incomplete: *string = FL_status_string_incomplete; break; @@ -296,6 +299,9 @@ extern "C" { case F_link: *string = FL_status_string_link; break; + case F_link_not: + *string = FL_status_string_link_not; + break; case F_lock: *string = FL_status_string_lock; break; diff --git a/level_1/fl_status/c/status.h b/level_1/fl_status/c/status.h index a0f5cc4..e94527b 100644 --- a/level_1/fl_status/c/status.h +++ b/level_1/fl_status/c/status.h @@ -183,6 +183,7 @@ extern "C" { #define FL_status_string_failure "F_failure" #define FL_status_string_fork "F_fork" #define FL_status_string_found "F_found" + #define FL_status_string_found_not "F_found_not" #define FL_status_string_incomplete "F_incomplete" #define FL_status_string_input "F_input" #define FL_status_string_input_output "F_input_output" @@ -190,6 +191,7 @@ extern "C" { #define FL_status_string_invalid "F_invalid" #define FL_status_string_output "F_output" #define FL_status_string_link "F_link" + #define FL_status_string_link_not "F_link_not" #define FL_status_string_lock "F_lock" #define FL_status_string_lock_not "F_lock_not" #define FL_status_string_loop "F_loop" @@ -243,6 +245,7 @@ extern "C" { #define FL_status_string_failure_length 9 #define FL_status_string_fork_length 6 #define FL_status_string_found_length 7 + #define FL_status_string_found_not_length 11 #define FL_status_string_incomplete_length 12 #define FL_status_string_input_length 7 #define FL_status_string_input_output_length 14 @@ -250,6 +253,7 @@ extern "C" { #define FL_status_string_invalid_length 9 #define FL_status_string_output_length 8 #define FL_status_string_link_length 6 + #define FL_status_string_link_not_length 10 #define FL_status_string_lock_length 6 #define FL_status_string_lock_not_length 10 #define FL_status_string_loop_length 6 diff --git a/level_2/fll_status/c/status.c b/level_2/fll_status/c/status.c index d2ffe5f..89807ad 100644 --- a/level_2/fll_status/c/status.c +++ b/level_2/fll_status/c/status.c @@ -461,6 +461,11 @@ extern "C" { return F_none; } + if (fl_string_compare(string, FL_status_string_found_not, length, FL_status_string_found_not_length) == F_equal_to) { + *code = F_found_not; + return F_none; + } + if (fl_string_compare(string, FL_status_string_incomplete, length, FL_status_string_incomplete_length) == F_equal_to) { *code = F_incomplete; return F_none; @@ -496,6 +501,11 @@ extern "C" { return F_none; } + if (fl_string_compare(string, FL_status_string_link_not, length, FL_status_string_link_not_length) == F_equal_to) { + *code = F_link_not; + return F_none; + } + if (fl_string_compare(string, FL_status_string_lock, length, FL_status_string_lock_length) == F_equal_to) { *code = F_lock; return F_none; -- 1.8.3.1