]> Kevux Git Server - fll/commitdiff
Update: Add new return status codes: F_debug, F_error, F_fine, and F_warning (again).
authorKevin Day <thekevinday@gmail.com>
Thu, 7 Apr 2022 06:18:32 +0000 (01:18 -0500)
committerKevin Day <thekevinday@gmail.com>
Thu, 7 Apr 2022 06:18:32 +0000 (01:18 -0500)
I missed a couple of files with the "git add" command.

Also add handling of F_error to the standard error handler.

level_0/f_status_string/c/status_string.c
level_0/f_status_string/c/status_string.h

index 516fb7ac5551384b391f205c7eb3978ede20c179..28ad02477d1bcfb65cc1abce6c37ae20a6bf156b 100644 (file)
@@ -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;
index deeaaf136c7d2bf80864003cb7908aed1a66d0ad..7acc77590d849f70e8f861c1f8335e440cf2adac 100644 (file)
@@ -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"