From d40789db9fc5820c58fa9cb7c335d82c2fa976be Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Mon, 28 Feb 2022 18:49:03 -0600 Subject: [PATCH] Update: Add local and remote status codes. --- level_0/f_status/c/status.h | 4 ++++ level_0/f_status_string/c/status_string.c | 20 ++++++++++++++++++++ level_0/f_status_string/c/status_string.h | 12 ++++++++++++ level_2/fll_status_string/c/status_string.c | 24 ++++++++++++++++++++++++ 4 files changed, 60 insertions(+) diff --git a/level_0/f_status/c/status.h b/level_0/f_status/c/status.h index d9f3a78..7267785 100644 --- a/level_0/f_status/c/status.h +++ b/level_0/f_status/c/status.h @@ -280,6 +280,8 @@ extern "C" { F_link_not, F_live, F_live_not, + F_local, + F_local_not, F_lock, F_lock_not, F_loop, @@ -345,6 +347,8 @@ extern "C" { F_recurse_not, F_relative, F_relative_not, + F_remote, + F_remote_not, F_require, F_require_not, F_resource, diff --git a/level_0/f_status_string/c/status_string.c b/level_0/f_status_string/c/status_string.c index 6aa91ce..fd74d86 100644 --- a/level_0/f_status_string/c/status_string.c +++ b/level_0/f_status_string/c/status_string.c @@ -198,6 +198,8 @@ extern "C" { const f_string_static_t f_status_link_not_s = macro_f_string_static_t_initialize(F_status_link_not_s, 0, F_status_link_not_s_length); const f_string_static_t f_status_live_s = macro_f_string_static_t_initialize(F_status_live_s, 0, F_status_live_s_length); const f_string_static_t f_status_live_not_s = macro_f_string_static_t_initialize(F_status_live_not_s, 0, F_status_live_not_s_length); + const f_string_static_t f_status_local_s = macro_f_string_static_t_initialize(F_status_local_s, 0, F_status_local_s_length); + const f_string_static_t f_status_local_not_s = macro_f_string_static_t_initialize(F_status_local_not_s, 0, F_status_local_not_s_length); const f_string_static_t f_status_lock_s = macro_f_string_static_t_initialize(F_status_lock_s, 0, F_status_lock_s_length); const f_string_static_t f_status_lock_not_s = macro_f_string_static_t_initialize(F_status_lock_not_s, 0, F_status_lock_not_s_length); const f_string_static_t f_status_loop_s = macro_f_string_static_t_initialize(F_status_loop_s, 0, F_status_loop_s_length); @@ -263,6 +265,8 @@ extern "C" { const f_string_static_t f_status_recurse_not_s = macro_f_string_static_t_initialize(F_status_recurse_not_s, 0, F_status_recurse_not_s_length); const f_string_static_t f_status_relative_s = macro_f_string_static_t_initialize(F_status_relative_s, 0, F_status_relative_s_length); const f_string_static_t f_status_relative_not_s = macro_f_string_static_t_initialize(F_status_relative_not_s, 0, F_status_relative_not_s_length); + const f_string_static_t f_status_remote_s = macro_f_string_static_t_initialize(F_status_remote_s, 0, F_status_remote_s_length); + const f_string_static_t f_status_remote_not_s = macro_f_string_static_t_initialize(F_status_remote_not_s, 0, F_status_remote_not_s_length); const f_string_static_t f_status_require_s = macro_f_string_static_t_initialize(F_status_require_s, 0, F_status_require_s_length); const f_string_static_t f_status_require_not_s = macro_f_string_static_t_initialize(F_status_require_not_s, 0, F_status_require_not_s_length); const f_string_static_t f_status_resource_s = macro_f_string_static_t_initialize(F_status_resource_s, 0, F_status_resource_s_length); @@ -1338,6 +1342,14 @@ extern "C" { *name = f_status_live_not_s; break; + case F_local: + *name = f_status_local_s; + break; + + case F_local_not: + *name = f_status_local_not_s; + break; + case F_lock: *name = f_status_lock_s; break; @@ -1598,6 +1610,14 @@ extern "C" { *name = f_status_relative_not_s; break; + case F_remote: + *name = f_status_remote_s; + break; + + case F_remote_not: + *name = f_status_remote_not_s; + break; + case F_require: *name = f_status_require_s; break; diff --git a/level_0/f_status_string/c/status_string.h b/level_0/f_status_string/c/status_string.h index c15f7f9..e07d079 100644 --- a/level_0/f_status_string/c/status_string.h +++ b/level_0/f_status_string/c/status_string.h @@ -351,6 +351,8 @@ extern "C" { #define F_status_link_not_s "F_link_not" #define F_status_live_s "F_live" #define F_status_live_not_s "F_live_not" + #define F_status_local_s "F_local" + #define F_status_local_not_s "F_local_not" #define F_status_lock_s "F_lock" #define F_status_lock_not_s "F_lock_not" #define F_status_loop_s "F_loop" @@ -416,6 +418,8 @@ extern "C" { #define F_status_recurse_not_s "F_recurse_not" #define F_status_relative_s "F_relative" #define F_status_relative_not_s "F_relative_not" + #define F_status_remote_s "F_remote" + #define F_status_remote_not_s "F_remote_not" #define F_status_require_s "F_require" #define F_status_require_not_s "F_require_not" #define F_status_resource_s "F_resource" @@ -595,6 +599,8 @@ extern "C" { #define F_status_link_not_s_length 10 #define F_status_live_s_length 6 #define F_status_live_not_s_length 10 + #define F_status_local_s_length 7 + #define F_status_local_not_s_length 11 #define F_status_lock_s_length 6 #define F_status_lock_not_s_length 10 #define F_status_loop_s_length 6 @@ -660,6 +666,8 @@ extern "C" { #define F_status_recurse_not_s_length 13 #define F_status_relative_s_length 10 #define F_status_relative_not_s_length 14 + #define F_status_remote_s_length 8 + #define F_status_remote_not_s_length 12 #define F_status_require_s_length 9 #define F_status_require_not_s_length 13 #define F_status_resource_s_length 10 @@ -839,6 +847,8 @@ extern "C" { extern const f_string_static_t f_status_link_not_s; extern const f_string_static_t f_status_live_s; extern const f_string_static_t f_status_live_not_s; + extern const f_string_static_t f_status_local_s; + extern const f_string_static_t f_status_local_not_s; extern const f_string_static_t f_status_lock_s; extern const f_string_static_t f_status_lock_not_s; extern const f_string_static_t f_status_loop_s; @@ -904,6 +914,8 @@ extern "C" { extern const f_string_static_t f_status_recurse_not_s; extern const f_string_static_t f_status_relative_s; extern const f_string_static_t f_status_relative_not_s; + extern const f_string_static_t f_status_remote_s; + extern const f_string_static_t f_status_remote_not_s; extern const f_string_static_t f_status_require_s; extern const f_string_static_t f_status_require_not_s; extern const f_string_static_t f_status_resource_s; diff --git a/level_2/fll_status_string/c/status_string.c b/level_2/fll_status_string/c/status_string.c index 8422cd9..953e0db 100644 --- a/level_2/fll_status_string/c/status_string.c +++ b/level_2/fll_status_string/c/status_string.c @@ -1146,6 +1146,18 @@ extern "C" { return F_none; } + if (fl_string_dynamic_compare(name, f_status_local_s) == F_equal_to) { + *code = F_local; + + return F_none; + } + + if (fl_string_dynamic_compare(name, f_status_local_not_s) == F_equal_to) { + *code = F_local_not; + + return F_none; + } + if (fl_string_dynamic_compare(name, f_status_lock_s) == F_equal_to) { *code = F_lock; @@ -1536,6 +1548,18 @@ extern "C" { return F_none; } + if (fl_string_dynamic_compare(name, f_status_remote_s) == F_equal_to) { + *code = F_remote; + + return F_none; + } + + if (fl_string_dynamic_compare(name, f_status_remote_not_s) == F_equal_to) { + *code = F_remote_not; + + return F_none; + } + if (fl_string_dynamic_compare(name, f_status_require_s) == F_equal_to) { *code = F_require; -- 1.8.3.1