From: Kevin Day Date: Sat, 2 Aug 2025 03:53:49 +0000 (-0500) Subject: Update: Handle F_implement_not and F_support_not in fll_error. X-Git-Tag: 0.7.3~37 X-Git-Url: https://www.git.kevux.org/?a=commitdiff_plain;h=b7d6114daeb621793b6016c68550b322c90cf2b4;p=fll 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. --- 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)); }