]> Kevux Git Server - fll/commitdiff
Feature: add support for F_execute and F_execute_not status codes.
authorKevin Day <thekevinday@gmail.com>
Mon, 26 Apr 2021 00:17:31 +0000 (19:17 -0500)
committerKevin Day <thekevinday@gmail.com>
Mon, 26 Apr 2021 00:17:31 +0000 (19:17 -0500)
level_0/f_status/c/status.h
level_1/fl_status/c/status.c
level_1/fl_status/c/status.h
level_2/fll_status/c/status.c

index abe7e199acdf7ded87392018a0e2aea6a52acc5e..1f77a2c3672c6fcdca87ab4e5a441dc92e82faaa 100644 (file)
@@ -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,
index be8eab10b881c26ff0c6c17c170637bc96d751b0..d880b4f2f917978f78b8f3fb8cc4bc901a4ea64e 100644 (file)
@@ -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;
index 81be650faa73bc2a4cfbac6bf9357270684122a0..468f88c367bb462469c26db51476e58993f077ef 100644 (file)
@@ -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
index 1833f92ce14b43f19668ab3eaae814e21f4d7544..dba1cf2edf85b49de7673b9f6fb4d3da003f13a2 100644 (file)
@@ -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;