]> Kevux Git Server - fll/commitdiff
Feature: add F_time and F_time_not.
authorKevin Day <thekevinday@gmail.com>
Sat, 2 Jan 2021 03:53:53 +0000 (21:53 -0600)
committerKevin Day <thekevinday@gmail.com>
Sat, 2 Jan 2021 03:53:53 +0000 (21:53 -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 fc02664a5a18759b2f25dc782ec3f491a6e225a7..8d17fa5a178f39410ca020e86b531c0ae293a4f6 100644 (file)
@@ -271,6 +271,8 @@ extern "C" {
       F_syntax_not,
       F_thread,
       F_thread_not,
+      F_time,
+      F_time_not,
       F_user,
       F_user_not,
       F_utf,
index 69520e1309df54d436910c3ed2106d8cc631d566..1a5aa85c98e21af73462b6efc4cb582c2f5cbe9c 100644 (file)
@@ -590,6 +590,12 @@ extern "C" {
         case F_thread_not:
           *string = FL_status_string_thread_not;
           break;
+        case F_time:
+          *string = FL_status_string_time;
+          break;
+        case F_time_not:
+          *string = FL_status_string_time_not;
+          break;
         case F_known:
           *string = FL_status_string_known;
           break;
index 7b53a6cbe2f8d0f9974dcddf5c9f96f91d53c306..8fe136d3edeb882c9826ec55f022ff9d1e1e41e7 100644 (file)
@@ -288,6 +288,8 @@ extern "C" {
     #define FL_status_string_syntax_not        "F_syntax_not"
     #define FL_status_string_thread            "F_thread"
     #define FL_status_string_thread_not        "F_thread_not"
+    #define FL_status_string_time              "F_time"
+    #define FL_status_string_time_not          "F_time_not"
     #define FL_status_string_supported         "F_supported"
     #define FL_status_string_supported_not     "F_supported_not"
     #define FL_status_string_user              "F_user"
@@ -435,6 +437,8 @@ extern "C" {
     #define FL_status_string_syntax_not_length        12
     #define FL_status_string_thread_length            8
     #define FL_status_string_thread_not_length        12
+    #define FL_status_string_time_length              6
+    #define FL_status_string_time_not_length          10
     #define FL_status_string_user_length              6
     #define FL_status_string_user_not_length          10
     #define FL_status_string_utf_length               5
index c02570c56b5ca95c9876fa95f85b36c02e06f4b7..b7dfa55f0082be80bd6496efbe1407a606c10721 100644 (file)
@@ -996,6 +996,16 @@ extern "C" {
         return F_none;
       }
 
+      if (fl_string_compare(string, FL_status_string_time, length, FL_status_string_time_length) == F_equal_to) {
+        *code = F_time;
+        return F_none;
+      }
+
+      if (fl_string_compare(string, FL_status_string_time_not, length, FL_status_string_time_not_length) == F_equal_to) {
+        *code = F_time_not;
+        return F_none;
+      }
+
       if (fl_string_compare(string, FL_status_string_user, length, FL_status_string_user_length) == F_equal_to) {
         *code = F_user;
         return F_none;