From b7d6114daeb621793b6016c68550b322c90cf2b4 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Fri, 1 Aug 2025 22:53:49 -0500 Subject: [PATCH] Update: Handle F_implement_not and F_support_not in fll_error. 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 | 2 ++ level_2/fll_error/c/error/string.h | 2 ++ level_2/fll_error/c/private-error.c | 8 ++++++++ 3 files changed, 12 insertions(+) diff --git a/level_2/fll_error/c/error/string.c b/level_2/fll_error/c/error/string.c index 072d5a2..75cd258 100644 --- a/level_2/fll_error/c/error/string.c +++ b/level_2/fll_error/c/error/string.c @@ -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_ diff --git a/level_2/fll_error/c/error/string.h b/level_2/fll_error/c/error/string.h index eca47cc..0a09a92 100644 --- a/level_2/fll_error/c/error/string.h +++ b/level_2/fll_error/c/error/string.h @@ -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_ diff --git a/level_2/fll_error/c/private-error.c b/level_2/fll_error/c/private-error.c index fb008ae..7c2701d 100644 --- a/level_2/fll_error/c/private-error.c +++ b/level_2/fll_error/c/private-error.c @@ -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)); } -- 1.8.3.1