From: Kevin Day Date: Thu, 24 Jun 2021 01:56:47 +0000 (-0500) Subject: Update: The Featureless Make no longer needs to verify format of the -d/--define. X-Git-Tag: 0.5.4~8 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=181bf09cd375d0e05fbab86579f60d2d2f7a67df;p=fll Update: The Featureless Make no longer needs to verify format of the -d/--define. At some point the automatic prepended of the "-D" went away. That change failed to include removing the word validity check on this parameter. Removing this allows -d/--define to work but also puts the burden of using valid parameters onto the user. --- diff --git a/level_3/fake/c/private-fake.c b/level_3/fake/c/private-fake.c index 3754c2a..263f346 100644 --- a/level_3/fake/c/private-fake.c +++ b/level_3/fake/c/private-fake.c @@ -849,44 +849,6 @@ extern "C" { return status; } - - f_array_length_t i = 0; - f_array_length_t j = 0; - f_array_length_t width_max = 0; - - for (; i < main->define.used; ++i) { - - for (j = 0; j < main->define.array[i].used; ++j) { - - width_max = main->define.array[i].used - j; - - status = f_utf_is_word(main->define.array[i].string + j, width_max, F_false); - - if (F_status_is_error(status)) { - if (fll_error_print(main->error, F_status_set_fine(status), "f_utf_is_word", F_false) == F_known_not && main->error.verbosity != f_console_verbosity_quiet) { - fprintf(main->error.to.stream, "%c", f_string_eol_s[0]); - f_color_print(main->error.to.stream, main->context.set.error, "%sFailed to process the parameter '", fll_error_print_error); - f_color_print(main->error.to.stream, main->context.set.notable, "%s%s", f_console_symbol_long_enable_s, fake_long_define); - f_color_print(main->error.to.stream, main->context.set.error, "'.%c", f_string_eol_s[0]); - } - - return status; - } - - if (status == F_false) { - if (main->error.verbosity != f_console_verbosity_quiet) { - fprintf(main->error.to.stream, "%c", f_string_eol_s[0]); - f_color_print(main->error.to.stream, main->context.set.error, "%sThe '", fll_error_print_error); - f_color_print(main->error.to.stream, main->context.set.notable, "%s%s", f_console_symbol_long_enable_s, fake_long_define); - f_color_print(main->error.to.stream, main->context.set.error, "' parameters value '"); - f_color_print(main->error.to.stream, main->context.set.notable, "%s", main->define.array[i].string); - f_color_print(main->error.to.stream, main->context.set.error, "' contains non-word characters.%c", f_string_eol_s[0]); - } - - return F_status_set_error(F_parameter); - } - } // for - } // for } if (main->parameters[fake_parameter_mode].result == f_console_result_found) {