From 83c912476155f6fa4660319051de97584db2af1b Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Fri, 1 Jan 2021 21:53:53 -0600 Subject: [PATCH] Feature: add F_time and F_time_not. --- level_0/f_status/c/status.h | 2 ++ level_1/fl_status/c/status.c | 6 ++++++ level_1/fl_status/c/status.h | 4 ++++ level_2/fll_status/c/status.c | 10 ++++++++++ 4 files changed, 22 insertions(+) diff --git a/level_0/f_status/c/status.h b/level_0/f_status/c/status.h index fc02664..8d17fa5 100644 --- a/level_0/f_status/c/status.h +++ b/level_0/f_status/c/status.h @@ -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, diff --git a/level_1/fl_status/c/status.c b/level_1/fl_status/c/status.c index 69520e1..1a5aa85 100644 --- a/level_1/fl_status/c/status.c +++ b/level_1/fl_status/c/status.c @@ -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; diff --git a/level_1/fl_status/c/status.h b/level_1/fl_status/c/status.h index 7b53a6c..8fe136d 100644 --- a/level_1/fl_status/c/status.h +++ b/level_1/fl_status/c/status.h @@ -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 diff --git a/level_2/fll_status/c/status.c b/level_2/fll_status/c/status.c index c02570c..b7dfa55 100644 --- a/level_2/fll_status/c/status.c +++ b/level_2/fll_status/c/status.c @@ -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; -- 1.8.3.1