From: Kevin Day Date: Mon, 26 Apr 2021 00:17:31 +0000 (-0500) Subject: Feature: add support for F_execute and F_execute_not status codes. X-Git-Tag: 0.5.3~18 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=979a0725ebec73f99586a3f0a32c72677fcb8e94;p=fll Feature: add support for F_execute and F_execute_not status codes. --- diff --git a/level_0/f_status/c/status.h b/level_0/f_status/c/status.h index abe7e19..1f77a2c 100644 --- a/level_0/f_status/c/status.h +++ b/level_0/f_status/c/status.h @@ -193,6 +193,8 @@ extern "C" { F_eol_not, F_eos, F_eos_not, + F_execute, + F_execute_not, F_exist, F_exist_not, F_failure, diff --git a/level_1/fl_status/c/status.c b/level_1/fl_status/c/status.c index be8eab1..d880b4f 100644 --- a/level_1/fl_status/c/status.c +++ b/level_1/fl_status/c/status.c @@ -362,6 +362,12 @@ extern "C" { case F_eos_not: *string = FL_status_string_eos_not; break; + case F_execute: + *string = FL_status_string_execute; + break; + case F_execute_not: + *string = FL_status_string_execute_not; + break; case F_exist: *string = FL_status_string_exist; break; diff --git a/level_1/fl_status/c/status.h b/level_1/fl_status/c/status.h index 81be650..468f88c 100644 --- a/level_1/fl_status/c/status.h +++ b/level_1/fl_status/c/status.h @@ -213,6 +213,8 @@ extern "C" { #define FL_status_string_eol_not "F_eol_not" #define FL_status_string_eos "F_eos" #define FL_status_string_eos_not "F_eos_not" + #define FL_status_string_execute "F_execute" + #define FL_status_string_execute_not "F_execute_not" #define FL_status_string_exist "F_exist" #define FL_status_string_exist_not "F_exist_not" #define FL_status_string_failure "F_failure" @@ -382,6 +384,8 @@ extern "C" { #define FL_status_string_eol_not_length 9 #define FL_status_string_eos_length 5 #define FL_status_string_eos_not_length 9 + #define FL_status_string_execute_length 9 + #define FL_status_string_execute_not_length 13 #define FL_status_string_exist_length 7 #define FL_status_string_exist_not_length 11 #define FL_status_string_failure_length 9 diff --git a/level_2/fll_status/c/status.c b/level_2/fll_status/c/status.c index 1833f92..dba1cf2 100644 --- a/level_2/fll_status/c/status.c +++ b/level_2/fll_status/c/status.c @@ -606,6 +606,16 @@ extern "C" { return F_none; } + if (fl_string_compare(string, FL_status_string_execute, length, FL_status_string_execute_length) == F_equal_to) { + *code = F_execute; + return F_none; + } + + if (fl_string_compare(string, FL_status_string_execute_not, length, FL_status_string_execute_not_length) == F_equal_to) { + *code = F_execute_not; + return F_none; + } + if (fl_string_compare(string, FL_status_string_exist, length, FL_status_string_exist_length) == F_equal_to) { *code = F_exist; return F_none;