]> Kevux Git Server - fll/commitdiff
Update: Handle F_implement_not and F_support_not in fll_error.
authorKevin Day <Kevin@kevux.org>
Sat, 2 Aug 2025 03:53:49 +0000 (22:53 -0500)
committerKevin Day <Kevin@kevux.org>
Sat, 2 Aug 2025 03:53:49 +0000 (22:53 -0500)
The Not Implemented and Not Supported error codes should be common enough to be handled by the standard FLL error print functions.

level_2/fll_error/c/error/string.c
level_2/fll_error/c/error/string.h
level_2/fll_error/c/private-error.c

index 072d5a2998a487789e03b329557957fadc1c3c3d..75cd2588a3cf86aab6c8b715a8ce1975c1d63a0d 100644 (file)
@@ -83,6 +83,8 @@ extern "C" {
     "%[' is too large for the parameter '%]",
     "%[' is positive, which is not allowed for the parameter '%]",
     "%[' is too small for the parameter '%]",
+    "%[%QNot implemented",
+    "%[%QNot supported",
   };
 #endif // _di_fll_error_s_a_
 
index eca47cc3f1202ca07eae99e0d12abba9fa8d170d..0a09a921a7641cf7e43f80886af9bd6b293ead62 100644 (file)
@@ -114,6 +114,8 @@ extern "C" {
     fll_error_s_073_too_large_for_parameter_e,
     fll_error_s_074_positive_not_allowed_e,
     fll_error_s_075_too_small_for_parameter_e,
+    fll_error_s_076_implement_not_e,
+    fll_error_s_077_support_not_e,
   }; // enum
 #endif // _di_fll_error_s_e_
 
index fb008ae9806b53db1fdf92dee23338154f1a3773..7c2701df7c0b98cf5bdab57d7e1259f51c515624 100644 (file)
@@ -79,6 +79,10 @@ extern "C" {
       return private_fll_error_print_simple(print, function, macro_fll_error_s(004_file_not_found));
     }
 
+    if (status == F_implement_not) {
+      return private_fll_error_print_simple(print, function, macro_fll_error_s(076_implement_not));
+    }
+
     if (status == F_memory) {
       return private_fll_error_print_simple(print, function, macro_fll_error_s(005_memory_problem));
     }
@@ -95,6 +99,10 @@ extern "C" {
       return private_fll_error_print_simple(print, function, macro_fll_error_s(007_max_str_length));
     }
 
+    if (status == F_support_not) {
+      return private_fll_error_print_simple(print, function, macro_fll_error_s(077_support_not));
+    }
+
     if (status == F_utf_not) {
       return private_fll_error_print_simple(print, function, macro_fll_error_s(008_invalid_utf8_char));
     }