]> Kevux Git Server - fll/commitdiff
Feature: add F_ready, F_ready_not, F_wait, and F_wait_not statuses.
authorKevin Day <thekevinday@gmail.com>
Wed, 9 Dec 2020 04:38:29 +0000 (22:38 -0600)
committerKevin Day <thekevinday@gmail.com>
Wed, 9 Dec 2020 04:38:29 +0000 (22:38 -0600)
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 1ac8025eac8717857e8920ea00e945bdb4796b36..a49e09be36685d9f1c08d82bcc1ed6d80cff0a1b 100644 (file)
@@ -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,
index a43755646021b17a1728dbeb554ae729b18f2397..68ea3460c0d84e2bf2b1ab2c55c8796bc0177c7b 100644 (file)
@@ -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;
index 7357057871eba4102ef0be3ce3f289e7f7f8a342..4985b7582aa2e8e4bb28088b16de24445487e60d 100644 (file)
@@ -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
index 8ec157f97e69f852c614a02a5126d7e7e9077856..c209c881f15e708c04c4d4012d9633c0b4c600f8 100644 (file)
@@ -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;