]> Kevux Git Server - fll/commitdiff
Update: add F_file_not and F_link_not status codes.
authorKevin Day <thekevinday@gmail.com>
Fri, 20 Nov 2020 04:14:15 +0000 (22:14 -0600)
committerKevin Day <thekevinday@gmail.com>
Fri, 20 Nov 2020 04:14:15 +0000 (22:14 -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 e9f5324c50fa8a61bc920a691b0955e42ef860fe..7e7e9b63208371c402e6b7eae3a891a86bc3c684 100644 (file)
@@ -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,
index 3b2ed6432ee18b654bc2327f0bf909e26f03d4e1..e8b94347a60abceee6340c070111d29f7360b242 100644 (file)
@@ -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;
index a0f5cc4c9ad6a2ff6eb899a5e20cba64cfc67eda..e94527b01dc055c1683656c846f09ef38584b0c5 100644 (file)
@@ -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
index d2ffe5f7eaa4f6c14c94ae95d1ff5974f55b657e..89807ad1bc960ef37f469aa7ac7babc82a95d3bf 100644 (file)
@@ -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;