From: Kevin Day Date: Thu, 7 Apr 2022 06:18:32 +0000 (-0500) Subject: Update: Add new return status codes: F_debug, F_error, F_fine, and F_warning (again). X-Git-Tag: 0.5.10~228 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=39e4c51139b1b559359eba37da0dcf434de8b169;p=fll Update: Add new return status codes: F_debug, F_error, F_fine, and F_warning (again). I missed a couple of files with the "git add" command. Also add handling of F_error to the standard error handler. --- diff --git a/level_0/f_status_string/c/status_string.c b/level_0/f_status_string/c/status_string.c index 516fb7a..28ad024 100644 --- a/level_0/f_status_string/c/status_string.c +++ b/level_0/f_status_string/c/status_string.c @@ -337,6 +337,17 @@ extern "C" { const f_string_static_t f_status_write_only_s = macro_f_string_static_t_initialize(F_status_write_only_s, 0, F_status_write_only_s_length); #endif // _di_f_status_basic_ + #ifndef _di_f_status_return_ + const f_string_static_t f_status_debug_s = macro_f_string_static_t_initialize(F_status_debug_s, 0, F_status_debug_s_length); + const f_string_static_t f_status_debug_not_s = macro_f_string_static_t_initialize(F_status_debug_not_s, 0, F_status_debug_not_s_length); + const f_string_static_t f_status_error_s = macro_f_string_static_t_initialize(F_status_error_s, 0, F_status_error_s_length); + const f_string_static_t f_status_error_not_s = macro_f_string_static_t_initialize(F_status_error_not_s, 0, F_status_error_not_s_length); + const f_string_static_t f_status_fine_s = macro_f_string_static_t_initialize(F_status_fine_s, 0, F_status_fine_s_length); + const f_string_static_t f_status_fine_not_s = macro_f_string_static_t_initialize(F_status_fine_not_s, 0, F_status_fine_not_s_length); + const f_string_static_t f_status_warning_s = macro_f_string_static_t_initialize(F_status_warning_s, 0, F_status_warning_s_length); + const f_string_static_t f_status_warning_not_s = macro_f_string_static_t_initialize(F_status_warning_not_s, 0, F_status_warning_not_s_length); + #endif // _di_f_status_return_ + #ifndef _di_f_status_array_ const f_string_static_t f_status_array_s = macro_f_string_static_t_initialize(F_status_array_s, 0, F_status_array_s_length); const f_string_static_t f_status_array_not_s = macro_f_string_static_t_initialize(F_status_array_not_s, 0, F_status_array_not_s_length); @@ -1893,6 +1904,40 @@ extern "C" { break; #endif // _di_f_status_basic_ + #ifndef _di_f_status_return_ + case F_debug: + *name = f_status_debug_s; + break; + + case F_debug_not: + *name = f_status_debug_not_s; + break; + + case F_error: + *name = f_status_error_s; + break; + + case F_error_not: + *name = f_status_error_not_s; + break; + + case F_fine: + *name = f_status_fine_s; + break; + + case F_fine_not: + *name = f_status_fine_not_s; + break; + + case F_warning: + *name = f_status_warning_s; + break; + + case F_warning_not: + *name = f_status_warning_not_s; + break; + #endif // _di_f_status_return_ + #ifndef _di_f_status_array_ case F_array: *name = f_status_array_s; diff --git a/level_0/f_status_string/c/status_string.h b/level_0/f_status_string/c/status_string.h index deeaaf1..7acc775 100644 --- a/level_0/f_status_string/c/status_string.h +++ b/level_0/f_status_string/c/status_string.h @@ -1006,6 +1006,35 @@ extern "C" { extern const f_string_static_t f_status_write_only_s; #endif // _di_f_status_basic_ + #ifndef _di_f_status_return_ + #define F_status_debug_s "F_debug" + #define F_status_debug_not_s "F_debug_not" + #define F_status_error_s "F_error" + #define F_status_error_not_s "F_error_not" + #define F_status_fine_s "F_fine" + #define F_status_fine_not_s "F_fine_not" + #define F_status_warning_s "F_warning" + #define F_status_warning_not_s "F_warning_not" + + #define F_status_debug_s_length 7 + #define F_status_debug_not_s_length 11 + #define F_status_error_s_length 7 + #define F_status_error_not_s_length 11 + #define F_status_fine_s_length 6 + #define F_status_fine_not_s_length 10 + #define F_status_warning_s_length 9 + #define F_status_warning_not_s_length 13 + + extern const f_string_static_t f_status_debug_s; + extern const f_string_static_t f_status_debug_not_s; + extern const f_string_static_t f_status_error_s; + extern const f_string_static_t f_status_error_not_s; + extern const f_string_static_t f_status_fine_s; + extern const f_string_static_t f_status_fine_not_s; + extern const f_string_static_t f_status_warning_s; + extern const f_string_static_t f_status_warning_not_s; + #endif // _di_f_status_return_ + #ifndef _di_f_status_array_ #define F_status_array_s "F_array" #define F_status_array_not_s "F_array_not"