From: Kevin Day Date: Sat, 2 Jan 2021 03:53:53 +0000 (-0600) Subject: Feature: add F_time and F_time_not. X-Git-Tag: 0.5.3~140 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=83c912476155f6fa4660319051de97584db2af1b;p=fll Feature: add F_time and F_time_not. --- 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;