From 24d613c5294f4d022976a23ef819c3ca7bea5a5f Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Fri, 17 Feb 2023 00:23:05 -0600 Subject: [PATCH] Progress: Continue work, primarily in Featureless Make. Fix a bug in f_console. Continue focusing on print changes. For the time being just have all of the parameters be setting and print. This may change in the future but for now it ensures consistency. --- level_0/f_console/c/console.c | 2 +- level_0/f_utf/c/utf/is.c | 437 +++++++--------------- level_0/f_utf/c/utf/is.h | 30 ++ level_3/fake/c/main/build.c | 44 +-- level_3/fake/c/main/build/library.c | 30 +- level_3/fake/c/main/build/load.c | 30 +- level_3/fake/c/main/build/object.c | 8 +- level_3/fake/c/main/build/objects.c | 16 +- level_3/fake/c/main/build/program.c | 12 +- level_3/fake/c/main/build/skeleton.c | 2 +- level_3/fake/c/main/clean.c | 2 +- level_3/fake/c/main/common.c | 59 ++- level_3/fake/c/main/fake.c | 24 +- level_3/fake/c/main/fake/path_generate.c | 16 +- level_3/fake/c/main/make.c | 12 +- level_3/fake/c/main/make/load_fakefile.c | 40 +- level_3/fake/c/main/make/load_parameters.c | 28 +- level_3/fake/c/main/make/operate.c | 80 ++-- level_3/fake/c/main/make/operate_process.c | 12 +- level_3/fake/c/main/make/operate_process_type.c | 132 +++---- level_3/fake/c/main/make/operate_validate_type.c | 110 +++--- level_3/fake/c/main/print.c | 449 +++++++++++++---------- level_3/fake/c/main/print.h | 140 +++++-- level_3/fake/c/main/skeleton.c | 14 +- 24 files changed, 850 insertions(+), 879 deletions(-) diff --git a/level_0/f_console/c/console.c b/level_0/f_console/c/console.c index 2ea0e9e..a686213 100644 --- a/level_0/f_console/c/console.c +++ b/level_0/f_console/c/console.c @@ -662,7 +662,7 @@ extern "C" { } if (state.status == F_process) { - state.status == F_none; + state.status = F_none; for (; state.location < arguments.argc && arguments.argv[state.location]; ++state.location) { diff --git a/level_0/f_utf/c/utf/is.c b/level_0/f_utf/c/utf/is.c index 3a48206..b6bf5e8 100644 --- a/level_0/f_utf/c/utf/is.c +++ b/level_0/f_utf/c/utf/is.c @@ -32,18 +32,12 @@ extern "C" { #ifndef _di_f_utf_is_alphabetic_ f_status_t f_utf_is_alphabetic(const f_string_t sequence, const f_array_length_t width_max) { - #ifndef _di_level_0_parameter_checking_ - if (width_max < 1) return F_status_set_error(F_parameter); - #endif // _di_level_0_parameter_checking_ - if (macro_f_utf_byte_width_is(*sequence)) { - if (macro_f_utf_byte_width_is(*sequence) > width_max) { - return F_status_set_error(F_complete_not_utf); - } + if (width_max < 1) return F_data_not; - if (macro_f_utf_byte_width_is(*sequence) == 1) { - return F_status_set_error(F_utf_fragment); - } + if (macro_f_utf_byte_width_is(*sequence)) { + if (macro_f_utf_byte_width_is(*sequence) > width_max) return F_status_set_error(F_complete_not_utf); + if (macro_f_utf_byte_width_is(*sequence) == 1) return F_status_set_error(F_utf_fragment); f_utf_char_t utf = 0; @@ -63,18 +57,12 @@ extern "C" { #ifndef _di_f_utf_is_alphabetic_digit_ f_status_t f_utf_is_alphabetic_digit(const f_string_t sequence, const f_array_length_t width_max, uint64_t * const value) { - #ifndef _di_level_0_parameter_checking_ - if (width_max < 1) return F_status_set_error(F_parameter); - #endif // _di_level_0_parameter_checking_ - if (macro_f_utf_byte_width_is(*sequence)) { - if (macro_f_utf_byte_width_is(*sequence) > width_max) { - return F_status_set_error(F_complete_not_utf); - } + if (width_max < 1) return F_data_not; - if (macro_f_utf_byte_width_is(*sequence) == 1) { - return F_status_set_error(F_utf_fragment); - } + if (macro_f_utf_byte_width_is(*sequence)) { + if (macro_f_utf_byte_width_is(*sequence) > width_max) return F_status_set_error(F_complete_not_utf); + if (macro_f_utf_byte_width_is(*sequence) == 1) return F_status_set_error(F_utf_fragment); f_utf_char_t utf = 0; @@ -94,18 +82,12 @@ extern "C" { #ifndef _di_f_utf_is_alphabetic_numeric_ f_status_t f_utf_is_alphabetic_numeric(const f_string_t sequence, const f_array_length_t width_max) { - #ifndef _di_level_0_parameter_checking_ - if (width_max < 1) return F_status_set_error(F_parameter); - #endif // _di_level_0_parameter_checking_ - if (macro_f_utf_byte_width_is(*sequence)) { - if (macro_f_utf_byte_width_is(*sequence) > width_max) { - return F_status_set_error(F_complete_not_utf); - } + if (width_max < 1) return F_data_not; - if (macro_f_utf_byte_width_is(*sequence) == 1) { - return F_status_set_error(F_utf_fragment); - } + if (macro_f_utf_byte_width_is(*sequence)) { + if (macro_f_utf_byte_width_is(*sequence) > width_max) return F_status_set_error(F_complete_not_utf); + if (macro_f_utf_byte_width_is(*sequence) == 1) return F_status_set_error(F_utf_fragment); f_utf_char_t utf = 0; @@ -125,18 +107,12 @@ extern "C" { #ifndef _di_f_utf_is_ascii_ f_status_t f_utf_is_ascii(const f_string_t sequence, const f_array_length_t width_max) { - #ifndef _di_level_0_parameter_checking_ - if (width_max < 1) return F_status_set_error(F_parameter); - #endif // _di_level_0_parameter_checking_ - if (macro_f_utf_byte_width_is(*sequence)) { - if (macro_f_utf_byte_width_is(*sequence) > width_max) { - return F_status_set_error(F_complete_not_utf); - } + if (width_max < 1) return F_data_not; - if (macro_f_utf_byte_width_is(*sequence) == 1) { - return F_status_set_error(F_utf_fragment); - } + if (macro_f_utf_byte_width_is(*sequence)) { + if (macro_f_utf_byte_width_is(*sequence) > width_max) return F_status_set_error(F_complete_not_utf); + if (macro_f_utf_byte_width_is(*sequence) == 1) return F_status_set_error(F_utf_fragment); return F_false; } @@ -147,18 +123,12 @@ extern "C" { #ifndef _di_f_utf_is_combining_ f_status_t f_utf_is_combining(const f_string_t sequence, const f_array_length_t width_max) { - #ifndef _di_level_0_parameter_checking_ - if (width_max < 1) return F_status_set_error(F_parameter); - #endif // _di_level_0_parameter_checking_ - if (macro_f_utf_byte_width_is(*sequence)) { - if (macro_f_utf_byte_width_is(*sequence) > width_max) { - return F_status_set_error(F_complete_not_utf); - } + if (width_max < 1) return F_data_not; - if (macro_f_utf_byte_width_is(*sequence) == 1) { - return F_status_set_error(F_utf_fragment); - } + if (macro_f_utf_byte_width_is(*sequence)) { + if (macro_f_utf_byte_width_is(*sequence) > width_max) return F_status_set_error(F_complete_not_utf); + if (macro_f_utf_byte_width_is(*sequence) == 1) return F_status_set_error(F_utf_fragment); f_utf_char_t utf = 0; @@ -177,18 +147,12 @@ extern "C" { #ifndef _di_f_utf_is_control_ f_status_t f_utf_is_control(const f_string_t sequence, const f_array_length_t width_max) { - #ifndef _di_level_0_parameter_checking_ - if (width_max < 1) return F_status_set_error(F_parameter); - #endif // _di_level_0_parameter_checking_ - if (macro_f_utf_byte_width_is(*sequence)) { - if (macro_f_utf_byte_width_is(*sequence) > width_max) { - return F_status_set_error(F_complete_not_utf); - } + if (width_max < 1) return F_data_not; - if (macro_f_utf_byte_width_is(*sequence) == 1) { - return F_status_set_error(F_utf_fragment); - } + if (macro_f_utf_byte_width_is(*sequence)) { + if (macro_f_utf_byte_width_is(*sequence) > width_max) return F_status_set_error(F_complete_not_utf); + if (macro_f_utf_byte_width_is(*sequence) == 1) return F_status_set_error(F_utf_fragment); f_utf_char_t utf = 0; @@ -208,18 +172,12 @@ extern "C" { #ifndef _di_f_utf_is_control_code_ f_status_t f_utf_is_control_code(const f_string_t sequence, const f_array_length_t width_max) { - #ifndef _di_level_0_parameter_checking_ - if (width_max < 1) return F_status_set_error(F_parameter); - #endif // _di_level_0_parameter_checking_ - if (macro_f_utf_byte_width_is(*sequence)) { - if (macro_f_utf_byte_width_is(*sequence) > width_max) { - return F_status_set_error(F_complete_not_utf); - } + if (width_max < 1) return F_data_not; - if (macro_f_utf_byte_width_is(*sequence) == 1) { - return F_status_set_error(F_utf_fragment); - } + if (macro_f_utf_byte_width_is(*sequence)) { + if (macro_f_utf_byte_width_is(*sequence) > width_max) return F_status_set_error(F_complete_not_utf); + if (macro_f_utf_byte_width_is(*sequence) == 1) return F_status_set_error(F_utf_fragment); f_utf_char_t utf = 0; @@ -239,18 +197,12 @@ extern "C" { #ifndef _di_f_utf_is_control_format_ f_status_t f_utf_is_control_format(const f_string_t sequence, const f_array_length_t width_max) { - #ifndef _di_level_0_parameter_checking_ - if (width_max < 1) return F_status_set_error(F_parameter); - #endif // _di_level_0_parameter_checking_ - if (macro_f_utf_byte_width_is(*sequence)) { - if (macro_f_utf_byte_width_is(*sequence) > width_max) { - return F_status_set_error(F_complete_not_utf); - } + if (width_max < 1) return F_data_not; - if (macro_f_utf_byte_width_is(*sequence) == 1) { - return F_status_set_error(F_utf_fragment); - } + if (macro_f_utf_byte_width_is(*sequence)) { + if (macro_f_utf_byte_width_is(*sequence) > width_max) return F_status_set_error(F_complete_not_utf); + if (macro_f_utf_byte_width_is(*sequence) == 1) return F_status_set_error(F_utf_fragment); f_utf_char_t utf = 0; @@ -269,22 +221,13 @@ extern "C" { #ifndef _di_f_utf_is_control_picture_ f_status_t f_utf_is_control_picture(const f_string_t sequence, const f_array_length_t width_max) { - #ifndef _di_level_0_parameter_checking_ - if (width_max < 1) return F_status_set_error(F_parameter); - #endif // _di_level_0_parameter_checking_ - - if (macro_f_utf_byte_width_is(*sequence)) { - if (macro_f_utf_byte_width_is(*sequence) > width_max) { - return F_status_set_error(F_complete_not_utf); - } - if (macro_f_utf_byte_width_is(*sequence) == 1) { - return F_status_set_error(F_utf_fragment); - } + if (width_max < 1) return F_data_not; - if (macro_f_utf_byte_width_is(*sequence) != 3) { - return F_false; - } + if (macro_f_utf_byte_width_is(*sequence)) { + if (macro_f_utf_byte_width_is(*sequence) > width_max) return F_status_set_error(F_complete_not_utf); + if (macro_f_utf_byte_width_is(*sequence) == 1) return F_status_set_error(F_utf_fragment); + if (macro_f_utf_byte_width_is(*sequence) != 3) return F_false; f_utf_char_t utf = 0; @@ -303,18 +246,12 @@ extern "C" { #ifndef _di_f_utf_is_digit_ f_status_t f_utf_is_digit(const f_string_t sequence, const f_array_length_t width_max, uint64_t * const value) { - #ifndef _di_level_0_parameter_checking_ - if (width_max < 1) return F_status_set_error(F_parameter); - #endif // _di_level_0_parameter_checking_ - if (macro_f_utf_byte_width_is(*sequence)) { - if (macro_f_utf_byte_width_is(*sequence) > width_max) { - return F_status_set_error(F_complete_not_utf); - } + if (width_max < 1) return F_data_not; - if (macro_f_utf_byte_width_is(*sequence) == 1) { - return F_status_set_error(F_utf_fragment); - } + if (macro_f_utf_byte_width_is(*sequence)) { + if (macro_f_utf_byte_width_is(*sequence) > width_max) return F_status_set_error(F_complete_not_utf); + if (macro_f_utf_byte_width_is(*sequence) == 1) return F_status_set_error(F_utf_fragment); f_utf_char_t utf = 0; @@ -332,18 +269,12 @@ extern "C" { #ifndef _di_f_utf_is_emoji_ f_status_t f_utf_is_emoji(const f_string_t sequence, const f_array_length_t width_max) { - #ifndef _di_level_0_parameter_checking_ - if (width_max < 1) return F_status_set_error(F_parameter); - #endif // _di_level_0_parameter_checking_ - if (macro_f_utf_byte_width_is(*sequence)) { - if (macro_f_utf_byte_width_is(*sequence) > width_max) { - return F_status_set_error(F_complete_not_utf); - } + if (width_max < 1) return F_data_not; - if (macro_f_utf_byte_width_is(*sequence) == 1) { - return F_status_set_error(F_utf_fragment); - } + if (macro_f_utf_byte_width_is(*sequence)) { + if (macro_f_utf_byte_width_is(*sequence) > width_max) return F_status_set_error(F_complete_not_utf); + if (macro_f_utf_byte_width_is(*sequence) == 1) return F_status_set_error(F_utf_fragment); f_utf_char_t utf = 0; @@ -362,9 +293,7 @@ extern "C" { #ifndef _di_f_utf_is_fragment_ f_status_t f_utf_is_fragment(const f_string_t sequence) { - if (macro_f_utf_byte_width_is(*sequence) == 1) { - return F_true; - } + if (macro_f_utf_byte_width_is(*sequence) == 1) return F_true; return F_false; } @@ -372,18 +301,12 @@ extern "C" { #ifndef _di_f_utf_is_graph_ f_status_t f_utf_is_graph(const f_string_t sequence, const f_array_length_t width_max) { - #ifndef _di_level_0_parameter_checking_ - if (width_max < 1) return F_status_set_error(F_parameter); - #endif // _di_level_0_parameter_checking_ - if (macro_f_utf_byte_width_is(*sequence)) { - if (macro_f_utf_byte_width_is(*sequence) > width_max) { - return F_status_set_error(F_complete_not_utf); - } + if (width_max < 1) return F_data_not; - if (macro_f_utf_byte_width_is(*sequence) == 1) { - return F_status_set_error(F_utf_fragment); - } + if (macro_f_utf_byte_width_is(*sequence)) { + if (macro_f_utf_byte_width_is(*sequence) > width_max) return F_status_set_error(F_complete_not_utf); + if (macro_f_utf_byte_width_is(*sequence) == 1) return F_status_set_error(F_utf_fragment); f_utf_char_t utf = 0; @@ -416,18 +339,12 @@ extern "C" { #ifndef _di_f_utf_is_numeric_ f_status_t f_utf_is_numeric(const f_string_t sequence, const f_array_length_t width_max) { - #ifndef _di_level_0_parameter_checking_ - if (width_max < 1) return F_status_set_error(F_parameter); - #endif // _di_level_0_parameter_checking_ - if (macro_f_utf_byte_width_is(*sequence)) { - if (macro_f_utf_byte_width_is(*sequence) > width_max) { - return F_status_set_error(F_complete_not_utf); - } + if (width_max < 1) return F_data_not; - if (macro_f_utf_byte_width_is(*sequence) == 1) { - return F_status_set_error(F_utf_fragment); - } + if (macro_f_utf_byte_width_is(*sequence)) { + if (macro_f_utf_byte_width_is(*sequence) > width_max) return F_status_set_error(F_complete_not_utf); + if (macro_f_utf_byte_width_is(*sequence) == 1) return F_status_set_error(F_utf_fragment); f_utf_char_t utf = 0; @@ -447,18 +364,12 @@ extern "C" { #ifndef _di_f_utf_is_phonetic_ f_status_t f_utf_is_phonetic(const f_string_t sequence, const f_array_length_t width_max) { - #ifndef _di_level_0_parameter_checking_ - if (width_max < 1) return F_status_set_error(F_parameter); - #endif // _di_level_0_parameter_checking_ - if (macro_f_utf_byte_width_is(*sequence)) { - if (macro_f_utf_byte_width_is(*sequence) > width_max) { - return F_status_set_error(F_complete_not_utf); - } + if (width_max < 1) return F_data_not; - if (macro_f_utf_byte_width_is(*sequence) == 1) { - return F_status_set_error(F_utf_fragment); - } + if (macro_f_utf_byte_width_is(*sequence)) { + if (macro_f_utf_byte_width_is(*sequence) > width_max) return F_status_set_error(F_complete_not_utf); + if (macro_f_utf_byte_width_is(*sequence) == 1) return F_status_set_error(F_utf_fragment); f_utf_char_t utf = 0; @@ -477,18 +388,12 @@ extern "C" { #ifndef _di_f_utf_is_private_ f_status_t f_utf_is_private(const f_string_t sequence, const f_array_length_t width_max) { - #ifndef _di_level_0_parameter_checking_ - if (width_max < 1) return F_status_set_error(F_parameter); - #endif // _di_level_0_parameter_checking_ - if (macro_f_utf_byte_width_is(*sequence)) { - if (macro_f_utf_byte_width_is(*sequence) > width_max) { - return F_status_set_error(F_complete_not_utf); - } + if (width_max < 1) return F_data_not; - if (macro_f_utf_byte_width_is(*sequence) == 1) { - return F_status_set_error(F_utf_fragment); - } + if (macro_f_utf_byte_width_is(*sequence)) { + if (macro_f_utf_byte_width_is(*sequence) > width_max) return F_status_set_error(F_complete_not_utf); + if (macro_f_utf_byte_width_is(*sequence) == 1) return F_status_set_error(F_utf_fragment); f_utf_char_t utf = 0; @@ -507,18 +412,12 @@ extern "C" { #ifndef _di_f_utf_is_punctuation_ f_status_t f_utf_is_punctuation(const f_string_t sequence, const f_array_length_t width_max) { - #ifndef _di_level_0_parameter_checking_ - if (width_max < 1) return F_status_set_error(F_parameter); - #endif // _di_level_0_parameter_checking_ - if (macro_f_utf_byte_width_is(*sequence)) { - if (macro_f_utf_byte_width_is(*sequence) > width_max) { - return F_status_set_error(F_complete_not_utf); - } + if (width_max < 1) return F_data_not; - if (macro_f_utf_byte_width_is(*sequence) == 1) { - return F_status_set_error(F_utf_fragment); - } + if (macro_f_utf_byte_width_is(*sequence)) { + if (macro_f_utf_byte_width_is(*sequence) > width_max) return F_status_set_error(F_complete_not_utf); + if (macro_f_utf_byte_width_is(*sequence) == 1) return F_status_set_error(F_utf_fragment); f_utf_char_t utf = 0; @@ -566,18 +465,12 @@ extern "C" { #ifndef _di_f_utf_is_subscript_ f_status_t f_utf_is_subscript(const f_string_t sequence, const f_array_length_t width_max) { - #ifndef _di_level_0_parameter_checking_ - if (width_max < 1) return F_status_set_error(F_parameter); - #endif // _di_level_0_parameter_checking_ - if (macro_f_utf_byte_width_is(*sequence)) { - if (macro_f_utf_byte_width_is(*sequence) > width_max) { - return F_status_set_error(F_complete_not_utf); - } + if (width_max < 1) return F_data_not; - if (macro_f_utf_byte_width_is(*sequence) == 1) { - return F_status_set_error(F_utf_fragment); - } + if (macro_f_utf_byte_width_is(*sequence)) { + if (macro_f_utf_byte_width_is(*sequence) > width_max) return F_status_set_error(F_complete_not_utf); + if (macro_f_utf_byte_width_is(*sequence) == 1) return F_status_set_error(F_utf_fragment); f_utf_char_t utf = 0; @@ -595,18 +488,12 @@ extern "C" { #ifndef _di_f_utf_is_superscript_ f_status_t f_utf_is_superscript(const f_string_t sequence, const f_array_length_t width_max) { - #ifndef _di_level_0_parameter_checking_ - if (width_max < 1) return F_status_set_error(F_parameter); - #endif // _di_level_0_parameter_checking_ - if (macro_f_utf_byte_width_is(*sequence)) { - if (macro_f_utf_byte_width_is(*sequence) > width_max) { - return F_status_set_error(F_complete_not_utf); - } + if (width_max < 1) return F_data_not; - if (macro_f_utf_byte_width_is(*sequence) == 1) { - return F_status_set_error(F_utf_fragment); - } + if (macro_f_utf_byte_width_is(*sequence)) { + if (macro_f_utf_byte_width_is(*sequence) > width_max) return F_status_set_error(F_complete_not_utf); + if (macro_f_utf_byte_width_is(*sequence) == 1) return F_status_set_error(F_utf_fragment); f_utf_char_t utf = 0; @@ -624,18 +511,12 @@ extern "C" { #ifndef _di_f_utf_is_symbol_ f_status_t f_utf_is_symbol(const f_string_t sequence, const f_array_length_t width_max) { - #ifndef _di_level_0_parameter_checking_ - if (width_max < 1) return F_status_set_error(F_parameter); - #endif // _di_level_0_parameter_checking_ - if (macro_f_utf_byte_width_is(*sequence)) { - if (macro_f_utf_byte_width_is(*sequence) > width_max) { - return F_status_set_error(F_complete_not_utf); - } + if (width_max < 1) return F_data_not; - if (macro_f_utf_byte_width_is(*sequence) == 1) { - return F_status_set_error(F_utf_fragment); - } + if (macro_f_utf_byte_width_is(*sequence)) { + if (macro_f_utf_byte_width_is(*sequence) > width_max) return F_status_set_error(F_complete_not_utf); + if (macro_f_utf_byte_width_is(*sequence) == 1) return F_status_set_error(F_utf_fragment); f_utf_char_t utf = 0; @@ -668,18 +549,12 @@ extern "C" { #ifndef _di_f_utf_is_unassigned_ f_status_t f_utf_is_unassigned(const f_string_t sequence, const f_array_length_t width_max) { - #ifndef _di_level_0_parameter_checking_ - if (width_max < 1) return F_status_set_error(F_parameter); - #endif // _di_level_0_parameter_checking_ - if (macro_f_utf_byte_width_is(*sequence)) { - if (macro_f_utf_byte_width_is(*sequence) > width_max) { - return F_status_set_error(F_complete_not_utf); - } + if (width_max < 1) return F_data_not; - if (macro_f_utf_byte_width_is(*sequence) == 1) { - return F_status_set_error(F_utf_fragment); - } + if (macro_f_utf_byte_width_is(*sequence)) { + if (macro_f_utf_byte_width_is(*sequence) > width_max) return F_status_set_error(F_complete_not_utf); + if (macro_f_utf_byte_width_is(*sequence) == 1) return F_status_set_error(F_utf_fragment); f_utf_char_t utf = 0; @@ -698,18 +573,12 @@ extern "C" { #ifndef _di_f_utf_is_valid_ f_status_t f_utf_is_valid(const f_string_t sequence, const f_array_length_t width_max) { - #ifndef _di_level_0_parameter_checking_ - if (width_max < 1) return F_status_set_error(F_parameter); - #endif // _di_level_0_parameter_checking_ - if (macro_f_utf_byte_width_is(*sequence)) { - if (macro_f_utf_byte_width_is(*sequence) > width_max) { - return F_status_set_error(F_complete_not_utf); - } + if (width_max < 1) return F_data_not; - if (macro_f_utf_byte_width_is(*sequence) == 1) { - return F_status_set_error(F_utf_fragment); - } + if (macro_f_utf_byte_width_is(*sequence)) { + if (macro_f_utf_byte_width_is(*sequence) > width_max) return F_status_set_error(F_complete_not_utf); + if (macro_f_utf_byte_width_is(*sequence) == 1) return F_status_set_error(F_utf_fragment); f_utf_char_t utf = 0; @@ -728,18 +597,12 @@ extern "C" { #ifndef _di_f_utf_is_whitespace_ f_status_t f_utf_is_whitespace(const f_string_t sequence, const f_array_length_t width_max, const bool strict) { - #ifndef _di_level_0_parameter_checking_ - if (width_max < 1) return F_status_set_error(F_parameter); - #endif // _di_level_0_parameter_checking_ - if (macro_f_utf_byte_width_is(*sequence)) { - if (macro_f_utf_byte_width_is(*sequence) > width_max) { - return F_status_set_error(F_complete_not_utf); - } + if (width_max < 1) return F_data_not; - if (macro_f_utf_byte_width_is(*sequence) == 1) { - return F_status_set_error(F_utf_fragment); - } + if (macro_f_utf_byte_width_is(*sequence)) { + if (macro_f_utf_byte_width_is(*sequence) > width_max) return F_status_set_error(F_complete_not_utf); + if (macro_f_utf_byte_width_is(*sequence) == 1) return F_status_set_error(F_utf_fragment); f_utf_char_t utf = 0; @@ -759,18 +622,12 @@ extern "C" { #ifndef _di_f_utf_is_whitespace_modifier_ f_status_t f_utf_is_whitespace_modifier(const f_string_t sequence, const f_array_length_t width_max) { - #ifndef _di_level_0_parameter_checking_ - if (width_max < 1) return F_status_set_error(F_parameter); - #endif // _di_level_0_parameter_checking_ - if (macro_f_utf_byte_width_is(*sequence)) { - if (macro_f_utf_byte_width_is(*sequence) > width_max) { - return F_status_set_error(F_complete_not_utf); - } + if (width_max < 1) return F_data_not; - if (macro_f_utf_byte_width_is(*sequence) == 1) { - return F_status_set_error(F_utf_fragment); - } + if (macro_f_utf_byte_width_is(*sequence)) { + if (macro_f_utf_byte_width_is(*sequence) > width_max) return F_status_set_error(F_complete_not_utf); + if (macro_f_utf_byte_width_is(*sequence) == 1) return F_status_set_error(F_utf_fragment); f_utf_char_t utf = 0; @@ -789,18 +646,12 @@ extern "C" { #ifndef _di_f_utf_is_whitespace_other_ f_status_t f_utf_is_whitespace_other(const f_string_t sequence, const f_array_length_t width_max) { - #ifndef _di_level_0_parameter_checking_ - if (width_max < 1) return F_status_set_error(F_parameter); - #endif // _di_level_0_parameter_checking_ - if (macro_f_utf_byte_width_is(*sequence)) { - if (macro_f_utf_byte_width_is(*sequence) > width_max) { - return F_status_set_error(F_complete_not_utf); - } + if (width_max < 1) return F_data_not; - if (macro_f_utf_byte_width_is(*sequence) == 1) { - return F_status_set_error(F_utf_fragment); - } + if (macro_f_utf_byte_width_is(*sequence)) { + if (macro_f_utf_byte_width_is(*sequence) > width_max) return F_status_set_error(F_complete_not_utf); + if (macro_f_utf_byte_width_is(*sequence) == 1) return F_status_set_error(F_utf_fragment); f_utf_char_t utf = 0; @@ -819,18 +670,12 @@ extern "C" { #ifndef _di_f_utf_is_whitespace_zero_width_ f_status_t f_utf_is_whitespace_zero_width(const f_string_t sequence, const f_array_length_t width_max) { - #ifndef _di_level_0_parameter_checking_ - if (width_max < 1) return F_status_set_error(F_parameter); - #endif // _di_level_0_parameter_checking_ - if (macro_f_utf_byte_width_is(*sequence)) { - if (macro_f_utf_byte_width_is(*sequence) > width_max) { - return F_status_set_error(F_complete_not_utf); - } + if (width_max < 1) return F_data_not; - if (macro_f_utf_byte_width_is(*sequence) == 1) { - return F_status_set_error(F_utf_fragment); - } + if (macro_f_utf_byte_width_is(*sequence)) { + if (macro_f_utf_byte_width_is(*sequence) > width_max) return F_status_set_error(F_complete_not_utf); + if (macro_f_utf_byte_width_is(*sequence) == 1) return F_status_set_error(F_utf_fragment); f_utf_char_t utf = 0; @@ -851,13 +696,8 @@ extern "C" { f_status_t f_utf_is_wide(const f_string_t sequence, const f_array_length_t width_max) { if (macro_f_utf_byte_width_is(*sequence)) { - if (macro_f_utf_byte_width_is(*sequence) > width_max) { - return F_status_set_error(F_complete_not_utf); - } - - if (macro_f_utf_byte_width_is(*sequence) == 1) { - return F_status_set_error(F_utf_fragment); - } + if (macro_f_utf_byte_width_is(*sequence) > width_max) return F_status_set_error(F_complete_not_utf); + if (macro_f_utf_byte_width_is(*sequence) == 1) return F_status_set_error(F_utf_fragment); f_utf_char_t utf = 0; @@ -876,18 +716,12 @@ extern "C" { #ifndef _di_f_utf_is_word_ f_status_t f_utf_is_word(const f_string_t sequence, const f_array_length_t width_max, const bool strict) { - #ifndef _di_level_0_parameter_checking_ - if (width_max < 1) return F_status_set_error(F_parameter); - #endif // _di_level_0_parameter_checking_ - if (macro_f_utf_byte_width_is(*sequence)) { - if (macro_f_utf_byte_width_is(*sequence) > width_max) { - return F_status_set_error(F_complete_not_utf); - } + if (width_max < 1) return F_data_not; - if (macro_f_utf_byte_width_is(*sequence) == 1) { - return F_status_set_error(F_utf_fragment); - } + if (macro_f_utf_byte_width_is(*sequence)) { + if (macro_f_utf_byte_width_is(*sequence) > width_max) return F_status_set_error(F_complete_not_utf); + if (macro_f_utf_byte_width_is(*sequence) == 1) return F_status_set_error(F_utf_fragment); f_utf_char_t utf = 0; @@ -909,18 +743,12 @@ extern "C" { #ifndef _di_f_utf_is_word_dash_ f_status_t f_utf_is_word_dash(const f_string_t sequence, const f_array_length_t width_max, const bool strict) { - #ifndef _di_level_0_parameter_checking_ - if (width_max < 1) return F_status_set_error(F_parameter); - #endif // _di_level_0_parameter_checking_ - if (macro_f_utf_byte_width_is(*sequence)) { - if (macro_f_utf_byte_width_is(*sequence) > width_max) { - return F_status_set_error(F_complete_not_utf); - } + if (width_max < 1) return F_data_not; - if (macro_f_utf_byte_width_is(*sequence) == 1) { - return F_status_set_error(F_utf_fragment); - } + if (macro_f_utf_byte_width_is(*sequence)) { + if (macro_f_utf_byte_width_is(*sequence) > width_max) return F_status_set_error(F_complete_not_utf); + if (macro_f_utf_byte_width_is(*sequence) == 1) return F_status_set_error(F_utf_fragment); f_utf_char_t utf = 0; @@ -942,18 +770,12 @@ extern "C" { #ifndef _di_f_utf_is_word_dash_plus_ f_status_t f_utf_is_word_dash_plus(const f_string_t sequence, const f_array_length_t width_max, const bool strict) { - #ifndef _di_level_0_parameter_checking_ - if (width_max < 1) return F_status_set_error(F_parameter); - #endif // _di_level_0_parameter_checking_ - if (macro_f_utf_byte_width_is(*sequence)) { - if (macro_f_utf_byte_width_is(*sequence) > width_max) { - return F_status_set_error(F_complete_not_utf); - } + if (width_max < 1) return F_data_not; - if (macro_f_utf_byte_width_is(*sequence) == 1) { - return F_status_set_error(F_utf_fragment); - } + if (macro_f_utf_byte_width_is(*sequence)) { + if (macro_f_utf_byte_width_is(*sequence) > width_max) return F_status_set_error(F_complete_not_utf); + if (macro_f_utf_byte_width_is(*sequence) == 1) return F_status_set_error(F_utf_fragment); f_utf_char_t utf = 0; @@ -961,6 +783,7 @@ extern "C" { const f_status_t status = private_f_utf_char_to_character(sequence, width_max, &utf); if (F_status_is_error(status)) return status; } + return private_f_utf_character_is_word_dash_plus(utf, strict); } @@ -974,18 +797,12 @@ extern "C" { #ifndef _di_f_utf_is_zero_width_ f_status_t f_utf_is_zero_width(const f_string_t sequence, const f_array_length_t width_max) { - #ifndef _di_level_0_parameter_checking_ - if (width_max < 1) return F_status_set_error(F_parameter); - #endif // _di_level_0_parameter_checking_ - if (macro_f_utf_byte_width_is(*sequence)) { - if (macro_f_utf_byte_width_is(*sequence) > width_max) { - return F_status_set_error(F_complete_not_utf); - } + if (width_max < 1) return F_data_not; - if (macro_f_utf_byte_width_is(*sequence) == 1) { - return F_status_set_error(F_utf_fragment); - } + if (macro_f_utf_byte_width_is(*sequence)) { + if (macro_f_utf_byte_width_is(*sequence) > width_max) return F_status_set_error(F_complete_not_utf); + if (macro_f_utf_byte_width_is(*sequence) == 1) return F_status_set_error(F_utf_fragment); f_utf_char_t utf = 0; @@ -1002,15 +819,9 @@ extern "C" { } // These control characters are considered zero-width spaces. - if (*sequence >= 0x00 && *sequence < 0x09) { - return F_true; - } - else if (*sequence > 0x0b && *sequence < 0x20) { - return F_true; - } - else if (*sequence == 0x7f) { - return F_true; - } + if (*sequence >= 0x00 && *sequence < 0x09) return F_true; + if (*sequence > 0x0b && *sequence < 0x20) return F_true; + if (*sequence == 0x7f) return F_true; return F_false; } diff --git a/level_0/f_utf/c/utf/is.h b/level_0/f_utf/c/utf/is.h index ce6643e..512fde5 100644 --- a/level_0/f_utf/c/utf/is.h +++ b/level_0/f_utf/c/utf/is.h @@ -46,6 +46,7 @@ extern "C" { * @return * F_true if a UTF-8 alphabet character. * F_false if not a UTF-8 alphabet character. + * F_data_not if width_max is less than 1. * * F_complete_not_utf (with error bit set) if character is an incomplete UTF-8 sequence. * F_utf_fragment (with error bit) if character is a UTF-8 fragment. @@ -82,6 +83,7 @@ extern "C" { * @return * F_true if a UTF-8 alphabet character. * F_false if not a UTF-8 alpha-numeric character. + * F_data_not if width_max is less than 1. * * F_complete_not_utf (with error bit set) if character is an incomplete UTF-8 sequence. * F_utf_fragment (with error bit) if character is a UTF-8 fragment. @@ -109,6 +111,7 @@ extern "C" { * @return * F_true if a UTF-8 alphabet character. * F_false if not a UTF-8 alpha-numeric character. + * F_data_not if width_max is less than 1. * * F_complete_not_utf (with error bit set) if character is an incomplete UTF-8 sequence. * F_utf_fragment (with error bit) if character is a UTF-8 fragment. @@ -133,6 +136,7 @@ extern "C" { * @return * F_true if an ASCII character. * F_false if not an ASCII character. + * F_data_not if width_max is less than 1. * * F_complete_not_utf (with error bit set) if character is an incomplete UTF-8 sequence. * F_utf_fragment (with error bit) if character is a UTF-8 fragment. @@ -155,6 +159,7 @@ extern "C" { * @return * F_true if a UTF-8 combining character. * F_false if not a UTF-8 combining character. + * F_data_not if width_max is less than 1. * * F_complete_not_utf (with error bit set) if character is an incomplete UTF-8 sequence. * F_utf_fragment (with error bit) if character is a UTF-8 fragment. @@ -181,6 +186,7 @@ extern "C" { * @return * F_true if a UTF-8 control character. * F_false if not a UTF-8 control character. + * F_data_not if width_max is less than 1. * * F_complete_not_utf (with error bit set) if character is an incomplete UTF-8 sequence. * F_utf_fragment (with error bit) if character is a UTF-8 fragment. @@ -207,6 +213,7 @@ extern "C" { * @return * F_true if a UTF-8 control code character. * F_false if not a UTF-8 control code character. + * F_data_not if width_max is less than 1. * * F_complete_not_utf (with error bit set) if character is an incomplete UTF-8 sequence. * F_utf_fragment (with error bit) if character is a UTF-8 fragment. @@ -232,6 +239,7 @@ extern "C" { * @return * F_true if a UTF-8 control format character. * F_false if not a UTF-8 control format character. + * F_data_not if width_max is less than 1. * * F_complete_not_utf (with error bit set) if character is an incomplete UTF-8 sequence. * F_utf_fragment (with error bit) if character is a UTF-8 fragment. @@ -256,6 +264,7 @@ extern "C" { * @return * F_true if a UTF-8 control picture character. * F_false if not a UTF-8 control picture character. + * F_data_not if width_max is less than 1. * * F_complete_not_utf (with error bit set) if character is an incomplete UTF-8 sequence. * F_utf_fragment (with error bit) if character is a UTF-8 fragment. @@ -290,6 +299,7 @@ extern "C" { * @return * F_true if a UTF-8 digit character. * F_false if not a UTF-8 digit character. + * F_data_not if width_max is less than 1. * * F_complete_not_utf (with error bit set) if character is an incomplete UTF-8 sequence. * F_utf_fragment (with error bit) if character is a UTF-8 fragment. @@ -314,6 +324,7 @@ extern "C" { * @return * F_true if a UTF-8 emoji character. * F_false if not a UTF-8 emoji character. + * F_data_not if width_max is less than 1. * * F_complete_not_utf (with error bit set) if character is an incomplete UTF-8 sequence. * F_utf_fragment (with error bit) if character is a UTF-8 fragment. @@ -367,6 +378,7 @@ extern "C" { * @return * F_true if a UTF-8 graph. * F_false if not a UTF-8 graph. + * F_data_not if width_max is less than 1. * * F_complete_not_utf (with error bit set) if character is an incomplete UTF-8 sequence. * F_maybe (with error bit) if this could be a graph but width is not long enough. @@ -395,6 +407,7 @@ extern "C" { * @return * F_true if a UTF-8 numeric character. * F_false if not a UTF-8 numeric character. + * F_data_not if width_max is less than 1. * * F_complete_not_utf (with error bit set) if character is an incomplete UTF-8 sequence. * F_utf_fragment (with error bit) if character is a UTF-8 fragment. @@ -419,6 +432,7 @@ extern "C" { * @return * F_true if a UTF-8 phonetic character. * F_false if not a UTF-8 phonetic character. + * F_data_not if width_max is less than 1. * * F_complete_not_utf (with error bit set) if character is an incomplete UTF-8 sequence. * F_utf_fragment (with error bit) if character is a UTF-8 fragment. @@ -441,6 +455,7 @@ extern "C" { * @return * F_true if a UTF-8 punctuation character. * F_false if not a UTF-8 punctuation character. + * F_data_not if width_max is less than 1. * * F_complete_not_utf (with error bit set) if character is an incomplete UTF-8 sequence. * F_utf_fragment (with error bit) if character is a UTF-8 fragment. @@ -463,6 +478,7 @@ extern "C" { * @return * F_true if a UTF-8 punctuation character. * F_false if not a UTF-8 punctuation character. + * F_data_not if width_max is less than 1. * * F_complete_not_utf (with error bit set) if character is an incomplete UTF-8 sequence. * F_utf_fragment (with error bit) if character is a UTF-8 fragment. @@ -485,6 +501,7 @@ extern "C" { * @return * F_true if a UTF-8 subscript character. * F_false if not a UTF-8 subscript character. + * F_data_not if width_max is less than 1. * * F_complete_not_utf (with error bit set) if character is an incomplete UTF-8 sequence. * F_utf_fragment (with error bit) if character is a UTF-8 fragment. @@ -507,6 +524,7 @@ extern "C" { * @return * F_true if a UTF-8 superscript character. * F_false if not a UTF-8 superscript character. + * F_data_not if width_max is less than 1. * * F_complete_not_utf (with error bit set) if character is an incomplete UTF-8 sequence. * F_utf_fragment (with error bit) if character is a UTF-8 fragment. @@ -529,6 +547,7 @@ extern "C" { * @return * F_true if a UTF-8 symbol character. * F_false if not a UTF-8 symbol character. + * F_data_not if width_max is less than 1. * * F_complete_not_utf (with error bit set) if character is an incomplete UTF-8 sequence. * F_utf_fragment (with error bit) if character is a UTF-8 fragment. @@ -551,6 +570,7 @@ extern "C" { * @return * F_true if an unassigned UTF-8 character. * F_false if not an unassigned UTF-8 character. + * F_data_not if width_max is less than 1. * * F_complete_not_utf (with error bit set) if character is an incomplete UTF-8 sequence. * F_parameter (with error bit) if a parameter is unassigned. @@ -581,6 +601,7 @@ extern "C" { * @return * F_true if a valid UTF-8 character or is an ASCII character. * F_false if not a valid UTF-8 character. + * F_data_not if width_max is less than 1. * * F_complete_not_utf (with error bit set) if character is an incomplete UTF-8 sequence. * F_failure (with error bit) if width_max is not long enough to convert. @@ -615,6 +636,7 @@ extern "C" { * @return * F_true if a UTF-8 white space. * F_false if not a UTF-8 white space. + * F_data_not if width_max is less than 1. * * F_complete_not_utf (with error bit set) if character is an incomplete UTF-8 sequence. * F_maybe (with error bit) if this could be a white space but width is not long enough. @@ -646,6 +668,7 @@ extern "C" { * @return * F_true if a UTF-8 (modifier) white space. * F_false if not a UTF-8 (modifier) white space. + * F_data_not if width_max is less than 1. * * F_complete_not_utf (with error bit set) if character is an incomplete UTF-8 sequence. * F_maybe (with error bit) if this could be a white space but width is not long enough. @@ -672,6 +695,7 @@ extern "C" { * @return * F_true if a UTF-8 (other) white space. * F_false if not a UTF-8 (other) white space. + * F_data_not if width_max is less than 1. * * F_complete_not_utf (with error bit set) if character is an incomplete UTF-8 sequence. * F_maybe (with error bit) if this could be a white space but width is not long enough. @@ -698,6 +722,7 @@ extern "C" { * @return * F_true if a UTF-8 (zero-width) white space. * F_false if not a UTF-8 (zero-width) white space. + * F_data_not if width_max is less than 1. * * F_complete_not_utf (with error bit set) if character is an incomplete UTF-8 sequence. * F_maybe (with error bit) if this could be a white space but width is not long enough. @@ -727,6 +752,7 @@ extern "C" { * * @return * F_none on success. + * F_data_not if width_max is less than 1. * * F_complete_not_utf (with error bit set) if character is an incomplete UTF-8 sequence. * F_parameter (with error bit) if a parameter is invalid. @@ -756,6 +782,7 @@ extern "C" { * @return * F_true if a UTF-8 word character. * F_false if not a UTF-8 word character. + * F_data_not if width_max is less than 1. * * F_complete_not_utf (with error bit set) if character is an incomplete UTF-8 sequence. * F_utf_fragment (with error bit) if character is a UTF-8 fragment. @@ -791,6 +818,7 @@ extern "C" { * @return * F_true if a UTF-8 word or dash character. * F_false if not a UTF-8 word or dash character. + * F_data_not if width_max is less than 1. * * F_complete_not_utf (with error bit set) if character is an incomplete UTF-8 sequence. * F_utf_fragment (with error bit) if character is a UTF-8 fragment. @@ -828,6 +856,7 @@ extern "C" { * @return * F_true if a UTF-8 word or dash character. * F_false if not a UTF-8 word or dash character. + * F_data_not if width_max is less than 1. * * F_complete_not_utf (with error bit set) if character is an incomplete UTF-8 sequence. * F_utf_fragment (with error bit) if character is a UTF-8 fragment. @@ -854,6 +883,7 @@ extern "C" { * @return * F_true if a UTF-8 white space. * F_false if not a UTF-8 white space. + * F_data_not if width_max is less than 1. * * F_complete_not_utf (with error bit set) if character is an incomplete UTF-8 sequence. * F_maybe (with error bit) if this could be a white space but width is not long enough. diff --git a/level_3/fake/c/main/build.c b/level_3/fake/c/main/build.c index 618924f..908f5a3 100644 --- a/level_3/fake/c/main/build.c +++ b/level_3/fake/c/main/build.c @@ -368,7 +368,7 @@ const f_string_static_t fake_build_documentation_files_s = macro_f_string_static *status = f_string_dynamic_resize(source.used, &path_source); if (F_status_is_error(*status)) { - fake_print_error(data->setting, *status, data->main->error, macro_fake_f(f_string_dynamic_resize)); + fake_print_error(data->setting, data->main->error, *status, macro_fake_f(f_string_dynamic_resize)); f_string_dynamic_resize(0, &path_source); @@ -407,7 +407,7 @@ const f_string_static_t fake_build_documentation_files_s = macro_f_string_static *status = f_string_dynamic_append_nulless(files.array[i], &path_source); if (F_status_is_error(*status)) { - fake_print_error(data->setting, *status, data->main->error, macro_fake_f(f_string_dynamic_append_nulless)); + fake_print_error(data->setting, data->main->error, *status, macro_fake_f(f_string_dynamic_append_nulless)); break; } @@ -420,7 +420,7 @@ const f_string_static_t fake_build_documentation_files_s = macro_f_string_static *status = f_string_dynamic_append_nulless(destination, &destination_directory); if (F_status_is_error(*status)) { - fake_print_error(data->setting, *status, data->main->error, macro_fake_f(f_string_dynamic_append_nulless)); + fake_print_error(data->setting, data->main->error, *status, macro_fake_f(f_string_dynamic_append_nulless)); break; } @@ -428,7 +428,7 @@ const f_string_static_t fake_build_documentation_files_s = macro_f_string_static *status = f_file_name_base(path_source, &destination_directory); if (F_status_is_error(*status)) { - fake_print_error(data->setting, *status, data->main->error, macro_fake_f(f_file_name_base)); + fake_print_error(data->setting, data->main->error, *status, macro_fake_f(f_file_name_base)); break; } @@ -438,15 +438,15 @@ const f_string_static_t fake_build_documentation_files_s = macro_f_string_static if (F_status_is_error(*status)) { if (data->main->error.verbosity >= f_console_verbosity_verbose_e) { for (f_array_length_t j = 0; j < failures.used; ++j) { - fake_print_error_build_operation_file(data, F_status_set_fine(*status), macro_fake_f(fl_directory_copy), fake_common_file_directory_copy_s, f_file_operation_to_s, path_source, destination_directory, F_true); + fake_print_error_build_operation_file(data->setting, data->main->error, *status, macro_fake_f(fl_directory_copy), fake_common_file_directory_copy_s, f_file_operation_to_s, path_source, destination_directory, F_true); } // for if (F_status_set_fine(*status) != F_failure) { - fake_print_error(data->setting, *status, data->main->error, macro_fake_f(fl_directory_copy)); + fake_print_error(data->setting, data->main->error, *status, macro_fake_f(fl_directory_copy)); } } else if (data->main->error.verbosity > f_console_verbosity_quiet_e) { - fake_print_error_build_operation_file(data, F_status_set_fine(*status), macro_fake_f(fl_directory_copy), fake_common_file_directory_copy_s, f_file_operation_to_s, path_source, destination_directory, F_true); + fake_print_error_build_operation_file(data->setting, data->main->error, *status, macro_fake_f(fl_directory_copy), fake_common_file_directory_copy_s, f_file_operation_to_s, path_source, destination_directory, F_true); } break; @@ -459,7 +459,7 @@ const f_string_static_t fake_build_documentation_files_s = macro_f_string_static *status = f_string_dynamic_append_nulless(destination, &destination_file); if (F_status_is_error(*status)) { - fake_print_error(data->setting, *status, data->main->error, macro_fake_f(f_string_dynamic_append_nulless)); + fake_print_error(data->setting, data->main->error, *status, macro_fake_f(f_string_dynamic_append_nulless)); break; } @@ -468,7 +468,7 @@ const f_string_static_t fake_build_documentation_files_s = macro_f_string_static *status = f_string_dynamic_append_nulless(destination, &destination_directory); if (F_status_is_error(*status)) { - fake_print_error(data->setting, *status, data->main->error, macro_fake_f(f_string_dynamic_append_nulless)); + fake_print_error(data->setting, data->main->error, *status, macro_fake_f(f_string_dynamic_append_nulless)); break; } @@ -479,7 +479,7 @@ const f_string_static_t fake_build_documentation_files_s = macro_f_string_static *status = f_file_name_directory(buffer, &destination_directory); if (F_status_is_error(*status)) { - fake_print_error(data->setting, *status, data->main->error, macro_fake_f(f_file_name_directory)); + fake_print_error(data->setting, data->main->error, *status, macro_fake_f(f_file_name_directory)); break; } @@ -487,7 +487,7 @@ const f_string_static_t fake_build_documentation_files_s = macro_f_string_static *status = fl_directory_create(destination_directory, F_file_mode_all_rwx_d); if (F_status_is_error(*status)) { - fake_print_error_file(data->setting, *status, data->main->error, macro_fake_f(fl_directory_create), destination_directory, f_file_operation_create_s, fll_error_file_type_directory_e); + fake_print_error_file(data->setting, data->main->error, *status, macro_fake_f(fl_directory_create), destination_directory, f_file_operation_create_s, fll_error_file_type_directory_e); break; } @@ -495,7 +495,7 @@ const f_string_static_t fake_build_documentation_files_s = macro_f_string_static *status = f_string_append(path_source.string + perserve_offset, path_source.used - perserve_offset, &destination_file); if (F_status_is_error(*status)) { - fake_print_error(data->setting, *status, data->main->error, macro_fake_f(f_string_append)); + fake_print_error(data->setting, data->main->error, *status, macro_fake_f(f_string_append)); break; } @@ -504,7 +504,7 @@ const f_string_static_t fake_build_documentation_files_s = macro_f_string_static *status = f_file_name_base(path_source, &destination_file); if (F_status_is_error(*status)) { - fake_print_error(data->setting, *status, data->main->error, macro_fake_f(f_file_name_base)); + fake_print_error(data->setting, data->main->error, *status, macro_fake_f(f_file_name_base)); break; } @@ -513,7 +513,7 @@ const f_string_static_t fake_build_documentation_files_s = macro_f_string_static *status = f_file_copy(path_source, destination_file, mode, F_file_default_read_size_d, f_file_stat_flag_reference_e); if (F_status_is_error(*status)) { - fake_print_error_build_operation_file(data, F_status_set_fine(*status), macro_fake_f(f_file_copy), f_file_operation_copy_s, f_file_operation_to_s, path_source, destination_file, F_true); + fake_print_error_build_operation_file(data->setting, data->main->error, *status, macro_fake_f(f_file_copy), f_file_operation_copy_s, f_file_operation_to_s, path_source, destination_file, F_true); break; } @@ -523,7 +523,7 @@ const f_string_static_t fake_build_documentation_files_s = macro_f_string_static } } else if (F_status_is_error(*status)) { - fake_print_error_file(data->setting, *status, data->main->error, macro_fake_f(f_directory_is), path_source, f_file_operation_create_s, fll_error_file_type_file_e); + fake_print_error_file(data->setting, data->main->error, *status, macro_fake_f(f_directory_is), path_source, f_file_operation_create_s, fll_error_file_type_file_e); break; } @@ -605,7 +605,7 @@ const f_string_static_t fake_build_documentation_files_s = macro_f_string_static } if (F_status_is_error(*status)) { - fake_print_error(data->setting, *status, data->main->error, macro_fake_f(fll_execute_arguments_add)); + fake_print_error(data->setting, data->main->error, *status, macro_fake_f(fll_execute_arguments_add)); f_string_dynamics_resize(0, &arguments); @@ -623,7 +623,7 @@ const f_string_static_t fake_build_documentation_files_s = macro_f_string_static } // for if (F_status_is_error(*status)) { - fake_print_error(data->setting, *status, data->main->error, macro_fake_f(f_string_dynamic_mash)); + fake_print_error(data->setting, data->main->error, *status, macro_fake_f(f_string_dynamic_mash)); f_string_dynamic_resize(0, &defines); f_string_dynamics_resize(0, &arguments); @@ -673,7 +673,7 @@ const f_string_static_t fake_build_documentation_files_s = macro_f_string_static f_string_dynamic_resize(0, &defines); if (F_status_is_error(*status)) { - fake_print_error(data->setting, *status, data->main->error, macro_fake_f(fll_execute_arguments_add_parameter_set)); + fake_print_error(data->setting, data->main->error, *status, macro_fake_f(fll_execute_arguments_add_parameter_set)); f_string_dynamics_resize(0, &arguments); @@ -692,7 +692,7 @@ const f_string_static_t fake_build_documentation_files_s = macro_f_string_static } if (F_status_is_error(*status)) { - fake_print_error(data->setting, *status, data->main->error, macro_fake_f(f_string_dynamic_append_nulless)); + fake_print_error(data->setting, data->main->error, *status, macro_fake_f(f_string_dynamic_append_nulless)); f_string_dynamic_resize(0, &path); f_string_dynamics_resize(0, &arguments); @@ -724,7 +724,7 @@ const f_string_static_t fake_build_documentation_files_s = macro_f_string_static fake_print_error_failure_script(data->setting, data->main->error, path); } else { - fake_print_error(data->setting, *status, data->main->error, macro_fake_f(fll_execute_program)); + fake_print_error(data->setting, data->main->error, *status, macro_fake_f(fll_execute_program)); } } else { @@ -748,7 +748,7 @@ const f_string_static_t fake_build_documentation_files_s = macro_f_string_static f_status_t status = f_file_name_base(path, name); if (F_status_is_error(status)) { - fake_print_error(data->setting, status, data->main->error, macro_fake_f(f_file_name_base)); + fake_print_error(data->setting, data->main->error, status, macro_fake_f(f_file_name_base)); return status; } @@ -1138,7 +1138,7 @@ const f_string_static_t fake_build_documentation_files_s = macro_f_string_static *status = f_file_touch(file, mode.regular, F_false); if (F_status_is_error(*status)) { - fake_print_error_file(data->setting, *status, data->main->error, macro_fake_f(f_file_touch), file, f_file_operation_touch_s, fll_error_file_type_file_e); + fake_print_error_file(data->setting, data->main->error, *status, macro_fake_f(f_file_touch), file, f_file_operation_touch_s, fll_error_file_type_file_e); } } #endif // _di_fake_build_touch_ diff --git a/level_3/fake/c/main/build/library.c b/level_3/fake/c/main/build/library.c index 0861170..29f9834 100644 --- a/level_3/fake/c/main/build/library.c +++ b/level_3/fake/c/main/build/library.c @@ -31,7 +31,7 @@ extern "C" { *status = fake_build_objects_add(data, data_build, &data->path_build_objects_shared, &data_build->setting.build_objects_library, &data_build->setting.build_objects_library_shared, &arguments); if (F_status_is_error(*status)) { - fake_print_error(data->setting, *status, data->main->error, macro_fake_f(fake_build_objects_add)); + fake_print_error(data->setting, data->main->error, *status, macro_fake_f(fake_build_objects_add)); f_string_dynamics_resize(0, &arguments); @@ -41,7 +41,7 @@ extern "C" { *status = fake_build_sources_add(data, data_build, &data_build->setting.build_sources_library, &data_build->setting.build_sources_library_shared, &arguments); if (F_status_is_error(*status)) { - fake_print_error(data->setting, *status, data->main->error, macro_fake_f(fake_build_sources_add)); + fake_print_error(data->setting, data->main->error, *status, macro_fake_f(fake_build_sources_add)); f_string_dynamics_resize(0, &arguments); @@ -296,7 +296,7 @@ extern "C" { fake_build_arguments_standard_add(data, data_build, F_true, fake_build_type_library_e, &arguments, status); if (F_status_is_error(*status)) { - fake_print_error(data->setting, *status, data->main->error, macro_fake_f(fll_execute_arguments_add)); + fake_print_error(data->setting, data->main->error, *status, macro_fake_f(fll_execute_arguments_add)); f_string_dynamics_resize(0, &arguments); @@ -331,12 +331,12 @@ extern "C" { } else if (F_status_is_error(*status)) { if (F_status_set_fine(*status) == F_file_found) { - fake_print_error_file(data->setting, *status, data->main->error, macro_fake_f(f_file_link), parameter_file_path, f_file_operation_link_s, fll_error_file_type_file_e); + fake_print_error_file(data->setting, data->main->error, *status, macro_fake_f(f_file_link), parameter_file_path, f_file_operation_link_s, fll_error_file_type_file_e); return 0; } - fake_print_error_file(data->setting, *status, data->main->error, macro_fake_f(f_file_link), parameter_file_name_major, f_file_operation_link_s, fll_error_file_type_file_e); + fake_print_error_file(data->setting, data->main->error, *status, macro_fake_f(f_file_link), parameter_file_name_major, f_file_operation_link_s, fll_error_file_type_file_e); return 0; } @@ -361,7 +361,7 @@ extern "C" { fll_print_format("Linked file '%Q' to '%Q'.%r", data->main->message.to, parameter_file_path, parameter_file_name_minor, f_string_eol_s); } else if (F_status_is_error(*status)) { - fake_print_error_file(data->setting, *status, data->main->error, macro_fake_f(f_file_link), F_status_set_fine(*status) == F_file_found ? parameter_file_path : parameter_file_name_minor, f_file_operation_link_s, fll_error_file_type_file_e); + fake_print_error_file(data->setting, data->main->error, *status, macro_fake_f(f_file_link), F_status_set_fine(*status) == F_file_found ? parameter_file_path : parameter_file_name_minor, f_file_operation_link_s, fll_error_file_type_file_e); return 0; } @@ -385,12 +385,12 @@ extern "C" { } else if (F_status_is_error(*status)) { if (F_status_set_fine(*status) == F_file_found) { - fake_print_error_file(data->setting, *status, data->main->error, macro_fake_f(f_file_link), parameter_file_path, f_file_operation_link_s, fll_error_file_type_file_e); + fake_print_error_file(data->setting, data->main->error, *status, macro_fake_f(f_file_link), parameter_file_path, f_file_operation_link_s, fll_error_file_type_file_e); return 0; } - fake_print_error_file(data->setting, *status, data->main->error, macro_fake_f(f_file_link), parameter_file_name_micro, f_file_operation_link_s, fll_error_file_type_file_e); + fake_print_error_file(data->setting, data->main->error, *status, macro_fake_f(f_file_link), parameter_file_name_micro, f_file_operation_link_s, fll_error_file_type_file_e); return 0; } @@ -413,12 +413,12 @@ extern "C" { } else if (F_status_is_error(*status)) { if (F_status_set_fine(*status) == F_file_found) { - fake_print_error_file(data->setting, *status, data->main->error, macro_fake_f(f_file_link), parameter_file_path, f_file_operation_link_s, fll_error_file_type_file_e); + fake_print_error_file(data->setting, data->main->error, *status, macro_fake_f(f_file_link), parameter_file_path, f_file_operation_link_s, fll_error_file_type_file_e); return 0; } - fake_print_error_file(data->setting, *status, data->main->error, macro_fake_f(f_file_link), parameter_file_name_nano, f_file_operation_link_s, fll_error_file_type_file_e); + fake_print_error_file(data->setting, data->main->error, *status, macro_fake_f(f_file_link), parameter_file_name_nano, f_file_operation_link_s, fll_error_file_type_file_e); return 0; } @@ -499,7 +499,7 @@ extern "C" { *status = fake_build_get_file_name_without_extension(data, sources[i]->array[j], &file_name); if (F_status_is_error(*status)) { - fake_print_error(data->setting, *status, data->main->error, macro_fake_f(fake_build_get_file_name_without_extension)); + fake_print_error(data->setting, data->main->error, *status, macro_fake_f(fake_build_get_file_name_without_extension)); break; } @@ -507,7 +507,7 @@ extern "C" { *status = f_file_name_directory(sources[i]->array[j], &source_path); if (F_status_is_error(*status)) { - fake_print_error(data->setting, *status, data->main->error, macro_fake_f(f_file_name_directory)); + fake_print_error(data->setting, data->main->error, *status, macro_fake_f(f_file_name_directory)); break; } @@ -516,7 +516,7 @@ extern "C" { *status = f_string_dynamic_prepend(data->path_build_objects, &source_path); if (F_status_is_error(*status)) { - fake_print_error(data->setting, *status, data->main->error, macro_fake_f(f_string_dynamic_prepend)); + fake_print_error(data->setting, data->main->error, *status, macro_fake_f(f_string_dynamic_prepend)); break; } @@ -524,7 +524,7 @@ extern "C" { *status = f_string_dynamic_append_assure(f_path_separator_s, &source_path); if (F_status_is_error(*status)) { - fake_print_error(data->setting, *status, data->main->error, macro_fake_f(f_string_dynamic_append_assure)); + fake_print_error(data->setting, data->main->error, *status, macro_fake_f(f_string_dynamic_append_assure)); break; } @@ -553,7 +553,7 @@ extern "C" { *status = fll_execute_arguments_add(source, &arguments); if (F_status_is_error(*status)) { - fake_print_error(data->setting, *status, data->main->error, macro_fake_f(fll_execute_arguments_add)); + fake_print_error(data->setting, data->main->error, *status, macro_fake_f(fll_execute_arguments_add)); break; } diff --git a/level_3/fake/c/main/build/load.c b/level_3/fake/c/main/build/load.c index da76063..1506104 100644 --- a/level_3/fake/c/main/build/load.c +++ b/level_3/fake/c/main/build/load.c @@ -32,7 +32,7 @@ extern "C" { *status = fl_environment_load_name(variables[i], environment); if (F_status_is_error(*status)) { - fake_print_error(data->setting, *status, data->main->error, macro_fake_f(fl_environment_load_name)); + fake_print_error(data->setting, data->main->error, *status, macro_fake_f(fl_environment_load_name)); return; } @@ -62,7 +62,7 @@ extern "C" { *status = fl_environment_load_names(data_build->setting.environment, environment); if (F_status_is_error(*status)) { - fake_print_error(data->setting, *status, data->main->error, macro_fake_f(fl_environment_load_names)); + fake_print_error(data->setting, data->main->error, *status, macro_fake_f(fl_environment_load_names)); } } #endif // _di_fake_build_load_environment_ @@ -149,13 +149,13 @@ extern "C" { *status = fll_fss_extended_read(buffer, state, &range, &objects, &contents, 0, 0, &delimits, 0); if (F_status_is_error(*status)) { - fake_print_error_fss(data, F_status_set_fine(*status), macro_fake_f(fll_fss_extended_read), data->file_data_build_settings, range, F_true); + fake_print_error_fss(data->setting, data->main->error, *status, macro_fake_f(fll_fss_extended_read), data->file_data_build_settings, range, F_true); } else { *status = f_fss_apply_delimit(state, delimits, &buffer); if (F_status_is_error(*status)) { - fake_print_error(data->setting, *status, data->main->error, macro_fake_f(f_fss_apply_delimit)); + fake_print_error(data->setting, data->main->error, *status, macro_fake_f(f_fss_apply_delimit)); } else { fake_build_load_setting_process( @@ -623,14 +623,14 @@ extern "C" { break; } - *status = f_string_dynamic_append(settings_name[j], &settings_mode_names[j]); + *status = f_string_dynamic_append_nulless(settings_name[j], &settings_mode_names[j]); if (F_status_is_error_not(*status)) { - *status = f_string_dynamic_append(f_string_ascii_minus_s, &settings_mode_names[j]); + *status = f_string_dynamic_append_nulless(f_string_ascii_minus_s, &settings_mode_names[j]); } if (F_status_is_error_not(*status)) { - *status = f_string_dynamic_append(modes->array[i], &settings_mode_names[j]); + *status = f_string_dynamic_append_nulless(modes->array[i], &settings_mode_names[j]); } if (F_status_is_error(*status)) { @@ -698,7 +698,7 @@ extern "C" { } } else if (!error_printed) { - fake_print_error(data->setting, *status, data->main->error, function); + fake_print_error(data->setting, data->main->error, *status, function); } } else { @@ -1138,7 +1138,7 @@ extern "C" { *status = f_string_dynamic_append(settings_single_string_default[i], settings_single_destination[i]); if (F_status_is_error(*status)) { - fake_print_error(data->setting, *status, data->main->error, macro_fake_f(f_string_dynamic_append)); + fake_print_error(data->setting, data->main->error, *status, macro_fake_f(f_string_dynamic_append)); break; } @@ -1257,7 +1257,7 @@ extern "C" { *status = f_path_directory_cleanup(settings_single_source[i]->array[settings_single_source[i]->used - 1], settings_single_destination[i]); if (F_status_is_error(*status)) { - fake_print_error(data->setting, *status, data->main->error, macro_fake_f(f_path_directory_cleanup)); + fake_print_error(data->setting, data->main->error, *status, macro_fake_f(f_path_directory_cleanup)); break; } @@ -1266,7 +1266,7 @@ extern "C" { *status = f_string_dynamic_increase_by(settings_single_source[i]->array[settings_single_source[i]->used - 1].used + 1, settings_single_destination[i]); if (F_status_is_error(*status)) { - fake_print_error(data->setting, *status, data->main->error, macro_fake_f(f_string_dynamic_increase_by)); + fake_print_error(data->setting, data->main->error, *status, macro_fake_f(f_string_dynamic_increase_by)); break; } @@ -1274,7 +1274,7 @@ extern "C" { *status = f_string_dynamic_append_nulless(settings_single_source[i]->array[settings_single_source[i]->used - 1], settings_single_destination[i]); if (F_status_is_error(*status)) { - fake_print_error(data->setting, *status, data->main->error, macro_fake_f(f_string_dynamic_append_nulless)); + fake_print_error(data->setting, data->main->error, *status, macro_fake_f(f_string_dynamic_append_nulless)); break; } @@ -1373,7 +1373,7 @@ extern "C" { *status = f_string_dynamic_append_assure(f_path_separator_s, &setting->path_sources); if (F_status_is_error(*status)) { - fake_print_error(data->setting, *status, data->main->error, macro_fake_f(f_string_dynamic_append_assure)); + fake_print_error(data->setting, data->main->error, *status, macro_fake_f(f_string_dynamic_append_assure)); return; } @@ -1536,7 +1536,7 @@ extern "C" { } if (F_status_is_error(*status)) { - fake_print_error(data->setting, *status, data->main->error, macro_fake_f(f_file_name_base)); + fake_print_error(data->setting, data->main->error, *status, macro_fake_f(f_file_name_base)); return; } @@ -1568,7 +1568,7 @@ extern "C" { } if (F_status_is_error(*status)) { - fake_print_error(data->setting, *status, data->main->error, macro_fake_f(f_string_dynamic_append_nulless)); + fake_print_error(data->setting, data->main->error, *status, macro_fake_f(f_string_dynamic_append_nulless)); break; } diff --git a/level_3/fake/c/main/build/object.c b/level_3/fake/c/main/build/object.c index d7d4ffb..d2a58c4 100644 --- a/level_3/fake/c/main/build/object.c +++ b/level_3/fake/c/main/build/object.c @@ -32,7 +32,7 @@ extern "C" { *status = fake_build_sources_object_add(data, data_build, &data_build->setting.build_sources_object, &data_build->setting.build_sources_object_shared, &arguments); if (F_status_is_error(*status)) { - fake_print_error(data->setting, *status, data->main->error, macro_fake_f(fake_build_sources_object_add)); + fake_print_error(data->setting, data->main->error, *status, macro_fake_f(fake_build_sources_object_add)); f_string_dynamics_resize(0, &arguments); @@ -69,7 +69,7 @@ extern "C" { fake_build_arguments_standard_add(data, data_build, F_true, fake_build_type_object_e, &arguments, status); if (F_status_is_error(*status)) { - fake_print_error(data->setting, *status, data->main->error, macro_fake_f(fake_build_arguments_standard_add)); + fake_print_error(data->setting, data->main->error, *status, macro_fake_f(fake_build_arguments_standard_add)); macro_f_string_dynamics_t_delete_simple(arguments); @@ -103,7 +103,7 @@ extern "C" { *status = fake_build_sources_object_add(data, data_build, &data_build->setting.build_sources_object, &data_build->setting.build_sources_object_static, &arguments); if (F_status_is_error(*status)) { - fake_print_error(data->setting, *status, data->main->error, macro_fake_f(fake_build_sources_object_add)); + fake_print_error(data->setting, data->main->error, *status, macro_fake_f(fake_build_sources_object_add)); f_string_dynamics_resize(0, &arguments); @@ -140,7 +140,7 @@ extern "C" { fake_build_arguments_standard_add(data, data_build, F_false, fake_build_type_object_e, &arguments, status); if (F_status_is_error(*status)) { - fake_print_error(data->setting, *status, data->main->error, macro_fake_f(fake_build_arguments_standard_add)); + fake_print_error(data->setting, data->main->error, *status, macro_fake_f(fake_build_arguments_standard_add)); macro_f_string_dynamics_t_delete_simple(arguments); diff --git a/level_3/fake/c/main/build/objects.c b/level_3/fake/c/main/build/objects.c index db38b69..c1ea63f1 100644 --- a/level_3/fake/c/main/build/objects.c +++ b/level_3/fake/c/main/build/objects.c @@ -21,7 +21,7 @@ extern "C" { *status = fake_build_objects_add(data, data_build, &data->path_build_objects_static, &data_build->setting.build_objects_library, &data_build->setting.build_objects_library_static, &arguments); if (F_status_is_error(*status)) { - fake_print_error(data->setting, *status, data->main->error, macro_fake_f(fake_build_objects_add)); + fake_print_error(data->setting, data->main->error, *status, macro_fake_f(fake_build_objects_add)); f_string_dynamics_resize(0, &arguments); @@ -66,7 +66,7 @@ extern "C" { *status = fake_build_get_file_name_without_extension(data, sources[i]->array[j], &file_name); if (F_status_is_error(*status)) { - fake_print_error(data->setting, *status, data->main->error, macro_fake_f(fake_build_get_file_name_without_extension)); + fake_print_error(data->setting, data->main->error, *status, macro_fake_f(fake_build_get_file_name_without_extension)); break; } @@ -74,7 +74,7 @@ extern "C" { *status = f_file_name_directory(sources[i]->array[j], &destination_path); if (F_status_is_error(*status)) { - fake_print_error(data->setting, *status, data->main->error, macro_fake_f(f_file_name_directory)); + fake_print_error(data->setting, data->main->error, *status, macro_fake_f(f_file_name_directory)); break; } @@ -83,7 +83,7 @@ extern "C" { *status = f_string_dynamic_prepend(data->path_build_objects, &destination_path); if (F_status_is_error(*status)) { - fake_print_error(data->setting, *status, data->main->error, macro_fake_f(f_string_dynamic_prepend)); + fake_print_error(data->setting, data->main->error, *status, macro_fake_f(f_string_dynamic_prepend)); break; } @@ -91,7 +91,7 @@ extern "C" { *status = f_string_dynamic_append_assure(f_path_separator_s, &destination_path); if (F_status_is_error(*status)) { - fake_print_error(data->setting, *status, data->main->error, macro_fake_f(f_string_dynamic_append_assure)); + fake_print_error(data->setting, data->main->error, *status, macro_fake_f(f_string_dynamic_append_assure)); break; } @@ -128,7 +128,7 @@ extern "C" { f_file_stream_unlock(data->main->error.to); } else { - fake_print_error_file(data->setting, *status, data->main->error, macro_fake_f(f_directory_create), destination_path, f_file_operation_create_s, fll_error_file_type_directory_e); + fake_print_error_file(data->setting, data->main->error, *status, macro_fake_f(f_directory_create), destination_path, f_file_operation_create_s, fll_error_file_type_directory_e); } break; @@ -140,7 +140,7 @@ extern "C" { } if (F_status_is_error(*status)) { - fake_print_error_file(data->setting, *status, data->main->error, macro_fake_f(f_directory_exists), destination_path, f_file_operation_create_s, fll_error_file_type_directory_e); + fake_print_error_file(data->setting, data->main->error, *status, macro_fake_f(f_directory_exists), destination_path, f_file_operation_create_s, fll_error_file_type_directory_e); break; } @@ -185,7 +185,7 @@ extern "C" { fake_build_arguments_standard_add(data, data_build, F_false, fake_build_type_library_e, &arguments, status); if (F_status_is_error(*status)) { - fake_print_error(data->setting, *status, data->main->error, macro_fake_f(fll_execute_arguments_add)); + fake_print_error(data->setting, data->main->error, *status, macro_fake_f(fll_execute_arguments_add)); break; } diff --git a/level_3/fake/c/main/build/program.c b/level_3/fake/c/main/build/program.c index 9b38672..7507fa1 100644 --- a/level_3/fake/c/main/build/program.c +++ b/level_3/fake/c/main/build/program.c @@ -32,7 +32,7 @@ extern "C" { *status = fake_build_objects_add(data, data_build, &data->path_build_objects_shared, &data_build->setting.build_objects_program, &data_build->setting.build_objects_program_shared, &arguments); if (F_status_is_error(*status)) { - fake_print_error(data->setting, *status, data->main->error, macro_fake_f(fake_build_objects_add)); + fake_print_error(data->setting, data->main->error, *status, macro_fake_f(fake_build_objects_add)); f_string_dynamics_resize(0, &arguments); @@ -42,7 +42,7 @@ extern "C" { *status = fake_build_sources_add(data, data_build, &data_build->setting.build_sources_program, &data_build->setting.build_sources_program_shared, &arguments); if (F_status_is_error(*status)) { - fake_print_error(data->setting, *status, data->main->error, macro_fake_f(fake_build_sources_add)); + fake_print_error(data->setting, data->main->error, *status, macro_fake_f(fake_build_sources_add)); f_string_dynamics_resize(0, &arguments); @@ -92,7 +92,7 @@ extern "C" { fake_build_arguments_standard_add(data, data_build, F_true, fake_build_type_program_e, &arguments, status); if (F_status_is_error(*status)) { - fake_print_error(data->setting, *status, data->main->error, macro_fake_f(fll_execute_arguments_add)); + fake_print_error(data->setting, data->main->error, *status, macro_fake_f(fll_execute_arguments_add)); macro_f_string_dynamics_t_delete_simple(arguments); @@ -126,7 +126,7 @@ extern "C" { *status = fake_build_objects_add(data, data_build, &data->path_build_objects_static, &data_build->setting.build_objects_program, &data_build->setting.build_objects_program_static, &arguments); if (F_status_is_error(*status)) { - fake_print_error(data->setting, *status, data->main->error, macro_fake_f(fake_build_objects_add)); + fake_print_error(data->setting, data->main->error, *status, macro_fake_f(fake_build_objects_add)); f_string_dynamics_resize(0, &arguments); @@ -136,7 +136,7 @@ extern "C" { *status = fake_build_sources_add(data, data_build, &data_build->setting.build_sources_program, &data_build->setting.build_sources_program_static, &arguments); if (F_status_is_error(*status)) { - fake_print_error(data->setting, *status, data->main->error, macro_fake_f(fake_build_sources_add)); + fake_print_error(data->setting, data->main->error, *status, macro_fake_f(fake_build_sources_add)); f_string_dynamics_resize(0, &arguments); @@ -196,7 +196,7 @@ extern "C" { fake_build_arguments_standard_add(data, data_build, F_false, fake_build_type_program_e, &arguments, status); if (F_status_is_error(*status)) { - fake_print_error(data->setting, *status, data->main->error, macro_fake_f(fll_execute_arguments_add)); + fake_print_error(data->setting, data->main->error, *status, macro_fake_f(fll_execute_arguments_add)); macro_f_string_dynamics_t_delete_simple(arguments); diff --git a/level_3/fake/c/main/build/skeleton.c b/level_3/fake/c/main/build/skeleton.c index f118cc3..54b1925 100644 --- a/level_3/fake/c/main/build/skeleton.c +++ b/level_3/fake/c/main/build/skeleton.c @@ -106,7 +106,7 @@ extern "C" { continue; } - fake_print_error_file(data->setting, *status, data->main->error, macro_fake_f(f_directory_create), directorys[i], f_file_operation_create_s, fll_error_file_type_directory_e); + fake_print_error_file(data->setting, data->main->error, *status, macro_fake_f(f_directory_create), directorys[i], f_file_operation_create_s, fll_error_file_type_directory_e); return; } diff --git a/level_3/fake/c/main/clean.c b/level_3/fake/c/main/clean.c index f600425..5edac3d 100644 --- a/level_3/fake/c/main/clean.c +++ b/level_3/fake/c/main/clean.c @@ -36,7 +36,7 @@ extern "C" { } if (F_status_is_error(status)) { - fake_print_error_file(data->setting, status, data->main->error, macro_fake_f(f_directory_remove), data->setting->build, f_file_operation_delete_s, fll_error_file_type_directory_e); + fake_print_error_file(data->setting, data->main->error, status, macro_fake_f(f_directory_remove), data->setting->build, f_file_operation_delete_s, fll_error_file_type_directory_e); return status; } diff --git a/level_3/fake/c/main/common.c b/level_3/fake/c/main/common.c index 275b3cf..93b4e03 100644 --- a/level_3/fake/c/main/common.c +++ b/level_3/fake/c/main/common.c @@ -47,7 +47,7 @@ extern "C" { } if (F_status_is_error(setting->status)) { - fake_print_error(setting, setting->status, main->error, macro_fake_f(f_console_parameter_process)); + fake_print_error(setting, main->error, setting->status, macro_fake_f(f_console_parameter_process)); return; } @@ -67,7 +67,7 @@ extern "C" { setting->status = fll_program_parameter_process_context(choices, modes, F_true, main); if (F_status_is_error(setting->status)) { - fake_print_error(setting, setting->status, main->error, macro_fake_f(fll_program_parameter_process_context)); + fake_print_error(setting, main->error, setting->status, macro_fake_f(fll_program_parameter_process_context)); return; } @@ -98,7 +98,7 @@ extern "C" { setting->status = fll_program_parameter_process_verbosity(choices, verbosity, F_true, main); if (F_status_is_error(setting->status)) { - fake_print_error(setting, setting->status, main->error, macro_fake_f(fll_program_parameter_process_verbosity)); + fake_print_error(setting, main->error, setting->status, macro_fake_f(fll_program_parameter_process_verbosity)); return; } @@ -264,7 +264,7 @@ extern "C" { // @todo fix this to print an error about the actual invalid character so that it can be investigated. if (F_status_is_error(setting->status)) { - if (fake_print_error_fallback(setting, setting->status, main->error, macro_fake_f(f_utf_is_word_dash_plus)) == F_false) { + if (fake_print_error_fallback(setting, main->error, setting->status, macro_fake_f(f_utf_is_word_dash_plus)) == F_false) { fll_program_print_error_parameter_process(main->error, f_console_symbol_long_normal_s, names[i]); } @@ -288,7 +288,7 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { fake_print_line_first_locked(setting, main->error); - if (fake_print_error_fallback(setting, setting->status, main->error, macro_fake_f(f_path_directory_cleanup)) == F_false) { + if (fake_print_error_fallback(setting, main->error, setting->status, macro_fake_f(f_path_directory_cleanup)) == F_false) { fll_program_print_error_parameter_process(main->error, f_console_symbol_long_normal_s, names[i]); } } @@ -303,7 +303,7 @@ extern "C" { setting->status = f_string_dynamic_resize(0, variable[i]); if (F_status_is_error(setting->status)) { - fake_print_error(setting, setting->status, main->error, macro_fake_f(f_string_dynamic_resize)); + fake_print_error(setting, main->error, setting->status, macro_fake_f(f_string_dynamic_resize)); return; } @@ -332,7 +332,7 @@ extern "C" { setting->status = f_string_dynamic_resize(0, variable[i]); if (F_status_is_error(setting->status)) { - fake_print_error(setting, setting->status, main->error, macro_fake_f(f_string_dynamic_resize)); + fake_print_error(setting, main->error, setting->status, macro_fake_f(f_string_dynamic_resize)); return; } @@ -361,6 +361,8 @@ extern "C" { &setting->modes, }; + f_array_length_t width_max = 0; + for (i = 0; i < 2; ++i) { if (main->parameters.array[parameters[i]].result & f_console_result_found_e) { @@ -380,7 +382,7 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { fake_print_line_first_locked(setting, main->error); - if (fake_print_error_fallback(setting, setting->status, main->error, macro_fake_f(fll_program_parameter_additional_rip)) == F_false) { + if (fake_print_error_fallback(setting, main->error, setting->status, macro_fake_f(fll_program_parameter_additional_rip)) == F_false) { fll_program_print_error_parameter_process(main->error, f_console_symbol_long_normal_s, names[i]); } } @@ -389,36 +391,29 @@ extern "C" { } if (parameters[i] == fake_parameter_mode_e) { - f_array_length_t i = 0; - f_array_length_t j = 0; - f_array_length_t width_max = 0; - - for (; i < setting->modes.used; ++i) { - - for (j = 0; j < setting->modes.array[i].used; ++j) { + for (j = 0; j < main->parameters.arguments.array[i].used; ++j) { - width_max = setting->modes.array[i].used - j; + width_max = main->parameters.arguments.array[i].used - j; - setting->status = f_utf_is_word_dash_plus(main->parameters.arguments.array[i].string + j, main->parameters.arguments.array[i].used - j, F_false); + setting->status = f_utf_is_word_dash_plus(main->parameters.arguments.array[i].string + j, width_max, F_false); - if (F_status_is_error(setting->status)) { - // @todo fix this to print an error about the actual invalid character so that it can be investigated. - - if (fake_print_error_fallback(setting, setting->status, main->error, macro_fake_f(f_utf_is_word_dash_plus)) == F_false) { - fll_program_print_error_parameter_process(main->error, f_console_symbol_long_normal_s, names[i]); - } + if (F_status_is_error(setting->status)) { + // @todo fix this to print an error about the actual invalid character so that it can be investigated. - return; + if (fake_print_error_fallback(setting, main->error, setting->status, macro_fake_f(f_utf_is_word_dash_plus)) == F_false) { + fll_program_print_error_parameter_process(main->error, f_console_symbol_long_normal_s, names[i]); } - if (setting->status == F_false) { - setting->status = F_status_set_error(F_parameter); + return; + } - fake_print_error_parameter_not_word(setting, main->error, f_console_symbol_long_normal_s, names[i], main->parameters.arguments.array[index]); + if (setting->status == F_false) { + setting->status = F_status_set_error(F_parameter); - return; - } - } // for + fake_print_error_parameter_not_word(setting, main->error, f_console_symbol_long_normal_s, names[i], main->parameters.arguments.array[i]); + + return; + } } // for } } @@ -436,7 +431,7 @@ extern "C" { setting->status = f_uint8s_increase_by(1, &setting->operations); if (F_status_is_error(setting->status)) { - fake_print_error(setting, setting->status, main->error, macro_fake_f(f_uint8s_increase_by)); + fake_print_error(setting, main->error, setting->status, macro_fake_f(f_uint8s_increase_by)); return; } @@ -463,7 +458,7 @@ extern "C" { state->status = f_uint8s_increase(fake_default_allocation_small_d, &data->setting->operations); if (F_status_is_error(state->status)) { - fake_print_error(data->setting, state->status, data->main->error, macro_fake_f(f_uint8s_increase)); + fake_print_error(data->setting, data->main->error, state->status, macro_fake_f(f_uint8s_increase)); return; } diff --git a/level_3/fake/c/main/fake.c b/level_3/fake/c/main/fake.c index 618aa43..35dc8e5 100644 --- a/level_3/fake/c/main/fake.c +++ b/level_3/fake/c/main/fake.c @@ -68,7 +68,7 @@ extern "C" { setting->status = f_string_dynamic_append(f_string_ascii_minus_s, &data.file_data_build_fakefile); if (F_status_is_error(setting->status)) { - fake_print_error(setting, setting->status, main->error, macro_fake_f(f_string_dynamic_append)); + fake_print_error(setting, main->error, setting->status, macro_fake_f(f_string_dynamic_append)); } else { setting->fakefile.used = 0; @@ -112,8 +112,8 @@ extern "C" { if (F_status_is_error(setting->status)) { fake_print_error_file( setting, - F_status_set_fine(setting->status), main->error, + F_status_set_fine(setting->status), macro_fake_f(f_file_is), setting->operations.array[i] == fake_operation_build_e ? data.file_data_build_settings @@ -286,7 +286,7 @@ extern "C" { } } else { - fake_print_error(data->setting, *status, data->main->error, macro_fake_f(fll_execute_program)); + fake_print_error(data->setting, data->main->error, *status, macro_fake_f(fll_execute_program)); } } @@ -306,7 +306,7 @@ extern "C" { f_status_t status = f_file_exists(path_file, F_true); if (F_status_is_error(status)) { - fake_print_error_file(data->setting, status, data->main->error, macro_fake_f(f_file_exists), path_file, f_file_operation_find_s, fll_error_file_type_file_e); + fake_print_error_file(data->setting, data->main->error, status, macro_fake_f(f_file_exists), path_file, f_file_operation_find_s, fll_error_file_type_file_e); return status; } @@ -318,7 +318,7 @@ extern "C" { status = f_file_size(path_file, F_true, &size_file); if (F_status_is_error(status)) { - fake_print_error_file(data->setting, status, data->main->error, macro_fake_f(f_file_size), path_file, f_file_operation_read_s, fll_error_file_type_file_e); + fake_print_error_file(data->setting, data->main->error, status, macro_fake_f(f_file_size), path_file, f_file_operation_read_s, fll_error_file_type_file_e); return status; } @@ -332,7 +332,7 @@ extern "C" { if (F_status_is_error(status)) { const f_string_static_t message = macro_f_string_static_t_initialize("allocate buffer size for", 0, 24); - fake_print_error_file(data->setting, status, data->main->error, macro_fake_f(f_string_dynamic_increase_by), path_file, message, fll_error_file_type_file_e); + fake_print_error_file(data->setting, data->main->error, status, macro_fake_f(f_string_dynamic_increase_by), path_file, message, fll_error_file_type_file_e); return status; } @@ -345,7 +345,7 @@ extern "C" { status = f_file_stream_open(path_file, f_string_empty_s, &file); if (F_status_is_error(status)) { - fake_print_error_file(data->setting, status, data->main->error, macro_fake_f(f_file_stream_open), path_file, f_file_operation_open_s, fll_error_file_type_file_e); + fake_print_error_file(data->setting, data->main->error, status, macro_fake_f(f_file_stream_open), path_file, f_file_operation_open_s, fll_error_file_type_file_e); return status; } @@ -356,14 +356,14 @@ extern "C" { f_file_stream_close(&file); if (F_status_is_error(status)) { - fake_print_error_file(data->setting, status, data->main->error, macro_fake_f(f_file_read), path_file, f_file_operation_read_s, fll_error_file_type_file_e); + fake_print_error_file(data->setting, data->main->error, status, macro_fake_f(f_file_read), path_file, f_file_operation_read_s, fll_error_file_type_file_e); } } else { if (required) { status = F_status_set_error(F_file_found_not); - fake_print_error_file(data->setting, status, data->main->error, macro_fake_f(f_file_exists), path_file, f_file_operation_find_s, fll_error_file_type_file_e); + fake_print_error_file(data->setting, data->main->error, status, macro_fake_f(f_file_exists), path_file, f_file_operation_find_s, fll_error_file_type_file_e); } } @@ -385,7 +385,7 @@ extern "C" { if (F_status_is_error(status)) { const f_string_static_t message = macro_f_string_static_t_initialize("allocate buffer size for", 0, 24); - fake_print_error_file(data->setting, status, data->main->error, macro_fake_f(f_string_dynamic_increase_by), f_string_ascii_minus_s, message, fll_error_file_type_file_e); + fake_print_error_file(data->setting, data->main->error, status, macro_fake_f(f_string_dynamic_increase_by), f_string_ascii_minus_s, message, fll_error_file_type_file_e); return status; } @@ -405,7 +405,7 @@ extern "C" { } while (F_status_is_fine(status) && status != F_interrupt && status != F_none_eof); if (F_status_is_error(status)) { - fake_print_error_file(data->setting, status, data->main->error, macro_fake_f(f_file_stream_read_block), f_string_ascii_minus_s, f_file_operation_read_s, fll_error_file_type_file_e); + fake_print_error_file(data->setting, data->main->error, status, macro_fake_f(f_file_stream_read_block), f_string_ascii_minus_s, f_file_operation_read_s, fll_error_file_type_file_e); } return status; @@ -498,7 +498,7 @@ extern "C" { if (F_status_is_error(status)) { if (F_status_set_fine(status) != F_directory_found_not || requireds[i]) { - fake_print_error_file(data->setting, status, data->main->error, macro_fake_f(f_file_stat), values[i], f_file_operation_access_s, fll_error_file_type_directory_e); + fake_print_error_file(data->setting, data->main->error, status, macro_fake_f(f_file_stat), values[i], f_file_operation_access_s, fll_error_file_type_directory_e); return status; } diff --git a/level_3/fake/c/main/fake/path_generate.c b/level_3/fake/c/main/fake/path_generate.c index 2118b40..c046f32 100644 --- a/level_3/fake/c/main/fake/path_generate.c +++ b/level_3/fake/c/main/fake/path_generate.c @@ -57,7 +57,7 @@ extern "C" { status = fake_path_generate_string_dynamic(data, sources[i], values[i], parameters_size[i]); if (F_status_is_error(status)) { - fake_print_error(data->setting, status, data->main->error, macro_fake_f(fake_path_generate_string_dynamic)); + fake_print_error(data->setting, data->main->error, status, macro_fake_f(fake_path_generate_string_dynamic)); return status; } @@ -102,7 +102,7 @@ extern "C" { status = f_string_dynamic_append_nulless(sources[i], values[i]); if (F_status_is_error(status)) { - fake_print_error(data->setting, status, data->main->error, macro_fake_f(f_string_dynamic_append_nulless)); + fake_print_error(data->setting, data->main->error, status, macro_fake_f(f_string_dynamic_append_nulless)); return status; } @@ -170,7 +170,7 @@ extern "C" { status = fake_path_generate_string_dynamic(data, sources[i], values[i], parameters_size[i]); if (F_status_is_error(status)) { - fake_print_error(data->setting, status, data->main->error, macro_fake_f(fake_path_generate_string_dynamic)); + fake_print_error(data->setting, data->main->error, status, macro_fake_f(fake_path_generate_string_dynamic)); return status; } @@ -230,7 +230,7 @@ extern "C" { status = f_string_dynamic_append_nulless(sources[i], values[i]); if (F_status_is_error(status)) { - fake_print_error(data->setting, status, data->main->error, macro_fake_f(f_string_dynamic_append_nulless)); + fake_print_error(data->setting, data->main->error, status, macro_fake_f(f_string_dynamic_append_nulless)); return status; } @@ -252,7 +252,7 @@ extern "C" { status = f_string_dynamic_append_nulless(data->setting->work, values[i]); if (F_status_is_error(status)) { - fake_print_error(data->setting, status, data->main->error, macro_fake_f(f_string_dynamic_append_nulless)); + fake_print_error(data->setting, data->main->error, status, macro_fake_f(f_string_dynamic_append_nulless)); return status; } @@ -277,7 +277,7 @@ extern "C" { status = f_string_dynamic_append_nulless(sources[i], values[i]); if (F_status_is_error(status)) { - fake_print_error(data->setting, status, data->main->error, macro_fake_f(f_string_dynamic_append_nulless)); + fake_print_error(data->setting, data->main->error, status, macro_fake_f(f_string_dynamic_append_nulless)); return status; } @@ -317,7 +317,7 @@ extern "C" { status = fake_path_generate_string_dynamic(data, sources[i], values[i], parameters_size[i]); if (F_status_is_error(status)) { - fake_print_error(data->setting, status, data->main->error, macro_fake_f(fake_path_generate_string_dynamic)); + fake_print_error(data->setting, data->main->error, status, macro_fake_f(fake_path_generate_string_dynamic)); return status; } @@ -348,7 +348,7 @@ extern "C" { status = f_string_dynamic_append_nulless(sources[i], values[i]); if (F_status_is_error(status)) { - fake_print_error(data->setting, status, data->main->error, macro_fake_f(f_string_dynamic_append_nulless)); + fake_print_error(data->setting, data->main->error, status, macro_fake_f(f_string_dynamic_append_nulless)); return status; } diff --git a/level_3/fake/c/main/make.c b/level_3/fake/c/main/make.c index 3cf0915..7df1c31 100644 --- a/level_3/fake/c/main/make.c +++ b/level_3/fake/c/main/make.c @@ -52,7 +52,7 @@ extern "C" { status = f_account_group_id_by_name(buffer, id); if (F_status_is_error(status)) { - fake_print_error(data->setting, status, data->main->error, macro_fake_f(f_account_group_id_by_name)); + fake_print_error(data->setting, data->main->error, status, macro_fake_f(f_account_group_id_by_name)); return F_status_set_error(status); } @@ -74,7 +74,7 @@ extern "C" { return F_none; } - fake_print_error(data->setting, status, data->main->error, macro_fake_f(fl_conversion_dynamic_to_unsigned_detect)); + fake_print_error(data->setting, data->main->error, status, macro_fake_f(fl_conversion_dynamic_to_unsigned_detect)); return F_status_set_error(status); } @@ -101,7 +101,7 @@ extern "C" { f_status_t fake_make_get_id_mode(fake_data_t * const data, const fl_print_t print, const f_string_static_t buffer, f_file_mode_t *mode, uint8_t *replace) { if (!buffer.used) { - fake_print_error(data->setting, F_parameter, data->main->error, macro_fake_f(fake_make_get_id_mode)); + fake_print_error(data->setting, data->main->error, F_parameter, macro_fake_f(fake_make_get_id_mode)); return F_status_set_error(F_parameter); } @@ -120,7 +120,7 @@ extern "C" { f_file_stream_unlock(data->main->error.to); } else { - fake_print_error(data->setting, status, print, macro_fake_f(fll_execute_arguments_add)); + fake_print_error(data->setting, print, status, macro_fake_f(fll_execute_arguments_add)); } } @@ -145,7 +145,7 @@ extern "C" { status = f_account_id_by_name(buffer, id); if (F_status_is_error(status)) { - fake_print_error(data->setting, status, data->main->error, macro_fake_f(f_account_id_by_name)); + fake_print_error(data->setting, data->main->error, status, macro_fake_f(f_account_id_by_name)); return F_status_set_error(status); } @@ -167,7 +167,7 @@ extern "C" { return F_none; } - fake_print_error(data->setting, status, data->main->error, macro_fake_f(fl_conversion_dynamic_to_unsigned_detect)); + fake_print_error(data->setting, data->main->error, status, macro_fake_f(fl_conversion_dynamic_to_unsigned_detect)); return F_status_set_error(status); } diff --git a/level_3/fake/c/main/make/load_fakefile.c b/level_3/fake/c/main/make/load_fakefile.c index 0d28dcf..ff88f83 100644 --- a/level_3/fake/c/main/make/load_fakefile.c +++ b/level_3/fake/c/main/make/load_fakefile.c @@ -59,13 +59,13 @@ extern "C" { *status = fll_fss_basic_list_read(data_make->buffer, state, &range, &list_objects, &list_contents, &delimits, 0, &comments); if (F_status_is_error(*status)) { - fake_print_error_fss(data_make->data, F_status_set_fine(*status), macro_fake_f(fll_fss_basic_list_read), data_make->data->file_data_build_fakefile, range, F_true); + fake_print_error_fss(data_make->setting, data_make->main->error, *status, macro_fake_f(fll_fss_basic_list_read), data_make->data->file_data_build_fakefile, range, F_true); } else { *status = f_fss_apply_delimit(state, delimits, &data_make->buffer); if (F_status_is_error(*status)) { - fake_print_error(data_make->setting, *status, data_make->main->error, macro_fake_f(f_fss_apply_delimit)); + fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_fss_apply_delimit)); } delimits.used = 0; @@ -94,7 +94,7 @@ extern "C" { } if (F_status_is_error(*status)) { - fake_print_error(data_make->setting, *status, data_make->main->error, macro_fake_f(macro_f_fss_nameds_t_resize)); + fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(macro_f_fss_nameds_t_resize)); macro_f_fss_set_t_delete_simple(settings); macro_f_fss_objects_t_delete_simple(list_objects); @@ -134,7 +134,7 @@ extern "C" { *status = fll_fss_extended_read(data_make->buffer, state, &content_range, &settings.objects, &settings.contents, 0, 0, &delimits, 0); if (F_status_is_error(*status)) { - fake_print_error_fss(data_make->data, F_status_set_fine(*status), macro_fake_f(fll_fss_extended_read), data_make->data->file_data_build_fakefile, content_range, F_true); + fake_print_error_fss(data_make->setting, data_make->main->error, *status, macro_fake_f(fll_fss_extended_read), data_make->data->file_data_build_fakefile, content_range, F_true); break; } @@ -142,7 +142,7 @@ extern "C" { *status = f_fss_apply_delimit(state, delimits, &data_make->buffer); if (F_status_is_error(*status)) { - fake_print_error(data_make->setting, *status, data_make->main->error, macro_fake_f(f_fss_apply_delimit)); + fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_fss_apply_delimit)); break; } @@ -175,7 +175,7 @@ extern "C" { *status = fll_fss_extended_read(data_make->buffer, state, &content_range, &data_make->fakefile.array[data_make->fakefile.used].objects, &data_make->fakefile.array[data_make->fakefile.used].contents, 0, &data_make->fakefile.array[data_make->fakefile.used].quotess, &delimits, 0); if (F_status_is_error(*status)) { - fake_print_error_fss(data_make->data, F_status_set_fine(*status), macro_fake_f(fll_fss_extended_read), data_make->data->file_data_build_fakefile, content_range, F_true); + fake_print_error_fss(data_make->setting, data_make->main->error, *status, macro_fake_f(fll_fss_extended_read), data_make->data->file_data_build_fakefile, content_range, F_true); break; } @@ -183,7 +183,7 @@ extern "C" { *status = f_fss_apply_delimit(state, delimits, &data_make->buffer); if (F_status_is_error(*status)) { - fake_print_error(data_make->setting, *status, data_make->main->error, macro_fake_f(f_fss_apply_delimit)); + fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_fss_apply_delimit)); break; } @@ -232,7 +232,7 @@ extern "C" { } if (F_status_is_error(*status)) { - fake_print_error(data_make->setting, *status, data_make->main->error, function_name); + fake_print_error(data_make->setting, data_make->main->error, *status, function_name); macro_f_fss_set_t_delete_simple(settings); @@ -283,7 +283,7 @@ extern "C" { fake_build_load_setting(data_make->data, 0, F_false, &data_make->setting_build, status); if (F_status_is_error(*status) && *status != F_status_set_error(F_interrupt)) { - fake_print_error(data_make->setting, *status, data_make->main->error, macro_fake_f(fake_build_load_setting)); + fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(fake_build_load_setting)); } } @@ -308,7 +308,7 @@ extern "C" { if (F_status_is_error(*status)) { if (F_status_set_fine(*status) != F_interrupt) { - fake_print_error(data_make->setting, *status, data_make->main->error, macro_fake_f(f_string_dynamic_partial_append)); + fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamic_partial_append)); } macro_f_fss_set_t_delete_simple(settings); @@ -386,7 +386,7 @@ extern "C" { status = fll_fss_snatch_map_apart(data_make->buffer, settings->objects, settings->contents, settings_name, 2, settings_value, 0, 0); if (F_status_is_error(status)) { - fake_print_error(data->setting, status, data->main->error, macro_fake_f(fll_fss_snatch_map_apart)); + fake_print_error(data->setting, data->main->error, status, macro_fake_f(fll_fss_snatch_map_apart)); macro_f_string_map_multis_t_delete_simple(define); @@ -413,7 +413,7 @@ extern "C" { status = f_string_dynamic_mash(f_string_space_s, define.array[i].value.array[j], &combined); if (F_status_is_error(status)) { - fake_print_error(data->setting, status, data->main->error, macro_fake_f(f_string_dynamic_mash)); + fake_print_error(data->setting, data->main->error, status, macro_fake_f(f_string_dynamic_mash)); break; } @@ -424,7 +424,7 @@ extern "C" { status = f_environment_set(define.array[i].name, combined, F_true); if (F_status_is_error(status)) { - fake_print_error(data->setting, status, data->main->error, macro_fake_f(f_environment_set)); + fake_print_error(data->setting, data->main->error, status, macro_fake_f(f_environment_set)); break; } @@ -466,7 +466,7 @@ extern "C" { status = f_string_dynamic_partial_append_nulless(data_make->buffer, content->array[i], &name_define); if (F_status_is_error(status)) { - fake_print_error(data_make->setting, status, data_make->main->error, macro_fake_f(f_string_dynamic_partial_append_nulless)); + fake_print_error(data_make->setting, data_make->main->error, status, macro_fake_f(f_string_dynamic_partial_append_nulless)); break; } @@ -481,7 +481,7 @@ extern "C" { status = f_string_dynamics_increase(fake_default_allocation_small_d, &data_make->setting_build.environment); if (F_status_is_error(status)) { - fake_print_error(data_make->setting, status, data_make->main->error, macro_fake_f(f_string_dynamics_increase)); + fake_print_error(data_make->setting, data_make->main->error, status, macro_fake_f(f_string_dynamics_increase)); break; } @@ -491,7 +491,7 @@ extern "C" { status = f_string_dynamic_increase_by(name_define.used + 1, &data_make->setting_build.environment.array[j]); if (F_status_is_error(status)) { - fake_print_error(data_make->setting, status, data_make->main->error, macro_fake_f(f_string_dynamic_increase_by)); + fake_print_error(data_make->setting, data_make->main->error, status, macro_fake_f(f_string_dynamic_increase_by)); break; } @@ -499,7 +499,7 @@ extern "C" { status = f_string_dynamic_append_nulless(name_define, &data_make->setting_build.environment.array[j]); if (F_status_is_error(status)) { - fake_print_error(data_make->setting, status, data_make->main->error, macro_fake_f(f_string_dynamic_append_nulless)); + fake_print_error(data_make->setting, data_make->main->error, status, macro_fake_f(f_string_dynamic_append_nulless)); break; } @@ -514,7 +514,7 @@ extern "C" { status = f_string_dynamic_append_nulless(name_define, &data_make->setting_build.environment.array[j]); if (F_status_is_error(status)) { - fake_print_error(data_make->setting, status, data_make->main->error, macro_fake_f(f_string_dynamic_append_nulless)); + fake_print_error(data_make->setting, data_make->main->error, status, macro_fake_f(f_string_dynamic_append_nulless)); break; } @@ -595,7 +595,7 @@ extern "C" { status = f_string_dynamic_partial_append_nulless(data_make->buffer, content->array[i], &data_make->setting_make.parameter.array[0].value.array[0]); if (F_status_is_error(status)) { - fake_print_error(data_make->setting, status, data_make->main->error, macro_fake_f(f_string_dynamic_partial_append_nulless)); + fake_print_error(data_make->setting, data_make->main->error, status, macro_fake_f(f_string_dynamic_partial_append_nulless)); break; } @@ -603,7 +603,7 @@ extern "C" { status = f_string_dynamic_append_assure(f_string_space_s, &data_make->setting_make.parameter.array[0].value.array[0]); if (F_status_is_error(status)) { - fake_print_error(data_make->setting, status, data_make->main->error, macro_fake_f(f_string_dynamic_append_assure)); + fake_print_error(data_make->setting, data_make->main->error, status, macro_fake_f(f_string_dynamic_append_assure)); break; } diff --git a/level_3/fake/c/main/make/load_parameters.c b/level_3/fake/c/main/make/load_parameters.c index 555ab31..8619678 100644 --- a/level_3/fake/c/main/make/load_parameters.c +++ b/level_3/fake/c/main/make/load_parameters.c @@ -18,7 +18,7 @@ extern "C" { } if (F_status_is_error(*status)) { - fake_print_error(data_make->setting, *status, data_make->main->error, macro_fake_f(f_string_dynamics_increase_by)); + fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamics_increase_by)); return; } @@ -65,7 +65,7 @@ extern "C" { } if (F_status_is_error(*status)) { - fake_print_error(data_make->setting, *status, data_make->main->error, macro_fake_f(f_string_dynamic_append)); + fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamic_append)); return; } @@ -82,7 +82,7 @@ extern "C" { } if (F_status_is_error(*status)) { - fake_print_error(data_make->setting, *status, data_make->main->error, macro_fake_f(f_string_dynamics_increase_by)); + fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamics_increase_by)); return; } @@ -141,7 +141,7 @@ extern "C" { } if (F_status_is_error(*status)) { - fake_print_error(data_make->setting, *status, data_make->main->error, macro_fake_f(f_string_dynamic_append)); + fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamic_append)); return; } @@ -194,7 +194,7 @@ extern "C" { *status = f_string_dynamics_increase_by(fake_default_allocation_small_d, destination[i]); if (F_status_is_error(*status)) { - fake_print_error(data_make->setting, *status, data_make->main->error, macro_fake_f(f_string_dynamics_increase_by)); + fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamics_increase_by)); return; } @@ -207,7 +207,7 @@ extern "C" { } if (F_status_is_error(*status)) { - fake_print_error(data_make->setting, *status, data_make->main->error, macro_fake_f(f_string_dynamics_increase)); + fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamics_increase)); return; } @@ -228,7 +228,7 @@ extern "C" { } if (F_status_is_error(*status)) { - fake_print_error(data_make->setting, *status, data_make->main->error, macro_fake_f(f_string_dynamic_append_nulless)); + fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamic_append_nulless)); return; } @@ -239,7 +239,7 @@ extern "C" { *status = f_string_dynamics_increase_by(fake_default_allocation_small_d, destination[i]); if (F_status_is_error(*status)) { - fake_print_error(data_make->setting, *status, data_make->main->error, macro_fake_f(f_string_dynamics_increase_by)); + fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamics_increase_by)); return; } @@ -251,7 +251,7 @@ extern "C" { } if (F_status_is_error(*status)) { - fake_print_error(data_make->setting, *status, data_make->main->error, macro_fake_f(f_string_dynamic_append_nulless)); + fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamic_append_nulless)); return; } @@ -343,7 +343,7 @@ extern "C" { *status = f_string_dynamics_increase_by(fake_default_allocation_small_d, destination[i]); if (F_status_is_error(*status)) { - fake_print_error(data_make->setting, *status, data_make->main->error, macro_fake_f(f_string_dynamics_increase_by)); + fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamics_increase_by)); return; } @@ -356,7 +356,7 @@ extern "C" { } if (F_status_is_error(*status)) { - fake_print_error(data_make->setting, *status, data_make->main->error, macro_fake_f(f_string_dynamics_increase)); + fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamics_increase)); return; } @@ -377,7 +377,7 @@ extern "C" { } if (F_status_is_error(*status)) { - fake_print_error(data_make->setting, *status, data_make->main->error, macro_fake_f(f_string_dynamic_append_nulless)); + fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamic_append_nulless)); return; } @@ -388,7 +388,7 @@ extern "C" { *status = f_string_dynamics_increase_by(fake_default_allocation_small_d, destination[i]); if (F_status_is_error(*status)) { - fake_print_error(data_make->setting, *status, data_make->main->error, macro_fake_f(f_string_dynamics_increase_by)); + fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamics_increase_by)); return; } @@ -400,7 +400,7 @@ extern "C" { } if (F_status_is_error(*status)) { - fake_print_error(data_make->setting, *status, data_make->main->error, macro_fake_f(f_string_dynamic_append_nulless)); + fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamic_append_nulless)); return; } diff --git a/level_3/fake/c/main/make/operate.c b/level_3/fake/c/main/make/operate.c index 48f08de..7bfd9ea 100644 --- a/level_3/fake/c/main/make/operate.c +++ b/level_3/fake/c/main/make/operate.c @@ -37,7 +37,7 @@ extern "C" { status = f_string_dynamics_increase(fake_default_allocation_small_d, &data_make.path.stack); if (F_status_is_error(status)) { - fake_print_error(data_make.setting, status, data_make.main->error, macro_fake_f(f_string_dynamics_increase)); + fake_print_error(data_make.setting, data_make.main->error, status, macro_fake_f(f_string_dynamics_increase)); return status; } @@ -45,7 +45,7 @@ extern "C" { status = f_path_current(F_true, &data_make.path.stack.array[0]); if (F_status_is_error(status)) { - fake_print_error(data_make.setting, status, data_make.main->error, macro_fake_f(f_path_current)); + fake_print_error(data_make.setting, data_make.main->error, status, macro_fake_f(f_path_current)); fake_make_data_delete(&data_make); @@ -55,7 +55,7 @@ extern "C" { status = f_directory_open(data_make.path.stack.array[0], F_false, &data_make.path.top.id); if (F_status_is_error(status)) { - fake_print_error(data_make.setting, status, data_make.main->error, macro_fake_f(f_directory_open)); + fake_print_error(data_make.setting, data_make.main->error, status, macro_fake_f(f_directory_open)); fake_make_data_delete(&data_make); @@ -220,7 +220,7 @@ extern "C" { *status = f_string_dynamics_increase_by(content.used, &data_make->cache_arguments); if (F_status_is_error(*status) || *status == F_string_too_large) { - fake_print_error(data_make->setting, *status, data_make->main->error, macro_fake_f(f_string_dynamics_increase_by)); + fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamics_increase_by)); return; } @@ -339,7 +339,7 @@ extern "C" { *status = f_string_dynamics_increase(fake_default_allocation_small_d, &data_make->cache_arguments); if (F_status_is_error(*status)) { - fake_print_error(data_make->setting, *status, data_make->main->error, macro_fake_f(f_string_dynamics_increase)); + fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamics_increase)); return; } @@ -361,7 +361,7 @@ extern "C" { *status = f_string_dynamics_increase(fake_default_allocation_small_d, &data_make->cache_arguments); if (F_status_is_error(*status)) { - fake_print_error(data_make->setting, *status, data_make->main->error, macro_fake_f(f_string_dynamics_increase)); + fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamics_increase)); break; } @@ -378,7 +378,7 @@ extern "C" { if (F_status_is_error(*status)) { if (F_status_set_fine(*status) != F_interrupt) { - fake_print_error(data_make->setting, *status, data_make->main->error, macro_fake_f(fl_iki_read)); + fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(fl_iki_read)); } break; @@ -399,7 +399,7 @@ extern "C" { *status = f_string_dynamic_partial_append_nulless(data_make->buffer, range, &data_make->cache_arguments.array[data_make->cache_arguments.used]); if (F_status_is_error(*status)) { - fake_print_error(data_make->setting, *status, data_make->main->error, macro_fake_f(f_string_dynamic_partial_append_nulless)); + fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamic_partial_append_nulless)); break; } @@ -435,7 +435,7 @@ extern "C" { } if (F_status_is_error(*status)) { - fake_print_error(data_make->setting, *status, data_make->main->error, macro_fake_f(fl_string_dynamic_partial_compare)); + fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(fl_string_dynamic_partial_compare)); break; } @@ -450,7 +450,7 @@ extern "C" { *status = f_string_dynamic_append_nulless(data_make->setting_make.parameter.array[0].value.array[0], &data_make->cache_arguments.array[data_make->cache_arguments.used]); if (F_status_is_error(*status)) { - fake_print_error(data_make->setting, *status, data_make->main->error, macro_fake_f(f_string_dynamic_append_nulless)); + fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamic_append_nulless)); break; } @@ -459,7 +459,7 @@ extern "C" { *status = f_string_dynamic_append(f_string_ascii_0_s, &data_make->cache_arguments.array[data_make->cache_arguments.used]); if (F_status_is_error(*status)) { - fake_print_error(data_make->setting, *status, data_make->main->error, macro_fake_f(f_string_dynamic_append)); + fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamic_append)); break; } @@ -473,7 +473,7 @@ extern "C" { *status = f_string_dynamic_increase_by(data_make->path.stack.array[0].used + f_path_separator_s.used + 1, &data_make->cache_arguments.array[data_make->cache_arguments.used]); if (F_status_is_error(*status)) { - fake_print_error(data_make->setting, *status, data_make->main->error, macro_fake_f(f_string_dynamic_increase_by)); + fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamic_increase_by)); break; } @@ -481,7 +481,7 @@ extern "C" { *status = f_string_dynamic_append(data_make->path.stack.array[0], &data_make->cache_arguments.array[data_make->cache_arguments.used]); if (F_status_is_error(*status)) { - fake_print_error(data_make->setting, *status, data_make->main->error, macro_fake_f(f_string_dynamic_append)); + fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamic_append)); break; } @@ -490,7 +490,7 @@ extern "C" { *status = f_string_dynamic_append_assure(f_path_separator_s, &data_make->cache_arguments.array[data_make->cache_arguments.used]); if (F_status_is_error(*status)) { - fake_print_error(data_make->setting, *status, data_make->main->error, macro_fake_f(f_string_dynamic_append_assure)); + fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamic_append_assure)); break; } @@ -504,7 +504,7 @@ extern "C" { *status = f_string_dynamic_increase_by(data_make->path.stack.array[data_make->path.stack.used - 1].used + f_path_separator_s.used + 1, &data_make->cache_arguments.array[data_make->cache_arguments.used]); if (F_status_is_error(*status)) { - fake_print_error(data_make->setting, *status, data_make->main->error, macro_fake_f(f_string_dynamic_increase_by)); + fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamic_increase_by)); break; } @@ -512,7 +512,7 @@ extern "C" { *status = f_string_dynamic_append(data_make->path.stack.array[data_make->path.stack.used - 1], &data_make->cache_arguments.array[data_make->cache_arguments.used]); if (F_status_is_error(*status)) { - fake_print_error(data_make->setting, *status, data_make->main->error, macro_fake_f(f_string_dynamic_append)); + fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamic_append)); break; } @@ -521,7 +521,7 @@ extern "C" { *status = f_string_dynamic_append_assure(f_path_separator_s, &data_make->cache_arguments.array[data_make->cache_arguments.used]); if (F_status_is_error(*status)) { - fake_print_error(data_make->setting, *status, data_make->main->error, macro_fake_f(f_string_dynamic_append_assure)); + fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamic_append_assure)); break; } @@ -555,7 +555,7 @@ extern "C" { *status = f_string_dynamic_increase_by(l, &data_make->cache_arguments.array[data_make->cache_arguments.used]); if (F_status_is_error(*status)) { - fake_print_error(data_make->setting, *status, data_make->main->error, macro_fake_f(f_string_dynamic_increase_by)); + fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamic_increase_by)); break; } @@ -568,7 +568,7 @@ extern "C" { *status = f_string_dynamic_append(f_string_space_s, &data_make->cache_arguments.array[data_make->cache_arguments.used]); if (F_status_is_error(*status)) { - fake_print_error(data_make->setting, *status, data_make->main->error, macro_fake_f(f_string_dynamic_append)); + fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamic_append)); break; } @@ -577,7 +577,7 @@ extern "C" { *status = f_string_dynamic_append_nulless(reserved_value[k]->array[l], &data_make->cache_arguments.array[data_make->cache_arguments.used]); if (F_status_is_error(*status)) { - fake_print_error(data_make->setting, *status, data_make->main->error, macro_fake_f(f_string_dynamic_append_nulless)); + fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamic_append_nulless)); break; } @@ -600,7 +600,7 @@ extern "C" { *status = f_string_dynamics_increase(fake_default_allocation_small_d, &data_make->cache_arguments); if (F_status_is_error(*status)) { - fake_print_error(data_make->setting, *status, data_make->main->error, macro_fake_f(f_string_dynamics_increase)); + fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamics_increase)); break; } @@ -611,7 +611,7 @@ extern "C" { *status = f_string_dynamic_append_nulless(reserved_value[k]->array[l], &data_make->cache_arguments.array[data_make->cache_arguments.used]); if (F_status_is_error(*status)) { - fake_print_error(data_make->setting, *status, data_make->main->error, macro_fake_f(f_string_dynamic_append_nulless)); + fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamic_append_nulless)); break; } @@ -653,7 +653,7 @@ extern "C" { *status = f_string_dynamic_increase_by(l, &data_make->cache_arguments.array[data_make->cache_arguments.used]); if (F_status_is_error(*status)) { - fake_print_error(data_make->setting, *status, data_make->main->error, macro_fake_f(f_string_dynamic_increase_by)); + fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamic_increase_by)); break; } @@ -668,7 +668,7 @@ extern "C" { *status = f_string_dynamic_append(f_string_space_s, &data_make->cache_arguments.array[data_make->cache_arguments.used]); if (F_status_is_error(*status)) { - fake_print_error(data_make->setting, *status, data_make->main->error, macro_fake_f(f_string_dynamic_append)); + fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamic_append)); break; } @@ -681,7 +681,7 @@ extern "C" { *status = f_string_dynamics_increase(fake_default_allocation_small_d, &data_make->cache_arguments); if (F_status_is_error(*status)) { - fake_print_error(data_make->setting, *status, data_make->main->error, macro_fake_f(f_string_dynamics_increase)); + fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamics_increase)); break; } @@ -693,7 +693,7 @@ extern "C" { *status = f_string_dynamic_append_nulless(parameter->array[k].value.array[l], &data_make->cache_arguments.array[data_make->cache_arguments.used]); if (F_status_is_error(*status)) { - fake_print_error(data_make->setting, *status, data_make->main->error, macro_fake_f(f_string_dynamic_append_nulless)); + fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamic_append_nulless)); break; } @@ -714,7 +714,7 @@ extern "C" { *status = fake_make_operate_expand_build(data_make, quotes.array[i], iki_data->content.array[j]); if (F_status_is_error(*status)) { - fake_print_error(data_make->setting, *status, data_make->main->error, macro_fake_f(fake_make_operate_expand_build)); + fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(fake_make_operate_expand_build)); break; } @@ -728,7 +728,7 @@ extern "C" { *status = fake_make_operate_expand_environment(data_make, quotes.array[i], iki_data->content.array[j]); if (F_status_is_error(*status)) { - fake_print_error(data_make->setting, *status, data_make->main->error, macro_fake_f(fake_make_operate_expand_environment)); + fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(fake_make_operate_expand_environment)); break; } @@ -741,7 +741,7 @@ extern "C" { *status = fake_make_operate_expand_context(data_make, quotes.array[i], iki_data->content.array[j]); if (F_status_is_error(*status)) { - fake_print_error(data_make->setting, *status, data_make->main->error, macro_fake_f(fake_make_operate_expand_context)); + fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(fake_make_operate_expand_context)); break; } @@ -758,7 +758,7 @@ extern "C" { *status = f_string_dynamic_partial_append_nulless(data_make->buffer, range, &data_make->cache_arguments.array[data_make->cache_arguments.used]); if (F_status_is_error(*status)) { - fake_print_error(data_make->setting, *status, data_make->main->error, macro_fake_f(f_string_dynamic_partial_append_nulless)); + fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamic_partial_append_nulless)); break; } @@ -776,7 +776,7 @@ extern "C" { *status = f_string_dynamic_partial_append_nulless(data_make->buffer, range, &data_make->cache_arguments.array[data_make->cache_arguments.used]); if (F_status_is_error(*status)) { - fake_print_error(data_make->setting, *status, data_make->main->error, macro_fake_f(f_string_dynamic_partial_append_nulless)); + fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamic_partial_append_nulless)); break; } @@ -788,7 +788,7 @@ extern "C" { *status = f_string_dynamics_increase(fake_default_allocation_small_d, &data_make->cache_arguments); if (F_status_is_error(*status)) { - fake_print_error(data_make->setting, *status, data_make->main->error, macro_fake_f(f_string_dynamics_increase)); + fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamics_increase)); break; } @@ -800,7 +800,7 @@ extern "C" { *status = f_string_dynamic_partial_append_nulless(data_make->buffer, content.array[i], &data_make->cache_arguments.array[data_make->cache_arguments.used]); if (F_status_is_error(*status)) { - fake_print_error(data_make->setting, *status, data_make->main->error, macro_fake_f(f_string_dynamic_partial_append_nulless)); + fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamic_partial_append_nulless)); break; } @@ -810,7 +810,7 @@ extern "C" { *status = f_string_dynamics_increase(fake_default_allocation_small_d, &data_make->cache_arguments); if (F_status_is_error(*status)) { - fake_print_error(data_make->setting, *status, data_make->main->error, macro_fake_f(f_string_dynamics_increase)); + fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamics_increase)); break; } @@ -1211,7 +1211,7 @@ extern "C" { if (id_section >= data_make->fakefile.used) { *status = F_status_set_error(F_parameter); - fake_print_error(data_make->setting, F_parameter, data_make->error, macro_fake_f(fake_make_operate_section)); + fake_print_error(data_make->setting, data_make->error, F_parameter, macro_fake_f(fake_make_operate_section)); return 0; } @@ -1220,7 +1220,7 @@ extern "C" { *status = f_array_lengths_increase(fake_default_allocation_small_d, section_stack); if (F_status_is_error(*status)) { - fake_print_error(data_make->setting, *status, data_make->error, macro_fake_f(f_array_lengths_increase)); + fake_print_error(data_make->setting, data_make->error, *status, macro_fake_f(f_array_lengths_increase)); return 0; } @@ -1352,13 +1352,13 @@ extern "C" { } // for if (!state_process.operation) { - fake_print_message_section_operation_unknown(data_make->data, data_make->error, data_make->buffer, section->name, section->objects.array[i]); + fake_print_message_section_operation_unknown(data_make->setting, data_make->error, data_make->buffer, section->name, section->objects.array[i]); *status = F_status_set_error(F_valid_not); } else if (state_process.operation == fake_make_operation_type_operate_e) { if (section_stack->used == fake_common_max_stack_d) { - fake_print_message_section_operation_stack_max(data_make->data, data_make->error, data_make->buffer, section->name, section->objects.array[i], fake_common_max_stack_d); + fake_print_message_section_operation_stack_max(data_make->setting, data_make->error, data_make->buffer, section->name, section->objects.array[i], fake_common_max_stack_d); *status = F_status_set_error(F_recurse); } @@ -1408,7 +1408,7 @@ extern "C" { data_make->error.set = &data_make->main->context.set; } - fake_print_message_section_operation_failed(data_make->data, data_make->error, data_make->buffer, section->name, section->objects.array[i]); + fake_print_message_section_operation_failed(data_make->setting, data_make->error, data_make->buffer, section->name, section->objects.array[i]); // F_signal_abort is used by the break section operation. if (F_status_set_fine(*status) == F_signal_abort) break; @@ -1480,7 +1480,7 @@ extern "C" { f_file_stream_unlock(data_make->main->error.to); } - fake_print_message_section_operation_failed(data_make->data, data_make->error, data_make->buffer, section->name, section->objects.array[section->objects.used - 1]); + fake_print_message_section_operation_failed(data_make->setting, data_make->error, data_make->buffer, section->name, section->objects.array[section->objects.used - 1]); *status = F_status_set_error(F_failure); } diff --git a/level_3/fake/c/main/make/operate_process.c b/level_3/fake/c/main/make/operate_process.c index ad71bed..db43d79 100644 --- a/level_3/fake/c/main/make/operate_process.c +++ b/level_3/fake/c/main/make/operate_process.c @@ -305,7 +305,7 @@ extern "C" { status = fl_environment_load_names(data_make->setting_build.environment, &data_make->environment); if (F_status_is_error(status)) { - fake_print_error(data_make->setting, status, data_make->main->error, macro_fake_f(fl_environment_load_names)); + fake_print_error(data_make->setting, data_make->main->error, status, macro_fake_f(fl_environment_load_names)); return status; } @@ -314,7 +314,7 @@ extern "C" { status = f_environment_get_all(&data_make->environment); if (F_status_is_error(status)) { - fake_print_error(data_make->setting, status, data_make->main->error, macro_fake_f(f_environment_get_all)); + fake_print_error(data_make->setting, data_make->main->error, status, macro_fake_f(f_environment_get_all)); return status; } @@ -381,7 +381,7 @@ extern "C" { } } else if (F_status_set_fine(status) != F_failure) { - fake_print_error(data_make->setting, status, data_make->main->error, macro_fake_f(fll_execute_program)); + fake_print_error(data_make->setting, data_make->main->error, status, macro_fake_f(fll_execute_program)); } } @@ -405,7 +405,7 @@ extern "C" { } if (F_status_is_error(status)) { - fake_print_error(data_make->setting, status, data_make->main->error, macro_fake_f(f_string_dynamic_append)); + fake_print_error(data_make->setting, data_make->main->error, status, macro_fake_f(f_string_dynamic_append)); } return status; @@ -417,7 +417,7 @@ extern "C" { status = f_conversion_number_signed_to_string(WEXITSTATUS(return_code), f_conversion_data_base_10_c, &number); if (F_status_is_error(status)) { - fake_print_error(data_make->setting, status, data_make->main->error, macro_fake_f(f_conversion_number_signed_to_string)); + fake_print_error(data_make->setting, data_make->main->error, status, macro_fake_f(f_conversion_number_signed_to_string)); f_string_dynamic_resize(0, &number); @@ -433,7 +433,7 @@ extern "C" { } if (F_status_is_error(status)) { - fake_print_error(data_make->setting, status, data_make->main->error, macro_fake_f(f_string_dynamic_append)); + fake_print_error(data_make->setting, data_make->main->error, status, macro_fake_f(f_string_dynamic_append)); return status; } diff --git a/level_3/fake/c/main/make/operate_process_type.c b/level_3/fake/c/main/make/operate_process_type.c index 9e225a1..f0fe0ce 100644 --- a/level_3/fake/c/main/make/operate_process_type.c +++ b/level_3/fake/c/main/make/operate_process_type.c @@ -67,7 +67,7 @@ extern "C" { const int result = fake_execute(data_make->data, data_make->environment, data_make->setting_build.build_compiler, data_make->cache_arguments, status); if (F_status_is_error(*status)) { - fake_print_error(data_make->setting, *status, data_make->main->error, macro_fake_f(fake_execute)); + fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(fake_execute)); } else if (*status == F_child) { return result; @@ -242,7 +242,7 @@ extern "C" { status = f_directory_is(data_make->cache_arguments.array[1]); if (F_status_is_error(status)) { - fake_print_error_file(data_make->setting, status, data_make->main->error, macro_fake_f(f_directory_is), data_make->cache_arguments.array[1], f_file_operation_identify_s, fll_error_file_type_path_e); + fake_print_error_file(data_make->setting, data_make->main->error, status, macro_fake_f(f_directory_is), data_make->cache_arguments.array[1], f_file_operation_identify_s, fll_error_file_type_path_e); return F_status_set_error(F_failure); } @@ -262,7 +262,7 @@ extern "C" { status = f_file_name_base(data_make->cache_arguments.array[i], &data_make->cache_path); if (F_status_is_error(status)) { - fake_print_error_file(data_make->setting, status, data_make->main->error, macro_fake_f(f_file_name_base), data_make->cache_arguments.array[i], f_file_operation_process_s, fll_error_file_type_path_e); + fake_print_error_file(data_make->setting, data_make->main->error, status, macro_fake_f(f_file_name_base), data_make->cache_arguments.array[i], f_file_operation_process_s, fll_error_file_type_path_e); return F_status_set_error(F_failure); } @@ -305,7 +305,7 @@ extern "C" { } if (F_status_is_error(status_file)) { - fake_print_error_file(data_make->setting, status_file, data_make->main->error, clone ? macro_fake_f(fl_directory_clone) : macro_fake_f(fl_directory_copy), data_make->cache_arguments.array[i], clone ? f_file_operation_clone_s : f_file_operation_copy_s, fll_error_file_type_directory_e); + fake_print_error_file(data_make->setting, data_make->main->error, status_file, clone ? macro_fake_f(fl_directory_clone) : macro_fake_f(fl_directory_copy), data_make->cache_arguments.array[i], clone ? f_file_operation_clone_s : f_file_operation_copy_s, fll_error_file_type_directory_e); status = F_status_set_error(F_failure); } @@ -319,7 +319,7 @@ extern "C" { } if (F_status_is_error(status_file)) { - fake_print_error_file(data_make->setting, status_file, data_make->main->error, clone ? macro_fake_f(f_file_clone) : macro_fake_f(f_file_copy), data_make->cache_arguments.array[i], clone ? f_file_operation_clone_s : f_file_operation_copy_s, fll_error_file_type_file_e); + fake_print_error_file(data_make->setting, data_make->main->error, status_file, clone ? macro_fake_f(f_file_clone) : macro_fake_f(f_file_copy), data_make->cache_arguments.array[i], clone ? f_file_operation_clone_s : f_file_operation_copy_s, fll_error_file_type_file_e); return F_status_set_error(F_failure); } @@ -334,7 +334,7 @@ extern "C" { } } else if (F_status_is_error(status_file)) { - fake_print_error_file(data_make->setting, status_file, data_make->main->error, macro_fake_f(f_directory_is), data_make->cache_arguments.array[i], f_file_operation_identify_s, fll_error_file_type_directory_e); + fake_print_error_file(data_make->setting, data_make->main->error, status_file, macro_fake_f(f_directory_is), data_make->cache_arguments.array[i], f_file_operation_identify_s, fll_error_file_type_directory_e); return F_status_set_error(F_failure); } @@ -357,7 +357,7 @@ extern "C" { } if (F_status_is_error(status)) { - fake_print_error(data_make->setting, status, data_make->main->error, macro_fake_f(f_environment_set)); + fake_print_error(data_make->setting, data_make->main->error, status, macro_fake_f(f_environment_set)); } else if (data_make->main->error.verbosity >= f_console_verbosity_verbose_e) { fll_print_format("%rDefined environment variable '%[%Q%]'.%r", data_make->main->message.to, f_string_eol_s, data_make->main->context.set.notable, data_make->cache_arguments.array[0], data_make->main->context.set.notable, f_string_eol_s); @@ -396,7 +396,7 @@ extern "C" { status = F_none; } else { - fake_print_error_file(data_make->setting, status, data_make->main->error, macro_fake_f(f_file_stat), data_make->cache_arguments.array[i], f_file_operation_delete_s, fll_error_file_type_file_e); + fake_print_error_file(data_make->setting, data_make->main->error, status, macro_fake_f(f_file_stat), data_make->cache_arguments.array[i], f_file_operation_delete_s, fll_error_file_type_file_e); return F_status_set_error(F_failure); } @@ -418,7 +418,7 @@ extern "C" { } if (F_status_is_error(status)) { - fake_print_error_file(data_make->setting, status, data_make->main->error, macro_fake_f(f_directory_remove), data_make->cache_arguments.array[i], f_file_operation_delete_s, fll_error_file_type_directory_e); + fake_print_error_file(data_make->setting, data_make->main->error, status, macro_fake_f(f_directory_remove), data_make->cache_arguments.array[i], f_file_operation_delete_s, fll_error_file_type_directory_e); return F_status_set_error(F_failure); } @@ -439,7 +439,7 @@ extern "C" { } if (F_status_is_error(status)) { - fake_print_error_file(data_make->setting, status, data_make->main->error, macro_fake_f(f_file_remove), data_make->cache_arguments.array[i], f_file_operation_delete_s, fll_error_file_type_file_e); + fake_print_error_file(data_make->setting, data_make->main->error, status, macro_fake_f(f_file_remove), data_make->cache_arguments.array[i], f_file_operation_delete_s, fll_error_file_type_file_e); return F_status_set_error(F_failure); } @@ -560,7 +560,7 @@ extern "C" { status = fake_make_assure_inside_project(data_make, data_make->cache_arguments.array[i]); if (F_status_is_error(status)) { - fake_print_message_section_operation_path_outside(data_make->data, data_make->error, status, macro_fake_f(fake_make_assure_inside_project), data_make->cache_path.used ? data_make->cache_path : data_make->cache_arguments.array[i]); + fake_print_message_section_operation_path_outside(data_make->setting, data_make->error, status, macro_fake_f(fake_make_assure_inside_project), data_make->cache_path.used ? data_make->cache_path : data_make->cache_arguments.array[i]); continue; } @@ -573,7 +573,7 @@ extern "C" { } if (F_status_is_error(status)) { - fake_print_error_file(data_make->setting, status, data_make->main->error, all ? macro_fake_f(fll_file_role_change_all) : macro_fake_f(f_file_role_change), data_make->cache_arguments.array[i], f_file_operation_change_group_s, fll_error_file_type_file_e); + fake_print_error_file(data_make->setting, data_make->main->error, status, all ? macro_fake_f(fll_file_role_change_all) : macro_fake_f(f_file_role_change), data_make->cache_arguments.array[i], f_file_operation_change_group_s, fll_error_file_type_file_e); return F_status_set_error(F_failure); } @@ -653,7 +653,7 @@ extern "C" { if (F_status_is_error(status)) { state_process->condition_result = fake_condition_result_error_e; - fake_print_error_file(data_make->setting, status, data_make->main->error, macro_fake_f(f_file_exists), data_make->cache_arguments.array[i], f_file_operation_find_s, fll_error_file_type_file_e); + fake_print_error_file(data_make->setting, data_make->main->error, status, macro_fake_f(f_file_exists), data_make->cache_arguments.array[i], f_file_operation_find_s, fll_error_file_type_file_e); return F_status_set_error(F_failure); } @@ -751,7 +751,7 @@ extern "C" { if (F_status_is_error(status)) { state_process->condition_result = fake_condition_result_error_e; - fake_print_error_file(data_make->setting, status, data_make->main->error, macro_fake_f(f_file_mode_read), data_make->cache_arguments.array[i], f_file_operation_get_type_s, fll_error_file_type_file_e); + fake_print_error_file(data_make->setting, data_make->main->error, status, macro_fake_f(f_file_mode_read), data_make->cache_arguments.array[i], f_file_operation_get_type_s, fll_error_file_type_file_e); return F_status_set_error(F_failure); } @@ -970,7 +970,7 @@ extern "C" { if (F_status_is_error(status)) { state_process->condition_result = fake_condition_result_error_e; - fake_print_error(data_make->setting, status, data_make->main->error, macro_fake_f(fake_make_get_id_group)); + fake_print_error(data_make->setting, data_make->main->error, status, macro_fake_f(fake_make_get_id_group)); return F_status_set_error(F_failure); } @@ -984,7 +984,7 @@ extern "C" { if (F_status_is_error(status)) { state_process->condition_result = fake_condition_result_error_e; - fake_print_error_file(data_make->setting, status, data_make->main->error, macro_fake_f(f_file_group_read), data_make->cache_arguments.array[i], f_file_operation_get_group_s, fll_error_file_type_file_e); + fake_print_error_file(data_make->setting, data_make->main->error, status, macro_fake_f(f_file_group_read), data_make->cache_arguments.array[i], f_file_operation_get_group_s, fll_error_file_type_file_e); return F_status_set_error(F_failure); } @@ -1029,7 +1029,7 @@ extern "C" { if (F_status_is_error(status)) { state_process->condition_result = fake_condition_result_error_e; - fake_print_error(data_make->setting, status, data_make->main->error, macro_fake_f(fake_make_get_id_mode)); + fake_print_error(data_make->setting, data_make->main->error, status, macro_fake_f(fake_make_get_id_mode)); return F_status_set_error(F_failure); } @@ -1039,7 +1039,7 @@ extern "C" { if (F_status_is_error(status)) { state_process->condition_result = fake_condition_result_error_e; - fake_print_error(data_make->setting, status, data_make->main->error, macro_fake_f(f_file_mode_to_mode)); + fake_print_error(data_make->setting, data_make->main->error, status, macro_fake_f(f_file_mode_to_mode)); return F_status_set_error(F_failure); } @@ -1056,7 +1056,7 @@ extern "C" { if (F_status_is_error(status)) { state_process->condition_result = fake_condition_result_error_e; - fake_print_error_file(data_make->setting, status, data_make->main->error, macro_fake_f(f_file_mode_read), data_make->cache_arguments.array[i], f_file_operation_get_mode_s, fll_error_file_type_file_e); + fake_print_error_file(data_make->setting, data_make->main->error, status, macro_fake_f(f_file_mode_read), data_make->cache_arguments.array[i], f_file_operation_get_mode_s, fll_error_file_type_file_e); return F_status_set_error(F_failure); } @@ -1117,7 +1117,7 @@ extern "C" { if (F_status_is_error(status)) { state_process->condition_result = fake_condition_result_error_e; - fake_print_error(data_make->setting, status, data_make->main->error, macro_fake_f(fake_make_get_id_owner)); + fake_print_error(data_make->setting, data_make->main->error, status, macro_fake_f(fake_make_get_id_owner)); return F_status_set_error(F_failure); } @@ -1131,7 +1131,7 @@ extern "C" { if (F_status_is_error(status)) { state_process->condition_result = fake_condition_result_error_e; - fake_print_error_file(data_make->setting, status, data_make->main->error, macro_fake_f(f_file_owner_read), data_make->cache_arguments.array[i], f_file_operation_get_owner_s, fll_error_file_type_file_e); + fake_print_error_file(data_make->setting, data_make->main->error, status, macro_fake_f(f_file_owner_read), data_make->cache_arguments.array[i], f_file_operation_get_owner_s, fll_error_file_type_file_e); return F_status_set_error(F_failure); } @@ -1294,7 +1294,7 @@ extern "C" { const int result = fake_execute(data_make->data, data_make->environment, data_make->setting_build.build_indexer, data_make->cache_arguments, status); if (F_status_is_error(*status)) { - fake_print_error(data_make->setting, *status, data_make->main->error, macro_fake_f(fake_execute)); + fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(fake_execute)); } if (*status == F_child) return result; @@ -1336,7 +1336,7 @@ extern "C" { status = f_directory_remove(data_make->cache_arguments.array[data_make->cache_arguments.used - 1], F_directory_descriptors_max_d, F_false); if (F_status_is_error(status)) { - fake_print_error_file(data_make->setting, status, data_make->main->error, macro_fake_f(f_directory_remove), data_make->cache_arguments.array[data_make->cache_arguments.used - 1], f_file_operation_delete_s, fll_error_file_type_directory_e); + fake_print_error_file(data_make->setting, data_make->main->error, status, macro_fake_f(f_directory_remove), data_make->cache_arguments.array[data_make->cache_arguments.used - 1], f_file_operation_delete_s, fll_error_file_type_directory_e); return F_status_set_error(F_failure); } @@ -1345,7 +1345,7 @@ extern "C" { status = f_file_remove(data_make->cache_arguments.array[data_make->cache_arguments.used - 1]); if (F_status_is_error(status)) { - fake_print_error_file(data_make->setting, status, data_make->main->error, macro_fake_f(f_file_remove), data_make->cache_arguments.array[data_make->cache_arguments.used - 1], f_file_operation_delete_s, fll_error_file_type_file_e); + fake_print_error_file(data_make->setting, data_make->main->error, status, macro_fake_f(f_file_remove), data_make->cache_arguments.array[data_make->cache_arguments.used - 1], f_file_operation_delete_s, fll_error_file_type_file_e); return F_status_set_error(F_failure); } @@ -1355,7 +1355,7 @@ extern "C" { status = f_file_link(data_make->cache_arguments.array[0], data_make->cache_arguments.array[data_make->cache_arguments.used - 1]); if (F_status_is_error(status)) { - fake_print_error_file(data_make->setting, status, data_make->main->error, macro_fake_f(f_file_link), data_make->cache_arguments.array[data_make->cache_arguments.used - 1], f_file_operation_link_s, fll_error_file_type_file_e); + fake_print_error_file(data_make->setting, data_make->main->error, status, macro_fake_f(f_file_link), data_make->cache_arguments.array[data_make->cache_arguments.used - 1], f_file_operation_link_s, fll_error_file_type_file_e); return F_status_set_error(F_failure); } @@ -1384,7 +1384,7 @@ extern "C" { status = fake_make_get_id_mode(data_make->data, data_make->error, data_make->cache_arguments.array[0], &mode_rule, &replace); if (F_status_is_error(status)) { - fake_print_error(data_make->setting, status, data_make->main->error, macro_fake_f(fake_make_get_id_mode)); + fake_print_error(data_make->setting, data_make->main->error, status, macro_fake_f(fake_make_get_id_mode)); return F_status_set_error(F_failure); } @@ -1397,7 +1397,7 @@ extern "C" { status = f_file_mode_read(data_make->cache_arguments.array[i], F_true, &mode_file); if (F_status_is_error(status)) { - fake_print_error_file(data_make->setting, status, data_make->main->error, macro_fake_f(f_file_mode_read), data_make->cache_arguments.array[i], f_file_operation_change_group_s, fll_error_file_type_file_e); + fake_print_error_file(data_make->setting, data_make->main->error, status, macro_fake_f(f_file_mode_read), data_make->cache_arguments.array[i], f_file_operation_change_group_s, fll_error_file_type_file_e); return F_status_set_error(F_failure); } @@ -1405,7 +1405,7 @@ extern "C" { status = f_file_mode_determine(mode_file, mode_rule, replace, macro_f_file_type_is_directory(mode_file), &mode); if (F_status_is_error(status)) { - fake_print_error_file(data_make->setting, status, data_make->main->error, macro_fake_f(f_file_mode_determine), data_make->cache_arguments.array[i], f_file_operation_change_group_s, fll_error_file_type_file_e); + fake_print_error_file(data_make->setting, data_make->main->error, status, macro_fake_f(f_file_mode_determine), data_make->cache_arguments.array[i], f_file_operation_change_group_s, fll_error_file_type_file_e); return F_status_set_error(F_failure); } @@ -1418,7 +1418,7 @@ extern "C" { } if (F_status_is_error(status)) { - fake_print_error_file(data_make->setting, status, data_make->main->error, all ? macro_fake_f(fll_file_mode_set_all) : macro_fake_f(f_file_mode_set), data_make->cache_arguments.array[i], f_file_operation_change_group_s, fll_error_file_type_file_e); + fake_print_error_file(data_make->setting, data_make->main->error, status, all ? macro_fake_f(fll_file_mode_set_all) : macro_fake_f(f_file_mode_set), data_make->cache_arguments.array[i], f_file_operation_change_group_s, fll_error_file_type_file_e); return F_status_set_error(F_failure); } @@ -1455,7 +1455,7 @@ extern "C" { status = f_directory_is(data_make->cache_arguments.array[1]); if (F_status_is_error(status)) { - fake_print_error_file(data_make->setting, status, data_make->main->error, macro_fake_f(f_directory_is), data_make->cache_arguments.array[1], f_file_operation_identify_s, fll_error_file_type_directory_e); + fake_print_error_file(data_make->setting, data_make->main->error, status, macro_fake_f(f_directory_is), data_make->cache_arguments.array[1], f_file_operation_identify_s, fll_error_file_type_directory_e); return F_status_set_error(F_failure); } @@ -1475,7 +1475,7 @@ extern "C" { status = f_file_name_base(data_make->cache_arguments.array[i], &data_make->cache_path); if (F_status_is_error(status)) { - fake_print_error_file(data_make->setting, status, data_make->main->error, macro_fake_f(f_file_name_base), data_make->cache_arguments.array[i], f_file_operation_process_s, fll_error_file_type_path_e); + fake_print_error_file(data_make->setting, data_make->main->error, status, macro_fake_f(f_file_name_base), data_make->cache_arguments.array[i], f_file_operation_process_s, fll_error_file_type_path_e); return F_status_set_error(F_failure); } @@ -1509,7 +1509,7 @@ extern "C" { status = fll_file_move(data_make->cache_arguments.array[i], destination, recurse); if (F_status_is_error(status)) { - fake_print_error_file(data_make->setting, status, data_make->main->error, macro_fake_f(fll_file_move), data_make->cache_arguments.array[i], f_file_operation_move_s, fll_error_file_type_directory_e); + fake_print_error_file(data_make->setting, data_make->main->error, status, macro_fake_f(fll_file_move), data_make->cache_arguments.array[i], f_file_operation_move_s, fll_error_file_type_directory_e); return F_status_set_error(F_failure); } @@ -1562,7 +1562,7 @@ extern "C" { f_status_t status = fake_make_get_id_owner(data_make->data, data_make->error, data_make->cache_arguments.array[i++], &id); if (F_status_is_error(status)) { - fake_print_error(data_make->setting, status, data_make->main->error, macro_fake_f(fake_make_get_id_owner)); + fake_print_error(data_make->setting, data_make->main->error, status, macro_fake_f(fake_make_get_id_owner)); return F_status_set_error(F_failure); } @@ -1572,7 +1572,7 @@ extern "C" { status = fake_make_assure_inside_project(data_make, data_make->cache_arguments.array[i]); if (F_status_is_error(status)) { - fake_print_message_section_operation_path_outside(data_make->data, data_make->error, status, macro_fake_f(fake_make_assure_inside_project), data_make->cache_path.used ? data_make->cache_path : data_make->cache_arguments.array[i]); + fake_print_message_section_operation_path_outside(data_make->setting, data_make->error, status, macro_fake_f(fake_make_assure_inside_project), data_make->cache_path.used ? data_make->cache_path : data_make->cache_arguments.array[i]); continue; } @@ -1585,7 +1585,7 @@ extern "C" { } if (F_status_is_error(status)) { - fake_print_error_file(data_make->setting, status, data_make->main->error, all ? macro_fake_f(fll_file_role_change_all) : macro_fake_f(f_file_role_change), data_make->cache_arguments.array[i], f_file_operation_change_owner_s, fll_error_file_type_file_e); + fake_print_error_file(data_make->setting, data_make->main->error, status, all ? macro_fake_f(fll_file_role_change_all) : macro_fake_f(f_file_role_change), data_make->cache_arguments.array[i], f_file_operation_change_owner_s, fll_error_file_type_file_e); return F_status_set_error(F_failure); } @@ -1622,7 +1622,7 @@ extern "C" { status = f_string_dynamic_resize(0, &data_make->setting_make.parameter.array[i].value.array[j]); if (F_status_is_error(status)) { - fake_print_error(data_make->setting, status, data_make->main->error, macro_fake_f(f_string_dynamic_resize)); + fake_print_error(data_make->setting, data_make->main->error, status, macro_fake_f(f_string_dynamic_resize)); return F_status_set_error(F_failure); } @@ -1632,7 +1632,7 @@ extern "C" { status = f_string_dynamics_resize(0, &data_make->setting_make.parameter.array[i].value); if (F_status_is_error(status)) { - fake_print_error(data_make->setting, status, data_make->main->error, macro_fake_f(f_string_dynamics_resize)); + fake_print_error(data_make->setting, data_make->main->error, status, macro_fake_f(f_string_dynamics_resize)); return F_status_set_error(F_failure); } @@ -1642,7 +1642,7 @@ extern "C" { status = f_string_map_multis_resize(fake_default_allocation_small_d, &data_make->setting_make.parameter); if (F_status_is_error(status)) { - fake_print_error(data_make->setting, status, data_make->main->error, macro_fake_f(f_string_map_multis_resize)); + fake_print_error(data_make->setting, data_make->main->error, status, macro_fake_f(f_string_map_multis_resize)); return F_status_set_error(F_failure); } @@ -1650,7 +1650,7 @@ extern "C" { status = f_string_dynamic_append_nulless(data_make->cache_arguments.array[0], &data_make->setting_make.parameter.array[data_make->setting_make.parameter.used].name); if (F_status_is_error(status)) { - fake_print_error(data_make->setting, status, data_make->main->error, macro_fake_f(f_string_dynamic_append_nulless)); + fake_print_error(data_make->setting, data_make->main->error, status, macro_fake_f(f_string_dynamic_append_nulless)); return F_status_set_error(F_failure); } @@ -1664,7 +1664,7 @@ extern "C" { status = f_string_dynamics_resize(data_make->cache_arguments.used - 1, &data_make->setting_make.parameter.array[i].value); if (F_status_is_error(status)) { - fake_print_error(data_make->setting, status, data_make->main->error, macro_fake_f(f_string_dynamics_resize)); + fake_print_error(data_make->setting, data_make->main->error, status, macro_fake_f(f_string_dynamics_resize)); return F_status_set_error(F_failure); } @@ -1674,7 +1674,7 @@ extern "C" { status = f_string_dynamic_append_nulless(data_make->cache_arguments.array[j + 1], &data_make->setting_make.parameter.array[i].value.array[j]); if (F_status_is_error(status)) { - fake_print_error(data_make->setting, status, data_make->main->error, macro_fake_f(f_string_dynamic_append_nulless)); + fake_print_error(data_make->setting, data_make->main->error, status, macro_fake_f(f_string_dynamic_append_nulless)); return F_status_set_error(F_failure); } @@ -1699,7 +1699,7 @@ extern "C" { f_status_t status = f_path_change(*argument); if (F_status_is_error(status)) { - fake_print_message_section_operation_path_stack_max(data_make->data, data_make->error, F_status_set_fine(status), macro_fake_f(f_path_change), *argument); + fake_print_message_section_operation_path_stack_max(data_make->setting, data_make->error, F_status_set_fine(status), macro_fake_f(f_path_change), *argument); return F_status_set_error(F_failure); } @@ -1709,7 +1709,7 @@ extern "C" { // The created relative path is for verbosity purposes and as such its failure to be processed should not be treated as a failure of the function. if (F_status_is_error(status)) { - fake_print_error(data_make->setting, status, data_make->main->error, macro_fake_f(fake_make_path_relative)); + fake_print_error(data_make->setting, data_make->main->error, status, macro_fake_f(fake_make_path_relative)); fll_print_format("Changed to project path '%[%Q%]'.%r", data_make->main->message.to, data_make->main->context.set.notable, argument, data_make->main->context.set.notable, f_string_eol_s); @@ -1744,7 +1744,7 @@ extern "C" { status = f_string_dynamic_increase_by(total, &data_make->cache_1); if (F_status_is_error(status)) { - fake_print_error(data_make->setting, status, data_make->main->error, macro_fake_f(f_file_stream_open)); + fake_print_error(data_make->setting, data_make->main->error, status, macro_fake_f(f_file_stream_open)); return F_status_set_error(F_failure); } @@ -1756,7 +1756,7 @@ extern "C" { status = f_string_dynamic_append(f_string_space_s, &data_make->cache_1); if (F_status_is_error(status)) { - fake_print_error(data_make->setting, status, data_make->main->error, macro_fake_f(f_string_dynamic_append)); + fake_print_error(data_make->setting, data_make->main->error, status, macro_fake_f(f_string_dynamic_append)); return F_status_set_error(F_failure); } @@ -1765,7 +1765,7 @@ extern "C" { status = fake_make_operate_process_buffer_escape(data_make, data_make->cache_arguments.array[i], &data_make->cache_1); if (F_status_is_error(status)) { - fake_print_error(data_make->setting, status, data_make->main->error, macro_fake_f(f_file_stream_open)); + fake_print_error(data_make->setting, data_make->main->error, status, macro_fake_f(f_file_stream_open)); return F_status_set_error(F_failure); } @@ -1799,7 +1799,7 @@ extern "C" { f_status_t status = fake_make_assure_inside_project(data_make, data_make->cache_arguments.array[0]); if (F_status_is_error(status)) { - fake_print_message_section_operation_path_outside(data_make->data, data_make->error, status, macro_fake_f(fake_make_assure_inside_project), data_make->cache_path.used ? data_make->cache_path : data_make->cache_arguments.array[0]); + fake_print_message_section_operation_path_outside(data_make->setting, data_make->error, status, macro_fake_f(fake_make_assure_inside_project), data_make->cache_path.used ? data_make->cache_path : data_make->cache_arguments.array[0]); if (F_status_set_fine(status) == F_false) { status = F_status_set_error(F_failure); @@ -1811,19 +1811,19 @@ extern "C" { status = f_path_change(data_make->cache_arguments.array[0]); if (F_status_is_error(status)) { - fake_print_message_section_operation_path_stack_max(data_make->data, data_make->error, F_status_set_fine(status), macro_fake_f(f_path_change), data_make->cache_arguments.array[0]); + fake_print_message_section_operation_path_stack_max(data_make->setting, data_make->error, F_status_set_fine(status), macro_fake_f(f_path_change), data_make->cache_arguments.array[0]); } else { status = f_string_dynamics_increase_by(fake_default_allocation_small_d, &data_make->path.stack); if (F_status_is_error(status)) { if (F_status_set_fine(status) == F_array_too_large) { - fake_print_message_section_operation_path_stack_max(data_make->data, data_make->error, F_array_too_large, macro_fake_f(f_string_dynamics_increase_by), fake_common_file_path_stack_s); + fake_print_message_section_operation_path_stack_max(data_make->setting, data_make->error, F_array_too_large, macro_fake_f(f_string_dynamics_increase_by), fake_common_file_path_stack_s); return F_status_set_error(F_failure); } - fake_print_error(data_make->setting, status, data_make->main->error, macro_fake_f(f_string_dynamics_increase_by)); + fake_print_error(data_make->setting, data_make->main->error, status, macro_fake_f(f_string_dynamics_increase_by)); return F_status_set_error(F_failure); } @@ -1834,7 +1834,7 @@ extern "C" { status = f_string_dynamic_append_nulless(data_make->cache_path, &data_make->path.stack.array[data_make->path.stack.used]); if (F_status_is_error(status)) { - fake_print_error(data_make->setting, status, data_make->main->error, macro_fake_f(f_string_dynamic_append_nulless)); + fake_print_error(data_make->setting, data_make->main->error, status, macro_fake_f(f_string_dynamic_append_nulless)); return F_status_set_error(F_failure); } @@ -1844,7 +1844,7 @@ extern "C" { // The created relative path is for verbosity purposes and as such its failure to be processed should not be treated as a failure of the function. if (F_status_is_error(status)) { - fake_print_error(data_make->setting, status, data_make->main->error, macro_fake_f(fake_make_path_relative)); + fake_print_error(data_make->setting, data_make->main->error, status, macro_fake_f(fake_make_path_relative)); fll_print_format("Changed to project path '%[%Q%]'.%r", data_make->main->message.to, data_make->main->context.set.notable, data_make->path.stack.array[data_make->path.stack.used], data_make->main->context.set.notable, f_string_eol_s); } @@ -1867,7 +1867,7 @@ extern "C" { f_status_t status = f_path_change_at(data_make->path.top.id); if (F_status_is_error(status)) { - fake_print_message_section_operation_path_stack_max(data_make->data, data_make->error, F_status_set_fine(status), "f_path_change", data_make->cache_arguments.array[0]); + fake_print_message_section_operation_path_stack_max(data_make->setting, data_make->error, F_status_set_fine(status), macro_fake_f(f_path_change), data_make->cache_arguments.array[0]); return F_status_set_error(F_failure); } @@ -1903,10 +1903,10 @@ extern "C" { if (F_status_is_error(status)) { if (F_status_is_error_not(fll_path_canonical(data_make->cache_arguments.array[i], &data_make->cache_path))) { - fake_print_error_file(data_make->setting, status, data_make->main->error, macro_fake_f(f_file_touch), data_make->cache_path, f_file_operation_touch_s, fll_error_file_type_file_e); + fake_print_error_file(data_make->setting, data_make->main->error, status, macro_fake_f(f_file_touch), data_make->cache_path, f_file_operation_touch_s, fll_error_file_type_file_e); } else { - fake_print_error_file(data_make->setting, status, data_make->main->error, macro_fake_f(f_file_touch), data_make->cache_arguments.array[i], f_file_operation_touch_s, fll_error_file_type_file_e); + fake_print_error_file(data_make->setting, data_make->main->error, status, macro_fake_f(f_file_touch), data_make->cache_arguments.array[i], f_file_operation_touch_s, fll_error_file_type_file_e); } return F_status_set_error(F_failure); @@ -1917,10 +1917,10 @@ extern "C" { if (F_status_is_error(status)) { if (F_status_is_error_not(fll_path_canonical(data_make->cache_arguments.array[i], &data_make->cache_path))) { - fake_print_error_file(data_make->setting, status, data_make->main->error, macro_fake_f(f_directory_touch), data_make->cache_path, f_file_operation_touch_s, fll_error_file_type_directory_e); + fake_print_error_file(data_make->setting, data_make->main->error, status, macro_fake_f(f_directory_touch), data_make->cache_path, f_file_operation_touch_s, fll_error_file_type_directory_e); } else { - fake_print_error_file(data_make->setting, status, data_make->main->error, macro_fake_f(f_directory_touch), data_make->cache_arguments.array[i], f_file_operation_touch_s, fll_error_file_type_directory_e); + fake_print_error_file(data_make->setting, data_make->main->error, status, macro_fake_f(f_directory_touch), data_make->cache_arguments.array[i], f_file_operation_touch_s, fll_error_file_type_directory_e); } return F_status_set_error(F_failure); @@ -1948,10 +1948,10 @@ extern "C" { if (F_status_is_error(status)) { if (F_status_is_error_not(fll_path_canonical(data_make->cache_arguments.array[0], &data_make->cache_path))) { - fake_print_error_file(data_make->setting, status, data_make->main->error, macro_fake_f(f_file_stream_open), data_make->cache_path, f_file_operation_open_s, fll_error_file_type_file_e); + fake_print_error_file(data_make->setting, data_make->main->error, status, macro_fake_f(f_file_stream_open), data_make->cache_path, f_file_operation_open_s, fll_error_file_type_file_e); } else { - fake_print_error_file(data_make->setting, status, data_make->main->error, macro_fake_f(f_file_stream_open), data_make->cache_arguments.array[0], f_file_operation_open_s, fll_error_file_type_file_e); + fake_print_error_file(data_make->setting, data_make->main->error, status, macro_fake_f(f_file_stream_open), data_make->cache_arguments.array[0], f_file_operation_open_s, fll_error_file_type_file_e); } return F_status_set_error(F_failure); @@ -1975,10 +1975,10 @@ extern "C" { if (F_status_is_error(status)) { if (F_status_is_error_not(fll_path_canonical(data_make->cache_arguments.array[0], &data_make->cache_path))) { - fake_print_error_file(data_make->setting, status, data_make->main->error, macro_fake_f(f_file_stream_open), data_make->cache_path, f_file_operation_open_s, fll_error_file_type_file_e); + fake_print_error_file(data_make->setting, data_make->main->error, status, macro_fake_f(f_file_stream_open), data_make->cache_path, f_file_operation_open_s, fll_error_file_type_file_e); } else { - fake_print_error_file(data_make->setting, status, data_make->main->error, macro_fake_f(f_file_stream_open), data_make->cache_arguments.array[0], f_file_operation_open_s, fll_error_file_type_file_e); + fake_print_error_file(data_make->setting, data_make->main->error, status, macro_fake_f(f_file_stream_open), data_make->cache_arguments.array[0], f_file_operation_open_s, fll_error_file_type_file_e); } } } @@ -1992,10 +1992,10 @@ extern "C" { if (F_status_is_error(status)) { if (F_status_is_error_not(fll_path_canonical(data_make->cache_arguments.array[0], &data_make->cache_path))) { - fake_print_error_file(data_make->setting, status, data_make->main->error, macro_fake_f(fake_make_operate_process_buffer_escape), data_make->cache_path, f_file_operation_write_s, fll_error_file_type_file_e); + fake_print_error_file(data_make->setting, data_make->main->error, status, macro_fake_f(fake_make_operate_process_buffer_escape), data_make->cache_path, f_file_operation_write_s, fll_error_file_type_file_e); } else { - fake_print_error_file(data_make->setting, status, data_make->main->error, macro_fake_f(fake_make_operate_process_buffer_escape), data_make->cache_arguments.array[0], f_file_operation_write_s, fll_error_file_type_file_e); + fake_print_error_file(data_make->setting, data_make->main->error, status, macro_fake_f(fake_make_operate_process_buffer_escape), data_make->cache_arguments.array[0], f_file_operation_write_s, fll_error_file_type_file_e); } break; @@ -2005,10 +2005,10 @@ extern "C" { if (F_status_is_error(status)) { if (F_status_is_error_not(fll_path_canonical(data_make->cache_arguments.array[0], &data_make->cache_path))) { - fake_print_error_file(data_make->setting, status, data_make->main->error, macro_fake_f(f_file_stream_write), data_make->cache_path, f_file_operation_write_s, fll_error_file_type_file_e); + fake_print_error_file(data_make->setting, data_make->main->error, status, macro_fake_f(f_file_stream_write), data_make->cache_path, f_file_operation_write_s, fll_error_file_type_file_e); } else { - fake_print_error_file(data_make->setting, status, data_make->main->error, macro_fake_f(f_file_stream_write), data_make->cache_arguments.array[0], f_file_operation_write_s, fll_error_file_type_file_e); + fake_print_error_file(data_make->setting, data_make->main->error, status, macro_fake_f(f_file_stream_write), data_make->cache_arguments.array[0], f_file_operation_write_s, fll_error_file_type_file_e); } break; @@ -2018,7 +2018,7 @@ extern "C" { status = f_file_stream_write(file, f_string_ascii_space_s, 0); if (F_status_is_error(status)) { - fake_print_error(data_make->setting, status, data_make->main->error, macro_fake_f(f_file_stream_write)); + fake_print_error(data_make->setting, data_make->main->error, status, macro_fake_f(f_file_stream_write)); break; } diff --git a/level_3/fake/c/main/make/operate_validate_type.c b/level_3/fake/c/main/make/operate_validate_type.c index c0b6c30..c5cbb8e 100644 --- a/level_3/fake/c/main/make/operate_validate_type.c +++ b/level_3/fake/c/main/make/operate_validate_type.c @@ -12,7 +12,7 @@ extern "C" { f_status_t fake_make_operate_validate_type_break(fake_make_data_t * const data_make) { if (data_make->cache_arguments.used > 1) { - fake_print_error_too_many_arguments(data_make); + fake_print_error_too_many_arguments(data_make->setting, data_make->main->error); return F_status_set_error(F_failure); } @@ -72,7 +72,7 @@ extern "C" { } if (F_status_is_error(status)) { - fake_print_error_file(data_make->setting, status, data_make->main->error, macro_fake_f(f_file_is), path_file, f_file_operation_find_s, fll_error_file_type_file_e); + fake_print_error_file(data_make->setting, data_make->main->error, status, macro_fake_f(f_file_is), path_file, f_file_operation_find_s, fll_error_file_type_file_e); return F_status_set_error(F_failure); } @@ -108,7 +108,7 @@ extern "C" { f_status_t fake_make_operate_validate_type_clean_top_skeleton(fake_make_data_t * const data_make) { if (data_make->cache_arguments.used) { - fake_print_error_too_many_arguments(data_make); + fake_print_error_too_many_arguments(data_make->setting, data_make->main->error); return F_status_set_error(F_failure); } @@ -129,7 +129,7 @@ extern "C" { status_file = fake_make_assure_inside_project(data_make, data_make->cache_arguments.array[i]); if (F_status_is_error(status_file)) { - fake_print_message_section_operation_path_outside(data_make->data, data_make->error, F_status_set_fine(status_file), macro_fake_f(fake_make_assure_inside_project), data_make->cache_path.used ? data_make->cache_path : data_make->cache_arguments.array[i]); + fake_print_message_section_operation_path_outside(data_make->setting, data_make->error, F_status_set_fine(status_file), macro_fake_f(fake_make_assure_inside_project), data_make->cache_path.used ? data_make->cache_path : data_make->cache_arguments.array[i]); status = F_status_set_error(F_failure); } @@ -172,7 +172,7 @@ extern "C" { } if (F_status_is_error(status_file)) { - fake_print_error_file(data_make->setting, status_file, data_make->main->error, macro_fake_f(f_directory_is), data_make->cache_arguments.array[data_make->cache_arguments.used - 1], f_file_operation_find_s, fll_error_file_type_directory_e); + fake_print_error_file(data_make->setting, data_make->main->error, status_file, macro_fake_f(f_directory_is), data_make->cache_arguments.array[data_make->cache_arguments.used - 1], f_file_operation_find_s, fll_error_file_type_directory_e); status = F_status_set_error(F_failure); } @@ -204,7 +204,7 @@ extern "C" { return status; } - fake_print_error_requires_more_arguments(data_make); + fake_print_error_requires_more_arguments(data_make->setting, data_make->main->error); return F_status_set_error(F_failure); } @@ -214,7 +214,7 @@ extern "C" { f_status_t fake_make_operate_validate_type_compile(fake_make_data_t * const data_make) { if (!data_make->cache_arguments.used) { - fake_print_error_requires_more_arguments(data_make); + fake_print_error_requires_more_arguments(data_make->setting, data_make->main->error); return F_status_set_error(F_failure); } @@ -444,7 +444,7 @@ extern "C" { // Identify and convert to the appropriate if not condition. if (state_process->condition == fake_make_operation_if_type_if_not_e) { if (data_make->cache_arguments.used < 1 + k) { - fake_print_error_requires_more_arguments(data_make); + fake_print_error_requires_more_arguments(data_make->setting, data_make->main->error); return F_status_set_error(F_failure); } @@ -483,7 +483,7 @@ extern "C" { // The success and failure operations minimum is also the maximum. if (data_make->cache_arguments.used > if_type_minimum[i]) { - fake_print_error_too_many_arguments(data_make); + fake_print_error_too_many_arguments(data_make->setting, data_make->main->error); return F_status_set_error(F_failure); } @@ -493,7 +493,7 @@ extern "C" { if (state_process->condition == fake_make_operation_if_type_if_equal_e || state_process->condition == fake_make_operation_if_type_if_equal_not_e) { if (data_make->cache_arguments.used < 2 + k) { - fake_print_error_requires_more_arguments(data_make); + fake_print_error_requires_more_arguments(data_make->setting, data_make->main->error); return F_status_set_error(F_failure); } @@ -615,7 +615,7 @@ extern "C" { status_file = fake_make_assure_inside_project(data_make, data_make->cache_arguments.array[i]); if (F_status_is_error(status_file)) { - fake_print_message_section_operation_path_outside(data_make->data, data_make->error, F_status_set_fine(status_file), "fake_make_assure_inside_project", data_make->cache_path.used ? data_make->cache_path : data_make->cache_arguments.array[i]); + fake_print_message_section_operation_path_outside(data_make->setting, data_make->error, F_status_set_fine(status_file), "fake_make_assure_inside_project", data_make->cache_path.used ? data_make->cache_path : data_make->cache_arguments.array[i]); status = F_status_set_error(F_failure); } @@ -629,7 +629,7 @@ extern "C" { } if (F_status_is_error(status_file)) { - fake_print_error_file(data_make->setting, status_file, data_make->main->error, macro_fake_f(f_file_exists), data_make->cache_arguments.array[i], f_file_operation_find_s, fll_error_file_type_file_e); + fake_print_error_file(data_make->setting, data_make->main->error, status_file, macro_fake_f(f_file_exists), data_make->cache_arguments.array[i], f_file_operation_find_s, fll_error_file_type_file_e); status = F_status_set_error(F_failure); } @@ -644,7 +644,7 @@ extern "C" { if (state_process->condition == fake_make_operation_if_type_if_greater_e || state_process->condition == fake_make_operation_if_type_if_greater_equal_e || state_process->condition == fake_make_operation_if_type_if_less_e || state_process->condition == fake_make_operation_if_type_if_less_equal_e) { if (data_make->cache_arguments.used < 2 + k) { - fake_print_error_requires_more_arguments(data_make); + fake_print_error_requires_more_arguments(data_make->setting, data_make->main->error); return F_status_set_error(F_failure); } @@ -707,7 +707,7 @@ extern "C" { return F_none; } - fake_print_error_requires_more_arguments(data_make); + fake_print_error_requires_more_arguments(data_make->setting, data_make->main->error); return F_status_set_error(F_failure); } @@ -725,7 +725,7 @@ extern "C" { status_file = fake_make_assure_inside_project(data_make, data_make->cache_arguments.array[i]); if (F_status_is_error(status_file)) { - fake_print_message_section_operation_path_outside(data_make->data, data_make->error, F_status_set_fine(status_file), macro_fake_f(fake_make_assure_inside_project), data_make->cache_path.used ? data_make->cache_path : data_make->cache_arguments.array[i]); + fake_print_message_section_operation_path_outside(data_make->setting, data_make->error, F_status_set_fine(status_file), macro_fake_f(fake_make_assure_inside_project), data_make->cache_path.used ? data_make->cache_path : data_make->cache_arguments.array[i]); status = F_status_set_error(F_failure); } @@ -768,7 +768,7 @@ extern "C" { } if (F_status_is_error(status_file)) { - fake_print_error_file(data_make->setting, status_file, data_make->main->error, macro_fake_f(f_directory_is), data_make->cache_arguments.array[data_make->cache_arguments.used - 1], f_file_operation_identify_s, fll_error_file_type_directory_e); + fake_print_error_file(data_make->setting, data_make->main->error, status_file, macro_fake_f(f_directory_is), data_make->cache_arguments.array[data_make->cache_arguments.used - 1], f_file_operation_identify_s, fll_error_file_type_directory_e); status = F_status_set_error(F_failure); } @@ -800,7 +800,7 @@ extern "C" { return status; } - fake_print_error_requires_more_arguments(data_make); + fake_print_error_requires_more_arguments(data_make->setting, data_make->main->error); return F_status_set_error(F_failure); } @@ -837,7 +837,7 @@ extern "C" { return F_none; } - fake_print_error_requires_more_arguments(data_make); + fake_print_error_requires_more_arguments(data_make->setting, data_make->main->error); return F_status_set_error(F_failure); } @@ -855,7 +855,7 @@ extern "C" { status_file = fake_make_assure_inside_project(data_make, data_make->cache_arguments.array[i]); if (F_status_is_error(status_file)) { - fake_print_message_section_operation_path_outside(data_make->data, data_make->error, F_status_set_fine(status_file), macro_fake_f(fake_make_assure_inside_project), data_make->cache_path.used ? data_make->cache_path : data_make->cache_arguments.array[i]); + fake_print_message_section_operation_path_outside(data_make->setting, data_make->error, F_status_set_fine(status_file), macro_fake_f(fake_make_assure_inside_project), data_make->cache_path.used ? data_make->cache_path : data_make->cache_arguments.array[i]); status = F_status_set_error(F_failure); } @@ -864,7 +864,7 @@ extern "C" { return status; } - fake_print_error_requires_more_arguments(data_make); + fake_print_error_requires_more_arguments(data_make->setting, data_make->main->error); return F_status_set_error(F_failure); } @@ -920,7 +920,7 @@ extern "C" { } if (data_make->cache_arguments.used) { - fake_print_error_too_many_arguments(data_make); + fake_print_error_too_many_arguments(data_make->setting, data_make->main->error); return F_status_set_error(F_failure); } @@ -933,7 +933,7 @@ extern "C" { f_status_t fake_make_operate_validate_type_exit(fake_make_data_t * const data_make) { if (data_make->cache_arguments.used > 1) { - fake_print_error_too_many_arguments(data_make); + fake_print_error_too_many_arguments(data_make->setting, data_make->main->error); return F_status_set_error(F_failure); } @@ -985,7 +985,7 @@ extern "C" { return F_none; } - fake_print_error_requires_more_arguments(data_make); + fake_print_error_requires_more_arguments(data_make->setting, data_make->main->error); return F_status_set_error(F_failure); } @@ -995,7 +995,7 @@ extern "C" { f_status_t fake_make_operate_validate_type_index(fake_make_data_t * const data_make) { if (!data_make->cache_arguments.used) { - fake_print_error_requires_more_arguments(data_make); + fake_print_error_requires_more_arguments(data_make->setting, data_make->main->error); return F_status_set_error(F_failure); } @@ -1022,7 +1022,7 @@ extern "C" { f_status_t fake_make_operate_validate_type_link(fake_make_data_t * const data_make) { if (data_make->cache_arguments.used > 4) { - fake_print_error_too_many_arguments(data_make); + fake_print_error_too_many_arguments(data_make->setting, data_make->main->error); return F_status_set_error(F_failure); } @@ -1042,7 +1042,7 @@ extern "C" { flag |= 0x2; } else { - fake_print_message_section_operation_link_argument_unknown(data_make->data, data_make->error, data_make->cache_arguments.array[0]); + fake_print_message_section_operation_link_argument_unknown(data_make->setting, data_make->error, data_make->cache_arguments.array[0]); status = F_status_set_error(F_failure); } @@ -1055,7 +1055,7 @@ extern "C" { flag |= 0x2; } else { - fake_print_message_section_operation_link_argument_unknown(data_make->data, data_make->error, data_make->cache_arguments.array[1]); + fake_print_message_section_operation_link_argument_unknown(data_make->setting, data_make->error, data_make->cache_arguments.array[1]); status = F_status_set_error(F_failure); } @@ -1065,14 +1065,14 @@ extern "C" { status_file = fake_make_assure_inside_project(data_make, data_make->cache_arguments.array[data_make->cache_arguments.used - 1]); if (F_status_is_error(status_file)) { - fake_print_message_section_operation_path_outside(data_make->data, data_make->error, F_status_set_fine(status_file), macro_fake_f(fake_make_assure_inside_project), data_make->cache_path.used ? data_make->cache_path : data_make->cache_arguments.array[data_make->cache_arguments.used - 1]); + fake_print_message_section_operation_path_outside(data_make->setting, data_make->error, F_status_set_fine(status_file), macro_fake_f(fake_make_assure_inside_project), data_make->cache_path.used ? data_make->cache_path : data_make->cache_arguments.array[data_make->cache_arguments.used - 1]); status = F_status_set_error(F_failure); } else { if (!(flag & 0x1)) { if (!data_make->cache_path.used || f_file_exists(data_make->cache_path, F_false) == F_true) { - fake_print_message_section_operation_link_point_exists(data_make->data, data_make->error, data_make->cache_arguments.array[data_make->cache_arguments.used - 1]); + fake_print_message_section_operation_link_point_exists(data_make->setting, data_make->error, data_make->cache_arguments.array[data_make->cache_arguments.used - 1]); status = F_status_set_error(F_failure); } @@ -1082,14 +1082,14 @@ extern "C" { status_file = fake_make_assure_inside_project(data_make, data_make->cache_arguments.array[data_make->cache_arguments.used - 2]); if (F_status_is_error(status_file)) { - fake_print_message_section_operation_path_outside(data_make->data, data_make->error, F_status_set_fine(status_file), macro_fake_f(fake_make_assure_inside_project), data_make->cache_arguments.array[data_make->cache_arguments.used - 2]); + fake_print_message_section_operation_path_outside(data_make->setting, data_make->error, F_status_set_fine(status_file), macro_fake_f(fake_make_assure_inside_project), data_make->cache_arguments.array[data_make->cache_arguments.used - 2]); status = F_status_set_error(F_failure); } if ((flag & 0x2) && F_status_is_error_not(status_file)) { if (f_file_exists(data_make->cache_arguments.array[data_make->cache_arguments.used - 2], F_false) != F_true) { - fake_print_message_section_operation_link_target_exists_not(data_make->data, data_make->error, data_make->cache_arguments.array[data_make->cache_arguments.used - 2]); + fake_print_message_section_operation_link_target_exists_not(data_make->setting, data_make->error, data_make->cache_arguments.array[data_make->cache_arguments.used - 2]); status = F_status_set_error(F_failure); } @@ -1111,7 +1111,7 @@ extern "C" { status_file = f_file_name_directory(full, &data_make->cache_path); if (F_status_is_error(status_file)) { - fake_print_error_file(data_make->setting, status_file, data_make->main->error, macro_fake_f(f_file_name_directory), full, f_file_operation_analyze_s, fll_error_file_type_path_e); + fake_print_error_file(data_make->setting, data_make->main->error, status_file, macro_fake_f(f_file_name_directory), full, f_file_operation_analyze_s, fll_error_file_type_path_e); status = F_status_set_error(F_failure); } @@ -1120,7 +1120,7 @@ extern "C" { status_file = f_string_dynamic_append_assure(f_path_separator_s, &data_make->cache_path); if (F_status_is_error(status_file)) { - fake_print_error(data_make->setting, status_file, data_make->main->error, macro_fake_f(f_string_dynamic_append_assure)); + fake_print_error(data_make->setting, data_make->main->error, status_file, macro_fake_f(f_string_dynamic_append_assure)); status = F_status_set_error(F_failure); } @@ -1128,7 +1128,7 @@ extern "C" { status_file = f_string_dynamic_append(data_make->cache_arguments.array[data_make->cache_arguments.used - 2], &data_make->cache_path); if (F_status_is_error(status_file)) { - fake_print_error(data_make->setting, status_file, data_make->main->error, macro_fake_f(f_string_dynamic_append)); + fake_print_error(data_make->setting, data_make->main->error, status_file, macro_fake_f(f_string_dynamic_append)); status = F_status_set_error(F_failure); } @@ -1146,14 +1146,14 @@ extern "C" { status_file = fake_make_assure_inside_project(data_make, target); if (F_status_is_error(status_file)) { - fake_print_message_section_operation_path_outside(data_make->data, data_make->error, F_status_set_fine(status_file), macro_fake_f(fake_make_assure_inside_project), target); + fake_print_message_section_operation_path_outside(data_make->setting, data_make->error, F_status_set_fine(status_file), macro_fake_f(fake_make_assure_inside_project), target); status = F_status_set_error(F_failure); } if ((flag & 0x2) && F_status_is_error_not(status_file)) { if (f_file_exists(target, F_false) != F_true) { - fake_print_message_section_operation_link_target_exists_not(data_make->data, data_make->error, target); + fake_print_message_section_operation_link_target_exists_not(data_make->setting, data_make->error, target); status = F_status_set_error(F_failure); } @@ -1171,7 +1171,7 @@ extern "C" { return status; } - fake_print_error_requires_more_arguments(data_make); + fake_print_error_requires_more_arguments(data_make->setting, data_make->main->error); return F_status_set_error(F_failure); } @@ -1191,7 +1191,7 @@ extern "C" { status_file = fake_make_assure_inside_project(data_make, data_make->cache_arguments.array[i]); if (F_status_is_error(status_file)) { - fake_print_message_section_operation_path_outside(data_make->data, data_make->error, F_status_set_fine(status_file), macro_fake_f(fake_make_assure_inside_project), data_make->cache_path.used ? data_make->cache_path : data_make->cache_arguments.array[i]); + fake_print_message_section_operation_path_outside(data_make->setting, data_make->error, F_status_set_fine(status_file), macro_fake_f(fake_make_assure_inside_project), data_make->cache_path.used ? data_make->cache_path : data_make->cache_arguments.array[i]); status = F_status_set_error(F_failure); } @@ -1239,7 +1239,7 @@ extern "C" { } if (F_status_is_error(status)) { - fake_print_error_file(data_make->setting, status, data_make->main->error, macro_fake_f(f_directory_is), data_make->cache_arguments.array[data_make->cache_arguments.used - 1], f_file_operation_identify_s, fll_error_file_type_directory_e); + fake_print_error_file(data_make->setting, data_make->main->error, status, macro_fake_f(f_directory_is), data_make->cache_arguments.array[data_make->cache_arguments.used - 1], f_file_operation_identify_s, fll_error_file_type_directory_e); return F_status_set_error(F_failure); } @@ -1271,7 +1271,7 @@ extern "C" { return F_none; } - fake_print_error_requires_more_arguments(data_make); + fake_print_error_requires_more_arguments(data_make->setting, data_make->main->error); return F_status_set_error(F_failure); } @@ -1281,7 +1281,7 @@ extern "C" { f_status_t fake_make_operate_validate_type_operate(fake_make_data_t * const data_make, f_array_lengths_t * const section_stack) { if (data_make->cache_arguments.used > 1) { - fake_print_error_too_many_arguments(data_make); + fake_print_error_too_many_arguments(data_make->setting, data_make->main->error); return F_status_set_error(F_failure); } @@ -1328,7 +1328,7 @@ extern "C" { return F_none; } - fake_print_error_requires_more_arguments(data_make); + fake_print_error_requires_more_arguments(data_make->setting, data_make->main->error); return F_status_set_error(F_failure); } @@ -1388,7 +1388,7 @@ extern "C" { return status; } - fake_print_error_requires_more_arguments(data_make); + fake_print_error_requires_more_arguments(data_make->setting, data_make->main->error); return F_status_set_error(F_failure); } @@ -1430,7 +1430,7 @@ extern "C" { if (F_status_is_error(status_file)) { if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->main->error.to.stream) { - fake_print_error_file(data_make->setting, status_file, data_make->main->error, macro_fake_f(f_file_is), data_make->cache_arguments.array[i], f_file_operation_find_s, fll_error_file_type_directory_e); + fake_print_error_file(data_make->setting, data_make->main->error, status_file, macro_fake_f(f_file_is), data_make->cache_arguments.array[i], f_file_operation_find_s, fll_error_file_type_directory_e); } status = F_status_set_error(F_failure); @@ -1441,7 +1441,7 @@ extern "C" { } } - fake_print_error_requires_more_arguments(data_make); + fake_print_error_requires_more_arguments(data_make->setting, data_make->main->error); return F_status_set_error(F_failure); } @@ -1451,7 +1451,7 @@ extern "C" { f_status_t fake_make_operate_validate_type_pop(fake_make_data_t * const data_make) { if (data_make->cache_arguments.used) { - fake_print_error_too_many_arguments(data_make); + fake_print_error_too_many_arguments(data_make->setting, data_make->main->error); return F_status_set_error(F_failure); } @@ -1472,7 +1472,7 @@ extern "C" { f_status_t fake_make_operate_validate_type_run(fake_make_data_t * const data_make) { if (!data_make->cache_arguments.used) { - fake_print_error_requires_more_arguments(data_make); + fake_print_error_requires_more_arguments(data_make->setting, data_make->main->error); return F_status_set_error(F_failure); } @@ -1485,7 +1485,7 @@ extern "C" { f_status_t fake_make_operate_validate_type_to(fake_make_data_t * const data_make) { if (data_make->cache_arguments.used > 1) { - fake_print_error_too_many_arguments(data_make); + fake_print_error_too_many_arguments(data_make->setting, data_make->main->error); return F_status_set_error(F_failure); } @@ -1510,7 +1510,7 @@ extern "C" { if (F_status_is_error(status)) { if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->main->error.to.stream) { - fake_print_error_file(data_make->setting, status, data_make->main->error, macro_fake_f(f_file_is), data_make->data->file_data_build_fakefile, f_file_operation_find_s, fll_error_file_type_file_e); + fake_print_error_file(data_make->setting, data_make->main->error, status, macro_fake_f(f_file_is), data_make->data->file_data_build_fakefile, f_file_operation_find_s, fll_error_file_type_file_e); } return F_status_set_error(F_failure); @@ -1540,7 +1540,7 @@ extern "C" { return F_status_set_error(F_failure); } - fake_print_error_requires_more_arguments(data_make); + fake_print_error_requires_more_arguments(data_make->setting, data_make->main->error); return F_status_set_error(F_failure); } @@ -1575,7 +1575,7 @@ extern "C" { status_file = fake_make_assure_inside_project(data_make, data_make->cache_arguments.array[i]); if (F_status_is_error(status_file)) { - fake_print_message_section_operation_path_outside(data_make->data, data_make->error, F_status_set_fine(status_file), macro_fake_f(fake_make_assure_inside_project), data_make->cache_path.used ? data_make->cache_path : data_make->cache_arguments.array[i]); + fake_print_message_section_operation_path_outside(data_make->setting, data_make->error, F_status_set_fine(status_file), macro_fake_f(fake_make_assure_inside_project), data_make->cache_path.used ? data_make->cache_path : data_make->cache_arguments.array[i]); status = F_status_set_error(F_failure); } @@ -1584,7 +1584,7 @@ extern "C" { return status; } - fake_print_error_requires_more_arguments(data_make); + fake_print_error_requires_more_arguments(data_make->setting, data_make->main->error); return F_status_set_error(F_failure); } @@ -1595,7 +1595,7 @@ extern "C" { if (data_make->cache_arguments.used) { if (!data_make->cache_arguments.array[0].used) { - fake_print_error_argument_empty(data_make, 1); + fake_print_error_argument_empty(data_make->setting, data_make->error, 1); return F_status_set_error(F_failure); } @@ -1603,7 +1603,7 @@ extern "C" { const f_status_t status = fake_make_assure_inside_project(data_make, data_make->cache_arguments.array[0]); if (F_status_is_error(status)) { - fake_print_message_section_operation_path_outside(data_make->data, data_make->error, status, macro_fake_f(fake_make_assure_inside_project), data_make->cache_path.used ? data_make->cache_path : data_make->cache_arguments.array[0]); + fake_print_message_section_operation_path_outside(data_make->setting, data_make->error, status, macro_fake_f(fake_make_assure_inside_project), data_make->cache_path.used ? data_make->cache_path : data_make->cache_arguments.array[0]); return F_status_set_error(F_failure); } @@ -1611,7 +1611,7 @@ extern "C" { return F_none; } - fake_print_error_requires_more_arguments(data_make); + fake_print_error_requires_more_arguments(data_make->setting, data_make->main->error); return F_status_set_error(F_failure); } diff --git a/level_3/fake/c/main/print.c b/level_3/fake/c/main/print.c index 0b0c431..ce366c5 100644 --- a/level_3/fake/c/main/print.c +++ b/level_3/fake/c/main/print.c @@ -5,11 +5,12 @@ extern "C" { #endif #ifndef _di_fake_print_error_ - f_status_t fake_print_error(fake_setting_t * const setting, const f_status_t status, const fl_print_t print, const f_string_t function) { + f_status_t fake_print_error(fake_setting_t * const setting, const fl_print_t print, const f_status_t status, const f_string_t function) { if (print.verbosity < f_console_verbosity_error_e) return F_output_not; fake_print_line_first_locked(setting, print); + fll_error_print(print, F_status_set_fine(status), function, F_true); return F_none; @@ -17,7 +18,7 @@ extern "C" { #endif // _di_fake_print_error_ #ifndef _di_fake_print_error_fallback_ - f_status_t fake_print_error_fallback(fake_setting_t * const setting, const f_status_t status, const fl_print_t print, const f_string_t function) { + f_status_t fake_print_error_fallback(fake_setting_t * const setting, const fl_print_t print, const f_status_t status, const f_string_t function) { if (print.verbosity < f_console_verbosity_error_e) return F_output_not; @@ -30,11 +31,12 @@ extern "C" { #endif // _di_fake_print_error_fallback_ #ifndef _di_fake_print_error_file_ - f_status_t fake_print_error_file(fake_setting_t * const setting, const f_status_t status, const fl_print_t print, const f_string_t function, const f_string_static_t name, const f_string_static_t operation, const uint8_t type) { + f_status_t fake_print_error_file(fake_setting_t * const setting, const fl_print_t print, const f_status_t status, const f_string_t function, const f_string_static_t name, const f_string_static_t operation, const uint8_t type) { if (print.verbosity < f_console_verbosity_error_e) return F_output_not; fake_print_line_first_locked(setting, print); + fll_error_file_print(print, F_status_set_fine(status), function, F_true, name, operation, type); return F_none; @@ -42,7 +44,7 @@ extern "C" { #endif // _di_fake_print_error_file_ #ifndef _di_fake_print_error_file_fallback_ - f_status_t fake_print_error_file_fallback(fake_setting_t * const setting, const f_status_t status, const fl_print_t print, const f_string_t function, const f_string_static_t name, const f_string_static_t operation, const uint8_t type) { + f_status_t fake_print_error_file_fallback(fake_setting_t * const setting, const fl_print_t print, const f_status_t status, const f_string_t function, const f_string_static_t name, const f_string_static_t operation, const uint8_t type) { if (print.verbosity < f_console_verbosity_error_e) return F_output_not; @@ -352,229 +354,229 @@ extern "C" { #endif // _di_fake_print_operation_all_complete_ #ifndef _di_fake_print_error_build_operation_file_ - bool fake_print_error_build_operation_file(fake_data_t * const data, const f_status_t status, const f_string_t function, const f_string_static_t operation, const f_string_static_t source, const f_string_static_t destination, const f_string_static_t how, const bool fallback) { + f_status_t fake_print_error_build_operation_file(fake_setting_t * const setting, const fl_print_t print, const f_status_t status, const f_string_t function, const f_string_static_t operation, const f_string_static_t source, const f_string_static_t destination, const f_string_static_t how, const bool fallback) { if (F_status_set_fine(status) == F_file_found_not) { - if (data->main->error.verbosity > f_console_verbosity_quiet_e) { - f_file_stream_lock(data->main->error.to); + if (print.verbosity > f_console_verbosity_quiet_e) { + f_file_stream_lock(print.to); - fake_print_line_first_locked(data->setting, data->main->error); + fake_print_line_first_unlocked(setting, print); - fl_print_format("%[%QFailed to find '%]", data->main->error.to, data->main->error.context, data->main->error.prefix, data->main->error.context); + fl_print_format("%[%QFailed to find '%]", print.to, print.context, print.prefix, print.context); - fake_print_error_build_operation_file_message(data, operation, source, destination, how); + fake_print_error_build_operation_file_message(setting, print, operation, source, destination, how); - fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s); + fl_print_format("%['.%]%r", print.to, print.context, print.context, f_string_eol_s); - f_file_stream_unlock(data->main->error.to); + f_file_stream_unlock(print.to); } return F_false; } if (F_status_set_fine(status) == F_parameter) { - if (data->main->error.verbosity > f_console_verbosity_quiet_e) { - f_file_stream_lock(data->main->error.to); + if (print.verbosity > f_console_verbosity_quiet_e) { + f_file_stream_lock(print.to); - fake_print_line_first_locked(data->setting, data->main->error); + fake_print_line_first_unlocked(setting, print); - fl_print_format("%[%QInvalid parameter when calling '%]", data->main->error.to, data->main->error.context, data->main->error.prefix, data->main->error.context); - fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, function, data->main->error.notable); - fl_print_format("%[() to %Q '%]", data->main->error.to, data->main->error.context, operation, data->main->error.context); + fl_print_format("%[%QInvalid parameter when calling '%]", print.to, print.context, print.prefix, print.context); + fl_print_format("%[%Q%]", print.to, print.notable, function, print.notable); + fl_print_format("%[() to %Q '%]", print.to, print.context, operation, print.context); - fake_print_error_build_operation_file_message(data, operation, source, destination, how); + fake_print_error_build_operation_file_message(setting, print, operation, source, destination, how); - fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s); + fl_print_format("%['.%]%r", print.to, print.context, print.context, f_string_eol_s); - f_file_stream_unlock(data->main->error.to); + f_file_stream_unlock(print.to); } return F_false; } if (F_status_set_fine(status) == F_name) { - if (data->main->error.verbosity > f_console_verbosity_quiet_e) { - f_file_stream_lock(data->main->error.to); + if (print.verbosity > f_console_verbosity_quiet_e) { + f_file_stream_lock(print.to); - fake_print_line_first_locked(data->setting, data->main->error); + fake_print_line_first_unlocked(setting, print); - fl_print_format("%[%QInvalid name for '%]", data->main->error.to, data->main->error.context, data->main->error.prefix, data->main->error.context); + fl_print_format("%[%QInvalid name for '%]", print.to, print.context, print.prefix, print.context); if (source.used) { - fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, source, data->main->error.notable); + fl_print_format("%[%Q%]", print.to, print.notable, source, print.notable); } if (destination.used) { - fl_print_format("%[' or '%]", data->main->error.to, data->main->error.context, data->main->error.context); - fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, destination, data->main->error.notable); + fl_print_format("%[' or '%]", print.to, print.context, print.context); + fl_print_format("%[%Q%]", print.to, print.notable, destination, print.notable); } - fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s); + fl_print_format("%['.%]%r", print.to, print.context, print.context, f_string_eol_s); - f_file_stream_unlock(data->main->error.to); + f_file_stream_unlock(print.to); } return F_false; } if (F_status_set_fine(status) == F_memory_not) { - if (data->main->error.verbosity > f_console_verbosity_quiet_e) { - f_file_stream_lock(data->main->error.to); + if (print.verbosity > f_console_verbosity_quiet_e) { + f_file_stream_lock(print.to); - fake_print_line_first_locked(data->setting, data->main->error); + fake_print_line_first_unlocked(setting, print); - fl_print_format("%[%QUnable to allocate memory, while trying to %Q '%]", data->main->error.to, data->main->error.context, data->main->error.prefix, operation, data->main->error.context); + fl_print_format("%[%QUnable to allocate memory, while trying to %Q '%]", print.to, print.context, print.prefix, operation, print.context); - fake_print_error_build_operation_file_message(data, operation, source, destination, how); + fake_print_error_build_operation_file_message(setting, print, operation, source, destination, how); - fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s); + fl_print_format("%['.%]%r", print.to, print.context, print.context, f_string_eol_s); - f_file_stream_unlock(data->main->error.to); + f_file_stream_unlock(print.to); } return F_false; } if (F_status_set_fine(status) == F_number_overflow) { - if (data->main->error.verbosity > f_console_verbosity_quiet_e) { - f_file_stream_lock(data->main->error.to); + if (print.verbosity > f_console_verbosity_quiet_e) { + f_file_stream_lock(print.to); - fake_print_line_first_locked(data->setting, data->main->error); + fake_print_line_first_unlocked(setting, print); - fl_print_format("%[%QOverflow while trying to %Q '%]", data->main->error.to, data->main->error.context, data->main->error.prefix, operation, data->main->error.context); + fl_print_format("%[%QOverflow while trying to %Q '%]", print.to, print.context, print.prefix, operation, print.context); - fake_print_error_build_operation_file_message(data, operation, source, destination, how); + fake_print_error_build_operation_file_message(setting, print, operation, source, destination, how); - fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s); + fl_print_format("%['.%]%r", print.to, print.context, print.context, f_string_eol_s); - f_file_stream_unlock(data->main->error.to); + f_file_stream_unlock(print.to); } return F_false; } if (F_status_set_fine(status) == F_directory) { - if (data->main->error.verbosity > f_console_verbosity_quiet_e) { - f_file_stream_lock(data->main->error.to); + if (print.verbosity > f_console_verbosity_quiet_e) { + f_file_stream_lock(print.to); - fake_print_line_first_locked(data->setting, data->main->error); + fake_print_line_first_unlocked(setting, print); - fl_print_format("%[%QInvalid directory while trying to %Q '%]", data->main->error.to, data->main->error.context, data->main->error.prefix, operation, data->main->error.context); + fl_print_format("%[%QInvalid directory while trying to %Q '%]", print.to, print.context, print.prefix, operation, print.context); - fake_print_error_build_operation_file_message(data, operation, source, destination, how); + fake_print_error_build_operation_file_message(setting, print, operation, source, destination, how); - fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s); + fl_print_format("%['.%]%r", print.to, print.context, print.context, f_string_eol_s); - f_file_stream_unlock(data->main->error.to); + f_file_stream_unlock(print.to); } return F_false; } if (F_status_set_fine(status) == F_access_denied) { - if (data->main->error.verbosity > f_console_verbosity_quiet_e) { - f_file_stream_lock(data->main->error.to); + if (print.verbosity > f_console_verbosity_quiet_e) { + f_file_stream_lock(print.to); - fake_print_line_first_locked(data->setting, data->main->error); + fake_print_line_first_unlocked(setting, print); - fl_print_format("%[%QAccess denied while trying to %Q '%]", data->main->error.to, data->main->error.context, data->main->error.prefix, operation, data->main->error.context); + fl_print_format("%[%QAccess denied while trying to %Q '%]", print.to, print.context, print.prefix, operation, print.context); - fake_print_error_build_operation_file_message(data, operation, source, destination, how); + fake_print_error_build_operation_file_message(setting, print, operation, source, destination, how); - fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s); + fl_print_format("%['.%]%r", print.to, print.context, print.context, f_string_eol_s); - f_file_stream_unlock(data->main->error.to); + f_file_stream_unlock(print.to); } return F_false; } if (F_status_set_fine(status) == F_loop) { - if (data->main->error.verbosity > f_console_verbosity_quiet_e) { - f_file_stream_lock(data->main->error.to); + if (print.verbosity > f_console_verbosity_quiet_e) { + f_file_stream_lock(print.to); - fake_print_line_first_locked(data->setting, data->main->error); + fake_print_line_first_unlocked(setting, print); - fl_print_format("%[%QLoop while trying to %Q '%]", data->main->error.to, data->main->error.context, data->main->error.prefix, operation, data->main->error.context); + fl_print_format("%[%QLoop while trying to %Q '%]", print.to, print.context, print.prefix, operation, print.context); - fake_print_error_build_operation_file_message(data, operation, source, destination, how); + fake_print_error_build_operation_file_message(setting, print, operation, source, destination, how); - fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s); + fl_print_format("%['.%]%r", print.to, print.context, print.context, f_string_eol_s); - f_file_stream_unlock(data->main->error.to); + f_file_stream_unlock(print.to); } return F_false; } if (F_status_set_fine(status) == F_prohibited) { - if (data->main->error.verbosity > f_console_verbosity_quiet_e) { - f_file_stream_lock(data->main->error.to); + if (print.verbosity > f_console_verbosity_quiet_e) { + f_file_stream_lock(print.to); - fake_print_line_first_locked(data->setting, data->main->error); + fake_print_line_first_unlocked(setting, print); - fl_print_format("%[%QProhibited by system while trying to %Q '%]", data->main->error.to, data->main->error.context, data->main->error.prefix, operation, data->main->error.context); + fl_print_format("%[%QProhibited by system while trying to %Q '%]", print.to, print.context, print.prefix, operation, print.context); - fake_print_error_build_operation_file_message(data, operation, source, destination, how); + fake_print_error_build_operation_file_message(setting, print, operation, source, destination, how); - fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s); + fl_print_format("%['.%]%r", print.to, print.context, print.context, f_string_eol_s); - f_file_stream_unlock(data->main->error.to); + f_file_stream_unlock(print.to); } return F_false; } if (F_status_set_fine(status) == F_directory_found_not) { - if (data->main->error.verbosity > f_console_verbosity_quiet_e) { - f_file_stream_lock(data->main->error.to); + if (print.verbosity > f_console_verbosity_quiet_e) { + f_file_stream_lock(print.to); - fake_print_line_first_locked(data->setting, data->main->error); + fake_print_line_first_unlocked(setting, print); - fl_print_format("%[%QFailed to %Q '%]", data->main->error.to, data->main->error.context, data->main->error.prefix, operation, data->main->error.context); + fl_print_format("%[%QFailed to %Q '%]", print.to, print.context, print.prefix, operation, print.context); - fake_print_error_build_operation_file_message(data, operation, source, destination, how); + fake_print_error_build_operation_file_message(setting, print, operation, source, destination, how); - fl_print_format("%[' due to an invalid directory in the path.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s); + fl_print_format("%[' due to an invalid directory in the path.%]%r", print.to, print.context, print.context, f_string_eol_s); - f_file_stream_unlock(data->main->error.to); + f_file_stream_unlock(print.to); } return F_false; } if (F_status_set_fine(status) == F_failure) { - if (data->main->error.verbosity > f_console_verbosity_quiet_e) { - f_file_stream_lock(data->main->error.to); + if (print.verbosity > f_console_verbosity_quiet_e) { + f_file_stream_lock(print.to); - fake_print_line_first_locked(data->setting, data->main->error); + fake_print_line_first_unlocked(setting, print); - fl_print_format("%[%QFailed to %Q '%]", data->main->error.to, data->main->error.context, data->main->error.prefix, operation, data->main->error.context); + fl_print_format("%[%QFailed to %Q '%]", print.to, print.context, print.prefix, operation, print.context); - fake_print_error_build_operation_file_message(data, operation, source, destination, how); + fake_print_error_build_operation_file_message(setting, print, operation, source, destination, how); - fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s); + fl_print_format("%['.%]%r", print.to, print.context, print.context, f_string_eol_s); - f_file_stream_unlock(data->main->error.to); + f_file_stream_unlock(print.to); } return F_false; } - if (fll_error_print(data->main->error, F_status_set_fine(status), function, F_false) == F_known_not && fallback && data->main->error.verbosity > f_console_verbosity_quiet_e) { - f_file_stream_lock(data->main->error.to); + if (fll_error_print(print, F_status_set_fine(status), function, F_false) == F_known_not && fallback && print.verbosity > f_console_verbosity_quiet_e) { + f_file_stream_lock(print.to); - fake_print_line_first_locked(data->setting, data->main->error); + fake_print_line_first_unlocked(setting, print); - fl_print_format("%[UNKNOWN %Q(%]", data->main->error.to, data->main->error.context, data->main->error.prefix, data->main->error.context); - fl_print_format("%[%ui%]", data->main->error.to, data->main->error.notable, F_status_set_fine(status), data->main->error.notable); - fl_print_format("%[) occurred while trying to %Q '%]", data->main->error.to, data->main->error.context, operation, data->main->error.context); + fl_print_format("%[UNKNOWN %Q(%]", print.to, print.context, print.prefix, print.context); + fl_print_format("%[%ui%]", print.to, print.notable, F_status_set_fine(status), print.notable); + fl_print_format("%[) occurred while trying to %Q '%]", print.to, print.context, operation, print.context); - fake_print_error_build_operation_file_message(data, operation, source, destination, how); + fake_print_error_build_operation_file_message(setting, print, operation, source, destination, how); - fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s); + fl_print_format("%['.%]%r", print.to, print.context, print.context, f_string_eol_s); - f_file_stream_unlock(data->main->error.to); + f_file_stream_unlock(print.to); } return F_true; @@ -582,85 +584,93 @@ extern "C" { #endif // _di_fake_print_error_build_operation_file_ #ifndef _di_fake_print_error_build_operation_file_message_ - void fake_print_error_build_operation_file_message(fake_data_t * const data, const f_string_static_t operation, const f_string_static_t source, const f_string_static_t destination, const f_string_static_t how) { + void fake_print_error_build_operation_file_message(fake_setting_t * const setting, const fl_print_t print, const f_string_static_t operation, const f_string_static_t source, const f_string_static_t destination, const f_string_static_t how) { if (source.used) { - fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, source, data->main->error.notable); + fl_print_format("%[%Q%]", print.to, print.notable, source, print.notable); } - fl_print_format("%[while trying to %Q '%]", data->main->error.to, data->main->error.context, operation, data->main->error.context); + fl_print_format("%[while trying to %Q '%]", print.to, print.context, operation, print.context); if (destination.used) { - fl_print_format("%[' %Q '%]", data->main->error.to, data->main->error.context, how, data->main->error.context); - fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, destination, data->main->error.notable); + fl_print_format("%[' %Q '%]", print.to, print.context, how, print.context); + fl_print_format("%[%Q%]", print.to, print.notable, destination, print.notable); } else if (source.used) { - fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, source, data->main->error.notable); + fl_print_format("%[%Q%]", print.to, print.notable, source, print.notable); } } #endif // _di_fake_print_error_build_operation_file_message_ #ifndef _di_fake_print_error_fss - bool fake_print_error_fss(fake_data_t * const data, const f_status_t status, const f_string_t function, const f_string_static_t path_file, const f_string_range_t range, const bool fallback) { + f_status_t fake_print_error_fss(fake_setting_t * const setting, const fl_print_t print, const f_status_t status, const f_string_t function, const f_string_static_t path_file, const f_string_range_t range, const bool fallback) { if (status == F_file_found_not) { - if (data->main->error.verbosity > f_console_verbosity_quiet_e) { - f_file_stream_lock(data->main->error.to); + if (print.verbosity > f_console_verbosity_quiet_e) { + f_file_stream_lock(print.to); + + fake_print_line_first_unlocked(setting, print); - fl_print_format("%r%[%QOccurred on invalid UTF-8 character at stop position (at '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context); - fl_print_format("%[%un%]", data->main->error.to, data->main->error.notable, range.start, data->main->error.notable); - fl_print_format("%[ of setting file '%]", data->main->error.to, data->main->error.context, data->main->error.context); - fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, path_file, data->main->error.notable); - fl_print_format("%[').%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s); + fl_print_format("%[%QOccurred on invalid UTF-8 character at stop position (at '%]", print.to, print.context, print.prefix, print.context); + fl_print_format("%[%un%]", print.to, print.notable, range.start, print.notable); + fl_print_format("%[ of setting file '%]", print.to, print.context, print.context); + fl_print_format("%[%Q%]", print.to, print.notable, path_file, print.notable); + fl_print_format("%[').%]%r", print.to, print.context, print.context, f_string_eol_s); - f_file_stream_unlock(data->main->error.to); + f_file_stream_unlock(print.to); } return F_false; } if (status == F_complete_not_utf || status == F_complete_not_utf_eos || status == F_complete_not_utf_stop) { - if (data->main->error.verbosity > f_console_verbosity_quiet_e) { - f_file_stream_lock(data->main->error.to); + if (print.verbosity > f_console_verbosity_quiet_e) { + f_file_stream_lock(print.to); - fl_print_format("%r%[%QOccurred on invalid UTF-8 character at %s (at '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, status == F_complete_not_utf_eos ? "end of string" : "stop point of string", data->main->error.context); - fl_print_format("%[%un%]", data->main->error.to, data->main->error.notable, range.start, data->main->error.notable); - fl_print_format("%[ of setting file '%]", data->main->error.to, data->main->error.context, data->main->error.context); - fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, path_file, data->main->error.notable); - fl_print_format("%[').%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s); + fake_print_line_first_unlocked(setting, print); - f_file_stream_unlock(data->main->error.to); + fl_print_format("%[%QOccurred on invalid UTF-8 character at %s (at '%]", print.to, print.context, print.prefix, status == F_complete_not_utf_eos ? "end of string" : "stop point of string", print.context); + fl_print_format("%[%un%]", print.to, print.notable, range.start, print.notable); + fl_print_format("%[ of setting file '%]", print.to, print.context, print.context); + fl_print_format("%[%Q%]", print.to, print.notable, path_file, print.notable); + fl_print_format("%[').%]%r", print.to, print.context, print.context, f_string_eol_s); + + f_file_stream_unlock(print.to); } return F_false; } if (status == F_complete_not_utf_stop) { - if (data->main->error.verbosity > f_console_verbosity_quiet_e) { - f_file_stream_lock(data->main->error.to); + if (print.verbosity > f_console_verbosity_quiet_e) { + f_file_stream_lock(print.to); + + fake_print_line_first_unlocked(setting, print); - fl_print_format("%r%[%QOccurred on invalid UTF-8 character at stop point of string (at '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context); - fl_print_format("%[%un%]", data->main->error.to, data->main->error.notable, range.start, data->main->error.notable); - fl_print_format("%[ of setting file '%]", data->main->error.to, data->main->error.context, data->main->error.context); - fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, path_file, data->main->error.notable); - fl_print_format("%[').%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s); + fl_print_format("%[%QOccurred on invalid UTF-8 character at stop point of string (at '%]", print.to, print.context, print.prefix, print.context); + fl_print_format("%[%un%]", print.to, print.notable, range.start, print.notable); + fl_print_format("%[ of setting file '%]", print.to, print.context, print.context); + fl_print_format("%[%Q%]", print.to, print.notable, path_file, print.notable); + fl_print_format("%[').%]%r", print.to, print.context, print.context, f_string_eol_s); - f_file_stream_unlock(data->main->error.to); + f_file_stream_unlock(print.to); } return F_false; } - if (fll_error_print(data->main->error, status, function, F_false) == F_known_not && fallback && data->main->error.verbosity > f_console_verbosity_quiet_e) { - f_file_stream_lock(data->main->error.to); + if (fll_error_print(print, status, function, F_false) == F_known_not && fallback && print.verbosity > f_console_verbosity_quiet_e) { + f_file_stream_lock(print.to); - fl_print_format("%r%[UNKNOWN %Q(%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context); - fl_print_format("%[%ui%]", data->main->error.to, data->main->error.notable, status, data->main->error.notable); - fl_print_format("%[) in function '%]", data->main->error.to, data->main->error.context, data->main->error.context); - fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, function, data->main->error.notable); - fl_print_format("%[().%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s); + fake_print_line_first_unlocked(setting, print); - f_file_stream_unlock(data->main->error.to); + fl_print_format("%[UNKNOWN %Q(%]", print.to, print.context, print.prefix, print.context); + fl_print_format("%[%ui%]", print.to, print.notable, status, print.notable); + fl_print_format("%[) in function '%]", print.to, print.context, print.context); + fl_print_format("%[%Q%]", print.to, print.notable, function, print.notable); + fl_print_format("%[().%]%r", print.to, print.context, print.context, f_string_eol_s); + + f_file_stream_unlock(print.to); } return F_true; @@ -668,75 +678,101 @@ extern "C" { #endif // _di_fake_print_error_fss #ifndef _di_fake_print_error_parameter_missing_value_ - void fake_print_error_parameter_missing_value(fake_data_t * const data, const f_string_static_t parameter) { + f_status_t fake_print_error_parameter_missing_value(fake_setting_t * const setting, const fl_print_t print, const f_string_static_t parameter) { - if (data->main->error.verbosity == f_console_verbosity_quiet_e) return; + if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; - f_file_stream_lock(data->main->error.to); + f_file_stream_lock(print.to); + + fake_print_line_first_unlocked(setting, print); - fl_print_format("%r%[%QThe parameter '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context); - fl_print_format("%[%r%r%]", data->main->error.to, data->main->error.notable, f_console_symbol_long_normal_s, parameter, data->main->error.notable); - fl_print_format("%[' is specified, but no value is given.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s); + fl_print_format("%[%QThe parameter '%]", print.to, print.context, print.prefix, print.context); + fl_print_format("%[%r%r%]", print.to, print.notable, f_console_symbol_long_normal_s, parameter, print.notable); + fl_print_format("%[' is specified, but no value is given.%]%r", print.to, print.context, print.context, f_string_eol_s); + + f_file_stream_unlock(print.to); - f_file_stream_unlock(data->main->error.to); + return F_none; } #endif // _di_fake_print_error_parameter_missing_value_ #ifndef _di_fake_print_error_parameter_too_many_ - void fake_print_error_parameter_too_many(fake_data_t * const data, const f_string_static_t parameter) { + f_status_t fake_print_error_parameter_too_many(fake_setting_t * const setting, const fl_print_t print, const f_string_static_t parameter) { + + if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; - if (data->main->error.verbosity == f_console_verbosity_quiet_e) return; + f_file_stream_lock(print.to); - f_file_stream_lock(data->main->error.to); + fl_print_format("%[%QThe parameter '%]", print.to, print.context, print.prefix, print.context); + fl_print_format("%[%r%r%]", print.to, print.notable, f_console_symbol_long_normal_s, parameter, print.notable); + fl_print_format("%[' was specified too many times.%]%r", print.to, print.context, print.context, f_string_eol_s); - fl_print_format("%r%[%QThe parameter '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context); - fl_print_format("%[%r%r%]", data->main->error.to, data->main->error.notable, f_console_symbol_long_normal_s, parameter, data->main->error.notable); - fl_print_format("%[' was specified too many times.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s); + f_file_stream_unlock(print.to); - f_file_stream_unlock(data->main->error.to); + return F_none; } #endif // _di_fake_print_error_parameter_too_many_ #ifndef _di_fake_print_error_requires_more_arguments_ - void fake_print_error_requires_more_arguments(fake_make_data_t * const data_make) { + f_status_t fake_print_error_requires_more_arguments(fake_setting_t * const setting, const fl_print_t print) { + + if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!print.to.stream) return F_output_not; - if (data_make->error.verbosity == f_console_verbosity_quiet_e) return; - if (!data_make->main->error.to.stream) return; + f_file_stream_lock(print.to); + + fake_print_line_first_unlocked(setting, print); - fll_print_format("%r%[%QRequires more arguments.%]%r", data_make->main->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context, f_string_eol_s); + fl_print_format("%[%QRequires more arguments.%]%r", print.to, print.context, print.prefix, print.context, f_string_eol_s); + + f_file_stream_unlock(print.to); + + return F_none; } #endif // _di_fake_print_error_requires_more_arguments_ #ifndef _di_fake_print_error_too_many_arguments_ - void fake_print_error_too_many_arguments(fake_make_data_t * const data_make) { + f_status_t fake_print_error_too_many_arguments(fake_setting_t * const setting, const fl_print_t print) { - if (data_make->error.verbosity == f_console_verbosity_quiet_e) return; - if (!data_make->main->error.to.stream) return; + if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!print.to.stream) return F_output_not; - fll_print_format("%r%[%QHas too many arguments.%]%r", data_make->main->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context, f_string_eol_s); + f_file_stream_lock(print.to); + + fake_print_line_first_unlocked(setting, print); + + fll_print_format("%[%QHas too many arguments.%]%r", print.to, print.context, print.prefix, print.context, f_string_eol_s); + + f_file_stream_unlock(print.to); + + return F_none; } #endif // _di_fake_print_error_too_many_arguments_ #ifndef _di_fake_print_error_argument_empty_ - void fake_print_error_argument_empty(fake_make_data_t * const data_make, const f_array_length_t index) { + f_status_t fake_print_error_argument_empty(fake_setting_t * const setting, const fl_print_t print, const f_array_length_t index) { + + if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; + if (!print.to.stream) return F_output_not; - if (data_make->error.verbosity == f_console_verbosity_quiet_e) return; - if (!data_make->main->error.to.stream) return; + f_file_stream_lock(print.to); - f_file_stream_lock(data_make->main->error.to); + fake_print_line_first_unlocked(setting, print); - fl_print_format("%r%[%QThe %]", data_make->main->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); - fl_print_format("%[%un%]", data_make->main->error.to, data_make->error.notable, index, data_make->error.notable); - fl_print_format("%[ argument must not be an empty string.%]%r", data_make->main->error.to, data_make->error.context, data_make->error.context, f_string_eol_s); + fl_print_format("%[%QThe %]", print.to, f_string_eol_s, print.context, print.prefix, print.context); + fl_print_format("%[%un%]", print.to, print.notable, index, print.notable); + fl_print_format("%[ argument must not be an empty string.%]%r", print.to, print.context, print.context, f_string_eol_s); - f_file_stream_unlock(data_make->main->error.to); + f_file_stream_unlock(print.to); + + return F_none; } #endif // _di_fake_print_error_argument_empty_ #ifndef _di_fake_print_message_section_operation_failed_ - void fake_print_message_section_operation_failed(fake_data_t * const data, const fl_print_t print, const f_string_static_t buffer, const f_string_range_t section_name, const f_string_range_t operation_name) { + f_status_t fake_print_message_section_operation_failed(fake_setting_t * const setting, const fl_print_t print, const f_string_static_t buffer, const f_string_range_t section_name, const f_string_range_t operation_name) { - if (print.verbosity == f_console_verbosity_quiet_e || !print.to.stream) return; + if (print.verbosity == f_console_verbosity_quiet_e || !print.to.stream) return F_output_not; f_array_length_t line = 1; f_state_t state = f_state_t_initialize; @@ -745,7 +781,9 @@ extern "C" { f_file_stream_lock(print.to); - fl_print_format("%r%[%QThe section operation '%]", print.to, f_string_eol_s, print.context, print.prefix, print.context); + fake_print_line_first_unlocked(setting, print); + + fl_print_format("%[%QThe section operation '%]", print.to, print.context, print.prefix, print.context); fl_print_format("%[%/Q%]", print.to, print.notable, buffer, operation_name, print.notable); fl_print_format("%[' from section '%]", print.to, print.context, print.context); fl_print_format("%[%/Q%]", print.to, print.notable, buffer, section_name, print.notable); @@ -754,17 +792,21 @@ extern "C" { fl_print_format(" %[failed.%]%r", print.to, print.context, print.context, f_string_eol_s); f_file_stream_unlock(print.to); + + return F_none; } #endif // _di_fake_print_message_section_operation_failed_ #ifndef _di_fake_print_message_section_operation_link_argument_unknown_ - void fake_print_message_section_operation_link_argument_unknown(fake_data_t * const data, const fl_print_t print, const f_string_static_t argument) { + f_status_t fake_print_message_section_operation_link_argument_unknown(fake_setting_t * const setting, const fl_print_t print, const f_string_static_t argument) { - if (print.verbosity == f_console_verbosity_quiet_e || !print.to.stream) return; + if (print.verbosity == f_console_verbosity_quiet_e || !print.to.stream) return F_output_not; f_file_stream_lock(print.to); - fl_print_format("%r%[%QThe argument '%]", print.to, f_string_eol_s, print.context, print.prefix, print.context); + fake_print_line_first_unlocked(setting, print); + + fl_print_format("%[%QThe argument '%]", print.to, print.context, print.prefix, print.context); fl_print_format("%[%Q%]", print.to, print.notable, argument, print.notable); fl_print_format("%[' is not not valid and may only be one of either '%]", print.to, print.context, print.context); fl_print_format("%[%r%]", print.to, print.notable, fake_make_operation_argument_force_s, print.notable); @@ -774,72 +816,83 @@ extern "C" { f_file_stream_unlock(print.to); + return F_none; } #endif // _di_fake_print_message_section_operation_link_argument_unknown_ #ifndef _di_fake_print_message_section_operation_link_point_exists_ - void fake_print_message_section_operation_link_point_exists(fake_data_t * const data, const fl_print_t print, const f_string_static_t argument) { + f_status_t fake_print_message_section_operation_link_point_exists(fake_setting_t * const setting, const fl_print_t print, const f_string_static_t argument) { - if (print.verbosity == f_console_verbosity_quiet_e || !print.to.stream) return; + if (print.verbosity == f_console_verbosity_quiet_e || !print.to.stream) return F_output_not; f_file_stream_lock(print.to); - fl_print_format("%r%[%QThe point file '%]", print.to, f_string_eol_s, print.context, print.prefix, print.context); + fake_print_line_first_unlocked(setting, print); + + fl_print_format("%[%QThe point file '%]", print.to, print.context, print.prefix, print.context); fl_print_format("%[%Q%]", print.to, print.notable, argument, print.notable); fl_print_format("%[' already exists.%]%r", print.to, print.context, print.context, f_string_eol_s); f_file_stream_unlock(print.to); + return F_none; } #endif // _di_fake_print_message_section_operation_link_point_exists_ #ifndef _di_fake_print_message_section_operation_link_target_exists_not_ - void fake_print_message_section_operation_link_target_exists_not(fake_data_t * const data, const fl_print_t print, const f_string_static_t argument) { + f_status_t fake_print_message_section_operation_link_target_exists_not(fake_setting_t * const setting, const fl_print_t print, const f_string_static_t argument) { - if (print.verbosity == f_console_verbosity_quiet_e || !print.to.stream) return; + if (print.verbosity == f_console_verbosity_quiet_e || !print.to.stream) return F_output_not; f_file_stream_lock(print.to); - fl_print_format("%r%[%QThe target file '%]", print.to, f_string_eol_s, print.context, print.prefix, print.context); + fake_print_line_first_unlocked(setting, print); + + fl_print_format("%[%QThe target file '%]", print.to, print.context, print.prefix, print.context); fl_print_format("%[%Q%]", print.to, print.notable, argument, print.notable); fl_print_format("%[' does not exist.%]%r", print.to, print.context, print.context, f_string_eol_s); f_file_stream_unlock(print.to); + return F_none; } #endif // _di_fake_print_message_section_operation_link_target_exists_not_ #ifndef _di_fake_print_message_section_operation_path_outside_ - void fake_print_message_section_operation_path_outside(fake_data_t * const data, const fl_print_t print, const f_status_t status, const f_string_t function, const f_string_static_t path) { + f_status_t fake_print_message_section_operation_path_outside(fake_setting_t * const setting, const fl_print_t print, const f_status_t status, const f_string_t function, const f_string_static_t path) { - if (print.verbosity == f_console_verbosity_quiet_e || !print.to.stream) return; - - f_file_stream_lock(print.to); + if (print.verbosity == f_console_verbosity_quiet_e || !print.to.stream) return F_output_not; if (F_status_set_fine(status) == F_false) { - fake_print_line_first_locked(data->setting, data->main->error); + f_file_stream_lock(print.to); + + fake_print_line_first_unlocked(setting, print); fl_print_format("%[%QThe path '%]", print.to, print.context, print.prefix, print.context); fl_print_format("%[%Q%]", print.to, print.notable, path, print.notable); fl_print_format("%[' is outside the project root.%]%r", print.to, print.context, print.context, f_string_eol_s); + + f_file_stream_unlock(print.to); } else { - fake_print_error_file(data->setting, status, print, function, path, fake_common_file_path_determine_real_s, fll_error_file_type_file_e); + fake_print_error_file(setting, print, status, function, path, fake_common_file_path_determine_real_s, fll_error_file_type_file_e); } - f_file_stream_unlock(print.to); + return F_none; } #endif // _di_fake_print_message_section_operation_path_outside_ #ifndef _di_fake_print_message_section_operation_path_stack_max_ - void fake_print_message_section_operation_path_stack_max(fake_data_t * const data, fl_print_t print, const f_status_t status, const f_string_t function, const f_string_static_t path) { + f_status_t fake_print_message_section_operation_path_stack_max(fake_setting_t * const setting, const fl_print_t print, const f_status_t status, const f_string_t function, const f_string_static_t path) { - if (print.verbosity == f_console_verbosity_quiet_e || !print.to.stream) return; + if (print.verbosity == f_console_verbosity_quiet_e || !print.to.stream) return F_output_not; if (status == F_array_too_large) { f_file_stream_lock(print.to); - fl_print_format("%r%[%QMaximum stack size reached while processing path '%]", print.to, f_string_eol_s, print.context, print.prefix, print.context); + fake_print_line_first_unlocked(setting, print); + + fl_print_format("%[%QMaximum stack size reached while processing path '%]", print.to, print.context, print.prefix, print.context); fl_print_format("%[%Q%]", print.to, print.notable, path, print.notable); fl_print_format("%['", print.to, print.context); @@ -853,15 +906,17 @@ extern "C" { f_file_stream_unlock(print.to); } else { - fake_print_error_file(data->setting, status, print, function, path, fake_common_file_path_change_to_s, fll_error_file_type_directory_e); + fake_print_error_file(setting, print, status, function, path, fake_common_file_path_change_to_s, fll_error_file_type_directory_e); } + + return F_none; } #endif // _di_fake_print_message_section_operation_path_stack_max_ #ifndef _di_fake_print_message_section_operation_stack_max_ - void fake_print_message_section_operation_stack_max(fake_data_t * const data, fl_print_t print, const f_string_static_t buffer, const f_string_range_t section_name, const f_string_range_t operation_name, const f_array_length_t stack_max) { + f_status_t fake_print_message_section_operation_stack_max(fake_setting_t * const setting, const fl_print_t print, const f_string_static_t buffer, const f_string_range_t section_name, const f_string_range_t operation_name, const f_array_length_t stack_max) { - if (print.verbosity == f_console_verbosity_quiet_e || !print.to.stream) return; + if (print.verbosity == f_console_verbosity_quiet_e || !print.to.stream) return F_output_not; f_array_length_t line = 1; f_state_t state = f_state_t_initialize; @@ -870,7 +925,9 @@ extern "C" { f_file_stream_lock(print.to); - fl_print_format("%r%[%QThe section operation '%]", print.to, f_string_eol_s, print.context, print.prefix, print.context); + fake_print_line_first_unlocked(setting, print); + + fl_print_format("%[%QThe section operation '%]", print.to, print.context, print.prefix, print.context); fl_print_format("%[%/Q%]", print.to, print.notable, buffer, operation_name, print.notable); fl_print_format("%[' from section '%]", print.to, print.context, buffer, print.context); fl_print_format("%[%/Q%]", print.to, print.notable, buffer, section_name, print.notable); @@ -881,13 +938,15 @@ extern "C" { fl_print_format(" %[has been reached.%]%r", print.to, print.context, print.context, f_string_eol_s); f_file_stream_unlock(print.to); + + return F_none; } #endif // _di_fake_print_message_section_operation_stack_max_ #ifndef _di_fake_print_message_section_operation_unknown_ - void fake_print_message_section_operation_unknown(fake_data_t * const data, const fl_print_t print, const f_string_static_t buffer, const f_string_range_t section_name, const f_string_range_t operation_name) { + f_status_t fake_print_message_section_operation_unknown(fake_setting_t * const setting, const fl_print_t print, const f_string_static_t buffer, const f_string_range_t section_name, const f_string_range_t operation_name) { - if (print.verbosity == f_console_verbosity_quiet_e || !print.to.stream) return; + if (print.verbosity == f_console_verbosity_quiet_e || !print.to.stream) return F_output_not; f_array_length_t line = 1; f_state_t state = f_state_t_initialize; @@ -896,7 +955,9 @@ extern "C" { f_file_stream_lock(print.to); - fl_print_format("%r%[%QThe section operation '%]", print.to, f_string_eol_s, print.context, print.prefix, print.context); + fake_print_line_first_unlocked(setting, print); + + fl_print_format("%[%QThe section operation '%]", print.to, print.context, print.prefix, print.context); fl_print_format("%[%/Q%]", print.to, print.notable, buffer, operation_name, print.notable); fl_print_format("%[' from section '%]", print.to, print.context, buffer, print.context); fl_print_format("%[%/Q%]", print.to, print.notable, buffer, section_name, print.notable); @@ -905,6 +966,8 @@ extern "C" { fl_print_format(" %[is not a known operation name.%]%r", print.to, print.context, print.context, f_string_eol_s); f_file_stream_unlock(print.to); + + return F_none; } #endif // _di_fake_print_message_section_operation_unknown_ diff --git a/level_3/fake/c/main/print.h b/level_3/fake/c/main/print.h index 89ba49e..5558465 100644 --- a/level_3/fake/c/main/print.h +++ b/level_3/fake/c/main/print.h @@ -19,11 +19,13 @@ extern "C" { * The main program settings. * * This does not alter setting.status. + * @param print + * Designates the how and where to print. * @param status * The status to use. * This is provided, ignoring setting.status, for thread-safety reasons. - * @param print - * Designates the how and where to print. + * @param function + * The function name. * * @return * F_none on success. @@ -32,7 +34,7 @@ extern "C" { * @see fll_error_print() */ #ifndef _di_fake_print_error_ - extern f_status_t fake_print_error(fake_setting_t * const setting, const f_status_t status, const fl_print_t print, const f_string_t function); + extern f_status_t fake_print_error(fake_setting_t * const setting, const fl_print_t print, const f_status_t status, const f_string_t function); #endif // _di_fake_print_error_ /** @@ -42,11 +44,13 @@ extern "C" { * The main program settings. * * This does not alter setting.status. + * @param print + * Designates the how and where to print. * @param status * The status to use. * This is provided, ignoring setting.status, for thread-safety reasons. - * @param print - * Designates the how and where to print. + * @param function + * The function name. * * @return * F_true is returned if the status code has no print message. @@ -56,7 +60,7 @@ extern "C" { * @see fll_error_print() */ #ifndef _di_fake_print_error_fallback_ - extern f_status_t fake_print_error_fallback(fake_setting_t * const setting, const f_status_t status, const fl_print_t print, const f_string_t function); + extern f_status_t fake_print_error_fallback(fake_setting_t * const setting, const fl_print_t print, const f_status_t status, const f_string_t function); #endif // _di_fake_print_error_fallback_ /** @@ -85,7 +89,7 @@ extern "C" { * @see fll_error_file_print() */ #ifndef _di_fake_print_error_file_ - extern f_status_t fake_print_error_file(fake_setting_t * const setting, const f_status_t status, const fl_print_t print, const f_string_t function, const f_string_static_t name, const f_string_static_t operation, const uint8_t type); + extern f_status_t fake_print_error_file(fake_setting_t * const setting, const fl_print_t print, const f_status_t status, const f_string_t function, const f_string_static_t name, const f_string_static_t operation, const uint8_t type); #endif // _di_fake_print_error_file_ /** @@ -95,11 +99,11 @@ extern "C" { * The main program settings. * * This does not alter setting.status. + * @param print + * Designates the how and where to print. * @param status * The status to use. * This is provided, ignoring setting.status, for thread-safety reasons. - * @param print - * Designates the how and where to print. * @param name * The name of the file or directory. * @param operation @@ -115,7 +119,7 @@ extern "C" { * @see fll_error_file_print() */ #ifndef _di_fake_print_error_file_fallback_ - extern f_status_t fake_print_error_file_fallback(fake_setting_t * const setting, const f_status_t status, const fl_print_t print, const f_string_t function, const f_string_static_t name, const f_string_static_t operation, const uint8_t type); + extern f_status_t fake_print_error_file_fallback(fake_setting_t * const setting, const fl_print_t print, const f_status_t status, const f_string_t function, const f_string_static_t name, const f_string_static_t operation, const uint8_t type); #endif // _di_fake_print_error_file_fallback_ /** @@ -359,8 +363,12 @@ extern "C" { /** * Print build operation file error messages. * - * @param data - * The program data. + * @param setting + * The main program settings. + * + * This does not alter setting.status. + * @param print + * Designates the how and where to print. * @param status * The status to use. * This is provided, ignoring data.setting->status, for thread-safety reasons. @@ -389,7 +397,7 @@ extern "C" { * @see fake_print_error_build_operation_file_message(); */ #ifndef _di_fake_print_error_operation_file_ - extern bool fake_print_error_build_operation_file(fake_data_t * const data, const f_status_t status, const f_string_t function, const f_string_static_t operation, const f_string_static_t source, const f_string_static_t destination, const f_string_static_t how, const bool fallback); + extern f_status_t fake_print_error_build_operation_file(fake_setting_t * const setting, const fl_print_t print, const f_status_t status, const f_string_t function, const f_string_static_t operation, const f_string_static_t source, const f_string_static_t destination, const f_string_static_t how, const bool fallback); #endif // _di_fake_print_error_operation_file_ /** @@ -397,8 +405,12 @@ extern "C" { * * This prints the "copy source to destination" part of the message. * - * @param data - * The program data. + * @param setting + * The main program settings. + * + * This does not alter setting.status. + * @param print + * Designates the how and where to print. * @param operation * The operation performed. * @param source @@ -414,14 +426,18 @@ extern "C" { * @see fake_print_error_build_operation_file() */ #ifndef _di_fake_print_error_build_operation_file_message_ - extern void fake_print_error_build_operation_file_message(fake_data_t * const data, const f_string_static_t operation, const f_string_static_t source, const f_string_static_t destination, const f_string_static_t how); + extern void fake_print_error_build_operation_file_message(fake_setting_t * const setting, const fl_print_t print, const f_string_static_t operation, const f_string_static_t source, const f_string_static_t destination, const f_string_static_t how); #endif // _di_fake_print_error_build_operation_file_message_ /** * Print FSS error messages. * - * @param data - * The program data. + * @param setting + * The main program settings. + * + * This does not alter setting.status. + * @param print + * Designates the how and where to print. * @param status * The error status code to report on. * @param function @@ -442,23 +458,31 @@ extern "C" { * @see fl_print_format() */ #ifndef _di_fake_print_error_fss_ - extern bool fake_print_error_fss(fake_data_t * const data, const f_status_t status, const f_string_t function, const f_string_static_t path_file, const f_string_range_t range, const bool fallback); + extern f_status_t fake_print_error_fss(fake_setting_t * const setting, const fl_print_t print, const f_status_t status, const f_string_t function, const f_string_static_t path_file, const f_string_range_t range, const bool fallback); #endif // _di_fake_print_error_fss_ /** * Print an error message for when the parameter is missing its accompanying value. * - * @param data - * The program data. + * @param setting + * The main program settings. + * + * This does not alter setting.status. + * @param print + * Designates the how and where to print. * @param parameter * The parameter name. * + * @return + * F_none on success. + * F_output_not on success, but no printing is performed. + * * @see f_file_stream_lock() * @see f_file_stream_unlock() * @see fl_print_format() */ #ifndef _di_fake_print_error_parameter_missing_value_ - extern void fake_print_error_parameter_missing_value(fake_data_t * const data, const f_string_static_t parameter); + extern f_status_t fake_print_error_parameter_missing_value(fake_setting_t * const setting, const fl_print_t print, const f_string_static_t parameter); #endif // _di_fake_print_error_parameter_missing_value_ /** @@ -469,12 +493,16 @@ extern "C" { * @param parameter * The parameter name. * + * @return + * F_none on success. + * F_output_not on success, but no printing is performed. + * * @see f_file_stream_lock() * @see f_file_stream_unlock() * @see fl_print_format() */ #ifndef _di_fake_print_error_parameter_too_many_ - extern void fake_print_error_parameter_too_many(fake_data_t * const data, const f_string_static_t parameter); + extern f_status_t fake_print_error_parameter_too_many(fake_setting_t * const setting, const fl_print_t print, const f_string_static_t parameter); #endif // _di_fake_print_error_parameter_too_many_ /** @@ -483,10 +511,14 @@ extern "C" { * @param data_make * All make related setting data, including data from the fakefile and the build settings file. * + * @return + * F_none on success. + * F_output_not on success, but no printing is performed. + * * @see fll_print_format() */ #ifndef _di_fake_print_error_requires_more_arguments_ - extern void fake_print_error_requires_more_arguments(fake_make_data_t * const data_make); + extern f_status_t fake_print_error_requires_more_arguments(fake_setting_t * const setting, const fl_print_t print); #endif // _di_fake_print_error_requires_more_arguments_ /** @@ -495,10 +527,14 @@ extern "C" { * @param data_make * All make related setting data, including data from the fakefile and the build settings file. * + * @return + * F_none on success. + * F_output_not on success, but no printing is performed. + * * @see fll_print_format() */ #ifndef _di_fake_print_error_too_many_arguments_ - extern void fake_print_error_too_many_arguments(fake_make_data_t * const data_make); + extern f_status_t fake_print_error_too_many_arguments(fake_setting_t * const setting, const fl_print_t print); #endif // _di_fake_print_error_too_many_arguments_ /** @@ -509,10 +545,14 @@ extern "C" { * @param index * The index of the argument that is an empty string. * + * @return + * F_none on success. + * F_output_not on success, but no printing is performed. + * * @see fll_print_format() */ #ifndef _di_fake_print_error_argument_empty_ - extern void fake_print_error_argument_empty(fake_make_data_t * const data_make, const f_array_length_t index); + extern f_status_t fake_print_error_argument_empty(fake_setting_t * const setting, const fl_print_t print, const f_array_length_t index); #endif // _di_fake_print_error_argument_empty_ /** @@ -529,12 +569,16 @@ extern "C" { * @param operation_name * The range within the buffer representing the operation name within the section. * + * @return + * F_none on success. + * F_output_not on success, but no printing is performed. + * * @see f_file_stream_lock() * @see f_file_stream_unlock() * @see fl_print_format() */ #ifndef _di_fake_print_message_section_operation_failed_ - extern void fake_print_message_section_operation_failed(fake_data_t * const data, const fl_print_t print, const f_string_static_t buffer, const f_string_range_t section_name, const f_string_range_t operation_name); + extern f_status_t fake_print_message_section_operation_failed(fake_setting_t * const setting, const fl_print_t print, const f_string_static_t buffer, const f_string_range_t section_name, const f_string_range_t operation_name); #endif // _di_fake_print_message_section_operation_failed_ /** @@ -547,12 +591,16 @@ extern "C" { * @param argument * The argument that is unknown by the link operation. * + * @return + * F_none on success. + * F_output_not on success, but no printing is performed. + * * @see f_file_stream_lock() * @see f_file_stream_unlock() * @see fl_print_format() */ #ifndef _di_fake_print_message_section_operation_link_argument_unknown_ - extern void fake_print_message_section_operation_link_argument_unknown(fake_data_t * const data, const fl_print_t print, const f_string_static_t argument); + extern f_status_t fake_print_message_section_operation_link_argument_unknown(fake_setting_t * const setting, const fl_print_t print, const f_string_static_t argument); #endif // _di_fake_print_message_section_operation_link_argument_unknown_ /** @@ -565,12 +613,16 @@ extern "C" { * @param argument * The argument representing the point file. * + * @return + * F_none on success. + * F_output_not on success, but no printing is performed. + * * @see f_file_stream_lock() * @see f_file_stream_unlock() * @see fl_print_format() */ #ifndef _di_fake_print_message_section_operation_link_point_exists_ - extern void fake_print_message_section_operation_link_point_exists(fake_data_t * const data, const fl_print_t print, const f_string_static_t argument); + extern f_status_t fake_print_message_section_operation_link_point_exists(fake_setting_t * const setting, const fl_print_t print, const f_string_static_t argument); #endif // _di_fake_print_message_section_operation_link_point_exists_ /** @@ -583,12 +635,16 @@ extern "C" { * @param argument * The argument representing the point file. * + * @return + * F_none on success. + * F_output_not on success, but no printing is performed. + * * @see f_file_stream_lock() * @see f_file_stream_unlock() * @see fl_print_format() */ #ifndef _di_fake_print_message_section_operation_link_target_exists_not_ - extern void fake_print_message_section_operation_link_target_exists_not(fake_data_t * const data, const fl_print_t print, const f_string_static_t argument); + extern f_status_t fake_print_message_section_operation_link_target_exists_not(fake_setting_t * const setting, const fl_print_t print, const f_string_static_t argument); #endif // _di_fake_print_message_section_operation_link_target_exists_not_ /** @@ -605,13 +661,17 @@ extern "C" { * @param path * The path that is outside of the project path. * + * @return + * F_none on success. + * F_output_not on success, but no printing is performed. + * * @see f_file_stream_lock() * @see f_file_stream_unlock() * @see fl_print_format() * @see fll_error_file_print() */ #ifndef _di_fake_print_message_section_operation_path_outside_ - extern void fake_print_message_section_operation_path_outside(fake_data_t * const data, const fl_print_t print, const f_status_t status, const f_string_t function, const f_string_static_t path); + extern f_status_t fake_print_message_section_operation_path_outside(fake_setting_t * const setting, const fl_print_t print, const f_status_t status, const f_string_t function, const f_string_static_t path); #endif // _fake_print_message_section_operation_path_outside_ /** @@ -629,13 +689,17 @@ extern "C" { * @param path * The path to the directory. * + * @return + * F_none on success. + * F_output_not on success, but no printing is performed. + * * @see f_file_stream_lock() * @see f_file_stream_unlock() * @see fl_print_format() * @see fll_error_file_print() */ #ifndef _di_fake_print_message_section_operation_path_stack_max_ - extern void fake_print_message_section_operation_path_stack_max(fake_data_t * const data, fl_print_t error, const f_status_t status, const f_string_t function, const f_string_static_t path); + extern f_status_t fake_print_message_section_operation_path_stack_max(fake_setting_t * const setting, const fl_print_t print, const f_status_t status, const f_string_t function, const f_string_static_t path); #endif // _di_fake_print_message_section_operation_path_stack_max_ /** @@ -654,12 +718,16 @@ extern "C" { * @param stack_max * The max stack depth. * + * @return + * F_none on success. + * F_output_not on success, but no printing is performed. + * * @see f_file_stream_lock() * @see f_file_stream_unlock() * @see fl_print_format() */ #ifndef _di_fake_print_message_section_operation_stack_max_ - extern void fake_print_message_section_operation_stack_max(fake_data_t * const data, const fl_print_t print, const f_string_static_t buffer, const f_string_range_t section_name, const f_string_range_t operation_name, const f_array_length_t stack_max); + extern f_status_t fake_print_message_section_operation_stack_max(fake_setting_t * const setting, const fl_print_t print, const f_string_static_t buffer, const f_string_range_t section_name, const f_string_range_t operation_name, const f_array_length_t stack_max); #endif // _di_fake_print_message_section_operation_stack_max_ /** @@ -676,12 +744,16 @@ extern "C" { * @param operation_name * The range within the buffer representing the operation name within the section. * + * @return + * F_none on success. + * F_output_not on success, but no printing is performed. + * * @see f_file_stream_lock() * @see f_file_stream_unlock() * @see fl_print_format() */ #ifndef _di_fake_print_message_section_operation_unknown_ - extern void fake_print_message_section_operation_unknown(fake_data_t * const data, const fl_print_t print, const f_string_static_t buffer, const f_string_range_t section_name, const f_string_range_t operation_name); + extern f_status_t fake_print_message_section_operation_unknown(fake_setting_t * const setting, const fl_print_t print, const f_string_static_t buffer, const f_string_range_t section_name, const f_string_range_t operation_name); #endif // _di_fake_print_message_section_operation_unknown_ #ifdef __cplusplus diff --git a/level_3/fake/c/main/skeleton.c b/level_3/fake/c/main/skeleton.c index 26fe024..fc96093 100644 --- a/level_3/fake/c/main/skeleton.c +++ b/level_3/fake/c/main/skeleton.c @@ -81,7 +81,7 @@ extern "C" { status = fake_skeleton_operate_directory_create(data, path[i]); if (F_status_is_error(status)) { - fake_print_error(data->setting, status, data->main->error, macro_fake_f(fake_skeleton_operate_directory_create)); + fake_print_error(data->setting, data->main->error, status, macro_fake_f(fake_skeleton_operate_directory_create)); return status; } @@ -168,7 +168,7 @@ extern "C" { f_file_stream_unlock(data->main->error.to); } else { - fake_print_error_file(data->setting, status, data->main->error, macro_fake_f(f_directory_create), path, f_file_operation_create_s, fll_error_file_type_directory_e); + fake_print_error_file(data->setting, data->main->error, status, macro_fake_f(f_directory_create), path, f_file_operation_create_s, fll_error_file_type_directory_e); } return status; @@ -179,7 +179,7 @@ extern "C" { } } else if (F_status_is_error(status)) { - fake_print_error_file(data->setting, status, data->main->error, macro_fake_f(f_directory_exists), path, f_file_operation_create_s, fll_error_file_type_directory_e); + fake_print_error_file(data->setting, data->main->error, status, macro_fake_f(f_directory_exists), path, f_file_operation_create_s, fll_error_file_type_directory_e); return status; } @@ -245,7 +245,7 @@ extern "C" { f_file_stream_unlock(data->main->error.to); } else { - fake_print_error_file(data->setting, status, data->main->error, macro_fake_f(f_file_create), path, f_file_operation_create_s, fll_error_file_type_file_e); + fake_print_error_file(data->setting, data->main->error, status, macro_fake_f(f_file_create), path, f_file_operation_create_s, fll_error_file_type_file_e); } return status; @@ -264,7 +264,7 @@ extern "C" { status = f_file_open(path, 0, &file); if (F_status_is_error(status)) { - fake_print_error_file(data->setting, status, data->main->error, macro_fake_f(f_file_open), path, fake_common_file_populate_pre_s, fll_error_file_type_file_e); + fake_print_error_file(data->setting, data->main->error, status, macro_fake_f(f_file_open), path, fake_common_file_populate_pre_s, fll_error_file_type_file_e); return status; } @@ -272,7 +272,7 @@ extern "C" { status = f_file_write(file, content, 0); if (F_status_is_error(status)) { - fake_print_error_file(data->setting, status, data->main->error, macro_fake_f(f_file_write), path, fake_common_file_populate_pre_s, fll_error_file_type_file_e); + fake_print_error_file(data->setting, data->main->error, status, macro_fake_f(f_file_write), path, fake_common_file_populate_pre_s, fll_error_file_type_file_e); f_file_stream_flush(file); f_file_stream_close(&file); @@ -289,7 +289,7 @@ extern "C" { } } else if (F_status_is_error(status)) { - fake_print_error_file(data->setting, status, data->main->error, macro_fake_f(f_file_is), path, f_file_operation_create_s, fll_error_file_type_file_e); + fake_print_error_file(data->setting, data->main->error, status, macro_fake_f(f_file_is), path, f_file_operation_create_s, fll_error_file_type_file_e); return status; } -- 1.8.3.1