]> Kevux Git Server - fll/commitdiff
Feature: add F_recurse status code
authorKevin Day <thekevinday@gmail.com>
Fri, 19 Jun 2020 20:34:06 +0000 (15:34 -0500)
committerKevin Day <thekevinday@gmail.com>
Fri, 19 Jun 2020 20:34:06 +0000 (15:34 -0500)
The recurse status code is intended to be used for situations involving recursive operations.

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 49b644f0b5368b547c767f1db5eb83faa2370184..286b48244e0edeee5a51d46f49d3fe887b5c7e16 100644 (file)
@@ -178,6 +178,7 @@ extern "C" {
       F_process_too_many,
       F_prohibited,
       F_read_only,
+      F_recurse,
       F_search,
       F_space_not,
       F_stop,
index 98f9bed4888ebb47d1ef5cd1632569681e65aebd..1fc454900761e8656df84b8f2143d3ff20b66c62 100644 (file)
@@ -320,6 +320,9 @@ extern "C" {
         case F_read_only:
           *string = FL_status_string_read_only;
           break;
+        case F_recurse:
+          *string = FL_status_string_recurse;
+          break;
         case F_search:
           *string = FL_status_string_search;
           break;
index 3ff9b2e867319e5b779fbdf00845af557b4bdc66..06cfde1a0fa7af5e448d463e80001787b7e85827 100644 (file)
@@ -197,6 +197,7 @@ extern "C" {
     #define FL_status_string_process_too_many "F_process_too_many"
     #define FL_status_string_prohibited       "F_prohibited"
     #define FL_status_string_read_only        "F_read_only"
+    #define FL_status_string_recurse          "F_recurse"
     #define FL_status_string_search           "F_search"
     #define FL_status_string_space_not        "F_space_not"
     #define FL_status_string_stop             "F_stop"
@@ -244,6 +245,7 @@ extern "C" {
     #define FL_status_string_process_too_many_length 18
     #define FL_status_string_prohibited_length       12
     #define FL_status_string_read_only_length        11
+    #define FL_status_string_recurse_length          7
     #define FL_status_string_search_length           8
     #define FL_status_string_space_not_length        11
     #define FL_status_string_stop_length             6
index 1d63071b9b76601df9b6067f20ee416b32571401..877c857561d28dd995b20f12514038c55cac7638 100644 (file)
@@ -536,6 +536,11 @@ extern "C" {
         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;
+      }
+
       if (fl_string_compare(string, FL_status_string_search, length, FL_status_string_search_length) == F_equal_to) {
         *code = F_search;
         return F_none;