From 75ae992771334897a987dd5e6daaf76a803f56e3 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Sun, 6 Dec 2020 17:45:10 -0600 Subject: [PATCH] Update: provide F_minor and F_moderate to complement the F_critical status code. --- level_0/f_status/c/status.h | 4 ++++ level_1/fl_status/c/status.c | 12 ++++++++++++ level_1/fl_status/c/status.h | 8 ++++++++ level_2/fll_status/c/status.c | 20 ++++++++++++++++++++ 4 files changed, 44 insertions(+) diff --git a/level_0/f_status/c/status.h b/level_0/f_status/c/status.h index 846fe5e..1ac8025 100644 --- a/level_0/f_status/c/status.h +++ b/level_0/f_status/c/status.h @@ -198,6 +198,10 @@ extern "C" { F_loop_not, F_maybe, F_maybe_not, + F_minor, + F_minor_not, + F_moderate, + F_moderate_not, F_mount, F_mount_not, F_name, diff --git a/level_1/fl_status/c/status.c b/level_1/fl_status/c/status.c index beb1ecf..a437556 100644 --- a/level_1/fl_status/c/status.c +++ b/level_1/fl_status/c/status.c @@ -377,6 +377,18 @@ extern "C" { case F_maybe_not: *string = FL_status_string_maybe_not; break; + case F_minor: + *string = FL_status_string_minor; + break; + case F_minor_not: + *string = FL_status_string_minor_not; + break; + case F_moderate: + *string = FL_status_string_moderate; + break; + case F_moderate_not: + *string = FL_status_string_moderate_not; + break; case F_mount: *string = FL_status_string_mount; break; diff --git a/level_1/fl_status/c/status.h b/level_1/fl_status/c/status.h index 530594c..7357057 100644 --- a/level_1/fl_status/c/status.h +++ b/level_1/fl_status/c/status.h @@ -217,6 +217,10 @@ extern "C" { #define FL_status_string_loop_not "F_loop_not" #define FL_status_string_maybe "F_maybe" #define FL_status_string_maybe_not "F_maybe_not" + #define FL_status_string_minor "F_minor" + #define FL_status_string_minor_not "F_minor_not" + #define FL_status_string_moderate "F_moderate" + #define FL_status_string_moderate_not "F_moderate_not" #define FL_status_string_mount "F_mount" #define FL_status_string_mount_not "F_mount_not" #define FL_status_string_name "F_name" @@ -324,6 +328,10 @@ extern "C" { #define FL_status_string_loop_not_length 10 #define FL_status_string_maybe_length 7 #define FL_status_string_maybe_not_length 11 + #define FL_status_string_minor_length 7 + #define FL_status_string_minor_not_length 11 + #define FL_status_string_moderate_length 10 + #define FL_status_string_moderate_not_length 14 #define FL_status_string_mount_length 7 #define FL_status_string_mount_not_length 11 #define FL_status_string_name_length 6 diff --git a/level_2/fll_status/c/status.c b/level_2/fll_status/c/status.c index ffa62fe..8ec157f 100644 --- a/level_2/fll_status/c/status.c +++ b/level_2/fll_status/c/status.c @@ -631,6 +631,26 @@ extern "C" { return F_none; } + if (fl_string_compare(string, FL_status_string_minor, length, FL_status_string_minor_length) == F_equal_to) { + *code = F_minor; + return F_none; + } + + if (fl_string_compare(string, FL_status_string_minor_not, length, FL_status_string_minor_not_length) == F_equal_to) { + *code = F_minor_not; + return F_none; + } + + if (fl_string_compare(string, FL_status_string_moderate, length, FL_status_string_moderate_length) == F_equal_to) { + *code = F_moderate; + return F_none; + } + + if (fl_string_compare(string, FL_status_string_moderate_not, length, FL_status_string_moderate_not_length) == F_equal_to) { + *code = F_moderate_not; + return F_none; + } + if (fl_string_compare(string, FL_status_string_mount, length, FL_status_string_mount_length) == F_equal_to) { *code = F_mount; return F_none; -- 1.8.3.1