From 7d7c4a4909da7ad048cb28641cb5a7226615cdf3 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Sat, 22 Oct 2022 09:50:44 -0500 Subject: [PATCH] Refactor: Change FILE * to f_file_t when printing. Due to the by-design restrictions, the f_file_t cannot be defined in f_file project and be used in another level_0 project. The f_print project cannot depend on f_file project and cannot use f_file_t. I spent some time considering this problem. The f_type project is a special case core project that othe level_0 projects can depend on it. This project also provides types and f_file_t is a type. Move f_file_t's definition into f_file project. I want to avoid always pulling in file related headers. The the f_file_t is defined in a separate file "type_file.h". The "type_file.h" must be manually included when needed. With type_file.h in place, the print projects all include "type_file.h" and utilize f_file_t. The "FILE *" stream is now replaced wth f_file_t. This simplifies the code, makes it easier to use, and makes it easier to maintain. For example, "fll_print_dynamic_raw(f_string_eol_s, main->output.to.stream);" can not be "fll_print_dynamic_raw(f_string_eol_s, main->output.to);". I made this decision in the middle of a "Progress" change process. There may be code missed and tests may need to be updated at some point after the "Progress" change process is complete. --- build/level_0/settings | 2 +- build/monolithic/settings | 2 +- level_0/f_conversion/c/conversion.c | 14 +- level_0/f_conversion/c/conversion.h | 13 +- level_0/f_conversion/c/private-conversion.c | 70 +-- level_0/f_conversion/c/private-conversion.h | 34 +- level_0/f_file/c/file.h | 1 + level_0/f_file/c/file/common.h | 52 -- level_0/f_print/c/print.c | 280 ++++----- level_0/f_print/c/print.h | 286 ++++++---- level_0/f_print/c/print/to.c | 344 +++++------ level_0/f_print/c/print/to.h | 246 ++++---- level_0/f_print/c/private-print.c | 256 ++++----- level_0/f_print/c/private-print.h | 84 +-- level_0/f_type/c/type.h | 2 + level_0/f_type/c/type_file.h | 83 +++ level_0/f_type/data/build/settings | 2 +- level_1/fl_print/c/print.c | 332 +++++------ level_1/fl_print/c/print.h | 79 +-- level_1/fl_print/c/private-print.c | 218 +++---- level_1/fl_print/c/private-print.h | 54 +- level_2/fll_error/c/error.c | 310 +++++----- level_2/fll_error/c/private-error.c | 72 +-- level_2/fll_print/c/print.c | 634 ++++++++++----------- level_2/fll_print/c/print.h | 480 ++++++++-------- level_2/fll_program/c/private-program.c | 4 +- level_2/fll_program/c/program/print.c | 130 ++--- level_3/byte_dump/c/byte_dump.c | 106 ++-- level_3/byte_dump/c/print.c | 40 +- level_3/byte_dump/c/private-byte_dump.c | 288 +++++----- level_3/control/c/control.c | 4 +- level_3/control/c/print.c | 34 +- level_3/control/c/private-control.c | 6 +- level_3/control/c/private-print.c | 190 +++--- level_3/controller/c/controller.c | 44 +- .../controller/c/controller/private-controller.c | 78 +-- level_3/controller/c/entry/private-entry.c | 294 +++++----- level_3/controller/c/entry/private-entry_print.c | 86 +-- level_3/controller/c/print.c | 26 +- level_3/controller/c/rule/private-rule.c | 510 ++++++++--------- level_3/controller/c/rule/private-rule_print.c | 188 +++--- level_3/controller/c/thread/private-thread.c | 8 +- level_3/controller/c/thread/private-thread_entry.c | 18 +- level_3/fake/c/fake.c | 22 +- level_3/fake/c/print.c | 50 +- level_3/fake/c/private-build-library.c | 12 +- level_3/fake/c/private-build-load.c | 244 ++++---- level_3/fake/c/private-build-object.c | 4 +- level_3/fake/c/private-build-objects.c | 24 +- level_3/fake/c/private-build-program.c | 4 +- level_3/fake/c/private-build-skeleton.c | 4 +- level_3/fake/c/private-build.c | 36 +- level_3/fake/c/private-clean.c | 12 +- level_3/fake/c/private-fake.c | 140 ++--- level_3/fake/c/private-make-load_fakefile.c | 54 +- level_3/fake/c/private-make-operate.c | 56 +- level_3/fake/c/private-make-operate_process.c | 30 +- level_3/fake/c/private-make-operate_process_type.c | 116 ++-- .../fake/c/private-make-operate_validate_type.c | 334 +++++------ level_3/fake/c/private-make.c | 50 +- level_3/fake/c/private-print.c | 362 ++++++------ level_3/fake/c/private-skeleton.c | 50 +- level_3/firewall/c/firewall.c | 32 +- level_3/firewall/c/print.c | 28 +- level_3/firewall/c/private-common.c | 24 +- level_3/firewall/c/private-firewall.c | 70 +-- .../fss_basic_list_read/c/fss_basic_list_read.c | 22 +- level_3/fss_basic_list_read/c/print.c | 116 ++-- level_3/fss_basic_list_read/c/private-print.c | 30 +- level_3/fss_basic_list_read/c/private-read.c | 38 +- .../fss_basic_list_write/c/fss_basic_list_write.c | 90 +-- level_3/fss_basic_list_write/c/print.c | 38 +- level_3/fss_basic_list_write/c/private-write.c | 34 +- level_3/fss_basic_read/c/fss_basic_read.c | 22 +- level_3/fss_basic_read/c/print.c | 116 ++-- level_3/fss_basic_read/c/private-print.c | 36 +- level_3/fss_basic_read/c/private-read.c | 30 +- level_3/fss_basic_write/c/fss_basic_write.c | 88 +-- level_3/fss_basic_write/c/print.c | 38 +- level_3/fss_basic_write/c/private-write.c | 34 +- .../c/fss_embedded_list_read.c | 54 +- level_3/fss_embedded_list_read/c/print.c | 114 ++-- level_3/fss_embedded_list_read/c/private-print.c | 18 +- level_3/fss_embedded_list_read/c/private-read.c | 64 +-- .../c/fss_embedded_list_write.c | 88 +-- level_3/fss_embedded_list_write/c/print.c | 44 +- level_3/fss_embedded_list_write/c/private-write.c | 34 +- .../c/fss_extended_list_read.c | 22 +- level_3/fss_extended_list_read/c/print.c | 116 ++-- level_3/fss_extended_list_read/c/private-print.c | 34 +- level_3/fss_extended_list_read/c/private-read.c | 38 +- .../c/fss_extended_list_write.c | 88 +-- level_3/fss_extended_list_write/c/print.c | 44 +- level_3/fss_extended_list_write/c/private-write.c | 34 +- level_3/fss_extended_read/c/fss_extended_read.c | 22 +- level_3/fss_extended_read/c/print.c | 116 ++-- level_3/fss_extended_read/c/private-print.c | 44 +- level_3/fss_extended_read/c/private-read.c | 38 +- level_3/fss_extended_write/c/fss_extended_write.c | 98 ++-- level_3/fss_extended_write/c/print.c | 38 +- level_3/fss_extended_write/c/private-write.c | 32 +- level_3/fss_identify/c/fss_identify.c | 32 +- level_3/fss_identify/c/print.c | 42 +- level_3/fss_identify/c/private-print.c | 8 +- level_3/fss_payload_read/c/fss_payload_read.c | 22 +- level_3/fss_payload_read/c/print.c | 132 ++--- level_3/fss_payload_read/c/private-print.c | 68 +-- level_3/fss_payload_read/c/private-read.c | 50 +- level_3/fss_payload_write/c/fss_payload_write.c | 84 +-- level_3/fss_payload_write/c/print.c | 38 +- level_3/fss_payload_write/c/private-write.c | 34 +- level_3/fss_status_code/c/print.c | 34 +- .../fss_status_code/c/private-fss_status_code.c | 30 +- level_3/iki_read/c/print.c | 88 +-- level_3/iki_read/c/private-print.c | 38 +- level_3/iki_read/c/private-read.c | 18 +- level_3/iki_write/c/iki_write.c | 4 +- level_3/iki_write/c/print.c | 44 +- level_3/iki_write/c/private-write.c | 2 +- level_3/status_code/c/print.c | 34 +- level_3/status_code/c/private-status_code.c | 30 +- level_3/utf8/c/print.c | 144 ++--- level_3/utf8/c/utf8.c | 16 +- 123 files changed, 5322 insertions(+), 5344 deletions(-) create mode 100644 level_0/f_type/c/type_file.h diff --git a/build/level_0/settings b/build/level_0/settings index 4315075..bab059e 100644 --- a/build/level_0/settings +++ b/build/level_0/settings @@ -71,7 +71,7 @@ build_sources_headers socket.h socket/common.h build_sources_headers status.h build_sources_headers status_string.h build_sources_headers string.h string/common.h string/dynamic.h string/map.h string/map_multi.h string/quantity.h string/range.h string/static.h string/triple.h -build_sources_headers type.h +build_sources_headers type.h type_file.h build_sources_headers type_array.h type_array/common.h build_sources_headers type_array/array_length.h type_array/cell.h type_array/fll_id.h type_array/int8.h type_array/int16.h type_array/int32.h type_array/int64.h type_array/int128.h type_array/state.h type_array/status.h type_array/uint8.h type_array/uint16.h type_array/uint32.h type_array/uint64.h type_array/uint128.h build_sources_headers utf.h utf/common.h utf/convert.h utf/dynamic.h utf/is.h utf/is_character.h utf/map.h utf/map_multi.h utf/static.h utf/string.h utf/triple.h diff --git a/build/monolithic/settings b/build/monolithic/settings index d2142d2..a65aa91 100644 --- a/build/monolithic/settings +++ b/build/monolithic/settings @@ -95,7 +95,7 @@ build_sources_headers level_0/socket.h level_0/socket/common.h build_sources_headers level_0/status.h build_sources_headers level_0/status_string.h build_sources_headers level_0/string.h level_0/string/common.h level_0/string/dynamic.h level_0/string/map.h level_0/string/map_multi.h level_0/string/quantity.h level_0/string/range.h level_0/string/static.h level_0/string/triple.h -build_sources_headers level_0/type.h +build_sources_headers level_0/type.h level_0/type_file.h build_sources_headers level_0/type_array.h level_0/type_array/common.h build_sources_headers level_0/type_array/array_length.h level_0/type_array/cell.h level_0/type_array/fll_id.h level_0/type_array/int8.h level_0/type_array/int16.h level_0/type_array/int32.h level_0/type_array/int64.h level_0/type_array/int128.h level_0/type_array/state.h level_0/type_array/status.h level_0/type_array/uint8.h level_0/type_array/uint16.h level_0/type_array/uint32.h level_0/type_array/uint64.h level_0/type_array/uint128.h build_sources_headers level_0/utf.h level_0/utf/common.h level_0/utf/convert.h level_0/utf/dynamic.h level_0/utf/is.h level_0/utf/is_character.h level_0/utf/map.h level_0/utf/map_multi.h level_0/utf/static.h level_0/utf/string.h level_0/utf/triple.h diff --git a/level_0/f_conversion/c/conversion.c b/level_0/f_conversion/c/conversion.c index 562be90..4623a68 100644 --- a/level_0/f_conversion/c/conversion.c +++ b/level_0/f_conversion/c/conversion.c @@ -171,17 +171,17 @@ extern "C" { #endif // _di_f_conversion_character_to_octal_ #ifndef _di_f_conversion_number_signed_print_ - f_status_t f_conversion_number_signed_print(const f_number_signed_t number, const f_conversion_data_t data, FILE * const stream) { + f_status_t f_conversion_number_signed_print(const f_number_signed_t number, const f_conversion_data_t data, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); if (data.base < 2 || data.base > 16) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ if (number < 0) { - return private_f_conversion_digit_to_file((f_number_unsigned_t) (0 - number), data, 1, stream); + return private_f_conversion_digit_to_file((f_number_unsigned_t) (0 - number), data, 1, file); } - return private_f_conversion_digit_to_file((f_number_unsigned_t) number, data, number ? 0 : 2, stream); + return private_f_conversion_digit_to_file((f_number_unsigned_t) number, data, number ? 0 : 2, file); } #endif // _di_f_conversion_number_signed_print_ @@ -201,13 +201,13 @@ extern "C" { #endif // _di_f_conversion_number_signed_to_string_ #ifndef _di_f_conversion_number_unsigned_print_ - f_status_t f_conversion_number_unsigned_print(const f_number_unsigned_t number, const f_conversion_data_t data, FILE * const stream) { + f_status_t f_conversion_number_unsigned_print(const f_number_unsigned_t number, const f_conversion_data_t data, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); if (data.base < 2 || data.base > 16) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ - return private_f_conversion_digit_to_file(number, data, number ? 0 : 2, stream); + return private_f_conversion_digit_to_file(number, data, number ? 0 : 2, file); } #endif // _di_f_conversion_number_unsigned_print_ diff --git a/level_0/f_conversion/c/conversion.h b/level_0/f_conversion/c/conversion.h index b53465c..4de1e37 100644 --- a/level_0/f_conversion/c/conversion.h +++ b/level_0/f_conversion/c/conversion.h @@ -17,6 +17,7 @@ // FLL-0 includes. #include +#include #include #include #include @@ -236,8 +237,8 @@ extern "C" { * The number to convert. * @param data * The settings designating how to perform the conversion. - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none if the number was converted to a string. @@ -254,7 +255,7 @@ extern "C" { * @see fwrite_unlocked() */ #ifndef _di_f_conversion_number_signed_print_ - extern f_status_t f_conversion_number_signed_print(const f_number_signed_t number, const f_conversion_data_t data, FILE * const stream); + extern f_status_t f_conversion_number_signed_print(const f_number_signed_t number, const f_conversion_data_t data, const f_file_t file); #endif // _di_f_conversion_number_signed_print_ /** @@ -301,8 +302,8 @@ extern "C" { * To represent a negative number, assign the flag f_conversion_data_flag_is_negative to data.flags. * @param data * The settings designating how to perform the conversion. - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none if the number was converted to a string. @@ -319,7 +320,7 @@ extern "C" { * @see fwrite_unlocked() */ #ifndef _di_f_conversion_number_unsigned_print_ - extern f_status_t f_conversion_number_unsigned_print(const f_number_unsigned_t number, const f_conversion_data_t data, FILE * const stream); + extern f_status_t f_conversion_number_unsigned_print(const f_number_unsigned_t number, const f_conversion_data_t data, const f_file_t file); #endif // _di_f_conversion_number_unsigned_print_ /** diff --git a/level_0/f_conversion/c/private-conversion.c b/level_0/f_conversion/c/private-conversion.c index f35bd20..a0bc5ae 100644 --- a/level_0/f_conversion/c/private-conversion.c +++ b/level_0/f_conversion/c/private-conversion.c @@ -6,7 +6,7 @@ extern "C" { #endif #if !defined(_di_f_conversion_number_signed_print_) || !defined(_di_f_conversion_number_unsigned_print_) - f_status_t private_f_conversion_digit_to_file(const f_number_unsigned_t number, const f_conversion_data_t data, const uint8_t negative_or_zero, FILE * const stream) { + f_status_t private_f_conversion_digit_to_file(const f_number_unsigned_t number, const f_conversion_data_t data, const uint8_t negative_or_zero, const f_file_t file) { int digits = 0; @@ -22,60 +22,60 @@ extern "C" { if (data.width > digits) { if (data.flag & F_conversion_data_flag_zeros_leading_d) { - if (F_status_is_error(private_f_conversion_digit_to_file_prefix(data, negative_or_zero, stream))) { + if (F_status_is_error(private_f_conversion_digit_to_file_prefix(data, negative_or_zero, file))) { return F_status_set_error(F_output); } - if (F_status_is_error(private_f_conversion_digit_to_file_pad(data, f_string_ascii_0_s, data.width - digits, stream))) { + if (F_status_is_error(private_f_conversion_digit_to_file_pad(data, f_string_ascii_0_s, data.width - digits, file))) { return F_status_set_error(F_output); } - if (F_status_is_error(private_f_conversion_digit_to_file_number(data, number, digits, stream))) { + if (F_status_is_error(private_f_conversion_digit_to_file_number(data, number, digits, file))) { return F_status_set_error(F_output); } } else if (number) { - if (F_status_is_error(private_f_conversion_digit_to_file_pad(data, f_string_ascii_space_s, data.width - digits, stream))) { + if (F_status_is_error(private_f_conversion_digit_to_file_pad(data, f_string_ascii_space_s, data.width - digits, file))) { return F_status_set_error(F_output); } - if (F_status_is_error(private_f_conversion_digit_to_file_prefix(data, negative_or_zero, stream))) { + if (F_status_is_error(private_f_conversion_digit_to_file_prefix(data, negative_or_zero, file))) { return F_status_set_error(F_output); } - if (F_status_is_error(private_f_conversion_digit_to_file_number(data, number, digits, stream))) { + if (F_status_is_error(private_f_conversion_digit_to_file_number(data, number, digits, file))) { return F_status_set_error(F_output); } } else { - if (F_status_is_error(private_f_conversion_digit_to_file_pad(data, f_string_ascii_space_s, data.width - digits, stream))) { + if (F_status_is_error(private_f_conversion_digit_to_file_pad(data, f_string_ascii_space_s, data.width - digits, file))) { return F_status_set_error(F_output); } - if (F_status_is_error(private_f_conversion_digit_to_file_prefix(data, negative_or_zero, stream))) { + if (F_status_is_error(private_f_conversion_digit_to_file_prefix(data, negative_or_zero, file))) { return F_status_set_error(F_output); } - if (F_status_is_error(private_f_conversion_digit_to_file_number(data, number, digits, stream))) { + if (F_status_is_error(private_f_conversion_digit_to_file_number(data, number, digits, file))) { return F_status_set_error(F_output); } } } else if (number) { - if (F_status_is_error(private_f_conversion_digit_to_file_prefix(data, negative_or_zero, stream))) { + if (F_status_is_error(private_f_conversion_digit_to_file_prefix(data, negative_or_zero, file))) { return F_status_set_error(F_output); } - if (F_status_is_error(private_f_conversion_digit_to_file_number(data, number, digits, stream))) { + if (F_status_is_error(private_f_conversion_digit_to_file_number(data, number, digits, file))) { return F_status_set_error(F_output); } } else if (data.width) { - if (F_status_is_error(private_f_conversion_digit_to_file_prefix(data, negative_or_zero, stream))) { + if (F_status_is_error(private_f_conversion_digit_to_file_prefix(data, negative_or_zero, file))) { return F_status_set_error(F_output); } - if (F_status_is_error(private_f_conversion_digit_to_file_number(data, number, digits, stream))) { + if (F_status_is_error(private_f_conversion_digit_to_file_number(data, number, digits, file))) { return F_status_set_error(F_output); } } @@ -85,7 +85,7 @@ extern "C" { #endif // !defined(_di_f_conversion_number_signed_print_) || !defined(_di_f_conversion_number_unsigned_print_) #if !defined(_di_f_conversion_number_signed_print_) || !defined(_di_f_conversion_number_unsigned_print_) - f_status_t private_f_conversion_digit_to_file_number(const f_conversion_data_t data, f_number_unsigned_t number, int digits, FILE * const stream) { + f_status_t private_f_conversion_digit_to_file_number(const f_conversion_data_t data, f_number_unsigned_t number, int digits, const f_file_t file) { f_number_unsigned_t current = 0; f_number_unsigned_t power = 1; @@ -109,15 +109,15 @@ extern "C" { if (work & number) { while (current < f_string_ascii_1_s.used) { - current += fwrite_unlocked(f_string_ascii_1_s.string + current, 1, f_string_ascii_1_s.used - current, stream); - if (ferror_unlocked(stream)) return F_status_set_error(F_output); + current += fwrite_unlocked(f_string_ascii_1_s.string + current, 1, f_string_ascii_1_s.used - current, file.stream); + if (ferror_unlocked(file.stream)) return F_status_set_error(F_output); } // while } else { while (current < f_string_ascii_0_s.used) { - current += fwrite_unlocked(f_string_ascii_0_s.string + current, 1, f_string_ascii_0_s.used - current, stream); - if (ferror_unlocked(stream)) return F_status_set_error(F_output); + current += fwrite_unlocked(f_string_ascii_0_s.string + current, 1, f_string_ascii_0_s.used - current, file.stream); + if (ferror_unlocked(file.stream)) return F_status_set_error(F_output); } // while } @@ -166,8 +166,8 @@ extern "C" { while (count < sizeof(f_char_t)) { - count += fwrite_unlocked(&c, 1, sizeof(f_char_t), stream); - if (ferror_unlocked(stream)) return F_status_set_error(F_output); + count += fwrite_unlocked(&c, 1, sizeof(f_char_t), file.stream); + if (ferror_unlocked(file.stream)) return F_status_set_error(F_output); } // while } // for @@ -176,7 +176,7 @@ extern "C" { #endif // !defined(_di_f_conversion_number_signed_print_) || !defined(_di_f_conversion_number_unsigned_print_) #if !defined(_di_f_conversion_number_signed_print_) || !defined(_di_f_conversion_number_unsigned_print_) - f_status_t private_f_conversion_digit_to_file_pad(const f_conversion_data_t data, const f_string_static_t pad, int total, FILE * const stream) { + f_status_t private_f_conversion_digit_to_file_pad(const f_conversion_data_t data, const f_string_static_t pad, int total, const f_file_t file) { for (int count; total; --total) { @@ -184,8 +184,8 @@ extern "C" { while (count < pad.used) { - count += fwrite_unlocked(pad.string + count, 1, pad.used - count, stream); - if (ferror_unlocked(stream)) return F_status_set_error(F_output); + count += fwrite_unlocked(pad.string + count, 1, pad.used - count, file.stream); + if (ferror_unlocked(file.stream)) return F_status_set_error(F_output); } // while } // for @@ -194,7 +194,7 @@ extern "C" { #endif // !defined(_di_f_conversion_number_signed_print_) || !defined(_di_f_conversion_number_unsigned_print_) #if !defined(_di_f_conversion_number_signed_print_) || !defined(_di_f_conversion_number_unsigned_print_) - f_status_t private_f_conversion_digit_to_file_prefix(const f_conversion_data_t data, const uint8_t negative_or_zero, FILE * const stream) { + f_status_t private_f_conversion_digit_to_file_prefix(const f_conversion_data_t data, const uint8_t negative_or_zero, const f_file_t file) { if (negative_or_zero) { if (negative_or_zero == 1) { @@ -203,8 +203,8 @@ extern "C" { while (count < f_string_ascii_minus_s.used) { - count += fwrite_unlocked(f_string_ascii_minus_s.string + count, 1, f_string_ascii_minus_s.used - count, stream); - if (ferror_unlocked(stream)) return F_status_set_error(F_output); + count += fwrite_unlocked(f_string_ascii_minus_s.string + count, 1, f_string_ascii_minus_s.used - count, file.stream); + if (ferror_unlocked(file.stream)) return F_status_set_error(F_output); } // while } } @@ -214,8 +214,8 @@ extern "C" { while (count < f_string_ascii_plus_s.used) { - count += fwrite_unlocked(f_string_ascii_plus_s.string + count, 1, f_string_ascii_plus_s.used - count, stream); - if (ferror_unlocked(stream)) return F_status_set_error(F_output); + count += fwrite_unlocked(f_string_ascii_plus_s.string + count, 1, f_string_ascii_plus_s.used - count, file.stream); + if (ferror_unlocked(file.stream)) return F_status_set_error(F_output); } // while } else if (data.flag & F_conversion_data_flag_sign_pad_d) { @@ -223,8 +223,8 @@ extern "C" { while (count < f_string_ascii_space_s.used) { - count += fwrite_unlocked(f_string_ascii_space_s.string + count, 1, f_string_ascii_space_s.used - count, stream); - if (ferror_unlocked(stream)) return F_status_set_error(F_output); + count += fwrite_unlocked(f_string_ascii_space_s.string + count, 1, f_string_ascii_space_s.used - count, file.stream); + if (ferror_unlocked(file.stream)) return F_status_set_error(F_output); } // while } @@ -234,8 +234,8 @@ extern "C" { while (count < f_string_ascii_0_s.used) { - count += fwrite_unlocked(f_string_ascii_0_s.string + count, 1, f_string_ascii_0_s.used - count, stream); - if (ferror_unlocked(stream)) return F_status_set_error(F_output); + count += fwrite_unlocked(f_string_ascii_0_s.string + count, 1, f_string_ascii_0_s.used - count, file.stream); + if (ferror_unlocked(file.stream)) return F_status_set_error(F_output); } // while } @@ -271,8 +271,8 @@ extern "C" { while (count < character->used) { - count += fwrite_unlocked(character->string + count, 1, character->used - count, stream); - if (ferror_unlocked(stream)) return F_status_set_error(F_output); + count += fwrite_unlocked(character->string + count, 1, character->used - count, file.stream); + if (ferror_unlocked(file.stream)) return F_status_set_error(F_output); } // while } } diff --git a/level_0/f_conversion/c/private-conversion.h b/level_0/f_conversion/c/private-conversion.h index 5d035fd..54842d3 100644 --- a/level_0/f_conversion/c/private-conversion.h +++ b/level_0/f_conversion/c/private-conversion.h @@ -28,8 +28,8 @@ extern "C" { * Set this to 0 to represent a positive number. * Set this to 1 to represent a negative number. * Set this to 2 to represent the number 0; - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -48,7 +48,7 @@ extern "C" { * @see private_f_conversion_digit_to_file_prefix() */ #if !defined(_di_f_conversion_number_signed_print_) || !defined(_di_f_conversion_number_unsigned_print_) - extern f_status_t private_f_conversion_digit_to_file(const f_number_unsigned_t number, const f_conversion_data_t data, const uint8_t negative_or_zero, FILE * const stream) F_attribute_visibility_internal_d; + extern f_status_t private_f_conversion_digit_to_file(const f_number_unsigned_t number, const f_conversion_data_t data, const uint8_t negative_or_zero, const f_file_t file) F_attribute_visibility_internal_d; #endif // !defined(_di_f_conversion_number_signed_print_) || !defined(_di_f_conversion_number_unsigned_print_) /** @@ -62,8 +62,8 @@ extern "C" { * To represent a negative number, assign the flag f_conversion_data_flag_is_negative to data.flags. * @param digits * The number of digits the number is represented by (based on the base unit). - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -78,7 +78,7 @@ extern "C" { * @see f_conversion_number_unsigned_print() */ #if !defined(_di_f_conversion_number_signed_print_) || !defined(_di_f_conversion_number_unsigned_print_) - extern f_status_t private_f_conversion_digit_to_file_number(const f_conversion_data_t data, f_number_unsigned_t number, int digits, FILE * const stream) F_attribute_visibility_internal_d; + extern f_status_t private_f_conversion_digit_to_file_number(const f_conversion_data_t data, f_number_unsigned_t number, int digits, const f_file_t file) F_attribute_visibility_internal_d; #endif // !defined(_di_f_conversion_number_signed_print_) || !defined(_di_f_conversion_number_unsigned_print_) /** @@ -91,8 +91,8 @@ extern "C" { * Should be either f_string_ascii_space_s or f_string_ascii_0_s. * @param total * The total number of times to print the pad. - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -107,7 +107,7 @@ extern "C" { * @see f_conversion_number_unsigned_print() */ #if !defined(_di_f_conversion_number_signed_print_) || !defined(_di_f_conversion_number_unsigned_print_) - extern f_status_t private_f_conversion_digit_to_file_pad(const f_conversion_data_t data, const f_string_static_t pad, int total, FILE * const stream) F_attribute_visibility_internal_d; + extern f_status_t private_f_conversion_digit_to_file_pad(const f_conversion_data_t data, const f_string_static_t pad, int total, const f_file_t file) F_attribute_visibility_internal_d; #endif // !defined(_di_f_conversion_number_signed_print_) || !defined(_di_f_conversion_number_unsigned_print_) /** @@ -121,8 +121,8 @@ extern "C" { * Set this to 0 to represent a positive number. * Set this to 1 to represent a negative number. * Set this to 2 to represent the number 0; - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -137,7 +137,7 @@ extern "C" { * @see f_conversion_number_unsigned_print() */ #if !defined(_di_f_conversion_number_signed_print_) || !defined(_di_f_conversion_number_unsigned_print_) - extern f_status_t private_f_conversion_digit_to_file_prefix(const f_conversion_data_t data, const uint8_t negative_or_zero, FILE * const stream) F_attribute_visibility_internal_d; + extern f_status_t private_f_conversion_digit_to_file_prefix(const f_conversion_data_t data, const uint8_t negative_or_zero, const f_file_t file) F_attribute_visibility_internal_d; #endif // !defined(_di_f_conversion_number_signed_print_) || !defined(_di_f_conversion_number_unsigned_print_) /** @@ -153,8 +153,8 @@ extern "C" { * Set this to 0 to represent a positive number. * Set this to 1 to represent a negative number. * Set this to 2 to represent the number 0; - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -173,7 +173,7 @@ extern "C" { #endif // !defined(_di_f_conversion_number_signed_to_string_) || !defined(_di_f_conversion_number_unsigned_to_string_) /** - * Helper function for printing the number to the stream file. + * Helper function for printing the number to the file. * * @param data * The settings designating how to perform the conversion. @@ -183,8 +183,8 @@ extern "C" { * To represent a negative number, assign the flag f_conversion_data_flag_is_negative to data.flags. * @param digits * The number of digits the number is represented by (based on the base unit). - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @see f_conversion_number_signed_to_string() * @see f_conversion_number_unsigned_to_string() diff --git a/level_0/f_file/c/file.h b/level_0/f_file/c/file.h index 37c9850..e8536c7 100644 --- a/level_0/f_file/c/file.h +++ b/level_0/f_file/c/file.h @@ -29,6 +29,7 @@ // FLL-0 includes. #include +#include #include #include #include diff --git a/level_0/f_file/c/file/common.h b/level_0/f_file/c/file/common.h index b1883fe..bce9be7 100644 --- a/level_0/f_file/c/file/common.h +++ b/level_0/f_file/c/file/common.h @@ -17,18 +17,6 @@ extern "C" { #endif /** - * Provide file defaults. - * - * F_file_default_*: - * - read_size: Default read size in bytes. - * - write_size: Default write size in bytes. - */ -#ifndef _di_f_file_defaults_ - #define F_file_default_read_size_d 8192 - #define F_file_default_write_size_d 8192 -#endif // _di_f_file_defaults_ - -/** * Provide macros for file-seek operations. * * The fseek() function parameters can be confusing, so provide a hopefully more readibly code via these macros. @@ -168,46 +156,6 @@ extern "C" { #endif // _di_f_file_open_modes_ /** - * Commonly used file related properties. - * - * stream: File stream. - * id: File descriptor, with a value of -1 represents a closed file. - * flag: Flags used for opening the file. - * size_read: The default number of 1-byte characters to read at a time and is often used for the read buffer size. - * size_write: The default number of 1-byte characters to read at a time and is often used for the write buffer size. - */ -#ifndef _di_f_file_t_ - typedef struct { - FILE *stream; - int id; - int flag; - size_t size_read; - size_t size_write; - } f_file_t; - - #define f_file_t_initialize { 0, -1, F_file_flag_read_only_d, F_file_default_read_size_d, F_file_default_write_size_d } - - #define macro_f_file_t_initialize(stream, id, flag, read_size, write_size) { stream, id, flag, read_size, write_size } - #define macro_f_file_t_initialize2(stream, id, flag) { stream, id, flag, F_file_default_read_size_d, F_file_default_write_size_d } - #define macro_f_file_t_initialize_id(id) { 0, id, F_file_flag_read_only_d, F_file_default_read_size_d, F_file_default_write_size_d } - #define macro_f_file_t_initialize_stream(stream) { stream, -1, F_file_flag_read_only_d, F_file_default_read_size_d, F_file_default_write_size_d } - - #define macro_f_file_t_clear(file) \ - file.stream = 0; \ - file.id = -1; \ - file.flag = 0; \ - file.size_read = 0; \ - file.size_write = 0; - - #define macro_f_file_t_reset(file) \ - file.stream = 0; \ - file.id = -1; \ - file.flag = F_file_flag_read_only_d; \ - file.size_read = F_file_default_read_size_d; \ - file.size_write = F_file_default_write_size_d; -#endif // _di_f_file_t_ - -/** * File AT_* define related functionality. */ #ifndef _di_f_file_at_ diff --git a/level_0/f_print/c/print.c b/level_0/f_print/c/print.c index a9df658..ee56117 100644 --- a/level_0/f_print/c/print.c +++ b/level_0/f_print/c/print.c @@ -18,13 +18,13 @@ extern "C" { * @see fwrite_unlocked() * @see ferror_unlocked() */ -static inline f_status_t private_inline_f_print_write_unlocked(const f_string_t string, const f_array_length_t total, FILE * const stream) { +static inline f_status_t private_inline_f_print_write_unlocked(const f_string_t string, const f_array_length_t total, const f_file_t file) { f_array_length_t count = 0; do { - count += fwrite_unlocked(string, sizeof(f_char_t), total - count, stream); - if (ferror_unlocked(stream)) return F_status_set_error(F_output); + count += fwrite_unlocked(string, sizeof(f_char_t), total - count, file.stream); + if (ferror_unlocked(file.stream)) return F_status_set_error(F_output); } while (count < total); @@ -32,57 +32,57 @@ static inline f_status_t private_inline_f_print_write_unlocked(const f_string_t } #ifndef _di_f_print_ - f_status_t f_print(const f_string_t string, const f_array_length_t length, FILE * const stream) { + f_status_t f_print(const f_string_t string, const f_array_length_t length, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ if (!length || !string) return F_data_not; - return private_f_print(string, length, stream); + return private_f_print(string, length, file); } #endif // _di_f_print_ #ifndef _di_f_print_character_ - f_status_t f_print_character(const f_char_t character, FILE * const stream) { + f_status_t f_print_character(const f_char_t character, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ - clearerr_unlocked(stream); + clearerr_unlocked(file.stream); - return private_inline_f_print_write_unlocked((const f_string_t) &character, 1, stream); + return private_inline_f_print_write_unlocked((const f_string_t) &character, 1, file); } #endif // _di_f_print_character_ #ifndef _di_f_print_character_safely_ - f_status_t f_print_character_safely(const f_char_t character, FILE * const stream) { + f_status_t f_print_character_safely(const f_char_t character, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ - clearerr_unlocked(stream); + clearerr_unlocked(file.stream); if (character == 0x7f) { - return private_inline_f_print_write_unlocked(f_print_sequence_delete_s.string, f_print_sequence_delete_s.used, stream); + return private_inline_f_print_write_unlocked(f_print_sequence_delete_s.string, f_print_sequence_delete_s.used, file); } if (macro_f_utf_byte_width_is(character) == 1) { - return private_inline_f_print_write_unlocked(f_print_sequence_unknown_s.string, f_print_sequence_unknown_s.used, stream); + return private_inline_f_print_write_unlocked(f_print_sequence_unknown_s.string, f_print_sequence_unknown_s.used, file); } if (macro_f_utf_byte_width_is(character) > 1) { - const f_status_t status = private_inline_f_print_write_unlocked((const f_string_t) &character, 1, stream); + const f_status_t status = private_inline_f_print_write_unlocked((const f_string_t) &character, 1, file); if (F_status_is_error(status)) return status; return F_utf; } if (character > 0x1f) { - return private_inline_f_print_write_unlocked((const f_string_t) &character, 1, stream); + return private_inline_f_print_write_unlocked((const f_string_t) &character, 1, file); } - return private_inline_f_print_write_unlocked(f_print_sequence_set_control_s[(unsigned int) character].string, f_print_sequence_set_control_s[(unsigned int) character].used, stream); + return private_inline_f_print_write_unlocked(f_print_sequence_set_control_s[(unsigned int) character].string, f_print_sequence_set_control_s[(unsigned int) character].used, file); } #endif // _di_f_print_character_safely_ @@ -94,23 +94,23 @@ static inline f_status_t private_inline_f_print_write_unlocked(const f_string_t #endif // _di_f_print_character_safely_get_ #ifndef _di_f_print_dynamic_ - f_status_t f_print_dynamic(const f_string_static_t buffer, FILE * const stream) { + f_status_t f_print_dynamic(const f_string_static_t buffer, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ if (!buffer.used || !buffer.string) { return F_data_not; } - return private_f_print(buffer.string, buffer.used, stream); + return private_f_print(buffer.string, buffer.used, file); } #endif // _di_f_print_dynamic_ #ifndef _di_f_print_dynamic_partial_ - f_status_t f_print_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, FILE * const stream) { + f_status_t f_print_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ if (!buffer.used || range.start > range.stop || range.start >= buffer.used || !buffer.string) { @@ -123,14 +123,14 @@ static inline f_status_t private_inline_f_print_write_unlocked(const f_string_t length = buffer.used - range.start; } - return private_f_print(buffer.string + range.start, length, stream); + return private_f_print(buffer.string + range.start, length, file); } #endif // _di_f_print_dynamic_partial_ #ifndef _di_f_print_dynamic_partial_raw_ - f_status_t f_print_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, FILE * const stream) { + f_status_t f_print_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ if (!buffer.used || range.start > range.stop || range.start >= buffer.used || !buffer.string) { @@ -143,14 +143,14 @@ static inline f_status_t private_inline_f_print_write_unlocked(const f_string_t length = buffer.used - range.start; } - return private_f_print_raw(buffer.string + range.start, length, stream); + return private_f_print_raw(buffer.string + range.start, length, file); } #endif // _di_f_print_dynamic_partial_raw_ #ifndef _di_f_print_dynamic_partial_raw_safely_ - f_status_t f_print_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, FILE * const stream) { + f_status_t f_print_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ if (!buffer.used || range.start > range.stop || range.start >= buffer.used || !buffer.string) { @@ -163,14 +163,14 @@ static inline f_status_t private_inline_f_print_write_unlocked(const f_string_t length = buffer.used - range.start; } - return private_f_print_raw_safely(buffer.string + range.start, length, stream); + return private_f_print_raw_safely(buffer.string + range.start, length, file); } #endif // _di_f_print_dynamic_partial_raw_safely_ #ifndef _di_f_print_dynamic_partial_safely_ - f_status_t f_print_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, FILE * const stream) { + f_status_t f_print_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ if (!buffer.used || range.start > range.stop || range.start >= buffer.used || !buffer.string) { @@ -183,74 +183,74 @@ static inline f_status_t private_inline_f_print_write_unlocked(const f_string_t length = buffer.used - range.start; } - return private_f_print_safely(buffer.string + range.start, length, stream); + return private_f_print_safely(buffer.string + range.start, length, file); } #endif // _di_f_print_dynamic_partial_safely_ #ifndef _di_f_print_dynamic_raw_ - f_status_t f_print_dynamic_raw(const f_string_static_t buffer, FILE * const stream) { + f_status_t f_print_dynamic_raw(const f_string_static_t buffer, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ if (!buffer.used || !buffer.string) return F_data_not; - return private_f_print_raw(buffer.string, buffer.used, stream); + return private_f_print_raw(buffer.string, buffer.used, file); } #endif // _di_f_print_dynamic_raw_ #ifndef _di_f_print_dynamic_raw_safely_ - f_status_t f_print_dynamic_raw_safely(const f_string_static_t buffer, FILE * const stream) { + f_status_t f_print_dynamic_raw_safely(const f_string_static_t buffer, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ if (!buffer.used || !buffer.string) return F_data_not; - return private_f_print_raw_safely(buffer.string, buffer.used, stream); + return private_f_print_raw_safely(buffer.string, buffer.used, file); } #endif // _di_f_print_dynamic_raw_safely_ #ifndef _di_f_print_dynamic_safely_ - f_status_t f_print_dynamic_safely(const f_string_static_t buffer, FILE * const stream) { + f_status_t f_print_dynamic_safely(const f_string_static_t buffer, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ if (!buffer.used || !buffer.string) return F_data_not; - return private_f_print_safely(buffer.string, buffer.used, stream); + return private_f_print_safely(buffer.string, buffer.used, file); } #endif // _di_f_print_dynamic_safely_ #ifndef _di_f_print_except_ - f_status_t f_print_except(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE * const stream) { + f_status_t f_print_except(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ if (!length || !string) return F_data_not; - return private_f_print_except(string, offset, length, except, stream); + return private_f_print_except(string, offset, length, except, file); } #endif // _di_f_print_except_ #ifndef _di_f_print_except_dynamic_ - f_status_t f_print_except_dynamic(const f_string_static_t buffer, const f_array_lengths_t except, FILE * const stream) { + f_status_t f_print_except_dynamic(const f_string_static_t buffer, const f_array_lengths_t except, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ if (!buffer.used || !buffer.string) return F_data_not; - return private_f_print_except(buffer.string, 0, buffer.used, except, stream); + return private_f_print_except(buffer.string, 0, buffer.used, except, file); } #endif // _di_f_print_except_dynamic_ #ifndef _di_f_print_except_dynamic_partial_ - f_status_t f_print_except_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE * const stream) { + f_status_t f_print_except_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ if (!buffer.used || range.start > range.stop || range.start >= buffer.used || !buffer.string) { @@ -263,14 +263,14 @@ static inline f_status_t private_inline_f_print_write_unlocked(const f_string_t length = buffer.used - range.start; } - return private_f_print_except(buffer.string, range.start, range.start + length, except, stream); + return private_f_print_except(buffer.string, range.start, range.start + length, except, file); } #endif // _di_f_print_except_dynamic_partial_ #ifndef _di_f_print_except_dynamic_partial_raw_ - f_status_t f_print_except_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE * const stream) { + f_status_t f_print_except_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ if (!buffer.used || range.start > range.stop || range.start >= buffer.used || !buffer.string) { @@ -283,14 +283,14 @@ static inline f_status_t private_inline_f_print_write_unlocked(const f_string_t length = buffer.used - range.start; } - return private_f_print_except_raw(buffer.string, range.start, range.start + length, except, stream); + return private_f_print_except_raw(buffer.string, range.start, range.start + length, except, file); } #endif // _di_f_print_except_dynamic_partial_raw_ #ifndef _di_f_print_except_dynamic_partial_raw_safely_ - f_status_t f_print_except_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE * const stream) { + f_status_t f_print_except_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ if (!buffer.used || range.start > range.stop || range.start >= buffer.used || !buffer.string) { @@ -303,14 +303,14 @@ static inline f_status_t private_inline_f_print_write_unlocked(const f_string_t length = buffer.used - range.start; } - return private_f_print_except_raw_safely(buffer.string, range.start, range.start + length, except, stream); + return private_f_print_except_raw_safely(buffer.string, range.start, range.start + length, except, file); } #endif // _di_f_print_except_dynamic_partial_raw_safely_ #ifndef _di_f_print_except_dynamic_partial_safely_ - f_status_t f_print_except_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE * const stream) { + f_status_t f_print_except_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ if (!buffer.used || range.start > range.stop || range.start >= buffer.used || !buffer.string) { @@ -323,76 +323,76 @@ static inline f_status_t private_inline_f_print_write_unlocked(const f_string_t length = buffer.used - range.start; } - return private_f_print_except_safely(buffer.string, range.start, range.start + length, except, stream); + return private_f_print_except_safely(buffer.string, range.start, range.start + length, except, file); } #endif // _di_f_print_except_dynamic_partial_safely_ #ifndef _di_f_print_except_dynamic_raw_ - f_status_t f_print_except_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except, FILE * const stream) { + f_status_t f_print_except_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ if (!buffer.used || !buffer.string) return F_data_not; - return private_f_print_except_raw(buffer.string, 0, buffer.used, except, stream); + return private_f_print_except_raw(buffer.string, 0, buffer.used, except, file); } #endif // _di_f_print_except_dynamic_raw_ #ifndef _di_f_print_except_dynamic_raw_safely_ - f_status_t f_print_except_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except, FILE * const stream) { + f_status_t f_print_except_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ if (!buffer.used || !buffer.string) return F_data_not; - return private_f_print_except_raw_safely(buffer.string, 0, buffer.used, except, stream); + return private_f_print_except_raw_safely(buffer.string, 0, buffer.used, except, file); } #endif // _di_f_print_except_dynamic_raw_safely_ #ifndef _di_f_print_except_dynamic_safely_ - f_status_t f_print_except_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except, FILE * const stream) { + f_status_t f_print_except_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ if (!buffer.used || !buffer.string) return F_data_not; - return private_f_print_except_safely(buffer.string, 0, buffer.used, except, stream); + return private_f_print_except_safely(buffer.string, 0, buffer.used, except, file); } #endif // _di_f_print_except_dynamic_safely_ #ifndef _di_f_print_except_in_ - f_status_t f_print_except_in(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream) { + f_status_t f_print_except_in(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ if (!length || !string) { return F_data_not; } - return private_f_print_except_in(string, offset, length, except_at, except_in, stream); + return private_f_print_except_in(string, offset, length, except_at, except_in, file); } #endif // _di_f_print_except_in_ #ifndef _di_f_print_except_in_dynamic_ - f_status_t f_print_except_in_dynamic(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream) { + f_status_t f_print_except_in_dynamic(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ if (!buffer.used || !buffer.string) return F_data_not; - return private_f_print_except_in(buffer.string, 0, buffer.used, except_at, except_in, stream); + return private_f_print_except_in(buffer.string, 0, buffer.used, except_at, except_in, file); } #endif // _di_f_print_except_in_dynamic_ #ifndef _di_f_print_except_in_dynamic_partial_ - f_status_t f_print_except_in_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream) { + f_status_t f_print_except_in_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ if (!buffer.used || range.start > range.stop || range.start >= buffer.used || !buffer.string) { @@ -405,14 +405,14 @@ static inline f_status_t private_inline_f_print_write_unlocked(const f_string_t length = buffer.used - range.start; } - return private_f_print_except_in(buffer.string, range.start, range.start + length, except_at, except_in, stream); + return private_f_print_except_in(buffer.string, range.start, range.start + length, except_at, except_in, file); } #endif // _di_f_print_except_in_dynamic_partial_ #ifndef _di_f_print_except_in_dynamic_partial_raw_ - f_status_t f_print_except_in_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream) { + f_status_t f_print_except_in_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ if (!buffer.used || range.start > range.stop || range.start >= buffer.used || !buffer.string) { @@ -425,14 +425,14 @@ static inline f_status_t private_inline_f_print_write_unlocked(const f_string_t length = buffer.used - range.start; } - return private_f_print_except_in_raw(buffer.string, range.start, range.start + length, except_at, except_in, stream); + return private_f_print_except_in_raw(buffer.string, range.start, range.start + length, except_at, except_in, file); } #endif // _di_f_print_except_in_dynamic_partial_raw_ #ifndef _di_f_print_except_in_dynamic_partial_raw_safely_ - f_status_t f_print_except_in_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream) { + f_status_t f_print_except_in_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ if (!buffer.used || range.start > range.stop || range.start >= buffer.used || !buffer.string) { @@ -445,14 +445,14 @@ static inline f_status_t private_inline_f_print_write_unlocked(const f_string_t length = buffer.used - range.start; } - return private_f_print_except_in_raw_safely(buffer.string, range.start, range.start + length, except_at, except_in, stream); + return private_f_print_except_in_raw_safely(buffer.string, range.start, range.start + length, except_at, except_in, file); } #endif // _di_f_print_except_in_dynamic_partial_raw_safely_ #ifndef _di_f_print_except_in_dynamic_partial_safely_ - f_status_t f_print_except_in_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream) { + f_status_t f_print_except_in_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ if (!buffer.used || range.start > range.stop || range.start >= buffer.used || !buffer.string) { @@ -465,162 +465,162 @@ static inline f_status_t private_inline_f_print_write_unlocked(const f_string_t length = buffer.used - range.start; } - return private_f_print_except_in_safely(buffer.string, range.start, range.start + length, except_at, except_in, stream); + return private_f_print_except_in_safely(buffer.string, range.start, range.start + length, except_at, except_in, file); } #endif // _di_f_print_except_in_dynamic_partial_safely_ #ifndef _di_f_print_except_in_dynamic_raw_ - f_status_t f_print_except_in_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream) { + f_status_t f_print_except_in_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ if (!buffer.used || !buffer.string) return F_data_not; - return private_f_print_except_in_raw(buffer.string, 0, buffer.used, except_at, except_in, stream); + return private_f_print_except_in_raw(buffer.string, 0, buffer.used, except_at, except_in, file); } #endif // _di_f_print_except_in_dynamic_raw_ #ifndef _di_f_print_except_in_dynamic_raw_safely_ - f_status_t f_print_except_in_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream) { + f_status_t f_print_except_in_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ if (!buffer.used || !buffer.string) return F_data_not; - return private_f_print_except_in_raw_safely(buffer.string, 0, buffer.used, except_at, except_in, stream); + return private_f_print_except_in_raw_safely(buffer.string, 0, buffer.used, except_at, except_in, file); } #endif // _di_f_print_except_in_dynamic_raw_safely_ #ifndef _di_f_print_except_in_dynamic_safely_ - f_status_t f_print_except_in_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream) { + f_status_t f_print_except_in_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ if (!buffer.used || !buffer.string) return F_data_not; - return private_f_print_except_in_safely(buffer.string, 0, buffer.used, except_at, except_in, stream); + return private_f_print_except_in_safely(buffer.string, 0, buffer.used, except_at, except_in, file); } #endif // _di_f_print_except_in_dynamic_safely_ #ifndef _di_f_print_except_in_raw_ - f_status_t f_print_except_in_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream) { + f_status_t f_print_except_in_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ if (!length || !string) { return F_data_not; } - return private_f_print_except_in_raw(string, offset, length, except_at, except_in, stream); + return private_f_print_except_in_raw(string, offset, length, except_at, except_in, file); } #endif // _di_f_print_except_in_raw_ #ifndef _di_f_print_except_in_raw_safely_ - f_status_t f_print_except_in_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream) { + f_status_t f_print_except_in_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ if (!length || !string) { return F_data_not; } - return private_f_print_except_in_raw_safely(string, offset, length, except_at, except_in, stream); + return private_f_print_except_in_raw_safely(string, offset, length, except_at, except_in, file); } #endif // _di_f_print_except_in_raw_safely_ #ifndef _di_f_print_except_in_safely_ - f_status_t f_print_except_in_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream) { + f_status_t f_print_except_in_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ if (!length || !string) { return F_data_not; } - return private_f_print_except_in_safely(string, offset, length, except_at, except_in, stream); + return private_f_print_except_in_safely(string, offset, length, except_at, except_in, file); } #endif // _di_f_print_except_in_safely_ #ifndef _di_f_print_except_raw_ - f_status_t f_print_except_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE * const stream) { + f_status_t f_print_except_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ if (!length || !string) { return F_data_not; } - return private_f_print_except_raw(string, offset, length, except, stream); + return private_f_print_except_raw(string, offset, length, except, file); } #endif // _di_f_print_except_raw_ #ifndef _di_f_print_except_raw_safely_ - f_status_t f_print_except_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE * const stream) { + f_status_t f_print_except_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ if (!length || !string) { return F_data_not; } - return private_f_print_except_raw_safely(string, offset, length, except, stream); + return private_f_print_except_raw_safely(string, offset, length, except, file); } #endif // _di_f_print_except_raw_safely_ #ifndef _di_f_print_except_safely_ - f_status_t f_print_except_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE * const stream) { + f_status_t f_print_except_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ if (!length || !string) { return F_data_not; } - return private_f_print_except_safely(string, offset, length, except, stream); + return private_f_print_except_safely(string, offset, length, except, file); } #endif // _di_f_print_except_safely_ #ifndef _di_f_print_raw_ - f_status_t f_print_raw(const f_string_t string, const f_array_length_t length, FILE * const stream) { + f_status_t f_print_raw(const f_string_t string, const f_array_length_t length, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ if (!length || !string) { return F_data_not; } - return private_f_print_raw(string, length, stream); + return private_f_print_raw(string, length, file); } #endif // _di_f_print_raw_ #ifndef _di_f_print_raw_safely_ - f_status_t f_print_raw_safely(const f_string_t string, const f_array_length_t length, FILE * const stream) { + f_status_t f_print_raw_safely(const f_string_t string, const f_array_length_t length, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ if (!length || !string) { return F_data_not; } - return private_f_print_raw_safely(string, length, stream); + return private_f_print_raw_safely(string, length, file); } #endif // _di_f_print_raw_safely_ #ifndef _di_f_print_raw_terminated_ - f_status_t f_print_raw_terminated(const f_string_t string, FILE * const stream) { + f_status_t f_print_raw_terminated(const f_string_t string, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ if (!string) { @@ -628,21 +628,21 @@ static inline f_status_t private_inline_f_print_write_unlocked(const f_string_t } // The f_print_raw_terminated() and f_print_terminated() are functionality identical due to being NULL terminated. - return private_f_print_terminated(string, stream); + return private_f_print_terminated(string, file); } #endif // _di_f_print_raw_terminated_ #ifndef _di_f_print_safely_ - f_status_t f_print_safely(const f_string_t string, const f_array_length_t length, FILE * const stream) { + f_status_t f_print_safely(const f_string_t string, const f_array_length_t length, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ if (!length || !string) { return F_data_not; } - return private_f_print_safely(string, length, stream); + return private_f_print_safely(string, length, file); } #endif // _di_f_print_safely_ @@ -654,9 +654,9 @@ static inline f_status_t private_inline_f_print_write_unlocked(const f_string_t #endif // _di_f_print_safely_get_ #ifndef _di_f_print_safely_terminated_ - f_status_t f_print_safely_terminated(const f_string_t string, FILE * const stream) { + f_status_t f_print_safely_terminated(const f_string_t string, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ if (!string) { @@ -671,7 +671,7 @@ static inline f_status_t private_inline_f_print_write_unlocked(const f_string_t uint8_t width = 0; - clearerr_unlocked(stream); + clearerr_unlocked(file.stream); for (register f_array_length_t i = 0; string[i]; ) { @@ -707,8 +707,8 @@ static inline f_status_t private_inline_f_print_write_unlocked(const f_string_t count = 0; do { - count += fwrite_unlocked(string + start + count, 1, total - count, stream); - if (ferror_unlocked(stream)) return F_status_set_error(F_output); + count += fwrite_unlocked(string + start + count, 1, total - count, file.stream); + if (ferror_unlocked(file.stream)) return F_status_set_error(F_output); } while (count < total); @@ -718,8 +718,8 @@ static inline f_status_t private_inline_f_print_write_unlocked(const f_string_t count = 0; do { - count += fwrite_unlocked(safe.string + count, 1, safe.used - count, stream); - if (ferror_unlocked(stream)) return F_status_set_error(F_output); + count += fwrite_unlocked(safe.string + count, 1, safe.used - count, file.stream); + if (ferror_unlocked(file.stream)) return F_status_set_error(F_output); } while (count < safe.used); @@ -733,8 +733,8 @@ static inline f_status_t private_inline_f_print_write_unlocked(const f_string_t count = 0; do { - count += fwrite_unlocked(string + start + count, 1, total - count, stream); - if (ferror_unlocked(stream)) return F_status_set_error(F_output); + count += fwrite_unlocked(string + start + count, 1, total - count, file.stream); + if (ferror_unlocked(file.stream)) return F_status_set_error(F_output); } while (count < total); @@ -753,8 +753,8 @@ static inline f_status_t private_inline_f_print_write_unlocked(const f_string_t count = 0; do { - count += fwrite_unlocked(string + start + count, 1, total - count, stream); - if (ferror_unlocked(stream)) return F_status_set_error(F_output); + count += fwrite_unlocked(string + start + count, 1, total - count, file.stream); + if (ferror_unlocked(file.stream)) return F_status_set_error(F_output); } while (count < total); } @@ -764,16 +764,16 @@ static inline f_status_t private_inline_f_print_write_unlocked(const f_string_t #endif // _di_f_print_safely_terminated_ #ifndef _di_f_print_terminated_ - f_status_t f_print_terminated(const f_string_t string, FILE * const stream) { + f_status_t f_print_terminated(const f_string_t string, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ if (!string) { return F_data_not; } - return private_f_print_terminated(string, stream); + return private_f_print_terminated(string, file); } #endif // _di_f_print_terminated_ diff --git a/level_0/f_print/c/print.h b/level_0/f_print/c/print.h index 7da6860..888afa7 100644 --- a/level_0/f_print/c/print.h +++ b/level_0/f_print/c/print.h @@ -23,6 +23,7 @@ // FLL-0 includes. #include +#include #include #include #include @@ -49,8 +50,9 @@ extern "C" { * The string to output. * @param length * The total number of characters to print. - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -64,7 +66,7 @@ extern "C" { * @see fwrite_unlocked() */ #ifndef _di_f_print_ - extern f_status_t f_print(const f_string_t string, const f_array_length_t length, FILE * const stream); + extern f_status_t f_print(const f_string_t string, const f_array_length_t length, const f_file_t file); #endif // _di_f_print_ /** @@ -76,8 +78,9 @@ extern "C" { * * @param character * The character to verify as safe or not and then print. - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -91,7 +94,7 @@ extern "C" { * @see fwrite_unlocked() */ #ifndef _di_f_print_character_ - extern f_status_t f_print_character(const f_char_t character, FILE * const stream); + extern f_status_t f_print_character(const f_char_t character, const f_file_t file); #endif // _di_f_print_character_ /** @@ -110,8 +113,9 @@ extern "C" { * * @param character * The character to verify as safe or not and then print. - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -126,7 +130,7 @@ extern "C" { * @see fwrite_unlocked() */ #ifndef _di_f_print_character_safely_ - extern f_status_t f_print_character_safely(const f_char_t character, FILE * const stream); + extern f_status_t f_print_character_safely(const f_char_t character, const f_file_t file); #endif // _di_f_print_character_safely_ /** @@ -164,8 +168,9 @@ extern "C" { * * @param buffer * The string to output. - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -179,7 +184,7 @@ extern "C" { * @see fwrite_unlocked() */ #ifndef _di_f_print_dynamic_ - extern f_status_t f_print_dynamic(const f_string_static_t buffer, FILE * const stream); + extern f_status_t f_print_dynamic(const f_string_static_t buffer, const f_file_t file); #endif // _di_f_print_dynamic_ /** @@ -195,8 +200,9 @@ extern "C" { * The string to output. * @param range * The range within the provided string to print. - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -210,7 +216,7 @@ extern "C" { * @see fwrite_unlocked() */ #ifndef _di_f_print_dynamic_partial_ - extern f_status_t f_print_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, FILE * const stream); + extern f_status_t f_print_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_file_t file); #endif // _di_f_print_dynamic_partial_ /** @@ -228,8 +234,9 @@ extern "C" { * The string to output. * @param range * The range within the provided string to print. - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -243,7 +250,7 @@ extern "C" { * @see fwrite_unlocked() */ #ifndef _di_f_print_dynamic_partial_raw_ - extern f_status_t f_print_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, FILE * const stream); + extern f_status_t f_print_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_file_t file); #endif // _di_f_print_dynamic_partial_raw_ /** @@ -264,8 +271,9 @@ extern "C" { * The string to output. * @param range * The range within the provided string to print. - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -281,7 +289,7 @@ extern "C" { * @see f_utf_is_valid() */ #ifndef _di_f_print_dynamic_partial_raw_safely_ - extern f_status_t f_print_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, FILE * const stream); + extern f_status_t f_print_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_file_t file); #endif // _di_f_print_dynamic_partial_raw_safely_ /** @@ -300,8 +308,9 @@ extern "C" { * The string to output. * @param range * The range within the provided string to print. - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -317,7 +326,7 @@ extern "C" { * @see f_utf_is_valid() */ #ifndef _di_f_print_dynamic_partial_safely_ - extern f_status_t f_print_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, FILE * const stream); + extern f_status_t f_print_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_file_t file); #endif // _di_f_print_dynamic_partial_safely_ /** @@ -333,8 +342,9 @@ extern "C" { * * @param buffer * The string to output. - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -348,7 +358,7 @@ extern "C" { * @see fwrite_unlocked() */ #ifndef _di_f_print_dynamic_raw_ - extern f_status_t f_print_dynamic_raw(const f_string_static_t buffer, FILE * const stream); + extern f_status_t f_print_dynamic_raw(const f_string_static_t buffer, const f_file_t file); #endif // _di_f_print_dynamic_raw_ /** @@ -367,8 +377,9 @@ extern "C" { * * @param buffer * The string to output. - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -384,7 +395,7 @@ extern "C" { * @see f_utf_is_valid() */ #ifndef _di_f_print_dynamic_raw_safely_ - extern f_status_t f_print_dynamic_raw_safely(const f_string_static_t buffer, FILE * const stream); + extern f_status_t f_print_dynamic_raw_safely(const f_string_static_t buffer, const f_file_t file); #endif // _di_f_print_dynamic_raw_safely_ /** @@ -401,8 +412,9 @@ extern "C" { * * @param buffer * The string to output. - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -418,7 +430,7 @@ extern "C" { * @see f_utf_is_valid() */ #ifndef _di_f_print_dynamic_safely_ - extern f_status_t f_print_dynamic_safely(const f_string_static_t buffer, FILE * const stream); + extern f_status_t f_print_dynamic_safely(const f_string_static_t buffer, const f_file_t file); #endif // _di_f_print_dynamic_safely_ /** @@ -442,8 +454,9 @@ extern "C" { * @param except * An array of locations within the given string to not print. * The array of locations is required/assumed to be in linear order. - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -457,7 +470,7 @@ extern "C" { * @see fwrite_unlocked() */ #ifndef _di_f_print_except_ - extern f_status_t f_print_except(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE * const stream); + extern f_status_t f_print_except(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, const f_file_t file); #endif // _di_f_print_except_ /** @@ -475,8 +488,9 @@ extern "C" { * @param except * An array of locations within the given string to not print. * The array of locations is required/assumed to be in linear order. - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -490,7 +504,7 @@ extern "C" { * @see fwrite_unlocked() */ #ifndef _di_f_print_except_dynamic_ - extern f_status_t f_print_except_dynamic(const f_string_static_t buffer, const f_array_lengths_t except, FILE * const stream); + extern f_status_t f_print_except_dynamic(const f_string_static_t buffer, const f_array_lengths_t except, const f_file_t file); #endif // _di_f_print_except_dynamic_ /** @@ -510,8 +524,9 @@ extern "C" { * @param except * An array of locations within the given string to not print. * The array of locations is required/assumed to be in linear order. - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -525,7 +540,7 @@ extern "C" { * @see fwrite_unlocked() */ #ifndef _di_f_print_dynamic_except_partial_ - extern f_status_t f_print_except_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE * const stream); + extern f_status_t f_print_except_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, const f_file_t file); #endif // _di_f_print_except_dynamic_partial_ /** @@ -547,8 +562,9 @@ extern "C" { * @param except * An array of locations within the given string to not print. * The array of locations is required/assumed to be in linear order. - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -562,7 +578,7 @@ extern "C" { * @see fwrite_unlocked() */ #ifndef _di_f_print_dynamic_except_partial_raw_ - extern f_status_t f_print_except_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE * const stream); + extern f_status_t f_print_except_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, const f_file_t file); #endif // _di_f_print_except_dynamic_partial_raw_ /** @@ -587,8 +603,9 @@ extern "C" { * @param except * An array of locations within the given string to not print. * The array of locations is required/assumed to be in linear order. - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -604,7 +621,7 @@ extern "C" { * @see f_utf_is_valid() */ #ifndef _di_f_print_dynamic_except_partial_raw_safely_ - extern f_status_t f_print_except_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE * const stream); + extern f_status_t f_print_except_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, const f_file_t file); #endif // _di_f_print_except_dynamic_partial_raw_safely_ /** @@ -627,8 +644,9 @@ extern "C" { * @param except * An array of locations within the given string to not print. * The array of locations is required/assumed to be in linear order. - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -644,7 +662,7 @@ extern "C" { * @see f_utf_is_valid() */ #ifndef _di_f_print_dynamic_except_partial_safely_ - extern f_status_t f_print_except_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE * const stream); + extern f_status_t f_print_except_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, const f_file_t file); #endif // _di_f_print_except_dynamic_partial_safely_ /** @@ -664,8 +682,9 @@ extern "C" { * @param except * An array of locations within the given string to not print. * The array of locations is required/assumed to be in linear order. - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -679,7 +698,7 @@ extern "C" { * @see fwrite_unlocked() */ #ifndef _di_f_print_except_dynamic_raw_ - extern f_status_t f_print_except_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except, FILE * const stream); + extern f_status_t f_print_except_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except, const f_file_t file); #endif // _di_f_print_except_dynamic_raw_ /** @@ -702,8 +721,9 @@ extern "C" { * @param except * An array of locations within the given string to not print. * The array of locations is required/assumed to be in linear order. - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -719,7 +739,7 @@ extern "C" { * @see f_utf_is_valid() */ #ifndef _di_f_print_except_dynamic_raw_safely_ - extern f_status_t f_print_except_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except, FILE * const stream); + extern f_status_t f_print_except_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except, const f_file_t file); #endif // _di_f_print_except_dynamic_raw_safely_ /** @@ -740,8 +760,9 @@ extern "C" { * @param except * An array of locations within the given string to not print. * The array of locations is required/assumed to be in linear order. - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -757,7 +778,7 @@ extern "C" { * @see f_utf_is_valid() */ #ifndef _di_f_print_except_dynamic_safely_ - extern f_status_t f_print_except_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except, FILE * const stream); + extern f_status_t f_print_except_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except, const f_file_t file); #endif // _di_f_print_except_dynamic_safely_ /** @@ -785,8 +806,9 @@ extern "C" { * @param except_in * An array of ranges within the string to not print. * The array of ranges is required/assumed to be in linear order. - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -800,7 +822,7 @@ extern "C" { * @see fwrite_unlocked() */ #ifndef _di_f_print_except_in_ - extern f_status_t f_print_except_in(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream); + extern f_status_t f_print_except_in(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file); #endif // _di_f_print_except_in_ /** @@ -822,8 +844,9 @@ extern "C" { * @param except_in * An array of ranges within the string to not print. * The array of ranges is required/assumed to be in linear order. - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -837,7 +860,7 @@ extern "C" { * @see fwrite_unlocked() */ #ifndef _di_f_print_except_in_dynamic_ - extern f_status_t f_print_except_in_dynamic(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream); + extern f_status_t f_print_except_in_dynamic(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file); #endif // _di_f_print_except_in_dynamic_ /** @@ -861,8 +884,9 @@ extern "C" { * @param except_in * An array of ranges within the string to not print. * The array of ranges is required/assumed to be in linear order. - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -876,7 +900,7 @@ extern "C" { * @see fwrite_unlocked() */ #ifndef _di_f_print_dynamic_except_partial_ - extern f_status_t f_print_except_in_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream); + extern f_status_t f_print_except_in_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file); #endif // _di_f_print_except_in_dynamic_partial_ /** @@ -902,8 +926,9 @@ extern "C" { * @param except_in * An array of ranges within the string to not print. * The array of ranges is required/assumed to be in linear order. - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -917,7 +942,7 @@ extern "C" { * @see fwrite_unlocked() */ #ifndef _di_f_print_dynamic_except_partial_raw_ - extern f_status_t f_print_except_in_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream); + extern f_status_t f_print_except_in_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file); #endif // _di_f_print_except_in_dynamic_partial_raw_ /** @@ -943,8 +968,9 @@ extern "C" { * @param except_in * An array of ranges within the string to not print. * The array of ranges is required/assumed to be in linear order. - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -960,7 +986,7 @@ extern "C" { * @see f_utf_is_valid() */ #ifndef _di_f_print_dynamic_except_partial_raw_safely_ - extern f_status_t f_print_except_in_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream); + extern f_status_t f_print_except_in_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file); #endif // _di_f_print_except_in_dynamic_partial_raw_safely_ /** @@ -984,8 +1010,9 @@ extern "C" { * @param except_in * An array of ranges within the string to not print. * The array of ranges is required/assumed to be in linear order. - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -1001,7 +1028,7 @@ extern "C" { * @see f_utf_is_valid() */ #ifndef _di_f_print_dynamic_except_partial_safely_ - extern f_status_t f_print_except_in_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream); + extern f_status_t f_print_except_in_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file); #endif // _di_f_print_except_in_dynamic_partial_safely_ /** @@ -1025,8 +1052,9 @@ extern "C" { * @param except_in * An array of ranges within the string to not print. * The array of ranges is required/assumed to be in linear order. - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -1040,7 +1068,7 @@ extern "C" { * @see fwrite_unlocked() */ #ifndef _di_f_print_except_in_dynamic_raw_ - extern f_status_t f_print_except_in_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream); + extern f_status_t f_print_except_in_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file); #endif // _di_f_print_except_in_dynamic_raw_ /** @@ -1067,8 +1095,9 @@ extern "C" { * @param except_in * An array of ranges within the string to not print. * The array of ranges is required/assumed to be in linear order. - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -1084,7 +1113,7 @@ extern "C" { * @see f_utf_is_valid() */ #ifndef _di_f_print_except_in_dynamic_raw_safely_ - extern f_status_t f_print_except_in_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream); + extern f_status_t f_print_except_in_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file); #endif // _di_f_print_except_in_dynamic_raw_safely_ /** @@ -1109,8 +1138,8 @@ extern "C" { * @param except_in * An array of ranges within the string to not print. * The array of ranges is required/assumed to be in linear order. - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -1126,7 +1155,7 @@ extern "C" { * @see f_utf_is_valid() */ #ifndef _di_f_print_except_in_dynamic_safely_ - extern f_status_t f_print_except_in_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream); + extern f_status_t f_print_except_in_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file); #endif // _di_f_print_except_in_dynamic_safely_ /** @@ -1156,8 +1185,9 @@ extern "C" { * @param except_in * An array of ranges within the string to not print. * The array of ranges is required/assumed to be in linear order. - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -1171,7 +1201,7 @@ extern "C" { * @see fwrite_unlocked() */ #ifndef _di_f_print_except_in_raw_ - extern f_status_t f_print_except_in_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream); + extern f_status_t f_print_except_in_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file); #endif // _di_f_print_except_in_raw_ /** @@ -1204,8 +1234,9 @@ extern "C" { * @param except_in * An array of ranges within the string to not print. * The array of ranges is required/assumed to be in linear order. - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -1221,7 +1252,7 @@ extern "C" { * @see f_utf_is_valid() */ #ifndef _di_f_print_except_in_raw_safely_ - extern f_status_t f_print_except_in_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream); + extern f_status_t f_print_except_in_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file); #endif // _di_f_print_except_in_raw_safely_ /** @@ -1252,8 +1283,9 @@ extern "C" { * @param except_in * An array of ranges within the string to not print. * The array of ranges is required/assumed to be in linear order. - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -1269,7 +1301,7 @@ extern "C" { * @see f_utf_is_valid() */ #ifndef _di_f_print_except_in_safely_ - extern f_status_t f_print_except_in_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream); + extern f_status_t f_print_except_in_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file); #endif // _di_f_print_except_in_safely_ /** @@ -1295,8 +1327,9 @@ extern "C" { * @param except * An array of locations within the given string to not print. * The array of locations is required/assumed to be in linear order. - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -1310,7 +1343,7 @@ extern "C" { * @see fwrite_unlocked() */ #ifndef _di_f_print_except_raw_ - extern f_status_t f_print_except_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE * const stream); + extern f_status_t f_print_except_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, const f_file_t file); #endif // _di_f_print_except_raw_ /** @@ -1337,8 +1370,9 @@ extern "C" { * @param except * An array of locations within the given string to not print. * The array of locations is required/assumed to be in linear order. - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -1354,7 +1388,7 @@ extern "C" { * @see f_utf_is_valid() */ #ifndef _di_f_print_except_raw_safely_ - extern f_status_t f_print_except_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE * const stream); + extern f_status_t f_print_except_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, const f_file_t file); #endif // _di_f_print_except_raw_safely_ /** @@ -1379,8 +1413,9 @@ extern "C" { * @param except * An array of locations within the given string to not print. * The array of locations is required/assumed to be in linear order. - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -1396,7 +1431,7 @@ extern "C" { * @see f_utf_is_valid() */ #ifndef _di_f_print_except_safely_ - extern f_status_t f_print_except_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE * const stream); + extern f_status_t f_print_except_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, const f_file_t file); #endif // _di_f_print_except_safely_ /** @@ -1414,8 +1449,9 @@ extern "C" { * The string to output. * @param length * The total number of characters to print. - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -1429,7 +1465,7 @@ extern "C" { * @see fwrite_unlocked() */ #ifndef _di_f_print_raw_ - extern f_status_t f_print_raw(const f_string_t string, const f_array_length_t length, FILE * const stream); + extern f_status_t f_print_raw(const f_string_t string, const f_array_length_t length, const f_file_t file); #endif // _di_f_print_raw_ /** @@ -1450,8 +1486,9 @@ extern "C" { * The string to output. * @param length * The total number of characters to print. - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -1467,7 +1504,7 @@ extern "C" { * @see f_utf_is_valid() */ #ifndef _di_f_print_raw_safely_ - extern f_status_t f_print_raw_safely(const f_string_t string, const f_array_length_t length, FILE * const stream); + extern f_status_t f_print_raw_safely(const f_string_t string, const f_array_length_t length, const f_file_t file); #endif // _di_f_print_raw_safely_ /** @@ -1481,8 +1518,9 @@ extern "C" { * * @param string * The string to output. - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -1496,7 +1534,7 @@ extern "C" { * @see fwrite_unlocked() */ #ifndef _di_f_print_raw_terminated_ - extern f_status_t f_print_raw_terminated(const f_string_t string, FILE * const stream); + extern f_status_t f_print_raw_terminated(const f_string_t string, const f_file_t file); #endif // _di_f_print_raw_terminated_ /** @@ -1515,8 +1553,9 @@ extern "C" { * The string to output. * @param length * The total number of characters to print. - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -1532,7 +1571,7 @@ extern "C" { * @see f_utf_is_valid() */ #ifndef _di_f_print_safely_ - extern f_status_t f_print_safely(const f_string_t string, const f_array_length_t length, FILE * const stream); + extern f_status_t f_print_safely(const f_string_t string, const f_array_length_t length, const f_file_t file); #endif // _di_f_print_safely_ /** @@ -1578,8 +1617,8 @@ extern "C" { * The string to output. * @param length * The total number of characters to print. - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -1595,7 +1634,7 @@ extern "C" { * @see f_utf_is_valid() */ #ifndef _di_f_print_safely_terminated_ - extern f_status_t f_print_safely_terminated(const f_string_t string, FILE * const stream); + extern f_status_t f_print_safely_terminated(const f_string_t string, const f_file_t file); #endif // _di_f_print_safely_terminated_ /** @@ -1609,8 +1648,9 @@ extern "C" { * * @param string * The string to output. - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -1624,7 +1664,7 @@ extern "C" { * @see fwrite_unlocked() */ #ifndef _di_f_print_terminated_ - extern f_status_t f_print_terminated(const f_string_t string, FILE * const stream); + extern f_status_t f_print_terminated(const f_string_t string, const f_file_t file); #endif // _di_f_print_terminated_ #ifdef __cplusplus diff --git a/level_0/f_print/c/print/to.c b/level_0/f_print/c/print/to.c index 1bfc310..83c50e2 100644 --- a/level_0/f_print/c/print/to.c +++ b/level_0/f_print/c/print/to.c @@ -33,26 +33,24 @@ static inline f_status_t private_inline_f_print_to_error(void) { } #ifndef _di_f_print_to_ - f_status_t f_print_to(const f_string_t string, const f_array_length_t length, const int id) { + f_status_t f_print_to(const f_string_t string, const f_array_length_t length, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (id == -1) return F_status_set_error(F_parameter); + if (file.id == -1) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ - if (!length || !string) { - return F_data_not; - } + if (!length || !string) return F_data_not; - return private_f_print_to(string, length, id); + return private_f_print_to(string, length, file.id); } #endif // _di_f_print_to_ #ifndef _di_f_print_to_character_ - f_status_t f_print_to_character(const f_char_t character, const int id) { + f_status_t f_print_to_character(const f_char_t character, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (id == -1) return F_status_set_error(F_parameter); + if (file.id == -1) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ - if (write(id, &character, 1) == -1) { + if (write(file.id, &character, 1) == -1) { return private_inline_f_print_to_error(); } @@ -61,33 +59,31 @@ static inline f_status_t private_inline_f_print_to_error(void) { #endif // _di_f_print_to_character_ #ifndef _di_f_print_to_character_safely_ - f_status_t f_print_to_character_safely(const f_char_t character, const int id) { + f_status_t f_print_to_character_safely(const f_char_t character, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (id == -1) return F_status_set_error(F_parameter); + if (file.id == -1) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ - return private_f_print_to_character_safely(character, id); + return private_f_print_to_character_safely(character, file.id); } #endif // _di_f_print_to_character_safely_ #ifndef _di_f_print_to_dynamic_ - f_status_t f_print_to_dynamic(const f_string_static_t buffer, const int id) { + f_status_t f_print_to_dynamic(const f_string_static_t buffer, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (id == -1) return F_status_set_error(F_parameter); + if (file.id == -1) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ - if (!buffer.used || !buffer.string) { - return F_data_not; - } + if (!buffer.used || !buffer.string) return F_data_not; - return private_f_print_to(buffer.string, buffer.used, id); + return private_f_print_to(buffer.string, buffer.used, file.id); } #endif // _di_f_print_to_dynamic_ #ifndef _di_f_print_to_dynamic_partial_ - f_status_t f_print_to_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const int id) { + f_status_t f_print_to_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (id == -1) return F_status_set_error(F_parameter); + if (file.id == -1) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ if (!buffer.used || range.start > range.stop || range.start >= buffer.used || !buffer.string) { @@ -100,14 +96,14 @@ static inline f_status_t private_inline_f_print_to_error(void) { length = buffer.used - range.start; } - return private_f_print_to(buffer.string + range.start, length, id); + return private_f_print_to(buffer.string + range.start, length, file.id); } #endif // _di_f_print_to_dynamic_partial_ #ifndef _di_f_print_to_dynamic_partial_raw_ - f_status_t f_print_to_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const int id) { + f_status_t f_print_to_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (id == -1) return F_status_set_error(F_parameter); + if (file.id == -1) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ if (!buffer.used || range.start > range.stop || range.start >= buffer.used || !buffer.string) { @@ -120,14 +116,14 @@ static inline f_status_t private_inline_f_print_to_error(void) { length = buffer.used - range.start; } - return private_f_print_to_raw(buffer.string + range.start, length, id); + return private_f_print_to_raw(buffer.string + range.start, length, file.id); } #endif // _di_f_print_to_dynamic_partial_raw_ #ifndef _di_f_print_to_dynamic_partial_raw_safely_ - f_status_t f_print_to_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const int id) { + f_status_t f_print_to_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (id == -1) return F_status_set_error(F_parameter); + if (file.id == -1) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ if (!buffer.used || range.start > range.stop || range.start >= buffer.used || !buffer.string) { @@ -140,14 +136,14 @@ static inline f_status_t private_inline_f_print_to_error(void) { length = buffer.used - range.start; } - return private_f_print_to_raw_safely(buffer.string + range.start, length, id); + return private_f_print_to_raw_safely(buffer.string + range.start, length, file.id); } #endif // _di_f_print_to_dynamic_partial_raw_safely_ #ifndef _di_f_print_to_dynamic_partial_safely_ - f_status_t f_print_to_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const int id) { + f_status_t f_print_to_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (id == -1) return F_status_set_error(F_parameter); + if (file.id == -1) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ if (!buffer.used || range.start > range.stop || range.start >= buffer.used || !buffer.string) { @@ -160,84 +156,74 @@ static inline f_status_t private_inline_f_print_to_error(void) { length = buffer.used - range.start; } - return private_f_print_to_safely(buffer.string + range.start, length, id); + return private_f_print_to_safely(buffer.string + range.start, length, file.id); } #endif // _di_f_print_to_dynamic_partial_safely_ #ifndef _di_f_print_to_dynamic_raw_ - f_status_t f_print_to_dynamic_raw(const f_string_static_t buffer, const int id) { + f_status_t f_print_to_dynamic_raw(const f_string_static_t buffer, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (id == -1) return F_status_set_error(F_parameter); + if (file.id == -1) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ - if (!buffer.used || !buffer.string) { - return F_data_not; - } + if (!buffer.used || !buffer.string) return F_data_not; - return private_f_print_to_raw(buffer.string, buffer.used, id); + return private_f_print_to_raw(buffer.string, buffer.used, file.id); } #endif // _di_f_print_to_dynamic_raw_ #ifndef _di_f_print_to_dynamic_raw_safely_ - f_status_t f_print_to_dynamic_raw_safely(const f_string_static_t buffer, const int id) { + f_status_t f_print_to_dynamic_raw_safely(const f_string_static_t buffer, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (id == -1) return F_status_set_error(F_parameter); + if (file.id == -1) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ - if (!buffer.used || !buffer.string) { - return F_data_not; - } + if (!buffer.used || !buffer.string) return F_data_not; - return private_f_print_to_raw_safely(buffer.string, buffer.used, id); + return private_f_print_to_raw_safely(buffer.string, buffer.used, file.id); } #endif // _di_f_print_to_dynamic_raw_safely_ #ifndef _di_f_print_to_dynamic_safely_ - f_status_t f_print_to_dynamic_safely(const f_string_static_t buffer, const int id) { + f_status_t f_print_to_dynamic_safely(const f_string_static_t buffer, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (id == -1) return F_status_set_error(F_parameter); + if (file.id == -1) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ - if (!buffer.used || !buffer.string) { - return F_data_not; - } + if (!buffer.used || !buffer.string) return F_data_not; - return private_f_print_to_safely(buffer.string, buffer.used, id); + return private_f_print_to_safely(buffer.string, buffer.used, file.id); } #endif // _di_f_print_to_dynamic_safely_ #ifndef _di_f_print_to_except_ - f_status_t f_print_to_except(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, const int id) { + f_status_t f_print_to_except(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (id == -1) return F_status_set_error(F_parameter); + if (file.id == -1) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ - if (!length || !string) { - return F_data_not; - } + if (!length || !string) return F_data_not; - return private_f_print_to_except(string, offset, length, except, id); + return private_f_print_to_except(string, offset, length, except, file.id); } #endif // _di_f_print_to_except_ #ifndef _di_f_print_to_except_dynamic_ - f_status_t f_print_to_except_dynamic(const f_string_static_t buffer, const f_array_lengths_t except, const int id) { + f_status_t f_print_to_except_dynamic(const f_string_static_t buffer, const f_array_lengths_t except, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (id == -1) return F_status_set_error(F_parameter); + if (file.id == -1) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ - if (!buffer.used || !buffer.string) { - return F_data_not; - } + if (!buffer.used || !buffer.string) return F_data_not; - return private_f_print_to_except(buffer.string, 0, buffer.used, except, id); + return private_f_print_to_except(buffer.string, 0, buffer.used, except, file.id); } #endif // _di_f_print_to_except_dynamic_ #ifndef _di_f_print_to_except_dynamic_partial_ - f_status_t f_print_to_except_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, const int id) { + f_status_t f_print_to_except_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (id == -1) return F_status_set_error(F_parameter); + if (file.id == -1) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ if (!buffer.used || range.start > range.stop || range.start >= buffer.used || !buffer.string) { @@ -250,14 +236,14 @@ static inline f_status_t private_inline_f_print_to_error(void) { length = buffer.used - range.start; } - return private_f_print_to_except(buffer.string, range.start, range.start + length, except, id); + return private_f_print_to_except(buffer.string, range.start, range.start + length, except, file.id); } #endif // _di_f_print_to_except_dynamic_partial_ #ifndef _di_f_print_to_except_dynamic_partial_raw_ - f_status_t f_print_to_except_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, const int id) { + f_status_t f_print_to_except_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (id == -1) return F_status_set_error(F_parameter); + if (file.id == -1) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ if (!buffer.used || range.start > range.stop || range.start >= buffer.used || !buffer.string) { @@ -270,14 +256,14 @@ static inline f_status_t private_inline_f_print_to_error(void) { length = buffer.used - range.start; } - return private_f_print_to_except_raw(buffer.string, range.start, range.start + length, except, id); + return private_f_print_to_except_raw(buffer.string, range.start, range.start + length, except, file.id); } #endif // _di_f_print_to_except_dynamic_partial_raw_ #ifndef _di_f_print_to_except_dynamic_partial_raw_safely_ - f_status_t f_print_to_except_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, const int id) { + f_status_t f_print_to_except_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (id == -1) return F_status_set_error(F_parameter); + if (file.id == -1) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ if (!buffer.used || range.start > range.stop || range.start >= buffer.used || !buffer.string) { @@ -290,14 +276,14 @@ static inline f_status_t private_inline_f_print_to_error(void) { length = buffer.used - range.start; } - return private_f_print_to_except_raw_safely(buffer.string, range.start, range.start + length, except, id); + return private_f_print_to_except_raw_safely(buffer.string, range.start, range.start + length, except, file.id); } #endif // _di_f_print_to_except_dynamic_partial_raw_safely_ #ifndef _di_f_print_to_except_dynamic_partial_safely_ - f_status_t f_print_to_except_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, const int id) { + f_status_t f_print_to_except_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (id == -1) return F_status_set_error(F_parameter); + if (file.id == -1) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ if (!buffer.used || range.start > range.stop || range.start >= buffer.used || !buffer.string) { @@ -310,82 +296,74 @@ static inline f_status_t private_inline_f_print_to_error(void) { length = buffer.used - range.start; } - return private_f_print_to_except_safely(buffer.string, range.start, range.start + length, except, id); + return private_f_print_to_except_safely(buffer.string, range.start, range.start + length, except, file.id); } #endif // _di_f_print_to_except_dynamic_partial_safely_ #ifndef _di_f_print_to_except_dynamic_raw_ - f_status_t f_print_to_except_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except, const int id) { + f_status_t f_print_to_except_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (id == -1) return F_status_set_error(F_parameter); + if (file.id == -1) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ - if (!buffer.used || !buffer.string) { - return F_data_not; - } + if (!buffer.used || !buffer.string) return F_data_not; - return private_f_print_to_except_raw(buffer.string, 0, buffer.used, except, id); + return private_f_print_to_except_raw(buffer.string, 0, buffer.used, except, file.id); } #endif // _di_f_print_to_except_dynamic_raw_ #ifndef _di_f_print_to_except_dynamic_raw_safely_ - f_status_t f_print_to_except_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except, const int id) { + f_status_t f_print_to_except_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (id == -1) return F_status_set_error(F_parameter); + if (file.id == -1) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ - if (!buffer.used || !buffer.string) { - return F_data_not; - } + if (!buffer.used || !buffer.string) return F_data_not; - return private_f_print_to_except_raw_safely(buffer.string, 0, buffer.used, except, id); + return private_f_print_to_except_raw_safely(buffer.string, 0, buffer.used, except, file.id); } #endif // _di_f_print_to_except_dynamic_raw_safely_ #ifndef _di_f_print_to_except_dynamic_safely_ - f_status_t f_print_to_except_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except, const int id) { + f_status_t f_print_to_except_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (id == -1) return F_status_set_error(F_parameter); + if (file.id == -1) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ - if (!buffer.used || !buffer.string) { - return F_data_not; - } + if (!buffer.used || !buffer.string) return F_data_not; - return private_f_print_to_except_safely(buffer.string, 0, buffer.used, except, id); + return private_f_print_to_except_safely(buffer.string, 0, buffer.used, except, file.id); } #endif // _di_f_print_to_except_dynamic_safely_ #ifndef _di_f_print_to_except_in_ - f_status_t f_print_to_except_in(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const int id) { + f_status_t f_print_to_except_in(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (id == -1) return F_status_set_error(F_parameter); + if (file.id == -1) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ - if (!length || !string) { - return F_data_not; - } + if (!length || !string) return F_data_not; - return private_f_print_to_except_in(string, offset, length, except_at, except_in, id); + return private_f_print_to_except_in(string, offset, length, except_at, except_in, file.id); } #endif // _di_f_print_to_except_in_ #ifndef _di_f_print_to_except_in_dynamic_ - f_status_t f_print_to_except_in_dynamic(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const int id) { + f_status_t f_print_to_except_in_dynamic(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (id == -1) return F_status_set_error(F_parameter); + if (file.id == -1) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ if (!buffer.string || !buffer.used) return F_data_not; - return private_f_print_to_except_in(buffer.string, 0, buffer.used, except_at, except_in, id); + return private_f_print_to_except_in(buffer.string, 0, buffer.used, except_at, except_in, file.id); } #endif // _di_f_print_to_except_in_dynamic_ #ifndef _di_f_print_to_except_in_dynamic_partial_ - f_status_t f_print_to_except_in_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const int id) { + f_status_t f_print_to_except_in_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (id == -1) return F_status_set_error(F_parameter); + if (file.id == -1) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ if (!buffer.used || range.start > range.stop || range.start >= buffer.used || !buffer.string) { @@ -398,14 +376,14 @@ static inline f_status_t private_inline_f_print_to_error(void) { length = buffer.used - range.start; } - return private_f_print_to_except_in(buffer.string, range.start, range.start + length, except_at, except_in, id); + return private_f_print_to_except_in(buffer.string, range.start, range.start + length, except_at, except_in, file.id); } #endif // _di_f_print_to_except_in_dynamic_partial_ #ifndef _di_f_print_to_except_in_dynamic_partial_raw_ - f_status_t f_print_to_except_in_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const int id) { + f_status_t f_print_to_except_in_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (id == -1) return F_status_set_error(F_parameter); + if (file.id == -1) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ if (!buffer.used || range.start > range.stop || range.start >= buffer.used || !buffer.string) { @@ -418,14 +396,14 @@ static inline f_status_t private_inline_f_print_to_error(void) { length = buffer.used - range.start; } - return private_f_print_to_except_in_raw(buffer.string, range.start, range.start + length, except_at, except_in, id); + return private_f_print_to_except_in_raw(buffer.string, range.start, range.start + length, except_at, except_in, file.id); } #endif // _di_f_print_to_except_in_dynamic_partial_raw_ #ifndef _di_f_print_to_except_in_dynamic_partial_raw_safely_ - f_status_t f_print_to_except_in_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const int id) { + f_status_t f_print_to_except_in_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (id == -1) return F_status_set_error(F_parameter); + if (file.id == -1) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ if (!buffer.used || range.start > range.stop || range.start >= buffer.used || !buffer.string) { @@ -438,14 +416,14 @@ static inline f_status_t private_inline_f_print_to_error(void) { length = buffer.used - range.start; } - return private_f_print_to_except_in_raw_safely(buffer.string, range.start, range.start + length, except_at, except_in, id); + return private_f_print_to_except_in_raw_safely(buffer.string, range.start, range.start + length, except_at, except_in, file.id); } #endif // _di_f_print_to_except_in_dynamic_partial_raw_safely_ #ifndef _di_f_print_to_except_in_dynamic_partial_safely_ - f_status_t f_print_to_except_in_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const int id) { + f_status_t f_print_to_except_in_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (id == -1) return F_status_set_error(F_parameter); + if (file.id == -1) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ if (!buffer.used || range.start > range.stop || range.start >= buffer.used || !buffer.string) { @@ -458,196 +436,174 @@ static inline f_status_t private_inline_f_print_to_error(void) { length = buffer.used - range.start; } - return private_f_print_to_except_in_safely(buffer.string, range.start, range.start + length, except_at, except_in, id); + return private_f_print_to_except_in_safely(buffer.string, range.start, range.start + length, except_at, except_in, file.id); } #endif // _di_f_print_to_except_in_dynamic_partial_safely_ #ifndef _di_f_print_to_except_in_dynamic_raw_ - f_status_t f_print_to_except_in_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const int id) { + f_status_t f_print_to_except_in_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (id == -1) return F_status_set_error(F_parameter); + if (file.id == -1) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ if (!buffer.used || !buffer.string) return F_data_not; - return private_f_print_to_except_in_raw(buffer.string, 0, buffer.used, except_at, except_in, id); + return private_f_print_to_except_in_raw(buffer.string, 0, buffer.used, except_at, except_in, file.id); } #endif // _di_f_print_to_except_in_dynamic_raw_ #ifndef _di_f_print_to_except_in_dynamic_raw_safely_ - f_status_t f_print_to_except_in_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const int id) { + f_status_t f_print_to_except_in_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (id == -1) return F_status_set_error(F_parameter); + if (file.id == -1) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ if (!buffer.used || !buffer.string) return F_data_not; - return private_f_print_to_except_in_raw_safely(buffer.string, 0, buffer.used, except_at, except_in, id); + return private_f_print_to_except_in_raw_safely(buffer.string, 0, buffer.used, except_at, except_in, file.id); } #endif // _di_f_print_to_except_in_dynamic_raw_safely_ #ifndef _di_f_print_to_except_in_dynamic_safely_ - f_status_t f_print_to_except_in_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const int id) { + f_status_t f_print_to_except_in_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (id == -1) return F_status_set_error(F_parameter); + if (file.id == -1) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ if (!buffer.used || !buffer.string) return F_data_not; - return private_f_print_to_except_in_safely(buffer.string, 0, buffer.used, except_at, except_in, id); + return private_f_print_to_except_in_safely(buffer.string, 0, buffer.used, except_at, except_in, file.id); } #endif // _di_f_print_to_except_in_dynamic_safely_ #ifndef _di_f_print_to_except_in_raw_ - f_status_t f_print_to_except_in_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const int id) { + f_status_t f_print_to_except_in_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (id == -1) return F_status_set_error(F_parameter); + if (file.id == -1) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ - if (!length || !string) { - return F_data_not; - } + if (!length || !string) return F_data_not; - return private_f_print_to_except_in_raw(string, offset, length, except_at, except_in, id); + return private_f_print_to_except_in_raw(string, offset, length, except_at, except_in, file.id); } #endif // _di_f_print_to_except_in_raw_ #ifndef _di_f_print_to_except_in_raw_safely_ - f_status_t f_print_to_except_in_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const int id) { + f_status_t f_print_to_except_in_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (id == -1) return F_status_set_error(F_parameter); + if (file.id == -1) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ - if (!length || !string) { - return F_data_not; - } + if (!length || !string) return F_data_not; - return private_f_print_to_except_in_raw_safely(string, offset, length, except_at, except_in, id); + return private_f_print_to_except_in_raw_safely(string, offset, length, except_at, except_in, file.id); } #endif // _di_f_print_to_except_in_raw_safely_ #ifndef _di_f_print_to_except_in_safely_ - f_status_t f_print_to_except_in_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const int id) { + f_status_t f_print_to_except_in_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (id == -1) return F_status_set_error(F_parameter); + if (file.id == -1) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ - if (!length || !string) { - return F_data_not; - } + if (!length || !string) return F_data_not; - return private_f_print_to_except_in_safely(string, offset, length, except_at, except_in, id); + return private_f_print_to_except_in_safely(string, offset, length, except_at, except_in, file.id); } #endif // _di_f_print_to_except_in_safely_ #ifndef _di_f_print_to_except_raw_ - f_status_t f_print_to_except_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, const int id) { + f_status_t f_print_to_except_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (id == -1) return F_status_set_error(F_parameter); + if (file.id == -1) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ - if (!length || !string) { - return F_data_not; - } + if (!length || !string) return F_data_not; - return private_f_print_to_except_raw(string, offset, length, except, id); + return private_f_print_to_except_raw(string, offset, length, except, file.id); } #endif // _di_f_print_to_except_raw_ #ifndef _di_f_print_to_except_raw_safely_ - f_status_t f_print_to_except_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, const int id) { + f_status_t f_print_to_except_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (id == -1) return F_status_set_error(F_parameter); + if (file.id == -1) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ - if (!length || !string) { - return F_data_not; - } + if (!length || !string) return F_data_not; - return private_f_print_to_except_raw_safely(string, offset, length, except, id); + return private_f_print_to_except_raw_safely(string, offset, length, except, file.id); } #endif // _di_f_print_to_except_raw_safely_ #ifndef _di_f_print_to_except_safely_ - f_status_t f_print_to_except_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, const int id) { + f_status_t f_print_to_except_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (id == -1) return F_status_set_error(F_parameter); + if (file.id == -1) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ - if (!length || !string) { - return F_data_not; - } + if (!length || !string) return F_data_not; - return private_f_print_to_except_safely(string, offset, length, except, id); + return private_f_print_to_except_safely(string, offset, length, except, file.id); } #endif // _di_f_print_to_except_safely_ #ifndef _di_f_print_to_raw_ - f_status_t f_print_to_raw(const f_string_t string, const f_array_length_t length, const int id) { + f_status_t f_print_to_raw(const f_string_t string, const f_array_length_t length, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (id == -1) return F_status_set_error(F_parameter); + if (file.id == -1) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ - if (!length || !string) { - return F_data_not; - } + if (!length || !string) return F_data_not; - return private_f_print_to_raw(string, length, id); + return private_f_print_to_raw(string, length, file.id); } #endif // _di_f_print_to_raw_ #ifndef _di_f_print_to_raw_safely_ - f_status_t f_print_to_raw_safely(const f_string_t string, const f_array_length_t length, const int id) { + f_status_t f_print_to_raw_safely(const f_string_t string, const f_array_length_t length, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (id == -1) return F_status_set_error(F_parameter); + if (file.id == -1) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ - if (!length || !string) { - return F_data_not; - } + if (!length || !string) return F_data_not; - return private_f_print_to_raw_safely(string, length, id); + return private_f_print_to_raw_safely(string, length, file.id); } #endif // _di_f_print_to_raw_safely_ #ifndef _di_f_print_to_raw_terminated_ - f_status_t f_print_to_raw_terminated(const f_string_t string, const int id) { + f_status_t f_print_to_raw_terminated(const f_string_t string, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (id == -1) return F_status_set_error(F_parameter); + if (file.id == -1) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ - if (!string) { - return F_data_not; - } +if (!string) return F_data_not; // The f_print_raw_terminated() and f_print_terminated() are functionality identical due to being NULL terminated. - return private_f_print_to_terminated(string, id); + return private_f_print_to_terminated(string, file.id); } #endif // _di_f_print_raw_terminated_ #ifndef _di_f_print_to_safely_ - f_status_t f_print_to_safely(const f_string_t string, const f_array_length_t length, const int id) { + f_status_t f_print_to_safely(const f_string_t string, const f_array_length_t length, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (id == -1) return F_status_set_error(F_parameter); + if (file.id == -1) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ - if (!length || !string) { - return F_data_not; - } + if (!length || !string) return F_data_not; - return private_f_print_to_safely(string, length, id); + return private_f_print_to_safely(string, length, file.id); } #endif // _di_f_print_to_safely_ #ifndef _di_f_print_to_safely_terminated_ - f_status_t f_print_to_safely_terminated(const f_string_t string, const int id) { + f_status_t f_print_to_safely_terminated(const f_string_t string, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (id == -1) return F_status_set_error(F_parameter); + if (file.id == -1) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ - if (!string) { - return F_data_not; - } + if (!string) return F_data_not; f_array_length_t start = 0; f_array_length_t total = 0; @@ -687,14 +643,14 @@ static inline f_status_t private_inline_f_print_to_error(void) { if (safe.used) { if (total) { - if (write(id, string + start, total) == -1) { + if (write(file.id, string + start, total) == -1) { return private_inline_f_print_to_error(); } total = 0; } - if (write(id, safe.string, safe.used) == -1) { + if (write(file.id, safe.string, safe.used) == -1) { return private_inline_f_print_to_error(); } @@ -706,7 +662,7 @@ static inline f_status_t private_inline_f_print_to_error(void) { if (total + width >= F_print_write_max_d) { if (total) { - if (write(id, string + start, total) == -1) { + if (write(file.id, string + start, total) == -1) { return private_inline_f_print_to_error(); } @@ -724,7 +680,7 @@ static inline f_status_t private_inline_f_print_to_error(void) { } // for if (total) { - if (write(id, string + start, total) == -1) { + if (write(file.id, string + start, total) == -1) { return private_inline_f_print_to_error(); } } @@ -734,16 +690,14 @@ static inline f_status_t private_inline_f_print_to_error(void) { #endif // _di_f_print_to_safely_terminated_ #ifndef _di_f_print_to_terminated_ - f_status_t f_print_to_terminated(const f_string_t string, const int id) { + f_status_t f_print_to_terminated(const f_string_t string, const f_file_t file) { #ifndef _di_level_0_parameter_checking_ - if (id == -1) return F_status_set_error(F_parameter); + if (file.id == -1) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ - if (!string) { - return F_data_not; - } + if (!string) return F_data_not; - return private_f_print_to_terminated(string, id); + return private_f_print_to_terminated(string, file.id); } #endif // _di_f_print_to_terminated_ diff --git a/level_0/f_print/c/print/to.h b/level_0/f_print/c/print/to.h index ccc3f14..79ebaf6 100644 --- a/level_0/f_print/c/print/to.h +++ b/level_0/f_print/c/print/to.h @@ -29,8 +29,8 @@ extern "C" { * The string to output. * @param length * The total number of characters to print. - * @param id - * The file descriptor to output to. + * @param file + * The file structure containing the file descriptor to output to. * * @return * F_none on success. @@ -55,7 +55,7 @@ extern "C" { * @see write() */ #ifndef _di_f_print_to_ - extern f_status_t f_print_to(const f_string_t string, const f_array_length_t length, const int id); + extern f_status_t f_print_to(const f_string_t string, const f_array_length_t length, const f_file_t file); #endif // _di_f_print_to_ /** @@ -65,8 +65,8 @@ extern "C" { * * @param character * The character to verify as safe or not and then print. - * @param id - * The file descriptor to output to. + * @param file + * The file structure containing the file descriptor to output to. * * @return * F_none on success. @@ -91,7 +91,7 @@ extern "C" { * @see write() */ #ifndef _di_f_print_to_character_ - extern f_status_t f_print_to_character(const f_char_t character, const int id); + extern f_status_t f_print_to_character(const f_char_t character, const f_file_t file); #endif // _di_f_print_to_character_ /** @@ -105,8 +105,8 @@ extern "C" { * * @param character * The character to verify as safe or not and then print. - * @param id - * The file descriptor to output to. + * @param file + * The file structure containing the file descriptor to output to. * * @return * F_none on success. @@ -131,7 +131,7 @@ extern "C" { * @see write() */ #ifndef _di_f_print_to_character_safely_ - extern f_status_t f_print_to_character_safely(const f_char_t character, const int id); + extern f_status_t f_print_to_character_safely(const f_char_t character, const f_file_t file); #endif // _di_f_print_to_character_safely_ /** @@ -143,8 +143,8 @@ extern "C" { * * @param buffer * The string to output. - * @param id - * The file descriptor to output to. + * @param file + * The file structure containing the file descriptor to output to. * * @return * F_none on success. @@ -169,7 +169,7 @@ extern "C" { * @see write() */ #ifndef _di_f_print_to_dynamic_ - extern f_status_t f_print_to_dynamic(const f_string_static_t buffer, const int id); + extern f_status_t f_print_to_dynamic(const f_string_static_t buffer, const f_file_t file); #endif // _di_f_print_to_dynamic_ /** @@ -183,8 +183,8 @@ extern "C" { * The string to output. * @param range * The range within the provided string to print. - * @param id - * The file descriptor to output to. + * @param file + * The file structure containing the file descriptor to output to. * * @return * F_none on success. @@ -209,7 +209,7 @@ extern "C" { * @see write() */ #ifndef _di_f_print_to_dynamic_partial_ - extern f_status_t f_print_to_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const int id); + extern f_status_t f_print_to_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_file_t file); #endif // _di_f_print_to_dynamic_partial_ /** @@ -225,8 +225,8 @@ extern "C" { * The string to output. * @param range * The range within the provided string to print. - * @param id - * The file descriptor to output to. + * @param file + * The file structure containing the file descriptor to output to. * * @return * F_none on success. @@ -251,7 +251,7 @@ extern "C" { * @see write() */ #ifndef _di_f_print_to_dynamic_partial_raw_ - extern f_status_t f_print_to_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const int id); + extern f_status_t f_print_to_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_file_t file); #endif // _di_f_print_to_dynamic_partial_raw_ /** @@ -272,8 +272,8 @@ extern "C" { * The string to output. * @param range * The range within the provided string to print. - * @param id - * The file descriptor to output to. + * @param file + * The file structure containing the file descriptor to output to. * * @return * F_none on success. @@ -298,7 +298,7 @@ extern "C" { * @see write() */ #ifndef _di_f_print_to_dynamic_partial_raw_safely_ - extern f_status_t f_print_to_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const int id); + extern f_status_t f_print_to_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_file_t file); #endif // _di_f_print_to_dynamic_partial_raw_safely_ /** @@ -315,8 +315,8 @@ extern "C" { * The string to output. * @param range * The range within the provided string to print. - * @param id - * The file descriptor to output to. + * @param file + * The file structure containing the file descriptor to output to. * * @return * F_none on success. @@ -341,7 +341,7 @@ extern "C" { * @see write() */ #ifndef _di_f_print_to_dynamic_partial_safely_ - extern f_status_t f_print_to_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const int id); + extern f_status_t f_print_to_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_file_t file); #endif // _di_f_print_to_dynamic_partial_safely_ /** @@ -355,8 +355,8 @@ extern "C" { * * @param buffer * The string to output. - * @param id - * The file descriptor to output to. + * @param file + * The file structure containing the file descriptor to output to. * * @return * F_none on success. @@ -381,7 +381,7 @@ extern "C" { * @see write() */ #ifndef _di_f_print_to_dynamic_raw_ - extern f_status_t f_print_to_dynamic_raw(const f_string_static_t buffer, const int id); + extern f_status_t f_print_to_dynamic_raw(const f_string_static_t buffer, const f_file_t file); #endif // _di_f_print_to_dynamic_raw_ /** @@ -400,8 +400,8 @@ extern "C" { * * @param buffer * The string to output. - * @param id - * The file descriptor to output to. + * @param file + * The file structure containing the file descriptor to output to. * * @return * F_none on success. @@ -426,7 +426,7 @@ extern "C" { * @see write() */ #ifndef _di_f_print_to_dynamic_raw_safely_ - extern f_status_t f_print_to_dynamic_raw_safely(const f_string_static_t buffer, const int id); + extern f_status_t f_print_to_dynamic_raw_safely(const f_string_static_t buffer, const f_file_t file); #endif // _di_f_print_to_dynamic_raw_safely_ /** @@ -441,8 +441,8 @@ extern "C" { * * @param buffer * The string to output. - * @param id - * The file descriptor to output to. + * @param file + * The file structure containing the file descriptor to output to. * * @return * F_none on success. @@ -467,7 +467,7 @@ extern "C" { * @see write() */ #ifndef _di_f_print_to_dynamic_safely_ - extern f_status_t f_print_to_dynamic_safely(const f_string_static_t buffer, const int id); + extern f_status_t f_print_to_dynamic_safely(const f_string_static_t buffer, const f_file_t file); #endif // _di_f_print_to_dynamic_safely_ /** @@ -487,8 +487,8 @@ extern "C" { * @param except * An array of locations within the given string to not print. * The array of locations is required/assumed to be in linear order. - * @param id - * The file descriptor to output to. + * @param file + * The file structure containing the file descriptor to output to. * * @return * F_none on success. @@ -513,7 +513,7 @@ extern "C" { * @see write() */ #ifndef _di_f_print_to_except_ - extern f_status_t f_print_to_except(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, const int id); + extern f_status_t f_print_to_except(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, const f_file_t file); #endif // _di_f_print_to_except_ /** @@ -529,8 +529,8 @@ extern "C" { * @param except * An array of locations within the given string to not print. * The array of locations is required/assumed to be in linear order. - * @param id - * The file descriptor to output to. + * @param file + * The file structure containing the file descriptor to output to. * * @return * F_none on success. @@ -555,7 +555,7 @@ extern "C" { * @see write() */ #ifndef _di_f_print_to_except_dynamic_ - extern f_status_t f_print_to_except_dynamic(const f_string_static_t buffer, const f_array_lengths_t except, const int id); + extern f_status_t f_print_to_except_dynamic(const f_string_static_t buffer, const f_array_lengths_t except, const f_file_t file); #endif // _di_f_print_to_except_dynamic_ /** @@ -573,8 +573,8 @@ extern "C" { * @param except * An array of locations within the given string to not print. * The array of locations is required/assumed to be in linear order. - * @param id - * The file descriptor to output to. + * @param file + * The file structure containing the file descriptor to output to. * * @return * F_none on success. @@ -599,7 +599,7 @@ extern "C" { * @see write() */ #ifndef _di_f_print_to_except_dynamic_partial_ - extern f_status_t f_print_to_except_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, const int id); + extern f_status_t f_print_to_except_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, const f_file_t file); #endif // _di_f_print_to_except_dynamic_partial_ /** @@ -619,8 +619,8 @@ extern "C" { * @param except * An array of locations within the given string to not print. * The array of locations is required/assumed to be in linear order. - * @param id - * The file descriptor to output to. + * @param file + * The file structure containing the file descriptor to output to. * * @return * F_none on success. @@ -645,7 +645,7 @@ extern "C" { * @see write() */ #ifndef _di_f_print_to_except_dynamic_partial_raw_ - extern f_status_t f_print_to_except_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, const int id); + extern f_status_t f_print_to_except_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, const f_file_t file); #endif // _di_f_print_to_except_dynamic_partial_raw_ /** @@ -670,8 +670,8 @@ extern "C" { * @param except * An array of locations within the given string to not print. * The array of locations is required/assumed to be in linear order. - * @param id - * The file descriptor to output to. + * @param file + * The file structure containing the file descriptor to output to. * * @return * F_none on success. @@ -696,7 +696,7 @@ extern "C" { * @see write() */ #ifndef _di_f_print_to_except_dynamic_partial_raw_safely_ - extern f_status_t f_print_to_except_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, const int id); + extern f_status_t f_print_to_except_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, const f_file_t file); #endif // _di_f_print_to_except_dynamic_partial_raw_safely_ /** @@ -710,8 +710,8 @@ extern "C" { * Will not print any 1-byte character at a location specified in except array. * Will print up to the specified range within the buffer. * - * @param id - * The file descriptor to output to. + * @param file + * The file structure containing the file descriptor to output to. * @param buffer * The string to output. * @param range @@ -743,7 +743,7 @@ extern "C" { * @see write() */ #ifndef _di_f_print_to_except_dynamic_partial_safely_ - extern f_status_t f_print_to_except_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, const int id); + extern f_status_t f_print_to_except_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, const f_file_t file); #endif // _di_f_print_to_except_dynamic_partial_safely_ /** @@ -761,8 +761,8 @@ extern "C" { * @param except * An array of locations within the given string to not print. * The array of locations is required/assumed to be in linear order. - * @param id - * The file descriptor to output to. + * @param file + * The file structure containing the file descriptor to output to. * * @return * F_none on success. @@ -787,7 +787,7 @@ extern "C" { * @see write() */ #ifndef _di_f_print_to_except_dynamic_raw_ - extern f_status_t f_print_to_except_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except, const int id); + extern f_status_t f_print_to_except_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except, const f_file_t file); #endif // _di_f_print_to_except_dynamic_raw_ /** @@ -810,8 +810,8 @@ extern "C" { * @param except * An array of locations within the given string to not print. * The array of locations is required/assumed to be in linear order. - * @param id - * The file descriptor to output to. + * @param file + * The file structure containing the file descriptor to output to. * * @return * F_none on success. @@ -836,7 +836,7 @@ extern "C" { * @see write() */ #ifndef _di_f_print_to_except_dynamic_raw_safely_ - extern f_status_t f_print_to_except_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except, const int id); + extern f_status_t f_print_to_except_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except, const f_file_t file); #endif // _di_f_print_to_except_dynamic_raw_safely_ /** @@ -855,8 +855,8 @@ extern "C" { * @param except * An array of locations within the given string to not print. * The array of locations is required/assumed to be in linear order. - * @param id - * The file descriptor to output to. + * @param file + * The file structure containing the file descriptor to output to. * * @return * F_none on success. @@ -881,7 +881,7 @@ extern "C" { * @see write() */ #ifndef _di_f_print_to_except_dynamic_safely_ - extern f_status_t f_print_to_except_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except, const int id); + extern f_status_t f_print_to_except_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except, const f_file_t file); #endif // _di_f_print_to_except_dynamic_safely_ /** @@ -909,8 +909,8 @@ extern "C" { * @param except_in * An array of ranges within the string to not print. * The array of ranges is required/assumed to be in linear order. - * @param id - * The file descriptor to output to. + * @param file + * The file structure containing the file descriptor to output to. * * @return * F_none on success. @@ -935,7 +935,7 @@ extern "C" { * @see write() */ #ifndef _di_f_print_to_except_in_ - extern f_status_t f_print_to_except_in(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const int id); + extern f_status_t f_print_to_except_in(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file); #endif // _di_f_print_to_except_in_ /** @@ -957,8 +957,8 @@ extern "C" { * @param except_in * An array of ranges within the string to not print. * The array of ranges is required/assumed to be in linear order. - * @param id - * The file descriptor to output to. + * @param file + * The file structure containing the file descriptor to output to. * * @return * F_none on success. @@ -983,7 +983,7 @@ extern "C" { * @see write() */ #ifndef _di_f_print_to_except_in_dynamic_ - extern f_status_t f_print_to_except_in_dynamic(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const int id); + extern f_status_t f_print_to_except_in_dynamic(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file); #endif // _di_f_print_to_except_in_dynamic_ /** @@ -1007,8 +1007,8 @@ extern "C" { * @param except_in * An array of ranges within the string to not print. * The array of ranges is required/assumed to be in linear order. - * @param id - * The file descriptor to output to. + * @param file + * The file structure containing the file descriptor to output to. * * @return * F_none on success. @@ -1033,7 +1033,7 @@ extern "C" { * @see write() */ #ifndef _di_f_print_dynamic_except_partial_ - extern f_status_t f_print_to_except_in_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const int id); + extern f_status_t f_print_to_except_in_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file); #endif // _di_f_print_to_except_in_dynamic_partial_ /** @@ -1059,8 +1059,8 @@ extern "C" { * @param except_in * An array of ranges within the string to not print. * The array of ranges is required/assumed to be in linear order. - * @param id - * The file descriptor to output to. + * @param file + * The file structure containing the file descriptor to output to. * * @return * F_none on success. @@ -1085,7 +1085,7 @@ extern "C" { * @see write() */ #ifndef _di_f_print_dynamic_except_partial_raw_ - extern f_status_t f_print_to_except_in_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const int id); + extern f_status_t f_print_to_except_in_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file); #endif // _di_f_print_to_except_in_dynamic_partial_raw_ /** @@ -1111,8 +1111,8 @@ extern "C" { * @param except_in * An array of ranges within the string to not print. * The array of ranges is required/assumed to be in linear order. - * @param id - * The file descriptor to output to. + * @param file + * The file structure containing the file descriptor to output to. * * @return * F_none on success. @@ -1137,7 +1137,7 @@ extern "C" { * @see write() */ #ifndef _di_f_print_dynamic_except_partial_raw_safely_ - extern f_status_t f_print_to_except_in_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const int id); + extern f_status_t f_print_to_except_in_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file); #endif // _di_f_print_to_except_in_dynamic_partial_raw_safely_ /** @@ -1161,8 +1161,8 @@ extern "C" { * @param except_in * An array of ranges within the string to not print. * The array of ranges is required/assumed to be in linear order. - * @param id - * The file descriptor to output to. + * @param file + * The file structure containing the file descriptor to output to. * * @return * F_none on success. @@ -1189,7 +1189,7 @@ extern "C" { * @see f_utf_is_valid() */ #ifndef _di_f_print_dynamic_except_partial_safely_ - extern f_status_t f_print_to_except_in_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const int id); + extern f_status_t f_print_to_except_in_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file); #endif // _di_f_print_to_except_in_dynamic_partial_safely_ /** @@ -1213,8 +1213,8 @@ extern "C" { * @param except_in * An array of ranges within the string to not print. * The array of ranges is required/assumed to be in linear order. - * @param id - * The file descriptor to output to. + * @param file + * The file structure containing the file descriptor to output to. * * @return * F_none on success. @@ -1239,7 +1239,7 @@ extern "C" { * @see write() */ #ifndef _di_f_print_to_except_in_dynamic_raw_ - extern f_status_t f_print_to_except_in_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const int id); + extern f_status_t f_print_to_except_in_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file); #endif // _di_f_print_to_except_in_dynamic_raw_ /** @@ -1266,8 +1266,8 @@ extern "C" { * @param except_in * An array of ranges within the string to not print. * The array of ranges is required/assumed to be in linear order. - * @param id - * The file descriptor to output to. + * @param file + * The file structure containing the file descriptor to output to. * * @return * F_none on success. @@ -1292,7 +1292,7 @@ extern "C" { * @see write() */ #ifndef _di_f_print_to_except_in_dynamic_raw_safely_ - extern f_status_t f_print_to_except_in_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const int id); + extern f_status_t f_print_to_except_in_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file); #endif // _di_f_print_to_except_in_dynamic_raw_safely_ /** @@ -1317,8 +1317,8 @@ extern "C" { * @param except_in * An array of ranges within the string to not print. * The array of ranges is required/assumed to be in linear order. - * @param id - * The file descriptor to output to. + * @param file + * The file structure containing the file descriptor to output to. * * @return * F_none on success. @@ -1345,7 +1345,7 @@ extern "C" { * @see f_utf_is_valid() */ #ifndef _di_f_print_to_except_in_dynamic_safely_ - extern f_status_t f_print_to_except_in_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const int id); + extern f_status_t f_print_to_except_in_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file); #endif // _di_f_print_to_except_in_dynamic_safely_ /** @@ -1375,8 +1375,8 @@ extern "C" { * @param except_in * An array of ranges within the string to not print. * The array of ranges is required/assumed to be in linear order. - * @param id - * The file descriptor to output to. + * @param file + * The file structure containing the file descriptor to output to. * * @return * F_none on success. @@ -1401,7 +1401,7 @@ extern "C" { * @see write() */ #ifndef _di_f_print_to_except_in_raw_ - extern f_status_t f_print_to_except_in_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const int id); + extern f_status_t f_print_to_except_in_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file); #endif // _di_f_print_to_except_in_raw_ /** @@ -1434,8 +1434,8 @@ extern "C" { * @param except_in * An array of ranges within the string to not print. * The array of ranges is required/assumed to be in linear order. - * @param id - * The file descriptor to output to. + * @param file + * The file structure containing the file descriptor to output to. * * @return * F_none on success. @@ -1460,7 +1460,7 @@ extern "C" { * @see write() */ #ifndef _di_f_print_to_except_in_raw_safely_ - extern f_status_t f_print_to_except_in_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const int id); + extern f_status_t f_print_to_except_in_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file); #endif // _di_f_print_to_except_in_raw_safely_ /** @@ -1491,8 +1491,8 @@ extern "C" { * @param except_in * An array of ranges within the string to not print. * The array of ranges is required/assumed to be in linear order. - * @param id - * The file descriptor to output to. + * @param file + * The file structure containing the file descriptor to output to. * * @return * F_none on success. @@ -1519,7 +1519,7 @@ extern "C" { * @see f_utf_is_valid() */ #ifndef _di_f_print_to_except_in_safely_ - extern f_status_t f_print_to_except_in_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const int id); + extern f_status_t f_print_to_except_in_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file); #endif // _di_f_print_to_except_in_safely_ /** @@ -1541,8 +1541,8 @@ extern "C" { * @param except * An array of locations within the given string to not print. * The array of locations is required/assumed to be in linear order. - * @param id - * The file descriptor to output to. + * @param file + * The file structure containing the file descriptor to output to. * * @return * F_none on success. @@ -1567,7 +1567,7 @@ extern "C" { * @see write() */ #ifndef _di_f_print_to_except_raw_ - extern f_status_t f_print_to_except_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, const int id); + extern f_status_t f_print_to_except_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, const f_file_t file); #endif // _di_f_print_to_except_raw_ /** @@ -1594,8 +1594,8 @@ extern "C" { * @param except * An array of locations within the given string to not print. * The array of locations is required/assumed to be in linear order. - * @param id - * The file descriptor to output to. + * @param file + * The file structure containing the file descriptor to output to. * * @return * F_none on success. @@ -1620,7 +1620,7 @@ extern "C" { * @see write() */ #ifndef _di_f_print_to_except_raw_safely_ - extern f_status_t f_print_to_except_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, const int id); + extern f_status_t f_print_to_except_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, const f_file_t file); #endif // _di_f_print_to_except_raw_safely_ /** @@ -1643,8 +1643,8 @@ extern "C" { * @param except * An array of locations within the given string to not print. * The array of locations is required/assumed to be in linear order. - * @param id - * The file descriptor to output to. + * @param file + * The file structure containing the file descriptor to output to. * * @return * F_none on success. @@ -1669,7 +1669,7 @@ extern "C" { * @see write() */ #ifndef _di_f_print_to_except_safely_ - extern f_status_t f_print_to_except_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, const int id); + extern f_status_t f_print_to_except_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, const f_file_t file); #endif // _di_f_print_to_except_safely_ /** @@ -1685,8 +1685,8 @@ extern "C" { * The string to output. * @param length * The total number of characters to print. - * @param id - * The file descriptor to output to. + * @param file + * The file structure containing the file descriptor to output to. * * @return * F_none on success. @@ -1711,7 +1711,7 @@ extern "C" { * @see write() */ #ifndef _di_f_print_to_raw_ - extern f_status_t f_print_to_raw(const f_string_t string, const f_array_length_t length, const int id); + extern f_status_t f_print_to_raw(const f_string_t string, const f_array_length_t length, const f_file_t file); #endif // _di_f_print_to_raw_ /** @@ -1732,8 +1732,8 @@ extern "C" { * The string to output. * @param length * The total number of characters to print. - * @param id - * The file descriptor to output to. + * @param file + * The file structure containing the file descriptor to output to. * * @return * F_none on success. @@ -1758,7 +1758,7 @@ extern "C" { * @see write() */ #ifndef _di_f_print_to_raw_safely_ - extern f_status_t f_print_to_raw_safely(const f_string_t string, const f_array_length_t length, const int id); + extern f_status_t f_print_to_raw_safely(const f_string_t string, const f_array_length_t length, const f_file_t file); #endif // _di_f_print_to_raw_safely_ /** @@ -1772,8 +1772,8 @@ extern "C" { * * @param string * The string to output. - * @param id - * The file descriptor to output to. + * @param file + * The file structure containing the file descriptor to output to. * * @return * F_none on success. @@ -1798,7 +1798,7 @@ extern "C" { * @see write() */ #ifndef _di_f_print_to_raw_terminated_ - extern f_status_t f_print_to_raw_terminated(const f_string_t string, const int id); + extern f_status_t f_print_to_raw_terminated(const f_string_t string, const f_file_t file); #endif // _di_f_print_to_raw_terminated_ /** @@ -1815,8 +1815,8 @@ extern "C" { * The string to output. * @param length * The total number of characters to print. - * @param id - * The file descriptor to output to. + * @param file + * The file structure containing the file descriptor to output to. * * @return * F_none on success. @@ -1841,7 +1841,7 @@ extern "C" { * @see write() */ #ifndef _di_f_print_to_safely_ - extern f_status_t f_print_to_safely(const f_string_t string, const f_array_length_t length, const int id); + extern f_status_t f_print_to_safely(const f_string_t string, const f_array_length_t length, const f_file_t file); #endif // _di_f_print_to_safely_ /** @@ -1857,8 +1857,8 @@ extern "C" { * * @param string * The string to output. - * @param id - * The file descriptor to output to. + * @param file + * The file structure containing the file descriptor to output to. * * @return * F_none on success. @@ -1885,7 +1885,7 @@ extern "C" { * @see f_utf_is_valid() */ #ifndef _di_f_print_to_safely_terminated_ - extern f_status_t f_print_to_safely_terminated(const f_string_t string, const int id); + extern f_status_t f_print_to_safely_terminated(const f_string_t string, const f_file_t file); #endif // _di_f_print_to_safely_terminated_ /** @@ -1898,8 +1898,8 @@ extern "C" { * * @param string * The string to output. - * @param id - * The file descriptor to output to. + * @param file + * The file structure containing the file descriptor to output to. * * @return * F_none on success. @@ -1924,7 +1924,7 @@ extern "C" { * @see write() */ #ifndef _di_f_print_to_terminated_ - extern f_status_t f_print_to_terminated(const f_string_t string, const int id); + extern f_status_t f_print_to_terminated(const f_string_t string, const f_file_t file); #endif // _di_f_print_to_terminated_ #ifdef __cplusplus diff --git a/level_0/f_print/c/private-print.c b/level_0/f_print/c/private-print.c index db599ae..bb73fbe 100644 --- a/level_0/f_print/c/private-print.c +++ b/level_0/f_print/c/private-print.c @@ -6,12 +6,12 @@ extern "C" { #endif #if !defined(_di_f_print_) || !defined(_di_f_print_dynamic_) || !defined(_di_f_print_dynamic_partial_) - f_status_t private_f_print(const f_string_t string, const f_array_length_t length, FILE * const stream) { + f_status_t private_f_print(const f_string_t string, const f_array_length_t length, const f_file_t file) { f_array_length_t total = 0; f_array_length_t count = 0; - clearerr_unlocked(stream); + clearerr_unlocked(file.stream); for (register f_array_length_t i = 0; i < length; ) { @@ -25,8 +25,8 @@ extern "C" { count = 0; do { - count += fwrite_unlocked(string + i + count, 1, total - count, stream); - if (ferror_unlocked(stream)) return F_status_set_error(F_output); + count += fwrite_unlocked(string + i + count, 1, total - count, file.stream); + if (ferror_unlocked(file.stream)) return F_status_set_error(F_output); } while (count < total); @@ -65,7 +65,7 @@ extern "C" { #endif // !defined(_di_f_print_character_safely_get_) || !defined(_di_f_print_dynamic_partial_safely_) || !defined(_di_f_print_dynamic_safely_) || !defined(_di_f_print_except_dynamic_partial_safely_) || !defined(_di_f_print_except_dynamic_safely_) || !defined(_di_f_print_except_in_dynamic_safely_) || !defined(_di_f_print_except_in_dynamic_partial_safely_) || !defined(_di_f_print_except_in_safely_) || !defined(_di_f_print_except_safely_) || !defined(_di_f_print_safely_) || !defined(_di_f_print_safely_terminated_) || !defined(_di_f_print_to_dynamic_partial_safely_) || !defined(_di_f_print_to_dynamic_safely_) || !defined(_di_f_print_to_except_dynamic_partial_safely_) || !defined(_di_f_print_to_except_dynamic_safely_) || !defined(_di_f_print_to_except_in_dynamic_safely_) || !defined(_di_f_print_to_except_in_dynamic_partial_safely_) || !defined(_di_f_print_to_except_in_safely_) || !defined(_di_f_print_to_except_safely_) || !defined(_di_f_print_to_safely_) #if !defined(_di_f_print_except_) || !defined(_di_f_print_except_dynamic_) || !defined(_di_f_print_except_dynamic_partial_) - f_status_t private_f_print_except(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except, FILE * const stream) { + f_status_t private_f_print_except(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except, const f_file_t file) { register f_array_length_t i = offset; f_array_length_t j = 0; @@ -73,7 +73,7 @@ extern "C" { f_array_length_t total = 0; f_array_length_t count = 0; - clearerr_unlocked(stream); + clearerr_unlocked(file.stream); while (i < stop) { @@ -86,8 +86,8 @@ extern "C" { count = 0; do { - count += fwrite_unlocked(string + start + count, 1, total - count, stream); - if (ferror_unlocked(stream)) return F_status_set_error(F_output); + count += fwrite_unlocked(string + start + count, 1, total - count, file.stream); + if (ferror_unlocked(file.stream)) return F_status_set_error(F_output); } while (count < total); @@ -108,8 +108,8 @@ extern "C" { count = 0; do { - count += fwrite_unlocked(string + start + count, 1, total - count, stream); - if (ferror_unlocked(stream)) return F_status_set_error(F_output); + count += fwrite_unlocked(string + start + count, 1, total - count, file.stream); + if (ferror_unlocked(file.stream)) return F_status_set_error(F_output); } while (count < total); @@ -128,7 +128,7 @@ extern "C" { #endif // !defined(_di_f_print_except_) || !defined(_di_f_print_except_dynamic_) || !defined(_di_f_print_except_dynamic_partial_) #if !defined(_di_f_print_except_in_) || !defined(_di_f_print_except_in_dynamic_) || !defined(_di_f_print_except_in_dynamic_partial_) - f_status_t private_f_print_except_in(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream) { + f_status_t private_f_print_except_in(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file) { f_array_length_t i = offset; f_array_length_t at = 0; @@ -137,7 +137,7 @@ extern "C" { f_array_length_t total = 0; f_array_length_t count = 0; - clearerr_unlocked(stream); + clearerr_unlocked(file.stream); while (i < stop) { @@ -150,8 +150,8 @@ extern "C" { count = 0; do { - count += fwrite_unlocked(string + start + count, 1, total - count, stream); - if (ferror_unlocked(stream)) return F_status_set_error(F_output); + count += fwrite_unlocked(string + start + count, 1, total - count, file.stream); + if (ferror_unlocked(file.stream)) return F_status_set_error(F_output); } while (count < total); @@ -173,8 +173,8 @@ extern "C" { count = 0; do { - count += fwrite_unlocked(string + start + count, 1, total - count, stream); - if (ferror_unlocked(stream)) return F_status_set_error(F_output); + count += fwrite_unlocked(string + start + count, 1, total - count, file.stream); + if (ferror_unlocked(file.stream)) return F_status_set_error(F_output); } while (count < total); @@ -197,8 +197,8 @@ extern "C" { count = 0; do { - count += fwrite_unlocked(string + start + count, 1, total - count, stream); - if (ferror_unlocked(stream)) return F_status_set_error(F_output); + count += fwrite_unlocked(string + start + count, 1, total - count, file.stream); + if (ferror_unlocked(file.stream)) return F_status_set_error(F_output); } while (count < total); @@ -217,7 +217,7 @@ extern "C" { #endif // !defined(_di_f_print_except_in_) || !defined(_di_f_print_except_in_dynamic_) || !defined(_di_f_print_except_in_dynamic_partial_) #if !defined(_di_f_print_except_in_raw_) || !defined(_di_f_print_except_in_dynamic_raw_) || !defined(_di_f_print_except_in_dynamic_partial_raw_) - f_status_t private_f_print_except_in_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream) { + f_status_t private_f_print_except_in_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file) { f_array_length_t i = offset; f_array_length_t at = 0; @@ -226,7 +226,7 @@ extern "C" { f_array_length_t total = 0; f_array_length_t count = 0; - clearerr_unlocked(stream); + clearerr_unlocked(file.stream); while (i < stop) { @@ -239,8 +239,8 @@ extern "C" { count = 0; do { - count += fwrite_unlocked(string + start + count, 1, total - count, stream); - if (ferror_unlocked(stream)) return F_status_set_error(F_output); + count += fwrite_unlocked(string + start + count, 1, total - count, file.stream); + if (ferror_unlocked(file.stream)) return F_status_set_error(F_output); } while (count < total); @@ -262,8 +262,8 @@ extern "C" { count = 0; do { - count += fwrite_unlocked(string + start + count, 1, total - count, stream); - if (ferror_unlocked(stream)) return F_status_set_error(F_output); + count += fwrite_unlocked(string + start + count, 1, total - count, file.stream); + if (ferror_unlocked(file.stream)) return F_status_set_error(F_output); } while (count < total); @@ -284,8 +284,8 @@ extern "C" { count = 0; do { - count += fwrite_unlocked(string + start + count, 1, total - count, stream); - if (ferror_unlocked(stream)) return F_status_set_error(F_output); + count += fwrite_unlocked(string + start + count, 1, total - count, file.stream); + if (ferror_unlocked(file.stream)) return F_status_set_error(F_output); } while (count < total); @@ -304,7 +304,7 @@ extern "C" { #endif // !defined(_di_f_print_except_in_raw_) || !defined(_di_f_print_except_in_dynamic_raw_) || !defined(_di_f_print_except_in_dynamic_partial_raw_) #if !defined(_di_f_print_except_in_raw_safely_) || !defined(_di_f_print_except_in_dynamic_raw_safely_) || !defined(_di_f_print_except_in_dynamic_partial_raw_safely_) - f_status_t private_f_print_except_in_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream) { + f_status_t private_f_print_except_in_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file) { f_array_length_t i = offset; f_array_length_t at = 0; @@ -317,7 +317,7 @@ extern "C" { uint8_t width = 0; - clearerr_unlocked(stream); + clearerr_unlocked(file.stream); while (i < stop) { @@ -330,8 +330,8 @@ extern "C" { count = 0; do { - count += fwrite_unlocked(string + start + count, 1, total - count, stream); - if (ferror_unlocked(stream)) return F_status_set_error(F_output); + count += fwrite_unlocked(string + start + count, 1, total - count, file.stream); + if (ferror_unlocked(file.stream)) return F_status_set_error(F_output); } while (count < total); @@ -353,8 +353,8 @@ extern "C" { count = 0; do { - count += fwrite_unlocked(string + start + count, 1, total - count, stream); - if (ferror_unlocked(stream)) return F_status_set_error(F_output); + count += fwrite_unlocked(string + start + count, 1, total - count, file.stream); + if (ferror_unlocked(file.stream)) return F_status_set_error(F_output); } while (count < total); @@ -382,8 +382,8 @@ extern "C" { count = 0; do { - count += fwrite_unlocked(string + start + count, 1, total - count, stream); - if (ferror_unlocked(stream)) return F_status_set_error(F_output); + count += fwrite_unlocked(string + start + count, 1, total - count, file.stream); + if (ferror_unlocked(file.stream)) return F_status_set_error(F_output); } while (count < total); @@ -393,8 +393,8 @@ extern "C" { count = 0; do { - count += fwrite_unlocked(safe.string + count, 1, safe.used - count, stream); - if (ferror_unlocked(stream)) return F_status_set_error(F_output); + count += fwrite_unlocked(safe.string + count, 1, safe.used - count, file.stream); + if (ferror_unlocked(file.stream)) return F_status_set_error(F_output); } while (count < safe.used); @@ -408,8 +408,8 @@ extern "C" { count = 0; do { - count += fwrite_unlocked(string + start + count, 1, total - count, stream); - if (ferror_unlocked(stream)) return F_status_set_error(F_output); + count += fwrite_unlocked(string + start + count, 1, total - count, file.stream); + if (ferror_unlocked(file.stream)) return F_status_set_error(F_output); } while (count < total); @@ -425,8 +425,8 @@ extern "C" { count = 0; do { - count += fwrite_unlocked(string + start + count, 1, total - count, stream); - if (ferror_unlocked(stream)) return F_status_set_error(F_output); + count += fwrite_unlocked(string + start + count, 1, total - count, file.stream); + if (ferror_unlocked(file.stream)) return F_status_set_error(F_output); } while (count < total); } @@ -436,7 +436,7 @@ extern "C" { #endif // !defined(_di_f_print_except_in_raw_safely_) || !defined(_di_f_print_except_in_dynamic_raw_safely_) || !defined(_di_f_print_except_in_dynamic_partial_raw_safely_) #if !defined(_di_f_print_except_in_safely_) || !defined(_di_f_print_except_in_dynamic_safely_) || !defined(_di_f_print_except_in_dynamic_partial_safely_) - f_status_t private_f_print_except_in_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream) { + f_status_t private_f_print_except_in_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file) { f_array_length_t i = offset; f_array_length_t at = 0; @@ -449,7 +449,7 @@ extern "C" { uint8_t width = 0; - clearerr_unlocked(stream); + clearerr_unlocked(file.stream); while (i < stop) { @@ -462,8 +462,8 @@ extern "C" { count = 0; do { - count += fwrite_unlocked(string + start + count, 1, total - count, stream); - if (ferror_unlocked(stream)) return F_status_set_error(F_output); + count += fwrite_unlocked(string + start + count, 1, total - count, file.stream); + if (ferror_unlocked(file.stream)) return F_status_set_error(F_output); } while (count < total); @@ -485,8 +485,8 @@ extern "C" { count = 0; do { - count += fwrite_unlocked(string + start + count, 1, total - count, stream); - if (ferror_unlocked(stream)) return F_status_set_error(F_output); + count += fwrite_unlocked(string + start + count, 1, total - count, file.stream); + if (ferror_unlocked(file.stream)) return F_status_set_error(F_output); } while (count < total); @@ -509,8 +509,8 @@ extern "C" { count = 0; do { - count += fwrite_unlocked(string + start + count, 1, total - count, stream); - if (ferror_unlocked(stream)) return F_status_set_error(F_output); + count += fwrite_unlocked(string + start + count, 1, total - count, file.stream); + if (ferror_unlocked(file.stream)) return F_status_set_error(F_output); } while (count < total); @@ -527,8 +527,8 @@ extern "C" { count = 0; do { - count += fwrite_unlocked(string + start + count, 1, total - count, stream); - if (ferror_unlocked(stream)) return F_status_set_error(F_output); + count += fwrite_unlocked(string + start + count, 1, total - count, file.stream); + if (ferror_unlocked(file.stream)) return F_status_set_error(F_output); } while (count < total); @@ -538,8 +538,8 @@ extern "C" { count = 0; do { - count += fwrite_unlocked(safe.string + count, 1, safe.used - count, stream); - if (ferror_unlocked(stream)) return F_status_set_error(F_output); + count += fwrite_unlocked(safe.string + count, 1, safe.used - count, file.stream); + if (ferror_unlocked(file.stream)) return F_status_set_error(F_output); } while (count < safe.used); @@ -553,8 +553,8 @@ extern "C" { count = 0; do { - count += fwrite_unlocked(string + start + count, 1, total - count, stream); - if (ferror_unlocked(stream)) return F_status_set_error(F_output); + count += fwrite_unlocked(string + start + count, 1, total - count, file.stream); + if (ferror_unlocked(file.stream)) return F_status_set_error(F_output); } while (count < total); @@ -570,8 +570,8 @@ extern "C" { count = 0; do { - count += fwrite_unlocked(string + start + count, 1, total - count, stream); - if (ferror_unlocked(stream)) return F_status_set_error(F_output); + count += fwrite_unlocked(string + start + count, 1, total - count, file.stream); + if (ferror_unlocked(file.stream)) return F_status_set_error(F_output); } while (count < total); } @@ -581,7 +581,7 @@ extern "C" { #endif // !defined(_di_f_print_except_in_safely_) || !defined(_di_f_print_except_in_dynamic_safely_) || !defined(_di_f_print_except_in_dynamic_partial_safely_) #if !defined(_di_f_print_except_raw_) || !defined(_di_f_print_except_dynamic_raw_) || !defined(_di_f_print_except_dynamic_partial_raw_) - f_status_t private_f_print_except_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except, FILE * const stream) { + f_status_t private_f_print_except_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except, const f_file_t file) { register f_array_length_t i = offset; f_array_length_t j = 0; @@ -589,7 +589,7 @@ extern "C" { f_array_length_t total = 0; f_array_length_t count = 0; - clearerr_unlocked(stream); + clearerr_unlocked(file.stream); while (i < stop) { @@ -602,8 +602,8 @@ extern "C" { count = 0; do { - count += fwrite_unlocked(string + start + count, 1, total - count, stream); - if (ferror_unlocked(stream)) return F_status_set_error(F_output); + count += fwrite_unlocked(string + start + count, 1, total - count, file.stream); + if (ferror_unlocked(file.stream)) return F_status_set_error(F_output); } while (count < total); @@ -622,8 +622,8 @@ extern "C" { count = 0; do { - count += fwrite_unlocked(string + start + count, 1, total - count, stream); - if (ferror_unlocked(stream)) return F_status_set_error(F_output); + count += fwrite_unlocked(string + start + count, 1, total - count, file.stream); + if (ferror_unlocked(file.stream)) return F_status_set_error(F_output); } while (count < total); @@ -641,8 +641,8 @@ extern "C" { count = 0; do { - count += fwrite_unlocked(string + start + count, 1, total - count, stream); - if (ferror_unlocked(stream)) return F_status_set_error(F_output); + count += fwrite_unlocked(string + start + count, 1, total - count, file.stream); + if (ferror_unlocked(file.stream)) return F_status_set_error(F_output); } while (count < total); } @@ -652,7 +652,7 @@ extern "C" { #endif // !defined(_di_f_print_except_raw_) || !defined(_di_f_print_except_dynamic_raw_) || !defined(_di_f_print_except_dynamic_partial_raw_) #if !defined(_di_f_print_except_raw_safely_) || !defined(_di_f_print_except_dynamic_raw_) || !defined(_di_f_print_except_dynamic_partial_raw_) - f_status_t private_f_print_except_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except, FILE * const stream) { + f_status_t private_f_print_except_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except, const f_file_t file) { f_array_length_t i = offset; f_array_length_t j = 0; @@ -664,7 +664,7 @@ extern "C" { uint8_t width = 0; - clearerr_unlocked(stream); + clearerr_unlocked(file.stream); while (i < stop) { @@ -677,8 +677,8 @@ extern "C" { count = 0; do { - count += fwrite_unlocked(string + start + count, 1, total - count, stream); - if (ferror_unlocked(stream)) return F_status_set_error(F_output); + count += fwrite_unlocked(string + start + count, 1, total - count, file.stream); + if (ferror_unlocked(file.stream)) return F_status_set_error(F_output); } while (count < total); @@ -704,8 +704,8 @@ extern "C" { count = 0; do { - count += fwrite_unlocked(string + start + count, 1, total - count, stream); - if (ferror_unlocked(stream)) return F_status_set_error(F_output); + count += fwrite_unlocked(string + start + count, 1, total - count, file.stream); + if (ferror_unlocked(file.stream)) return F_status_set_error(F_output); } while (count < total); @@ -715,8 +715,8 @@ extern "C" { count = 0; do { - count += fwrite_unlocked(safe.string + count, 1, safe.used - count, stream); - if (ferror_unlocked(stream)) return F_status_set_error(F_output); + count += fwrite_unlocked(safe.string + count, 1, safe.used - count, file.stream); + if (ferror_unlocked(file.stream)) return F_status_set_error(F_output); } while (count < safe.used); @@ -730,8 +730,8 @@ extern "C" { count = 0; do { - count += fwrite_unlocked(string + start + count, 1, total - count, stream); - if (ferror_unlocked(stream)) return F_status_set_error(F_output); + count += fwrite_unlocked(string + start + count, 1, total - count, file.stream); + if (ferror_unlocked(file.stream)) return F_status_set_error(F_output); } while (count < total); @@ -747,8 +747,8 @@ extern "C" { count = 0; do { - count += fwrite_unlocked(string + start + count, 1, total - count, stream); - if (ferror_unlocked(stream)) return F_status_set_error(F_output); + count += fwrite_unlocked(string + start + count, 1, total - count, file.stream); + if (ferror_unlocked(file.stream)) return F_status_set_error(F_output); } while (count < total); } @@ -758,7 +758,7 @@ extern "C" { #endif // !defined(_di_f_print_except_raw_safely_) || !defined(_di_f_print_except_dynamic_raw_) || !defined(_di_f_print_except_dynamic_partial_raw_) #if !defined(_di_f_print_except_safely_) || !defined(_di_f_print_except_dynamic_safely_) || !defined(_di_f_print_except_dynamic_partial_safely_) - f_status_t private_f_print_except_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except, FILE * const stream) { + f_status_t private_f_print_except_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except, const f_file_t file) { f_array_length_t i = offset; f_array_length_t j = 0; @@ -770,7 +770,7 @@ extern "C" { uint8_t width = 0; - clearerr_unlocked(stream); + clearerr_unlocked(file.stream); while (i < stop) { @@ -783,8 +783,8 @@ extern "C" { count = 0; do { - count += fwrite_unlocked(string + start + count, 1, total - count, stream); - if (ferror_unlocked(stream)) return F_status_set_error(F_output); + count += fwrite_unlocked(string + start + count, 1, total - count, file.stream); + if (ferror_unlocked(file.stream)) return F_status_set_error(F_output); } while (count < total); @@ -805,8 +805,8 @@ extern "C" { count = 0; do { - count += fwrite_unlocked(string + start + count, 1, total - count, stream); - if (ferror_unlocked(stream)) return F_status_set_error(F_output); + count += fwrite_unlocked(string + start + count, 1, total - count, file.stream); + if (ferror_unlocked(file.stream)) return F_status_set_error(F_output); } while (count < total); @@ -823,8 +823,8 @@ extern "C" { count = 0; do { - count += fwrite_unlocked(string + start + count, 1, total - count, stream); - if (ferror_unlocked(stream)) return F_status_set_error(F_output); + count += fwrite_unlocked(string + start + count, 1, total - count, file.stream); + if (ferror_unlocked(file.stream)) return F_status_set_error(F_output); } while (count < total); @@ -834,8 +834,8 @@ extern "C" { count = 0; do { - count += fwrite_unlocked(safe.string + count, 1, safe.used - count, stream); - if (ferror_unlocked(stream)) return F_status_set_error(F_output); + count += fwrite_unlocked(safe.string + count, 1, safe.used - count, file.stream); + if (ferror_unlocked(file.stream)) return F_status_set_error(F_output); } while (count < safe.used); @@ -849,8 +849,8 @@ extern "C" { count = 0; do { - count += fwrite_unlocked(string + start + count, 1, total - count, stream); - if (ferror_unlocked(stream)) return F_status_set_error(F_output); + count += fwrite_unlocked(string + start + count, 1, total - count, file.stream); + if (ferror_unlocked(file.stream)) return F_status_set_error(F_output); } while (count < total); @@ -866,8 +866,8 @@ extern "C" { count = 0; do { - count += fwrite_unlocked(string + start + count, 1, total - count, stream); - if (ferror_unlocked(stream)) return F_status_set_error(F_output); + count += fwrite_unlocked(string + start + count, 1, total - count, file.stream); + if (ferror_unlocked(file.stream)) return F_status_set_error(F_output); } while (count < total); } @@ -877,18 +877,18 @@ extern "C" { #endif // !defined(_di_f_print_except_safely_) || !defined(_di_f_print_except_dynamic_safely_) || !defined(_di_f_print_except_dynamic_partial_safely_) #if !defined(_di_f_print_raw_) || !defined(_di_f_print_raw_dynamic_) || !defined(_di_f_print_raw_dynamic_partial_) - f_status_t private_f_print_raw(const f_string_t string, const f_array_length_t length, FILE * const stream) { + f_status_t private_f_print_raw(const f_string_t string, const f_array_length_t length, const f_file_t file) { f_array_length_t count = 0; - clearerr_unlocked(stream); + clearerr_unlocked(file.stream); if (length < F_print_write_max_d) { count = 0; do { - count += fwrite_unlocked(string + count, 1, length - count, stream); - if (ferror_unlocked(stream)) return F_status_set_error(F_output); + count += fwrite_unlocked(string + count, 1, length - count, file.stream); + if (ferror_unlocked(file.stream)) return F_status_set_error(F_output); } while (count < length); } @@ -899,8 +899,8 @@ extern "C" { count = 0; do { - count += fwrite_unlocked(string + count, 1, F_print_write_max_d - count, stream); - if (ferror_unlocked(stream)) return F_status_set_error(F_output); + count += fwrite_unlocked(string + count, 1, F_print_write_max_d - count, file.stream); + if (ferror_unlocked(file.stream)) return F_status_set_error(F_output); } while (count < F_print_write_max_d); } @@ -908,8 +908,8 @@ extern "C" { count = 0; do { - count += fwrite_unlocked(string + count, 1, length - total - count, stream); - if (ferror_unlocked(stream)) return F_status_set_error(F_output); + count += fwrite_unlocked(string + count, 1, length - total - count, file.stream); + if (ferror_unlocked(file.stream)) return F_status_set_error(F_output); } while (count < length - total); @@ -923,7 +923,7 @@ extern "C" { #endif // !defined(_di_f_print_raw_) || !defined(_di_f_print_raw_dynamic_) || !defined(_di_f_print_raw_dynamic_partial_) #if !defined(_di_f_print_raw_safely_) || !defined(_di_f_print_raw_safely_dynamic_) || !defined(_di_f_print_raw_safely_dynamic_partial_) - f_status_t private_f_print_raw_safely(const f_string_t string, const f_array_length_t length, FILE * const stream) { + f_status_t private_f_print_raw_safely(const f_string_t string, const f_array_length_t length, const f_file_t file) { register f_array_length_t i = 0; f_array_length_t start = 0; @@ -934,7 +934,7 @@ extern "C" { uint8_t width = 0; - clearerr_unlocked(stream); + clearerr_unlocked(file.stream); while (i < length) { @@ -952,8 +952,8 @@ extern "C" { count = 0; do { - count += fwrite_unlocked(string + start + count, 1, total - count, stream); - if (ferror_unlocked(stream)) return F_status_set_error(F_output); + count += fwrite_unlocked(string + start + count, 1, total - count, file.stream); + if (ferror_unlocked(file.stream)) return F_status_set_error(F_output); } while (count < total); @@ -963,8 +963,8 @@ extern "C" { count = 0; do { - count += fwrite_unlocked(safe.string + count, 1, safe.used - count, stream); - if (ferror_unlocked(stream)) return F_status_set_error(F_output); + count += fwrite_unlocked(safe.string + count, 1, safe.used - count, file.stream); + if (ferror_unlocked(file.stream)) return F_status_set_error(F_output); } while (count < safe.used); @@ -978,8 +978,8 @@ extern "C" { count = 0; do { - count += fwrite_unlocked(string + start + count, 1, total - count, stream); - if (ferror_unlocked(stream)) return F_status_set_error(F_output); + count += fwrite_unlocked(string + start + count, 1, total - count, file.stream); + if (ferror_unlocked(file.stream)) return F_status_set_error(F_output); } while (count < total); @@ -995,8 +995,8 @@ extern "C" { count = 0; do { - count += fwrite_unlocked(string + start + count, 1, total - count, stream); - if (ferror_unlocked(stream)) return F_status_set_error(F_output); + count += fwrite_unlocked(string + start + count, 1, total - count, file.stream); + if (ferror_unlocked(file.stream)) return F_status_set_error(F_output); } while (count < total); } @@ -1006,7 +1006,7 @@ extern "C" { #endif // !defined(_di_f_print_raw_safely_) || !defined(_di_f_print_raw_safely_dynamic_) || !defined(_di_f_print_raw_safely_dynamic_partial_) #if !defined(_di_f_print_safely_) || !defined(_di_f_print_safely_dynamic_) || !defined(_di_f_print_safely_dynamic_partial_) - f_status_t private_f_print_safely(const f_string_t string, const f_array_length_t length, FILE * const stream) { + f_status_t private_f_print_safely(const f_string_t string, const f_array_length_t length, const f_file_t file) { register f_array_length_t i = 0; f_array_length_t start = 0; @@ -1017,7 +1017,7 @@ extern "C" { uint8_t width = 0; - clearerr_unlocked(stream); + clearerr_unlocked(file.stream); while (i < length) { @@ -1030,8 +1030,8 @@ extern "C" { count = 0; do { - count += fwrite_unlocked(string + start + count, 1, total - count, stream); - if (ferror_unlocked(stream)) return F_status_set_error(F_output); + count += fwrite_unlocked(string + start + count, 1, total - count, file.stream); + if (ferror_unlocked(file.stream)) return F_status_set_error(F_output); } while (count < total); @@ -1048,8 +1048,8 @@ extern "C" { count = 0; do { - count += fwrite_unlocked(string + start + count, 1, total - count, stream); - if (ferror_unlocked(stream)) return F_status_set_error(F_output); + count += fwrite_unlocked(string + start + count, 1, total - count, file.stream); + if (ferror_unlocked(file.stream)) return F_status_set_error(F_output); } while (count < total); @@ -1059,8 +1059,8 @@ extern "C" { count = 0; do { - count += fwrite_unlocked(safe.string + count, 1, safe.used - count, stream); - if (ferror_unlocked(stream)) return F_status_set_error(F_output); + count += fwrite_unlocked(safe.string + count, 1, safe.used - count, file.stream); + if (ferror_unlocked(file.stream)) return F_status_set_error(F_output); } while (count < total); @@ -1074,8 +1074,8 @@ extern "C" { count = 0; do { - count += fwrite_unlocked(string + start + count, 1, total - count, stream); - if (ferror_unlocked(stream)) return F_status_set_error(F_output); + count += fwrite_unlocked(string + start + count, 1, total - count, file.stream); + if (ferror_unlocked(file.stream)) return F_status_set_error(F_output); } while (count < total); @@ -1091,8 +1091,8 @@ extern "C" { count = 0; do { - count += fwrite_unlocked(string + start + count, 1, total - count, stream); - if (ferror_unlocked(stream)) return F_status_set_error(F_output); + count += fwrite_unlocked(string + start + count, 1, total - count, file.stream); + if (ferror_unlocked(file.stream)) return F_status_set_error(F_output); } while (count < total); } @@ -1104,9 +1104,7 @@ extern "C" { #if !defined(_di_f_print_character_safely_get_) || !defined(_di_f_print_dynamic_partial_safely_) || !defined(_di_f_print_dynamic_safely_) || !defined(_di_f_print_except_dynamic_partial_safely_) || !defined(_di_f_print_except_dynamic_safely_) || !defined(_di_f_print_except_in_dynamic_safely_) || !defined(_di_f_print_except_in_dynamic_partial_safely_) || !defined(_di_f_print_except_in_safely_) || !defined(_di_f_print_except_safely_) || !defined(_di_f_print_raw_safely_) || !defined(_di_f_print_raw_safely_dynamic_) || !defined(_di_f_print_raw_safely_dynamic_partial_) || !defined(_di_f_print_safely_) || !defined(_di_f_print_safely_terminated_) || !defined(_di_f_print_to_dynamic_partial_safely_) || !defined(_di_f_print_to_dynamic_safely_) || !defined(_di_f_print_to_except_dynamic_partial_safely_) || !defined(_di_f_print_to_except_dynamic_safely_) || !defined(_di_f_print_to_except_in_dynamic_safely_) || !defined(_di_f_print_to_except_in_dynamic_partial_safely_) || !defined(_di_f_print_to_except_in_safely_) || !defined(_di_f_print_to_except_safely_) || !defined(_di_f_print_to_safely_) const f_string_static_t private_f_print_safely_get(const f_string_t character, const f_array_length_t width_max) { - if (character[0] == 0x7f) { - return f_print_sequence_delete_s; - } + if (character[0] == 0x7f) return f_print_sequence_delete_s; if (macro_f_utf_byte_width_is(character[0])) { if (f_utf_is_valid(character, width_max) != F_true || f_utf_is_control(character, width_max)) { @@ -1116,25 +1114,23 @@ extern "C" { return f_string_empty_s; } - if (character[0] > 0x1f) { - return f_string_empty_s; - } + if (character[0] > 0x1f) return f_string_empty_s; return f_print_sequence_set_control_s[(unsigned int) character[0]]; } #endif // !defined(_di_f_print_character_safely_get_) || !defined(_di_f_print_dynamic_partial_safely_) || !defined(_di_f_print_dynamic_safely_) || !defined(_di_f_print_except_dynamic_partial_safely_) || !defined(_di_f_print_except_dynamic_safely_) || !defined(_di_f_print_except_in_dynamic_safely_) || !defined(_di_f_print_except_in_dynamic_partial_safely_) || !defined(_di_f_print_except_in_safely_) || !defined(_di_f_print_except_safely_) || !defined(_di_f_print_raw_safely_) || !defined(_di_f_print_raw_safely_dynamic_) || !defined(_di_f_print_raw_safely_dynamic_partial_) || !defined(_di_f_print_safely_) || !defined(_di_f_print_safely_terminated_) || !defined(_di_f_print_to_dynamic_partial_safely_) || !defined(_di_f_print_to_dynamic_safely_) || !defined(_di_f_print_to_except_dynamic_partial_safely_) || !defined(_di_f_print_to_except_dynamic_safely_) || !defined(_di_f_print_to_except_in_dynamic_safely_) || !defined(_di_f_print_to_except_in_dynamic_partial_safely_) || !defined(_di_f_print_to_except_in_safely_) || !defined(_di_f_print_to_except_safely_) || !defined(_di_f_print_to_safely_) #if !defined(_di_f_print_terminated_) || !defined(_di_f_print_raw_terminated_) - f_status_t private_f_print_terminated(const f_string_t string, FILE * const stream) { + f_status_t private_f_print_terminated(const f_string_t string, const f_file_t file) { const size_t length = strlen(string); f_array_length_t count = 0; - clearerr_unlocked(stream); + clearerr_unlocked(file.stream); do { - count += fwrite_unlocked(string + count, 1, length - count, stream); - if (ferror_unlocked(stream)) return F_status_set_error(F_output); + count += fwrite_unlocked(string + count, 1, length - count, file.stream); + if (ferror_unlocked(file.stream)) return F_status_set_error(F_output); } while (count < length); diff --git a/level_0/f_print/c/private-print.h b/level_0/f_print/c/private-print.h index 6e6b616..4c9e8eb 100644 --- a/level_0/f_print/c/private-print.h +++ b/level_0/f_print/c/private-print.h @@ -24,8 +24,8 @@ extern "C" { * The string to output. * @param length * The total number of characters to print. - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -41,7 +41,7 @@ extern "C" { * @see f_print_dynamic_partial() */ #if !defined(_di_f_print_) || !defined(_di_f_print_dynamic_) || !defined(_di_f_print_dynamic_partial_) - extern f_status_t private_f_print(const f_string_t string, const f_array_length_t length, FILE * const stream) F_attribute_visibility_internal_d; + extern f_status_t private_f_print(const f_string_t string, const f_array_length_t length, const f_file_t file) F_attribute_visibility_internal_d; #endif // !defined(_di_f_print_) || !defined(_di_f_print_dynamic_) || !defined(_di_f_print_dynamic_partial_) /** @@ -51,8 +51,8 @@ extern "C" { * * @param character * The character to verify as safe or not. - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -76,7 +76,7 @@ extern "C" { * @see f_print_except_in_dynamic_partial_safely() */ #if !defined(_di_f_print_character_safely_) || !defined(_di_f_print_safely_) || !defined(_di_f_print_safely_dynamic_) || !defined(_di_f_print_safely_dynamic_partial_) || !defined(_di_f_print_safely_terminated_) || !defined(_di_f_print_except_safely_) || !defined(_di_f_print_except_dynamic_safely_) || !defined(_di_f_print_except_dynamic_partial_safely_) || !defined(_di_f_print_except_in_safely_) || !defined(_di_f_print_except_in_dynamic_safely_) || !defined(_di_f_print_except_in_dynamic_partial_safely_) - extern f_status_t private_f_print_character_safely(const f_char_t character, FILE * const stream) F_attribute_visibility_internal_d; + extern f_status_t private_f_print_character_safely(const f_char_t character, const f_file_t file) F_attribute_visibility_internal_d; #endif // !defined(_di_f_print_character_safely_) || !defined(_di_f_print_safely_) || !defined(_di_f_print_safely_dynamic_) || !defined(_di_f_print_safely_dynamic_partial_) || !defined(_di_f_print_safely_terminated_) || !defined(_di_f_print_except_safely_) || !defined(_di_f_print_except_dynamic_safely_) || !defined(_di_f_print_except_dynamic_partial_safely_) || !defined(_di_f_print_except_in_safely_) || !defined(_di_f_print_except_in_dynamic_safely_) || !defined(_di_f_print_except_in_dynamic_partial_safely_) /** @@ -132,8 +132,8 @@ extern "C" { * @param except * An array of locations within the given string to not print. * The array of locations is required/assumed to be in linear order. - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -149,7 +149,7 @@ extern "C" { * @see f_print_except_dynamic_partial() */ #if !defined(_di_f_print_except_) || !defined(_di_f_print_except_dynamic_) || !defined(_di_f_print_except_dynamic_partial_) - extern f_status_t private_f_print_except(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except, FILE * const stream) F_attribute_visibility_internal_d; + extern f_status_t private_f_print_except(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except, const f_file_t file) F_attribute_visibility_internal_d; #endif // !defined(_di_f_print_except_) || !defined(_di_f_print_except_dynamic_) || !defined(_di_f_print_except_dynamic_partial_) /** @@ -169,8 +169,8 @@ extern "C" { * @param except_in * An array of ranges within the string to not print. * The array of ranges is required/assumed to be in linear order. - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -186,7 +186,7 @@ extern "C" { * @see f_print_except_in_dynamic_partial() */ #if !defined(_di_f_print_except_in_) || !defined(_di_f_print_except_dynamic_in_) || !defined(_di_f_print_except_in_dynamic_partial_) - extern f_status_t private_f_print_except_in(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except_at, f_string_ranges_t except_in, FILE * const stream) F_attribute_visibility_internal_d; + extern f_status_t private_f_print_except_in(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except_at, f_string_ranges_t except_in, const f_file_t file) F_attribute_visibility_internal_d; #endif // !defined(_di_f_print_except_in_) || !defined(_di_f_print_except_dynamic_in_) || !defined(_di_f_print_except_in_dynamic_partial_) /** @@ -206,8 +206,8 @@ extern "C" { * @param except_in * An array of ranges within the string to not print. * The array of ranges is required/assumed to be in linear order. - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -223,7 +223,7 @@ extern "C" { * @see f_print_except_in_dynamic_partial_raw() */ #if !defined(_di_f_print_except_in_raw_) || !defined(_di_f_print_except_dynamic_in_raw_) || !defined(_di_f_print_except_in_dynamic_partial_raw_) - extern f_status_t private_f_print_except_in_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except_at, f_string_ranges_t except_in, FILE * const stream) F_attribute_visibility_internal_d; + extern f_status_t private_f_print_except_in_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except_at, f_string_ranges_t except_in, const f_file_t file) F_attribute_visibility_internal_d; #endif // !defined(_di_f_print_except_in_raw_) || !defined(_di_f_print_except_dynamic_in_raw_) || !defined(_di_f_print_except_in_dynamic_partial_raw_) /** @@ -243,8 +243,8 @@ extern "C" { * @param except_in * An array of ranges within the string to not print. * The array of ranges is required/assumed to be in linear order. - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -261,7 +261,7 @@ extern "C" { * @see f_utf_is_valid() */ #if !defined(_di_f_print_except_in_raw_safely_) || !defined(_di_f_print_except_dynamic_in_raw_safely_) || !defined(_di_f_print_except_in_dynamic_partial_raw_safely_) - extern f_status_t private_f_print_except_in_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except_at, f_string_ranges_t except_in, FILE * const stream) F_attribute_visibility_internal_d; + extern f_status_t private_f_print_except_in_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except_at, f_string_ranges_t except_in, const f_file_t file) F_attribute_visibility_internal_d; #endif // !defined(_di_f_print_except_in_raw_safely_) || !defined(_di_f_print_except_dynamic_in_raw_safely_) || !defined(_di_f_print_except_in_dynamic_partial_raw_safely_) /** @@ -281,8 +281,8 @@ extern "C" { * @param except_in * An array of ranges within the string to not print. * The array of ranges is required/assumed to be in linear order. - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -299,7 +299,7 @@ extern "C" { * @see f_utf_is_valid() */ #if !defined(_di_f_print_except_in_safely_) || !defined(_di_f_print_except_dynamic_in_safely_) || !defined(_di_f_print_except_in_dynamic_partial_safely_) - extern f_status_t private_f_print_except_in_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except_at, f_string_ranges_t except_in, FILE * const stream) F_attribute_visibility_internal_d; + extern f_status_t private_f_print_except_in_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except_at, f_string_ranges_t except_in, const f_file_t file) F_attribute_visibility_internal_d; #endif // !defined(_di_f_print_except_in_safely_) || !defined(_di_f_print_except_dynamic_in_safely_) || !defined(_di_f_print_except_in_dynamic_partial_safely_) /** @@ -316,8 +316,8 @@ extern "C" { * @param except * An array of locations within the given string to not print. * The array of locations is required/assumed to be in linear order. - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -333,7 +333,7 @@ extern "C" { * @see f_print_except_dynamic_partial_raw() */ #if !defined(_di_f_print_except_raw_) || !defined(_di_f_print_except_dynamic_raw_) || !defined(_di_f_print_except_dynamic_partial_raw_) - extern f_status_t private_f_print_except_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except, FILE * const stream) F_attribute_visibility_internal_d; + extern f_status_t private_f_print_except_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except, const f_file_t file) F_attribute_visibility_internal_d; #endif // !defined(_di_f_print_except_raw_) || !defined(_di_f_print_except_dynamic_raw_) || !defined(_di_f_print_except_dynamic_partial_raw_) /** @@ -350,8 +350,8 @@ extern "C" { * @param except * An array of locations within the given string to not print. * The array of locations is required/assumed to be in linear order. - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -367,7 +367,7 @@ extern "C" { * @see f_print_except_dynamic_partial_raw_safely() */ #if !defined(_di_f_print_except_raw_safely_) || !defined(_di_f_print_except_dynamic_raw_safely_) || !defined(_di_f_print_except_dynamic_partial_raw_safely_) - extern f_status_t private_f_print_except_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except, FILE * const stream) F_attribute_visibility_internal_d; + extern f_status_t private_f_print_except_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except, const f_file_t file) F_attribute_visibility_internal_d; #endif // !defined(_di_f_print_except_raw_safely_) || !defined(_di_f_print_except_dynamic_raw_safely_) || !defined(_di_f_print_except_dynamic_partial_raw_safely_) /** @@ -384,8 +384,8 @@ extern "C" { * @param except * An array of locations within the given string to not print. * The array of locations is required/assumed to be in linear order. - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -402,7 +402,7 @@ extern "C" { * @see f_utf_is_valid() */ #if !defined(_di_f_print_except_safely_) || !defined(_di_f_print_except_dynamic_safely_) || !defined(_di_f_print_except_dynamic_partial_safely_) - extern f_status_t private_f_print_except_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except, FILE * const stream) F_attribute_visibility_internal_d; + extern f_status_t private_f_print_except_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except, const f_file_t file) F_attribute_visibility_internal_d; #endif // !defined(_di_f_print_except_safely_) || !defined(_di_f_print_except_dynamic_safely_) || !defined(_di_f_print_except_dynamic_partial_safely_) /** @@ -414,8 +414,8 @@ extern "C" { * The string to output. * @param length * The total number of characters to print. - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -431,7 +431,7 @@ extern "C" { * @see f_print_raw_dynamic_partial() */ #if !defined(_di_f_print_raw_) || !defined(_di_f_print_raw_dynamic_) || !defined(_di_f_print_raw_dynamic_partial_) - extern f_status_t private_f_print_raw(const f_string_t string, const f_array_length_t length, FILE * const stream) F_attribute_visibility_internal_d; + extern f_status_t private_f_print_raw(const f_string_t string, const f_array_length_t length, const f_file_t file) F_attribute_visibility_internal_d; #endif // !defined(_di_f_print_raw_) || !defined(_di_f_print_raw_dynamic_) || !defined(_di_f_print_raw_dynamic_partial_) /** @@ -443,8 +443,8 @@ extern "C" { * The string to output. * @param length * The total number of characters to print. - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -461,7 +461,7 @@ extern "C" { * @see f_utf_is_valid() */ #if !defined(_di_f_print_raw_safely_) || !defined(_di_f_print_raw_safely_dynamic_) || !defined(_di_f_print_raw_safely_dynamic_partial_) - extern f_status_t private_f_print_raw_safely(const f_string_t string, const f_array_length_t length, FILE * const stream) F_attribute_visibility_internal_d; + extern f_status_t private_f_print_raw_safely(const f_string_t string, const f_array_length_t length, const f_file_t file) F_attribute_visibility_internal_d; #endif // !defined(_di_f_print_raw_safely_) || !defined(_di_f_print_raw_safely_dynamic_) || !defined(_di_f_print_raw_safely_dynamic_partial_) /** @@ -473,8 +473,8 @@ extern "C" { * The string to output. * @param length * The total number of characters to print. - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -491,7 +491,7 @@ extern "C" { * @see f_utf_is_valid() */ #if !defined(_di_f_print_safely_) || !defined(_di_f_print_safely_dynamic_) || !defined(_di_f_print_safely_dynamic_partial_) - extern f_status_t private_f_print_safely(const f_string_t string, const f_array_length_t length, FILE * const stream) F_attribute_visibility_internal_d; + extern f_status_t private_f_print_safely(const f_string_t string, const f_array_length_t length, const f_file_t file) F_attribute_visibility_internal_d; #endif // !defined(_di_f_print_safely_) || !defined(_di_f_print_safely_dynamic_) || !defined(_di_f_print_safely_dynamic_partial_) /** @@ -546,8 +546,8 @@ extern "C" { * * @param string * The string to output. - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -562,7 +562,7 @@ extern "C" { * @see f_print_raw_terminated() */ #if !defined(_di_f_print_terminated_) || !defined(_di_f_print_raw_terminated_) - extern f_status_t private_f_print_terminated(const f_string_t string, FILE * const stream) F_attribute_visibility_internal_d; + extern f_status_t private_f_print_terminated(const f_string_t string, const f_file_t file) F_attribute_visibility_internal_d; #endif // !defined(_di_f_print_terminated_) || !defined(_di_f_print_raw_terminated_) /** diff --git a/level_0/f_type/c/type.h b/level_0/f_type/c/type.h index bce375d..cf53088 100644 --- a/level_0/f_type/c/type.h +++ b/level_0/f_type/c/type.h @@ -6,6 +6,8 @@ * Licenses: lgpl-2.1-or-later * * Provides datatype definitions. + * + * This does not auto-include type_file.h, which must be manually included when needed. */ #ifndef _F_type_h #define _F_type_h diff --git a/level_0/f_type/c/type_file.h b/level_0/f_type/c/type_file.h new file mode 100644 index 0000000..8d761ef --- /dev/null +++ b/level_0/f_type/c/type_file.h @@ -0,0 +1,83 @@ +/** + * FLL - Level 0 + * + * Project: Type + * API Version: 0.7 + * Licenses: lgpl-2.1-or-later + * + * Provides file-related datatype definitions needed by multiple level_0 projects. + * This should be kept to a bare minimum. + * Most of the file related code should instead be in f_file project. + * + * This is not auto-included by type.h. + * This is done to prevent depending on the stdio.h, unless required. + */ +#ifndef _F_type_file_h +#define _F_type_file_h + +// Libc includes. +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/** + * Provide file defaults needed by f_file_t. + * + * These are intended to be in level 0 project f_file but are defined here due to a requirement by f_file_t. + * + * F_file_default_*: + * - read_size: Default read size in bytes. + * - write_size: Default write size in bytes. + */ +#ifndef _di_f_type_file_defaults_ + #define F_file_default_read_size_d 8192 + #define F_file_default_write_size_d 8192 +#endif // _di_f_type_file_defaults_ + +/** + * Commonly used file related properties. + * + * stream: File stream. + * id: File descriptor, with a value of -1 represents a closed file. + * flag: Flags used for opening the file. + * size_read: The default number of 1-byte characters to read at a time and is often used for the read buffer size. + * size_write: The default number of 1-byte characters to read at a time and is often used for the write buffer size. + */ +#ifndef _di_f_file_t_ + typedef struct { + FILE *stream; + int id; + int flag; + size_t size_read; + size_t size_write; + } f_file_t; + + #define f_file_t_initialize { 0, -1, O_RDONLY, F_file_default_read_size_d, F_file_default_write_size_d } + + #define macro_f_file_t_initialize(stream, id, flag, read_size, write_size) { stream, id, flag, read_size, write_size } + #define macro_f_file_t_initialize2(stream, id, flag) { stream, id, flag, F_file_default_read_size_d, F_file_default_write_size_d } + #define macro_f_file_t_initialize_id(id) { 0, id, O_RDONLY, F_file_default_read_size_d, F_file_default_write_size_d } + #define macro_f_file_t_initialize_stream(stream) { stream, -1, O_RDONLY, F_file_default_read_size_d, F_file_default_write_size_d } + + #define macro_f_file_t_clear(file) \ + file.stream = 0; \ + file.id = -1; \ + file.flag = 0; \ + file.size_read = 0; \ + file.size_write = 0; + + #define macro_f_file_t_reset(file) \ + file.stream = 0; \ + file.id = -1; \ + file.flag = O_RDONLY; \ + file.size_read = F_file_default_read_size_d; \ + file.size_write = F_file_default_write_size_d; +#endif // _di_f_file_t_ + +#ifdef __cplusplus +} // extern "C" +#endif + +#endif // _F_type_file_h diff --git a/level_0/f_type/data/build/settings b/level_0/f_type/data/build/settings index 93052a9..1cb4a2a 100644 --- a/level_0/f_type/data/build/settings +++ b/level_0/f_type/data/build/settings @@ -19,7 +19,7 @@ build_language c build_libraries -lc -build_sources_headers type.h +build_sources_headers type.h type_file.h build_script yes build_shared yes diff --git a/level_1/fl_print/c/print.c b/level_1/fl_print/c/print.c index fcf9012..b41b4ae 100644 --- a/level_1/fl_print/c/print.c +++ b/level_1/fl_print/c/print.c @@ -6,19 +6,19 @@ extern "C" { #endif #ifndef _di_fl_print_format_ - f_status_t fl_print_format(const f_string_t string, FILE * const stream, ...) { + f_status_t fl_print_format(const f_string_t string, const f_file_t file, ...) { #ifndef _di_level_1_parameter_checking_ if (!string) return F_status_set_error(F_parameter); - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_1_parameter_checking_ f_status_t status = F_none; va_list ap; - va_start(ap, stream); + va_start(ap, file); - private_fl_print_format_convert(string, stream, ap, &status); + private_fl_print_format_convert(string, file, ap, &status); va_end(ap); @@ -29,25 +29,25 @@ extern "C" { #endif // _di_fl_print_format_ #ifndef _di_fl_print_format_convert_ - f_string_t fl_print_format_convert(const f_string_t string, FILE * const stream, va_list ap, f_status_t * const status) { + f_string_t fl_print_format_convert(const f_string_t string, const f_file_t file, va_list ap, f_status_t * const status) { #ifndef _di_level_1_parameter_checking_ - if (!stream) return 0; + if (!file.stream) return 0; #endif // _di_level_1_parameter_checking_ - return private_fl_print_format_convert(string, stream, ap, status); + return private_fl_print_format_convert(string, file, ap, status); } #endif // _di_fl_print_format_convert_ #ifndef _di_fl_print_string_va_ - f_status_t fl_print_string_va(const f_string_t string, FILE * const stream, va_list ap) { + f_status_t fl_print_string_va(const f_string_t string, const f_file_t file, va_list ap) { #ifndef _di_level_1_parameter_checking_ if (!string) return F_status_set_error(F_parameter); - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_1_parameter_checking_ f_status_t status = F_none; - private_fl_print_format_convert(string, stream, ap, &status); + private_fl_print_format_convert(string, file, ap, &status); if (F_status_is_error(status)) return status; return F_none; @@ -55,121 +55,105 @@ extern "C" { #endif // _di_fl_print_string_va_ #ifndef _di_fl_print_trim_ - f_status_t fl_print_trim(const f_string_t string, const f_array_length_t length, FILE * const stream) { + f_status_t fl_print_trim(const f_string_t string, const f_array_length_t length, const f_file_t file) { #ifndef _di_level_1_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_1_parameter_checking_ - if (!string || !length) { - return F_data_not; - } + if (!string || !length) return F_data_not; - return private_fl_print_trim(string, length, stream); + return private_fl_print_trim(string, length, file); } #endif // _di_fl_print_trim_ #ifndef _di_fl_print_trim_raw_ - f_status_t fl_print_trim_raw(const f_string_t string, const f_array_length_t length, FILE * const stream) { + f_status_t fl_print_trim_raw(const f_string_t string, const f_array_length_t length, const f_file_t file) { #ifndef _di_level_1_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_1_parameter_checking_ - if (!string || !length) { - return F_data_not; - } + if (!string || !length) return F_data_not; - return private_fl_print_trim_raw(string, length, stream); + return private_fl_print_trim_raw(string, length, file); } #endif // _di_fl_print_trim_raw_ #ifndef _di_fl_print_trim_raw_safely_ - f_status_t fl_print_trim_raw_safely(const f_string_t string, const f_array_length_t length, FILE * const stream) { + f_status_t fl_print_trim_raw_safely(const f_string_t string, const f_array_length_t length, const f_file_t file) { #ifndef _di_level_1_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_1_parameter_checking_ - if (!string || !length) { - return F_data_not; - } + if (!string || !length) return F_data_not; - return private_fl_print_trim_raw_safely(string, length, stream); + return private_fl_print_trim_raw_safely(string, length, file); } #endif // _di_fl_print_trim_raw_safely_ #ifndef _di_fl_print_trim_safely_ - f_status_t fl_print_trim_safely(const f_string_t string, const f_array_length_t length, FILE * const stream) { + f_status_t fl_print_trim_safely(const f_string_t string, const f_array_length_t length, const f_file_t file) { #ifndef _di_level_1_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_1_parameter_checking_ - if (!string || !length) { - return F_data_not; - } + if (!string || !length) return F_data_not; - return private_fl_print_trim_safely(string, length, stream); + return private_fl_print_trim_safely(string, length, file); } #endif // _di_fl_print_trim_safely_ #ifndef _di_fl_print_trim_dynamic_ - f_status_t fl_print_trim_dynamic(const f_string_static_t buffer, FILE * const stream) { + f_status_t fl_print_trim_dynamic(const f_string_static_t buffer, const f_file_t file) { #ifndef _di_level_1_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_1_parameter_checking_ - if (!buffer.used) { - return F_data_not; - } + if (!buffer.used) return F_data_not; - return private_fl_print_trim(buffer.string, buffer.used, stream); + return private_fl_print_trim(buffer.string, buffer.used, file); } #endif // _di_fl_print_trim_dynamic_ #ifndef _di_fl_print_trim_dynamic_raw_ - f_status_t fl_print_trim_dynamic_raw(const f_string_static_t buffer, FILE * const stream) { + f_status_t fl_print_trim_dynamic_raw(const f_string_static_t buffer, const f_file_t file) { #ifndef _di_level_1_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_1_parameter_checking_ - if (!buffer.used) { - return F_data_not; - } + if (!buffer.used) return F_data_not; - return private_fl_print_trim_raw(buffer.string, buffer.used, stream); + return private_fl_print_trim_raw(buffer.string, buffer.used, file); } #endif // _di_fl_print_trim_dynamic_raw_ #ifndef _di_fl_print_trim_dynamic_raw_safely_ - f_status_t fl_print_trim_dynamic_raw_safely(const f_string_static_t buffer, FILE * const stream) { + f_status_t fl_print_trim_dynamic_raw_safely(const f_string_static_t buffer, const f_file_t file) { #ifndef _di_level_1_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_1_parameter_checking_ - if (!buffer.used) { - return F_data_not; - } + if (!buffer.used) return F_data_not; - return private_fl_print_trim_raw_safely(buffer.string, buffer.used, stream); + return private_fl_print_trim_raw_safely(buffer.string, buffer.used, file); } #endif // _di_fl_print_trim_dynamic_raw_safely_ #ifndef _di_fl_print_trim_dynamic_safely_ - f_status_t fl_print_trim_dynamic_safely(const f_string_static_t buffer, FILE * const stream) { + f_status_t fl_print_trim_dynamic_safely(const f_string_static_t buffer, const f_file_t file) { #ifndef _di_level_1_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_1_parameter_checking_ - if (!buffer.used) { - return F_data_not; - } + if (!buffer.used) return F_data_not; - return private_fl_print_trim_safely(buffer.string, buffer.used, stream); + return private_fl_print_trim_safely(buffer.string, buffer.used, file); } #endif // _di_fl_print_trim_dynamic_safely_ #ifndef _di_fl_print_trim_dynamic_partial_ - f_status_t fl_print_trim_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, FILE * const stream) { + f_status_t fl_print_trim_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_file_t file) { #ifndef _di_level_1_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_1_parameter_checking_ if (!buffer.used || range.start > range.stop || range.start >= buffer.used) { @@ -182,14 +166,14 @@ extern "C" { length = buffer.used - range.start; } - return private_fl_print_trim(buffer.string + range.start, length, stream); + return private_fl_print_trim(buffer.string + range.start, length, file); } #endif // _di_fl_print_trim_dynamic_partial_ #ifndef _di_fl_print_trim_dynamic_partial_raw_ - f_status_t fl_print_trim_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, FILE * const stream) { + f_status_t fl_print_trim_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_file_t file) { #ifndef _di_level_1_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_1_parameter_checking_ if (!buffer.used || range.start > range.stop || range.start >= buffer.used) { @@ -202,14 +186,14 @@ extern "C" { length = buffer.used - range.start; } - return private_fl_print_trim_raw(buffer.string + range.start, length, stream); + return private_fl_print_trim_raw(buffer.string + range.start, length, file); } #endif // _di_fl_print_trim_dynamic_partial_raw_ #ifndef _di_fl_print_trim_dynamic_partial_raw_safely_ - f_status_t fl_print_trim_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, FILE * const stream) { + f_status_t fl_print_trim_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_file_t file) { #ifndef _di_level_1_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_1_parameter_checking_ if (!buffer.used || range.start > range.stop || range.start >= buffer.used) { @@ -222,14 +206,14 @@ extern "C" { length = buffer.used - range.start; } - return private_fl_print_trim_raw_safely(buffer.string + range.start, length, stream); + return private_fl_print_trim_raw_safely(buffer.string + range.start, length, file); } #endif // _di_fl_print_trim_dynamic_partial_raw_safely_ #ifndef _di_fl_print_trim_dynamic_partial_safely_ - f_status_t fl_print_trim_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, FILE * const stream) { + f_status_t fl_print_trim_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_file_t file) { #ifndef _di_level_1_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_1_parameter_checking_ if (!buffer.used || range.start > range.stop || range.start >= buffer.used) { @@ -242,254 +226,222 @@ extern "C" { length = buffer.used - range.start; } - return private_fl_print_trim_safely(buffer.string + range.start, length, stream); + return private_fl_print_trim_safely(buffer.string + range.start, length, file); } #endif // _di_fl_print_trim_dynamic_partial_safely_ #ifndef _di_fl_print_trim_except_ - f_status_t fl_print_trim_except(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, FILE * const stream) { + f_status_t fl_print_trim_except(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_file_t file) { #ifndef _di_level_1_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_1_parameter_checking_ - if (!string || !length) { - return F_data_not; - } + if (!string || !length) return F_data_not; const f_string_ranges_t except_in = f_string_ranges_t_initialize; - return private_fl_print_trim_except_in(string, offset, offset + length, except_at, except_in, stream); + return private_fl_print_trim_except_in(string, offset, offset + length, except_at, except_in, file); } #endif // _di_fl_print_trim_except_ #ifndef _di_fl_print_trim_except_raw_ - f_status_t fl_print_trim_except_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, FILE * const stream) { + f_status_t fl_print_trim_except_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_file_t file) { #ifndef _di_level_1_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_1_parameter_checking_ - if (!string || !length) { - return F_data_not; - } + if (!string || !length) return F_data_not; const f_string_ranges_t except_in = f_string_ranges_t_initialize; - return private_fl_print_trim_except_in_raw(string, offset, offset + length, except_at, except_in, stream); + return private_fl_print_trim_except_in_raw(string, offset, offset + length, except_at, except_in, file); } #endif // _di_fl_print_trim_except_raw_ #ifndef _di_fl_print_trim_except_raw_safely_ - f_status_t fl_print_trim_except_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, FILE * const stream) { + f_status_t fl_print_trim_except_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_file_t file) { #ifndef _di_level_1_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_1_parameter_checking_ - if (!string || !length) { - return F_data_not; - } + if (!string || !length) return F_data_not; const f_string_ranges_t except_in = f_string_ranges_t_initialize; - return private_fl_print_trim_except_in_raw_safely(string, offset, offset + length, except_at, except_in, stream); + return private_fl_print_trim_except_in_raw_safely(string, offset, offset + length, except_at, except_in, file); } #endif // _di_fl_print_trim_except_raw_safely_ #ifndef _di_fl_print_trim_except_safely_ - f_status_t fl_print_trim_except_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, FILE * const stream) { + f_status_t fl_print_trim_except_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_file_t file) { #ifndef _di_level_1_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_1_parameter_checking_ - if (!string || !length) { - return F_data_not; - } + if (!string || !length) return F_data_not; const f_string_ranges_t except_in = f_string_ranges_t_initialize; - return private_fl_print_trim_except_in_safely(string, offset, offset + length, except_at, except_in, stream); + return private_fl_print_trim_except_in_safely(string, offset, offset + length, except_at, except_in, file); } #endif // _di_fl_print_trim_except_safely_ #ifndef _di_fl_print_trim_except_dynamic_ - f_status_t fl_print_trim_except_dynamic(const f_string_static_t buffer, const f_array_lengths_t except_at, FILE * const stream) { + f_status_t fl_print_trim_except_dynamic(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_file_t file) { #ifndef _di_level_1_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_1_parameter_checking_ - if (!buffer.used) { - return F_data_not; - } + if (!buffer.used) return F_data_not; const f_string_ranges_t except_in = f_string_ranges_t_initialize; - return private_fl_print_trim_except_in(buffer.string, 0, buffer.used, except_at, except_in, stream); + return private_fl_print_trim_except_in(buffer.string, 0, buffer.used, except_at, except_in, file); } #endif // _di_fl_print_trim_except_dynamic_ #ifndef _di_fl_print_trim_except_dynamic_raw_ - f_status_t fl_print_trim_except_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except_at, FILE * const stream) { + f_status_t fl_print_trim_except_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_file_t file) { #ifndef _di_level_1_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_1_parameter_checking_ - if (!buffer.used) { - return F_data_not; - } + if (!buffer.used) return F_data_not; const f_string_ranges_t except_in = f_string_ranges_t_initialize; - return private_fl_print_trim_except_in_raw(buffer.string, 0, buffer.used, except_at, except_in, stream); + return private_fl_print_trim_except_in_raw(buffer.string, 0, buffer.used, except_at, except_in, file); } #endif // _di_fl_print_trim_except_dynamic_raw_ #ifndef _di_fl_print_trim_except_dynamic_raw_safely_ - f_status_t fl_print_trim_except_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, FILE * const stream) { + f_status_t fl_print_trim_except_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_file_t file) { #ifndef _di_level_1_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_1_parameter_checking_ - if (!buffer.used) { - return F_data_not; - } + if (!buffer.used) return F_data_not; const f_string_ranges_t except_in = f_string_ranges_t_initialize; - return private_fl_print_trim_except_in_raw_safely(buffer.string, 0, buffer.used, except_at, except_in, stream); + return private_fl_print_trim_except_in_raw_safely(buffer.string, 0, buffer.used, except_at, except_in, file); } #endif // _di_fl_print_trim_except_dynamic_raw_safely_ #ifndef _di_fl_print_trim_except_dynamic_safely_ - f_status_t fl_print_trim_except_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, FILE * const stream) { + f_status_t fl_print_trim_except_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_file_t file) { #ifndef _di_level_1_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_1_parameter_checking_ - if (!buffer.used) { - return F_data_not; - } + if (!buffer.used) return F_data_not; const f_string_ranges_t except_in = f_string_ranges_t_initialize; - return private_fl_print_trim_except_in_safely(buffer.string, 0, buffer.used, except_at, except_in, stream); + return private_fl_print_trim_except_in_safely(buffer.string, 0, buffer.used, except_at, except_in, file); } #endif // _di_fl_print_trim_except_dynamic_safely_ #ifndef _di_fl_print_trim_except_in_ - f_status_t fl_print_trim_except_in(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream) { + f_status_t fl_print_trim_except_in(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file) { #ifndef _di_level_1_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_1_parameter_checking_ - if (!string || !length) { - return F_data_not; - } + if (!string || !length) return F_data_not; - return private_fl_print_trim_except_in(string, offset, offset + length, except_at, except_in, stream); + return private_fl_print_trim_except_in(string, offset, offset + length, except_at, except_in, file); } #endif // _di_fl_print_trim_except_in_ #ifndef _di_fl_print_trim_except_in_raw_ - f_status_t fl_print_trim_except_in_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream) { + f_status_t fl_print_trim_except_in_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file) { #ifndef _di_level_1_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_1_parameter_checking_ - if (!string || !length) { - return F_data_not; - } + if (!string || !length) return F_data_not; - return private_fl_print_trim_except_in_raw(string, offset, offset + length, except_at, except_in, stream); + return private_fl_print_trim_except_in_raw(string, offset, offset + length, except_at, except_in, file); } #endif // _di_fl_print_trim_except_in_raw_ #ifndef _di_fl_print_trim_except_in_raw_safely_ - f_status_t fl_print_trim_except_in_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream) { + f_status_t fl_print_trim_except_in_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file) { #ifndef _di_level_1_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_1_parameter_checking_ - if (!string || !length) { - return F_data_not; - } + if (!string || !length) return F_data_not; - return private_fl_print_trim_except_in_raw_safely(string, offset, offset + length, except_at, except_in, stream); + return private_fl_print_trim_except_in_raw_safely(string, offset, offset + length, except_at, except_in, file); } #endif // _di_fl_print_trim_except_in_raw_safely_ #ifndef _di_fl_print_trim_except_in_safely_ - f_status_t fl_print_trim_except_in_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream) { + f_status_t fl_print_trim_except_in_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file) { #ifndef _di_level_1_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_1_parameter_checking_ - if (!string || !length) { - return F_data_not; - } + if (!string || !length) return F_data_not; - return private_fl_print_trim_except_in_safely(string, offset, offset + length, except_at, except_in, stream); + return private_fl_print_trim_except_in_safely(string, offset, offset + length, except_at, except_in, file); } #endif // _di_fl_print_trim_except_in_safely_ #ifndef _di_fl_print_trim_except_in_dynamic_ - f_status_t fl_print_trim_except_in_dynamic(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream) { + f_status_t fl_print_trim_except_in_dynamic(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file) { #ifndef _di_level_1_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_1_parameter_checking_ - if (!buffer.used) { - return F_data_not; - } + if (!buffer.used) return F_data_not; - return private_fl_print_trim_except_in(buffer.string, 0, buffer.used, except_at, except_in, stream); + return private_fl_print_trim_except_in(buffer.string, 0, buffer.used, except_at, except_in, file); } #endif // _di_fl_print_trim_except_in_dynamic_ #ifndef _di_fl_print_trim_except_in_dynamic_raw_ - f_status_t fl_print_trim_except_in_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream) { + f_status_t fl_print_trim_except_in_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file) { #ifndef _di_level_1_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_1_parameter_checking_ - if (!buffer.used) { - return F_data_not; - } + if (!buffer.used) return F_data_not; - return private_fl_print_trim_except_in_raw(buffer.string, 0, buffer.used, except_at, except_in, stream); + return private_fl_print_trim_except_in_raw(buffer.string, 0, buffer.used, except_at, except_in, file); } #endif // _di_fl_print_trim_except_in_dynamic_raw_ #ifndef _di_fl_print_trim_except_in_dynamic_raw_safely_ - f_status_t fl_print_trim_except_in_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream) { + f_status_t fl_print_trim_except_in_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file) { #ifndef _di_level_1_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_1_parameter_checking_ - if (!buffer.used) { - return F_data_not; - } + if (!buffer.used) return F_data_not; - return private_fl_print_trim_except_in_raw_safely(buffer.string, 0, buffer.used, except_at, except_in, stream); + return private_fl_print_trim_except_in_raw_safely(buffer.string, 0, buffer.used, except_at, except_in, file); } #endif // _di_fl_print_trim_except_in_dynamic_raw_safely_ #ifndef _di_fl_print_trim_except_in_dynamic_safely_ - f_status_t fl_print_trim_except_in_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream) { + f_status_t fl_print_trim_except_in_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file) { #ifndef _di_level_1_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_1_parameter_checking_ - if (!buffer.used) { - return F_data_not; - } + if (!buffer.used) return F_data_not; - return private_fl_print_trim_except_in_safely(buffer.string, 0, buffer.used, except_at, except_in, stream); + return private_fl_print_trim_except_in_safely(buffer.string, 0, buffer.used, except_at, except_in, file); } #endif // _di_fl_print_trim_except_in_dynamic_safely_ #ifndef _di_fl_print_trim_except_in_dynamic_partial_ - f_status_t fl_print_trim_except_in_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream) { + f_status_t fl_print_trim_except_in_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file) { #ifndef _di_level_1_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_1_parameter_checking_ if (!buffer.used || range.start > range.stop || range.start >= buffer.used) { @@ -502,14 +454,14 @@ extern "C" { length = buffer.used - range.start; } - return private_fl_print_trim_except_in(buffer.string, range.start, range.start + length, except_at, except_in, stream); + return private_fl_print_trim_except_in(buffer.string, range.start, range.start + length, except_at, except_in, file); } #endif // _di_fl_print_trim_except_in_dynamic_partial_ #ifndef _di_fl_print_trim_except_in_dynamic_partial_raw_ - f_status_t fl_print_trim_except_in_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream) { + f_status_t fl_print_trim_except_in_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file) { #ifndef _di_level_1_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_1_parameter_checking_ if (!buffer.used || range.start > range.stop || range.start >= buffer.used) { @@ -522,14 +474,14 @@ extern "C" { length = buffer.used - range.start; } - return private_fl_print_trim_except_in_raw(buffer.string, range.start, range.start + length, except_at, except_in, stream); + return private_fl_print_trim_except_in_raw(buffer.string, range.start, range.start + length, except_at, except_in, file); } #endif // _di_fl_print_trim_except_in_dynamic_partial_raw_ #ifndef _di_fl_print_trim_except_in_dynamic_partial_raw_safely_ - f_status_t fl_print_trim_except_in_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream) { + f_status_t fl_print_trim_except_in_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file) { #ifndef _di_level_1_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_1_parameter_checking_ if (!buffer.used || range.start > range.stop || range.start >= buffer.used) { @@ -542,14 +494,14 @@ extern "C" { length = buffer.used - range.start; } - return private_fl_print_trim_except_in_raw_safely(buffer.string, range.start, range.start + length, except_at, except_in, stream); + return private_fl_print_trim_except_in_raw_safely(buffer.string, range.start, range.start + length, except_at, except_in, file); } #endif // _di_fl_print_trim_except_in_dynamic_partial_raw_safely_ #ifndef _di_fl_print_trim_except_in_dynamic_partial_safely_ - f_status_t fl_print_trim_except_in_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream) { + f_status_t fl_print_trim_except_in_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file) { #ifndef _di_level_1_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_1_parameter_checking_ if (!buffer.used || range.start > range.stop || range.start >= buffer.used) { @@ -562,14 +514,14 @@ extern "C" { length = buffer.used - range.start; } - return private_fl_print_trim_except_in_safely(buffer.string, range.start, range.start + length, except_at, except_in, stream); + return private_fl_print_trim_except_in_safely(buffer.string, range.start, range.start + length, except_at, except_in, file); } #endif // _di_fl_print_trim_except_in_dynamic_partial_safely_ #ifndef _di_fl_print_trim_except_dynamic_partial_ - f_status_t fl_print_trim_except_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE * const stream) { + f_status_t fl_print_trim_except_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, const f_file_t file) { #ifndef _di_level_1_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_1_parameter_checking_ if (!buffer.used || range.start > range.stop || range.start >= buffer.used) { @@ -584,14 +536,14 @@ extern "C" { const f_string_ranges_t except_in = f_string_ranges_t_initialize; - return private_fl_print_trim_except_in(buffer.string, range.start, range.start + length, except, except_in, stream); + return private_fl_print_trim_except_in(buffer.string, range.start, range.start + length, except, except_in, file); } #endif // _di_fl_print_trim_except_dynamic_partial_ #ifndef _di_fl_print_trim_except_dynamic_partial_raw_ - f_status_t fl_print_trim_except_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE * const stream) { + f_status_t fl_print_trim_except_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, const f_file_t file) { #ifndef _di_level_1_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_1_parameter_checking_ if (!buffer.used || range.start > range.stop || range.start >= buffer.used) { @@ -606,14 +558,14 @@ extern "C" { const f_string_ranges_t except_in = f_string_ranges_t_initialize; - return private_fl_print_trim_except_in_raw(buffer.string, range.start, range.start + length, except, except_in, stream); + return private_fl_print_trim_except_in_raw(buffer.string, range.start, range.start + length, except, except_in, file); } #endif // _di_fl_print_trim_except_dynamic_partial_raw_ #ifndef _di_fl_print_trim_except_dynamic_partial_raw_safely_ - f_status_t fl_print_trim_except_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE * const stream) { + f_status_t fl_print_trim_except_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, const f_file_t file) { #ifndef _di_level_1_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_1_parameter_checking_ if (!buffer.used || range.start > range.stop || range.start >= buffer.used) { @@ -628,14 +580,14 @@ extern "C" { const f_string_ranges_t except_in = f_string_ranges_t_initialize; - return private_fl_print_trim_except_in_raw_safely(buffer.string, range.start, range.start + length, except, except_in, stream); + return private_fl_print_trim_except_in_raw_safely(buffer.string, range.start, range.start + length, except, except_in, file); } #endif // _di_fl_print_trim_except_dynamic_partial_raw_safely_ #ifndef _di_fl_print_trim_except_dynamic_partial_safely_ - f_status_t fl_print_trim_except_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE * const stream) { + f_status_t fl_print_trim_except_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, const f_file_t file) { #ifndef _di_level_1_parameter_checking_ - if (!stream) return F_status_set_error(F_parameter); + if (!file.stream) return F_status_set_error(F_parameter); #endif // _di_level_1_parameter_checking_ if (!buffer.used || range.start > range.stop || range.start >= buffer.used) { @@ -650,7 +602,7 @@ extern "C" { const f_string_ranges_t except_in = f_string_ranges_t_initialize; - return private_fl_print_trim_except_in_safely(buffer.string, range.start, range.start + length, except, except_in, stream); + return private_fl_print_trim_except_in_safely(buffer.string, range.start, range.start + length, except, except_in, file); } #endif // _di_fl_print_trim_except_dynamic_partial_safely_ diff --git a/level_1/fl_print/c/print.h b/level_1/fl_print/c/print.h index 5f9faf8..2c43059 100644 --- a/level_1/fl_print/c/print.h +++ b/level_1/fl_print/c/print.h @@ -17,6 +17,7 @@ // FLL-0 includes. #include +#include #include #include #include @@ -222,7 +223,7 @@ extern "C" { * @see f_print_terminated() */ #ifndef _di_fl_print_format_ - extern f_status_t fl_print_format(const f_string_t string, FILE * const stream, ...); + extern f_status_t fl_print_format(const f_string_t string, const f_file_t file, ...); #endif // _di_fl_print_format_ /** @@ -281,7 +282,7 @@ extern "C" { * @see f_print_terminated() */ #ifndef _di_fl_print_format_convert_ - extern f_string_t fl_print_format_convert(const f_string_t string, FILE * const stream, va_list ap, f_status_t * const status); + extern f_string_t fl_print_format_convert(const f_string_t string, const f_file_t file, va_list ap, f_status_t * const status); #endif // _di_fl_print_format_convert_ /** @@ -330,7 +331,7 @@ extern "C" { * @see fl_print_format() */ #ifndef _di_fl_print_string_va_ - extern f_status_t fl_print_string_va(const f_string_t string, FILE * const stream, va_list ap); + extern f_status_t fl_print_string_va(const f_string_t string, const f_file_t file, va_list ap); #endif // _di_fl_print_string_va_ /** @@ -370,7 +371,7 @@ extern "C" { * @see f_utf_is_whitespace() */ #ifndef _di_fl_print_trim_ - extern f_status_t fl_print_trim(const f_string_t string, const f_array_length_t length, FILE * const stream); + extern f_status_t fl_print_trim(const f_string_t string, const f_array_length_t length, const f_file_t file); #endif // _di_fl_print_trim_ /** @@ -410,7 +411,7 @@ extern "C" { * @see f_utf_is_whitespace() */ #ifndef _di_fl_print_trim_raw_ - extern f_status_t fl_print_trim_raw(const f_string_t string, const f_array_length_t length, FILE * const stream); + extern f_status_t fl_print_trim_raw(const f_string_t string, const f_array_length_t length, const f_file_t file); #endif // _di_fl_print_trim_raw_ /** @@ -452,7 +453,7 @@ extern "C" { * @see f_utf_is_whitespace() */ #ifndef _di_fl_print_trim_raw_safely_ - extern f_status_t fl_print_trim_raw_safely(const f_string_t string, const f_array_length_t length, FILE * const stream); + extern f_status_t fl_print_trim_raw_safely(const f_string_t string, const f_array_length_t length, const f_file_t file); #endif // _di_fl_print_trim_raw_safely_ /** @@ -492,7 +493,7 @@ extern "C" { * @see f_utf_is_whitespace() */ #ifndef _di_fl_print_trim_safely_ - extern f_status_t fl_print_trim_safely(const f_string_t string, const f_array_length_t length, FILE * const stream); + extern f_status_t fl_print_trim_safely(const f_string_t string, const f_array_length_t length, const f_file_t file); #endif // _di_fl_print_trim_safely_ /** @@ -533,7 +534,7 @@ extern "C" { * @see f_utf_is_whitespace() */ #ifndef _di_fl_print_trim_dynamic_ - extern f_status_t fl_print_trim_dynamic(const f_string_static_t buffer, FILE * const stream); + extern f_status_t fl_print_trim_dynamic(const f_string_static_t buffer, const f_file_t file); #endif // _di_fl_print_trim_dynamic_ /** @@ -575,7 +576,7 @@ extern "C" { * @see f_utf_is_whitespace() */ #ifndef _di_fl_print_trim_dynamic_raw_ - extern f_status_t fl_print_trim_dynamic_raw(const f_string_static_t buffer, FILE * const stream); + extern f_status_t fl_print_trim_dynamic_raw(const f_string_static_t buffer, const f_file_t file); #endif // _di_fl_print_trim_dynamic_raw_ /** @@ -618,7 +619,7 @@ extern "C" { * @see f_utf_is_whitespace() */ #ifndef _di_fl_print_trim_dynamic_raw_safely_ - extern f_status_t fl_print_trim_dynamic_raw_safely(const f_string_static_t buffer, FILE * const stream); + extern f_status_t fl_print_trim_dynamic_raw_safely(const f_string_static_t buffer, const f_file_t file); #endif // _di_fl_print_trim_dynamic_raw_safely_ /** @@ -659,7 +660,7 @@ extern "C" { * @see f_utf_is_whitespace() */ #ifndef _di_fl_print_trim_dynamic_safely_ - extern f_status_t fl_print_trim_dynamic_safely(const f_string_static_t buffer, FILE * const stream); + extern f_status_t fl_print_trim_dynamic_safely(const f_string_static_t buffer, const f_file_t file); #endif // _di_fl_print_trim_dynamic_safely_ /** @@ -702,7 +703,7 @@ extern "C" { * @see f_utf_is_whitespace() */ #ifndef _di_fl_print_trim_dynamic_partial_ - extern f_status_t fl_print_trim_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, FILE * const stream); + extern f_status_t fl_print_trim_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_file_t file); #endif // _di_fl_print_trim_dynamic_partial_ /** @@ -746,7 +747,7 @@ extern "C" { * @see f_utf_is_whitespace() */ #ifndef _di_fl_print_trim_dynamic_partial_raw_ - extern f_status_t fl_print_trim_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, FILE * const stream); + extern f_status_t fl_print_trim_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_file_t file); #endif // _di_fl_print_trim_dynamic_partial_raw_ /** @@ -791,7 +792,7 @@ extern "C" { * @see f_utf_is_whitespace() */ #ifndef _di_fl_print_trim_dynamic_partial_raw_safely_ - extern f_status_t fl_print_trim_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, FILE * const stream); + extern f_status_t fl_print_trim_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_file_t file); #endif // _di_fl_print_trim_dynamic_partial_raw_safely_ /** @@ -834,7 +835,7 @@ extern "C" { * @see f_utf_is_whitespace() */ #ifndef _di_fl_print_trim_dynamic_partial_safely_ - extern f_status_t fl_print_trim_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, FILE * const stream); + extern f_status_t fl_print_trim_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_file_t file); #endif // _di_fl_print_trim_dynamic_partial_safely_ /** @@ -882,7 +883,7 @@ extern "C" { * @see f_utf_is_whitespace() */ #ifndef _di_fl_print_trim_except_ - extern f_status_t fl_print_trim_except(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, FILE * const stream); + extern f_status_t fl_print_trim_except(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_file_t file); #endif // _di_fl_print_trim_except_ /** @@ -931,7 +932,7 @@ extern "C" { * @see f_utf_is_whitespace() */ #ifndef _di_fl_print_trim_except_raw_ - extern f_status_t fl_print_trim_except_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, FILE * const stream); + extern f_status_t fl_print_trim_except_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_file_t file); #endif // _di_fl_print_trim_except_raw_ /** @@ -981,7 +982,7 @@ extern "C" { * @see f_utf_is_whitespace() */ #ifndef _di_fl_print_trim_except_raw_safely_ - extern f_status_t fl_print_trim_except_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, FILE * const stream); + extern f_status_t fl_print_trim_except_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_file_t file); #endif // _di_fl_print_trim_except_raw_safely_ /** @@ -1029,7 +1030,7 @@ extern "C" { * @see f_utf_is_whitespace() */ #ifndef _di_fl_print_trim_except_safely_ - extern f_status_t fl_print_trim_except_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, FILE * const stream); + extern f_status_t fl_print_trim_except_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_file_t file); #endif // _di_fl_print_trim_except_safely_ /** @@ -1074,7 +1075,7 @@ extern "C" { * @see f_utf_is_whitespace() */ #ifndef _di_fl_print_trim_except_dynamic_ - extern f_status_t fl_print_trim_except_dynamic(const f_string_static_t buffer, const f_array_lengths_t except_at, FILE * const stream); + extern f_status_t fl_print_trim_except_dynamic(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_file_t file); #endif // _di_fl_print_trim_except_dynamic_ /** @@ -1120,7 +1121,7 @@ extern "C" { * @see f_utf_is_whitespace() */ #ifndef _di_fl_print_trim_except_dynamic_raw_ - extern f_status_t fl_print_trim_except_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except_at, FILE * const stream); + extern f_status_t fl_print_trim_except_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_file_t file); #endif // _di_fl_print_trim_except_dynamic_raw_ /** @@ -1167,7 +1168,7 @@ extern "C" { * @see f_utf_is_whitespace() */ #ifndef _di_fl_print_trim_except_dynamic_raw_safely_ - extern f_status_t fl_print_trim_except_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, FILE * const stream); + extern f_status_t fl_print_trim_except_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_file_t file); #endif // _di_fl_print_trim_except_dynamic_raw_safely_ /** @@ -1212,7 +1213,7 @@ extern "C" { * @see f_utf_is_whitespace() */ #ifndef _di_fl_print_trim_except_dynamic_safely_ - extern f_status_t fl_print_trim_except_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, FILE * const stream); + extern f_status_t fl_print_trim_except_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_file_t file); #endif // _di_fl_print_trim_except_dynamic_safely_ /** @@ -1264,7 +1265,7 @@ extern "C" { * @see f_utf_is_whitespace() */ #ifndef _di_fl_print_trim_except_in_ - extern f_status_t fl_print_trim_except_in(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream); + extern f_status_t fl_print_trim_except_in(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file); #endif // _di_fl_print_trim_except_in_ /** @@ -1317,7 +1318,7 @@ extern "C" { * @see f_utf_is_whitespace() */ #ifndef _di_fl_print_trim_except_in_raw_ - extern f_status_t fl_print_trim_except_in_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream); + extern f_status_t fl_print_trim_except_in_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file); #endif // _di_fl_print_trim_except_in_raw_ /** @@ -1371,7 +1372,7 @@ extern "C" { * @see f_utf_is_whitespace() */ #ifndef _di_fl_print_trim_except_in_raw_safely_ - extern f_status_t fl_print_trim_except_in_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream); + extern f_status_t fl_print_trim_except_in_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file); #endif // _di_fl_print_trim_except_in_raw_safely_ /** @@ -1423,7 +1424,7 @@ extern "C" { * @see f_utf_is_whitespace() */ #ifndef _di_fl_print_trim_except_in_safely_ - extern f_status_t fl_print_trim_except_in_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream); + extern f_status_t fl_print_trim_except_in_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file); #endif // _di_fl_print_trim_except_in_safely_ /** @@ -1474,7 +1475,7 @@ extern "C" { * @see f_utf_is_whitespace() */ #ifndef _di_fl_print_trim_except_in_dynamic_ - extern f_status_t fl_print_trim_except_in_dynamic(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream); + extern f_status_t fl_print_trim_except_in_dynamic(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file); #endif // _di_fl_print_trim_except_in_dynamic_ /** @@ -1524,7 +1525,7 @@ extern "C" { * @see f_utf_is_whitespace() */ #ifndef _di_fl_print_trim_except_in_dynamic_raw_ - extern f_status_t fl_print_trim_except_in_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream); + extern f_status_t fl_print_trim_except_in_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file); #endif // _di_fl_print_trim_except_in_dynamic_raw_ /** @@ -1575,7 +1576,7 @@ extern "C" { * @see f_utf_is_whitespace() */ #ifndef _di_fl_print_trim_except_in_dynamic_raw_safely_ - extern f_status_t fl_print_trim_except_in_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream); + extern f_status_t fl_print_trim_except_in_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file); #endif // _di_fl_print_trim_except_in_dynamic_raw_safely_ /** @@ -1624,7 +1625,7 @@ extern "C" { * @see f_utf_is_whitespace() */ #ifndef _di_fl_print_trim_except_in_dynamic_safely_ - extern f_status_t fl_print_trim_except_in_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream); + extern f_status_t fl_print_trim_except_in_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file); #endif // _di_fl_print_trim_except_in_dynamic_safely_ /** @@ -1675,7 +1676,7 @@ extern "C" { * @see f_utf_is_whitespace() */ #ifndef _di_fl_print_trim_except_in_dynamic_partial_ - extern f_status_t fl_print_trim_except_in_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream); + extern f_status_t fl_print_trim_except_in_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file); #endif // _di_fl_print_trim_except_in_dynamic_partial_ /** @@ -1726,7 +1727,7 @@ extern "C" { * @see f_utf_is_whitespace() */ #ifndef _di_fl_print_trim_except_in_dynamic_partial_raw_ - extern f_status_t fl_print_trim_except_in_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream); + extern f_status_t fl_print_trim_except_in_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file); #endif // _di_fl_print_trim_except_in_dynamic_partial_raw_ /** @@ -1779,7 +1780,7 @@ extern "C" { * @see f_utf_is_whitespace() */ #ifndef _di_fl_print_trim_except_in_dynamic_partial_raw_safely_ - extern f_status_t fl_print_trim_except_in_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream); + extern f_status_t fl_print_trim_except_in_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file); #endif // _di_fl_print_trim_except_in_dynamic_partial_raw_safely_ /** @@ -1830,7 +1831,7 @@ extern "C" { * @see f_utf_is_whitespace() */ #ifndef _di_fl_print_trim_except_in_dynamic_partial_safely_ - extern f_status_t fl_print_trim_except_in_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream); + extern f_status_t fl_print_trim_except_in_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file); #endif // _di_fl_print_trim_except_in_dynamic_partial_safely_ /** @@ -1877,7 +1878,7 @@ extern "C" { * @see f_utf_is_whitespace() */ #ifndef _di_fl_print_trim_except_dynamic_partial_ - extern f_status_t fl_print_trim_except_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE * const stream); + extern f_status_t fl_print_trim_except_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, const f_file_t file); #endif // _di_fl_print_trim_except_dynamic_partial_ /** @@ -1924,7 +1925,7 @@ extern "C" { * @see f_utf_is_whitespace() */ #ifndef _di_fl_print_trim_except_dynamic_partial_raw_ - extern f_status_t fl_print_trim_except_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE * const stream); + extern f_status_t fl_print_trim_except_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, const f_file_t file); #endif // _di_fl_print_trim_except_dynamic_partial_raw_ /** @@ -1973,7 +1974,7 @@ extern "C" { * @see f_utf_is_whitespace() */ #ifndef _di_fl_print_trim_except_dynamic_partial_raw_safely_ - extern f_status_t fl_print_trim_except_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE * const stream); + extern f_status_t fl_print_trim_except_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, const f_file_t file); #endif // _di_fl_print_trim_except_dynamic_partial_raw_safely_ /** @@ -2020,7 +2021,7 @@ extern "C" { * @see f_utf_is_whitespace() */ #ifndef _di_fl_print_trim_except_dynamic_partial_safely_ - extern f_status_t fl_print_trim_except_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE * const stream); + extern f_status_t fl_print_trim_except_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, const f_file_t file); #endif // _di_fl_print_trim_except_dynamic_partial_safely_ #ifdef __cplusplus diff --git a/level_1/fl_print/c/private-print.c b/level_1/fl_print/c/private-print.c index 871d09a..29c28dc 100644 --- a/level_1/fl_print/c/private-print.c +++ b/level_1/fl_print/c/private-print.c @@ -6,7 +6,7 @@ extern "C" { #endif #if !defined(_di_fl_print_format_) || !defined(_di_fl_print_format_convert_) - f_string_t private_fl_print_format_convert(f_string_t string, FILE * const stream, va_list ap, f_status_t * const status) { + f_string_t private_fl_print_format_convert(f_string_t string, const f_file_t file, va_list ap, f_status_t * const status) { // Due to the technical design of the va_list, this must be created, copied, and ended within this function. va_list apl; @@ -65,7 +65,7 @@ extern "C" { // The first percent found represents a literal '%' to be printed, otherwise return as invalid. if (string == start) { - if (fwrite_unlocked(f_string_ascii_percent_s.string, 1, f_string_ascii_percent_s.used, stream) < f_string_ascii_percent_s.used) { + if (fwrite_unlocked(f_string_ascii_percent_s.string, 1, f_string_ascii_percent_s.used, file.stream) < f_string_ascii_percent_s.used) { *status = F_status_set_error(F_output); } } @@ -233,7 +233,7 @@ extern "C" { if (*string == f_string_ascii_C_s.string[0]) { f_char_t value[1] = { (f_char_t) va_arg(apl, int) }; - *status = f_print_safely(value, 1, stream); + *status = f_print_safely(value, 1, file); break; } @@ -340,10 +340,10 @@ extern "C" { } if (flag & F_print_format_flag_trim_d) { - *status = private_fl_print_trim_except_in_safely(value.string, partial.start, length, except_at, except_in, stream); + *status = private_fl_print_trim_except_in_safely(value.string, partial.start, length, except_at, except_in, file); } else { - *status = f_print_except_in_safely(value.string, partial.start, length, except_at, except_in, stream); + *status = f_print_except_in_safely(value.string, partial.start, length, except_at, except_in, file); } } else if (flag & F_print_format_flag_ignore_range_d) { @@ -363,10 +363,10 @@ extern "C" { } if (flag & F_print_format_flag_trim_d) { - *status = private_fl_print_trim_except_in_safely(value.string, partial.start, length, except_at, except_in, stream); + *status = private_fl_print_trim_except_in_safely(value.string, partial.start, length, except_at, except_in, file); } else { - *status = f_print_except_in_safely(value.string, partial.start, length, except_at, except_in, stream); + *status = f_print_except_in_safely(value.string, partial.start, length, except_at, except_in, file); } } else { @@ -383,10 +383,10 @@ extern "C" { } if (flag & F_print_format_flag_trim_d) { - *status = private_fl_print_trim_safely(value.string + partial.start, length, stream); + *status = private_fl_print_trim_safely(value.string + partial.start, length, file); } else { - *status = f_print_safely(value.string + partial.start, length, stream); + *status = f_print_safely(value.string + partial.start, length, file); } } } @@ -399,10 +399,10 @@ extern "C" { } if (flag & F_print_format_flag_trim_d) { - *status = private_fl_print_trim_except_in_safely(value.string, 0, value.used, except_at, except_in, stream); + *status = private_fl_print_trim_except_in_safely(value.string, 0, value.used, except_at, except_in, file); } else { - *status = f_print_except_in_dynamic_safely(value, except_at, except_in, stream); + *status = f_print_except_in_dynamic_safely(value, except_at, except_in, file); } } else if (flag & F_print_format_flag_ignore_range_d) { @@ -410,18 +410,18 @@ extern "C" { const f_string_ranges_t except_in = va_arg(apl, f_string_ranges_t); if (flag & F_print_format_flag_trim_d) { - *status = private_fl_print_trim_except_in_safely(value.string, 0, value.used, except_at, except_in, stream); + *status = private_fl_print_trim_except_in_safely(value.string, 0, value.used, except_at, except_in, file); } else { - *status = f_print_except_in_dynamic_safely(value, except_at, except_in, stream); + *status = f_print_except_in_dynamic_safely(value, except_at, except_in, file); } } else { if (flag & F_print_format_flag_trim_d) { - *status = private_fl_print_trim_safely(value.string, value.used, stream); + *status = private_fl_print_trim_safely(value.string, value.used, file); } else { - *status = f_print_dynamic_safely(value, stream); + *status = f_print_dynamic_safely(value, file); } } @@ -454,10 +454,10 @@ extern "C" { } if (flag & F_print_format_flag_trim_d) { - *status = private_fl_print_trim_except_in_raw_safely(value.string, partial.start, length, except_at, except_in, stream); + *status = private_fl_print_trim_except_in_raw_safely(value.string, partial.start, length, except_at, except_in, file); } else { - *status = f_print_except_in_raw_safely(value.string, partial.start, length, except_at, except_in, stream); + *status = f_print_except_in_raw_safely(value.string, partial.start, length, except_at, except_in, file); } } else if (flag & F_print_format_flag_ignore_range_d) { @@ -477,10 +477,10 @@ extern "C" { } if (flag & F_print_format_flag_trim_d) { - *status = private_fl_print_trim_except_in_raw_safely(value.string, partial.start, length, except_at, except_in, stream); + *status = private_fl_print_trim_except_in_raw_safely(value.string, partial.start, length, except_at, except_in, file); } else { - *status = f_print_except_in_raw_safely(value.string, partial.start, length, except_at, except_in, stream); + *status = f_print_except_in_raw_safely(value.string, partial.start, length, except_at, except_in, file); } } else { @@ -497,10 +497,10 @@ extern "C" { } if (flag & F_print_format_flag_trim_d) { - *status = private_fl_print_trim_raw_safely(value.string + partial.start, length, stream); + *status = private_fl_print_trim_raw_safely(value.string + partial.start, length, file); } else { - *status = f_print_raw_safely(value.string + partial.start, length, stream); + *status = f_print_raw_safely(value.string + partial.start, length, file); } } } @@ -513,10 +513,10 @@ extern "C" { } if (flag & F_print_format_flag_trim_d) { - *status = private_fl_print_trim_except_in_raw_safely(value.string, 0, value.used, except_at, except_in, stream); + *status = private_fl_print_trim_except_in_raw_safely(value.string, 0, value.used, except_at, except_in, file); } else { - *status = f_print_except_in_dynamic_raw_safely(value, except_at, except_in, stream); + *status = f_print_except_in_dynamic_raw_safely(value, except_at, except_in, file); } } else if (flag & F_print_format_flag_ignore_range_d) { @@ -524,18 +524,18 @@ extern "C" { const f_string_ranges_t except_in = va_arg(apl, f_string_ranges_t); if (flag & F_print_format_flag_trim_d) { - *status = private_fl_print_trim_except_in_raw_safely(value.string, 0, value.used, except_at, except_in, stream); + *status = private_fl_print_trim_except_in_raw_safely(value.string, 0, value.used, except_at, except_in, file); } else { - *status = f_print_except_in_dynamic_raw_safely(value, except_at, except_in, stream); + *status = f_print_except_in_dynamic_raw_safely(value, except_at, except_in, file); } } else { if (flag & F_print_format_flag_trim_d) { - *status = private_fl_print_trim_raw_safely(value.string, value.used, stream); + *status = private_fl_print_trim_raw_safely(value.string, value.used, file); } else { - *status = f_print_dynamic_raw_safely(value, stream); + *status = f_print_dynamic_raw_safely(value, file); } } @@ -544,7 +544,7 @@ extern "C" { else if (*string == f_string_ascii_S_s.string[0]) { const f_string_t value = va_arg(apl, f_string_t); - *status = f_print_safely_terminated(value, stream); + *status = f_print_safely_terminated(value, file); break; } @@ -592,7 +592,7 @@ extern "C" { const f_color_set_t value = va_arg(apl, f_color_set_t); if (value.before) { - *status = f_print_dynamic_raw(*value.before, stream); + *status = f_print_dynamic_raw(*value.before, file); } break; @@ -601,7 +601,7 @@ extern "C" { const f_color_set_t value = va_arg(apl, f_color_set_t); if (value.after) { - *status = f_print_dynamic_raw(*value.after, stream); + *status = f_print_dynamic_raw(*value.after, file); } break; @@ -626,7 +626,7 @@ extern "C" { if (*string == f_string_ascii_c_s.string[0]) { const f_char_t value = (f_char_t) va_arg(apl, uint32_t); - if (!fputc_unlocked(value, stream)) { + if (!fputc_unlocked(value, file.stream)) { *status = F_status_set_error(F_output); } @@ -732,10 +732,10 @@ extern "C" { } if (flag & F_print_format_flag_trim_d) { - *status = private_fl_print_trim_except_in(value.string, partial.start, length, except_at, except_in, stream); + *status = private_fl_print_trim_except_in(value.string, partial.start, length, except_at, except_in, file); } else { - *status = f_print_except_in(value.string, partial.start, length, except_at, except_in, stream); + *status = f_print_except_in(value.string, partial.start, length, except_at, except_in, file); } } else if (flag & F_print_format_flag_ignore_range_d) { @@ -755,10 +755,10 @@ extern "C" { } if (flag & F_print_format_flag_trim_d) { - *status = private_fl_print_trim_except_in(value.string, partial.start, length, except_at, except_in, stream); + *status = private_fl_print_trim_except_in(value.string, partial.start, length, except_at, except_in, file); } else { - *status = f_print_except_in(value.string, partial.start, length, except_at, except_in, stream); + *status = f_print_except_in(value.string, partial.start, length, except_at, except_in, file); } } else { @@ -775,10 +775,10 @@ extern "C" { } if (flag & F_print_format_flag_trim_d) { - *status = private_fl_print_trim(value.string + partial.start, length, stream); + *status = private_fl_print_trim(value.string + partial.start, length, file); } else { - *status = f_print(value.string + partial.start, length, stream); + *status = f_print(value.string + partial.start, length, file); } } } @@ -791,10 +791,10 @@ extern "C" { } if (flag & F_print_format_flag_trim_d) { - *status = private_fl_print_trim_except_in(value.string, 0, value.used, except_at, except_in, stream); + *status = private_fl_print_trim_except_in(value.string, 0, value.used, except_at, except_in, file); } else { - *status = f_print_except_in_dynamic(value, except_at, except_in, stream); + *status = f_print_except_in_dynamic(value, except_at, except_in, file); } } else if (flag & F_print_format_flag_ignore_range_d) { @@ -802,18 +802,18 @@ extern "C" { const f_string_ranges_t except_in = va_arg(apl, f_string_ranges_t); if (flag & F_print_format_flag_trim_d) { - *status = private_fl_print_trim_except_in(value.string, 0, value.used, except_at, except_in, stream); + *status = private_fl_print_trim_except_in(value.string, 0, value.used, except_at, except_in, file); } else { - *status = f_print_except_in_dynamic(value, except_at, except_in, stream); + *status = f_print_except_in_dynamic(value, except_at, except_in, file); } } else { if (flag & F_print_format_flag_trim_d) { - *status = private_fl_print_trim(value.string, value.used, stream); + *status = private_fl_print_trim(value.string, value.used, file); } else { - *status = f_print_dynamic(value, stream); + *status = f_print_dynamic(value, file); } } @@ -853,10 +853,10 @@ extern "C" { } if (flag & F_print_format_flag_trim_d) { - *status = private_fl_print_trim_except_in_raw(value.string, partial.start, length, except_at, except_in, stream); + *status = private_fl_print_trim_except_in_raw(value.string, partial.start, length, except_at, except_in, file); } else { - *status = f_print_except_in_raw(value.string, partial.start, length, except_at, except_in, stream); + *status = f_print_except_in_raw(value.string, partial.start, length, except_at, except_in, file); } } else if (flag & F_print_format_flag_ignore_range_d) { @@ -876,10 +876,10 @@ extern "C" { } if (flag & F_print_format_flag_trim_d) { - *status = private_fl_print_trim_except_in_raw(value.string, partial.start, length, except_at, except_in, stream); + *status = private_fl_print_trim_except_in_raw(value.string, partial.start, length, except_at, except_in, file); } else { - *status = f_print_except_in_raw(value.string, partial.start, length, except_at, except_in, stream); + *status = f_print_except_in_raw(value.string, partial.start, length, except_at, except_in, file); } } else { @@ -896,10 +896,10 @@ extern "C" { } if (flag & F_print_format_flag_trim_d) { - *status = private_fl_print_trim_raw(value.string + partial.start, length, stream); + *status = private_fl_print_trim_raw(value.string + partial.start, length, file); } else { - *status = f_print_raw(value.string + partial.start, length, stream); + *status = f_print_raw(value.string + partial.start, length, file); } } } @@ -912,10 +912,10 @@ extern "C" { } if (flag & F_print_format_flag_trim_d) { - *status = private_fl_print_trim_except_in_raw(value.string, 0, value.used, except_at, except_in, stream); + *status = private_fl_print_trim_except_in_raw(value.string, 0, value.used, except_at, except_in, file); } else { - *status = f_print_except_in_dynamic_raw(value, except_at, except_in, stream); + *status = f_print_except_in_dynamic_raw(value, except_at, except_in, file); } } else if (flag & F_print_format_flag_ignore_range_d) { @@ -923,18 +923,18 @@ extern "C" { const f_string_ranges_t except_in = va_arg(apl, f_string_ranges_t); if (flag & F_print_format_flag_trim_d) { - *status = private_fl_print_trim_except_in_raw(value.string, 0, value.used, except_at, except_in, stream); + *status = private_fl_print_trim_except_in_raw(value.string, 0, value.used, except_at, except_in, file); } else { - *status = f_print_except_in_dynamic_raw(value, except_at, except_in, stream); + *status = f_print_except_in_dynamic_raw(value, except_at, except_in, file); } } else { if (flag & F_print_format_flag_trim_d) { - *status = private_fl_print_trim_raw(value.string, value.used, stream); + *status = private_fl_print_trim_raw(value.string, value.used, file); } else { - *status = f_print_dynamic_raw(value, stream); + *status = f_print_dynamic_raw(value, file); } } @@ -943,7 +943,7 @@ extern "C" { else if (*string == f_string_ascii_s_s.string[0]) { const f_string_t value = va_arg(apl, f_string_t); - *status = f_print_terminated(value, stream); + *status = f_print_terminated(value, file); break; } @@ -1030,49 +1030,49 @@ extern "C" { if (type == f_print_format_type_signed_8_e) { const int8_t value = (int8_t) va_arg(apl, signed int); - *status = f_conversion_number_signed_print((f_number_signed_t) value, conversion_data, stream); + *status = f_conversion_number_signed_print((f_number_signed_t) value, conversion_data, file); } else if (type == f_print_format_type_signed_16_e) { const int16_t value = (int16_t) va_arg(apl, signed int); - *status = f_conversion_number_signed_print((f_number_signed_t) value, conversion_data, stream); + *status = f_conversion_number_signed_print((f_number_signed_t) value, conversion_data, file); } else if (type == f_print_format_type_signed_32_e) { - *status = f_conversion_number_signed_print((f_number_signed_t) va_arg(apl, int32_t), conversion_data, stream); + *status = f_conversion_number_signed_print((f_number_signed_t) va_arg(apl, int32_t), conversion_data, file); } else if (type == f_print_format_type_signed_64_e) { - *status = f_conversion_number_signed_print((f_number_signed_t) va_arg(apl, int64_t), conversion_data, stream); + *status = f_conversion_number_signed_print((f_number_signed_t) va_arg(apl, int64_t), conversion_data, file); } else if (type == f_print_format_type_signed_128_e) { - *status = f_conversion_number_signed_print((f_number_signed_t) va_arg(apl, f_int_128_t), conversion_data, stream); + *status = f_conversion_number_signed_print((f_number_signed_t) va_arg(apl, f_int_128_t), conversion_data, file); } else if (type == f_print_format_type_signed_number_e) { - *status = f_conversion_number_signed_print(va_arg(apl, f_number_signed_t), conversion_data, stream); + *status = f_conversion_number_signed_print(va_arg(apl, f_number_signed_t), conversion_data, file); } else if (type == f_print_format_type_size_e) { - *status = f_conversion_number_unsigned_print((f_number_unsigned_t) va_arg(apl, size_t), conversion_data, stream); + *status = f_conversion_number_unsigned_print((f_number_unsigned_t) va_arg(apl, size_t), conversion_data, file); } else if (type == f_print_format_type_unsigned_8_e) { const uint8_t value = (uint8_t) va_arg(apl, unsigned int); - *status = f_conversion_number_unsigned_print((f_number_unsigned_t) value, conversion_data, stream); + *status = f_conversion_number_unsigned_print((f_number_unsigned_t) value, conversion_data, file); } else if (type == f_print_format_type_unsigned_16_e) { const uint16_t value = (uint16_t) va_arg(apl, unsigned int); - *status = f_conversion_number_unsigned_print((f_number_unsigned_t) value, conversion_data, stream); + *status = f_conversion_number_unsigned_print((f_number_unsigned_t) value, conversion_data, file); } else if (type == f_print_format_type_unsigned_32_e) { - *status = f_conversion_number_unsigned_print((f_number_unsigned_t) va_arg(apl, uint32_t), conversion_data, stream); + *status = f_conversion_number_unsigned_print((f_number_unsigned_t) va_arg(apl, uint32_t), conversion_data, file); } else if (type == f_print_format_type_unsigned_64_e) { - *status = f_conversion_number_unsigned_print((f_number_unsigned_t) va_arg(apl, uint64_t), conversion_data, stream); + *status = f_conversion_number_unsigned_print((f_number_unsigned_t) va_arg(apl, uint64_t), conversion_data, file); } else if (type == f_print_format_type_unsigned_128_e) { - *status = f_conversion_number_unsigned_print((f_number_unsigned_t) va_arg(apl, f_uint_128_t), conversion_data, stream); + *status = f_conversion_number_unsigned_print((f_number_unsigned_t) va_arg(apl, f_uint_128_t), conversion_data, file); } else if (type == f_print_format_type_unsigned_number_e) { - *status = f_conversion_number_unsigned_print(va_arg(apl, f_number_unsigned_t), conversion_data, stream); + *status = f_conversion_number_unsigned_print(va_arg(apl, f_number_unsigned_t), conversion_data, file); } else if (type == f_print_format_type_double_32_e || type == f_print_format_type_double_64_e) { unsigned int f = 0; @@ -1165,7 +1165,7 @@ extern "C" { } } - *status = f_print_terminated(buffer, stream); + *status = f_print_terminated(buffer, file); } va_end(apl); @@ -1182,7 +1182,7 @@ extern "C" { } } else { - if (!fputc_unlocked(*string, stream)) break; + if (!fputc_unlocked(*string, file.stream)) break; } } // for @@ -1193,7 +1193,7 @@ extern "C" { #endif // !defined(_di_fl_print_format_) || !defined(_di_fl_print_format_convert_) #if !defined(_di_fl_print_format_) || !defined(_di_fl_print_format_convert_) || !defined(_di_fl_print_trim_except_) || !defined(_di_fl_print_trim_except_dynamic_) || !defined(_di_fl_print_trim_except_dynamic_partial_) || !defined(_di_fl_print_trim_except_in_) || !defined(_di_fl_print_trim_except_in_dynamic_) || !defined(_di_fl_print_trim_except_in_dynamic_partial_) - f_status_t private_fl_print_trim_except_in(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream) { + f_status_t private_fl_print_trim_except_in(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file) { f_array_length_t i = offset; f_array_length_t j = 0; @@ -1415,7 +1415,7 @@ extern "C" { return F_status_set_error(F_complete_not_utf_stop); } - if (fwrite_unlocked(string + i, 1, macro_f_utf_byte_width(string[i]), stream) < macro_f_utf_byte_width(string[i])) { + if (fwrite_unlocked(string + i, 1, macro_f_utf_byte_width(string[i]), file.stream) < macro_f_utf_byte_width(string[i])) { return F_status_set_error(F_output); } @@ -1449,7 +1449,7 @@ extern "C" { return F_status_set_error(F_utf_not); } - if (fwrite_unlocked(string + i, 1, macro_f_utf_byte_width(string[i]), stream) < macro_f_utf_byte_width(string[i])) { + if (fwrite_unlocked(string + i, 1, macro_f_utf_byte_width(string[i]), file.stream) < macro_f_utf_byte_width(string[i])) { return F_status_set_error(F_output); } @@ -1462,7 +1462,7 @@ extern "C" { #endif // !defined(_di_fl_print_format_) || !defined(_di_fl_print_format_convert_) || !defined(_di_fl_print_trim_except_) || !defined(_di_fl_print_trim_except_dynamic_) || !defined(_di_fl_print_trim_except_dynamic_partial_) || !defined(_di_fl_print_trim_except_in_) || !defined(_di_fl_print_trim_except_in_dynamic_) || !defined(_di_fl_print_trim_except_in_dynamic_partial_) #if !defined(_di_fl_print_format_) || !defined(_di_fl_print_format_convert_) || !defined(_di_fl_print_trim_except_raw_) || !defined(_di_fl_print_trim_except_dynamic_raw_) || !defined(_di_fl_print_trim_except_dynamic_partial_raw_) || !defined(_di_fl_print_trim_except_in_raw_) || !defined(_di_fl_print_trim_except_in_dynamic_raw_) || !defined(_di_fl_print_trim_except_in_dynamic_partial_raw_) - f_status_t private_fl_print_trim_except_in_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream) { + f_status_t private_fl_print_trim_except_in_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file) { f_array_length_t i = offset; f_array_length_t j = 0; @@ -1645,7 +1645,7 @@ extern "C" { continue; } - if (fwrite_unlocked(string + i, 1, macro_f_utf_byte_width(string[i]), stream) < macro_f_utf_byte_width(string[i])) { + if (fwrite_unlocked(string + i, 1, macro_f_utf_byte_width(string[i]), file.stream) < macro_f_utf_byte_width(string[i])) { return F_status_set_error(F_output); } @@ -1655,7 +1655,7 @@ extern "C" { if (i >= stop) break; } - if (fwrite_unlocked(string + i, 1, macro_f_utf_byte_width(string[i]), stream) < macro_f_utf_byte_width(string[i])) { + if (fwrite_unlocked(string + i, 1, macro_f_utf_byte_width(string[i]), file.stream) < macro_f_utf_byte_width(string[i])) { return F_status_set_error(F_output); } @@ -1668,7 +1668,7 @@ extern "C" { #endif // !defined(_di_fl_print_format_) || !defined(_di_fl_print_format_convert_) || !defined(_di_fl_print_trim_except_raw_) || !defined(_di_fl_print_trim_except_dynamic_raw_) || !defined(_di_fl_print_trim_except_dynamic_partial_raw_) || !defined(_di_fl_print_trim_except_in_raw_) || !defined(_di_fl_print_trim_except_in_dynamic_raw_) || !defined(_di_fl_print_trim_except_in_dynamic_partial_raw_) #if !defined(_di_fl_print_format_) || !defined(_di_fl_print_format_convert_) || !defined(_di_fl_print_trim_except_raw_safely_) || !defined(_di_fl_print_trim_except_dynamic_raw_safely_) || !defined(_di_fl_print_trim_except_dynamic_partial_raw_safely_) || !defined(_di_fl_print_trim_except_in_raw_safely_) || !defined(_di_fl_print_trim_except_in_dynamic_raw_safely_) || !defined(_di_fl_print_trim_except_in_dynamic_partial_raw_safely_) - f_status_t private_fl_print_trim_except_in_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream) { + f_status_t private_fl_print_trim_except_in_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file) { f_array_length_t i = offset; f_array_length_t j = 0; @@ -1850,7 +1850,7 @@ extern "C" { } if (i + macro_f_utf_byte_width(string[i]) > stop) { - if (fwrite_unlocked(f_print_sequence_unknown_s.string, 1, f_print_sequence_unknown_s.used, stream) < f_print_sequence_unknown_s.used) { + if (fwrite_unlocked(f_print_sequence_unknown_s.string, 1, f_print_sequence_unknown_s.used, file.stream) < f_print_sequence_unknown_s.used) { return F_status_set_error(F_output); } @@ -1861,7 +1861,7 @@ extern "C" { } if (!string[i]) { - if (!fputc_unlocked(string[i], stream)) { + if (!fputc_unlocked(string[i], file.stream)) { return F_status_set_error(F_output); } @@ -1873,12 +1873,12 @@ extern "C" { status = f_utf_is_valid(string + i, stop - i); if (status == F_true) { - if (fwrite_unlocked(string + i, 1, macro_f_utf_byte_width(string[i]), stream) < macro_f_utf_byte_width(string[i])) { + if (fwrite_unlocked(string + i, 1, macro_f_utf_byte_width(string[i]), file.stream) < macro_f_utf_byte_width(string[i])) { return F_status_set_error(F_output); } } else { - if (fwrite_unlocked(f_print_sequence_unknown_s.string, 1, f_print_sequence_unknown_s.used, stream) < f_print_sequence_unknown_s.used) { + if (fwrite_unlocked(f_print_sequence_unknown_s.string, 1, f_print_sequence_unknown_s.used, file.stream) < f_print_sequence_unknown_s.used) { return F_status_set_error(F_output); } } @@ -1900,7 +1900,7 @@ extern "C" { } if (status == F_false || i + macro_f_utf_byte_width(string[i]) > stop) { - if (fwrite_unlocked(f_print_sequence_unknown_s.string, 1, f_print_sequence_unknown_s.used, stream) < f_print_sequence_unknown_s.used) { + if (fwrite_unlocked(f_print_sequence_unknown_s.string, 1, f_print_sequence_unknown_s.used, file.stream) < f_print_sequence_unknown_s.used) { return F_status_set_error(F_output); } @@ -1916,7 +1916,7 @@ extern "C" { continue; } - if (fwrite_unlocked(string + i, 1, macro_f_utf_byte_width(string[i]), stream) < macro_f_utf_byte_width(string[i])) { + if (fwrite_unlocked(string + i, 1, macro_f_utf_byte_width(string[i]), file.stream) < macro_f_utf_byte_width(string[i])) { return F_status_set_error(F_output); } @@ -1929,7 +1929,7 @@ extern "C" { #endif // !defined(_di_fl_print_format_) || !defined(_di_fl_print_format_convert_) || !defined(_di_fl_print_trim_except_raw_safely_) || !defined(_di_fl_print_trim_except_dynamic_raw_safely_) || !defined(_di_fl_print_trim_except_dynamic_partial_raw_safely_) || !defined(_di_fl_print_trim_except_in_raw_safely_) || !defined(_di_fl_print_trim_except_in_dynamic_raw_safely_) || !defined(_di_fl_print_trim_except_in_dynamic_partial_raw_safely_) #if !defined(_di_fl_print_format_) || !defined(_di_fl_print_format_convert_) || !defined(_di_fl_print_trim_except_dynamic_safely_) || !defined(_di_fl_print_trim_except_dynamic_partial_safely_) || !defined(_di_fl_print_trim_except_in_dynamic_safely_) || !defined(_di_fl_print_trim_except_in_dynamic_partial_safely_) || !defined(_di_fl_print_trim_except_in_safely_) || !defined(_di_fl_print_trim_except_safely_) - f_status_t private_fl_print_trim_except_in_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream) { + f_status_t private_fl_print_trim_except_in_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file) { f_array_length_t i = offset; f_array_length_t j = 0; @@ -2113,7 +2113,7 @@ extern "C" { } if (i + macro_f_utf_byte_width(string[i]) > stop) { - if (fwrite_unlocked(f_print_sequence_unknown_s.string, 1, f_print_sequence_unknown_s.used, stream) < f_print_sequence_unknown_s.used) { + if (fwrite_unlocked(f_print_sequence_unknown_s.string, 1, f_print_sequence_unknown_s.used, file.stream) < f_print_sequence_unknown_s.used) { return F_status_set_error(F_output); } @@ -2132,12 +2132,12 @@ extern "C" { status = f_utf_is_valid(string + i, stop - i); if (status == F_true) { - if (fwrite_unlocked(string + i, 1, macro_f_utf_byte_width(string[i]), stream) < macro_f_utf_byte_width(string[i])) { + if (fwrite_unlocked(string + i, 1, macro_f_utf_byte_width(string[i]), file.stream) < macro_f_utf_byte_width(string[i])) { return F_status_set_error(F_output); } } else { - if (fwrite_unlocked(f_print_sequence_unknown_s.string, 1, f_print_sequence_unknown_s.used, stream) < f_print_sequence_unknown_s.used) { + if (fwrite_unlocked(f_print_sequence_unknown_s.string, 1, f_print_sequence_unknown_s.used, file.stream) < f_print_sequence_unknown_s.used) { return F_status_set_error(F_output); } } @@ -2159,7 +2159,7 @@ extern "C" { } if (status == F_false || i + macro_f_utf_byte_width(string[i]) > stop) { - if (fwrite_unlocked(f_print_sequence_unknown_s.string, 1, f_print_sequence_unknown_s.used, stream) < f_print_sequence_unknown_s.used) { + if (fwrite_unlocked(f_print_sequence_unknown_s.string, 1, f_print_sequence_unknown_s.used, file.stream) < f_print_sequence_unknown_s.used) { return F_status_set_error(F_output); } @@ -2175,7 +2175,7 @@ extern "C" { continue; } - if (fwrite_unlocked(string + i, 1, macro_f_utf_byte_width(string[i]), stream) < macro_f_utf_byte_width(string[i])) { + if (fwrite_unlocked(string + i, 1, macro_f_utf_byte_width(string[i]), file.stream) < macro_f_utf_byte_width(string[i])) { return F_status_set_error(F_output); } @@ -2188,7 +2188,7 @@ extern "C" { #endif // !defined(_di_fl_print_format_) || !defined(_di_fl_print_format_convert_) || !defined(_di_fl_print_trim_except_dynamic_safely_) || !defined(_di_fl_print_trim_except_dynamic_partial_safely_) || !defined(_di_fl_print_trim_except_in_dynamic_safely_) || !defined(_di_fl_print_trim_except_in_dynamic_partial_safely_) || !defined(_di_fl_print_trim_except_in_safely_) || !defined(_di_fl_print_trim_except_safely_) #if !defined(_di_fl_print_format_) || !defined(_di_fl_print_format_convert_) || !defined(_di_fl_print_trim_) || !defined(_di_fl_print_trim_dynamic_) || !defined(_di_fl_print_trim_dynamic_partial_) - f_status_t private_fl_print_trim(const f_string_t string, const f_array_length_t length, FILE * const stream) { + f_status_t private_fl_print_trim(const f_string_t string, const f_array_length_t length, const f_file_t file) { f_array_length_t i = 0; f_array_length_t j = 0; @@ -2321,7 +2321,7 @@ extern "C" { return F_status_set_error(F_complete_not_utf_stop); } - if (fwrite_unlocked(string + i, 1, macro_f_utf_byte_width(string[i]), stream) < macro_f_utf_byte_width(string[i])) { + if (fwrite_unlocked(string + i, 1, macro_f_utf_byte_width(string[i]), file.stream) < macro_f_utf_byte_width(string[i])) { return F_status_set_error(F_output); } @@ -2355,7 +2355,7 @@ extern "C" { return F_status_set_error(F_utf_not); } - if (fwrite_unlocked(string + i, 1, macro_f_utf_byte_width(string[i]), stream) < macro_f_utf_byte_width(string[i])) { + if (fwrite_unlocked(string + i, 1, macro_f_utf_byte_width(string[i]), file.stream) < macro_f_utf_byte_width(string[i])) { return F_status_set_error(F_output); } @@ -2368,7 +2368,7 @@ extern "C" { #endif // !defined(_di_fl_print_format_) || !defined(_di_fl_print_format_convert_) || !defined(_di_fl_print_trim_) || !defined(_di_fl_print_trim_dynamic_) || !defined(_di_fl_print_trim_dynamic_partial_) #if !defined(_di_fl_print_format_) || !defined(_di_fl_print_format_convert_) || !defined(_di_fl_print_trim_raw_) || !defined(_di_fl_print_trim_dynamic_raw_) || !defined(_di_fl_print_trim_dynamic_partial_raw_) - f_status_t private_fl_print_trim_raw(const f_string_t string, const f_array_length_t length, FILE * const stream) { + f_status_t private_fl_print_trim_raw(const f_string_t string, const f_array_length_t length, const f_file_t file) { f_array_length_t i = 0; f_array_length_t j = 0; @@ -2464,7 +2464,7 @@ extern "C" { // Print all processed white space (note: control characters are not white space so no checks for this are needed). while (i < j) { - if (fwrite_unlocked(string + i, 1, macro_f_utf_byte_width(string[i]), stream) < macro_f_utf_byte_width(string[i])) { + if (fwrite_unlocked(string + i, 1, macro_f_utf_byte_width(string[i]), file.stream) < macro_f_utf_byte_width(string[i])) { return F_status_set_error(F_output); } @@ -2474,7 +2474,7 @@ extern "C" { if (i >= length) break; } - if (fwrite_unlocked(string + i, 1, macro_f_utf_byte_width(string[i]), stream) < macro_f_utf_byte_width(string[i])) { + if (fwrite_unlocked(string + i, 1, macro_f_utf_byte_width(string[i]), file.stream) < macro_f_utf_byte_width(string[i])) { return F_status_set_error(F_output); } @@ -2487,7 +2487,7 @@ extern "C" { #endif // !defined(_di_fl_print_format_) || !defined(_di_fl_print_format_convert_) || !defined(_di_fl_print_trim_raw_) || !defined(_di_fl_print_trim_dynamic_raw_) || !defined(_di_fl_print_trim_dynamic_partial_raw_) #if !defined(_di_fl_print_format_) || !defined(_di_fl_print_format_convert_) || !defined(_di_fl_print_trim_raw_safely_) || !defined(_di_fl_print_trim_dynamic_raw_safely_) || !defined(_di_fl_print_trim_dynamic_partial_raw_safely_) - f_status_t private_fl_print_trim_raw_safely(const f_string_t string, const f_array_length_t length, FILE * const stream) { + f_status_t private_fl_print_trim_raw_safely(const f_string_t string, const f_array_length_t length, const f_file_t file) { f_array_length_t i = 0; f_array_length_t j = 0; @@ -2582,7 +2582,7 @@ extern "C" { while (i < j) { if (i + macro_f_utf_byte_width(string[i]) > length) { - if (fwrite_unlocked(f_print_sequence_unknown_s.string, 1, f_print_sequence_unknown_s.used, stream) < f_print_sequence_unknown_s.used) { + if (fwrite_unlocked(f_print_sequence_unknown_s.string, 1, f_print_sequence_unknown_s.used, file.stream) < f_print_sequence_unknown_s.used) { return F_status_set_error(F_output); } @@ -2593,7 +2593,7 @@ extern "C" { } if (!string[i]) { - if (!fputc_unlocked(string[i], stream)) { + if (!fputc_unlocked(string[i], file.stream)) { return F_status_set_error(F_output); } @@ -2605,12 +2605,12 @@ extern "C" { status = f_utf_is_valid(string + i, length - i); if (status == F_true) { - if (fwrite_unlocked(string + i, 1, macro_f_utf_byte_width(string[i]), stream) < macro_f_utf_byte_width(string[i])) { + if (fwrite_unlocked(string + i, 1, macro_f_utf_byte_width(string[i]), file.stream) < macro_f_utf_byte_width(string[i])) { return F_status_set_error(F_output); } } else { - if (fwrite_unlocked(f_print_sequence_unknown_s.string, 1, f_print_sequence_unknown_s.used, stream) < f_print_sequence_unknown_s.used) { + if (fwrite_unlocked(f_print_sequence_unknown_s.string, 1, f_print_sequence_unknown_s.used, file.stream) < f_print_sequence_unknown_s.used) { return F_status_set_error(F_output); } } @@ -2632,7 +2632,7 @@ extern "C" { } if (status == F_false || i + macro_f_utf_byte_width(string[i]) > length) { - if (fwrite_unlocked(f_print_sequence_unknown_s.string, 1, f_print_sequence_unknown_s.used, stream) < f_print_sequence_unknown_s.used) { + if (fwrite_unlocked(f_print_sequence_unknown_s.string, 1, f_print_sequence_unknown_s.used, file.stream) < f_print_sequence_unknown_s.used) { return F_status_set_error(F_output); } @@ -2648,7 +2648,7 @@ extern "C" { continue; } - if (fwrite_unlocked(string + i, 1, macro_f_utf_byte_width(string[i]), stream) < macro_f_utf_byte_width(string[i])) { + if (fwrite_unlocked(string + i, 1, macro_f_utf_byte_width(string[i]), file.stream) < macro_f_utf_byte_width(string[i])) { return F_status_set_error(F_output); } @@ -2661,7 +2661,7 @@ extern "C" { #endif // !defined(_di_fl_print_format_) || !defined(_di_fl_print_format_convert_) || !defined(_di_fl_print_trim_raw_safely_) || !defined(_di_fl_print_trim_dynamic_raw_safely_) || !defined(_di_fl_print_trim_dynamic_partial_raw_safely_) #if !defined(_di_fl_print_format_) || !defined(_di_fl_print_format_convert_) || !defined(_di_fl_print_trim_safely_) || !defined(_di_fl_print_trim_dynamic_safely_) || !defined(_di_fl_print_trim_dynamic_partial_safely_) - f_status_t private_fl_print_trim_safely(const f_string_t string, const f_array_length_t length, FILE * const stream) { + f_status_t private_fl_print_trim_safely(const f_string_t string, const f_array_length_t length, const f_file_t file) { f_array_length_t i = 0; f_array_length_t j = 0; @@ -2754,7 +2754,7 @@ extern "C" { while (i < j) { if (i + macro_f_utf_byte_width(string[i]) > length) { - if (fwrite_unlocked(f_print_sequence_unknown_s.string, 1, f_print_sequence_unknown_s.used, stream) < f_print_sequence_unknown_s.used) { + if (fwrite_unlocked(f_print_sequence_unknown_s.string, 1, f_print_sequence_unknown_s.used, file.stream) < f_print_sequence_unknown_s.used) { return F_status_set_error(F_output); } @@ -2773,12 +2773,12 @@ extern "C" { status = f_utf_is_valid(string + i, length - i); if (status == F_true) { - if (fwrite_unlocked(string + i, 1, macro_f_utf_byte_width(string[i]), stream) < macro_f_utf_byte_width(string[i])) { + if (fwrite_unlocked(string + i, 1, macro_f_utf_byte_width(string[i]), file.stream) < macro_f_utf_byte_width(string[i])) { return F_status_set_error(F_output); } } else { - if (fwrite_unlocked(f_print_sequence_unknown_s.string, 1, f_print_sequence_unknown_s.used, stream) < f_print_sequence_unknown_s.used) { + if (fwrite_unlocked(f_print_sequence_unknown_s.string, 1, f_print_sequence_unknown_s.used, file.stream) < f_print_sequence_unknown_s.used) { return F_status_set_error(F_output); } } @@ -2800,7 +2800,7 @@ extern "C" { } if (status == F_false || i + macro_f_utf_byte_width(string[i]) > length) { - if (fwrite_unlocked(f_print_sequence_unknown_s.string, 1, f_print_sequence_unknown_s.used, stream) < f_print_sequence_unknown_s.used) { + if (fwrite_unlocked(f_print_sequence_unknown_s.string, 1, f_print_sequence_unknown_s.used, file.stream) < f_print_sequence_unknown_s.used) { return F_status_set_error(F_output); } @@ -2816,7 +2816,7 @@ extern "C" { continue; } - if (fwrite_unlocked(string + i, 1, macro_f_utf_byte_width(string[i]), stream) < macro_f_utf_byte_width(string[i])) { + if (fwrite_unlocked(string + i, 1, macro_f_utf_byte_width(string[i]), file.stream) < macro_f_utf_byte_width(string[i])) { return F_status_set_error(F_output); } diff --git a/level_1/fl_print/c/private-print.h b/level_1/fl_print/c/private-print.h index 811bae3..98df1ac 100644 --- a/level_1/fl_print/c/private-print.h +++ b/level_1/fl_print/c/private-print.h @@ -23,8 +23,8 @@ extern "C" { * * @param string * The current character position within the string. - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * @param ap * The variable arguments list. * @param status @@ -72,7 +72,7 @@ extern "C" { * @see private_fl_print_convert_number() */ #if !defined(_di_fl_print_format_) || !defined(_di_fl_print_format_convert_) - extern f_string_t private_fl_print_format_convert(f_string_t string, FILE * const stream, va_list ap, f_status_t * const status) F_attribute_visibility_internal_d; + extern f_string_t private_fl_print_format_convert(f_string_t string, const f_file_t file, va_list ap, f_status_t * const status) F_attribute_visibility_internal_d; #endif // !defined(_di_fl_print_format_) || !defined(_di_fl_print_format_convert_) /** @@ -92,8 +92,8 @@ extern "C" { * @param except_in * An array of ranges within the string to not print. * The array of ranges is required/assumed to be in linear order. - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -121,7 +121,7 @@ extern "C" { * @see fl_print_trim_except_in_dynamic_partial() */ #if !defined(_di_fl_print_format_) || !defined(_di_fl_print_format_convert_) || !defined(_di_fl_print_trim_except_) || !defined(_di_fl_print_trim_except_dynamic_) || !defined(_di_fl_print_trim_except_dynamic_partial_) || !defined(_di_fl_print_trim_except_in_) || !defined(_di_fl_print_trim_except_in_dynamic_) || !defined(_di_fl_print_trim_except_in_dynamic_partial_) - extern f_status_t private_fl_print_trim_except_in(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream) F_attribute_visibility_internal_d; + extern f_status_t private_fl_print_trim_except_in(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file) F_attribute_visibility_internal_d; #endif // !defined(_di_fl_print_format_) || !defined(_di_fl_print_format_convert_) || !defined(_di_fl_print_trim_except_) || !defined(_di_fl_print_trim_except_dynamic_) || !defined(_di_fl_print_trim_except_dynamic_partial_) || !defined(_di_fl_print_trim_except_in_) || !defined(_di_fl_print_trim_except_in_dynamic_) || !defined(_di_fl_print_trim_except_in_dynamic_partial_) /** @@ -141,8 +141,8 @@ extern "C" { * @param except_in * An array of ranges within the string to not print. * The array of ranges is required/assumed to be in linear order. - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -168,7 +168,7 @@ extern "C" { * @see fl_print_trim_except_in_dynamic_partial_raw() */ #if !defined(_di_fl_print_format_) || !defined(_di_fl_print_format_convert_) || !defined(_di_fl_print_trim_except_raw_) || !defined(_di_fl_print_trim_except_dynamic_raw_) || !defined(_di_fl_print_trim_except_dynamic_partial_raw_) || !defined(_di_fl_print_trim_except_in_raw_) || !defined(_di_fl_print_trim_except_in_dynamic_raw_) || !defined(_di_fl_print_trim_except_in_dynamic_partial_raw_) - extern f_status_t private_fl_print_trim_except_in_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream) F_attribute_visibility_internal_d; + extern f_status_t private_fl_print_trim_except_in_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file) F_attribute_visibility_internal_d; #endif // !defined(_di_fl_print_format_) || !defined(_di_fl_print_format_convert_) || !defined(_di_fl_print_trim_except_raw_) || !defined(_di_fl_print_trim_except_dynamic_raw_) || !defined(_di_fl_print_trim_except_dynamic_partial_raw_) || !defined(_di_fl_print_trim_except_in_raw_) || !defined(_di_fl_print_trim_except_in_dynamic_raw_) || !defined(_di_fl_print_trim_except_in_dynamic_partial_raw_) /** @@ -188,8 +188,8 @@ extern "C" { * @param except_in * An array of ranges within the string to not print. * The array of ranges is required/assumed to be in linear order. - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -216,7 +216,7 @@ extern "C" { * @see fl_print_trim_except_in_dynamic_partial_raw_safely() */ #if !defined(_di_fl_print_format_) || !defined(_di_fl_print_format_convert_) || !defined(_di_fl_print_trim_except_raw_safely_) || !defined(_di_fl_print_trim_except_dynamic_raw_safely_) || !defined(_di_fl_print_trim_except_dynamic_partial_raw_safely_) || !defined(_di_fl_print_trim_except_in_raw_safely_) || !defined(_di_fl_print_trim_except_in_dynamic_raw_safely_) || !defined(_di_fl_print_trim_except_in_dynamic_partial_raw_safely_) - extern f_status_t private_fl_print_trim_except_in_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream) F_attribute_visibility_internal_d; + extern f_status_t private_fl_print_trim_except_in_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file) F_attribute_visibility_internal_d; #endif // !defined(_di_fl_print_format_) || !defined(_di_fl_print_format_convert_) || !defined(_di_fl_print_trim_except_raw_safely_) || !defined(_di_fl_print_trim_except_dynamic_raw_safely_) || !defined(_di_fl_print_trim_except_dynamic_partial_raw_safely_) || !defined(_di_fl_print_trim_except_in_raw_safely_) || !defined(_di_fl_print_trim_except_in_dynamic_raw_safely_) || !defined(_di_fl_print_trim_except_in_dynamic_partial_raw_safely_) /** @@ -236,8 +236,8 @@ extern "C" { * @param except_in * An array of ranges within the string to not print. * The array of ranges is required/assumed to be in linear order. - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -264,7 +264,7 @@ extern "C" { * @see fl_print_trim_except_safely() */ #if !defined(_di_fl_print_format_) || !defined(_di_fl_print_format_convert_) || !defined(_di_fl_print_trim_except_dynamic_safely_) || !defined(_di_fl_print_trim_except_dynamic_partial_safely_) || !defined(_di_fl_print_trim_except_in_dynamic_safely_) || !defined(_di_fl_print_trim_except_in_dynamic_partial_safely_) || !defined(_di_fl_print_trim_except_in_safely_) || !defined(_di_fl_print_trim_except_safely_) - extern f_status_t private_fl_print_trim_except_in_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const stream) F_attribute_visibility_internal_d; + extern f_status_t private_fl_print_trim_except_in_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except_at, const f_string_ranges_t except_in, const f_file_t file) F_attribute_visibility_internal_d; #endif // !defined(_di_fl_print_format_) || !defined(_di_fl_print_format_convert_) || !defined(_di_fl_print_trim_except_dynamic_safely_) || !defined(_di_fl_print_trim_except_dynamic_partial_safely_) || !defined(_di_fl_print_trim_except_in_dynamic_safely_) || !defined(_di_fl_print_trim_except_in_dynamic_partial_safely_) || !defined(_di_fl_print_trim_except_in_safely_) || !defined(_di_fl_print_trim_except_safely_) /** @@ -276,8 +276,8 @@ extern "C" { * The string to output. * @param length * The total number of characters to print. - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -302,7 +302,7 @@ extern "C" { * @see fl_print_trim_dynamic_partial() */ #if !defined(_di_fl_print_format_) || !defined(_di_fl_print_format_convert_) || !defined(_di_fl_print_trim_) || !defined(_di_fl_print_trim_dynamic_) || !defined(_di_fl_print_trim_dynamic_partial_) - extern f_status_t private_fl_print_trim(const f_string_t string, const f_array_length_t length, FILE * const stream) F_attribute_visibility_internal_d; + extern f_status_t private_fl_print_trim(const f_string_t string, const f_array_length_t length, const f_file_t file) F_attribute_visibility_internal_d; #endif // !defined(_di_fl_print_format_) || !defined(_di_fl_print_format_convert_) || !defined(_di_fl_print_trim_) || !defined(_di_fl_print_trim_dynamic_) || !defined(_di_fl_print_trim_dynamic_partial_) /** @@ -314,8 +314,8 @@ extern "C" { * The string to output. * @param length * The total number of characters to print. - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -338,7 +338,7 @@ extern "C" { * @see fl_print_trim_dynamic_partial_raw() */ #if !defined(_di_fl_print_format_) || !defined(_di_fl_print_format_convert_) || !defined(_di_fl_print_trim_raw_) || !defined(_di_fl_print_trim_dynamic_raw_) || !defined(_di_fl_print_trim_dynamic_partial_raw_) - extern f_status_t private_fl_print_trim_raw(const f_string_t string, const f_array_length_t length, FILE * const stream) F_attribute_visibility_internal_d; + extern f_status_t private_fl_print_trim_raw(const f_string_t string, const f_array_length_t length, const f_file_t file) F_attribute_visibility_internal_d; #endif // !defined(_di_fl_print_format_) || !defined(_di_fl_print_format_convert_) || !defined(_di_fl_print_trim_raw_) || !defined(_di_fl_print_trim_dynamic_raw_) || !defined(_di_fl_print_trim_dynamic_partial_raw_) /** @@ -350,8 +350,8 @@ extern "C" { * The string to output. * @param length * The total number of characters to print. - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -375,7 +375,7 @@ extern "C" { * @see fl_print_trim_dynamic_partial_raw_safely() */ #if !defined(_di_fl_print_format_) || !defined(_di_fl_print_format_convert_) || !defined(_di_fl_print_trim_raw_safely_) || !defined(_di_fl_print_trim_dynamic_raw_safely_) || !defined(_di_fl_print_trim_dynamic_partial_raw_safely_) - extern f_status_t private_fl_print_trim_raw_safely(const f_string_t string, const f_array_length_t length, FILE * const stream) F_attribute_visibility_internal_d; + extern f_status_t private_fl_print_trim_raw_safely(const f_string_t string, const f_array_length_t length, const f_file_t file) F_attribute_visibility_internal_d; #endif // !defined(_di_fl_print_format_) || !defined(_di_fl_print_format_convert_) || !defined(_di_fl_print_trim_raw_safely_) || !defined(_di_fl_print_trim_dynamic_raw_safely_) || !defined(_di_fl_print_trim_dynamic_partial_raw_safely_) /** @@ -387,8 +387,8 @@ extern "C" { * The string to output. * @param length * The total number of characters to print. - * @param stream - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * F_none on success. @@ -412,7 +412,7 @@ extern "C" { * @see fl_print_trim_dynamic_partial_safely() */ #if !defined(_di_fl_print_format_) || !defined(_di_fl_print_format_convert_) || !defined(_di_fl_print_trim_safely_) || !defined(_di_fl_print_trim_dynamic_safely_) || !defined(_di_fl_print_trim_dynamic_partial_safely_) - extern f_status_t private_fl_print_trim_safely(const f_string_t string, const f_array_length_t length, FILE * const stream) F_attribute_visibility_internal_d; + extern f_status_t private_fl_print_trim_safely(const f_string_t string, const f_array_length_t length, const f_file_t file) F_attribute_visibility_internal_d; #endif // !defined(_di_fl_print_format_) || !defined(_di_fl_print_format_convert_) || !defined(_di_fl_print_trim_safely_) || !defined(_di_fl_print_trim_dynamic_safely_) || !defined(_di_fl_print_trim_dynamic_partial_safely_) #ifdef __cplusplus diff --git a/level_2/fll_error/c/error.c b/level_2/fll_error/c/error.c index f48a32e..a3f973d 100644 --- a/level_2/fll_error/c/error.c +++ b/level_2/fll_error/c/error.c @@ -34,9 +34,9 @@ extern "C" { if (print.verbosity != f_console_verbosity_quiet_e) { flockfile(print.to.stream); - fl_print_format("%[%QAccess denied while trying to %Q %Q '%]", print.to.stream, print.context, print.prefix, operation, type_name, print.context); - fl_print_format("%[%Q%]", print.to.stream, print.notable, name, print.notable); - fl_print_format("%['.%]%r", print.to.stream, print.context, print.context, f_string_eol_s); + fl_print_format("%[%QAccess denied while trying to %Q %Q '%]", print.to, print.context, print.prefix, operation, type_name, print.context); + fl_print_format("%[%Q%]", print.to, print.notable, name, print.notable); + fl_print_format("%['.%]%r", print.to, print.context, print.context, f_string_eol_s); funlockfile(print.to.stream); } @@ -48,9 +48,9 @@ extern "C" { if (print.verbosity != f_console_verbosity_quiet_e) { flockfile(print.to.stream); - fl_print_format("%[%QCurrent user is not allowed to use the given group while trying to %Q %Q '%]", print.to.stream, print.context, print.prefix, operation, type_name, print.context); - fl_print_format("%[%Q%]", print.to.stream, print.notable, name, print.notable); - fl_print_format("%['.%]%r", print.to.stream, print.context, print.context, f_string_eol_s); + fl_print_format("%[%QCurrent user is not allowed to use the given group while trying to %Q %Q '%]", print.to, print.context, print.prefix, operation, type_name, print.context); + fl_print_format("%[%Q%]", print.to, print.notable, name, print.notable); + fl_print_format("%['.%]%r", print.to, print.context, print.context, f_string_eol_s); funlockfile(print.to.stream); } @@ -62,9 +62,9 @@ extern "C" { if (print.verbosity != f_console_verbosity_quiet_e) { flockfile(print.to.stream); - fl_print_format("%[%QCurrent user is not allowed to use the given owner while trying to %Q %Q '%]", print.to.stream, print.context, print.prefix, operation, type_name, print.context); - fl_print_format("%[%Q%]", print.to.stream, print.notable, name, print.notable); - fl_print_format("%['.%]%r", print.to.stream, print.context, print.context, f_string_eol_s); + fl_print_format("%[%QCurrent user is not allowed to use the given owner while trying to %Q %Q '%]", print.to, print.context, print.prefix, operation, type_name, print.context); + fl_print_format("%[%Q%]", print.to, print.notable, name, print.notable); + fl_print_format("%['.%]%r", print.to, print.context, print.context, f_string_eol_s); funlockfile(print.to.stream); } @@ -76,9 +76,9 @@ extern "C" { if (print.verbosity != f_console_verbosity_quiet_e) { flockfile(print.to.stream); - fl_print_format("%[%QInvalid directory while trying to %Q %Q '%]", print.to.stream, print.context, print.prefix, operation, type_name, print.context); - fl_print_format("%[%Q%]", print.to.stream, print.notable, name, print.notable); - fl_print_format("%['.%]%r", print.to.stream, print.context, print.context, f_string_eol_s); + fl_print_format("%[%QInvalid directory while trying to %Q %Q '%]", print.to, print.context, print.prefix, operation, type_name, print.context); + fl_print_format("%[%Q%]", print.to, print.notable, name, print.notable); + fl_print_format("%['.%]%r", print.to, print.context, print.context, f_string_eol_s); funlockfile(print.to.stream); } @@ -90,9 +90,9 @@ extern "C" { if (print.verbosity != f_console_verbosity_quiet_e) { flockfile(print.to.stream); - fl_print_format("%[%QUnable to %Q %Q '%]", print.to.stream, print.context, print.prefix, operation, type_name, print.context); - fl_print_format("%[%Q%]", print.to.stream, print.notable, name, print.notable); - fl_print_format("%[', not empty.%]%r", print.to.stream, print.context, print.context, f_string_eol_s); + fl_print_format("%[%QUnable to %Q %Q '%]", print.to, print.context, print.prefix, operation, type_name, print.context); + fl_print_format("%[%Q%]", print.to, print.notable, name, print.notable); + fl_print_format("%[', not empty.%]%r", print.to, print.context, print.context, f_string_eol_s); funlockfile(print.to.stream); } @@ -104,9 +104,9 @@ extern "C" { if (print.verbosity != f_console_verbosity_quiet_e) { flockfile(print.to.stream); - fl_print_format("%[%QFailed to %Q %Q '%]", print.to.stream, print.context, print.prefix, operation, type_name, print.context); - fl_print_format("%[%Q%]", print.to.stream, print.notable, name, print.notable); - fl_print_format("%[', already in an error state.%]%r", print.to.stream, print.context, print.context, f_string_eol_s); + fl_print_format("%[%QFailed to %Q %Q '%]", print.to, print.context, print.prefix, operation, type_name, print.context); + fl_print_format("%[%Q%]", print.to, print.notable, name, print.notable); + fl_print_format("%[', already in an error state.%]%r", print.to, print.context, print.context, f_string_eol_s); funlockfile(print.to.stream); } @@ -118,9 +118,9 @@ extern "C" { if (print.verbosity != f_console_verbosity_quiet_e) { flockfile(print.to.stream); - fl_print_format("%[%QFailed to %Q %Q '%]", print.to.stream, print.context, print.prefix, operation, type_name, print.context); - fl_print_format("%[%Q%]", print.to.stream, print.notable, name, print.notable); - fl_print_format("%['.%]%r", print.to.stream, print.context, print.context, f_string_eol_s); + fl_print_format("%[%QFailed to %Q %Q '%]", print.to, print.context, print.prefix, operation, type_name, print.context); + fl_print_format("%[%Q%]", print.to, print.notable, name, print.notable); + fl_print_format("%['.%]%r", print.to, print.context, print.context, f_string_eol_s); funlockfile(print.to.stream); } @@ -132,9 +132,9 @@ extern "C" { if (print.verbosity != f_console_verbosity_quiet_e) { flockfile(print.to.stream); - fl_print_format("%[%QUnable to %Q %Q '%]", print.to.stream, print.context, print.prefix, operation, type_name, print.context); - fl_print_format("%[%Q%]", print.to.stream, print.notable, name, print.notable); - fl_print_format("%[', failed to close.%]%r", print.to.stream, print.context, print.context, f_string_eol_s); + fl_print_format("%[%QUnable to %Q %Q '%]", print.to, print.context, print.prefix, operation, type_name, print.context); + fl_print_format("%[%Q%]", print.to, print.notable, name, print.notable); + fl_print_format("%[', failed to close.%]%r", print.to, print.context, print.context, f_string_eol_s); funlockfile(print.to.stream); } @@ -146,9 +146,9 @@ extern "C" { if (print.verbosity != f_console_verbosity_quiet_e) { flockfile(print.to.stream); - fl_print_format("%[%QUnable to %Q %Q '%]", print.to.stream, print.context, print.prefix, operation, type_name, print.context); - fl_print_format("%[%Q%]", print.to.stream, print.notable, name, print.notable); - fl_print_format("%[', is closed.%]%r", print.to.stream, print.context, print.context, f_string_eol_s); + fl_print_format("%[%QUnable to %Q %Q '%]", print.to, print.context, print.prefix, operation, type_name, print.context); + fl_print_format("%[%Q%]", print.to, print.notable, name, print.notable); + fl_print_format("%[', is closed.%]%r", print.to, print.context, print.context, f_string_eol_s); funlockfile(print.to.stream); } @@ -160,9 +160,9 @@ extern "C" { if (print.verbosity != f_console_verbosity_quiet_e) { flockfile(print.to.stream); - fl_print_format("%[%QFile descriptor error while trying to %Q %Q '%]", print.to.stream, print.context, print.prefix, operation, type_name, print.context); - fl_print_format("%[%Q%]", print.to.stream, print.notable, name, print.notable); - fl_print_format("%['.%]%r", print.to.stream, print.context, print.context, f_string_eol_s); + fl_print_format("%[%QFile descriptor error while trying to %Q %Q '%]", print.to, print.context, print.prefix, operation, type_name, print.context); + fl_print_format("%[%Q%]", print.to, print.notable, name, print.notable); + fl_print_format("%['.%]%r", print.to, print.context, print.context, f_string_eol_s); funlockfile(print.to.stream); } @@ -174,9 +174,9 @@ extern "C" { if (print.verbosity != f_console_verbosity_quiet_e) { flockfile(print.to.stream); - fl_print_format("%[%QMax file descriptors reached while trying to %Q %Q '%]", print.to.stream, print.context, print.prefix, operation, type_name, print.context); - fl_print_format("%[%Q%]", print.to.stream, print.notable, name, print.notable); - fl_print_format("%['.%]%r", print.to.stream, print.context, print.context, f_string_eol_s); + fl_print_format("%[%QMax file descriptors reached while trying to %Q %Q '%]", print.to, print.context, print.prefix, operation, type_name, print.context); + fl_print_format("%[%Q%]", print.to, print.notable, name, print.notable); + fl_print_format("%['.%]%r", print.to, print.context, print.context, f_string_eol_s); funlockfile(print.to.stream); } @@ -188,9 +188,9 @@ extern "C" { if (print.verbosity != f_console_verbosity_quiet_e) { flockfile(print.to.stream); - fl_print_format("%[%QInvalid file descriptor while trying to %Q %Q '%]", print.to.stream, print.context, print.prefix, operation, type_name, print.context); - fl_print_format("%[%Q%]", print.to.stream, print.notable, name, print.notable); - fl_print_format("%['.%]%r", print.to.stream, print.context, print.context, f_string_eol_s); + fl_print_format("%[%QInvalid file descriptor while trying to %Q %Q '%]", print.to, print.context, print.prefix, operation, type_name, print.context); + fl_print_format("%[%Q%]", print.to, print.notable, name, print.notable); + fl_print_format("%['.%]%r", print.to, print.context, print.context, f_string_eol_s); funlockfile(print.to.stream); } @@ -202,9 +202,9 @@ extern "C" { if (print.verbosity != f_console_verbosity_quiet_e) { flockfile(print.to.stream); - fl_print_format("%[%QUnable to %Q %Q '%]", print.to.stream, print.context, print.prefix, operation, type_name, print.context); - fl_print_format("%[%Q%]", print.to.stream, print.notable, name, print.notable); - fl_print_format("%[', %Q is empty.%]%r", print.to.stream, print.context, type_name, print.context, f_string_eol_s); + fl_print_format("%[%QUnable to %Q %Q '%]", print.to, print.context, print.prefix, operation, type_name, print.context); + fl_print_format("%[%Q%]", print.to, print.notable, name, print.notable); + fl_print_format("%[', %Q is empty.%]%r", print.to, print.context, type_name, print.context, f_string_eol_s); funlockfile(print.to.stream); } @@ -216,9 +216,9 @@ extern "C" { if (print.verbosity != f_console_verbosity_quiet_e) { flockfile(print.to.stream); - fl_print_format("%[%QUnable to %Q %Q '%]", print.to.stream, print.context, print.prefix, operation, type_name, print.context); - fl_print_format("%[%Q%]", print.to.stream, print.notable, name, print.notable); - fl_print_format("%[', flush failed.%]%r", print.to.stream, print.context, print.context, f_string_eol_s); + fl_print_format("%[%QUnable to %Q %Q '%]", print.to, print.context, print.prefix, operation, type_name, print.context); + fl_print_format("%[%Q%]", print.to, print.notable, name, print.notable); + fl_print_format("%[', flush failed.%]%r", print.to, print.context, print.context, f_string_eol_s); funlockfile(print.to.stream); } @@ -230,9 +230,9 @@ extern "C" { if (print.verbosity != f_console_verbosity_quiet_e) { flockfile(print.to.stream); - fl_print_format("%[%QUnable to %Q %Q '%]", print.to.stream, print.context, print.prefix, operation, type_name, print.context); - fl_print_format("%[%Q%]", print.to.stream, print.notable, name, print.notable); - fl_print_format("%[', found.%]%r", print.to.stream, print.context, print.context, f_string_eol_s); + fl_print_format("%[%QUnable to %Q %Q '%]", print.to, print.context, print.prefix, operation, type_name, print.context); + fl_print_format("%[%Q%]", print.to, print.notable, name, print.notable); + fl_print_format("%[', found.%]%r", print.to, print.context, print.context, f_string_eol_s); funlockfile(print.to.stream); } @@ -244,9 +244,9 @@ extern "C" { if (print.verbosity != f_console_verbosity_quiet_e) { flockfile(print.to.stream); - fl_print_format("%[%QUnable to %Q %Q '%]", print.to.stream, print.context, print.prefix, operation, type_name, print.context); - fl_print_format("%[%Q%]", print.to.stream, print.notable, name, print.notable); - fl_print_format("%[', could not find.%]%r", print.to.stream, print.context, print.context, f_string_eol_s); + fl_print_format("%[%QUnable to %Q %Q '%]", print.to, print.context, print.prefix, operation, type_name, print.context); + fl_print_format("%[%Q%]", print.to, print.notable, name, print.notable); + fl_print_format("%[', could not find.%]%r", print.to, print.context, print.context, f_string_eol_s); funlockfile(print.to.stream); } @@ -258,9 +258,9 @@ extern "C" { if (print.verbosity != f_console_verbosity_quiet_e) { flockfile(print.to.stream); - fl_print_format("%[%QUnable to %Q %Q '%]", print.to.stream, print.context, print.prefix, operation, type_name, print.context); - fl_print_format("%[%Q%]", print.to.stream, print.notable, name, print.notable); - fl_print_format("%[', already open.%]%r", print.to.stream, print.context, print.context, f_string_eol_s); + fl_print_format("%[%QUnable to %Q %Q '%]", print.to, print.context, print.prefix, operation, type_name, print.context); + fl_print_format("%[%Q%]", print.to, print.notable, name, print.notable); + fl_print_format("%[', already open.%]%r", print.to, print.context, print.context, f_string_eol_s); funlockfile(print.to.stream); } @@ -272,9 +272,9 @@ extern "C" { if (print.verbosity != f_console_verbosity_quiet_e) { flockfile(print.to.stream); - fl_print_format("%[%QMax open files reached while trying to %Q %Q '%]", print.to.stream, print.context, print.prefix, operation, type_name, print.context); - fl_print_format("%[%Q%]", print.to.stream, print.notable, name, print.notable); - fl_print_format("%['.%]%r", print.to.stream, print.context, print.context, f_string_eol_s); + fl_print_format("%[%QMax open files reached while trying to %Q %Q '%]", print.to, print.context, print.prefix, operation, type_name, print.context); + fl_print_format("%[%Q%]", print.to, print.notable, name, print.notable); + fl_print_format("%['.%]%r", print.to, print.context, print.context, f_string_eol_s); funlockfile(print.to.stream); } @@ -286,9 +286,9 @@ extern "C" { if (print.verbosity != f_console_verbosity_quiet_e) { flockfile(print.to.stream); - fl_print_format("%[%QOverflow while trying to %Q %Q '%]", print.to.stream, print.context, print.prefix, operation, type_name, print.context); - fl_print_format("%[%Q%]", print.to.stream, print.notable, name, print.notable); - fl_print_format("%['.%]%r", print.to.stream, print.context, print.context, f_string_eol_s); + fl_print_format("%[%QOverflow while trying to %Q %Q '%]", print.to, print.context, print.prefix, operation, type_name, print.context); + fl_print_format("%[%Q%]", print.to, print.notable, name, print.notable); + fl_print_format("%['.%]%r", print.to, print.context, print.context, f_string_eol_s); funlockfile(print.to.stream); } @@ -300,9 +300,9 @@ extern "C" { if (print.verbosity != f_console_verbosity_quiet_e) { flockfile(print.to.stream); - fl_print_format("%[%QUnable to %Q %Q '%]", print.to.stream, print.context, print.prefix, operation, type_name, print.context); - fl_print_format("%[%Q%]", print.to.stream, print.notable, name, print.notable); - fl_print_format("%[', purge failed.%]%r", print.to.stream, print.context, print.context, f_string_eol_s); + fl_print_format("%[%QUnable to %Q %Q '%]", print.to, print.context, print.prefix, operation, type_name, print.context); + fl_print_format("%[%Q%]", print.to, print.notable, name, print.notable); + fl_print_format("%[', purge failed.%]%r", print.to, print.context, print.context, f_string_eol_s); funlockfile(print.to.stream); } @@ -314,9 +314,9 @@ extern "C" { if (print.verbosity != f_console_verbosity_quiet_e) { flockfile(print.to.stream); - fl_print_format("%[%QRead failed while trying to %Q %Q '%]", print.to.stream, print.context, print.prefix, operation, type_name, print.context); - fl_print_format("%[%Q%]", print.to.stream, print.notable, name, print.notable); - fl_print_format("%['.%]%r", print.to.stream, print.context, print.context, f_string_eol_s); + fl_print_format("%[%QRead failed while trying to %Q %Q '%]", print.to, print.context, print.prefix, operation, type_name, print.context); + fl_print_format("%[%Q%]", print.to, print.notable, name, print.notable); + fl_print_format("%['.%]%r", print.to, print.context, print.context, f_string_eol_s); funlockfile(print.to.stream); } @@ -328,9 +328,9 @@ extern "C" { if (print.verbosity != f_console_verbosity_quiet_e) { flockfile(print.to.stream); - fl_print_format("%[%QSeek failed while trying to %Q %Q '%]", print.to.stream, print.context, print.prefix, operation, type_name, print.context); - fl_print_format("%[%Q%]", print.to.stream, print.notable, name, print.notable); - fl_print_format("%['.%]%r", print.to.stream, print.context, print.context, f_string_eol_s); + fl_print_format("%[%QSeek failed while trying to %Q %Q '%]", print.to, print.context, print.prefix, operation, type_name, print.context); + fl_print_format("%[%Q%]", print.to, print.notable, name, print.notable); + fl_print_format("%['.%]%r", print.to, print.context, print.context, f_string_eol_s); funlockfile(print.to.stream); } @@ -342,9 +342,9 @@ extern "C" { if (print.verbosity != f_console_verbosity_quiet_e) { flockfile(print.to.stream); - fl_print_format("%[%QStat failed while trying to %Q %Q '%]", print.to.stream, print.context, print.prefix, operation, type_name, print.context); - fl_print_format("%[%Q%]", print.to.stream, print.notable, name, print.notable); - fl_print_format("%['.%]%r", print.to.stream, print.context, print.context, f_string_eol_s); + fl_print_format("%[%QStat failed while trying to %Q %Q '%]", print.to, print.context, print.prefix, operation, type_name, print.context); + fl_print_format("%[%Q%]", print.to, print.notable, name, print.notable); + fl_print_format("%['.%]%r", print.to, print.context, print.context, f_string_eol_s); funlockfile(print.to.stream); } @@ -356,9 +356,9 @@ extern "C" { if (print.verbosity != f_console_verbosity_quiet_e) { flockfile(print.to.stream); - fl_print_format("%[%QSynchronize failed while trying to %Q %Q '%]", print.to.stream, print.context, print.prefix, operation, type_name, print.context); - fl_print_format("%[%Q%]", print.to.stream, print.notable, name, print.notable); - fl_print_format("%['.%]%r", print.to.stream, print.context, print.context, f_string_eol_s); + fl_print_format("%[%QSynchronize failed while trying to %Q %Q '%]", print.to, print.context, print.prefix, operation, type_name, print.context); + fl_print_format("%[%Q%]", print.to, print.notable, name, print.notable); + fl_print_format("%['.%]%r", print.to, print.context, print.context, f_string_eol_s); funlockfile(print.to.stream); } @@ -370,9 +370,9 @@ extern "C" { if (print.verbosity != f_console_verbosity_quiet_e) { flockfile(print.to.stream); - fl_print_format("%[%QFailed to %Q %Q, the path '%]", print.to.stream, print.context, print.prefix, operation, type_name, print.context); - fl_print_format("%[%Q%]", print.to.stream, print.notable, name, print.notable); - fl_print_format("%[' is an unknown file type.%]%r", print.to.stream, print.context, print.context, f_string_eol_s); + fl_print_format("%[%QFailed to %Q %Q, the path '%]", print.to, print.context, print.prefix, operation, type_name, print.context); + fl_print_format("%[%Q%]", print.to, print.notable, name, print.notable); + fl_print_format("%[' is an unknown file type.%]%r", print.to, print.context, print.context, f_string_eol_s); funlockfile(print.to.stream); } @@ -384,9 +384,9 @@ extern "C" { if (print.verbosity != f_console_verbosity_quiet_e) { flockfile(print.to.stream); - fl_print_format("%[%QUTF failure while trying to %Q %Q '%]", print.to.stream, print.context, print.prefix, operation, type_name, print.context); - fl_print_format("%[%Q%]", print.to.stream, print.notable, name, print.notable); - fl_print_format("%['.%]%r", print.to.stream, print.context, print.context, f_string_eol_s); + fl_print_format("%[%QUTF failure while trying to %Q %Q '%]", print.to, print.context, print.prefix, operation, type_name, print.context); + fl_print_format("%[%Q%]", print.to, print.notable, name, print.notable); + fl_print_format("%['.%]%r", print.to, print.context, print.context, f_string_eol_s); funlockfile(print.to.stream); } @@ -398,9 +398,9 @@ extern "C" { if (print.verbosity != f_console_verbosity_quiet_e) { flockfile(print.to.stream); - fl_print_format("%[%QInvalid UTF while trying to %Q %Q '%]", print.to.stream, print.context, print.prefix, operation, type_name, print.context); - fl_print_format("%[%Q%]", print.to.stream, print.notable, name, print.notable); - fl_print_format("%['.%]%r", print.to.stream, print.context, print.context, f_string_eol_s); + fl_print_format("%[%QInvalid UTF while trying to %Q %Q '%]", print.to, print.context, print.prefix, operation, type_name, print.context); + fl_print_format("%[%Q%]", print.to, print.notable, name, print.notable); + fl_print_format("%['.%]%r", print.to, print.context, print.context, f_string_eol_s); funlockfile(print.to.stream); } @@ -412,9 +412,9 @@ extern "C" { if (print.verbosity != f_console_verbosity_quiet_e) { flockfile(print.to.stream); - fl_print_format("%[%QUnderflow while trying to %Q %Q '%]", print.to.stream, print.context, print.prefix, operation, type_name, print.context); - fl_print_format("%[%Q%]", print.to.stream, print.notable, name, print.notable); - fl_print_format("%['.%]%r", print.to.stream, print.context, print.context, f_string_eol_s); + fl_print_format("%[%QUnderflow while trying to %Q %Q '%]", print.to, print.context, print.prefix, operation, type_name, print.context); + fl_print_format("%[%Q%]", print.to, print.notable, name, print.notable); + fl_print_format("%['.%]%r", print.to, print.context, print.context, f_string_eol_s); funlockfile(print.to.stream); } @@ -426,9 +426,9 @@ extern "C" { if (print.verbosity != f_console_verbosity_quiet_e) { flockfile(print.to.stream); - fl_print_format("%[%QFailed to %Q %Q '%]", print.to.stream, print.context, print.prefix, operation, type_name, print.context); - fl_print_format("%[%Q%]", print.to.stream, print.notable, name, print.notable); - fl_print_format("%[', write failure.%]%r", print.to.stream, print.context, print.context, f_string_eol_s); + fl_print_format("%[%QFailed to %Q %Q '%]", print.to, print.context, print.prefix, operation, type_name, print.context); + fl_print_format("%[%Q%]", print.to, print.notable, name, print.notable); + fl_print_format("%[', write failure.%]%r", print.to, print.context, print.context, f_string_eol_s); funlockfile(print.to.stream); } @@ -440,9 +440,9 @@ extern "C" { if (print.verbosity != f_console_verbosity_quiet_e) { flockfile(print.to.stream); - fl_print_format("%[%QLoop while trying to %Q %Q '%]", print.to.stream, print.context, print.prefix, operation, type_name, print.context); - fl_print_format("%[%Q%]", print.to.stream, print.notable, name, print.notable); - fl_print_format("%['.%]%r", print.to.stream, print.context, print.context, f_string_eol_s); + fl_print_format("%[%QLoop while trying to %Q %Q '%]", print.to, print.context, print.prefix, operation, type_name, print.context); + fl_print_format("%[%Q%]", print.to, print.notable, name, print.notable); + fl_print_format("%['.%]%r", print.to, print.context, print.context, f_string_eol_s); funlockfile(print.to.stream); } @@ -454,9 +454,9 @@ extern "C" { if (print.verbosity != f_console_verbosity_quiet_e) { flockfile(print.to.stream); - fl_print_format("%[%QInvalid %Q name '%]", print.to.stream, print.context, print.prefix, type_name, print.context); - fl_print_format("%[%Q%]", print.to.stream, print.notable, name, print.notable); - fl_print_format("%['.%]%r", print.to.stream, print.context, print.context, f_string_eol_s); + fl_print_format("%[%QInvalid %Q name '%]", print.to, print.context, print.prefix, type_name, print.context); + fl_print_format("%[%Q%]", print.to, print.notable, name, print.notable); + fl_print_format("%['.%]%r", print.to, print.context, print.context, f_string_eol_s); funlockfile(print.to.stream); } @@ -468,9 +468,9 @@ extern "C" { if (print.verbosity != f_console_verbosity_quiet_e) { flockfile(print.to.stream); - fl_print_format("%[%QNumber overflow while trying to %Q %Q '%]", print.to.stream, print.context, print.prefix, operation, type_name, print.context); - fl_print_format("%[%Q%]", print.to.stream, print.notable, name, print.notable); - fl_print_format("%['.%]%r", print.to.stream, print.context, print.context, f_string_eol_s); + fl_print_format("%[%QNumber overflow while trying to %Q %Q '%]", print.to, print.context, print.prefix, operation, type_name, print.context); + fl_print_format("%[%Q%]", print.to, print.notable, name, print.notable); + fl_print_format("%['.%]%r", print.to, print.context, print.context, f_string_eol_s); funlockfile(print.to.stream); } @@ -482,9 +482,9 @@ extern "C" { if (print.verbosity != f_console_verbosity_quiet_e) { flockfile(print.to.stream); - fl_print_format("%[%QNumber underflow while trying to %Q %Q '%]", print.to.stream, print.context, print.prefix, operation, type_name, print.context); - fl_print_format("%[%Q%]", print.to.stream, print.notable, name, print.notable); - fl_print_format("%['.%]%r", print.to.stream, print.context, print.context, f_string_eol_s); + fl_print_format("%[%QNumber underflow while trying to %Q %Q '%]", print.to, print.context, print.prefix, operation, type_name, print.context); + fl_print_format("%[%Q%]", print.to, print.notable, name, print.notable); + fl_print_format("%['.%]%r", print.to, print.context, print.context, f_string_eol_s); funlockfile(print.to.stream); } @@ -496,13 +496,13 @@ extern "C" { if (print.verbosity != f_console_verbosity_quiet_e) { flockfile(print.to.stream); - fl_print_format("%[%QInvalid parameter", print.to.stream, print.context, print.prefix); + fl_print_format("%[%QInvalid parameter", print.to, print.context, print.prefix); private_fll_error_print_function(print, function); - fl_print_format(" for the %Q '%]", print.to.stream, type_name, print.context); - fl_print_format("%[%Q%]", print.to.stream, print.notable, name, print.notable); - fl_print_format("%['.%]%r", print.to.stream, print.context, print.context, f_string_eol_s); + fl_print_format(" for the %Q '%]", print.to, type_name, print.context); + fl_print_format("%[%Q%]", print.to, print.notable, name, print.notable); + fl_print_format("%['.%]%r", print.to, print.context, print.context, f_string_eol_s); funlockfile(print.to.stream); } @@ -514,9 +514,9 @@ extern "C" { if (print.verbosity != f_console_verbosity_quiet_e) { flockfile(print.to.stream); - fl_print_format("%[%QProhibited by system while trying to %Q %Q '%]", print.to.stream, print.context, print.prefix, operation, type_name, print.context); - fl_print_format("%[%Q%]", print.to.stream, print.notable, name, print.notable); - fl_print_format("%['.%]%r", print.to.stream, print.context, print.context, f_string_eol_s); + fl_print_format("%[%QProhibited by system while trying to %Q %Q '%]", print.to, print.context, print.prefix, operation, type_name, print.context); + fl_print_format("%[%Q%]", print.to, print.notable, name, print.notable); + fl_print_format("%['.%]%r", print.to, print.context, print.context, f_string_eol_s); funlockfile(print.to.stream); } @@ -528,9 +528,9 @@ extern "C" { if (print.verbosity != f_console_verbosity_quiet_e) { flockfile(print.to.stream); - fl_print_format("%[%QUnable to %Q %Q '%]", print.to.stream, print.context, print.prefix, operation, type_name, print.context); - fl_print_format("%[%Q%]", print.to.stream, print.notable, name, print.notable); - fl_print_format("%[', %Q is read only.%]%r", print.to.stream, print.context, type_name, print.context, f_string_eol_s); + fl_print_format("%[%QUnable to %Q %Q '%]", print.to, print.context, print.prefix, operation, type_name, print.context); + fl_print_format("%[%Q%]", print.to, print.notable, name, print.notable); + fl_print_format("%[', %Q is read only.%]%r", print.to, print.context, type_name, print.context, f_string_eol_s); funlockfile(print.to.stream); } @@ -542,9 +542,9 @@ extern "C" { if (print.verbosity != f_console_verbosity_quiet_e) { flockfile(print.to.stream); - fl_print_format("%[%QUnable to %Q %Q '%]", print.to.stream, print.context, print.prefix, operation, type_name, print.context); - fl_print_format("%[%Q%]", print.to.stream, print.notable, name, print.notable); - fl_print_format("%[', %Q is write only.%]%r", print.to.stream, print.context, type_name, print.context, f_string_eol_s); + fl_print_format("%[%QUnable to %Q %Q '%]", print.to, print.context, print.prefix, operation, type_name, print.context); + fl_print_format("%[%Q%]", print.to, print.notable, name, print.notable); + fl_print_format("%[', %Q is write only.%]%r", print.to, print.context, type_name, print.context, f_string_eol_s); funlockfile(print.to.stream); } @@ -557,9 +557,9 @@ extern "C" { if (print.verbosity != f_console_verbosity_quiet_e) { flockfile(print.to.stream); - fl_print_format("%[%QInvalid or missing directory in path while trying to %Q %Q '%]", print.to.stream, print.context, print.prefix, operation, type_name, print.context); - fl_print_format("%[%Q%]", print.to.stream, print.notable, name, print.notable); - fl_print_format("%['.%]%r", print.to.stream, print.context, print.context, f_string_eol_s); + fl_print_format("%[%QInvalid or missing directory in path while trying to %Q %Q '%]", print.to, print.context, print.prefix, operation, type_name, print.context); + fl_print_format("%[%Q%]", print.to, print.notable, name, print.notable); + fl_print_format("%['.%]%r", print.to, print.context, print.context, f_string_eol_s); funlockfile(print.to.stream); } @@ -571,9 +571,9 @@ extern "C" { if (print.verbosity != f_console_verbosity_quiet_e) { flockfile(print.to.stream); - fl_print_format("%[%QFailed to %Q %Q, the path '%]", print.to.stream, print.context, print.prefix, operation, type_name, print.context); - fl_print_format("%[%Q%]", print.to.stream, print.notable, name, print.notable); - fl_print_format("%[' is a directory.%]%r", print.to.stream, print.context, print.context, f_string_eol_s); + fl_print_format("%[%QFailed to %Q %Q, the path '%]", print.to, print.context, print.prefix, operation, type_name, print.context); + fl_print_format("%[%Q%]", print.to, print.notable, name, print.notable); + fl_print_format("%[' is a directory.%]%r", print.to, print.context, print.context, f_string_eol_s); funlockfile(print.to.stream); } @@ -586,9 +586,9 @@ extern "C" { if (print.verbosity != f_console_verbosity_quiet_e) { flockfile(print.to.stream); - fl_print_format("%[%QFailed to %Q %Q, the path '%]", print.to.stream, print.context, print.prefix, operation, type_name, print.context); - fl_print_format("%[%Q%]", print.to.stream, print.notable, name, print.notable); - fl_print_format("%[' is a file.%]%r", print.to.stream, print.context, print.context, f_string_eol_s); + fl_print_format("%[%QFailed to %Q %Q, the path '%]", print.to, print.context, print.prefix, operation, type_name, print.context); + fl_print_format("%[%Q%]", print.to, print.notable, name, print.notable); + fl_print_format("%[' is a file.%]%r", print.to, print.context, print.context, f_string_eol_s); funlockfile(print.to.stream); } @@ -602,9 +602,9 @@ extern "C" { if (print.verbosity != f_console_verbosity_quiet_e) { flockfile(print.to.stream); - fl_print_format("%[%QFailed to %Q %Q '%]", print.to.stream, print.context, print.prefix, operation, type_name, print.context); - fl_print_format("%[%Q%]", print.to.stream, print.notable, name, print.notable); - fl_print_format("%[' due to an invalid directory in the path.%]%r", print.to.stream, print.context, print.context, f_string_eol_s); + fl_print_format("%[%QFailed to %Q %Q '%]", print.to, print.context, print.prefix, operation, type_name, print.context); + fl_print_format("%[%Q%]", print.to, print.notable, name, print.notable); + fl_print_format("%[' due to an invalid directory in the path.%]%r", print.to, print.context, print.context, f_string_eol_s); funlockfile(print.to.stream); } @@ -616,9 +616,9 @@ extern "C" { if (print.verbosity != f_console_verbosity_quiet_e) { flockfile(print.to.stream); - fl_print_format("%[%QFailed to %Q %Q, the path '%]", print.to.stream, print.context, print.prefix, operation, type_name, print.context); - fl_print_format("%[%Q%]", print.to.stream, print.notable, name, print.notable); - fl_print_format("%[' is a %Q.%]%r", print.to.stream, print.context, status == F_file_type_pipe ? fll_error_file_type_pipe_s : fll_error_file_type_socket_s, print.context, f_string_eol_s); + fl_print_format("%[%QFailed to %Q %Q, the path '%]", print.to, print.context, print.prefix, operation, type_name, print.context); + fl_print_format("%[%Q%]", print.to, print.notable, name, print.notable); + fl_print_format("%[' is a %Q.%]%r", print.to, print.context, status == F_file_type_pipe ? fll_error_file_type_pipe_s : fll_error_file_type_socket_s, print.context, f_string_eol_s); funlockfile(print.to.stream); } @@ -638,9 +638,9 @@ extern "C" { if (print.verbosity != f_console_verbosity_quiet_e) { flockfile(print.to.stream); - fl_print_format("%[%QThe argument for the parameter '%]", print.to.stream, print.context, print.prefix, print.context); - fl_print_format("%[%Q%]", print.to.stream, print.notable, parameter, print.notable); - fl_print_format("%[' must not be an empty string.%]%r", print.to.stream, print.context, print.context, f_string_eol_s); + fl_print_format("%[%QThe argument for the parameter '%]", print.to, print.context, print.prefix, print.context); + fl_print_format("%[%Q%]", print.to, print.notable, parameter, print.notable); + fl_print_format("%[' must not be an empty string.%]%r", print.to, print.context, print.context, f_string_eol_s); funlockfile(print.to.stream); } @@ -652,11 +652,11 @@ extern "C" { if (print.verbosity != f_console_verbosity_quiet_e) { flockfile(print.to.stream); - fl_print_format("%[%QThe argument '%]", print.to.stream, print.context, print.prefix, print.context); - fl_print_format("%[%Q%]", print.to.stream, print.notable, argument, print.notable); - fl_print_format("%[' is not a valid number for the parameter '%]", print.to.stream, print.context, print.context); - fl_print_format("%[%Q%]", print.to.stream, print.notable, parameter, print.notable); - fl_print_format("%['.%]%r", print.to.stream, print.context, print.context, f_string_eol_s); + 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 a valid number for the parameter '%]", print.to, print.context, print.context); + fl_print_format("%[%Q%]", print.to, print.notable, parameter, print.notable); + fl_print_format("%['.%]%r", print.to, print.context, print.context, f_string_eol_s); funlockfile(print.to.stream); } @@ -668,11 +668,11 @@ extern "C" { if (print.verbosity != f_console_verbosity_quiet_e) { flockfile(print.to.stream); - fl_print_format("%[%QThe argument '%]", print.to.stream, print.context, print.prefix, print.context); - fl_print_format("%[%Q%]", print.to.stream, print.notable, argument, print.notable); - fl_print_format("%[' is negative, which is not allowed for the parameter '%]", print.to.stream, print.context, print.context); - fl_print_format("%[%Q%]", print.to.stream, print.notable, parameter, print.notable); - fl_print_format("%['.%]%r", print.to.stream, print.context, print.context, f_string_eol_s); + 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 negative, which is not allowed for the parameter '%]", print.to, print.context, print.context); + fl_print_format("%[%Q%]", print.to, print.notable, parameter, print.notable); + fl_print_format("%['.%]%r", print.to, print.context, print.context, f_string_eol_s); funlockfile(print.to.stream); } @@ -684,11 +684,11 @@ extern "C" { if (print.verbosity != f_console_verbosity_quiet_e) { flockfile(print.to.stream); - fl_print_format("%[%QThe argument '%]", print.to.stream, print.context, print.prefix, print.context); - fl_print_format("%[%Q%]", print.to.stream, print.notable, argument, print.notable); - fl_print_format("%[' is too large for the parameter '%]", print.to.stream, print.context, print.context); - fl_print_format("%[%Q%]", print.to.stream, print.notable, parameter, print.notable); - fl_print_format("%['.%]%r", print.to.stream, print.context, print.context, f_string_eol_s); + 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 too large for the parameter '%]", print.to, print.context, print.context); + fl_print_format("%[%Q%]", print.to, print.notable, parameter, print.notable); + fl_print_format("%['.%]%r", print.to, print.context, print.context, f_string_eol_s); funlockfile(print.to.stream); } @@ -700,11 +700,11 @@ extern "C" { if (print.verbosity != f_console_verbosity_quiet_e) { flockfile(print.to.stream); - fl_print_format("%[%QThe argument '%]", print.to.stream, print.context, print.prefix, print.context); - fl_print_format("%[%Q%]", print.to.stream, print.notable, argument, print.notable); - fl_print_format("%[' is positive, which is not allowed for the parameter '%]", print.to.stream, print.context, print.context); - fl_print_format("%[%Q%]", print.to.stream, print.notable, parameter, print.notable); - fl_print_format("%['.%]%r", print.to.stream, print.context, print.context, f_string_eol_s); + 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 positive, which is not allowed for the parameter '%]", print.to, print.context, print.context); + fl_print_format("%[%Q%]", print.to, print.notable, parameter, print.notable); + fl_print_format("%['.%]%r", print.to, print.context, print.context, f_string_eol_s); funlockfile(print.to.stream); } @@ -716,11 +716,11 @@ extern "C" { if (print.verbosity != f_console_verbosity_quiet_e) { flockfile(print.to.stream); - fl_print_format("%[%QThe argument '%]", print.to.stream, print.context, print.prefix, print.context); - fl_print_format("%[%Q%]", print.to.stream, print.notable, argument, print.notable); - fl_print_format("%[' is too small for the parameter '%]", print.to.stream, print.context, print.context); - fl_print_format("%[%Q%]", print.to.stream, print.notable, parameter, print.notable); - fl_print_format("%['.%]%r", print.to.stream, print.context, print.context, f_string_eol_s); + 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 too small for the parameter '%]", print.to, print.context, print.context); + fl_print_format("%[%Q%]", print.to, print.notable, parameter, print.notable); + fl_print_format("%['.%]%r", print.to, print.context, print.context, f_string_eol_s); funlockfile(print.to.stream); } diff --git a/level_2/fll_error/c/private-error.c b/level_2/fll_error/c/private-error.c index b565313..71fa402 100644 --- a/level_2/fll_error/c/private-error.c +++ b/level_2/fll_error/c/private-error.c @@ -12,11 +12,11 @@ extern "C" { if (print.verbosity != f_console_verbosity_quiet_e) { flockfile(print.to.stream); - fl_print_format("%[%QAccess denied", print.to.stream, print.context, print.prefix); + fl_print_format("%[%QAccess denied", print.to, print.context, print.prefix); private_fll_error_print_function(print, function); - fl_print_format(".%]%r", print.to.stream, print.context, f_string_eol_s); + fl_print_format(".%]%r", print.to, print.context, f_string_eol_s); funlockfile(print.to.stream); } @@ -28,11 +28,11 @@ extern "C" { if (print.verbosity != f_console_verbosity_quiet_e) { flockfile(print.to.stream); - fl_print_format("%[%QMaximum array length reached", print.to.stream, print.context, print.prefix); + fl_print_format("%[%QMaximum array length reached", print.to, print.context, print.prefix); private_fll_error_print_function(print, function); - fl_print_format(".%]%r", print.to.stream, print.context, f_string_eol_s); + fl_print_format(".%]%r", print.to, print.context, f_string_eol_s); funlockfile(print.to.stream); } @@ -44,11 +44,11 @@ extern "C" { if (print.verbosity != f_console_verbosity_quiet_e) { flockfile(print.to.stream); - fl_print_format("%[%QMaximum buffer length reached", print.to.stream, print.context, print.prefix); + fl_print_format("%[%QMaximum buffer length reached", print.to, print.context, print.prefix); private_fll_error_print_function(print, function); - fl_print_format(".%]%r", print.to.stream, print.context, f_string_eol_s); + fl_print_format(".%]%r", print.to, print.context, f_string_eol_s); funlockfile(print.to.stream); } @@ -60,11 +60,11 @@ extern "C" { if (print.verbosity != f_console_verbosity_quiet_e) { flockfile(print.to.stream); - fl_print_format("%[%QAn error has occurred", print.to.stream, print.context, print.prefix); + fl_print_format("%[%QAn error has occurred", print.to, print.context, print.prefix); private_fll_error_print_function(print, function); - fl_print_format(".%]%r", print.to.stream, print.context, f_string_eol_s); + fl_print_format(".%]%r", print.to, print.context, f_string_eol_s); funlockfile(print.to.stream); } @@ -76,11 +76,11 @@ extern "C" { if (print.verbosity != f_console_verbosity_quiet_e) { flockfile(print.to.stream); - fl_print_format("%[%QFile not found", print.to.stream, print.context, print.prefix); + fl_print_format("%[%QFile not found", print.to, print.context, print.prefix); private_fll_error_print_function(print, function); - fl_print_format(".%]%r", print.to.stream, print.context, f_string_eol_s); + fl_print_format(".%]%r", print.to, print.context, f_string_eol_s); funlockfile(print.to.stream); } @@ -92,11 +92,11 @@ extern "C" { if (print.verbosity != f_console_verbosity_quiet_e) { flockfile(print.to.stream); - fl_print_format("%[%QUnable to allocate memory", print.to.stream, print.context, print.prefix); + fl_print_format("%[%QUnable to allocate memory", print.to, print.context, print.prefix); private_fll_error_print_function(print, function); - fl_print_format(".%]%r", print.to.stream, print.context, f_string_eol_s); + fl_print_format(".%]%r", print.to, print.context, f_string_eol_s); funlockfile(print.to.stream); } @@ -108,11 +108,11 @@ extern "C" { if (print.verbosity != f_console_verbosity_quiet_e) { flockfile(print.to.stream); - fl_print_format("%[%QInvalid parameter", print.to.stream, print.context, print.prefix); + fl_print_format("%[%QInvalid parameter", print.to, print.context, print.prefix); private_fll_error_print_function(print, function); - fl_print_format(".%]%r", print.to.stream, print.context, f_string_eol_s); + fl_print_format(".%]%r", print.to, print.context, f_string_eol_s); funlockfile(print.to.stream); } @@ -124,11 +124,11 @@ extern "C" { if (print.verbosity != f_console_verbosity_quiet_e) { flockfile(print.to.stream); - fl_print_format("%[%QMaximum string length reached", print.to.stream, print.context, print.prefix); + fl_print_format("%[%QMaximum string length reached", print.to, print.context, print.prefix); private_fll_error_print_function(print, function); - fl_print_format(".%]%r", print.to.stream, print.context, f_string_eol_s); + fl_print_format(".%]%r", print.to, print.context, f_string_eol_s); funlockfile(print.to.stream); } @@ -140,11 +140,11 @@ extern "C" { if (print.verbosity != f_console_verbosity_quiet_e) { flockfile(print.to.stream); - fl_print_format("%[%QInvalid UTF-8 character found", print.to.stream, print.context, print.prefix); + fl_print_format("%[%QInvalid UTF-8 character found", print.to, print.context, print.prefix); private_fll_error_print_function(print, function); - fl_print_format(".%]%r", print.to.stream, print.context, f_string_eol_s); + fl_print_format(".%]%r", print.to, print.context, f_string_eol_s); funlockfile(print.to.stream); } @@ -156,11 +156,11 @@ extern "C" { if (print.verbosity != f_console_verbosity_quiet_e) { flockfile(print.to.stream); - fl_print_format("%[%QUTF-8 character (fragment) found", print.to.stream, print.context, print.prefix); + fl_print_format("%[%QUTF-8 character (fragment) found", print.to, print.context, print.prefix); private_fll_error_print_function(print, function); - fl_print_format(".%]%r", print.to.stream, print.context, f_string_eol_s); + fl_print_format(".%]%r", print.to, print.context, f_string_eol_s); funlockfile(print.to.stream); } @@ -172,18 +172,18 @@ extern "C" { if (print.verbosity != f_console_verbosity_quiet_e) { flockfile(print.to.stream); - fl_print_format("%[%QInvalid (incomplete) UTF-8 character found", print.to.stream, print.context, print.prefix); + fl_print_format("%[%QInvalid (incomplete) UTF-8 character found", print.to, print.context, print.prefix); private_fll_error_print_function(print, function); if (status == F_complete_not_utf_eos) { - fl_print_format(" at the end of string.%]%r", print.to.stream, print.context, f_string_eol_s); + fl_print_format(" at the end of string.%]%r", print.to, print.context, f_string_eol_s); } else if (status == F_complete_not_utf_stop) { - fl_print_format(" at the stop point of string.%]%r", print.to.stream, print.context, f_string_eol_s); + fl_print_format(" at the stop point of string.%]%r", print.to, print.context, f_string_eol_s); } else { - fl_print_format(".%]%r", print.to.stream, print.context, f_string_eol_s); + fl_print_format(".%]%r", print.to, print.context, f_string_eol_s); } funlockfile(print.to.stream); @@ -196,11 +196,11 @@ extern "C" { if (print.verbosity != f_console_verbosity_quiet_e) { flockfile(print.to.stream); - fl_print_format("%[%QFailure", print.to.stream, print.context, print.prefix); + fl_print_format("%[%QFailure", print.to, print.context, print.prefix); private_fll_error_print_function(print, function); - fl_print_format(".%]%r", print.to.stream, print.context, f_string_eol_s); + fl_print_format(".%]%r", print.to, print.context, f_string_eol_s); funlockfile(print.to.stream); } @@ -212,11 +212,11 @@ extern "C" { if (print.verbosity != f_console_verbosity_quiet_e) { flockfile(print.to.stream); - fl_print_format("%[%QSignal received", print.to.stream, print.context, print.prefix); + fl_print_format("%[%QSignal received", print.to, print.context, print.prefix); private_fll_error_print_function(print, function); - fl_print_format(".%]%r", print.to.stream, print.context, f_string_eol_s); + fl_print_format(".%]%r", print.to, print.context, f_string_eol_s); funlockfile(print.to.stream); } @@ -228,11 +228,11 @@ extern "C" { if (print.verbosity != f_console_verbosity_quiet_e) { flockfile(print.to.stream); - fl_print_format("%[%QInterrupt signal received", print.to.stream, print.context, print.prefix); + fl_print_format("%[%QInterrupt signal received", print.to, print.context, print.prefix); private_fll_error_print_function(print, function); - fl_print_format(".%]%r", print.to.stream, print.context, f_string_eol_s); + fl_print_format(".%]%r", print.to, print.context, f_string_eol_s); funlockfile(print.to.stream); } @@ -244,12 +244,12 @@ extern "C" { if (print.verbosity != f_console_verbosity_quiet_e) { flockfile(print.to.stream); - fl_print_format("%[%Q(%]", print.to.stream, print.context, print.prefix, print.context); - fl_print_format("%[%ui%]%[)", print.to.stream, print.notable, status, print.notable, print.context); + fl_print_format("%[%Q(%]", print.to, print.context, print.prefix, print.context); + fl_print_format("%[%ui%]%[)", print.to, print.notable, status, print.notable, print.context); private_fll_error_print_function(print, function); - fl_print_format(".%]%r", print.to.stream, print.context, f_string_eol_s); + fl_print_format(".%]%r", print.to, print.context, f_string_eol_s); funlockfile(print.to.stream); } @@ -263,9 +263,9 @@ extern "C" { void private_fll_error_print_function(const fl_print_t print, const char *function) { if (function) { - fl_print_format(" when calling function%] ", print.to.stream, print.context); - fl_print_format("%[%S%]", print.to.stream, print.notable, function, print.notable); - fl_print_format("%[()", print.to.stream, print.context); + fl_print_format(" when calling function%] ", print.to, print.context); + fl_print_format("%[%S%]", print.to, print.notable, function, print.notable); + fl_print_format("%[()", print.to, print.context); } } #endif // !defined(_di_fll_error_print_) || !defined(_di_fll_error_file_print_) || !defined(_di_fll_error_number_print_) diff --git a/level_2/fll_print/c/print.c b/level_2/fll_print/c/print.c index 3c6aed6..196fae6 100644 --- a/level_2/fll_print/c/print.c +++ b/level_2/fll_print/c/print.c @@ -5,1033 +5,1033 @@ extern "C" { #endif #ifndef _di_fll_print_ - f_status_t fll_print(const f_string_t string, const f_array_length_t length, FILE * const output) { + f_status_t fll_print(const f_string_t string, const f_array_length_t length, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = f_print(string, length, output); + const f_status_t status = f_print(string, length, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_ #ifndef _di_fll_print_character_ - f_status_t fll_print_character(const f_char_t character, FILE * const output) { + f_status_t fll_print_character(const f_char_t character, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = f_print_character(character, output); + const f_status_t status = f_print_character(character, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_character_ #ifndef _di_fll_print_character_safely_ - f_status_t fll_print_character_safely(const f_char_t character, FILE * const output) { + f_status_t fll_print_character_safely(const f_char_t character, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = f_print_character_safely(character, output); + const f_status_t status = f_print_character_safely(character, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_character_safely_ #ifndef _di_fll_print_dynamic_ - f_status_t fll_print_dynamic(const f_string_static_t buffer, FILE * const output) { + f_status_t fll_print_dynamic(const f_string_static_t buffer, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = f_print_dynamic(buffer, output); + const f_status_t status = f_print_dynamic(buffer, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_dynamic_ #ifndef _di_fll_print_dynamic_partial_ - f_status_t fll_print_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, FILE * const output) { + f_status_t fll_print_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = f_print_dynamic_partial(buffer, range, output); + const f_status_t status = f_print_dynamic_partial(buffer, range, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_dynamic_partial_ #ifndef _di_fll_print_dynamic_partial_raw_ - f_status_t fll_print_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, FILE * const output) { + f_status_t fll_print_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = f_print_dynamic_partial_raw(buffer, range, output); + const f_status_t status = f_print_dynamic_partial_raw(buffer, range, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_dynamic_partial_raw_ #ifndef _di_fll_print_dynamic_partial_raw_safely_ - f_status_t fll_print_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, FILE * const output) { + f_status_t fll_print_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = f_print_dynamic_partial_raw_safely(buffer, range, output); + const f_status_t status = f_print_dynamic_partial_raw_safely(buffer, range, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_dynamic_partial_raw_safely_ #ifndef _di_fll_print_dynamic_partial_safely_ - f_status_t fll_print_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, FILE * const output) { + f_status_t fll_print_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = f_print_dynamic_partial_safely(buffer, range, output); + const f_status_t status = f_print_dynamic_partial_safely(buffer, range, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_dynamic_partial_safely_ #ifndef _di_fll_print_dynamic_raw_ - f_status_t fll_print_dynamic_raw(const f_string_static_t buffer, FILE * const output) { + f_status_t fll_print_dynamic_raw(const f_string_static_t buffer, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = f_print_dynamic_raw(buffer, output); + const f_status_t status = f_print_dynamic_raw(buffer, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_dynamic_raw_ #ifndef _di_fll_print_dynamic_raw_safely_ - f_status_t fll_print_dynamic_raw_safely(const f_string_static_t buffer, FILE * const output) { + f_status_t fll_print_dynamic_raw_safely(const f_string_static_t buffer, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = f_print_dynamic_raw_safely(buffer, output); + const f_status_t status = f_print_dynamic_raw_safely(buffer, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_dynamic_raw_safely_ #ifndef _di_fll_print_dynamic_safely_ - f_status_t fll_print_dynamic_safely(const f_string_static_t buffer, FILE * const output) { + f_status_t fll_print_dynamic_safely(const f_string_static_t buffer, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = f_print_dynamic_safely(buffer, output); + const f_status_t status = f_print_dynamic_safely(buffer, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_dynamic_safely_ #ifndef _di_fll_print_except_ - f_status_t fll_print_except(const f_string_t buffer, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE * const output) { + f_status_t fll_print_except(const f_string_t buffer, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = f_print_except(buffer, offset, length, except, output); + const f_status_t status = f_print_except(buffer, offset, length, except, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_except_ #ifndef _di_fll_print_except_dynamic_ - f_status_t fll_print_except_dynamic(const f_string_static_t buffer, const f_array_lengths_t except, FILE * const output) { + f_status_t fll_print_except_dynamic(const f_string_static_t buffer, const f_array_lengths_t except, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = f_print_except_dynamic(buffer, except, output); + const f_status_t status = f_print_except_dynamic(buffer, except, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_except_dynamic_ #ifndef _di_fll_print_except_dynamic_partial_ - f_status_t fll_print_except_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE * const output) { + f_status_t fll_print_except_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = f_print_except_dynamic_partial(buffer, range, except, output); + const f_status_t status = f_print_except_dynamic_partial(buffer, range, except, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_except_dynamic_partial_ #ifndef _di_fll_print_except_dynamic_partial_raw_ - f_status_t fll_print_except_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE * const output) { + f_status_t fll_print_except_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = f_print_except_dynamic_partial_raw(buffer, range, except, output); + const f_status_t status = f_print_except_dynamic_partial_raw(buffer, range, except, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_except_dynamic_partial_raw_ #ifndef _di_fll_print_except_dynamic_partial_raw_safely_ - f_status_t fll_print_except_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE * const output) { + f_status_t fll_print_except_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = f_print_except_dynamic_partial_raw_safely(buffer, range, except, output); + const f_status_t status = f_print_except_dynamic_partial_raw_safely(buffer, range, except, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_except_dynamic_partial_raw_safely_ #ifndef _di_fll_print_except_dynamic_partial_safely_ - f_status_t fll_print_except_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE * const output) { + f_status_t fll_print_except_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = f_print_except_dynamic_partial_safely(buffer, range, except, output); + const f_status_t status = f_print_except_dynamic_partial_safely(buffer, range, except, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_except_dynamic_partial_safely_ #ifndef _di_fll_print_except_dynamic_raw_ - f_status_t fll_print_except_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except, FILE * const output) { + f_status_t fll_print_except_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = f_print_except_dynamic_raw(buffer, except, output); + const f_status_t status = f_print_except_dynamic_raw(buffer, except, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_except_dynamic_raw_ #ifndef _di_fll_print_except_dynamic_raw_safely_ - f_status_t fll_print_except_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except, FILE * const output) { + f_status_t fll_print_except_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = f_print_except_dynamic_raw_safely(buffer, except, output); + const f_status_t status = f_print_except_dynamic_raw_safely(buffer, except, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_except_dynamic_raw_safely_ #ifndef _di_fll_print_except_dynamic_safely_ - f_status_t fll_print_except_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except, FILE * const output) { + f_status_t fll_print_except_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = f_print_except_dynamic_safely(buffer, except, output); + const f_status_t status = f_print_except_dynamic_safely(buffer, except, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_except_dynamic_safely_ #ifndef _di_fll_print_except_raw_ - f_status_t fll_print_except_raw(const f_string_t buffer, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE * const output) { + f_status_t fll_print_except_raw(const f_string_t buffer, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = f_print_except_raw(buffer, offset, length, except, output); + const f_status_t status = f_print_except_raw(buffer, offset, length, except, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_except_raw_ #ifndef _di_fll_print_except_raw_safely_ - f_status_t fll_print_except_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE * const output) { + f_status_t fll_print_except_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = f_print_except_raw_safely(string, offset, length, except, output); + const f_status_t status = f_print_except_raw_safely(string, offset, length, except, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_except_raw_safely_ #ifndef _di_fll_print_except_safely_ - f_status_t fll_print_except_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE * const output) { + f_status_t fll_print_except_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = f_print_except_safely(string, offset, length, except, output); + const f_status_t status = f_print_except_safely(string, offset, length, except, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_except_safely_ #ifndef _di_fll_print_except_in_ - f_status_t fll_print_except_in(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output) { + f_status_t fll_print_except_in(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = f_print_except_in(string, offset, length, except_at, except_in, output); + const f_status_t status = f_print_except_in(string, offset, length, except_at, except_in, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_except_in_ #ifndef _di_fll_print_except_in_dynamic_ - f_status_t fll_print_except_in_dynamic(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output) { + f_status_t fll_print_except_in_dynamic(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = f_print_except_in_dynamic(buffer, except_at, except_in, output); + const f_status_t status = f_print_except_in_dynamic(buffer, except_at, except_in, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_except_in_dynamic_ #ifndef _di_fll_print_except_in_dynamic_partial_ - f_status_t fll_print_except_in_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output) { + f_status_t fll_print_except_in_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = f_print_except_in_dynamic_partial(buffer, range, except_at, except_in, output); + const f_status_t status = f_print_except_in_dynamic_partial(buffer, range, except_at, except_in, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_except_in_dynamic_partial_ #ifndef _di_fll_print_except_in_dynamic_partial_raw_ - f_status_t fll_print_except_in_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output) { + f_status_t fll_print_except_in_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = f_print_except_in_dynamic_partial_raw(buffer, range, except_at, except_in, output); + const f_status_t status = f_print_except_in_dynamic_partial_raw(buffer, range, except_at, except_in, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_except_in_dynamic_partial_raw_ #ifndef _di_fll_print_except_in_dynamic_partial_raw_safely_ - f_status_t fll_print_except_in_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output) { + f_status_t fll_print_except_in_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = f_print_except_in_dynamic_partial_raw_safely(buffer, range, except_at, except_in, output); + const f_status_t status = f_print_except_in_dynamic_partial_raw_safely(buffer, range, except_at, except_in, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_except_in_dynamic_partial_raw_safely_ #ifndef _di_fll_print_except_in_dynamic_partial_safely_ - f_status_t fll_print_except_in_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output) { + f_status_t fll_print_except_in_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = f_print_except_in_dynamic_partial_safely(buffer, range, except_at, except_in, output); + const f_status_t status = f_print_except_in_dynamic_partial_safely(buffer, range, except_at, except_in, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_except_in_dynamic_partial_safely_ #ifndef _di_fll_print_except_in_dynamic_raw_ - f_status_t fll_print_except_in_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output) { + f_status_t fll_print_except_in_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = f_print_except_in_dynamic_raw(buffer, except_at, except_in, output); + const f_status_t status = f_print_except_in_dynamic_raw(buffer, except_at, except_in, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_except_in_dynamic_raw_ #ifndef _di_fll_print_except_in_dynamic_raw_safely_ - f_status_t fll_print_except_in_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output) { + f_status_t fll_print_except_in_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = f_print_except_in_dynamic_raw_safely(buffer, except_at, except_in, output); + const f_status_t status = f_print_except_in_dynamic_raw_safely(buffer, except_at, except_in, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_except_in_dynamic_raw_safely_ #ifndef _di_fll_print_except_in_dynamic_safely_ - f_status_t fll_print_except_in_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output) { + f_status_t fll_print_except_in_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = f_print_except_in_dynamic_safely(buffer, except_at, except_in, output); + const f_status_t status = f_print_except_in_dynamic_safely(buffer, except_at, except_in, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_except_in_dynamic_safely_ #ifndef _di_fll_print_except_in_raw_ - f_status_t fll_print_except_in_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output) { + f_status_t fll_print_except_in_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = f_print_except_in_raw(string, offset, length, except_at, except_in, output); + const f_status_t status = f_print_except_in_raw(string, offset, length, except_at, except_in, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_except_in_raw_ #ifndef _di_fll_print_except_in_raw_safely_ - f_status_t fll_print_except_in_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output) { + f_status_t fll_print_except_in_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = f_print_except_in_raw_safely(string, offset, length, except_at, except_in, output); + const f_status_t status = f_print_except_in_raw_safely(string, offset, length, except_at, except_in, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_except_in_raw_safely_ #ifndef _di_fll_print_except_in_safely_ - f_status_t fll_print_except_in_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output) { + f_status_t fll_print_except_in_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = f_print_except_in_safely(string, offset, length, except_at, except_in, output); + const f_status_t status = f_print_except_in_safely(string, offset, length, except_at, except_in, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_except_in_safely_ #ifndef _di_fll_print_format_ - f_status_t fll_print_format(const f_string_t string, FILE * const output, ...) { + f_status_t fll_print_format(const f_string_t string, f_file_t file, ...) { - flockfile(output); + flockfile(file.stream); va_list ap; - va_start(ap, output); + va_start(ap, file); - const f_status_t status = fl_print_string_va(string, output, ap); + const f_status_t status = fl_print_string_va(string, file, ap); va_end(ap); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_format_ #ifndef _di_fll_print_format_convert_ - f_string_t fll_print_format_convert(const f_string_t string, FILE * const output, va_list ap, f_status_t * const status) { + f_string_t fll_print_format_convert(const f_string_t string, f_file_t file, va_list ap, f_status_t * const status) { - flockfile(output); + flockfile(file.stream); - f_string_t str = fl_print_format_convert(string, output, ap, status); + f_string_t str = fl_print_format_convert(string, file, ap, status); - funlockfile(output); + funlockfile(file.stream); return str; } #endif // _di_fll_print_format_convert_ #ifndef _di_fll_print_raw_ - f_status_t fll_print_raw(const f_string_t string, const f_array_length_t length, FILE * const output) { + f_status_t fll_print_raw(const f_string_t string, const f_array_length_t length, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = f_print_raw(string, length, output); + const f_status_t status = f_print_raw(string, length, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_raw_ #ifndef _di_fll_print_raw_safely_ - f_status_t fll_print_raw_safely(const f_string_t string, const f_array_length_t length, FILE * const output) { + f_status_t fll_print_raw_safely(const f_string_t string, const f_array_length_t length, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = f_print_raw_safely(string, length, output); + const f_status_t status = f_print_raw_safely(string, length, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_raw_safely_ #ifndef _di_fll_print_raw_terminated_ - f_status_t fll_print_raw_terminated(const f_string_t string, FILE * const output) { + f_status_t fll_print_raw_terminated(const f_string_t string, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = f_print_raw_terminated(string, output); + const f_status_t status = f_print_raw_terminated(string, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_raw_terminated_ #ifndef _di_fll_print_safely_ - f_status_t fll_print_safely(const f_string_t string, const f_array_length_t length, FILE * const output) { + f_status_t fll_print_safely(const f_string_t string, const f_array_length_t length, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = f_print_safely(string, length, output); + const f_status_t status = f_print_safely(string, length, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_safely_ #ifndef _di_fll_print_safely_terminated_ - f_status_t fll_print_safely_terminated(const f_string_t string, FILE * const output) { + f_status_t fll_print_safely_terminated(const f_string_t string, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = f_print_safely_terminated(string, output); + const f_status_t status = f_print_safely_terminated(string, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_safely_terminated_ #ifndef _di_fll_print_string_va_ - f_status_t fll_print_string_va(const f_string_t string, FILE * const output, va_list ap) { + f_status_t fll_print_string_va(const f_string_t string, f_file_t file, va_list ap) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = fl_print_string_va(string, output, ap); + const f_status_t status = fl_print_string_va(string, file, ap); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_string_va_ #ifndef _di_fll_print_terminated_ - f_status_t fll_print_terminated(const f_string_t string, FILE * const output) { + f_status_t fll_print_terminated(const f_string_t string, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = f_print_terminated(string, output); + const f_status_t status = f_print_terminated(string, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_terminated_ #ifndef _di_fll_print_trim_raw_ - f_status_t fll_print_trim_raw(const f_string_t string, const f_array_length_t length, FILE * const output) { + f_status_t fll_print_trim_raw(const f_string_t string, const f_array_length_t length, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = fl_print_trim_raw(string, length, output); + const f_status_t status = fl_print_trim_raw(string, length, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_trim_raw_ #ifndef _di_fll_print_trim_raw_safely_ - f_status_t fll_print_trim_raw_safely(const f_string_t string, const f_array_length_t length, FILE * const output) { + f_status_t fll_print_trim_raw_safely(const f_string_t string, const f_array_length_t length, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = fl_print_trim_raw_safely(string, length, output); + const f_status_t status = fl_print_trim_raw_safely(string, length, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_trim_raw_safely_ #ifndef _di_fll_print_trim_safely_ - f_status_t fll_print_trim_safely(const f_string_t string, const f_array_length_t length, FILE * const output) { + f_status_t fll_print_trim_safely(const f_string_t string, const f_array_length_t length, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = fl_print_trim_safely(string, length, output); + const f_status_t status = fl_print_trim_safely(string, length, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_trim_safely_ #ifndef _di_fll_print_trim_dynamic_ - f_status_t fll_print_trim_dynamic(const f_string_static_t buffer, FILE * const output) { + f_status_t fll_print_trim_dynamic(const f_string_static_t buffer, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = fl_print_trim_dynamic(buffer, output); + const f_status_t status = fl_print_trim_dynamic(buffer, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_trim_dynamic_ #ifndef _di_fll_print_trim_dynamic_raw_ - f_status_t fll_print_trim_dynamic_raw(const f_string_static_t buffer, FILE * const output) { + f_status_t fll_print_trim_dynamic_raw(const f_string_static_t buffer, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = fl_print_trim_dynamic_raw(buffer, output); + const f_status_t status = fl_print_trim_dynamic_raw(buffer, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_trim_dynamic_raw_ #ifndef _di_fll_print_trim_dynamic_raw_safely_ - f_status_t fll_print_trim_dynamic_raw_safely(const f_string_static_t buffer, FILE * const output) { + f_status_t fll_print_trim_dynamic_raw_safely(const f_string_static_t buffer, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = fl_print_trim_dynamic_raw_safely(buffer, output); + const f_status_t status = fl_print_trim_dynamic_raw_safely(buffer, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_trim_dynamic_raw_safely_ #ifndef _di_fll_print_trim_dynamic_safely_ - f_status_t fll_print_trim_dynamic_safely(const f_string_static_t buffer, FILE * const output) { + f_status_t fll_print_trim_dynamic_safely(const f_string_static_t buffer, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = fl_print_trim_dynamic_safely(buffer, output); + const f_status_t status = fl_print_trim_dynamic_safely(buffer, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_trim_dynamic_safely_ #ifndef _di_fll_print_trim_dynamic_partial_ - f_status_t fll_print_trim_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, FILE * const output) { + f_status_t fll_print_trim_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = fl_print_trim_dynamic_partial(buffer, range, output); + const f_status_t status = fl_print_trim_dynamic_partial(buffer, range, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_trim_dynamic_partial_ #ifndef _di_fll_print_trim_dynamic_partial_raw_ - f_status_t fll_print_trim_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, FILE * const output) { + f_status_t fll_print_trim_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = fl_print_trim_dynamic_partial_raw(buffer, range, output); + const f_status_t status = fl_print_trim_dynamic_partial_raw(buffer, range, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_trim_dynamic_partial_raw_ #ifndef _di_fll_print_trim_dynamic_partial_raw_safely_ - f_status_t fll_print_trim_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, FILE * const output) { + f_status_t fll_print_trim_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = fl_print_trim_dynamic_partial_raw_safely(buffer, range, output); + const f_status_t status = fl_print_trim_dynamic_partial_raw_safely(buffer, range, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_trim_dynamic_partial_raw_safely_ #ifndef _di_fll_print_trim_dynamic_partial_safely_ - f_status_t fll_print_trim_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, FILE * const output) { + f_status_t fll_print_trim_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = fl_print_trim_dynamic_partial_safely(buffer, range, output); + const f_status_t status = fl_print_trim_dynamic_partial_safely(buffer, range, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_trim_dynamic_partial_safely_ #ifndef _di_fll_print_trim_except_ - f_status_t fll_print_trim_except(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE * const output) { + f_status_t fll_print_trim_except(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = fl_print_trim_except(string, offset, length, except, output); + const f_status_t status = fl_print_trim_except(string, offset, length, except, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_trim_except_ #ifndef _di_fll_print_trim_except_raw_ - f_status_t fll_print_trim_except_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE * const output) { + f_status_t fll_print_trim_except_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = fl_print_trim_except_raw(string, offset, length, except, output); + const f_status_t status = fl_print_trim_except_raw(string, offset, length, except, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_trim_except_raw_ #ifndef _di_fll_print_trim_except_raw_safely_ - f_status_t fll_print_trim_except_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE * const output) { + f_status_t fll_print_trim_except_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = fl_print_trim_except_raw_safely(string, offset, length, except, output); + const f_status_t status = fl_print_trim_except_raw_safely(string, offset, length, except, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_trim_except_raw_safely_ #ifndef _di_fll_print_trim_except_safely_ - f_status_t fll_print_trim_except_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE * const output) { + f_status_t fll_print_trim_except_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = fl_print_trim_except_safely(string, offset, length, except, output); + const f_status_t status = fl_print_trim_except_safely(string, offset, length, except, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_trim_except_safely_ #ifndef _di_fll_print_trim_except_dynamic_ - f_status_t fll_print_trim_except_dynamic(const f_string_static_t buffer, const f_array_lengths_t except, FILE * const output) { + f_status_t fll_print_trim_except_dynamic(const f_string_static_t buffer, const f_array_lengths_t except, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = fl_print_trim_except_dynamic(buffer, except, output); + const f_status_t status = fl_print_trim_except_dynamic(buffer, except, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_trim_except_dynamic_ #ifndef _di_fll_print_trim_except_dynamic_raw_ - f_status_t fll_print_trim_except_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except, FILE * const output) { + f_status_t fll_print_trim_except_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = fl_print_trim_except_dynamic_raw(buffer, except, output); + const f_status_t status = fl_print_trim_except_dynamic_raw(buffer, except, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_trim_except_dynamic_raw_ #ifndef _di_fll_print_trim_except_dynamic_raw_safely_ - f_status_t fll_print_trim_except_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except, FILE * const output) { + f_status_t fll_print_trim_except_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = fl_print_trim_except_dynamic_raw_safely(buffer, except, output); + const f_status_t status = fl_print_trim_except_dynamic_raw_safely(buffer, except, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_trim_except_dynamic_raw_safely_ #ifndef _di_fll_print_trim_except_dynamic_safely_ - f_status_t fll_print_trim_except_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except, FILE * const output) { + f_status_t fll_print_trim_except_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = fl_print_trim_except_dynamic_safely(buffer, except, output); + const f_status_t status = fl_print_trim_except_dynamic_safely(buffer, except, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_trim_except_dynamic_safely_ #ifndef _di_fll_print_trim_except_in_ - f_status_t fll_print_trim_except_in(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output) { + f_status_t fll_print_trim_except_in(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = fl_print_trim_except_in(string, offset, length, except_at, except_in, output); + const f_status_t status = fl_print_trim_except_in(string, offset, length, except_at, except_in, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_trim_except_in_ #ifndef _di_fll_print_trim_except_in_raw_ - f_status_t fll_print_trim_except_in_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output) { + f_status_t fll_print_trim_except_in_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = fl_print_trim_except_in_raw(string, offset, length, except_at, except_in, output); + const f_status_t status = fl_print_trim_except_in_raw(string, offset, length, except_at, except_in, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_trim_except_in_raw_ #ifndef _di_fll_print_trim_except_in_raw_safely_ - f_status_t fll_print_trim_except_in_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output) { + f_status_t fll_print_trim_except_in_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = fl_print_trim_except_in_raw_safely(string, offset, length, except_at, except_in, output); + const f_status_t status = fl_print_trim_except_in_raw_safely(string, offset, length, except_at, except_in, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_trim_except_in_raw_safely_ #ifndef _di_fll_print_trim_except_in_safely_ - f_status_t fll_print_trim_except_in_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output) { + f_status_t fll_print_trim_except_in_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = fl_print_trim_except_in_safely(string, offset, length, except_at, except_in, output); + const f_status_t status = fl_print_trim_except_in_safely(string, offset, length, except_at, except_in, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_trim_except_in_safely_ #ifndef _di_fll_print_trim_except_in_dynamic_ - f_status_t fll_print_trim_except_in_dynamic(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output) { + f_status_t fll_print_trim_except_in_dynamic(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = fl_print_trim_except_in_dynamic(buffer, except_at, except_in, output); + const f_status_t status = fl_print_trim_except_in_dynamic(buffer, except_at, except_in, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_trim_except_in_dynamic_ #ifndef _di_fll_print_trim_except_in_dynamic_raw_ - f_status_t fll_print_trim_except_in_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output) { + f_status_t fll_print_trim_except_in_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = fl_print_trim_except_in_dynamic_raw(buffer, except_at, except_in, output); + const f_status_t status = fl_print_trim_except_in_dynamic_raw(buffer, except_at, except_in, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_trim_except_in_dynamic_raw_ #ifndef _di_fll_print_trim_except_in_dynamic_raw_safely_ - f_status_t fll_print_trim_except_in_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output) { + f_status_t fll_print_trim_except_in_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = fl_print_trim_except_in_dynamic_raw_safely(buffer, except_at, except_in, output); + const f_status_t status = fl_print_trim_except_in_dynamic_raw_safely(buffer, except_at, except_in, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_trim_except_in_dynamic_raw_safely_ #ifndef _di_fll_print_trim_except_in_dynamic_safely_ - f_status_t fll_print_trim_except_in_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output) { + f_status_t fll_print_trim_except_in_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = fl_print_trim_except_in_dynamic_safely(buffer, except_at, except_in, output); + const f_status_t status = fl_print_trim_except_in_dynamic_safely(buffer, except_at, except_in, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_trim_except_in_dynamic_safely_ #ifndef _di_fll_print_trim_except_in_dynamic_partial_ - f_status_t fll_print_trim_except_in_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output) { + f_status_t fll_print_trim_except_in_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = fl_print_trim_except_in_dynamic_partial(buffer, range, except_at, except_in, output); + const f_status_t status = fl_print_trim_except_in_dynamic_partial(buffer, range, except_at, except_in, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_trim_except_in_dynamic_partial_ #ifndef _di_fll_print_trim_except_in_dynamic_partial_raw_ - f_status_t fll_print_trim_except_in_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output) { + f_status_t fll_print_trim_except_in_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = fl_print_trim_except_in_dynamic_partial_raw(buffer, range, except_at, except_in, output); + const f_status_t status = fl_print_trim_except_in_dynamic_partial_raw(buffer, range, except_at, except_in, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_trim_except_in_dynamic_partial_raw_ #ifndef _di_fll_print_trim_except_in_dynamic_partial_raw_safely_ - f_status_t fll_print_trim_except_in_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output) { + f_status_t fll_print_trim_except_in_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = fl_print_trim_except_in_dynamic_partial_raw_safely(buffer, range, except_at, except_in, output); + const f_status_t status = fl_print_trim_except_in_dynamic_partial_raw_safely(buffer, range, except_at, except_in, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_trim_except_in_dynamic_partial_raw_safely_ #ifndef _di_fll_print_trim_except_in_dynamic_partial_safely_ - f_status_t fll_print_trim_except_in_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output) { + f_status_t fll_print_trim_except_in_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = fl_print_trim_except_in_dynamic_partial_safely(buffer, range, except_at, except_in, output); + const f_status_t status = fl_print_trim_except_in_dynamic_partial_safely(buffer, range, except_at, except_in, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_trim_except_in_dynamic_partial_safely_ #ifndef _di_fll_print_trim_except_dynamic_partial_ - f_status_t fll_print_trim_except_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE * const output) { + f_status_t fll_print_trim_except_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = fl_print_trim_except_dynamic_partial(buffer, range, except, output); + const f_status_t status = fl_print_trim_except_dynamic_partial(buffer, range, except, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_trim_except_dynamic_partial_ #ifndef _di_fll_print_trim_except_dynamic_partial_raw_ - f_status_t fll_print_trim_except_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE * const output) { + f_status_t fll_print_trim_except_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = fl_print_trim_except_dynamic_partial_raw(buffer, range, except, output); + const f_status_t status = fl_print_trim_except_dynamic_partial_raw(buffer, range, except, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_trim_except_dynamic_partial_raw_ #ifndef _di_fll_print_trim_except_dynamic_partial_raw_safely_ - f_status_t fll_print_trim_except_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE * const output) { + f_status_t fll_print_trim_except_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = fl_print_trim_except_dynamic_partial_raw_safely(buffer, range, except, output); + const f_status_t status = fl_print_trim_except_dynamic_partial_raw_safely(buffer, range, except, file); - funlockfile(output); + funlockfile(file.stream); return status; } #endif // _di_fll_print_trim_except_dynamic_partial_raw_safely_ #ifndef _di_fll_print_trim_except_dynamic_partial_safely_ - f_status_t fll_print_trim_except_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE * const output) { + f_status_t fll_print_trim_except_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, f_file_t file) { - flockfile(output); + flockfile(file.stream); - const f_status_t status = fl_print_trim_except_dynamic_partial_safely(buffer, range, except, output); + const f_status_t status = fl_print_trim_except_dynamic_partial_safely(buffer, range, except, file); - funlockfile(output); + funlockfile(file.stream); return status; } diff --git a/level_2/fll_print/c/print.h b/level_2/fll_print/c/print.h index d827380..1007df7 100644 --- a/level_2/fll_print/c/print.h +++ b/level_2/fll_print/c/print.h @@ -36,8 +36,8 @@ extern "C" { * The string to output. * @param length * The total number of characters to print. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: f_print(). @@ -50,7 +50,7 @@ extern "C" { * @see f_print() */ #ifndef _di_fll_print_ - extern f_status_t fll_print(const f_string_t string, const f_array_length_t length, FILE * const output); + extern f_status_t fll_print(const f_string_t string, const f_array_length_t length, f_file_t file); #endif // _di_fll_print_ /** @@ -58,8 +58,8 @@ extern "C" { * * @param character * The character to verify as safe or not and then print. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: f_print_character(). @@ -72,7 +72,7 @@ extern "C" { * @see f_print_character() */ #ifndef _di_fll_print_character_ - extern f_status_t fll_print_character(const f_char_t character, FILE * const output); + extern f_status_t fll_print_character(const f_char_t character, f_file_t file); #endif // _di_fll_print_character_ /** @@ -80,8 +80,8 @@ extern "C" { * * @param character * The character to verify as safe or not and then print. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: f_print_character_safely(). @@ -94,7 +94,7 @@ extern "C" { * @see f_print_character_safely() */ #ifndef _di_fll_print_character_safely_ - extern f_status_t fll_print_character_safely(const f_char_t character, FILE * const output); + extern f_status_t fll_print_character_safely(const f_char_t character, f_file_t file); #endif // _di_fll_print_character_safely_ /** @@ -102,8 +102,8 @@ extern "C" { * * @param buffer * The string to output. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: f_print_dynamic(). @@ -116,7 +116,7 @@ extern "C" { * @see f_print_dynamic() */ #ifndef _di_fll_print_dynamic_ - extern f_status_t fll_print_dynamic(const f_string_static_t buffer, FILE * const output); + extern f_status_t fll_print_dynamic(const f_string_static_t buffer, f_file_t file); #endif // _di_fll_print_dynamic_ /** @@ -126,8 +126,8 @@ extern "C" { * The string to output. * @param range * The range within the provided string to print. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: f_print_dynamic_partial(). @@ -140,7 +140,7 @@ extern "C" { * @see f_print_dynamic_partial() */ #ifndef _di_fll_print_dynamic_partial_ - extern f_status_t fll_print_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, FILE * const output); + extern f_status_t fll_print_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, f_file_t file); #endif // _di_fll_print_dynamic_partial_ /** @@ -150,8 +150,8 @@ extern "C" { * The string to output. * @param range * The range within the provided string to print. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: f_print_dynamic_partial_raw(). @@ -164,7 +164,7 @@ extern "C" { * @see f_print_dynamic_partial_raw() */ #ifndef _di_fll_print_dynamic_partial_raw_ - extern f_status_t fll_print_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, FILE * const output); + extern f_status_t fll_print_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, f_file_t file); #endif // _di_fll_print_dynamic_partial_raw_ /** @@ -174,8 +174,8 @@ extern "C" { * The string to output. * @param range * The range within the provided string to print. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: f_print_dynamic_partial_raw_safely(). @@ -188,7 +188,7 @@ extern "C" { * @see f_print_dynamic_partial_raw_safely() */ #ifndef _di_fll_print_dynamic_partial_raw_safely_ - extern f_status_t fll_print_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, FILE * const output); + extern f_status_t fll_print_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, f_file_t file); #endif // _di_fll_print_dynamic_partial_raw_safely_ /** @@ -198,8 +198,8 @@ extern "C" { * The string to output. * @param range * The range within the provided string to print. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: f_print_dynamic_partial_safely(). @@ -212,7 +212,7 @@ extern "C" { * @see f_print_dynamic_partial_safely() */ #ifndef _di_fll_print_dynamic_partial_safely_ - extern f_status_t fll_print_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, FILE * const output); + extern f_status_t fll_print_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, f_file_t file); #endif // _di_fll_print_dynamic_partial_safely_ /** @@ -220,8 +220,8 @@ extern "C" { * * @param buffer * The string to output. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: f_print_dynamic_raw(). @@ -234,7 +234,7 @@ extern "C" { * @see f_print_dynamic_raw() */ #ifndef _di_fll_print_dynamic_raw_ - extern f_status_t fll_print_dynamic_raw(const f_string_static_t buffer, FILE * const output); + extern f_status_t fll_print_dynamic_raw(const f_string_static_t buffer, f_file_t file); #endif // _di_fll_print_dynamic_raw_ /** @@ -242,8 +242,8 @@ extern "C" { * * @param buffer * The string to output. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: f_print_dynamic_raw_safely(). @@ -256,7 +256,7 @@ extern "C" { * @see f_print_dynamic_raw_safely() */ #ifndef _di_fll_print_dynamic_raw_safely_ - extern f_status_t fll_print_dynamic_raw_safely(const f_string_static_t buffer, FILE * const output); + extern f_status_t fll_print_dynamic_raw_safely(const f_string_static_t buffer, f_file_t file); #endif // _di_fll_print_dynamic_raw_safely_ /** @@ -264,8 +264,8 @@ extern "C" { * * @param buffer * The string to output. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: f_print_dynamic_safely(). @@ -278,7 +278,7 @@ extern "C" { * @see f_print_dynamic_safely() */ #ifndef _di_fll_print_dynamic_safely_ - extern f_status_t fll_print_dynamic_safely(const f_string_static_t buffer, FILE * const output); + extern f_status_t fll_print_dynamic_safely(const f_string_static_t buffer, f_file_t file); #endif // _di_fll_print_dynamic_safely_ /** @@ -293,8 +293,8 @@ extern "C" { * @param except * An array of locations within the given string to not print. * The array of locations is required/assumed to be in linear order. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: f_print_except(). @@ -307,7 +307,7 @@ extern "C" { * @see f_print_except() */ #ifndef _di_fll_print_except_ - extern f_status_t fll_print_except(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE * const output); + extern f_status_t fll_print_except(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, f_file_t file); #endif // _di_fll_print_except_ /** @@ -318,8 +318,8 @@ extern "C" { * @param except * An array of locations within the given string to not print. * The array of locations is required/assumed to be in linear order. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: f_print_except_dynamic(). @@ -332,7 +332,7 @@ extern "C" { * @see f_print_except_dynamic() */ #ifndef _di_fll_print_except_dynamic_ - extern f_status_t fll_print_except_dynamic(const f_string_static_t buffer, const f_array_lengths_t except, FILE * const output); + extern f_status_t fll_print_except_dynamic(const f_string_static_t buffer, const f_array_lengths_t except, f_file_t file); #endif // _di_fll_print_except_dynamic_ /** @@ -345,8 +345,8 @@ extern "C" { * @param except * An array of locations within the given string to not print. * The array of locations is required/assumed to be in linear order. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: f_print_except_dynamic_partial(). @@ -359,7 +359,7 @@ extern "C" { * @see f_print_except_dynamic_partial() */ #ifndef _di_fll_print_except_dynamic_partial_ - extern f_status_t fll_print_except_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE * const output); + extern f_status_t fll_print_except_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, f_file_t file); #endif // _di_fll_print_except_dynamic_partial_ /** @@ -372,8 +372,8 @@ extern "C" { * @param except * An array of locations within the given string to not print. * The array of locations is required/assumed to be in linear order. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: f_print_except_dynamic_partial_raw(). @@ -386,7 +386,7 @@ extern "C" { * @see f_print_except_dynamic_partial_raw() */ #ifndef _di_fll_print_except_dynamic_partial_raw_ - extern f_status_t fll_print_except_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE * const output); + extern f_status_t fll_print_except_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, f_file_t file); #endif // _di_fll_print_except_dynamic_partial_raw_ /** @@ -399,8 +399,8 @@ extern "C" { * @param except * An array of locations within the given string to not print. * The array of locations is required/assumed to be in linear order. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: f_print_except_dynamic_partial_raw_safely(). @@ -413,7 +413,7 @@ extern "C" { * @see f_print_except_dynamic_partial_raw_safely() */ #ifndef _di_fll_print_except_dynamic_partial_raw_safely_ - extern f_status_t fll_print_except_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE * const output); + extern f_status_t fll_print_except_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, f_file_t file); #endif // _di_fll_print_except_dynamic_partial_raw_safely_ /** @@ -426,8 +426,8 @@ extern "C" { * @param except * An array of locations within the given string to not print. * The array of locations is required/assumed to be in linear order. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: f_print_except_dynamic_partial_safely(). @@ -440,7 +440,7 @@ extern "C" { * @see f_print_except_dynamic_partial_safely() */ #ifndef _di_fll_print_except_dynamic_partial_safely_ - extern f_status_t fll_print_except_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE * const output); + extern f_status_t fll_print_except_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, f_file_t file); #endif // _di_fll_print_except_dynamic_partial_safely_ /** @@ -451,8 +451,8 @@ extern "C" { * @param except * An array of locations within the given string to not print. * The array of locations is required/assumed to be in linear order. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: f_print_except_dynamic_raw(). @@ -465,7 +465,7 @@ extern "C" { * @see f_print_except_dynamic_raw() */ #ifndef _di_fll_print_except_dynamic_raw_ - extern f_status_t fll_print_except_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except, FILE * const output); + extern f_status_t fll_print_except_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except, f_file_t file); #endif // _di_fll_print_except_dynamic_raw_ /** @@ -476,8 +476,8 @@ extern "C" { * @param except * An array of locations within the given string to not print. * The array of locations is required/assumed to be in linear order. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: f_print_except_dynamic_raw_safely(). @@ -490,7 +490,7 @@ extern "C" { * @see f_print_except_dynamic_raw_safely() */ #ifndef _di_fll_print_except_dynamic_raw_safely_ - extern f_status_t fll_print_except_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except, FILE * const output); + extern f_status_t fll_print_except_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except, f_file_t file); #endif // _di_fll_print_except_dynamic_raw_safely_ /** @@ -501,8 +501,8 @@ extern "C" { * @param except * An array of locations within the given string to not print. * The array of locations is required/assumed to be in linear order. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: f_print_except_dynamic_safely(). @@ -515,7 +515,7 @@ extern "C" { * @see f_print_except_dynamic_safely() */ #ifndef _di_fll_print_except_dynamic_safely_ - extern f_status_t fll_print_except_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except, FILE * const output); + extern f_status_t fll_print_except_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except, f_file_t file); #endif // _di_fll_print_except_dynamic_safely_ /** @@ -533,8 +533,8 @@ extern "C" { * @param except_in * An array of ranges within the string to not print. * The array of ranges is required/assumed to be in linear order. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: f_print_except_in(). @@ -547,7 +547,7 @@ extern "C" { * @see f_print_except_in() */ #ifndef _di_fll_print_except_in_ - extern f_status_t fll_print_except_in(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output); + extern f_status_t fll_print_except_in(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, f_file_t file); #endif // _di_fll_print_except_in_ /** @@ -565,8 +565,8 @@ extern "C" { * @param except_in * An array of ranges within the string to not print. * The array of ranges is required/assumed to be in linear order. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: f_print_except_in_raw(). @@ -579,7 +579,7 @@ extern "C" { * @see f_print_except_in_raw() */ #ifndef _di_fll_print_except_in_raw_ - extern f_status_t fll_print_except_in_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output); + extern f_status_t fll_print_except_in_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, f_file_t file); #endif // _di_fll_print_except_in_raw_ /** @@ -597,8 +597,8 @@ extern "C" { * @param except_in * An array of ranges within the string to not print. * The array of ranges is required/assumed to be in linear order. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: f_print_except_in_raw_safely(). @@ -611,7 +611,7 @@ extern "C" { * @see f_print_except_in_raw_safely() */ #ifndef _di_fll_print_except_in_raw_safely_ - extern f_status_t fll_print_except_in_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output); + extern f_status_t fll_print_except_in_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, f_file_t file); #endif // _di_fll_print_except_in_raw_safely_ /** @@ -629,8 +629,8 @@ extern "C" { * @param except_in * An array of ranges within the string to not print. * The array of ranges is required/assumed to be in linear order. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: f_print_except_in_safely(). @@ -643,7 +643,7 @@ extern "C" { * @see f_print_except_in_safely() */ #ifndef _di_fll_print_except_in_safely_ - extern f_status_t fll_print_except_in_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output); + extern f_status_t fll_print_except_in_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, f_file_t file); #endif // _di_fll_print_except_in_safely_ /** @@ -657,8 +657,8 @@ extern "C" { * @param except_in * An array of ranges within the string to not print. * The array of ranges is required/assumed to be in linear order. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: f_print_except_in_dynamic(). @@ -671,7 +671,7 @@ extern "C" { * @see f_print_except_in_dynamic() */ #ifndef _di_fll_print_except_in_dynamic_ - extern f_status_t fll_print_except_in_dynamic(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output); + extern f_status_t fll_print_except_in_dynamic(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, f_file_t file); #endif // _di_fll_print_except_in_dynamic_ /** @@ -687,8 +687,8 @@ extern "C" { * @param except_in * An array of ranges within the string to not print. * The array of ranges is required/assumed to be in linear order. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: f_print_except_in_dynamic_partial(). @@ -701,7 +701,7 @@ extern "C" { * @see f_print_except_in_dynamic_partial() */ #ifndef _di_fll_print_except_in_dynamic_partial_ - extern f_status_t fll_print_except_in_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output); + extern f_status_t fll_print_except_in_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, f_file_t file); #endif // _di_fll_print_except_in_dynamic_partial_ /** @@ -717,8 +717,8 @@ extern "C" { * @param except_in * An array of ranges within the string to not print. * The array of ranges is required/assumed to be in linear order. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: f_print_except_in_dynamic_partial_raw(). @@ -731,7 +731,7 @@ extern "C" { * @see f_print_except_in_dynamic_partial_raw() */ #ifndef _di_fll_print_except_in_dynamic_partial_raw_ - extern f_status_t fll_print_except_in_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output); + extern f_status_t fll_print_except_in_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, f_file_t file); #endif // _di_fll_print_except_in_dynamic_partial_raw_ /** @@ -747,8 +747,8 @@ extern "C" { * @param except_in * An array of ranges within the string to not print. * The array of ranges is required/assumed to be in linear order. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: f_print_except_in_dynamic_partial_raw_safely(). @@ -761,7 +761,7 @@ extern "C" { * @see f_print_except_in_dynamic_partial_raw_safely() */ #ifndef _di_fll_print_except_in_dynamic_partial_raw_safely_ - extern f_status_t fll_print_except_in_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output); + extern f_status_t fll_print_except_in_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, f_file_t file); #endif // _di_fll_print_except_in_dynamic_partial_raw_safely_ /** @@ -777,8 +777,8 @@ extern "C" { * @param except_in * An array of ranges within the string to not print. * The array of ranges is required/assumed to be in linear order. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: f_print_except_in_dynamic_partial_safely(). @@ -791,7 +791,7 @@ extern "C" { * @see f_print_except_in_dynamic_partial_safely() */ #ifndef _di_fll_print_except_in_dynamic_partial_safely_ - extern f_status_t fll_print_except_in_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output); + extern f_status_t fll_print_except_in_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, f_file_t file); #endif // _di_fll_print_except_in_dynamic_partial_safely_ /** @@ -805,8 +805,8 @@ extern "C" { * @param except_in * An array of ranges within the string to not print. * The array of ranges is required/assumed to be in linear order. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: f_print_except_in_dynamic_raw(). @@ -819,7 +819,7 @@ extern "C" { * @see f_print_except_in_dynamic_raw() */ #ifndef _di_fll_print_except_in_dynamic_raw_ - extern f_status_t fll_print_except_in_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output); + extern f_status_t fll_print_except_in_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, f_file_t file); #endif // _di_fll_print_except_in_dynamic_raw_ /** @@ -833,8 +833,8 @@ extern "C" { * @param except_in * An array of ranges within the string to not print. * The array of ranges is required/assumed to be in linear order. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: f_print_except_in_dynamic_raw_safely(). @@ -847,7 +847,7 @@ extern "C" { * @see f_print_except_in_dynamic_raw_safely() */ #ifndef _di_fll_print_except_in_dynamic_raw_safely_ - extern f_status_t fll_print_except_in_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output); + extern f_status_t fll_print_except_in_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, f_file_t file); #endif // _di_fll_print_except_in_dynamic_raw_safely_ /** @@ -861,8 +861,8 @@ extern "C" { * @param except_in * An array of ranges within the string to not print. * The array of ranges is required/assumed to be in linear order. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: f_print_except_in_dynamic_safely(). @@ -875,7 +875,7 @@ extern "C" { * @see f_print_except_in_dynamic_safely() */ #ifndef _di_fll_print_except_in_dynamic_safely_ - extern f_status_t fll_print_except_in_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output); + extern f_status_t fll_print_except_in_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, f_file_t file); #endif // _di_fll_print_except_in_dynamic_safely_ /** @@ -890,8 +890,8 @@ extern "C" { * @param except * An array of locations within the given string to not print. * The array of locations is required/assumed to be in linear order. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: f_print_except_raw(). @@ -904,7 +904,7 @@ extern "C" { * @see f_print_except_raw() */ #ifndef _di_fll_print_except_raw_ - extern f_status_t fll_print_except_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE * const output); + extern f_status_t fll_print_except_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, f_file_t file); #endif // _di_fll_print_except_raw_ /** @@ -919,8 +919,8 @@ extern "C" { * @param except * An array of locations within the given string to not print. * The array of locations is required/assumed to be in linear order. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: f_print_except_raw_safely(). @@ -933,7 +933,7 @@ extern "C" { * @see f_print_except_raw_safely() */ #ifndef _di_fll_print_except_raw_safely_ - extern f_status_t fll_print_except_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE * const output); + extern f_status_t fll_print_except_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, f_file_t file); #endif // _di_fll_print_except_raw_safely_ /** @@ -948,8 +948,8 @@ extern "C" { * @param except * An array of locations within the given string to not print. * The array of locations is required/assumed to be in linear order. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: f_print_except_safely(). @@ -962,7 +962,7 @@ extern "C" { * @see f_print_except_safely() */ #ifndef _di_fll_print_except_safely_ - extern f_status_t fll_print_except_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE * const output); + extern f_status_t fll_print_except_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, f_file_t file); #endif // _di_fll_print_except_safely_ /** @@ -971,8 +971,8 @@ extern "C" { * @param string * The formatted string to process and output. * This is a NULL terminated string. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * @param ... * Additional arguments relating to the string. * @@ -989,7 +989,7 @@ extern "C" { * @see fl_print_format() */ #ifndef _di_fll_print_format_ - extern f_status_t fll_print_format(const f_string_t string, FILE * const output, ...); + extern f_status_t fll_print_format(const f_string_t string, f_file_t file, ...); #endif // _di_fll_print_format_ /** @@ -997,8 +997,8 @@ extern "C" { * * @param current * The current character position within the string. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * @param ap * The variable arguments list. * @param status @@ -1013,7 +1013,7 @@ extern "C" { * @see fl_print_format_convert() */ #ifndef _di_fll_print_format_convert_ - extern f_string_t fll_print_format_convert(const f_string_t current, FILE * const output, va_list ap, f_status_t *status); + extern f_string_t fll_print_format_convert(const f_string_t current, f_file_t file, va_list ap, f_status_t *status); #endif // _di_fll_print_format_convert_ /** @@ -1023,8 +1023,8 @@ extern "C" { * The string to output. * @param length * The total number of characters to print. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: f_print_raw(). @@ -1037,7 +1037,7 @@ extern "C" { * @see f_print_raw() */ #ifndef _di_fll_print_raw_ - extern f_status_t fll_print_raw(const f_string_t string, const f_array_length_t length, FILE * const output); + extern f_status_t fll_print_raw(const f_string_t string, const f_array_length_t length, f_file_t file); #endif // _di_fll_print_raw_ /** @@ -1047,8 +1047,8 @@ extern "C" { * The string to output. * @param length * The total number of characters to print. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: f_print_raw_safely(). @@ -1061,7 +1061,7 @@ extern "C" { * @see f_print_raw_safely() */ #ifndef _di_fll_print_raw_safely_ - extern f_status_t fll_print_raw_safely(const f_string_t string, const f_array_length_t length, FILE * const output); + extern f_status_t fll_print_raw_safely(const f_string_t string, const f_array_length_t length, f_file_t file); #endif // _di_fll_print_raw_safely_ /** @@ -1069,8 +1069,8 @@ extern "C" { * * @param string * The string to output. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: f_print_raw_terminated(). @@ -1083,7 +1083,7 @@ extern "C" { * @see f_print_raw_terminated() */ #ifndef _di_fll_print_raw_terminated_ - extern f_status_t fll_print_raw_terminated(const f_string_t string, FILE * const output); + extern f_status_t fll_print_raw_terminated(const f_string_t string, f_file_t file); #endif // _di_fll_print_raw_terminated_ /** @@ -1093,8 +1093,8 @@ extern "C" { * The string to output. * @param length * The total number of characters to print. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: f_print_safely(). @@ -1107,7 +1107,7 @@ extern "C" { * @see f_print_safely() */ #ifndef _di_fll_print_safely_ - extern f_status_t fll_print_safely(const f_string_t string, const f_array_length_t length, FILE * const output); + extern f_status_t fll_print_safely(const f_string_t string, const f_array_length_t length, f_file_t file); #endif // _di_fll_print_safely_ /** @@ -1117,8 +1117,8 @@ extern "C" { * The string to output. * @param length * The total number of characters to print. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: f_print_safely_terminated(). @@ -1131,7 +1131,7 @@ extern "C" { * @see f_print_safely_terminated() */ #ifndef _di_fll_print_safely_terminated_ - extern f_status_t fll_print_safely_terminated(const f_string_t string, FILE * const output); + extern f_status_t fll_print_safely_terminated(const f_string_t string, f_file_t file); #endif // _di_fll_print_safely_terminated_ /** @@ -1139,8 +1139,8 @@ extern "C" { * * @param string * The formatted string to process and output. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * @param ap * The variable list. * The va_start(ap, string) and va_end(ap) is required to be called outside this function. @@ -1156,7 +1156,7 @@ extern "C" { * @see fl_print_string_va() */ #ifndef _di_fll_print_string_va_ - extern f_status_t fll_print_string_va(const f_string_t string, FILE * const output, va_list ap); + extern f_status_t fll_print_string_va(const f_string_t string, f_file_t file, va_list ap); #endif // _di_fll_print_string_va_ /** @@ -1164,8 +1164,8 @@ extern "C" { * * @param string * The string to output. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: f_print_terminated(). @@ -1178,7 +1178,7 @@ extern "C" { * @see f_print_terminated() */ #ifndef _di_fll_print_terminated_ - extern f_status_t fll_print_terminated(const f_string_t string, FILE * const output); + extern f_status_t fll_print_terminated(const f_string_t string, f_file_t file); #endif // _di_fll_print_terminated_ /** @@ -1188,8 +1188,8 @@ extern "C" { * The string to output. * @param length * The total number of characters to print. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: fl_print_trim(). @@ -1202,7 +1202,7 @@ extern "C" { * @see f_print_except_dynamic_partial() */ #ifndef _di_fll_print_trim_ - extern f_status_t fll_print_trim(const f_string_t string, const f_array_length_t length, FILE * const output); + extern f_status_t fll_print_trim(const f_string_t string, const f_array_length_t length, f_file_t file); #endif // _di_fll_print_trim_ /** @@ -1212,8 +1212,8 @@ extern "C" { * The string to output. * @param length * The total number of characters to print. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: fl_print_trim_raw(). @@ -1226,7 +1226,7 @@ extern "C" { * @see fl_print_trim_raw() */ #ifndef _di_fll_print_trim_raw_ - extern f_status_t fll_print_trim_raw(const f_string_t string, const f_array_length_t length, FILE * const output); + extern f_status_t fll_print_trim_raw(const f_string_t string, const f_array_length_t length, f_file_t file); #endif // _di_fll_print_trim_raw_ /** @@ -1236,8 +1236,8 @@ extern "C" { * The string to output. * @param length * The total number of characters to print. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: fl_print_trim_raw_safely(). @@ -1250,7 +1250,7 @@ extern "C" { * @see fl_print_trim_raw_safely() */ #ifndef _di_fll_print_trim_raw_safely_ - extern f_status_t fll_print_trim_raw_safely(const f_string_t string, const f_array_length_t length, FILE * const output); + extern f_status_t fll_print_trim_raw_safely(const f_string_t string, const f_array_length_t length, f_file_t file); #endif // _di_fll_print_trim_raw_safely_ /** @@ -1260,8 +1260,8 @@ extern "C" { * The string to output. * @param length * The total number of characters to print. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: fl_print_trim_safely(). @@ -1274,7 +1274,7 @@ extern "C" { * @see fl_print_trim_safely() */ #ifndef _di_fll_print_trim_safely_ - extern f_status_t fll_print_trim_safely(const f_string_t string, const f_array_length_t length, FILE * const output); + extern f_status_t fll_print_trim_safely(const f_string_t string, const f_array_length_t length, f_file_t file); #endif // _di_fll_print_trim_safely_ /** @@ -1282,8 +1282,8 @@ extern "C" { * * @param buffer * The string to output. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: fl_print_trim_dynamic(). @@ -1296,7 +1296,7 @@ extern "C" { * @see fl_print_trim_dynamic() */ #ifndef _di_fll_print_trim_dynamic_ - extern f_status_t fll_print_trim_dynamic(const f_string_static_t buffer, FILE * const output); + extern f_status_t fll_print_trim_dynamic(const f_string_static_t buffer, f_file_t file); #endif // _di_fll_print_trim_dynamic_ /** @@ -1304,8 +1304,8 @@ extern "C" { * * @param buffer * The string to output. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: fl_print_trim_dynamic_raw(). @@ -1318,7 +1318,7 @@ extern "C" { * @see fl_print_trim_dynamic_raw() */ #ifndef _di_fll_print_trim_dynamic_raw_ - extern f_status_t fll_print_trim_dynamic_raw(const f_string_static_t buffer, FILE * const output); + extern f_status_t fll_print_trim_dynamic_raw(const f_string_static_t buffer, f_file_t file); #endif // _di_fll_print_trim_dynamic_raw_ /** @@ -1326,8 +1326,8 @@ extern "C" { * * @param buffer * The string to output. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: fl_print_trim_dynamic_raw_safely(). @@ -1340,7 +1340,7 @@ extern "C" { * @see fl_print_trim_dynamic_raw_safely() */ #ifndef _di_fll_print_trim_dynamic_raw_safely_ - extern f_status_t fll_print_trim_dynamic_raw_safely(const f_string_static_t buffer, FILE * const output); + extern f_status_t fll_print_trim_dynamic_raw_safely(const f_string_static_t buffer, f_file_t file); #endif // _di_fll_print_trim_dynamic_raw_safely_ /** @@ -1348,8 +1348,8 @@ extern "C" { * * @param buffer * The string to output. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: fl_print_trim_dynamic_safely(). @@ -1362,7 +1362,7 @@ extern "C" { * @see fl_print_trim_dynamic_safely() */ #ifndef _di_fll_print_trim_dynamic_safely_ - extern f_status_t fll_print_trim_dynamic_safely(const f_string_static_t buffer, FILE * const output); + extern f_status_t fll_print_trim_dynamic_safely(const f_string_static_t buffer, f_file_t file); #endif // _di_fll_print_trim_dynamic_safely_ /** @@ -1372,8 +1372,8 @@ extern "C" { * The string to output. * @param range * The range within the provided string to print. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: fl_print_trim_dynamic_partial(). @@ -1386,7 +1386,7 @@ extern "C" { * @see fl_print_trim_dynamic_partial() */ #ifndef _di_fll_print_trim_dynamic_partial_ - extern f_status_t fll_print_trim_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, FILE * const output); + extern f_status_t fll_print_trim_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, f_file_t file); #endif // _di_fll_print_trim_dynamic_partial_ /** @@ -1396,8 +1396,8 @@ extern "C" { * The string to output. * @param range * The range within the provided string to print. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: fl_print_trim_dynamic_partial_raw(). @@ -1410,7 +1410,7 @@ extern "C" { * @see fl_print_trim_dynamic_partial_raw() */ #ifndef _di_fll_print_trim_dynamic_partial_raw_ - extern f_status_t fll_print_trim_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, FILE * const output); + extern f_status_t fll_print_trim_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, f_file_t file); #endif // _di_fll_print_trim_dynamic_partial_raw_ /** @@ -1420,8 +1420,8 @@ extern "C" { * The string to output. * @param range * The range within the provided string to print. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: f_print_except_dynamic_partial(). @@ -1434,7 +1434,7 @@ extern "C" { * @see f_print_except_dynamic_partial() */ #ifndef _di_fll_print_trim_dynamic_partial_raw_safely_ - extern f_status_t fll_print_trim_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, FILE * const output); + extern f_status_t fll_print_trim_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, f_file_t file); #endif // _di_fll_print_trim_dynamic_partial_raw_safely_ /** @@ -1444,8 +1444,8 @@ extern "C" { * The string to output. * @param range * The range within the provided string to print. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: f_print_except_dynamic_partial(). @@ -1458,7 +1458,7 @@ extern "C" { * @see f_print_except_dynamic_partial() */ #ifndef _di_fll_print_trim_dynamic_partial_safely_ - extern f_status_t fll_print_trim_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, FILE * const output); + extern f_status_t fll_print_trim_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, f_file_t file); #endif // _di_fll_print_trim_dynamic_partial_safely_ /** @@ -1473,8 +1473,8 @@ extern "C" { * @param except * An array of locations within the given string to not print. * The array of locations is required/assumed to be in linear order. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: fl_print_trim_except(). @@ -1487,7 +1487,7 @@ extern "C" { * @see fl_print_trim_except() */ #ifndef _di_fll_print_trim_except_ - extern f_status_t fll_print_trim_except(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE * const output); + extern f_status_t fll_print_trim_except(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, f_file_t file); #endif // _di_fll_print_trim_except_ /** @@ -1502,8 +1502,8 @@ extern "C" { * @param except * An array of locations within the given string to not print. * The array of locations is required/assumed to be in linear order. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: fl_print_trim_except_raw(). @@ -1516,7 +1516,7 @@ extern "C" { * @see fl_print_trim_except_raw() */ #ifndef _di_fll_print_trim_except_raw_ - extern f_status_t fll_print_trim_except_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE * const output); + extern f_status_t fll_print_trim_except_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, f_file_t file); #endif // _di_fll_print_trim_except_raw_ /** @@ -1531,8 +1531,8 @@ extern "C" { * @param except * An array of locations within the given string to not print. * The array of locations is required/assumed to be in linear order. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: fl_print_trim_except_raw_safely(). @@ -1545,7 +1545,7 @@ extern "C" { * @see fl_print_trim_except_raw_safely() */ #ifndef _di_fll_print_trim_except_raw_safely_ - extern f_status_t fll_print_trim_except_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE * const output); + extern f_status_t fll_print_trim_except_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, f_file_t file); #endif // _di_fll_print_trim_except_raw_safely_ /** @@ -1560,8 +1560,8 @@ extern "C" { * @param except * An array of locations within the given string to not print. * The array of locations is required/assumed to be in linear order. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: fl_print_trim_except_safely(). @@ -1574,7 +1574,7 @@ extern "C" { * @see fl_print_trim_except_safely() */ #ifndef _di_fll_print_trim_except_safely_ - extern f_status_t fll_print_trim_except_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE * const output); + extern f_status_t fll_print_trim_except_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, f_file_t file); #endif // _di_fll_print_trim_except_safely_ /** @@ -1585,8 +1585,8 @@ extern "C" { * @param except * An array of locations within the given string to not print. * The array of locations is required/assumed to be in linear order. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: fl_print_trim_except_dynamic(). @@ -1599,7 +1599,7 @@ extern "C" { * @see fl_print_trim_except_dynamic() */ #ifndef _di_fll_print_trim_except_dynamic_ - extern f_status_t fll_print_trim_except_dynamic(const f_string_static_t buffer, const f_array_lengths_t except, FILE * const output); + extern f_status_t fll_print_trim_except_dynamic(const f_string_static_t buffer, const f_array_lengths_t except, f_file_t file); #endif // _di_fll_print_trim_except_dynamic_ /** @@ -1610,8 +1610,8 @@ extern "C" { * @param except * An array of locations within the given string to not print. * The array of locations is required/assumed to be in linear order. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: fl_print_trim_except_dynamic_raw(). @@ -1624,7 +1624,7 @@ extern "C" { * @see fl_print_trim_except_dynamic_raw() */ #ifndef _di_fll_print_trim_except_dynamic_raw_ - extern f_status_t fll_print_trim_except_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except, FILE * const output); + extern f_status_t fll_print_trim_except_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except, f_file_t file); #endif // _di_fll_print_trim_except_dynamic_raw_ /** @@ -1635,8 +1635,8 @@ extern "C" { * @param except * An array of locations within the given string to not print. * The array of locations is required/assumed to be in linear order. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: fl_print_trim_except_dynamic_raw_safely(). @@ -1649,7 +1649,7 @@ extern "C" { * @see fl_print_trim_except_dynamic_raw_safely() */ #ifndef _di_fll_print_trim_except_dynamic_raw_safely_ - extern f_status_t fll_print_trim_except_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except, FILE * const output); + extern f_status_t fll_print_trim_except_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except, f_file_t file); #endif // _di_fll_print_trim_except_dynamic_raw_safely_ /** @@ -1660,8 +1660,8 @@ extern "C" { * @param except * An array of locations within the given string to not print. * The array of locations is required/assumed to be in linear order. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: fl_print_trim_except_dynamic_safely(). @@ -1674,7 +1674,7 @@ extern "C" { * @see fl_print_trim_except_dynamic_safely() */ #ifndef _di_fll_print_trim_except_dynamic_safely_ - extern f_status_t fll_print_trim_except_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except, FILE * const output); + extern f_status_t fll_print_trim_except_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except, f_file_t file); #endif // _di_fll_print_trim_except_dynamic_safely_ /** @@ -1692,8 +1692,8 @@ extern "C" { * @param except_in * An array of ranges within the string to not print. * The array of ranges is required/assumed to be in linear order. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: fl_print_trim_except_in(). @@ -1706,7 +1706,7 @@ extern "C" { * @see fl_print_trim_except_in() */ #ifndef _di_fll_print_trim_except_in_ - extern f_status_t fll_print_trim_except_in(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output); + extern f_status_t fll_print_trim_except_in(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, f_file_t file); #endif // _di_fll_print_trim_except_in_ /** @@ -1724,8 +1724,8 @@ extern "C" { * @param except_in * An array of ranges within the string to not print. * The array of ranges is required/assumed to be in linear order. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: fl_print_trim_except_in_raw(). @@ -1738,7 +1738,7 @@ extern "C" { * @see fl_print_trim_except_in_raw() */ #ifndef _di_fll_print_trim_except_in_raw_ - extern f_status_t fll_print_trim_except_in_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output); + extern f_status_t fll_print_trim_except_in_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, f_file_t file); #endif // _di_fll_print_trim_except_in_raw_ /** @@ -1756,8 +1756,8 @@ extern "C" { * @param except_in * An array of ranges within the string to not print. * The array of ranges is required/assumed to be in linear order. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: fl_print_trim_except_in_raw_safely(). @@ -1770,7 +1770,7 @@ extern "C" { * @see fl_print_trim_except_in_raw_safely() */ #ifndef _di_fll_print_trim_except_in_raw_safely_ - extern f_status_t fll_print_trim_except_in_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output); + extern f_status_t fll_print_trim_except_in_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, f_file_t file); #endif // _di_fll_print_trim_except_in_raw_safely_ /** @@ -1788,8 +1788,8 @@ extern "C" { * @param except_in * An array of ranges within the string to not print. * The array of ranges is required/assumed to be in linear order. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: fl_print_trim_except_in_safely(). @@ -1802,7 +1802,7 @@ extern "C" { * @see fl_print_trim_except_in_safely() */ #ifndef _di_fll_print_trim_except_in_safely_ - extern f_status_t fll_print_trim_except_in_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output); + extern f_status_t fll_print_trim_except_in_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, f_file_t file); #endif // _di_fll_print_trim_except_in_safely_ /** @@ -1816,8 +1816,8 @@ extern "C" { * @param except_in * An array of ranges within the string to not print. * The array of ranges is required/assumed to be in linear order. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: fl_print_trim_except_in_dynamic(). @@ -1830,7 +1830,7 @@ extern "C" { * @see fl_print_trim_except_in_dynamic() */ #ifndef _di_fll_print_trim_except_in_dynamic_ - extern f_status_t fll_print_trim_except_in_dynamic(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output); + extern f_status_t fll_print_trim_except_in_dynamic(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, f_file_t file); #endif // _di_fll_print_trim_except_in_dynamic_ /** @@ -1844,8 +1844,8 @@ extern "C" { * @param except_in * An array of ranges within the string to not print. * The array of ranges is required/assumed to be in linear order. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: fl_print_trim_except_in_dynamic_raw(). @@ -1858,7 +1858,7 @@ extern "C" { * @see fl_print_trim_except_in_dynamic_raw() */ #ifndef _di_fll_print_trim_except_in_dynamic_raw_ - extern f_status_t fll_print_trim_except_in_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output); + extern f_status_t fll_print_trim_except_in_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, f_file_t file); #endif // _di_fll_print_trim_except_in_dynamic_raw_ /** @@ -1872,8 +1872,8 @@ extern "C" { * @param except_in * An array of ranges within the string to not print. * The array of ranges is required/assumed to be in linear order. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: fl_print_trim_except_in_dynamic_raw_safely(). @@ -1886,7 +1886,7 @@ extern "C" { * @see fl_print_trim_except_in_dynamic_raw_safely() */ #ifndef _di_fll_print_trim_except_in_dynamic_raw_safely_ - extern f_status_t fll_print_trim_except_in_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output); + extern f_status_t fll_print_trim_except_in_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, f_file_t file); #endif // _di_fll_print_trim_except_in_dynamic_raw_safely_ /** @@ -1900,8 +1900,8 @@ extern "C" { * @param except_in * An array of ranges within the string to not print. * The array of ranges is required/assumed to be in linear order. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: fl_print_trim_except_in_dynamic_safely(). @@ -1914,7 +1914,7 @@ extern "C" { * @see fl_print_trim_except_in_dynamic_safely() */ #ifndef _di_fll_print_trim_except_in_dynamic_safely_ - extern f_status_t fll_print_trim_except_in_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output); + extern f_status_t fll_print_trim_except_in_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, f_file_t file); #endif // _di_fll_print_trim_except_in_dynamic_safely_ /** @@ -1930,8 +1930,8 @@ extern "C" { * @param except_in * An array of ranges within the string to not print. * The array of ranges is required/assumed to be in linear order. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: fl_print_trim_except_in_dynamic_partial(). @@ -1944,7 +1944,7 @@ extern "C" { * @see fl_print_trim_except_in_dynamic_partial() */ #ifndef _di_fll_print_trim_except_in_dynamic_partial_ - extern f_status_t fll_print_trim_except_in_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output); + extern f_status_t fll_print_trim_except_in_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, f_file_t file); #endif // _di_fll_print_trim_except_in_dynamic_partial_ /** @@ -1960,8 +1960,8 @@ extern "C" { * @param except_in * An array of ranges within the string to not print. * The array of ranges is required/assumed to be in linear order. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: fl_print_trim_except_in_dynamic_partial_raw(). @@ -1974,7 +1974,7 @@ extern "C" { * @see f_print_except_dynamic_partial() */ #ifndef _di_fll_print_trim_except_in_dynamic_partial_raw_ - extern f_status_t fll_print_trim_except_in_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output); + extern f_status_t fll_print_trim_except_in_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, f_file_t file); #endif // _di_fll_print_trim_except_in_dynamic_partial_raw_ /** @@ -1990,8 +1990,8 @@ extern "C" { * @param except_in * An array of ranges within the string to not print. * The array of ranges is required/assumed to be in linear order. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: fl_print_trim_except_in_dynamic_partial_raw_safely(). @@ -2004,7 +2004,7 @@ extern "C" { * @see f_print_except_dynamic_partial() */ #ifndef _di_fll_print_trim_except_in_dynamic_partial_raw_safely_ - extern f_status_t fll_print_trim_except_in_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output); + extern f_status_t fll_print_trim_except_in_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, f_file_t file); #endif // _di_fll_print_trim_except_in_dynamic_partial_raw_safely_ /** @@ -2020,8 +2020,8 @@ extern "C" { * @param except_in * An array of ranges within the string to not print. * The array of ranges is required/assumed to be in linear order. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: fl_print_trim_except_in_dynamic_partial_safely(). @@ -2034,7 +2034,7 @@ extern "C" { * @see f_print_except_dynamic_partial() */ #ifndef _di_fll_print_trim_except_in_dynamic_partial_safely_ - extern f_status_t fll_print_trim_except_in_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output); + extern f_status_t fll_print_trim_except_in_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, f_file_t file); #endif // _di_fll_print_trim_except_in_dynamic_partial_safely_ /** @@ -2047,8 +2047,8 @@ extern "C" { * @param except * An array of locations within the given string to not print. * The array of locations is required/assumed to be in linear order. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: fl_print_trim_except_dynamic_partial(). @@ -2061,7 +2061,7 @@ extern "C" { * @see fl_print_trim_except_dynamic_partial() */ #ifndef _di_fll_print_trim_except_dynamic_partial_ - extern f_status_t fll_print_trim_except_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE * const output); + extern f_status_t fll_print_trim_except_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, f_file_t file); #endif // _di_fll_print_trim_except_dynamic_partial_ /** @@ -2074,8 +2074,8 @@ extern "C" { * @param except * An array of locations within the given string to not print. * The array of locations is required/assumed to be in linear order. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: fl_print_trim_except_dynamic_partial_raw(). @@ -2088,7 +2088,7 @@ extern "C" { * @see fl_print_trim_except_dynamic_partial_raw() */ #ifndef _di_fll_print_trim_except_dynamic_partial_raw_ - extern f_status_t fll_print_trim_except_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE * const output); + extern f_status_t fll_print_trim_except_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, f_file_t file); #endif // _di_fll_print_trim_except_dynamic_partial_raw_ /** @@ -2101,8 +2101,8 @@ extern "C" { * @param except * An array of locations within the given string to not print. * The array of locations is required/assumed to be in linear order. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: fl_print_trim_except_dynamic_partial_raw_safely(). @@ -2115,7 +2115,7 @@ extern "C" { * @see fl_print_trim_except_dynamic_partial_raw_safely() */ #ifndef _di_fll_print_trim_except_dynamic_partial_raw_safely_ - extern f_status_t fll_print_trim_except_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE * const output); + extern f_status_t fll_print_trim_except_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, f_file_t file); #endif // _di_fll_print_trim_except_dynamic_partial_raw_safely_ /** @@ -2128,8 +2128,8 @@ extern "C" { * @param except * An array of locations within the given string to not print. * The array of locations is required/assumed to be in linear order. - * @param output - * The file stream to output to, including standard streams such as stdout and stderr. + * @param file + * The file structure containing a valid stream to output to, including standard streams such as stdout and stderr. * * @return * Success from: fl_print_trim_except_dynamic_partial_safely(). @@ -2142,7 +2142,7 @@ extern "C" { * @see fl_print_trim_except_dynamic_partial_safely() */ #ifndef _di_fll_print_trim_except_dynamic_partial_safely_ - extern f_status_t fll_print_trim_except_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE * const output); + extern f_status_t fll_print_trim_except_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, f_file_t file); #endif // _di_fll_print_trim_except_dynamic_partial_safely_ #ifdef __cplusplus diff --git a/level_2/fll_program/c/private-program.c b/level_2/fll_program/c/private-program.c index 72c2fe9..0744432 100644 --- a/level_2/fll_program/c/private-program.c +++ b/level_2/fll_program/c/private-program.c @@ -8,8 +8,8 @@ extern "C" { #if !defined(_di_fll_program_print_help_option_) || !defined(_di_fll_program_print_help_option_standard_) f_status_t private_fll_program_print_help_option(const fl_print_t print, const f_string_static_t option_short, const f_string_static_t option_long, const f_string_static_t symbol_short, const f_string_static_t symbol_long, const char *description) { - fl_print_format("%r %Q%[%Q%]", print.to.stream, f_string_eol_s, symbol_short, print.set->standout, option_short, print.set->standout); - fl_print_format(", %Q%[%Q%] %S", print.to.stream, symbol_long, print.set->standout, option_long, print.set->standout, description); + fl_print_format("%r %Q%[%Q%]", print.to, f_string_eol_s, symbol_short, print.set->standout, option_short, print.set->standout); + fl_print_format(", %Q%[%Q%] %S", print.to, symbol_long, print.set->standout, option_long, print.set->standout, description); return F_none; } diff --git a/level_2/fll_program/c/program/print.c b/level_2/fll_program/c/program/print.c index 74a3c04..e429df0 100644 --- a/level_2/fll_program/c/program/print.c +++ b/level_2/fll_program/c/program/print.c @@ -12,7 +12,7 @@ extern "C" { f_file_stream_lock(print.to); - fl_print_format("%[%QNo files are specified.%]%r", print.to.stream, print.set->error, print.prefix, print.set->error, f_string_eol_s); + fl_print_format("%[%QNo files are specified.%]%r", print.to, print.set->error, print.prefix, print.set->error, f_string_eol_s); f_file_stream_unlock(print.to); @@ -27,11 +27,11 @@ extern "C" { f_file_stream_lock(print.to); - fl_print_format("%[%QThe %]", print.to.stream, print.set->error, print.prefix, print.set->error); - fl_print_format("%[%Q%]", print.to.stream, print.set->notable, variable, print.set->notable); - fl_print_format("%[ is missing or has a length of %]", print.to.stream, print.set->error, print.set->error); - fl_print_format("%[0%]", print.to.stream, print.set->notable, print.set->notable); - fl_print_format("%[.%]%r", print.to.stream, print.set->error, print.set->error, f_string_eol_s); + fl_print_format("%[%QThe %]", print.to, print.set->error, print.prefix, print.set->error); + fl_print_format("%[%Q%]", print.to, print.set->notable, variable, print.set->notable); + fl_print_format("%[ is missing or has a length of %]", print.to, print.set->error, print.set->error); + fl_print_format("%[0%]", print.to, print.set->notable, print.set->notable); + fl_print_format("%[.%]%r", print.to, print.set->error, print.set->error, f_string_eol_s); f_file_stream_unlock(print.to); @@ -46,11 +46,11 @@ extern "C" { f_file_stream_lock(print.to); - fl_print_format("%[%QThe '%]", print.to.stream, print.set->error, print.prefix, print.set->error); - fl_print_format("%[%Q%Q%]", print.to.stream, print.set->notable, symbol, first, print.set->notable); - fl_print_format("%[' parameter and the '%]", print.to.stream, print.set->error, print.set->error); - fl_print_format("%[%Q%Q%]", print.to.stream, print.set->notable, symbol, second, print.set->notable); - fl_print_format("%[' parameter must be specified the same number of times.%]%r", print.to.stream, print.set->error, print.set->error, f_string_eol_s); + fl_print_format("%[%QThe '%]", print.to, print.set->error, print.prefix, print.set->error); + fl_print_format("%[%Q%Q%]", print.to, print.set->notable, symbol, first, print.set->notable); + fl_print_format("%[' parameter and the '%]", print.to, print.set->error, print.set->error); + fl_print_format("%[%Q%Q%]", print.to, print.set->notable, symbol, second, print.set->notable); + fl_print_format("%[' parameter must be specified the same number of times.%]%r", print.to, print.set->error, print.set->error, f_string_eol_s); f_file_stream_unlock(print.to); @@ -65,11 +65,11 @@ extern "C" { f_file_stream_lock(print.to); - fl_print_format("%[%QCannot specify the '%]", print.to.stream, print.set->error, print.prefix, print.set->error); - fl_print_format("%[%Q%Q%]", print.to.stream, print.set->notable, symbol_first, first, print.set->notable); - fl_print_format("%[' parameter with the '%]", print.to.stream, print.set->error, print.set->error); - fl_print_format("%[%Q%Q%]", print.to.stream, print.set->notable, symbol_second, second, print.set->notable); - fl_print_format("%[' parameter.%]%r", print.to.stream, print.set->error, print.set->error, f_string_eol_s); + fl_print_format("%[%QCannot specify the '%]", print.to, print.set->error, print.prefix, print.set->error); + fl_print_format("%[%Q%Q%]", print.to, print.set->notable, symbol_first, first, print.set->notable); + fl_print_format("%[' parameter with the '%]", print.to, print.set->error, print.set->error); + fl_print_format("%[%Q%Q%]", print.to, print.set->notable, symbol_second, second, print.set->notable); + fl_print_format("%[' parameter.%]%r", print.to, print.set->error, print.set->error, f_string_eol_s); f_file_stream_unlock(print.to); @@ -84,11 +84,11 @@ extern "C" { f_file_stream_lock(print.to); - fl_print_format("%[%QThe value '%]", print.to.stream, print.set->error, print.prefix, print.set->error); - fl_print_format("%[%Q%]", print.to.stream, print.set->notable, value, print.set->notable); - fl_print_format("%[' for the parameter '%]", print.to.stream, print.set->error, print.set->error); - fl_print_format("%[%Q%Q%]", print.to.stream, print.set->notable, symbol, parameter, print.set->notable); - fl_print_format("%[' is not a valid integer.%]%r", print.to.stream, print.set->error, print.set->error, f_string_eol_s); + fl_print_format("%[%QThe value '%]", print.to, print.set->error, print.prefix, print.set->error); + fl_print_format("%[%Q%]", print.to, print.set->notable, value, print.set->notable); + fl_print_format("%[' for the parameter '%]", print.to, print.set->error, print.set->error); + fl_print_format("%[%Q%Q%]", print.to, print.set->notable, symbol, parameter, print.set->notable); + fl_print_format("%[' is not a valid integer.%]%r", print.to, print.set->error, print.set->error, f_string_eol_s); f_file_stream_unlock(print.to); @@ -103,11 +103,11 @@ extern "C" { f_file_stream_lock(print.to); - fl_print_format("%[%QThe value '%]", print.to.stream, print.set->error, print.prefix, print.set->error); - fl_print_format("%[%Q%]", print.to.stream, print.set->notable, value, print.set->notable); - fl_print_format("%[' for the parameter '%]", print.to.stream, print.set->error, print.set->error); - fl_print_format("%[%Q%Q%]", print.to.stream, print.set->notable, symbol, parameter, print.set->notable); - fl_print_format("%[' is not a valid negative integer.%]%r", print.to.stream, print.set->error, print.set->error, f_string_eol_s); + fl_print_format("%[%QThe value '%]", print.to, print.set->error, print.prefix, print.set->error); + fl_print_format("%[%Q%]", print.to, print.set->notable, value, print.set->notable); + fl_print_format("%[' for the parameter '%]", print.to, print.set->error, print.set->error); + fl_print_format("%[%Q%Q%]", print.to, print.set->notable, symbol, parameter, print.set->notable); + fl_print_format("%[' is not a valid negative integer.%]%r", print.to, print.set->error, print.set->error, f_string_eol_s); f_file_stream_unlock(print.to); @@ -122,11 +122,11 @@ extern "C" { f_file_stream_lock(print.to); - fl_print_format("%[%QThe value '%]", print.to.stream, print.set->error, print.prefix, print.set->error); - fl_print_format("%[%Q%]", print.to.stream, print.set->notable, value, print.set->notable); - fl_print_format("%[' for the parameter '%]", print.to.stream, print.set->error, print.set->error); - fl_print_format("%[%Q%Q%]", print.to.stream, print.set->notable, symbol, parameter, print.set->notable); - fl_print_format("%[' is not a valid positive integer.%]%r", print.to.stream, print.set->error, print.set->error, f_string_eol_s); + fl_print_format("%[%QThe value '%]", print.to, print.set->error, print.prefix, print.set->error); + fl_print_format("%[%Q%]", print.to, print.set->notable, value, print.set->notable); + fl_print_format("%[' for the parameter '%]", print.to, print.set->error, print.set->error); + fl_print_format("%[%Q%Q%]", print.to, print.set->notable, symbol, parameter, print.set->notable); + fl_print_format("%[' is not a valid positive integer.%]%r", print.to, print.set->error, print.set->error, f_string_eol_s); f_file_stream_unlock(print.to); @@ -141,9 +141,9 @@ extern "C" { f_file_stream_lock(print.to); - fl_print_format("%[%QThe parameter %]", print.to.stream, print.set->error, print.prefix, print.set->error); - fl_print_format("%[%Q%Q%]", print.to.stream, print.set->notable, symbol, parameter, print.set->notable); - fl_print_format(" %[is specified, but no value is given.%]%r", print.to.stream, print.set->error, print.set->error, f_string_eol_s); + fl_print_format("%[%QThe parameter %]", print.to, print.set->error, print.prefix, print.set->error); + fl_print_format("%[%Q%Q%]", print.to, print.set->notable, symbol, parameter, print.set->notable); + fl_print_format(" %[is specified, but no value is given.%]%r", print.to, print.set->error, print.set->error, f_string_eol_s); f_file_stream_unlock(print.to); @@ -158,11 +158,11 @@ extern "C" { f_file_stream_lock(print.to); - fl_print_format("%[%QThe parameter %]", print.to.stream, print.set->error, print.prefix, print.set->error); - fl_print_format("%[%Q%Q%]", print.to.stream, print.set->notable, symbol, parameter, print.set->notable); - fl_print_format("%[ is specified, but %]", print.to.stream, print.set->error, print.set->error); - fl_print_format("%[%Q%]", print.to.stream, print.set->notable, amount, print.set->notable); - fl_print_format(" %[values are not given.%]%r", print.to.stream, print.set->error, print.set->error, f_string_eol_s); + fl_print_format("%[%QThe parameter %]", print.to, print.set->error, print.prefix, print.set->error); + fl_print_format("%[%Q%Q%]", print.to, print.set->notable, symbol, parameter, print.set->notable); + fl_print_format("%[ is specified, but %]", print.to, print.set->error, print.set->error); + fl_print_format("%[%Q%]", print.to, print.set->notable, amount, print.set->notable); + fl_print_format(" %[values are not given.%]%r", print.to, print.set->error, print.set->error, f_string_eol_s); f_file_stream_unlock(print.to); @@ -177,9 +177,9 @@ extern "C" { f_file_stream_lock(print.to); - fl_print_format("%[%QThe parameter '%]", print.to.stream, print.set->error, print.prefix, print.set->error); - fl_print_format("%[%Q%Q%]", print.to.stream, print.set->notable, symbol, parameter, print.set->notable); - fl_print_format("%[' may only be specified once.%]%r", print.to.stream, print.set->error, print.set->error, f_string_eol_s); + fl_print_format("%[%QThe parameter '%]", print.to, print.set->error, print.prefix, print.set->error); + fl_print_format("%[%Q%Q%]", print.to, print.set->notable, symbol, parameter, print.set->notable); + fl_print_format("%[' may only be specified once.%]%r", print.to, print.set->error, print.set->error, f_string_eol_s); f_file_stream_unlock(print.to); @@ -194,11 +194,11 @@ extern "C" { f_file_stream_lock(print.to); - fl_print_format("%[%QThe value '%]", print.to.stream, print.set->error, print.prefix, print.set->error); - fl_print_format("%[%Q%Q%]", print.to.stream, print.set->notable, symbol, value, print.set->notable); - fl_print_format("%[' may only be specified once for the parameter '%]", print.to.stream, print.set->error, print.set->error); - fl_print_format("%[%Q%Q%]", print.to.stream, print.set->notable, symbol, parameter, print.set->notable); - fl_print_format("%['.%]%r", print.to.stream, print.set->error, print.set->error, f_string_eol_s); + fl_print_format("%[%QThe value '%]", print.to, print.set->error, print.prefix, print.set->error); + fl_print_format("%[%Q%Q%]", print.to, print.set->notable, symbol, value, print.set->notable); + fl_print_format("%[' may only be specified once for the parameter '%]", print.to, print.set->error, print.set->error); + fl_print_format("%[%Q%Q%]", print.to, print.set->notable, symbol, parameter, print.set->notable); + fl_print_format("%['.%]%r", print.to, print.set->error, print.set->error, f_string_eol_s); f_file_stream_unlock(print.to); @@ -213,7 +213,7 @@ extern "C" { f_file_stream_lock(print.to); - fl_print_format("%[%QThe pipe has incorrectly placed form-feed characters (\\f).%]%r", print.to.stream, print.set->error, print.prefix, print.set->error, f_string_eol_s); + fl_print_format("%[%QThe pipe has incorrectly placed form-feed characters (\\f).%]%r", print.to, print.set->error, print.prefix, print.set->error, f_string_eol_s); f_file_stream_unlock(print.to); @@ -228,7 +228,7 @@ extern "C" { f_file_stream_lock(print.to); - fl_print_format("%[%QThe pipe has no content.%]%r", print.to.stream, print.set->error, print.prefix, print.set->error, f_string_eol_s); + fl_print_format("%[%QThe pipe has no content.%]%r", print.to, print.set->error, print.prefix, print.set->error, f_string_eol_s); f_file_stream_unlock(print.to); @@ -243,7 +243,7 @@ extern "C" { f_file_stream_lock(print.to); - fl_print_format("%[%QThe pipe has an Object without Content.%]%r", print.to.stream, print.set->error, print.prefix, print.set->error, f_string_eol_s); + fl_print_format("%[%QThe pipe has an Object without Content.%]%r", print.to, print.set->error, print.prefix, print.set->error, f_string_eol_s); f_file_stream_unlock(print.to); @@ -254,10 +254,10 @@ extern "C" { #ifndef _di_fll_program_print_help_header_ f_status_t fll_program_print_help_header(const fl_print_t print, const f_string_static_t name, const f_string_static_t version) { - fl_print_format(" %[%Q%]%r", print.to.stream, print.set->title, name, print.set->title, f_string_eol_s); - fl_print_format(" %[Version %Q%]%r", print.to.stream, print.set->notable, version, print.set->notable, f_string_eol_s); + fl_print_format(" %[%Q%]%r", print.to, print.set->title, name, print.set->title, f_string_eol_s); + fl_print_format(" %[Version %Q%]%r", print.to, print.set->notable, version, print.set->notable, f_string_eol_s); - fl_print_format("%r %[Available Options:%] ", print.to.stream, f_string_eol_s, print.set->important, print.set->important); + fl_print_format("%r %[Available Options:%] ", print.to, f_string_eol_s, print.set->important, print.set->important); return F_none; } @@ -293,7 +293,7 @@ extern "C" { #ifndef _di_fll_program_print_help_option_long_ f_status_t fll_program_print_help_option_long(const fl_print_t print, const f_string_static_t option_long, const f_string_static_t symbol_long, const char *description) { - fl_print_format("%r %Q%[%Q%] %S", print.to.stream, f_string_eol_s, symbol_long, print.set->standout, option_long, print.set->standout, description); + fl_print_format("%r %Q%[%Q%] %S", print.to, f_string_eol_s, symbol_long, print.set->standout, option_long, print.set->standout, description); return F_none; } @@ -302,7 +302,7 @@ extern "C" { #ifndef _di_fll_program_print_help_option_other_ f_status_t fll_program_print_help_option_other(const fl_print_t print, const f_string_static_t option_other, const char *description) { - fl_print_format("%r %[%Q%] %S", print.to.stream, f_string_eol_s, print.set->standout, option_other, print.set->standout, description); + fl_print_format("%r %[%Q%] %S", print.to, f_string_eol_s, print.set->standout, option_other, print.set->standout, description); return F_none; } @@ -311,16 +311,16 @@ extern "C" { #ifndef _di_fll_program_print_help_usage_ f_status_t fll_program_print_help_usage(const fl_print_t print, const f_string_static_t name, const f_string_static_t parameters) { - fl_print_format(" %[Usage:%]%r", print.to.stream, print.set->important, print.set->important, f_string_eol_s); + fl_print_format(" %[Usage:%]%r", print.to, print.set->important, print.set->important, f_string_eol_s); - fl_print_format(" %[%Q%]", print.to.stream, print.set->standout, name, print.set->standout); - fl_print_format(" %[[%] options %[]%]", print.to.stream, print.set->notable, print.set->notable, print.set->notable, print.set->notable); + fl_print_format(" %[%Q%]", print.to, print.set->standout, name, print.set->standout); + fl_print_format(" %[[%] options %[]%]", print.to, print.set->notable, print.set->notable, print.set->notable, print.set->notable); if (parameters.used) { - fl_print_format(" %[[%] %Q %[]%]", print.to.stream, print.set->notable, print.set->notable, parameters, print.set->notable, print.set->notable); + fl_print_format(" %[[%] %Q %[]%]", print.to, print.set->notable, print.set->notable, parameters, print.set->notable, print.set->notable); } - f_print_dynamic_raw(f_string_eol_s, print.to.stream); + f_print_dynamic_raw(f_string_eol_s, print.to); return F_none; } @@ -338,9 +338,9 @@ extern "C" { // Must flush and reset color because the interrupt may have interrupted the middle of a print function. f_file_stream_flush(print.to); - fl_print_format("%]%r%[Received signal code %]", print.to.stream, print.set->reset, line_first, print.set->warning, print.set->warning); - fl_print_format("%[%u%]", print.to.stream, print.set->notable, signal, print.set->notable); - fl_print_format("%[.%]%r", print.to.stream, print.set->warning, print.set->warning, f_string_eol_s); + fl_print_format("%]%r%[Received signal code %]", print.to, print.set->reset, line_first, print.set->warning, print.set->warning); + fl_print_format("%[%u%]", print.to, print.set->notable, signal, print.set->notable); + fl_print_format("%[.%]%r", print.to, print.set->warning, print.set->warning, f_string_eol_s); f_file_stream_unlock(print.to); @@ -351,8 +351,8 @@ extern "C" { #ifndef _di_fll_program_print_version_ f_status_t fll_program_print_version(const fl_print_t print, const f_string_static_t version) { - f_print_dynamic(version, print.to.stream); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); + f_print_dynamic(version, print.to); + f_print_dynamic_raw(f_string_eol_s, print.to); return F_none; } diff --git a/level_3/byte_dump/c/byte_dump.c b/level_3/byte_dump/c/byte_dump.c index 76ed280..52f1082 100644 --- a/level_3/byte_dump/c/byte_dump.c +++ b/level_3/byte_dump/c/byte_dump.c @@ -156,9 +156,9 @@ extern "C" { if (main->parameters.array[byte_dump_parameter_width_e].result == f_console_result_found_e) { f_file_stream_lock(main->error.to); - fl_print_format("%[%QThe parameter '%]", main->error.to.stream, main->context.set.error, main->error.prefix, main->context.set.error); - fl_print_format("%[%r%r%]", main->error.to.stream, main->context.set.notable, f_console_symbol_long_enable_s, byte_dump_long_width_s, main->context.set.notable); - fl_print_format("%[' is specified, but no value is given.%]%r", main->error.to.stream, main->context.set.error, main->context.set.error, f_string_eol_s); + fl_print_format("%[%QThe parameter '%]", main->error.to, main->context.set.error, main->error.prefix, main->context.set.error); + fl_print_format("%[%r%r%]", main->error.to, main->context.set.notable, f_console_symbol_long_enable_s, byte_dump_long_width_s, main->context.set.notable); + fl_print_format("%[' is specified, but no value is given.%]%r", main->error.to, main->context.set.error, main->context.set.error, f_string_eol_s); f_file_stream_unlock(main->error.to); @@ -174,13 +174,13 @@ extern "C" { if (F_status_is_error(status) || number < 1 || number >= 0xfb) { f_file_stream_lock(main->error.to); - fl_print_format("%[%QThe parameter '%]", main->error.to.stream, main->context.set.error, main->error.prefix, main->context.set.error); - fl_print_format("%[%r%r%]", main->error.to.stream, main->context.set.notable, f_console_symbol_long_enable_s, byte_dump_long_width_s, main->context.set.notable); - fl_print_format("%[' value can only be a number (inclusively) between %]", main->error.to.stream, main->context.set.error, main->context.set.error); - fl_print_format("%[1%]", main->error.to.stream, main->context.set.notable, main->context.set.notable); - fl_print_format(" %[and%] ", main->error.to.stream, main->context.set.error, main->context.set.error); - fl_print_format("%[250%]", main->error.to.stream, main->context.set.notable, main->context.set.notable); - fl_print_format("%[.%]%r", main->error.to.stream, main->context.set.error, main->context.set.error, f_string_eol_s); + fl_print_format("%[%QThe parameter '%]", main->error.to, main->context.set.error, main->error.prefix, main->context.set.error); + fl_print_format("%[%r%r%]", main->error.to, main->context.set.notable, f_console_symbol_long_enable_s, byte_dump_long_width_s, main->context.set.notable); + fl_print_format("%[' value can only be a number (inclusively) between %]", main->error.to, main->context.set.error, main->context.set.error); + fl_print_format("%[1%]", main->error.to, main->context.set.notable, main->context.set.notable); + fl_print_format(" %[and%] ", main->error.to, main->context.set.error, main->context.set.error); + fl_print_format("%[250%]", main->error.to, main->context.set.notable, main->context.set.notable); + fl_print_format("%[.%]%r", main->error.to, main->context.set.error, main->context.set.error, f_string_eol_s); f_file_stream_unlock(main->error.to); @@ -195,9 +195,9 @@ extern "C" { if (main->parameters.array[byte_dump_parameter_first_e].result == f_console_result_found_e) { f_file_stream_lock(main->error.to); - fl_print_format("%[%QThe parameter '%]", main->error.to.stream, main->context.set.error, main->error.prefix, main->context.set.error); - fl_print_format("%[%r%r%]", main->error.to.stream, main->context.set.notable, f_console_symbol_long_enable_s, byte_dump_long_first_s, main->context.set.notable); - fl_print_format("%[' is specified, but no value is given.%]%r", main->error.to.stream, main->context.set.error, main->context.set.error, f_string_eol_s); + fl_print_format("%[%QThe parameter '%]", main->error.to, main->context.set.error, main->error.prefix, main->context.set.error); + fl_print_format("%[%r%r%]", main->error.to, main->context.set.notable, f_console_symbol_long_enable_s, byte_dump_long_first_s, main->context.set.notable); + fl_print_format("%[' is specified, but no value is given.%]%r", main->error.to, main->context.set.error, main->context.set.error, f_string_eol_s); f_file_stream_unlock(main->error.to); @@ -213,13 +213,13 @@ extern "C" { if (F_status_is_error(status) || number > F_number_t_size_unsigned_d) { f_file_stream_lock(main->error.to); - fl_print_format("%[%QThe parameter '%]", main->error.to.stream, main->context.set.error, main->error.prefix, main->context.set.error); - fl_print_format("%[%r%r%]", main->error.to.stream, main->context.set.notable, f_console_symbol_long_enable_s, byte_dump_long_first_s, main->context.set.notable); - fl_print_format("%[' value can only be a number (inclusively) between %]", main->error.to.stream, main->context.set.error, main->context.set.error); - fl_print_format("%[0%]", main->error.to.stream, main->context.set.notable, main->context.set.notable); - fl_print_format(" %[and%] ", main->error.to.stream, main->context.set.error, main->context.set.error); - fl_print_format("%[%un%]", main->error.to.stream, main->context.set.notable, F_number_t_size_unsigned_d, main->context.set.notable); - fl_print_format("%[.%]%r", main->error.to.stream, main->context.set.error, main->context.set.error, f_string_eol_s); + fl_print_format("%[%QThe parameter '%]", main->error.to, main->context.set.error, main->error.prefix, main->context.set.error); + fl_print_format("%[%r%r%]", main->error.to, main->context.set.notable, f_console_symbol_long_enable_s, byte_dump_long_first_s, main->context.set.notable); + fl_print_format("%[' value can only be a number (inclusively) between %]", main->error.to, main->context.set.error, main->context.set.error); + fl_print_format("%[0%]", main->error.to, main->context.set.notable, main->context.set.notable); + fl_print_format(" %[and%] ", main->error.to, main->context.set.error, main->context.set.error); + fl_print_format("%[%un%]", main->error.to, main->context.set.notable, F_number_t_size_unsigned_d, main->context.set.notable); + fl_print_format("%[.%]%r", main->error.to, main->context.set.error, main->context.set.error, f_string_eol_s); f_file_stream_unlock(main->error.to); @@ -234,9 +234,9 @@ extern "C" { if (main->parameters.array[byte_dump_parameter_last_e].result == f_console_result_found_e) { f_file_stream_lock(main->error.to); - fl_print_format("%[%QThe parameter '%]", main->error.to.stream, main->context.set.error, main->error.prefix, main->context.set.error); - fl_print_format("%[%r%r%]", main->error.to.stream, main->context.set.notable, f_console_symbol_long_enable_s, byte_dump_long_last_s, main->context.set.notable); - fl_print_format("%[' is specified, but no value is given.%]%r", main->error.to.stream, main->context.set.error, main->context.set.error, f_string_eol_s); + fl_print_format("%[%QThe parameter '%]", main->error.to, main->context.set.error, main->error.prefix, main->context.set.error); + fl_print_format("%[%r%r%]", main->error.to, main->context.set.notable, f_console_symbol_long_enable_s, byte_dump_long_last_s, main->context.set.notable); + fl_print_format("%[' is specified, but no value is given.%]%r", main->error.to, main->context.set.error, main->context.set.error, f_string_eol_s); f_file_stream_unlock(main->error.to); @@ -252,13 +252,13 @@ extern "C" { if (F_status_is_error(status) || number < 0 || number > F_number_t_size_unsigned_d) { f_file_stream_lock(main->error.to); - fl_print_format("%[%QThe parameter '%]", main->error.to.stream, main->context.set.error, main->error.prefix, main->context.set.error); - fl_print_format("%[%r%r%]", main->error.to.stream, main->context.set.notable, f_console_symbol_long_enable_s, byte_dump_long_last_s, main->context.set.notable); - fl_print_format("%[' value can only be a number (inclusively) between %]", main->error.to.stream, main->context.set.error, main->context.set.error); - fl_print_format("%[0%]", main->error.to.stream, main->context.set.notable, main->context.set.notable); - fl_print_format(" %[and%] ", main->error.to.stream, main->context.set.error, main->context.set.error); - fl_print_format("%[%un%]", main->error.to.stream, main->context.set.notable, F_number_t_size_unsigned_d, main->context.set.notable); - fl_print_format("%[.%]%r", main->error.to.stream, main->context.set.error, main->context.set.error, f_string_eol_s); + fl_print_format("%[%QThe parameter '%]", main->error.to, main->context.set.error, main->error.prefix, main->context.set.error); + fl_print_format("%[%r%r%]", main->error.to, main->context.set.notable, f_console_symbol_long_enable_s, byte_dump_long_last_s, main->context.set.notable); + fl_print_format("%[' value can only be a number (inclusively) between %]", main->error.to, main->context.set.error, main->context.set.error); + fl_print_format("%[0%]", main->error.to, main->context.set.notable, main->context.set.notable); + fl_print_format(" %[and%] ", main->error.to, main->context.set.error, main->context.set.error); + fl_print_format("%[%un%]", main->error.to, main->context.set.notable, F_number_t_size_unsigned_d, main->context.set.notable); + fl_print_format("%[.%]%r", main->error.to, main->context.set.error, main->context.set.error, f_string_eol_s); f_file_stream_unlock(main->error.to); @@ -274,11 +274,11 @@ extern "C" { if (data.first > data.last) { f_file_stream_lock(main->error.to); - fl_print_format("%[%QThe parameter '%]", main->error.to.stream, main->context.set.error, main->error.prefix, main->context.set.error); - fl_print_format("%[%r%r%]", main->error.to.stream, main->context.set.notable, f_console_symbol_long_enable_s, byte_dump_long_first_s, main->context.set.notable); - fl_print_format("%[' value cannot be greater than the parameter '%]", main->error.to.stream, main->context.set.error, main->context.set.error); - fl_print_format("%[%r%r%]", main->error.to.stream, main->context.set.notable, f_console_symbol_long_enable_s, byte_dump_long_last_s, main->context.set.notable); - fl_print_format("%[' value.%]%r", main->error.to.stream, main->context.set.error, main->context.set.error, f_string_eol_s); + fl_print_format("%[%QThe parameter '%]", main->error.to, main->context.set.error, main->error.prefix, main->context.set.error); + fl_print_format("%[%r%r%]", main->error.to, main->context.set.notable, f_console_symbol_long_enable_s, byte_dump_long_first_s, main->context.set.notable); + fl_print_format("%[' value cannot be greater than the parameter '%]", main->error.to, main->context.set.error, main->context.set.error); + fl_print_format("%[%r%r%]", main->error.to, main->context.set.notable, f_console_symbol_long_enable_s, byte_dump_long_last_s, main->context.set.notable); + fl_print_format("%[' value.%]%r", main->error.to, main->context.set.error, main->context.set.error, f_string_eol_s); f_file_stream_unlock(main->error.to); @@ -297,26 +297,26 @@ extern "C" { flockfile(main->output.to.stream); - f_print_dynamic_raw(f_string_eol_s, main->output.to.stream); - fl_print_format("%[Piped " BYTE_DUMP_program_name_long_s ": (in ", main->output.to.stream, main->context.set.title); + f_print_dynamic_raw(f_string_eol_s, main->output.to); + fl_print_format("%[Piped " BYTE_DUMP_program_name_long_s ": (in ", main->output.to, main->context.set.title); if (data.mode == byte_dump_mode_hexidecimal_e) { - f_print_dynamic_raw(byte_dump_print_strings_hexidecimal_s, main->output.to.stream); + f_print_dynamic_raw(byte_dump_print_strings_hexidecimal_s, main->output.to); } else if (data.mode == byte_dump_mode_duodecimal_e) { - f_print_dynamic_raw(byte_dump_print_strings_duodecimal_s, main->output.to.stream); + f_print_dynamic_raw(byte_dump_print_strings_duodecimal_s, main->output.to); } else if (data.mode == byte_dump_mode_octal_e) { - f_print_dynamic_raw(byte_dump_print_strings_octal_s, main->output.to.stream); + f_print_dynamic_raw(byte_dump_print_strings_octal_s, main->output.to); } else if (data.mode == byte_dump_mode_binary_e) { - f_print_dynamic_raw(byte_dump_print_strings_binary_s, main->output.to.stream); + f_print_dynamic_raw(byte_dump_print_strings_binary_s, main->output.to); } else if (data.mode == byte_dump_mode_decimal_e) { - f_print_dynamic_raw(byte_dump_print_strings_decimal_s, main->output.to.stream); + f_print_dynamic_raw(byte_dump_print_strings_decimal_s, main->output.to); } - fl_print_format(")%]%r", main->output.to.stream, main->context.set.title, f_string_eol_s); + fl_print_format(")%]%r", main->output.to, main->context.set.title, f_string_eol_s); funlockfile(main->output.to.stream); @@ -373,26 +373,26 @@ extern "C" { flockfile(main->output.to.stream); - fl_print_format("%r%[" BYTE_DUMP_program_name_long_s " of: %]%[", main->output.to.stream, f_string_eol_s, main->context.set.title, main->context.set.title, main->context.set.notable); - fl_print_format("%Q%] %[(in ", main->output.to.stream, data.argv[main->parameters.remaining.array[counter]], main->context.set.notable, main->context.set.title); + fl_print_format("%r%[" BYTE_DUMP_program_name_long_s " of: %]%[", main->output.to, f_string_eol_s, main->context.set.title, main->context.set.title, main->context.set.notable); + fl_print_format("%Q%] %[(in ", main->output.to, data.argv[main->parameters.remaining.array[counter]], main->context.set.notable, main->context.set.title); if (data.mode == byte_dump_mode_hexidecimal_e) { - f_print_dynamic_raw(byte_dump_print_strings_hexidecimal_s, main->output.to.stream); + f_print_dynamic_raw(byte_dump_print_strings_hexidecimal_s, main->output.to); } else if (data.mode == byte_dump_mode_duodecimal_e) { - f_print_dynamic_raw(byte_dump_print_strings_duodecimal_s, main->output.to.stream); + f_print_dynamic_raw(byte_dump_print_strings_duodecimal_s, main->output.to); } else if (data.mode == byte_dump_mode_octal_e) { - f_print_dynamic_raw(byte_dump_print_strings_octal_s, main->output.to.stream); + f_print_dynamic_raw(byte_dump_print_strings_octal_s, main->output.to); } else if (data.mode == byte_dump_mode_binary_e) { - f_print_dynamic_raw(byte_dump_print_strings_binary_s, main->output.to.stream); + f_print_dynamic_raw(byte_dump_print_strings_binary_s, main->output.to); } else if (data.mode == byte_dump_mode_decimal_e) { - f_print_dynamic_raw(byte_dump_print_strings_decimal_s, main->output.to.stream); + f_print_dynamic_raw(byte_dump_print_strings_decimal_s, main->output.to); } - fl_print_format(")%]%r", main->output.to.stream, main->context.set.title, f_string_eol_s); + fl_print_format(")%]%r", main->output.to, main->context.set.title, f_string_eol_s); funlockfile(main->output.to.stream); @@ -408,7 +408,7 @@ extern "C" { if (main->output.verbosity != f_console_verbosity_quiet_e) { f_file_stream_flush(main->output.to); - fll_print_dynamic_raw(f_string_eol_s, main->output.to.stream); + fll_print_dynamic_raw(f_string_eol_s, main->output.to); } } else { @@ -426,7 +426,7 @@ extern "C" { } } else { - fll_print_format("%r%[%QYou failed to specify one or more filenames.%]%r", main->error.to.stream, f_string_eol_s, main->context.set.error, main->error.prefix, main->context.set.error, f_string_eol_s); + fll_print_format("%r%[%QYou failed to specify one or more filenames.%]%r", main->error.to, f_string_eol_s, main->context.set.error, main->error.prefix, main->context.set.error, f_string_eol_s); status = F_status_set_error(F_parameter); } diff --git a/level_3/byte_dump/c/print.c b/level_3/byte_dump/c/print.c index f0c8110..b9c0050 100644 --- a/level_3/byte_dump/c/print.c +++ b/level_3/byte_dump/c/print.c @@ -10,13 +10,13 @@ extern "C" { f_file_stream_lock(print.to); - f_print_dynamic_raw(setting->line_first, print.to.stream); + f_print_dynamic_raw(setting->line_first, print.to); fll_program_print_help_header(print, byte_dump_program_name_long_s, byte_dump_program_version_s); fll_program_print_help_option_standard(print); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); + f_print_dynamic_raw(f_string_eol_s, print.to); fll_program_print_help_option(print, byte_dump_short_binary_s, byte_dump_long_binary_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Display binary representation."); fll_program_print_help_option(print, byte_dump_short_decimal_s, byte_dump_long_decimal_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Display decimal representation."); @@ -25,12 +25,12 @@ extern "C" { fll_program_print_help_option(print, byte_dump_short_octal_s, byte_dump_long_octal_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Display octal representation."); fll_program_print_help_option(print, byte_dump_short_unicode_s, byte_dump_long_unicode_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Display using Unicode representation for valid Unicode (like: U+0000)."); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); + f_print_dynamic_raw(f_string_eol_s, print.to); fll_program_print_help_option(print, byte_dump_short_first_s, byte_dump_long_first_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, "Start reading at this byte offset."); fll_program_print_help_option(print, byte_dump_short_last_s, byte_dump_long_last_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Stop reading at this (inclusive) byte offset."); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); + f_print_dynamic_raw(f_string_eol_s, print.to); fll_program_print_help_option(print, byte_dump_short_narrow_s, byte_dump_long_narrow_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Use narrow display, resulting in 1*width reducing size of the text columns."); fll_program_print_help_option(print, byte_dump_short_placeholder_s, byte_dump_long_placeholder_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, "Use a placeholder character instead of a space for placeholders."); @@ -38,35 +38,35 @@ extern "C" { fll_program_print_help_option(print, byte_dump_short_wide_s, byte_dump_long_wide_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Use wide display, resulting in 2*width allowing for space for wide characters in the text columns."); fll_program_print_help_option(print, byte_dump_short_width_s, byte_dump_long_width_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Set number of columns of Bytes to display."); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); + f_print_dynamic_raw(f_string_eol_s, print.to); + f_print_dynamic_raw(f_string_eol_s, print.to); - fl_print_format(" %[Special Options:%] ", print.to.stream, context.set.important, context.set.important); + fl_print_format(" %[Special Options:%] ", print.to, context.set.important, context.set.important); fll_program_print_help_option_long(print.to, context, byte_dump_long_normal_s, f_console_symbol_long_enable_s, " Display UTF-8 symbols for ASCII control codes."); fll_program_print_help_option_long(print.to, context, byte_dump_long_simple_s, f_console_symbol_long_enable_s, " Display spaces for ASCII control codes."); fll_program_print_help_option_long(print.to, context, byte_dump_long_classic_s, f_console_symbol_long_enable_s, "Display periods for ASCII control codes."); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); + f_print_dynamic_raw(f_string_eol_s, print.to); + f_print_dynamic_raw(f_string_eol_s, print.to); fll_program_print_help_usage(print, byte_dump_program_name_s, fll_program_parameter_filenames_s); //if (!(setting->flag & XXX_main_flag_line_last_no_e)) { - f_print_dynamic_raw(f_string_eol_s, print.to.stream); + f_print_dynamic_raw(f_string_eol_s, print.to); //} - fl_print_format(" When using the %[%r%r%] option, some UTF-8 characters may be replaced by your instance and cause display alignment issues.%r%r", print.to.stream, context.set.notable, f_console_symbol_long_enable_s, byte_dump_long_text_s, context.set.notable, f_string_eol_s, f_string_eol_s); + fl_print_format(" When using the %[%r%r%] option, some UTF-8 characters may be replaced by your instance and cause display alignment issues.%r%r", print.to, context.set.notable, f_console_symbol_long_enable_s, byte_dump_long_text_s, context.set.notable, f_string_eol_s, f_string_eol_s); - fl_print_format(" Special UTF-8 characters and non-spacing UTF-8 characters may be replaced with a space (or a placeholder when the %[%r%r%] option is used).%r%r", print.to.stream, context.set.notable, f_console_symbol_long_enable_s, byte_dump_long_placeholder_s, context.set.notable, f_string_eol_s, f_string_eol_s); + fl_print_format(" Special UTF-8 characters and non-spacing UTF-8 characters may be replaced with a space (or a placeholder when the %[%r%r%] option is used).%r%r", print.to, context.set.notable, f_console_symbol_long_enable_s, byte_dump_long_placeholder_s, context.set.notable, f_string_eol_s, f_string_eol_s); - fl_print_format(" UTF-8 \"Combining\" characters might have a space appended to allow a proper display but this may cause copy and paste issues.%r%r", print.to.stream, f_string_eol_s, f_string_eol_s); + fl_print_format(" UTF-8 \"Combining\" characters might have a space appended to allow a proper display but this may cause copy and paste issues.%r%r", print.to, f_string_eol_s, f_string_eol_s); - fl_print_format(" When %[%r%r%] is used, any UTF-8 sequences will still be printed in full should any part is found within the requested range.%r%r", print.to.stream, context.set.notable, f_console_symbol_long_enable_s, byte_dump_long_last_s, context.set.notable, f_string_eol_s, f_string_eol_s); + fl_print_format(" When %[%r%r%] is used, any UTF-8 sequences will still be printed in full should any part is found within the requested range.%r%r", print.to, context.set.notable, f_console_symbol_long_enable_s, byte_dump_long_last_s, context.set.notable, f_string_eol_s, f_string_eol_s); - fl_print_format(" When using the %[%r%r%] option, invalid Unicode will fallback to being displayed using one of the other modes.%r", print.to.stream, context.set.notable, f_console_symbol_long_enable_s, byte_dump_long_unicode_s, context.set.notable, f_string_eol_s); + fl_print_format(" When using the %[%r%r%] option, invalid Unicode will fallback to being displayed using one of the other modes.%r", print.to, context.set.notable, f_console_symbol_long_enable_s, byte_dump_long_unicode_s, context.set.notable, f_string_eol_s); - f_print_dynamic_raw(setting->line_last, print.to.stream); + f_print_dynamic_raw(setting->line_last, print.to); f_file_stream_flush(output); f_file_stream_unlock(print.to); @@ -86,7 +86,7 @@ extern "C" { if (setting->flag & byte_dump_main_flag_file_to_e) return F_output_not; } - f_print_dynamic_raw(setting->line_first, print.to.stream); + f_print_dynamic_raw(setting->line_first, print.to); return F_none; } @@ -103,7 +103,7 @@ extern "C" { if (setting->flag & byte_dump_main_flag_file_to_e) return F_output_not; } - fll_print_dynamic_raw(setting->line_first, print.to.stream); + fll_print_dynamic_raw(setting->line_first, print.to); return F_none; } @@ -120,7 +120,7 @@ extern "C" { if (setting->flag & byte_dump_main_flag_file_to_e) return F_output_not; } - fll_print_dynamic_raw(setting->line_last, print.to.stream); + fll_print_dynamic_raw(setting->line_last, print.to); return F_none; } @@ -137,7 +137,7 @@ extern "C" { if (setting->flag & byte_dump_main_flag_file_to_e) return F_output_not; } - f_print_dynamic_raw(setting->line_last, print.to.stream); + f_print_dynamic_raw(setting->line_last, print.to); return F_none; } diff --git a/level_3/byte_dump/c/private-byte_dump.c b/level_3/byte_dump/c/private-byte_dump.c index d41f09d..fa9e3c0 100644 --- a/level_3/byte_dump/c/private-byte_dump.c +++ b/level_3/byte_dump/c/private-byte_dump.c @@ -137,7 +137,7 @@ extern "C" { } } - flockfile(data->main->output.to.stream); + flockfile(data->main->output.to); if (byte_dump_print_character_fragment(data, sequence, invalid, width_utf, 1, &previous, &cell, &offset) == F_true) { character_reset = F_true; @@ -164,7 +164,7 @@ extern "C" { position += width_utf; if (position >= data->last) { - funlockfile(data->main->output.to.stream); + funlockfile(data->main->output.to); break; } @@ -174,19 +174,19 @@ extern "C" { ++position; if (position >= data->last) { - funlockfile(data->main->output.to.stream); + funlockfile(data->main->output.to); break; } } - funlockfile(data->main->output.to.stream); + funlockfile(data->main->output.to); width_utf = -1; } // for } - flockfile(data->main->output.to.stream); + flockfile(data->main->output.to); // Print placeholders to fill out the remaining line and then optionally print the text block. if (cell.column && cell.column < data->width) { @@ -244,22 +244,22 @@ extern "C" { while (cell.column < data->width) { if (data->main->parameters.array[byte_dump_parameter_unicode_e].result == f_console_result_found_e) { - f_print_terminated(" ", data->main->output.to.stream); + f_print_terminated(" ", data->main->output.to); } else if (data->mode == byte_dump_mode_hexidecimal_e) { - f_print_terminated(" ", data->main->output.to.stream); + f_print_terminated(" ", data->main->output.to); } else if (data->mode == byte_dump_mode_duodecimal_e) { - f_print_terminated(" ", data->main->output.to.stream); + f_print_terminated(" ", data->main->output.to); } else if (data->mode == byte_dump_mode_octal_e) { - f_print_terminated(" ", data->main->output.to.stream); + f_print_terminated(" ", data->main->output.to); } else if (data->mode == byte_dump_mode_binary_e) { - f_print_terminated(" ", data->main->output.to.stream); + f_print_terminated(" ", data->main->output.to); } else if (data->mode == byte_dump_mode_decimal_e) { - f_print_terminated(" ", data->main->output.to.stream); + f_print_terminated(" ", data->main->output.to); } ++cell.column; @@ -267,32 +267,32 @@ extern "C" { if (cell.column < data->width) { if (data->main->parameters.array[byte_dump_parameter_unicode_e].result == f_console_result_found_e) { if (!(cell.column % 4)) { - f_print_dynamic_raw(f_string_space_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_space_s, data->main->output.to); } } else if (data->mode == byte_dump_mode_hexidecimal_e) { if (!(cell.column % 8)) { - f_print_dynamic_raw(f_string_space_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_space_s, data->main->output.to); } } else if (data->mode == byte_dump_mode_duodecimal_e) { if (!(cell.column % 6)) { - f_print_dynamic_raw(f_string_space_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_space_s, data->main->output.to); } } else if (data->mode == byte_dump_mode_octal_e) { if (!(cell.column % 6)) { - f_print_dynamic_raw(f_string_space_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_space_s, data->main->output.to); } } else if (data->mode == byte_dump_mode_binary_e) { if (!(cell.column % 6)) { - f_print_dynamic_raw(f_string_space_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_space_s, data->main->output.to); } } else if (data->mode == byte_dump_mode_decimal_e) { if (!(cell.column % 6)) { - f_print_dynamic_raw(f_string_space_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_space_s, data->main->output.to); } } } @@ -302,44 +302,44 @@ extern "C" { byte_dump_print_text(data, sequence, invalid, &previous, &offset); } else { - f_print_dynamic_raw(f_string_eol_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_eol_s, data->main->output.to); } } - f_print_dynamic_raw(f_string_eol_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_eol_s, data->main->output.to); - funlockfile(data->main->output.to.stream); + funlockfile(data->main->output.to); // Make sure to flush standard out to help prevent standard error from causing problems. - fflush(data->main->output.to.stream); + fflush(data->main->output.to); if (found_invalid_utf) { if (data->main->error.verbosity > f_console_verbosity_quiet_e) { - flockfile(data->main->error.to.stream); + flockfile(data->main->error.to); - fl_print_format("%[Invalid UTF-8 codes were detected for file '%]", data->main->error.to.stream, data->main->context.set.error, data->main->context.set.error); - fl_print_format("%[%Q%]", data->main->error.to.stream, data->main->context.set.notable, file_name.used ? file_name : f_string_ascii_minus_s, data->main->context.set.notable); - fl_print_format("%['.%]%r%r", data->main->error.to.stream, data->main->context.set.error, data->main->context.set.error, f_string_eol_s, f_string_eol_s); + fl_print_format("%[Invalid UTF-8 codes were detected for file '%]", data->main->error.to, data->main->context.set.error, data->main->context.set.error); + fl_print_format("%[%Q%]", data->main->error.to, data->main->context.set.notable, file_name.used ? file_name : f_string_ascii_minus_s, data->main->context.set.notable); + fl_print_format("%['.%]%r%r", data->main->error.to, data->main->context.set.error, data->main->context.set.error, f_string_eol_s, f_string_eol_s); - funlockfile(data->main->error.to.stream); + funlockfile(data->main->error.to); } } if (ferror(file.stream)) { if (data->main->error.verbosity > f_console_verbosity_quiet_e) { - flockfile(data->main->error.to.stream); + flockfile(data->main->error.to); - fl_print_format("%[%Qread() failed for '%]", data->main->error.to.stream, data->main->context.set.error, data->main->error.prefix, data->main->context.set.error); - fl_print_format("%[%Q%]", data->main->error.to.stream, data->main->context.set.notable, file_name.used ? file_name : f_string_ascii_minus_s, data->main->context.set.notable); - fl_print_format("%['.%]%r%r", data->main->error.to.stream, data->main->context.set.error, data->main->context.set.error, f_string_eol_s, f_string_eol_s); + fl_print_format("%[%Qread() failed for '%]", data->main->error.to, data->main->context.set.error, data->main->error.prefix, data->main->context.set.error); + fl_print_format("%[%Q%]", data->main->error.to, data->main->context.set.notable, file_name.used ? file_name : f_string_ascii_minus_s, data->main->context.set.notable); + fl_print_format("%['.%]%r%r", data->main->error.to, data->main->context.set.error, data->main->context.set.error, f_string_eol_s, f_string_eol_s); - funlockfile(data->main->error.to.stream); + funlockfile(data->main->error.to); } status = F_status_set_error(F_failure); } - fflush(data->main->error.to.stream); + fflush(data->main->error.to); return status; } @@ -368,7 +368,7 @@ extern "C" { } if (!cell->column) { - fl_print_format("%[%016_UL%] ", data->main->output.to.stream, data->main->context.set.notable, cell->row, data->main->context.set.notable); + fl_print_format("%[%016_UL%] ", data->main->output.to, data->main->context.set.notable, cell->row, data->main->context.set.notable); if (*offset) { f_char_t offset_to_print = *offset; @@ -377,22 +377,22 @@ extern "C" { while (offset_to_print && cell->column < data->width) { if (data->main->parameters.array[byte_dump_parameter_unicode_e].result == f_console_result_found_e) { - f_print_terminated(" ", data->main->output.to.stream); + f_print_terminated(" ", data->main->output.to); } else if (data->mode == byte_dump_mode_hexidecimal_e) { - f_print_terminated(" ", data->main->output.to.stream); + f_print_terminated(" ", data->main->output.to); } else if (data->mode == byte_dump_mode_duodecimal_e) { - f_print_terminated(" ", data->main->output.to.stream); + f_print_terminated(" ", data->main->output.to); } else if (data->mode == byte_dump_mode_octal_e) { - f_print_terminated(" ", data->main->output.to.stream); + f_print_terminated(" ", data->main->output.to); } else if (data->mode == byte_dump_mode_binary_e) { - f_print_terminated(" ", data->main->output.to.stream); + f_print_terminated(" ", data->main->output.to); } else if (data->mode == byte_dump_mode_decimal_e) { - f_print_terminated(" ", data->main->output.to.stream); + f_print_terminated(" ", data->main->output.to); } --offset_to_print; @@ -401,32 +401,32 @@ extern "C" { if (cell->column < data->width) { if (data->main->parameters.array[byte_dump_parameter_unicode_e].result == f_console_result_found_e) { if (!(cell->column % 4)) { - f_print_dynamic_raw(f_string_space_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_space_s, data->main->output.to); } } else if (data->mode == byte_dump_mode_hexidecimal_e) { if (!(cell->column % 8)) { - f_print_dynamic_raw(f_string_space_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_space_s, data->main->output.to); } } else if (data->mode == byte_dump_mode_duodecimal_e) { if (!(cell->column % 6)) { - f_print_dynamic_raw(f_string_space_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_space_s, data->main->output.to); } } else if (data->mode == byte_dump_mode_octal_e) { if (!(cell->column % 6)) { - f_print_dynamic_raw(f_string_space_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_space_s, data->main->output.to); } } else if (data->mode == byte_dump_mode_binary_e) { if (!(cell->column % 4)) { - f_print_dynamic_raw(f_string_space_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_space_s, data->main->output.to); } } else if (data->mode == byte_dump_mode_decimal_e) { if (!(cell->column % 6)) { - f_print_dynamic_raw(f_string_space_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_space_s, data->main->output.to); } } } @@ -467,73 +467,73 @@ extern "C" { } if (width_utf < 4) { - fl_print_format(" U+%04_U ", data->main->output.to.stream, unicode); + fl_print_format(" U+%04_U ", data->main->output.to, unicode); } else { - fl_print_format(" U+%06_U ", data->main->output.to.stream, unicode); + fl_print_format(" U+%06_U ", data->main->output.to, unicode); } } else { // Pad the sequence that are incomplete fragments of an already printed valid Unicode. - f_print_terminated(" ", data->main->output.to.stream); + f_print_terminated(" ", data->main->output.to); } } else { if (data->mode == byte_dump_mode_hexidecimal_e) { if (data->main->parameters.array[byte_dump_parameter_unicode_e].result == f_console_result_found_e) { - f_print_terminated(" ", data->main->output.to.stream); + f_print_terminated(" ", data->main->output.to); } if (invalid[current]) { - fl_print_format(" %[%02_uii%]", data->main->output.to.stream, data->main->context.set.error, (uint8_t) byte, data->main->context.set.error); + fl_print_format(" %[%02_uii%]", data->main->output.to, data->main->context.set.error, (uint8_t) byte, data->main->context.set.error); } else { - fl_print_format(" %02_uii", data->main->output.to.stream, (uint8_t) byte); + fl_print_format(" %02_uii", data->main->output.to, (uint8_t) byte); } } else if (data->mode == byte_dump_mode_duodecimal_e) { if (data->main->parameters.array[byte_dump_parameter_unicode_e].result == f_console_result_found_e) { - f_print_terminated(" ", data->main->output.to.stream); + f_print_terminated(" ", data->main->output.to); } if (invalid[current]) { - fl_print_format(" %[%03&uii%]", data->main->output.to.stream, data->main->context.set.error, (uint8_t) byte, data->main->context.set.error); + fl_print_format(" %[%03&uii%]", data->main->output.to, data->main->context.set.error, (uint8_t) byte, data->main->context.set.error); } else { - fl_print_format(" %03&uii", data->main->output.to.stream, (uint8_t) byte); + fl_print_format(" %03&uii", data->main->output.to, (uint8_t) byte); } } else if (data->mode == byte_dump_mode_octal_e) { if (data->main->parameters.array[byte_dump_parameter_unicode_e].result == f_console_result_found_e) { - f_print_terminated(" ", data->main->output.to.stream); + f_print_terminated(" ", data->main->output.to); } if (invalid[current]) { - fl_print_format(" %[%03@uii%]", data->main->output.to.stream, data->main->context.set.error, (uint8_t) byte, data->main->context.set.error); + fl_print_format(" %[%03@uii%]", data->main->output.to, data->main->context.set.error, (uint8_t) byte, data->main->context.set.error); } else { - fl_print_format(" %03@uii", data->main->output.to.stream, (uint8_t) byte); + fl_print_format(" %03@uii", data->main->output.to, (uint8_t) byte); } } else if (data->mode == byte_dump_mode_binary_e) { if (invalid[current]) { - fl_print_format(" %[%08!uii%]", data->main->output.to.stream, data->main->context.set.error, (uint8_t) byte, data->main->context.set.error); + fl_print_format(" %[%08!uii%]", data->main->output.to, data->main->context.set.error, (uint8_t) byte, data->main->context.set.error); } else { - fl_print_format(" %08!uii", data->main->output.to.stream, (uint8_t) byte); + fl_print_format(" %08!uii", data->main->output.to, (uint8_t) byte); } } else if (data->mode == byte_dump_mode_decimal_e) { if (data->main->parameters.array[byte_dump_parameter_unicode_e].result == f_console_result_found_e) { - f_print_terminated(" ", data->main->output.to.stream); + f_print_terminated(" ", data->main->output.to); } if (invalid[current]) { - fl_print_format(" %[%3uii%]", data->main->output.to.stream, data->main->context.set.error, (uint8_t) byte, data->main->context.set.error); + fl_print_format(" %[%3uii%]", data->main->output.to, data->main->context.set.error, (uint8_t) byte, data->main->context.set.error); } else { - fl_print_format(" %3uii", data->main->output.to.stream, (uint8_t) byte); + fl_print_format(" %3uii", data->main->output.to, (uint8_t) byte); } } } @@ -554,7 +554,7 @@ extern "C" { byte_dump_print_text(data, sequence, invalid, previous, offset); } else { - f_print_dynamic_raw(f_string_eol_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_eol_s, data->main->output.to); } cell->column = 0; @@ -572,32 +572,32 @@ extern "C" { else { if (data->main->parameters.array[byte_dump_parameter_unicode_e].result == f_console_result_found_e) { if (!(cell->column % 4)) { - f_print_dynamic_raw(f_string_space_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_space_s, data->main->output.to); } } else if (data->mode == byte_dump_mode_hexidecimal_e) { if (!(cell->column % 8)) { - f_print_dynamic_raw(f_string_space_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_space_s, data->main->output.to); } } else if (data->mode == byte_dump_mode_duodecimal_e) { if (!(cell->column % 6)) { - f_print_dynamic_raw(f_string_space_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_space_s, data->main->output.to); } } else if (data->mode == byte_dump_mode_octal_e) { if (!(cell->column % 6)) { - f_print_dynamic_raw(f_string_space_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_space_s, data->main->output.to); } } else if (data->mode == byte_dump_mode_binary_e) { if (!(cell->column % 4)) { - f_print_dynamic_raw(f_string_space_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_space_s, data->main->output.to); } } else if (data->mode == byte_dump_mode_decimal_e) { if (!(cell->column % 6)) { - f_print_dynamic_raw(f_string_space_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_space_s, data->main->output.to); } } } @@ -616,16 +616,16 @@ extern "C" { f_char_t byte[5] = { 0, 0, 0, 0, 0 }; - fl_print_format(" %[%r%] ", data->main->output.to.stream, data->main->context.set.notable, byte_dump_character_wall_s, data->main->context.set.notable); + fl_print_format(" %[%r%] ", data->main->output.to, data->main->context.set.notable, byte_dump_character_wall_s, data->main->context.set.notable); if (*offset) { if (data->main->parameters.array[byte_dump_parameter_classic_e].result == f_console_result_found_e) { while (*offset && at < data->width) { - f_print_dynamic_raw(f_string_ascii_period_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_ascii_period_s, data->main->output.to); if (data->options & byte_dump_option_wide_d) { - f_print_dynamic_raw(f_string_ascii_space_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_ascii_space_s, data->main->output.to); } --(*offset); @@ -636,20 +636,20 @@ extern "C" { if (data->main->parameters.array[byte_dump_parameter_placeholder_e].result == f_console_result_found_e) { for (; *offset && at < data->width; --(*offset), ++at) { - fl_print_format("%[%r%]", data->main->output.to.stream, data->main->context.set.warning, byte_dump_character_placeholder_s, data->main->context.set.warning); + fl_print_format("%[%r%]", data->main->output.to, data->main->context.set.warning, byte_dump_character_placeholder_s, data->main->context.set.warning); if (data->options & byte_dump_option_wide_d) { - f_print_dynamic_raw(f_string_space_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_space_s, data->main->output.to); } } // for } else { for (; *offset && at < data->width; --(*offset), ++at) { - f_print_dynamic_raw(f_string_space_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_space_s, data->main->output.to); if (data->options & byte_dump_option_wide_d) { - f_print_dynamic_raw(f_string_space_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_space_s, data->main->output.to); } } // for } @@ -669,27 +669,27 @@ extern "C" { for (; at < previous->bytes && at < data->width; ++at) { if (previous->invalid) { - fl_print_format("%[%r%]", data->main->output.to.stream, data->main->context.set.error, byte_dump_character_placeholder_s, data->main->context.set.error); + fl_print_format("%[%r%]", data->main->output.to, data->main->context.set.error, byte_dump_character_placeholder_s, data->main->context.set.error); } else if (data->main->parameters.array[byte_dump_parameter_classic_e].result == f_console_result_found_e) { - f_print_dynamic_raw(f_string_ascii_period_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_ascii_period_s, data->main->output.to); } else { - fl_print_format("%[%r%]", data->main->output.to.stream, data->main->context.set.warning, byte_dump_character_placeholder_s, data->main->context.set.warning); + fl_print_format("%[%r%]", data->main->output.to, data->main->context.set.warning, byte_dump_character_placeholder_s, data->main->context.set.warning); } if (data->options & byte_dump_option_wide_d) { - f_print_dynamic_raw(f_string_ascii_space_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_ascii_space_s, data->main->output.to); } } // for } else { for (; at < previous->bytes && at < data->width; ++at) { - f_print_dynamic_raw(f_string_space_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_space_s, data->main->output.to); if (data->options & byte_dump_option_wide_d) { - f_print_dynamic_raw(f_string_space_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_space_s, data->main->output.to); } } // for } @@ -710,15 +710,15 @@ extern "C" { width_utf = macro_f_utf_byte_width_is(c); if (invalid[i]) { - fl_print_format("%[%r%]", data->main->output.to.stream, data->main->context.set.error, byte_dump_character_incomplete_s, data->main->context.set.error); + fl_print_format("%[%r%]", data->main->output.to, data->main->context.set.error, byte_dump_character_incomplete_s, data->main->context.set.error); if (data->options & byte_dump_option_wide_d) { - f_print_dynamic_raw(f_string_ascii_space_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_ascii_space_s, data->main->output.to); } } else if (f_utf_character_is_control(sequence.string[i]) == F_true) { if (data->presentation == byte_dump_presentation_normal_e) { - fl_print_format("%[%[", data->main->output.to.stream, data->main->context.set.notable, data->main->context.set.warning); + fl_print_format("%[%[", data->main->output.to, data->main->context.set.notable, data->main->context.set.warning); if (width_utf) { byte[0] = c; @@ -744,82 +744,82 @@ extern "C" { byte[1] = 0; } - f_print_safely(byte, width_utf, data->main->output.to.stream); + f_print_safely(byte, width_utf, data->main->output.to); } else { - f_print_character_safely(c, data->main->output.to.stream); + f_print_character_safely(c, data->main->output.to); } - fl_print_format("%]%]", data->main->output.to.stream, data->main->context.set.warning, data->main->context.set.notable); + fl_print_format("%]%]", data->main->output.to, data->main->context.set.warning, data->main->context.set.notable); if (data->options & byte_dump_option_wide_d) { if (f_utf_character_is_wide(sequence.string[i]) != F_true) { - f_print_dynamic_raw(f_string_ascii_space_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_ascii_space_s, data->main->output.to); } } } else { if (data->presentation == byte_dump_presentation_simple_e) { - f_print_dynamic_raw(f_string_space_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_space_s, data->main->output.to); if (width_utf > 1) { - f_print_dynamic_raw(f_string_space_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_space_s, data->main->output.to); if (width_utf > 2) { - f_print_dynamic_raw(f_string_space_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_space_s, data->main->output.to); if (width_utf > 3) { - f_print_dynamic_raw(f_string_space_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_space_s, data->main->output.to); } } } } else if (data->presentation == byte_dump_presentation_classic_e) { - f_print_dynamic_raw(f_string_ascii_period_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_ascii_period_s, data->main->output.to); if (width_utf > 1) { - f_print_dynamic_raw(f_string_ascii_period_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_ascii_period_s, data->main->output.to); if (width_utf > 2) { - f_print_dynamic_raw(f_string_ascii_period_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_ascii_period_s, data->main->output.to); if (width_utf > 3) { - f_print_dynamic_raw(f_string_ascii_period_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_ascii_period_s, data->main->output.to); } } } } if (data->options & byte_dump_option_wide_d) { - f_print_dynamic_raw(f_string_ascii_space_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_ascii_space_s, data->main->output.to); } } } else if (f_utf_character_is_whitespace(sequence.string[i], F_true) == F_true) { if (data->main->parameters.array[byte_dump_parameter_classic_e].result == f_console_result_found_e) { - f_print_dynamic_raw(f_string_ascii_period_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_ascii_period_s, data->main->output.to); } else { - fl_print_format("%[%[%r%]%]", data->main->output.to.stream, data->main->context.set.notable, data->main->context.set.warning, f_print_sequence_space_s, data->main->context.set.warning, data->main->context.set.notable); + fl_print_format("%[%[%r%]%]", data->main->output.to, data->main->context.set.notable, data->main->context.set.warning, f_print_sequence_space_s, data->main->context.set.warning, data->main->context.set.notable); } if (data->options & byte_dump_option_wide_d) { - f_print_dynamic_raw(f_string_ascii_space_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_ascii_space_s, data->main->output.to); } } else if (f_utf_character_is_zero_width(sequence.string[i]) == F_true) { if (data->presentation == byte_dump_presentation_classic_e) { - f_print_dynamic_raw(f_string_ascii_period_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_ascii_period_s, data->main->output.to); } else if (data->main->parameters.array[byte_dump_parameter_placeholder_e].result == f_console_result_found_e) { - fl_print_format("%[%[%r%]%]", data->main->output.to.stream, data->main->context.set.notable, data->main->context.set.warning, byte_dump_character_placeholder_s, data->main->context.set.warning, data->main->context.set.notable); + fl_print_format("%[%[%r%]%]", data->main->output.to, data->main->context.set.notable, data->main->context.set.warning, byte_dump_character_placeholder_s, data->main->context.set.warning, data->main->context.set.notable); } else { - f_print_dynamic_raw(f_string_space_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_space_s, data->main->output.to); } if (data->options & byte_dump_option_wide_d) { - f_print_dynamic_raw(f_string_ascii_space_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_ascii_space_s, data->main->output.to); } } else if (width_utf) { @@ -829,10 +829,10 @@ extern "C" { // Print invalid placeholder for invalid UTF-8 widths. if (invalid[i]) { - fl_print_format("%[%r%]", data->main->output.to.stream, data->main->context.set.error, byte_dump_character_incomplete_s, data->main->context.set.error); + fl_print_format("%[%r%]", data->main->output.to, data->main->context.set.error, byte_dump_character_incomplete_s, data->main->context.set.error); } else { - fl_print_format("%[%r%]", data->main->output.to.stream, data->main->context.set.warning, byte_dump_character_incomplete_s, data->main->context.set.warning); + fl_print_format("%[%r%]", data->main->output.to, data->main->context.set.warning, byte_dump_character_incomplete_s, data->main->context.set.warning); } } else if (width_utf == 2) { @@ -843,17 +843,17 @@ extern "C" { // Use space to represent Specials codes. // 0xefbfbd00 is excluded because it is printable (and is the "Replacement Character" code). - f_print_dynamic_raw(f_string_space_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_space_s, data->main->output.to); } else if (sequence.string[i] >= 0xe290a700 && sequence.string[i] <= 0xe290bf00) { // Use space to represent Control Pictues codes that are not currently defined but are reserved. - f_print_dynamic_raw(f_string_space_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_space_s, data->main->output.to); } else if (sequence.string[i] >= 0xee808000 && sequence.string[i] <= 0xefa3bf00) { // Use space to represent Private Use Area codes. - f_print_dynamic_raw(f_string_space_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_space_s, data->main->output.to); } else { print = F_true; @@ -862,58 +862,58 @@ extern "C" { else if (sequence.string[i] >= 0xf09c80a0 && sequence.string[i] <= 0xf09c80bd) { // Use space to represent Variation Selectors Supplement codes. - f_print_dynamic_raw(f_string_space_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_space_s, data->main->output.to); } else if (sequence.string[i] >= 0xf3b08080 && sequence.string[i] <= 0xf3bfbfbf) { // Use space to represent Supplemental Private Use Area-A codes. - f_print_dynamic_raw(f_string_space_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_space_s, data->main->output.to); } else if (sequence.string[i] >= 0xf4808080 && sequence.string[i] <= 0xf48fbfbf) { // Use space to represent Supplemental Private Use Area-B codes. - f_print_dynamic_raw(f_string_space_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_space_s, data->main->output.to); } else { print = F_true; } if (print) { - f_print_character(c, data->main->output.to.stream); + f_print_character(c, data->main->output.to); if (width_utf > 1) { - f_print_character(macro_f_utf_char_t_to_char_2(sequence.string[i]), data->main->output.to.stream); + f_print_character(macro_f_utf_char_t_to_char_2(sequence.string[i]), data->main->output.to); if (width_utf > 2) { - f_print_character(macro_f_utf_char_t_to_char_3(sequence.string[i]), data->main->output.to.stream); + f_print_character(macro_f_utf_char_t_to_char_3(sequence.string[i]), data->main->output.to); if (width_utf > 3) { - f_print_character(macro_f_utf_char_t_to_char_4(sequence.string[i]), data->main->output.to.stream); + f_print_character(macro_f_utf_char_t_to_char_4(sequence.string[i]), data->main->output.to); } } } if (f_utf_character_is_combining(sequence.string[i]) == F_true) { - f_print_dynamic_raw(f_string_space_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_space_s, data->main->output.to); } if (data->options & byte_dump_option_wide_d) { if (width_utf == 1 || f_utf_character_is_wide(sequence.string[i]) != F_true) { - f_print_dynamic_raw(f_string_ascii_space_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_ascii_space_s, data->main->output.to); } } } else { if (data->options & byte_dump_option_wide_d) { - f_print_dynamic_raw(f_string_ascii_space_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_ascii_space_s, data->main->output.to); } } } else { - f_print_character(c, data->main->output.to.stream); + f_print_character(c, data->main->output.to); if (data->options & byte_dump_option_wide_d) { - f_print_dynamic_raw(f_string_ascii_space_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_ascii_space_s, data->main->output.to); } } @@ -921,21 +921,21 @@ extern "C" { if (width_utf > 1 && at + 1 < data->width) { if (data->main->parameters.array[byte_dump_parameter_placeholder_e].result == f_console_result_found_e) { if (invalid[i]) { - fl_print_format("%[%r%]", data->main->output.to.stream, data->main->context.set.error, byte_dump_character_placeholder_s, data->main->context.set.error); + fl_print_format("%[%r%]", data->main->output.to, data->main->context.set.error, byte_dump_character_placeholder_s, data->main->context.set.error); } else if (data->main->parameters.array[byte_dump_parameter_classic_e].result == f_console_result_found_e) { - f_print_dynamic_raw(f_string_ascii_period_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_ascii_period_s, data->main->output.to); } else { - fl_print_format("%[%r%]", data->main->output.to.stream, data->main->context.set.warning, byte_dump_character_placeholder_s, data->main->context.set.warning); + fl_print_format("%[%r%]", data->main->output.to, data->main->context.set.warning, byte_dump_character_placeholder_s, data->main->context.set.warning); } } else { - f_print_dynamic_raw(f_string_space_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_space_s, data->main->output.to); } if (data->options & byte_dump_option_wide_d) { - f_print_dynamic_raw(f_string_ascii_space_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_ascii_space_s, data->main->output.to); } ++at; @@ -943,21 +943,21 @@ extern "C" { if (width_utf > 2 && at + 1 < data->width) { if (data->main->parameters.array[byte_dump_parameter_placeholder_e].result == f_console_result_found_e) { if (invalid[i]) { - fl_print_format("%[%r%]", data->main->output.to.stream, data->main->context.set.error, byte_dump_character_placeholder_s, data->main->context.set.error); + fl_print_format("%[%r%]", data->main->output.to, data->main->context.set.error, byte_dump_character_placeholder_s, data->main->context.set.error); } else if (data->main->parameters.array[byte_dump_parameter_classic_e].result == f_console_result_found_e) { - f_print_dynamic_raw(f_string_ascii_period_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_ascii_period_s, data->main->output.to); } else { - fl_print_format("%[%r%]", data->main->output.to.stream, data->main->context.set.warning, byte_dump_character_placeholder_s, data->main->context.set.warning); + fl_print_format("%[%r%]", data->main->output.to, data->main->context.set.warning, byte_dump_character_placeholder_s, data->main->context.set.warning); } } else { - f_print_dynamic_raw(f_string_space_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_space_s, data->main->output.to); } if (data->options & byte_dump_option_wide_d) { - f_print_dynamic_raw(f_string_ascii_space_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_ascii_space_s, data->main->output.to); } ++at; @@ -965,21 +965,21 @@ extern "C" { if (width_utf > 3 && at + 1 < data->width) { if (data->main->parameters.array[byte_dump_parameter_placeholder_e].result == f_console_result_found_e) { if (invalid[i]) { - fl_print_format("%[%r%]", data->main->output.to.stream, data->main->context.set.error, byte_dump_character_placeholder_s, data->main->context.set.error); + fl_print_format("%[%r%]", data->main->output.to, data->main->context.set.error, byte_dump_character_placeholder_s, data->main->context.set.error); } else if (data->main->parameters.array[byte_dump_parameter_classic_e].result == f_console_result_found_e) { - f_print_dynamic_raw(f_string_ascii_period_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_ascii_period_s, data->main->output.to); } else { - fl_print_format("%[%r%]", data->main->output.to.stream, data->main->context.set.warning, byte_dump_character_placeholder_s, data->main->context.set.warning); + fl_print_format("%[%r%]", data->main->output.to, data->main->context.set.warning, byte_dump_character_placeholder_s, data->main->context.set.warning); } } else { - f_print_dynamic_raw(f_string_space_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_space_s, data->main->output.to); } if (data->options & byte_dump_option_wide_d) { - f_print_dynamic_raw(f_string_ascii_space_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_ascii_space_s, data->main->output.to); } ++at; @@ -993,32 +993,32 @@ extern "C" { for (; at < data->width; ++at) { if (invalid[at]) { - fl_print_format("%[%r%]", data->main->output.to.stream, data->main->context.set.error, byte_dump_character_placeholder_s, data->main->context.set.error); + fl_print_format("%[%r%]", data->main->output.to, data->main->context.set.error, byte_dump_character_placeholder_s, data->main->context.set.error); } else if (data->main->parameters.array[byte_dump_parameter_classic_e].result == f_console_result_found_e) { - f_print_dynamic_raw(f_string_ascii_period_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_ascii_period_s, data->main->output.to); } else { - fl_print_format("%[%r%]", data->main->output.to.stream, data->main->context.set.warning, byte_dump_character_placeholder_s, data->main->context.set.warning); + fl_print_format("%[%r%]", data->main->output.to, data->main->context.set.warning, byte_dump_character_placeholder_s, data->main->context.set.warning); } if (data->options & byte_dump_option_wide_d) { - f_print_dynamic_raw(f_string_ascii_space_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_ascii_space_s, data->main->output.to); } } // for } else { for (; at < data->width; ++at) { - f_print_dynamic_raw(f_string_space_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_space_s, data->main->output.to); if (data->options & byte_dump_option_wide_d) { - f_print_dynamic_raw(f_string_space_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_space_s, data->main->output.to); } } // for } - fl_print_format(" %[%r%]%r", data->main->output.to.stream, data->main->context.set.notable, byte_dump_character_wall_s, data->main->context.set.notable, f_string_eol_s); + fl_print_format(" %[%r%]%r", data->main->output.to, data->main->context.set.notable, byte_dump_character_wall_s, data->main->context.set.notable, f_string_eol_s); } #endif // _di_byte_dump_print_text_ diff --git a/level_3/control/c/control.c b/level_3/control/c/control.c index c14e04a..9979891 100644 --- a/level_3/control/c/control.c +++ b/level_3/control/c/control.c @@ -200,9 +200,9 @@ extern "C" { if (main->output.verbosity != f_console_verbosity_quiet_e) { if (F_status_is_error(status)) { f_file_stream_flush(main->output.to); - fflush(main->error.to.stream); + fflush(main->error.to); - fll_print_dynamic_raw(f_string_eol_s, main->output.to.stream); + fll_print_dynamic_raw(f_string_eol_s, main->output.to); } } diff --git a/level_3/control/c/print.c b/level_3/control/c/print.c index 33ea9bc..66f8f62 100644 --- a/level_3/control/c/print.c +++ b/level_3/control/c/print.c @@ -10,36 +10,36 @@ extern "C" { f_file_stream_lock(print.to); - f_print_dynamic_raw(setting->line_first, print.to.stream); + f_print_dynamic_raw(setting->line_first, print.to); fll_program_print_help_header(print, control_program_name_long_s, control_program_version_s); fll_program_print_help_option_standard(main->output.to, context); - f_print_dynamic_raw(f_string_eol_s, main->output.to.stream); + f_print_dynamic_raw(f_string_eol_s, main->output.to); fll_program_print_help_option(print, control_short_name_s, control_long_name_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Specify the name of the controller socket file."); fll_program_print_help_option(print, control_short_return_s, control_long_return_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Print a message about the response packet."); fll_program_print_help_option(print, control_short_settings_s, control_long_settings_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, "Specify a directory path or a full path to the control settings file."); fll_program_print_help_option(print, control_short_socket_s, control_long_socket_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Specify a directory path or a full path to the controller socket file."); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); + f_print_dynamic_raw(f_string_eol_s, print.to); + f_print_dynamic_raw(f_string_eol_s, print.to); fll_program_print_help_usage(print, control_program_name_s, control_action_s); - fl_print_format("%r When the %[%r%r%] parameter represents a directory path then the file name is generated from either the", print.to.stream, f_string_eol_s, print.set->notable, f_console_symbol_long_enable_s, control_long_socket_s, print.set->notable); - fl_print_format(" %[%r%r%] parameter or from the control settings file.%r%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, control_long_name_s, print.set->notable, f_string_eol_s, f_string_eol_s); + fl_print_format("%r When the %[%r%r%] parameter represents a directory path then the file name is generated from either the", print.to, f_string_eol_s, print.set->notable, f_console_symbol_long_enable_s, control_long_socket_s, print.set->notable); + fl_print_format(" %[%r%r%] parameter or from the control settings file.%r%r", print.to, print.set->notable, f_console_symbol_long_enable_s, control_long_name_s, print.set->notable, f_string_eol_s, f_string_eol_s); - fl_print_format(" A rule action allows for either the full rule path, such as '%[boot/root%]'", print.to.stream, print.set->notable, print.set->notable); - fl_print_format(" as a single parameter or two parameters with the first representing the rule directory path '%[boot%]'", print.to.stream, print.set->notable, print.set->notable); - fl_print_format(" and the second representing the rule base name '%[root%]'.%r%r", print.to.stream, print.set->notable, print.set->notable, f_string_eol_s, f_string_eol_s); + fl_print_format(" A rule action allows for either the full rule path, such as '%[boot/root%]'", print.to, print.set->notable, print.set->notable); + fl_print_format(" as a single parameter or two parameters with the first representing the rule directory path '%[boot%]'", print.to, print.set->notable, print.set->notable); + fl_print_format(" and the second representing the rule base name '%[root%]'.%r%r", print.to, print.set->notable, print.set->notable, f_string_eol_s, f_string_eol_s); - fl_print_format(" The %[%r%r%] parameter is intended to be used for scripting and is of the form \"response [type] [action] [status]\".%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, control_long_return_s, print.set->notable, f_string_eol_s); - fl_print_format(" Be sure to use the %[%r%r%] parameter to suppress output when using this in scripting.%r", print.to.stream, print.set->notable, f_console_symbol_long_disable_s, f_console_standard_long_quiet_s, print.set->notable, f_string_eol_s); - fl_print_format(" No response is returned on program errors, especially those errors that prevent communicating to the controller.%r", print.to.stream, f_string_eol_s); + fl_print_format(" The %[%r%r%] parameter is intended to be used for scripting and is of the form \"response [type] [action] [status]\".%r", print.to, print.set->notable, f_console_symbol_long_enable_s, control_long_return_s, print.set->notable, f_string_eol_s); + fl_print_format(" Be sure to use the %[%r%r%] parameter to suppress output when using this in scripting.%r", print.to, print.set->notable, f_console_symbol_long_disable_s, f_console_standard_long_quiet_s, print.set->notable, f_string_eol_s); + fl_print_format(" No response is returned on program errors, especially those errors that prevent communicating to the controller.%r", print.to, f_string_eol_s); - f_print_dynamic_raw(setting->line_last, print.to.stream); + f_print_dynamic_raw(setting->line_last, print.to); f_file_stream_flush(print.to); f_file_stream_unlock(print.to); @@ -59,7 +59,7 @@ extern "C" { if (setting->flag & control_main_flag_file_to_e) return F_output_not; } - f_print_dynamic_raw(setting->line_first, print.to.stream); + f_print_dynamic_raw(setting->line_first, print.to); return F_none; } @@ -76,7 +76,7 @@ extern "C" { if (setting->flag & control_main_flag_file_to_e) return F_output_not; } - fll_print_dynamic_raw(setting->line_first, print.to.stream); + fll_print_dynamic_raw(setting->line_first, print.to); return F_none; } @@ -93,7 +93,7 @@ extern "C" { if (setting->flag & control_main_flag_file_to_e) return F_output_not; } - fll_print_dynamic_raw(setting->line_last, print.to.stream); + fll_print_dynamic_raw(setting->line_last, print.to); return F_none; } @@ -110,7 +110,7 @@ extern "C" { if (setting->flag & control_main_flag_file_to_e) return F_output_not; } - f_print_dynamic_raw(setting->line_last, print.to.stream); + f_print_dynamic_raw(setting->line_last, print.to); return F_none; } diff --git a/level_3/control/c/private-control.c b/level_3/control/c/private-control.c index 0385004..54878ba 100644 --- a/level_3/control/c/private-control.c +++ b/level_3/control/c/private-control.c @@ -574,7 +574,7 @@ extern "C" { } if (main->parameters.array[control_parameter_return_e].result == f_console_result_found_e) { - fll_print_format("%rresponse %q %q %q%r", main->output.to.stream, f_string_eol_s, control_payload_type_name(header->type), control_action_type_name(header->action), string_status, f_string_eol_s); + fll_print_format("%rresponse %q %q %q%r", main->output.to, f_string_eol_s, control_payload_type_name(header->type), control_action_type_name(header->action), string_status, f_string_eol_s); } else if (header->type == control_payload_type_error_e) { control_print_error_packet_response(main, data, *header, string_status); @@ -734,7 +734,7 @@ extern "C" { fll_error_file_print(main->error, F_status_set_fine(status), "f_file_exists", F_true, data->cache.small, f_file_operation_find_s, fll_error_file_type_directory_e); if (main->error.verbosity > f_console_verbosity_quiet_e) { - fll_print_dynamic_raw(f_string_eol_s, main->error.to.stream); + fll_print_dynamic_raw(f_string_eol_s, main->error.to); } } @@ -803,7 +803,7 @@ extern "C" { fll_error_file_print(main->error, F_status_set_fine(status), "f_file_exists", F_true, data->cache.small, f_file_operation_find_s, fll_error_file_type_directory_e); if (main->error.verbosity > f_console_verbosity_quiet_e) { - fll_print_dynamic_raw(f_string_eol_s, main->error.to.stream); + fll_print_dynamic_raw(f_string_eol_s, main->error.to); } } diff --git a/level_3/control/c/private-print.c b/level_3/control/c/private-print.c index 5ec604f..937d4f3 100644 --- a/level_3/control/c/private-print.c +++ b/level_3/control/c/private-print.c @@ -15,18 +15,18 @@ extern "C" { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe action '%]", main->error.to.stream, f_string_eol_s, main->context.set.error, main->error.prefix, main->context.set.error); - fl_print_format("%[%Q%]", main->error.to.stream, main->context.set.notable, control_action_type_name(header.action), main->context.set.notable); - fl_print_format("%[' failed with status '%]", main->error.to.stream, main->context.set.error, main->context.set.error); - fl_print_format("%[%Q%]", main->error.to.stream, main->context.set.notable, string_status, main->context.set.notable); - fl_print_format("%[' (%]", main->error.to.stream, main->context.set.error, main->context.set.error); - fl_print_format("%[%ui%]", main->error.to.stream, main->context.set.notable, header.status, main->context.set.notable); + fl_print_format("%r%[%QThe action '%]", main->error.to, f_string_eol_s, main->context.set.error, main->error.prefix, main->context.set.error); + fl_print_format("%[%Q%]", main->error.to, main->context.set.notable, control_action_type_name(header.action), main->context.set.notable); + fl_print_format("%[' failed with status '%]", main->error.to, main->context.set.error, main->context.set.error); + fl_print_format("%[%Q%]", main->error.to, main->context.set.notable, string_status, main->context.set.notable); + fl_print_format("%[' (%]", main->error.to, main->context.set.error, main->context.set.error); + fl_print_format("%[%ui%]", main->error.to, main->context.set.notable, header.status, main->context.set.notable); if (header.length) { - fl_print_format("%[): %/Q%]%r", main->error.to.stream, main->context.set.error, main->context.set.error, data->cache.large, data->cache.packet_contents.array[data->cache.packet_contents.used - 1].array[0], f_string_eol_s); + fl_print_format("%[): %/Q%]%r", main->error.to, main->context.set.error, main->context.set.error, data->cache.large, data->cache.packet_contents.array[data->cache.packet_contents.used - 1].array[0], f_string_eol_s); } else { - fl_print_format("%[).%]%r", main->error.to.stream, main->context.set.error, main->context.set.error, f_string_eol_s); + fl_print_format("%[).%]%r", main->error.to, main->context.set.error, main->context.set.error, f_string_eol_s); } f_file_stream_unlock(main->error.to); @@ -39,9 +39,9 @@ extern "C" { flockfile(main->warning.to.stream); - fl_print_format("%r%[%QThe action '%]", main->warning.to.stream, f_string_eol_s, main->context.set.warning, main->warning.prefix, main->context.set.warning); - fl_print_format("%[%q%]", main->warning.to.stream, main->context.set.notable, control_action_type_name(header.action), main->context.set.notable); - fl_print_format("%[' could not be performed because the service is busy.%]%r", main->warning.to.stream, main->context.set.warning, main->context.set.warning, f_string_eol_s); + fl_print_format("%r%[%QThe action '%]", main->warning.to, f_string_eol_s, main->context.set.warning, main->warning.prefix, main->context.set.warning); + fl_print_format("%[%q%]", main->warning.to, main->context.set.notable, control_action_type_name(header.action), main->context.set.notable); + fl_print_format("%[' could not be performed because the service is busy.%]%r", main->warning.to, main->context.set.warning, main->context.set.warning, f_string_eol_s); funlockfile(main->warning.to.stream); @@ -52,21 +52,21 @@ extern "C" { flockfile(main->output.to.stream); - fl_print_format("%rThe action '", main->output.to.stream, f_string_eol_s); - fl_print_format("%[%q%]", main->output.to.stream, main->context.set.notable, control_action_type_name(header.action), main->context.set.notable); + fl_print_format("%rThe action '", main->output.to, f_string_eol_s); + fl_print_format("%[%q%]", main->output.to, main->context.set.notable, control_action_type_name(header.action), main->context.set.notable); if (header.status == F_done) { - fl_print_format("' is performed", main->output.to.stream); + fl_print_format("' is performed", main->output.to); } else { - fl_print_format("' is successfully performed", main->output.to.stream); + fl_print_format("' is successfully performed", main->output.to); } if (header.length) { - fl_print_format(": %/Q%r", main->output.to.stream, data->cache.large, data->cache.packet_contents.array[data->cache.packet_contents.used - 1].array[0], f_string_eol_s); + fl_print_format(": %/Q%r", main->output.to, data->cache.large, data->cache.packet_contents.array[data->cache.packet_contents.used - 1].array[0], f_string_eol_s); } else { - fl_print_format(".%r", main->output.to.stream, f_string_eol_s); + fl_print_format(".%r", main->output.to, f_string_eol_s); } funlockfile(main->output.to.stream); @@ -80,8 +80,8 @@ extern "C" { flockfile(main->output.to.stream); - fl_print_format("%rPacket header Object '%[%Q%]", main->output.to.stream, f_string_eol_s, main->context.set.notable, object, main->context.set.notable); - fl_print_format("' has value '%[%/Q%]'.%r", main->output.to.stream, main->context.set.notable, content, content_range, main->context.set.notable, f_string_eol_s); + fl_print_format("%rPacket header Object '%[%Q%]", main->output.to, f_string_eol_s, main->context.set.notable, object, main->context.set.notable); + fl_print_format("' has value '%[%/Q%]'.%r", main->output.to, main->context.set.notable, content, content_range, main->context.set.notable, f_string_eol_s); funlockfile(main->output.to.stream); } @@ -94,22 +94,22 @@ extern "C" { flockfile(main->output.to.stream); - fl_print_format("%r%s", main->output.to.stream, f_string_eol_s, message, main->context.set.notable, main->context.set.notable); + fl_print_format("%r%s", main->output.to, f_string_eol_s, message, main->context.set.notable, main->context.set.notable); if (buffer) { if (range) { - fl_print_format("'%[%/Q%]'", main->output.to.stream, main->context.set.notable, *buffer, *range, main->context.set.notable); + fl_print_format("'%[%/Q%]'", main->output.to, main->context.set.notable, *buffer, *range, main->context.set.notable); } else { - fl_print_format("'%[%/Q%]'", main->output.to.stream, main->context.set.notable, *buffer, main->context.set.notable); + fl_print_format("'%[%/Q%]'", main->output.to, main->context.set.notable, *buffer, main->context.set.notable); } } if (status) { - fl_print_format(", with status code %[%ui%]'", main->output.to.stream, main->context.set.notable, *status, main->context.set.notable); + fl_print_format(", with status code %[%ui%]'", main->output.to, main->context.set.notable, *status, main->context.set.notable); } - fl_print_format(".%r", main->output.to.stream, f_string_eol_s); + fl_print_format(".%r", main->output.to, f_string_eol_s); funlockfile(main->output.to.stream); } @@ -122,18 +122,18 @@ extern "C" { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QReceived error response for " CONTROL_action_s " '%]", main->error.to.stream, f_string_eol_s, main->context.set.error, main->error.prefix, main->context.set.error); - fl_print_format("%[%q%]", main->error.to.stream, main->context.set.notable, control_action_type_name(header.action), main->context.set.notable); - fl_print_format("%[' with status '%]", main->error.to.stream, main->context.set.error, main->context.set.error); - fl_print_format("%[%Q%]", main->error.to.stream, main->context.set.notable, string_status, main->context.set.notable); - fl_print_format("%[' (%]", main->error.to.stream, main->context.set.error, main->context.set.error); - fl_print_format("%[%ui%]", main->error.to.stream, main->context.set.notable, header.status, main->context.set.notable); + fl_print_format("%r%[%QReceived error response for " CONTROL_action_s " '%]", main->error.to, f_string_eol_s, main->context.set.error, main->error.prefix, main->context.set.error); + fl_print_format("%[%q%]", main->error.to, main->context.set.notable, control_action_type_name(header.action), main->context.set.notable); + fl_print_format("%[' with status '%]", main->error.to, main->context.set.error, main->context.set.error); + fl_print_format("%[%Q%]", main->error.to, main->context.set.notable, string_status, main->context.set.notable); + fl_print_format("%[' (%]", main->error.to, main->context.set.error, main->context.set.error); + fl_print_format("%[%ui%]", main->error.to, main->context.set.notable, header.status, main->context.set.notable); if (header.length) { - fl_print_format("%[): %/Q%]%r", main->error.to.stream, main->context.set.error, main->context.set.error, data->cache.large, data->cache.packet_contents.array[data->cache.packet_contents.used - 1].array[0], f_string_eol_s); + fl_print_format("%[): %/Q%]%r", main->error.to, main->context.set.error, main->context.set.error, data->cache.large, data->cache.packet_contents.array[data->cache.packet_contents.used - 1].array[0], f_string_eol_s); } else { - fl_print_format("%[).%]%r", main->error.to.stream, main->context.set.error, main->context.set.error, f_string_eol_s); + fl_print_format("%[).%]%r", main->error.to, main->context.set.error, main->context.set.error, f_string_eol_s); } f_file_stream_unlock(main->error.to); @@ -145,7 +145,7 @@ extern "C" { if (main->error.verbosity == f_console_verbosity_quiet_e) return; - fll_print_format("%r%[%QNo actions provided.%]%r", main->error.to.stream, f_string_eol_s, main->context.set.error, main->error.prefix, main->context.set.error, f_string_eol_s); + fll_print_format("%r%[%QNo actions provided.%]%r", main->error.to, f_string_eol_s, main->context.set.error, main->error.prefix, main->context.set.error, f_string_eol_s); } #endif // _di_control_print_error_parameter_actions_none_ @@ -156,9 +156,9 @@ extern "C" { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe parameter '%]", main->error.to.stream, f_string_eol_s, main->context.set.error, main->error.prefix, main->context.set.error); - fl_print_format("%[%Q%]", main->error.to.stream, main->context.set.notable, action, main->context.set.notable); - fl_print_format("%[' is not a known controller action.%]%r", main->error.to.stream, main->context.set.error, main->context.set.error, f_string_eol_s); + fl_print_format("%r%[%QThe parameter '%]", main->error.to, f_string_eol_s, main->context.set.error, main->error.prefix, main->context.set.error); + fl_print_format("%[%Q%]", main->error.to, main->context.set.notable, action, main->context.set.notable); + fl_print_format("%[' is not a known controller action.%]%r", main->error.to, main->context.set.error, main->context.set.error, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -171,9 +171,9 @@ extern "C" { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe action parameter '%]", main->error.to.stream, f_string_eol_s, main->context.set.error, main->error.prefix, main->context.set.error); - fl_print_format("%[%Q%]", main->error.to.stream, main->context.set.notable, action, main->context.set.notable); - fl_print_format("%[' a rule base name cannot be an empty string.%]%r", main->error.to.stream, main->context.set.error, main->context.set.error, f_string_eol_s); + fl_print_format("%r%[%QThe action parameter '%]", main->error.to, f_string_eol_s, main->context.set.error, main->error.prefix, main->context.set.error); + fl_print_format("%[%Q%]", main->error.to, main->context.set.notable, action, main->context.set.notable); + fl_print_format("%[' a rule base name cannot be an empty string.%]%r", main->error.to, main->context.set.error, main->context.set.error, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -186,9 +186,9 @@ extern "C" { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe action parameter '%]", main->error.to.stream, f_string_eol_s, main->context.set.error, main->error.prefix, main->context.set.error); - fl_print_format("%[%Q%]", main->error.to.stream, main->context.set.notable, action, main->context.set.notable); - fl_print_format("%[' a rule directory path cannot be an empty string.%]%r", main->error.to.stream, main->context.set.error, main->context.set.error, f_string_eol_s); + fl_print_format("%r%[%QThe action parameter '%]", main->error.to, f_string_eol_s, main->context.set.error, main->error.prefix, main->context.set.error); + fl_print_format("%[%Q%]", main->error.to, main->context.set.notable, action, main->context.set.notable); + fl_print_format("%[' a rule directory path cannot be an empty string.%]%r", main->error.to, main->context.set.error, main->context.set.error, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -201,9 +201,9 @@ extern "C" { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe action parameter '%]", main->error.to.stream, f_string_eol_s, main->context.set.error, main->error.prefix, main->context.set.error); - fl_print_format("%[%Q%]", main->error.to.stream, main->context.set.notable, action, main->context.set.notable); - fl_print_format("%[' a rule name cannot be an empty string.%]%r", main->error.to.stream, main->context.set.error, main->context.set.error, f_string_eol_s); + fl_print_format("%r%[%QThe action parameter '%]", main->error.to, f_string_eol_s, main->context.set.error, main->error.prefix, main->context.set.error); + fl_print_format("%[%Q%]", main->error.to, main->context.set.notable, action, main->context.set.notable); + fl_print_format("%[' a rule name cannot be an empty string.%]%r", main->error.to, main->context.set.error, main->context.set.error, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -216,9 +216,9 @@ extern "C" { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe action parameter '%]", main->error.to.stream, f_string_eol_s, main->context.set.error, main->error.prefix, main->context.set.error); - fl_print_format("%[%Q%]", main->error.to.stream, main->context.set.notable, action, main->context.set.notable); - fl_print_format("%[' requires either a full rule name or a rule directory path along with the rule base name.%]%r", main->error.to.stream, main->context.set.error, main->context.set.error, f_string_eol_s); + fl_print_format("%r%[%QThe action parameter '%]", main->error.to, f_string_eol_s, main->context.set.error, main->error.prefix, main->context.set.error); + fl_print_format("%[%Q%]", main->error.to, main->context.set.notable, action, main->context.set.notable); + fl_print_format("%[' requires either a full rule name or a rule directory path along with the rule base name.%]%r", main->error.to, main->context.set.error, main->context.set.error, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -231,9 +231,9 @@ extern "C" { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe action parameter '%]", main->error.to.stream, f_string_eol_s, main->context.set.error, main->error.prefix, main->context.set.error); - fl_print_format("%[%Q%]", main->error.to.stream, main->context.set.notable, action, main->context.set.notable); - fl_print_format("%[' has too few arguments.%]%r", main->error.to.stream, main->context.set.error, main->context.set.error, f_string_eol_s); + fl_print_format("%r%[%QThe action parameter '%]", main->error.to, f_string_eol_s, main->context.set.error, main->error.prefix, main->context.set.error); + fl_print_format("%[%Q%]", main->error.to, main->context.set.notable, action, main->context.set.notable); + fl_print_format("%[' has too few arguments.%]%r", main->error.to, main->context.set.error, main->context.set.error, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -246,11 +246,11 @@ extern "C" { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe action parameter '%]", main->error.to.stream, f_string_eol_s, main->context.set.error, main->error.prefix, main->context.set.error); - fl_print_format("%[%Q%]", main->error.to.stream, main->context.set.notable, action, main->context.set.notable); - fl_print_format("%[' when used with '%]", main->error.to.stream, main->context.set.error, main->context.set.error, f_string_eol_s); - fl_print_format("%[%Q%]", main->error.to.stream, main->context.set.notable, with, main->context.set.notable); - fl_print_format("%[' has too few arguments.%]%r", main->error.to.stream, main->context.set.error, main->context.set.error, f_string_eol_s); + fl_print_format("%r%[%QThe action parameter '%]", main->error.to, f_string_eol_s, main->context.set.error, main->error.prefix, main->context.set.error); + fl_print_format("%[%Q%]", main->error.to, main->context.set.notable, action, main->context.set.notable); + fl_print_format("%[' when used with '%]", main->error.to, main->context.set.error, main->context.set.error, f_string_eol_s); + fl_print_format("%[%Q%]", main->error.to, main->context.set.notable, with, main->context.set.notable); + fl_print_format("%[' has too few arguments.%]%r", main->error.to, main->context.set.error, main->context.set.error, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -263,9 +263,9 @@ extern "C" { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe action parameter '%]", main->error.to.stream, f_string_eol_s, main->context.set.error, main->error.prefix, main->context.set.error); - fl_print_format("%[%Q%]", main->error.to.stream, main->context.set.notable, action, main->context.set.notable); - fl_print_format("%[' has too many arguments.%]%r", main->error.to.stream, main->context.set.error, main->context.set.error, f_string_eol_s); + fl_print_format("%r%[%QThe action parameter '%]", main->error.to, f_string_eol_s, main->context.set.error, main->error.prefix, main->context.set.error); + fl_print_format("%[%Q%]", main->error.to, main->context.set.notable, action, main->context.set.notable); + fl_print_format("%[' has too many arguments.%]%r", main->error.to, main->context.set.error, main->context.set.error, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -278,11 +278,11 @@ extern "C" { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe action parameter '%]", main->error.to.stream, f_string_eol_s, main->context.set.error, main->error.prefix, main->context.set.error); - fl_print_format("%[%Q%]", main->error.to.stream, main->context.set.notable, action, main->context.set.notable); - fl_print_format("%[' when used with '%]", main->error.to.stream, main->context.set.error, main->context.set.error, f_string_eol_s); - fl_print_format("%[%Q%]", main->error.to.stream, main->context.set.notable, with, main->context.set.notable); - fl_print_format("%[' has too many arguments.%]%r", main->error.to.stream, main->context.set.error, main->context.set.error, f_string_eol_s); + fl_print_format("%r%[%QThe action parameter '%]", main->error.to, f_string_eol_s, main->context.set.error, main->error.prefix, main->context.set.error); + fl_print_format("%[%Q%]", main->error.to, main->context.set.notable, action, main->context.set.notable); + fl_print_format("%[' when used with '%]", main->error.to, main->context.set.error, main->context.set.error, f_string_eol_s); + fl_print_format("%[%Q%]", main->error.to, main->context.set.notable, with, main->context.set.notable); + fl_print_format("%[' has too many arguments.%]%r", main->error.to, main->context.set.error, main->context.set.error, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -295,11 +295,11 @@ extern "C" { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe action parameter '%]", main->error.to.stream, f_string_eol_s, main->context.set.error, main->error.prefix, main->context.set.error); - fl_print_format("%[%Q%]", main->error.to.stream, main->context.set.notable, action, main->context.set.notable); - fl_print_format("%[' does not know the argument '%]", main->error.to.stream, main->context.set.error, main->context.set.error, f_string_eol_s); - fl_print_format("%[%Q%]", main->error.to.stream, main->context.set.notable, with, main->context.set.notable); - fl_print_format("%['.%]%r", main->error.to.stream, main->context.set.error, main->context.set.error, f_string_eol_s); + fl_print_format("%r%[%QThe action parameter '%]", main->error.to, f_string_eol_s, main->context.set.error, main->error.prefix, main->context.set.error); + fl_print_format("%[%Q%]", main->error.to, main->context.set.notable, action, main->context.set.notable); + fl_print_format("%[' does not know the argument '%]", main->error.to, main->context.set.error, main->context.set.error, f_string_eol_s); + fl_print_format("%[%Q%]", main->error.to, main->context.set.notable, with, main->context.set.notable); + fl_print_format("%['.%]%r", main->error.to, main->context.set.error, main->context.set.error, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -312,9 +312,9 @@ extern "C" { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe value for the parameter '%]", main->error.to.stream, f_string_eol_s, main->context.set.error, main->error.prefix, main->context.set.error); - fl_print_format("%[%r%r%]", main->error.to.stream, main->context.set.notable, f_console_symbol_long_enable_s, parameter, main->context.set.notable); - fl_print_format("%[' must not be an empty string.%]%r", main->error.to.stream, main->context.set.error, main->context.set.error, f_string_eol_s); + fl_print_format("%r%[%QThe value for the parameter '%]", main->error.to, f_string_eol_s, main->context.set.error, main->error.prefix, main->context.set.error); + fl_print_format("%[%r%r%]", main->error.to, main->context.set.notable, f_console_symbol_long_enable_s, parameter, main->context.set.notable); + fl_print_format("%[' must not be an empty string.%]%r", main->error.to, main->context.set.error, main->context.set.error, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -327,9 +327,9 @@ extern "C" { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe parameter '%]", main->error.to.stream, f_string_eol_s, main->context.set.error, main->error.prefix, main->context.set.error); - fl_print_format("%[%r%r%]", main->error.to.stream, main->context.set.notable, f_console_symbol_long_enable_s, parameter, main->context.set.notable); - fl_print_format("%[' is specified, but no value is given.%]%r", main->error.to.stream, main->context.set.error, main->context.set.error, f_string_eol_s); + fl_print_format("%r%[%QThe parameter '%]", main->error.to, f_string_eol_s, main->context.set.error, main->error.prefix, main->context.set.error); + fl_print_format("%[%r%r%]", main->error.to, main->context.set.notable, f_console_symbol_long_enable_s, parameter, main->context.set.notable); + fl_print_format("%[' is specified, but no value is given.%]%r", main->error.to, main->context.set.error, main->context.set.error, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -340,7 +340,7 @@ extern "C" { if (main->error.verbosity == f_console_verbosity_quiet_e) return; - fll_print_format("%r%[%QPipe input is not supported by this program.%]%r", main->error.to.stream, f_string_eol_s, main->context.set.error, main->error.prefix, main->context.set.error, f_string_eol_s); + fll_print_format("%r%[%QPipe input is not supported by this program.%]%r", main->error.to, f_string_eol_s, main->context.set.error, main->error.prefix, main->context.set.error, f_string_eol_s); } #endif // _di_control_print_error_pipe_supported_not_ @@ -349,7 +349,7 @@ extern "C" { if (main->error.verbosity == f_console_verbosity_quiet_e) return; - fll_print_format("%r%[%QThe received response is not a valid or supported packet.%]%r", main->error.to.stream, f_string_eol_s, main->context.set.error, main->error.prefix, main->context.set.error, f_string_eol_s); + fll_print_format("%r%[%QThe received response is not a valid or supported packet.%]%r", main->error.to, f_string_eol_s, main->context.set.error, main->error.prefix, main->context.set.error, f_string_eol_s); } #endif // _di_control_print_error_response_packet_valid_not_ @@ -358,7 +358,7 @@ extern "C" { if (main->error.verbosity == f_console_verbosity_quiet_e) return; - fll_print_format("%r%[%QThe generated packet is too large, cannot send packet.%]%r", main->error.to.stream, f_string_eol_s, main->context.set.error, main->error.prefix, main->context.set.error, f_string_eol_s); + fll_print_format("%r%[%QThe generated packet is too large, cannot send packet.%]%r", main->error.to, f_string_eol_s, main->context.set.error, main->error.prefix, main->context.set.error, f_string_eol_s); } #endif // _di_control_print_error_request_packet_too_large_ @@ -369,9 +369,9 @@ extern "C" { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QFailed to connect to the socket file '%]", main->error.to.stream, f_string_eol_s, main->context.set.error, main->error.prefix, main->context.set.error); - fl_print_format("%[%Q%]", main->error.to.stream, main->context.set.notable, path_socket, main->context.set.notable); - fl_print_format("%['.%]%r", main->error.to.stream, main->context.set.error, main->context.set.error, f_string_eol_s); + fl_print_format("%r%[%QFailed to connect to the socket file '%]", main->error.to, f_string_eol_s, main->context.set.error, main->error.prefix, main->context.set.error); + fl_print_format("%[%Q%]", main->error.to, main->context.set.notable, path_socket, main->context.set.notable); + fl_print_format("%['.%]%r", main->error.to, main->context.set.error, main->context.set.error, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -384,9 +384,9 @@ extern "C" { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe controller socket file '%]", main->error.to.stream, f_string_eol_s, main->context.set.error, main->error.prefix, main->context.set.error); - fl_print_format("%[%Q%]", main->error.to.stream, main->context.set.notable, path_socket, main->context.set.notable); - fl_print_format("%[' could not be found and is required.%]%r", main->error.to.stream, main->context.set.error, main->context.set.error, f_string_eol_s); + fl_print_format("%r%[%QThe controller socket file '%]", main->error.to, f_string_eol_s, main->context.set.error, main->error.prefix, main->context.set.error); + fl_print_format("%[%Q%]", main->error.to, main->context.set.notable, path_socket, main->context.set.notable); + fl_print_format("%[' could not be found and is required.%]%r", main->error.to, main->context.set.error, main->context.set.error, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -399,9 +399,9 @@ extern "C" { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe controller socket file '%]", main->error.to.stream, f_string_eol_s, main->context.set.error, main->error.prefix, main->context.set.error); - fl_print_format("%[%Q%]", main->error.to.stream, main->context.set.notable, path_socket, main->context.set.notable); - fl_print_format("%[' is not a socket file.%]%r", main->error.to.stream, main->context.set.error, main->context.set.error, f_string_eol_s); + fl_print_format("%r%[%QThe controller socket file '%]", main->error.to, f_string_eol_s, main->context.set.error, main->error.prefix, main->context.set.error); + fl_print_format("%[%Q%]", main->error.to, main->context.set.notable, path_socket, main->context.set.notable); + fl_print_format("%[' is not a socket file.%]%r", main->error.to, main->context.set.error, main->context.set.error, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -414,9 +414,9 @@ extern "C" { flockfile(main->warning.to.stream); - fl_print_format("%r%[%QThe received response header '%]", main->warning.to.stream, f_string_eol_s, main->context.set.warning, main->warning.prefix, main->context.set.warning); - fl_print_format("%[%Q%]", main->warning.to.stream, main->context.set.notable, response_header, main->context.set.notable); - fl_print_format("%[' is repeated.%]%r", main->warning.to.stream, main->context.set.warning, main->context.set.warning, f_string_eol_s); + fl_print_format("%r%[%QThe received response header '%]", main->warning.to, f_string_eol_s, main->context.set.warning, main->warning.prefix, main->context.set.warning); + fl_print_format("%[%Q%]", main->warning.to, main->context.set.notable, response_header, main->context.set.notable); + fl_print_format("%[' is repeated.%]%r", main->warning.to, main->context.set.warning, main->context.set.warning, f_string_eol_s); funlockfile(main->warning.to.stream); } @@ -429,11 +429,11 @@ extern "C" { flockfile(main->warning.to.stream); - fl_print_format("%r%[%QFailed while calling f_status_string_to() for status%] ", main->output.to.stream, f_string_eol_s, main->context.set.warning, main->context.set.warning, main->context.set.warning); - fl_print_format("%[%ui%]", main->output.to.stream, main->context.set.notable, status_of, main->context.set.notable); - fl_print_format("%[, failing with status code%] ", main->output.to.stream, main->context.set.warning, status_error, main->context.set.warning); - fl_print_format("%[%ui%]", main->output.to.stream, main->context.set.notable, status_error, main->context.set.notable); - fl_print_format("%[.%]%r", main->output.to.stream, main->context.set.warning, main->context.set.warning, f_string_eol_s); + fl_print_format("%r%[%QFailed while calling f_status_string_to() for status%] ", main->output.to, f_string_eol_s, main->context.set.warning, main->context.set.warning, main->context.set.warning); + fl_print_format("%[%ui%]", main->output.to, main->context.set.notable, status_of, main->context.set.notable); + fl_print_format("%[, failing with status code%] ", main->output.to, main->context.set.warning, status_error, main->context.set.warning); + fl_print_format("%[%ui%]", main->output.to, main->context.set.notable, status_error, main->context.set.notable); + fl_print_format("%[.%]%r", main->output.to, main->context.set.warning, main->context.set.warning, f_string_eol_s); funlockfile(main->warning.to.stream); } diff --git a/level_3/controller/c/controller.c b/level_3/controller/c/controller.c index 5342cbd..5f6f70f 100644 --- a/level_3/controller/c/controller.c +++ b/level_3/controller/c/controller.c @@ -120,9 +120,9 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { controller_lock_print(main->error.to, 0); - fl_print_format("%r%[%QThe parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->context.set.notable, f_console_symbol_long_enable_s, controller_long_settings_s, main->context.set.notable); - fl_print_format("%[' is specified, but no value is given.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->context.set.notable, f_console_symbol_long_enable_s, controller_long_settings_s, main->context.set.notable); + fl_print_format("%[' is specified, but no value is given.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); controller_unlock_print_flush(main->error.to, 0); } @@ -159,9 +159,9 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { controller_lock_print(main->error.to, 0); - fl_print_format("%r%[%QThe parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->context.set.notable, f_console_symbol_long_enable_s, controller_long_pid_s, main->context.set.notable); - fl_print_format("%[' is specified, but no value is given.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->context.set.notable, f_console_symbol_long_enable_s, controller_long_pid_s, main->context.set.notable); + fl_print_format("%[' is specified, but no value is given.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); controller_unlock_print_flush(main->error.to, 0); } @@ -217,9 +217,9 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { controller_lock_print(main->error.to, 0); - fl_print_format("%r%[%QThe parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->context.set.notable, f_console_symbol_long_enable_s, controller_long_cgroup_s, main->context.set.notable); - fl_print_format("%[' is specified, but no value is given.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->context.set.notable, f_console_symbol_long_enable_s, controller_long_cgroup_s, main->context.set.notable); + fl_print_format("%[' is specified, but no value is given.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); controller_unlock_print_flush(main->error.to, 0); } @@ -247,9 +247,9 @@ extern "C" { if (main->warning.verbosity == f_console_verbosity_debug_e) { controller_lock_print(main->warning.to, 0); - fl_print_format("%r%[%QThe parameter '%]", main->warning.to.stream, f_string_eol_s, main->warning.context, main->warning.prefix, main->warning.context); - fl_print_format("%[%r%r%]", main->warning.to.stream, main->context.set.notable, f_console_symbol_long_enable_s, controller_long_cgroup_s, main->context.set.notable); - fl_print_format("%[' must be a file directory path but instead is an empty string, falling back to the default.%]%r", main->warning.to.stream, main->warning.context, main->warning.context, f_string_eol_s); + fl_print_format("%r%[%QThe parameter '%]", main->warning.to, f_string_eol_s, main->warning.context, main->warning.prefix, main->warning.context); + fl_print_format("%[%r%r%]", main->warning.to, main->context.set.notable, f_console_symbol_long_enable_s, controller_long_cgroup_s, main->context.set.notable); + fl_print_format("%[' must be a file directory path but instead is an empty string, falling back to the default.%]%r", main->warning.to, main->warning.context, main->warning.context, f_string_eol_s); controller_unlock_print_flush(main->warning.to, 0); } @@ -262,10 +262,10 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { controller_lock_print(main->error.to, 0); - fl_print_format("%r%[%QThe parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[' must not be specified with the parameter '%]", main->error.to.stream, main->error.context, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->context.set.notable, f_console_symbol_long_enable_s, controller_long_daemon_s, main->context.set.notable); - fl_print_format("%['.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[' must not be specified with the parameter '%]", main->error.to, main->error.context, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->context.set.notable, f_console_symbol_long_enable_s, controller_long_daemon_s, main->context.set.notable); + fl_print_format("%['.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); controller_unlock_print_flush(main->error.to, 0); } @@ -343,7 +343,7 @@ extern "C" { f_file_stream_flush(main->output.to); } - fll_print_dynamic_raw(f_string_eol_s, main->output.to.stream); + fll_print_dynamic_raw(f_string_eol_s, main->output.to); } if (status != F_child && (setting.flag & controller_setting_flag_pid_created_e)) { @@ -353,11 +353,11 @@ extern "C" { if (F_status_set_fine(status_delete) == F_number_not) { controller_lock_print(main->warning.to, 0); - fl_print_format("%r%[%QThe pid file '%]", main->warning.to.stream, f_string_eol_s, main->warning.context, main->warning.prefix, main->warning.context); - fl_print_format("%[%Q%]", main->warning.to.stream, main->warning.notable, setting.path_pid, main->warning.notable); - fl_print_format("%[' must not be specified with the parameter '%]", main->warning.to.stream, main->warning.context, main->warning.context); - fl_print_format("%[%i%]", main->warning.to.stream, main->warning.notable, main->pid, main->warning.notable); - fl_print_format("%[' doesn't contain the expected number, not deleting file.%]%r", main->warning.to.stream, main->warning.context, main->warning.context, f_string_eol_s); + fl_print_format("%r%[%QThe pid file '%]", main->warning.to, f_string_eol_s, main->warning.context, main->warning.prefix, main->warning.context); + fl_print_format("%[%Q%]", main->warning.to, main->warning.notable, setting.path_pid, main->warning.notable); + fl_print_format("%[' must not be specified with the parameter '%]", main->warning.to, main->warning.context, main->warning.context); + fl_print_format("%[%i%]", main->warning.to, main->warning.notable, main->pid, main->warning.notable); + fl_print_format("%[' doesn't contain the expected number, not deleting file.%]%r", main->warning.to, main->warning.context, main->warning.context, f_string_eol_s); controller_unlock_print_flush(main->warning.to, 0); } diff --git a/level_3/controller/c/controller/private-controller.c b/level_3/controller/c/controller/private-controller.c index ac4568d..d284149 100644 --- a/level_3/controller/c/controller/private-controller.c +++ b/level_3/controller/c/controller/private-controller.c @@ -175,7 +175,7 @@ extern "C" { status = f_file_stream_open(path, f_file_open_mode_truncate_s, &file); if (F_status_is_error(status)) return status; - fll_print_format("%i%r", file.stream, pid, f_string_eol_s); + fll_print_format("%i%r", file, pid, f_string_eol_s); f_file_stream_flush(file); f_file_stream_close(&file); @@ -409,13 +409,13 @@ extern "C" { if (global->main->parameters.array[controller_parameter_simulate_e].result == f_console_result_found_e && global->main->output.verbosity == f_console_verbosity_debug_e) { controller_lock_print(global->main->output.to, global->thread); - fl_print_format("%rPID file '", global->main->output.to.stream, f_string_eol_s); - fl_print_format("%[%Q%]'.%r", global->main->output.to.stream, global->main->context.set.notable, global->setting->path_pid, global->main->context.set.notable, f_string_eol_s); + fl_print_format("%rPID file '", global->main->output.to, f_string_eol_s); + fl_print_format("%[%Q%]'.%r", global->main->output.to, global->main->context.set.notable, global->setting->path_pid, global->main->context.set.notable, f_string_eol_s); if (global->setting->path_control.used) { - fl_print_format("%rControl socket '", global->main->output.to.stream, f_string_eol_s); - fl_print_format("%[%Q%]", global->main->output.to.stream, global->main->context.set.notable, global->setting->path_control, global->main->context.set.notable); - fl_print_format("'.%r", global->main->output.to.stream, f_string_eol_s); + fl_print_format("%rControl socket '", global->main->output.to, f_string_eol_s); + fl_print_format("%[%Q%]", global->main->output.to, global->main->context.set.notable, global->setting->path_control, global->main->context.set.notable); + fl_print_format("'.%r", global->main->output.to, f_string_eol_s); } controller_unlock_print_flush(global->main->output.to, global->thread); @@ -439,7 +439,7 @@ extern "C" { controller_print_error_file(0, global->main->error, F_status_set_fine(status), "controller_file_pid_create", F_true, global->setting->path_pid, f_file_operation_create_s, fll_error_file_type_file_e); - flockfile(global->main->error.to.stream); + flockfile(global->main->error.to); controller_entry_print_error_cache(is_entry, global->main->error, cache->action); @@ -453,9 +453,9 @@ extern "C" { controller_lock_print(global->main->warning.to, global->thread); if (F_status_set_fine(status) == F_read_only) { - fl_print_format("%r%[%QThe pid file '%]", global->main->warning.to.stream, f_string_eol_s, global->main->warning.context, global->main->warning.prefix, global->main->warning.context); - fl_print_format("%[%Q%]", global->main->warning.to.stream, global->main->warning.notable, global->setting->path_pid, global->main->warning.notable); - fl_print_format("%[' could not be written because the destination is read only.%]%r", global->main->warning.to.stream, global->main->warning.context, global->main->warning.context, f_string_eol_s); + fl_print_format("%r%[%QThe pid file '%]", global->main->warning.to, f_string_eol_s, global->main->warning.context, global->main->warning.prefix, global->main->warning.context); + fl_print_format("%[%Q%]", global->main->warning.to, global->main->warning.notable, global->setting->path_pid, global->main->warning.notable); + fl_print_format("%[' could not be written because the destination is read only.%]%r", global->main->warning.to, global->main->warning.context, global->main->warning.context, f_string_eol_s); } else { controller_print_error_file(0, global->main->warning, F_status_set_fine(status), "controller_file_pid_create", F_true, global->setting->path_pid, f_file_operation_create_s, fll_error_file_type_file_e); @@ -474,8 +474,8 @@ extern "C" { if (global->main->output.verbosity == f_console_verbosity_debug_e) { controller_lock_print(global->main->output.to, global->thread); - fl_print_format("%rPID file '", global->main->output.to.stream, f_string_eol_s); - fl_print_format("%[%Q%]' created.%r", global->main->output.to.stream, global->main->context.set.notable, global->setting->path_pid, global->main->context.set.notable, f_string_eol_s); + fl_print_format("%rPID file '", global->main->output.to, f_string_eol_s); + fl_print_format("%[%Q%]' created.%r", global->main->output.to, global->main->context.set.notable, global->setting->path_pid, global->main->context.set.notable, f_string_eol_s); controller_unlock_print_flush(global->main->output.to, global->thread); } @@ -506,10 +506,10 @@ extern "C" { if (global->main->output.verbosity == f_console_verbosity_debug_e) { controller_lock_print(global->main->output.to, global->thread); - fl_print_format("%r%[%QControl socket '%]", global->main->warning.to.stream, f_string_eol_s, global->main->warning.context, global->main->warning.prefix, global->main->warning.context); - fl_print_format("%[%Q%]", global->main->output.to.stream, global->main->context.set.notable, global->setting->path_control, global->main->context.set.notable); - fl_print_format("' .%r", global->main->output.to.stream, f_string_eol_s); - fl_print_format("%[' cannot be found while read only mode is enabled and so the Control socket is unavailable.%]%r", global->main->output.to.stream, global->main->warning.context, global->main->warning.context, f_string_eol_s); + fl_print_format("%r%[%QControl socket '%]", global->main->warning.to, f_string_eol_s, global->main->warning.context, global->main->warning.prefix, global->main->warning.context); + fl_print_format("%[%Q%]", global->main->output.to, global->main->context.set.notable, global->setting->path_control, global->main->context.set.notable); + fl_print_format("' .%r", global->main->output.to, f_string_eol_s); + fl_print_format("%[' cannot be found while read only mode is enabled and so the Control socket is unavailable.%]%r", global->main->output.to, global->main->warning.context, global->main->warning.context, f_string_eol_s); controller_unlock_print_flush(global->main->output.to, global->thread); } @@ -527,11 +527,11 @@ extern "C" { else if (global->main->output.verbosity == f_console_verbosity_debug_e) { controller_lock_print(global->main->output.to, global->thread); - fl_print_format("%r%[%QControl socket '%]", global->main->warning.to.stream, f_string_eol_s, global->main->warning.context, global->main->warning.prefix, global->main->warning.context); - fl_print_format("%[%Q%]", global->main->output.to.stream, global->main->context.set.notable, global->setting->path_control, global->main->context.set.notable); - fl_print_format("%[' could not be created, code %]", global->main->output.to.stream, global->main->warning.context, global->main->warning.context); - fl_print_format("%[%ui%]", global->main->output.to.stream, global->main->context.set.notable, F_status_set_fine(status), global->main->context.set.notable); - fl_print_format("%[.%]%r", global->main->output.to.stream, global->main->warning.context, global->main->warning.context, f_string_eol_s); + fl_print_format("%r%[%QControl socket '%]", global->main->warning.to, f_string_eol_s, global->main->warning.context, global->main->warning.prefix, global->main->warning.context); + fl_print_format("%[%Q%]", global->main->output.to, global->main->context.set.notable, global->setting->path_control, global->main->context.set.notable); + fl_print_format("%[' could not be created, code %]", global->main->output.to, global->main->warning.context, global->main->warning.context); + fl_print_format("%[%ui%]", global->main->output.to, global->main->context.set.notable, F_status_set_fine(status), global->main->context.set.notable); + fl_print_format("%[.%]%r", global->main->output.to, global->main->warning.context, global->main->warning.context, f_string_eol_s); controller_unlock_print_flush(global->main->output.to, global->thread); } @@ -566,11 +566,11 @@ extern "C" { else if (global->main->output.verbosity == f_console_verbosity_debug_e) { controller_lock_print(global->main->output.to, global->thread); - fl_print_format("%r%[%QControl socket '%]", global->main->warning.to.stream, f_string_eol_s, global->main->warning.context, global->main->warning.prefix, global->main->warning.context); - fl_print_format("%[%Q%]", global->main->output.to.stream, global->main->context.set.notable, global->setting->path_control, global->main->context.set.notable); - fl_print_format("%[' could not be bound, code %]", global->main->output.to.stream, global->main->warning.context, global->main->warning.context); - fl_print_format("%[%ui%]", global->main->output.to.stream, global->main->context.set.notable, F_status_set_fine(status), global->main->context.set.notable); - fl_print_format("%[.%]%r", global->main->output.to.stream, global->main->warning.context, global->main->warning.context, f_string_eol_s); + fl_print_format("%r%[%QControl socket '%]", global->main->warning.to, f_string_eol_s, global->main->warning.context, global->main->warning.prefix, global->main->warning.context); + fl_print_format("%[%Q%]", global->main->output.to, global->main->context.set.notable, global->setting->path_control, global->main->context.set.notable); + fl_print_format("%[' could not be bound, code %]", global->main->output.to, global->main->warning.context, global->main->warning.context); + fl_print_format("%[%ui%]", global->main->output.to, global->main->context.set.notable, F_status_set_fine(status), global->main->context.set.notable); + fl_print_format("%[.%]%r", global->main->output.to, global->main->warning.context, global->main->warning.context, f_string_eol_s); controller_unlock_print_flush(global->main->output.to, global->thread); } @@ -594,11 +594,11 @@ extern "C" { else if (global->main->output.verbosity == f_console_verbosity_debug_e) { controller_lock_print(global->main->output.to, global->thread); - fl_print_format("%r%[%QControl socket '%]", global->main->warning.to.stream, f_string_eol_s, global->main->warning.context, global->main->warning.prefix, global->main->warning.context); - fl_print_format("%[%Q%]", global->main->output.to.stream, global->main->context.set.notable, global->setting->path_control, global->main->context.set.notable); - fl_print_format("%[' failed to set file roles, code %]", global->main->output.to.stream, global->main->warning.context, global->main->warning.context); - fl_print_format("%[%ui%]", global->main->output.to.stream, global->main->context.set.notable, F_status_set_fine(status), global->main->context.set.notable); - fl_print_format("%[.%]%r", global->main->output.to.stream, global->main->warning.context, global->main->warning.context, f_string_eol_s); + fl_print_format("%r%[%QControl socket '%]", global->main->warning.to, f_string_eol_s, global->main->warning.context, global->main->warning.prefix, global->main->warning.context); + fl_print_format("%[%Q%]", global->main->output.to, global->main->context.set.notable, global->setting->path_control, global->main->context.set.notable); + fl_print_format("%[' failed to set file roles, code %]", global->main->output.to, global->main->warning.context, global->main->warning.context); + fl_print_format("%[%ui%]", global->main->output.to, global->main->context.set.notable, F_status_set_fine(status), global->main->context.set.notable); + fl_print_format("%[.%]%r", global->main->output.to, global->main->warning.context, global->main->warning.context, f_string_eol_s); controller_unlock_print_flush(global->main->output.to, global->thread); } @@ -623,11 +623,11 @@ extern "C" { else if (global->main->output.verbosity == f_console_verbosity_debug_e) { controller_lock_print(global->main->output.to, global->thread); - fl_print_format("%r%[%QControl socket '%]", global->main->warning.to.stream, f_string_eol_s, global->main->warning.context, global->main->warning.prefix, global->main->warning.context); - fl_print_format("%[%Q%]", global->main->output.to.stream, global->main->context.set.notable, global->setting->path_control, global->main->context.set.notable); - fl_print_format("%[' failed to set file mode, code %]", global->main->output.to.stream, global->main->warning.context, global->main->warning.context); - fl_print_format("%[%ui%]", global->main->output.to.stream, global->main->context.set.notable, F_status_set_fine(status), global->main->context.set.notable); - fl_print_format("%[.%]%r", global->main->output.to.stream, global->main->warning.context, global->main->warning.context, f_string_eol_s); + fl_print_format("%r%[%QControl socket '%]", global->main->warning.to, f_string_eol_s, global->main->warning.context, global->main->warning.prefix, global->main->warning.context); + fl_print_format("%[%Q%]", global->main->output.to, global->main->context.set.notable, global->setting->path_control, global->main->context.set.notable); + fl_print_format("%[' failed to set file mode, code %]", global->main->output.to, global->main->warning.context, global->main->warning.context); + fl_print_format("%[%ui%]", global->main->output.to, global->main->context.set.notable, F_status_set_fine(status), global->main->context.set.notable); + fl_print_format("%[.%]%r", global->main->output.to, global->main->warning.context, global->main->warning.context, f_string_eol_s); controller_unlock_print_flush(global->main->output.to, global->thread); } @@ -639,9 +639,9 @@ extern "C" { if (global->main->output.verbosity == f_console_verbosity_debug_e) { controller_lock_print(global->main->output.to, global->thread); - fl_print_format("%rControl socket '", global->main->output.to.stream, f_string_eol_s); - fl_print_format("%[%Q%]", global->main->output.to.stream, global->main->context.set.notable, global->setting->path_control, global->main->context.set.notable); - fl_print_format("' created.%r", global->main->output.to.stream, f_string_eol_s); + fl_print_format("%rControl socket '", global->main->output.to, f_string_eol_s); + fl_print_format("%[%Q%]", global->main->output.to, global->main->context.set.notable, global->setting->path_control, global->main->context.set.notable); + fl_print_format("' created.%r", global->main->output.to, f_string_eol_s); controller_unlock_print_flush(global->main->output.to, global->thread); } diff --git a/level_3/controller/c/entry/private-entry.c b/level_3/controller/c/entry/private-entry.c index 5de673e..4e6992e 100644 --- a/level_3/controller/c/entry/private-entry.c +++ b/level_3/controller/c/entry/private-entry.c @@ -216,9 +216,9 @@ extern "C" { if (global.main->warning.verbosity == f_console_verbosity_debug_e) { controller_lock_print(global.main->warning.to, global.thread); - fl_print_format("%r%[%QUnknown %r item action '%]", global.main->warning.to.stream, f_string_eol_s, global.main->warning.context, global.main->warning.prefix, is_entry ? controller_entry_s : controller_exit_s, global.main->warning.context); - fl_print_format("%[%Q%]", global.main->warning.to.stream, global.main->warning.notable, cache->action.name_action, global.main->warning.notable); - fl_print_format("%['.%]%r", global.main->warning.to.stream, global.main->warning.context, global.main->warning.context, f_string_eol_s); + fl_print_format("%r%[%QUnknown %r item action '%]", global.main->warning.to, f_string_eol_s, global.main->warning.context, global.main->warning.prefix, is_entry ? controller_entry_s : controller_exit_s, global.main->warning.context); + fl_print_format("%[%Q%]", global.main->warning.to, global.main->warning.notable, cache->action.name_action, global.main->warning.notable); + fl_print_format("%['.%]%r", global.main->warning.to, global.main->warning.context, global.main->warning.context, f_string_eol_s); controller_entry_print_error_cache(is_entry, global.main->warning, cache->action); @@ -260,33 +260,33 @@ extern "C" { if (global.main->error.verbosity > f_console_verbosity_quiet_e) { f_thread_mutex_lock(&global.thread->lock.print); - flockfile(global.main->error.to.stream); + flockfile(global.main->error.to); - fl_print_format("%r%[%QThe %r item action '%]", global.main->error.to.stream, f_string_eol_s, global.main->error.context, global.main->error.prefix, is_entry ? controller_entry_s : controller_exit_s, global.main->error.context); - fl_print_format("%[%Q%]", global.main->error.to.stream, global.main->error.notable, cache->action.name_action, global.main->error.notable); - fl_print_format("%[' requires ", global.main->error.to.stream, global.main->error.context); + fl_print_format("%r%[%QThe %r item action '%]", global.main->error.to, f_string_eol_s, global.main->error.context, global.main->error.prefix, is_entry ? controller_entry_s : controller_exit_s, global.main->error.context); + fl_print_format("%[%Q%]", global.main->error.to, global.main->error.notable, cache->action.name_action, global.main->error.notable); + fl_print_format("%[' requires ", global.main->error.to, global.main->error.context); if (at_least == at_most) { - f_print_terminated("exactly ", global.main->error.to.stream); + f_print_terminated("exactly ", global.main->error.to); } - fl_print_format("%]%[%un%]", global.main->error.to.stream, global.main->error.context, global.main->error.notable, at_least, global.main->error.notable); + fl_print_format("%]%[%un%]", global.main->error.to, global.main->error.context, global.main->error.notable, at_least, global.main->error.notable); if (action->type == controller_entry_action_type_consider_e || controller_entry_action_type_is_rule(action->type)) { - fl_print_format("%[ or more parameters.%]%r", global.main->error.to.stream, global.main->error.context, global.main->error.context, f_string_eol_s); + fl_print_format("%[ or more parameters.%]%r", global.main->error.to, global.main->error.context, global.main->error.context, f_string_eol_s); } else { if (at_least == at_most) { - fl_print_format("%[ parameters.%]%r", global.main->error.to.stream, global.main->error.context, global.main->error.context, f_string_eol_s); + fl_print_format("%[ parameters.%]%r", global.main->error.to, global.main->error.context, global.main->error.context, f_string_eol_s); } else { - fl_print_format("%[ to %]", global.main->error.to.stream, global.main->error.context, global.main->error.context); - fl_print_format("%[%un%]", global.main->error.to.stream, global.main->error.notable, at_most, global.main->error.notable); - fl_print_format("%[ parameters.%]%r", global.main->error.to.stream, global.main->error.context, global.main->error.context, f_string_eol_s); + fl_print_format("%[ to %]", global.main->error.to, global.main->error.context, global.main->error.context); + fl_print_format("%[%un%]", global.main->error.to, global.main->error.notable, at_most, global.main->error.notable); + fl_print_format("%[ parameters.%]%r", global.main->error.to, global.main->error.context, global.main->error.context, f_string_eol_s); } } - funlockfile(global.main->error.to.stream); + funlockfile(global.main->error.to); f_thread_mutex_unlock(&global.thread->lock.print); } @@ -374,7 +374,7 @@ extern "C" { } if (global.main->error.verbosity > f_console_verbosity_quiet_e) { - fll_print_format("%r%[%QThe %r item action must not have an empty string for a path (the first parameter).%]%r", global.main->error.to.stream, f_string_eol_s, global.main->error.context, global.main->error.prefix, is_entry ? controller_entry_s : controller_exit_s, global.main->error.context, f_string_eol_s); + fll_print_format("%r%[%QThe %r item action must not have an empty string for a path (the first parameter).%]%r", global.main->error.to, f_string_eol_s, global.main->error.context, global.main->error.prefix, is_entry ? controller_entry_s : controller_exit_s, global.main->error.context, f_string_eol_s); } } @@ -401,15 +401,15 @@ extern "C" { else { if (fl_string_dynamic_compare(action->parameters.array[1], cache->buffer_path) == F_equal_to_not) { if (global.main->error.verbosity > f_console_verbosity_quiet_e) { - flockfile(global.main->error.to.stream); + flockfile(global.main->error.to); - fl_print_format("%r%[%QThe %r item action second parameter '%]", global.main->error.to.stream, f_string_eol_s, global.main->error.context, global.main->error.prefix, is_entry ? controller_entry_s : controller_exit_s, global.main->error.context); - fl_print_format("%[%Q%]", global.main->error.to.stream, global.main->error.notable, action->parameters.array[1], global.main->error.notable); - fl_print_format("%[' must be a base path name, such as '%]", global.main->error.to.stream, global.main->error.context, global.main->error.context); - fl_print_format("%[%Q%]", global.main->error.to.stream, global.main->error.notable, cache->buffer_path, global.main->error.notable); - fl_print_format("%['.%]", global.main->error.to.stream, global.main->error.context, global.main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe %r item action second parameter '%]", global.main->error.to, f_string_eol_s, global.main->error.context, global.main->error.prefix, is_entry ? controller_entry_s : controller_exit_s, global.main->error.context); + fl_print_format("%[%Q%]", global.main->error.to, global.main->error.notable, action->parameters.array[1], global.main->error.notable); + fl_print_format("%[' must be a base path name, such as '%]", global.main->error.to, global.main->error.context, global.main->error.context); + fl_print_format("%[%Q%]", global.main->error.to, global.main->error.notable, cache->buffer_path, global.main->error.notable); + fl_print_format("%['.%]", global.main->error.to, global.main->error.context, global.main->error.context, f_string_eol_s); - funlockfile(global.main->error.to.stream); + funlockfile(global.main->error.to); } action->status = F_status_set_error(F_parameter); @@ -428,7 +428,7 @@ extern "C" { } if (global.main->error.verbosity > f_console_verbosity_quiet_e) { - fll_print_format("%r%[%QThe %r item action must not have an empty string for a rule name (the second parameter).%]", global.main->error.to.stream, f_string_eol_s, global.main->error.context, global.main->error.prefix, is_entry ? controller_entry_s : controller_exit_s, global.main->error.context, f_string_eol_s); + fll_print_format("%r%[%QThe %r item action must not have an empty string for a rule name (the second parameter).%]", global.main->error.to, f_string_eol_s, global.main->error.context, global.main->error.prefix, is_entry ? controller_entry_s : controller_exit_s, global.main->error.context, f_string_eol_s); } } @@ -453,19 +453,19 @@ extern "C" { } if (global.main->error.verbosity > f_console_verbosity_quiet_e) { - flockfile(global.main->error.to.stream); - - fl_print_format("%r%[%QThe %r item action third parameter (and beyond) must be one of '%]", global.main->error.to.stream, f_string_eol_s, global.main->error.context, global.main->error.prefix, is_entry ? controller_entry_s : controller_exit_s, global.main->error.context); - fl_print_format("%[%r%]", global.main->error.to.stream, global.main->error.notable, controller_asynchronous_s, global.main->error.notable); - fl_print_format("%[', '%]", global.main->error.to.stream, global.main->error.context, global.main->error.context); - fl_print_format("%[%r%]", global.main->error.to.stream, global.main->error.notable, controller_require_s, global.main->error.notable); - fl_print_format("%[', or '%]", global.main->error.to.stream, global.main->error.context, global.main->error.context); - fl_print_format("%[%r%]", global.main->error.to.stream, global.main->error.notable, controller_wait_s, global.main->error.notable); - fl_print_format("%[' but instead has '%]", global.main->error.to.stream, global.main->error.context, global.main->error.context); - fl_print_format("%[%Q%]", global.main->error.to.stream, global.main->error.notable, action->parameters.array[j], global.main->error.notable); - fl_print_format("%['.%]", global.main->error.to.stream, global.main->error.context, global.main->error.context, f_string_eol_s); - - funlockfile(global.main->error.to.stream); + flockfile(global.main->error.to); + + fl_print_format("%r%[%QThe %r item action third parameter (and beyond) must be one of '%]", global.main->error.to, f_string_eol_s, global.main->error.context, global.main->error.prefix, is_entry ? controller_entry_s : controller_exit_s, global.main->error.context); + fl_print_format("%[%r%]", global.main->error.to, global.main->error.notable, controller_asynchronous_s, global.main->error.notable); + fl_print_format("%[', '%]", global.main->error.to, global.main->error.context, global.main->error.context); + fl_print_format("%[%r%]", global.main->error.to, global.main->error.notable, controller_require_s, global.main->error.notable); + fl_print_format("%[', or '%]", global.main->error.to, global.main->error.context, global.main->error.context); + fl_print_format("%[%r%]", global.main->error.to, global.main->error.notable, controller_wait_s, global.main->error.notable); + fl_print_format("%[' but instead has '%]", global.main->error.to, global.main->error.context, global.main->error.context); + fl_print_format("%[%Q%]", global.main->error.to, global.main->error.notable, action->parameters.array[j], global.main->error.notable); + fl_print_format("%['.%]", global.main->error.to, global.main->error.context, global.main->error.context, f_string_eol_s); + + funlockfile(global.main->error.to); } } } // for @@ -479,13 +479,13 @@ extern "C" { } if (global.main->error.verbosity > f_console_verbosity_quiet_e) { - flockfile(global.main->error.to.stream); + flockfile(global.main->error.to); - fl_print_format("%r%[%QThe %r item action may not specify the reserved item '%]", global.main->error.to.stream, f_string_eol_s, global.main->error.context, global.main->error.prefix, is_entry ? controller_entry_s : controller_exit_s, global.main->error.context); - fl_print_format("%[%r%]", global.main->error.to.stream, global.main->error.notable, controller_main_s, global.main->error.notable); - fl_print_format("%['.%]", global.main->error.to.stream, global.main->error.context, global.main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe %r item action may not specify the reserved item '%]", global.main->error.to, f_string_eol_s, global.main->error.context, global.main->error.prefix, is_entry ? controller_entry_s : controller_exit_s, global.main->error.context); + fl_print_format("%[%r%]", global.main->error.to, global.main->error.notable, controller_main_s, global.main->error.notable); + fl_print_format("%['.%]", global.main->error.to, global.main->error.context, global.main->error.context, f_string_eol_s); - funlockfile(global.main->error.to.stream); + funlockfile(global.main->error.to); } } } @@ -508,19 +508,19 @@ extern "C" { } if (global.main->error.verbosity > f_console_verbosity_quiet_e) { - flockfile(global.main->error.to.stream); - - fl_print_format("%r%[%QThe %r item action must have one of '%]", global.main->error.to.stream, f_string_eol_s, global.main->error.context, global.main->error.prefix, is_entry ? controller_entry_s : controller_exit_s, global.main->error.context); - fl_print_format("%[%r%]", global.main->error.to.stream, global.main->error.notable, controller_kill_s, global.main->error.notable); - fl_print_format("%[', '%]", global.main->error.to.stream, global.main->error.context, global.main->error.context); - fl_print_format("%[%r%]", global.main->error.to.stream, global.main->error.notable, controller_start_s, global.main->error.notable); - fl_print_format("%[', or '%]", global.main->error.to.stream, global.main->error.context, global.main->error.context); - fl_print_format("%[%r%]", global.main->error.to.stream, global.main->error.notable, controller_stop_s, global.main->error.notable); - fl_print_format("%[' but instead has '%]", global.main->error.to.stream, global.main->error.context, global.main->error.context); - fl_print_format("%[%Q%]", global.main->error.to.stream, global.main->error.notable, action->parameters.array[0], global.main->error.notable); - fl_print_format("%['.%]", global.main->error.to.stream, global.main->error.context, global.main->error.context, f_string_eol_s); - - funlockfile(global.main->error.to.stream); + flockfile(global.main->error.to); + + fl_print_format("%r%[%QThe %r item action must have one of '%]", global.main->error.to, f_string_eol_s, global.main->error.context, global.main->error.prefix, is_entry ? controller_entry_s : controller_exit_s, global.main->error.context); + fl_print_format("%[%r%]", global.main->error.to, global.main->error.notable, controller_kill_s, global.main->error.notable); + fl_print_format("%[', '%]", global.main->error.to, global.main->error.context, global.main->error.context); + fl_print_format("%[%r%]", global.main->error.to, global.main->error.notable, controller_start_s, global.main->error.notable); + fl_print_format("%[', or '%]", global.main->error.to, global.main->error.context, global.main->error.context); + fl_print_format("%[%r%]", global.main->error.to, global.main->error.notable, controller_stop_s, global.main->error.notable); + fl_print_format("%[' but instead has '%]", global.main->error.to, global.main->error.context, global.main->error.context); + fl_print_format("%[%Q%]", global.main->error.to, global.main->error.notable, action->parameters.array[0], global.main->error.notable); + fl_print_format("%['.%]", global.main->error.to, global.main->error.context, global.main->error.context, f_string_eol_s); + + funlockfile(global.main->error.to); } } @@ -551,13 +551,13 @@ extern "C" { } if (global.main->error.verbosity > f_console_verbosity_quiet_e) { - flockfile(global.main->error.to.stream); + flockfile(global.main->error.to); - fl_print_format("%r%[%QThe %r item action parameter '%]", global.main->error.to.stream, f_string_eol_s, global.main->error.context, global.main->error.prefix, is_entry ? controller_entry_s : controller_exit_s, global.main->error.context); - fl_print_format("%[%Q%]", global.main->error.to.stream, global.main->error.notable, action->parameters.array[1], global.main->error.notable); - fl_print_format("%[' is not a valid supported number.%]", global.main->error.to.stream, global.main->error.context, global.main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe %r item action parameter '%]", global.main->error.to, f_string_eol_s, global.main->error.context, global.main->error.prefix, is_entry ? controller_entry_s : controller_exit_s, global.main->error.context); + fl_print_format("%[%Q%]", global.main->error.to, global.main->error.notable, action->parameters.array[1], global.main->error.notable); + fl_print_format("%[' is not a valid supported number.%]", global.main->error.to, global.main->error.context, global.main->error.context, f_string_eol_s); - funlockfile(global.main->error.to.stream); + funlockfile(global.main->error.to); } } } @@ -575,15 +575,15 @@ extern "C" { action->status = F_status_set_error(F_supported_not); if (global.main->error.verbosity > f_console_verbosity_quiet_e) { - flockfile(global.main->error.to.stream); + flockfile(global.main->error.to); - fl_print_format("%r%[%QThe %r item action may only have '%]", global.main->error.to.stream, f_string_eol_s, global.main->error.context, global.main->error.prefix, is_entry ? controller_entry_s : controller_exit_s, global.main->error.context); - fl_print_format("%[%r%]", global.main->error.to.stream, global.main->error.notable, controller_wait_s, global.main->error.notable); - fl_print_format("%[' but instead has '%]", global.main->error.to.stream, global.main->error.context, global.main->error.context); - fl_print_format("%[%Q%]", global.main->error.to.stream, global.main->error.notable, action->parameters.array[0], global.main->error.notable); - fl_print_format("%['.%]", global.main->error.to.stream, global.main->error.context, global.main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe %r item action may only have '%]", global.main->error.to, f_string_eol_s, global.main->error.context, global.main->error.prefix, is_entry ? controller_entry_s : controller_exit_s, global.main->error.context); + fl_print_format("%[%r%]", global.main->error.to, global.main->error.notable, controller_wait_s, global.main->error.notable); + fl_print_format("%[' but instead has '%]", global.main->error.to, global.main->error.context, global.main->error.context); + fl_print_format("%[%Q%]", global.main->error.to, global.main->error.notable, action->parameters.array[0], global.main->error.notable); + fl_print_format("%['.%]", global.main->error.to, global.main->error.context, global.main->error.context, f_string_eol_s); - funlockfile(global.main->error.to.stream); + funlockfile(global.main->error.to); } } } @@ -676,9 +676,9 @@ extern "C" { if (global.main->warning.verbosity == f_console_verbosity_debug_e) { controller_lock_print(global.main->warning.to, global.thread); - fl_print_format("%r%[%QMultiple '%]", global.main->warning.to.stream, f_string_eol_s, global.main->warning.context, global.main->warning.prefix, global.main->warning.context); - fl_print_format("%[%r%]", global.main->warning.to.stream, global.main->warning.notable, controller_ready_s, global.main->warning.notable); - fl_print_format("%[' %r item actions detected; only the first will be used.%]%r", global.main->warning.to.stream, global.main->warning.context, is_entry ? controller_entry_s : controller_exit_s, global.main->warning.context, f_string_eol_s); + fl_print_format("%r%[%QMultiple '%]", global.main->warning.to, f_string_eol_s, global.main->warning.context, global.main->warning.prefix, global.main->warning.context); + fl_print_format("%[%r%]", global.main->warning.to, global.main->warning.notable, controller_ready_s, global.main->warning.notable); + fl_print_format("%[' %r item actions detected; only the first will be used.%]%r", global.main->warning.to, global.main->warning.context, is_entry ? controller_entry_s : controller_exit_s, global.main->warning.context, f_string_eol_s); controller_entry_print_error_cache(is_entry, global.main->warning, cache->action); @@ -712,9 +712,9 @@ extern "C" { if (global.main->error.verbosity > f_console_verbosity_quiet_e) { controller_lock_print(global.main->error.to, global.thread); - fl_print_format("%r%[%QThe %r item named '%]", global.main->error.to.stream, f_string_eol_s, global.main->error.context, is_entry ? controller_entry_s : controller_exit_s, global.main->error.prefix, global.main->error.context); - fl_print_format("%[%Q%]", global.main->error.to.stream, global.main->error.notable, entry->items.array[i].name, global.main->error.notable); - fl_print_format("%[' cannot be executed because recursion is not allowed.%]%r", global.main->error.to.stream, global.main->error.context, global.main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe %r item named '%]", global.main->error.to, f_string_eol_s, global.main->error.context, is_entry ? controller_entry_s : controller_exit_s, global.main->error.prefix, global.main->error.context); + fl_print_format("%[%Q%]", global.main->error.to, global.main->error.notable, entry->items.array[i].name, global.main->error.notable); + fl_print_format("%[' cannot be executed because recursion is not allowed.%]%r", global.main->error.to, global.main->error.context, global.main->error.context, f_string_eol_s); controller_entry_print_error_cache(is_entry, global.main->error, cache->action); @@ -774,9 +774,9 @@ extern "C" { if (global.main->error.verbosity > f_console_verbosity_quiet_e) { controller_lock_print(global.main->error.to, global.thread); - fl_print_format("%r%[%QThe %r item named '%]", global.main->error.to.stream, f_string_eol_s, global.main->error.context, is_entry ? controller_entry_s : controller_exit_s, global.main->error.prefix, global.main->error.context); - fl_print_format("%[%Q%]", global.main->error.to.stream, global.main->error.notable, actions->array[cache->ats.array[at_j]].parameters.array[0], global.main->error.notable); - fl_print_format("%[' does not exist.%]%r", global.main->error.to.stream, global.main->error.context, global.main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe %r item named '%]", global.main->error.to, f_string_eol_s, global.main->error.context, is_entry ? controller_entry_s : controller_exit_s, global.main->error.prefix, global.main->error.context); + fl_print_format("%[%Q%]", global.main->error.to, global.main->error.notable, actions->array[cache->ats.array[at_j]].parameters.array[0], global.main->error.notable); + fl_print_format("%[' does not exist.%]%r", global.main->error.to, global.main->error.context, global.main->error.context, f_string_eol_s); controller_entry_print_error_cache(is_entry, global.main->error, cache->action); @@ -891,8 +891,8 @@ extern "C" { if ((global->main->error.verbosity > f_console_verbosity_error_e)) { controller_lock_print(global->main->output.to, global->thread); - fl_print_format("%rProcessing %r%r item '", global->main->output.to.stream, f_string_eol_s, failsafe ? controller_entry_print_failsafe_s : f_string_empty_s, is_entry ? controller_entry_s : controller_exit_s); - fl_print_format("%[%Q%]'.%r", global->main->output.to.stream, global->main->context.set.notable, cache->action.name_item, global->main->context.set.notable, f_string_eol_s); + fl_print_format("%rProcessing %r%r item '", global->main->output.to, f_string_eol_s, failsafe ? controller_entry_print_failsafe_s : f_string_empty_s, is_entry ? controller_entry_s : controller_exit_s); + fl_print_format("%[%Q%]'.%r", global->main->output.to, global->main->context.set.notable, cache->action.name_item, global->main->context.set.notable, f_string_eol_s); controller_unlock_print_flush(global->main->output.to, global->thread); } @@ -928,20 +928,20 @@ extern "C" { if (global->main->error.verbosity > f_console_verbosity_quiet_e) { controller_lock_print(global->main->output.to, global->thread); - fl_print_format("%rThe %r item action '", global->main->output.to.stream, f_string_eol_s, is_entry ? controller_entry_s : controller_exit_s); - fl_print_format("%[%Q%]", global->main->output.to.stream, global->main->context.set.title, cache->action.name_action, global->main->context.set.title); + fl_print_format("%rThe %r item action '", global->main->output.to, f_string_eol_s, is_entry ? controller_entry_s : controller_exit_s); + fl_print_format("%[%Q%]", global->main->output.to, global->main->context.set.title, cache->action.name_action, global->main->context.set.title); if (entry_action->parameters.used) { - fl_print_format(" %[", global->main->output.to.stream, global->main->context.set.notable); + fl_print_format(" %[", global->main->output.to, global->main->context.set.notable); - controller_entry_action_parameters_print(global->main->output.to.stream, *entry_action); + controller_entry_action_parameters_print(global->main->output.to, *entry_action); - fl_print_format("%]", global->main->output.to.stream, global->main->context.set.notable); + fl_print_format("%]", global->main->output.to, global->main->context.set.notable); } - fl_print_format("' is %[%r%] and is in a ", global->main->output.to.stream, global->main->context.set.notable, entry_action->code & controller_entry_rule_code_require_d ? "required" : "optional", global->main->context.set.notable); + fl_print_format("' is %[%r%] and is in a ", global->main->output.to, global->main->context.set.notable, entry_action->code & controller_entry_rule_code_require_d ? "required" : "optional", global->main->context.set.notable); - fl_print_format("%[failed%] state, skipping.%r", global->main->output.to.stream, global->main->context.set.notable, global->main->context.set.notable, global->main->context.set.notable, f_string_eol_s); + fl_print_format("%[failed%] state, skipping.%r", global->main->output.to, global->main->context.set.notable, global->main->context.set.notable, global->main->context.set.notable, f_string_eol_s); controller_unlock_print_flush(global->main->output.to, global->thread); } @@ -960,32 +960,32 @@ extern "C" { if (output) { controller_lock_print(output->to, global->thread); - fl_print_format("%r%[%QThe %r item action '%]", output->to.stream, f_string_eol_s, output->context, output->prefix, is_entry ? controller_entry_s : controller_exit_s, output->context); - fl_print_format("%[%Q%]", output->to.stream, output->notable, cache->action.name_action, output->notable); + fl_print_format("%r%[%QThe %r item action '%]", output->to, f_string_eol_s, output->context, output->prefix, is_entry ? controller_entry_s : controller_exit_s, output->context); + fl_print_format("%[%Q%]", output->to, output->notable, cache->action.name_action, output->notable); if (entry_action->parameters.used) { - fl_print_format(" %[", output->to.stream, global->main->context.set.notable); + fl_print_format(" %[", output->to, global->main->context.set.notable); - controller_entry_action_parameters_print(output->to.stream, *entry_action); + controller_entry_action_parameters_print(output->to, *entry_action); - fl_print_format("%]", output->to.stream, global->main->context.set.notable); + fl_print_format("%]", output->to, global->main->context.set.notable); } if (entry_action->code & controller_entry_rule_code_require_d) { - fl_print_format("%[' is%] %[required%]", output->to.stream, output->context, output->context, output->notable, output->notable); + fl_print_format("%[' is%] %[required%]", output->to, output->context, output->context, output->notable, output->notable); } else { - fl_print_format("%[' is%] %[optional%]", output->to.stream, output->context, output->context, output->notable, output->notable); + fl_print_format("%[' is%] %[optional%]", output->to, output->context, output->context, output->notable, output->notable); } - fl_print_format(" %[and is in a%] %[failed%]", output->to.stream, output->context, output->context, output->notable, output->notable); + fl_print_format(" %[and is in a%] %[failed%]", output->to, output->context, output->context, output->notable, output->notable); if (entry_action->code & controller_entry_rule_code_require_d) { - fl_print_format(" %[state, aborting.%]%r", output->to.stream, output->context, output->context, f_string_eol_s); + fl_print_format(" %[state, aborting.%]%r", output->to, output->context, output->context, f_string_eol_s); } else { - fl_print_format(" %[state, skipping.%]%r", output->to.stream, output->context, output->context, f_string_eol_s); + fl_print_format(" %[state, skipping.%]%r", output->to, output->context, output->context, f_string_eol_s); } controller_entry_print_error_cache(is_entry, *output, cache->action); @@ -1008,9 +1008,9 @@ extern "C" { if (global->main->output.verbosity != f_console_verbosity_quiet_e && global->main->error.verbosity != f_console_verbosity_error_e) { controller_lock_print(global->main->output.to, global->thread); - fl_print_format("%rWaiting before processing %r item action '", global->main->output.to.stream, f_string_eol_s, is_entry ? controller_entry_s : controller_exit_s); - fl_print_format("%[%r%]", global->main->output.to.stream, global->main->context.set.title, controller_ready_s, global->main->context.set.title); - fl_print_format("'.%r", global->main->output.to.stream, f_string_eol_s); + fl_print_format("%rWaiting before processing %r item action '", global->main->output.to, f_string_eol_s, is_entry ? controller_entry_s : controller_exit_s); + fl_print_format("%[%r%]", global->main->output.to, global->main->context.set.title, controller_ready_s, global->main->context.set.title); + fl_print_format("'.%r", global->main->output.to, f_string_eol_s); controller_unlock_print_flush(global->main->output.to, global->thread); } @@ -1027,9 +1027,9 @@ extern "C" { if (global->main->output.verbosity != f_console_verbosity_quiet_e && global->main->error.verbosity != f_console_verbosity_error_e) { controller_lock_print(global->main->output.to, global->thread); - fl_print_format("%rIgnoring %r item action '", global->main->output.to.stream, f_string_eol_s, is_entry ? controller_entry_s : controller_exit_s); - fl_print_format("%[%r%]", global->main->output.to.stream, global->main->context.set.title, controller_ready_s, global->main->context.set.title); - fl_print_format("', state already is ready.%r", global->main->output.to.stream, f_string_eol_s); + fl_print_format("%rIgnoring %r item action '", global->main->output.to, f_string_eol_s, is_entry ? controller_entry_s : controller_exit_s); + fl_print_format("%[%r%]", global->main->output.to, global->main->context.set.title, controller_ready_s, global->main->context.set.title); + fl_print_format("', state already is ready.%r", global->main->output.to, f_string_eol_s); controller_unlock_print_flush(global->main->output.to, global->thread); } @@ -1038,7 +1038,7 @@ extern "C" { else { if (!failsafe && (global->main->error.verbosity == f_console_verbosity_verbose_e || entry->show == controller_entry_show_init_e) && global->main->parameters.array[controller_parameter_simulate_e].result == f_console_result_none_e) { if ((global->main->error.verbosity > f_console_verbosity_error_e)) { - fl_print_format("%rState is now '%[%r%]'.%r", global->main->output.to.stream, f_string_eol_s, global->main->context.set.notable, controller_ready_s, global->main->context.set.notable, f_string_eol_s); + fl_print_format("%rState is now '%[%r%]'.%r", global->main->output.to, f_string_eol_s, global->main->context.set.notable, controller_ready_s, global->main->context.set.notable, f_string_eol_s); } } @@ -1053,9 +1053,9 @@ extern "C" { if (global->main->error.verbosity > f_console_verbosity_quiet_e) { controller_lock_print(global->main->error.to, global->thread); - fl_print_format("%r%[Invalid %r item index '%]", global->main->error.to.stream, f_string_eol_s, global->main->error.context, is_entry ? controller_entry_s : controller_exit_s, global->main->error.context); - fl_print_format("%[%un%]", global->main->error.to.stream, global->main->error.notable, entry_action->number, global->main->error.notable); - fl_print_format("%[' detected.%]%r", global->main->error.to.stream, global->main->error.context, global->main->error.context, f_string_eol_s); + fl_print_format("%r%[Invalid %r item index '%]", global->main->error.to, f_string_eol_s, global->main->error.context, is_entry ? controller_entry_s : controller_exit_s, global->main->error.context); + fl_print_format("%[%un%]", global->main->error.to, global->main->error.notable, entry_action->number, global->main->error.notable); + fl_print_format("%[' detected.%]%r", global->main->error.to, global->main->error.context, global->main->error.context, f_string_eol_s); controller_entry_print_error_cache(is_entry, global->main->error, cache->action); @@ -1100,9 +1100,9 @@ extern "C" { if (global->main->output.verbosity != f_console_verbosity_quiet_e && global->main->error.verbosity != f_console_verbosity_error_e) { controller_lock_print(global->main->output.to, global->thread); - fl_print_format("%rProcessing %r item '", global->main->output.to.stream, f_string_eol_s, is_entry ? controller_entry_s : controller_exit_s); - fl_print_format("%[%Q%]", global->main->output.to.stream, global->main->context.set.title, cache->action.name_item, global->main->context.set.title); - fl_print_format("'.%r", global->main->output.to.stream, f_string_eol_s); + fl_print_format("%rProcessing %r item '", global->main->output.to, f_string_eol_s, is_entry ? controller_entry_s : controller_exit_s); + fl_print_format("%[%Q%]", global->main->output.to, global->main->context.set.title, cache->action.name_item, global->main->context.set.title); + fl_print_format("'.%r", global->main->output.to, f_string_eol_s); controller_unlock_print_flush(global->main->output.to, global->thread); } @@ -1156,22 +1156,22 @@ extern "C" { if (global->main->output.verbosity != f_console_verbosity_quiet_e && global->main->error.verbosity != f_console_verbosity_error_e) { controller_lock_print(global->main->output.to, global->thread); - fl_print_format("%r%r %r item rule ", global->main->output.to.stream, f_string_eol_s, entry_action->type == controller_entry_action_type_consider_e ? controller_entry_print_considering_s : controller_entry_print_processing_s, is_entry ? controller_entry_s : controller_exit_s); - fl_print_format("'%[%Q%]'", global->main->output.to.stream, global->main->context.set.title, alias_rule, global->main->context.set.title); + fl_print_format("%r%r %r item rule ", global->main->output.to, f_string_eol_s, entry_action->type == controller_entry_action_type_consider_e ? controller_entry_print_considering_s : controller_entry_print_processing_s, is_entry ? controller_entry_s : controller_exit_s); + fl_print_format("'%[%Q%]'", global->main->output.to, global->main->context.set.title, alias_rule, global->main->context.set.title); if (entry->show == controller_entry_show_init_e && global->main->parameters.array[controller_parameter_simulate_e].result == f_console_result_none_e) { - fl_print_format(" [%[%r%]]", global->main->output.to.stream, global->main->context.set.notable, entry_action->code == controller_entry_rule_code_asynchronous_d ? controller_asynchronous_s : controller_synchronous_s, global->main->context.set.notable); + fl_print_format(" [%[%r%]]", global->main->output.to, global->main->context.set.notable, entry_action->code == controller_entry_rule_code_asynchronous_d ? controller_asynchronous_s : controller_synchronous_s, global->main->context.set.notable); if (entry_action->code == controller_entry_rule_code_wait_d) { - fl_print_format(" [%[%r%]]", global->main->output.to.stream, global->main->context.set.notable, controller_wait_s, global->main->context.set.notable); + fl_print_format(" [%[%r%]]", global->main->output.to, global->main->context.set.notable, controller_wait_s, global->main->context.set.notable); } if (entry_action->code == controller_entry_rule_code_require_d) { - fl_print_format(" [%[%r%]]", global->main->output.to.stream, global->main->context.set.notable, controller_required_s, global->main->context.set.notable); + fl_print_format(" [%[%r%]]", global->main->output.to, global->main->context.set.notable, controller_required_s, global->main->context.set.notable); } } - fl_print_format(".%r", global->main->output.to.stream, f_string_eol_s); + fl_print_format(".%r", global->main->output.to, f_string_eol_s); controller_unlock_print_flush(global->main->output.to, global->thread); } @@ -1306,18 +1306,18 @@ extern "C" { if (global->main->output.verbosity != f_console_verbosity_quiet_e && global->main->error.verbosity != f_console_verbosity_error_e) { controller_lock_print(global->main->output.to, global->thread); - fl_print_format("%r%Q is executing '", global->main->output.to.stream, f_string_eol_s, is_entry ? controller_entry_s : controller_exit_s); + fl_print_format("%r%Q is executing '", global->main->output.to, f_string_eol_s, is_entry ? controller_entry_s : controller_exit_s); for (f_array_length_t k = 0; k < entry_action->parameters.used; ++k) { - fl_print_format("%[%Q%]", global->main->output.to.stream, global->main->context.set.title, entry_action->parameters.array[k], global->main->context.set.title); + fl_print_format("%[%Q%]", global->main->output.to, global->main->context.set.title, entry_action->parameters.array[k], global->main->context.set.title); if (k + 1 < entry_action->parameters.used) { - f_print_dynamic_raw(f_string_space_s, global->main->output.to.stream); + f_print_dynamic_raw(f_string_space_s, global->main->output.to); } } // for - fl_print_format("'.%r", global->main->output.to.stream, f_string_eol_s); + fl_print_format("'.%r", global->main->output.to, f_string_eol_s); controller_unlock_print_flush(global->main->output.to, global->thread); } @@ -1343,9 +1343,9 @@ extern "C" { if (global->main->error.verbosity > f_console_verbosity_quiet_e) { controller_lock_print(global->main->error.to, global->thread); - fl_print_format("%r%[%QExecution failed, unable to find program or script '%]", global->main->error.to.stream, f_string_eol_s, global->main->error.context, global->main->error.prefix, global->main->error.context); - fl_print_format("%[%Q%]", global->main->error.to.stream, global->main->error.notable, entry_action->parameters.array[0], global->main->error.notable); - fl_print_format("%['.%]%r", global->main->error.to.stream, global->main->error.context, global->main->error.context, f_string_eol_s); + fl_print_format("%r%[%QExecution failed, unable to find program or script '%]", global->main->error.to, f_string_eol_s, global->main->error.context, global->main->error.prefix, global->main->error.context); + fl_print_format("%[%Q%]", global->main->error.to, global->main->error.notable, entry_action->parameters.array[0], global->main->error.notable); + fl_print_format("%['.%]%r", global->main->error.to, global->main->error.context, global->main->error.context, f_string_eol_s); controller_entry_print_error_cache(is_entry, global->main->error, cache->action); @@ -1362,9 +1362,9 @@ extern "C" { if (global->main->error.verbosity > f_console_verbosity_quiet_e) { controller_lock_print(global->main->error.to, global->thread); - fl_print_format("%r%[%QExecution failed with return value of '%]", global->main->error.to.stream, f_string_eol_s, global->main->error.context, global->main->error.prefix, global->main->error.context); - fl_print_format("%[%i%]", global->main->error.to.stream, global->main->error.notable, result, global->main->error.notable); - fl_print_format("$['.%]%r", global->main->error.to.stream, global->main->error.context, global->main->error.context, f_string_eol_s); + fl_print_format("%r%[%QExecution failed with return value of '%]", global->main->error.to, f_string_eol_s, global->main->error.context, global->main->error.prefix, global->main->error.context); + fl_print_format("%[%i%]", global->main->error.to, global->main->error.notable, result, global->main->error.notable); + fl_print_format("$['.%]%r", global->main->error.to, global->main->error.context, global->main->error.context, f_string_eol_s); controller_entry_print_error_cache(is_entry, global->main->error, cache->action); @@ -1404,7 +1404,7 @@ extern "C" { if (global->main->warning.verbosity == f_console_verbosity_debug_e) { controller_lock_print(global->main->warning.to, global->thread); - fl_print_format("%r%[%QFailsafe may not be specified when running in failsafe, ignoring.%]%r", global->main->warning.to.stream, f_string_eol_s, global->main->warning.context, global->main->warning.prefix, global->main->warning.context, f_string_eol_s); + fl_print_format("%r%[%QFailsafe may not be specified when running in failsafe, ignoring.%]%r", global->main->warning.to, f_string_eol_s, global->main->warning.context, global->main->warning.prefix, global->main->warning.context, f_string_eol_s); controller_entry_print_error_cache(is_entry, global->main->warning, cache->action); @@ -1418,9 +1418,9 @@ extern "C" { if (global->main->error.verbosity > f_console_verbosity_quiet_e) { controller_lock_print(global->main->error.to, global->thread); - fl_print_format("%r%[%QInvalid %r item index '%]", global->main->error.to.stream, f_string_eol_s, global->main->error.context, global->main->error.prefix, is_entry ? controller_entry_s : controller_exit_s, global->main->error.context); - fl_print_format("%[%un%]", global->main->error.to.stream, global->main->error.notable, entry_action->number, global->main->error.notable); - fl_print_format("%[' detected.%]%r", global->main->error.to.stream, global->main->error.context, global->main->error.context, f_string_eol_s); + fl_print_format("%r%[%QInvalid %r item index '%]", global->main->error.to, f_string_eol_s, global->main->error.context, global->main->error.prefix, is_entry ? controller_entry_s : controller_exit_s, global->main->error.context); + fl_print_format("%[%un%]", global->main->error.to, global->main->error.notable, entry_action->number, global->main->error.notable); + fl_print_format("%[' detected.%]%r", global->main->error.to, global->main->error.context, global->main->error.context, f_string_eol_s); controller_entry_print_error_cache(is_entry, global->main->error, cache->action); @@ -1503,13 +1503,13 @@ extern "C" { if ((global->main->parameters.array[controller_parameter_simulate_e].result == f_console_result_found_e && global->main->error.verbosity > f_console_verbosity_quiet_e) && global->main->error.verbosity != f_console_verbosity_error_e || global->main->error.verbosity == f_console_verbosity_verbose_e) { controller_lock_print(global->main->output.to, global->thread); - fl_print_format("%rDone processing %r item '", global->main->output.to.stream, f_string_eol_s, is_entry ? controller_entry_s : controller_exit_s); - fl_print_format("%[%r%]", global->main->output.to.stream, global->main->context.set.title, controller_main_s, global->main->context.set.title); - fl_print_format("'.%r", global->main->output.to.stream, f_string_eol_s); + fl_print_format("%rDone processing %r item '", global->main->output.to, f_string_eol_s, is_entry ? controller_entry_s : controller_exit_s); + fl_print_format("%[%r%]", global->main->output.to, global->main->context.set.title, controller_main_s, global->main->context.set.title); + fl_print_format("'.%r", global->main->output.to, f_string_eol_s); // failsafe should not print the extra newline because the failure exit from controller_main should handle this. if (!failsafe) { - f_print_dynamic_raw(f_string_eol_s, global->main->output.to.stream); + f_print_dynamic_raw(f_string_eol_s, global->main->output.to); } controller_unlock_print_flush(global->main->output.to, global->thread); @@ -1605,7 +1605,7 @@ extern "C" { if (global.main->error.verbosity > f_console_verbosity_quiet_e) { controller_lock_print(global.main->error.to, global.thread); - fll_print_format("%r%[%QThe %r file is empty.%]%r", global.main->error.to.stream, f_string_eol_s, global.main->error.context, global.main->error.prefix, is_entry ? controller_entry_s : is_entry ? controller_entry_s : controller_exit_s, global.main->error.context, f_string_eol_s); + fll_print_format("%r%[%QThe %r file is empty.%]%r", global.main->error.to, f_string_eol_s, global.main->error.context, global.main->error.prefix, is_entry ? controller_entry_s : is_entry ? controller_entry_s : controller_exit_s, global.main->error.context, f_string_eol_s); controller_unlock_print_flush(global.main->error.to, global.thread); } @@ -1690,9 +1690,9 @@ extern "C" { if (global.main->warning.verbosity == f_console_verbosity_debug_e) { controller_lock_print(global.main->warning.to, global.thread); - fl_print_format("%r%[%QIgnoring duplicate %r item '%]", global.main->warning.to.stream, f_string_eol_s, global.main->warning.context, global.main->warning.prefix, is_entry ? controller_entry_s : controller_exit_s, global.main->warning.context); - fl_print_format("%[%Q%]", global.main->warning.to.stream, global.main->warning.notable, cache->action.name_file, global.main->warning.notable); - fl_print_format("%['.%]%r", global.main->warning.to.stream, global.main->warning.context, global.main->warning.context, f_string_eol_s); + fl_print_format("%r%[%QIgnoring duplicate %r item '%]", global.main->warning.to, f_string_eol_s, global.main->warning.context, global.main->warning.prefix, is_entry ? controller_entry_s : controller_exit_s, global.main->warning.context); + fl_print_format("%[%Q%]", global.main->warning.to, global.main->warning.notable, cache->action.name_file, global.main->warning.notable); + fl_print_format("%['.%]%r", global.main->warning.to, global.main->warning.context, global.main->warning.context, f_string_eol_s); controller_entry_print_error_cache(is_entry, global.main->warning, cache->action); @@ -1774,9 +1774,9 @@ extern "C" { if (global.main->error.verbosity > f_console_verbosity_quiet_e) { controller_lock_print(global.main->error.to, global.thread); - fl_print_format("%r%[%QThe required %r item '%]", global.main->error.to.stream, f_string_eol_s, global.main->error.context, global.main->error.prefix, is_entry ? controller_entry_s : controller_exit_s, global.main->error.context); - fl_print_format("%[%r%]", global.main->error.to.stream, global.main->error.notable, controller_main_s, global.main->error.notable); - fl_print_format("%[' is not found.%]%r", global.main->error.to.stream, global.main->error.context, global.main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe required %r item '%]", global.main->error.to, f_string_eol_s, global.main->error.context, global.main->error.prefix, is_entry ? controller_entry_s : controller_exit_s, global.main->error.context); + fl_print_format("%[%r%]", global.main->error.to, global.main->error.notable, controller_main_s, global.main->error.notable); + fl_print_format("%[' is not found.%]%r", global.main->error.to, global.main->error.context, global.main->error.context, f_string_eol_s); controller_unlock_print_flush(global.main->error.to, global.thread); } @@ -1836,9 +1836,9 @@ extern "C" { if (global.main->error.verbosity > f_console_verbosity_quiet_e) { controller_lock_print(global.main->error.to, global.thread); - fl_print_format("%r%[%QThe required %r item '%]", global.main->error.to.stream, f_string_eol_s, global.main->error.context, global.main->error.prefix, is_entry ? controller_entry_s : controller_exit_s, global.main->error.context); - fl_print_format("%[%Q%]", global.main->error.to.stream, global.main->error.notable, action->parameters.array[0], global.main->error.notable); - fl_print_format("%[' does not exist.%]%r", global.main->error.to.stream, global.main->error.context, global.main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe required %r item '%]", global.main->error.to, f_string_eol_s, global.main->error.context, global.main->error.prefix, is_entry ? controller_entry_s : controller_exit_s, global.main->error.context); + fl_print_format("%[%Q%]", global.main->error.to, global.main->error.notable, action->parameters.array[0], global.main->error.notable); + fl_print_format("%[' does not exist.%]%r", global.main->error.to, global.main->error.context, global.main->error.context, f_string_eol_s); controller_entry_print_error_cache(is_entry, global.main->error, cache->action); @@ -2276,13 +2276,13 @@ extern "C" { } if (global.main->error.verbosity > f_console_verbosity_quiet_e) { - flockfile(global.main->error.to.stream); + flockfile(global.main->error.to); - fl_print_format("%r%[%QThe %r setting '%]", global.main->error.to.stream, f_string_eol_s, global.main->error.context, global.main->error.prefix, is_entry ? controller_entry_s : controller_exit_s, global.main->error.context); - fl_print_format("%[%/Q%]", global.main->error.to.stream, global.main->error.notable, cache->buffer_file, cache->content_actions.array[i].array[1], global.main->error.notable); - fl_print_format("%[' is not a valid supported number.%]", global.main->error.to.stream, global.main->error.context, global.main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe %r setting '%]", global.main->error.to, f_string_eol_s, global.main->error.context, global.main->error.prefix, is_entry ? controller_entry_s : controller_exit_s, global.main->error.context); + fl_print_format("%[%/Q%]", global.main->error.to, global.main->error.notable, cache->buffer_file, cache->content_actions.array[i].array[1], global.main->error.notable); + fl_print_format("%[' is not a valid supported number.%]", global.main->error.to, global.main->error.context, global.main->error.context, f_string_eol_s); - funlockfile(global.main->error.to.stream); + funlockfile(global.main->error.to); } } } diff --git a/level_3/controller/c/entry/private-entry_print.c b/level_3/controller/c/entry/private-entry_print.c index c545a04..1bd01e6 100644 --- a/level_3/controller/c/entry/private-entry_print.c +++ b/level_3/controller/c/entry/private-entry_print.c @@ -39,20 +39,20 @@ extern "C" { controller_lock_print(global.main->output.to, global.thread); - fl_print_format("%rProcessing %r item action '", global.main->output.to.stream, f_string_eol_s, is_entry ? controller_entry_s : controller_exit_s); + fl_print_format("%rProcessing %r item action '", global.main->output.to, f_string_eol_s, is_entry ? controller_entry_s : controller_exit_s); - fl_print_format("%[%Q%]' setting ", global.main->output.to.stream, global.main->context.set.title, name, global.main->context.set.title); + fl_print_format("%[%Q%]' setting ", global.main->output.to, global.main->context.set.title, name, global.main->context.set.title); if (name_sub.used) { - fl_print_format("'%[%Q%]'", global.main->output.to.stream, global.main->context.set.notable, name_sub, global.main->context.set.notable); + fl_print_format("'%[%Q%]'", global.main->output.to, global.main->context.set.notable, name_sub, global.main->context.set.notable); } else { - fl_print_format("value", global.main->output.to.stream); + fl_print_format("value", global.main->output.to); } - fl_print_format(" to '%[%Q%]", global.main->output.to.stream, global.main->context.set.important, value, global.main->context.set.important); + fl_print_format(" to '%[%Q%]", global.main->output.to, global.main->context.set.important, value, global.main->context.set.important); - fl_print_format("'%Q.%r", global.main->output.to.stream, suffix, f_string_eol_s); + fl_print_format("'%Q.%r", global.main->output.to, suffix, f_string_eol_s); controller_unlock_print_flush(global.main->output.to, global.thread); } @@ -80,30 +80,30 @@ extern "C" { #ifndef _di_controller_entry_print_error_cache_ void controller_entry_print_error_cache(const bool is_entry, const fl_print_t output, const controller_cache_action_t cache) { - fl_print_format("%r%[%QWhile processing ", output.to.stream, f_string_eol_s, output.context, output.prefix); + fl_print_format("%r%[%QWhile processing ", output.to, f_string_eol_s, output.context, output.prefix); if (cache.name_action.used) { - fl_print_format("action '%]", output.to.stream, output.context); - fl_print_format("%[%Q%]", output.to.stream, output.notable, cache.name_action, output.notable); - fl_print_format("%[' on line%] ", output.to.stream, output.context, output.context); - fl_print_format("%[%un%]", output.to.stream, output.notable, cache.line_action, output.notable); - fl_print_format("%[ for ", output.to.stream, output.context); + fl_print_format("action '%]", output.to, output.context); + fl_print_format("%[%Q%]", output.to, output.notable, cache.name_action, output.notable); + fl_print_format("%[' on line%] ", output.to, output.context, output.context); + fl_print_format("%[%un%]", output.to, output.notable, cache.line_action, output.notable); + fl_print_format("%[ for ", output.to, output.context); } if (cache.name_item.used) { - fl_print_format("%r item '%]", output.to.stream, is_entry ? controller_entry_s : controller_exit_s, output.context); - fl_print_format("%[%Q%]", output.to.stream, output.notable, cache.name_item, output.notable); - fl_print_format("%[' on line%] ", output.to.stream, output.context, output.context); - fl_print_format("%[%un%]", output.to.stream, output.notable, cache.line_item, output.notable); - fl_print_format("%[ for ", output.to.stream, output.context); + fl_print_format("%r item '%]", output.to, is_entry ? controller_entry_s : controller_exit_s, output.context); + fl_print_format("%[%Q%]", output.to, output.notable, cache.name_item, output.notable); + fl_print_format("%[' on line%] ", output.to, output.context, output.context); + fl_print_format("%[%un%]", output.to, output.notable, cache.line_item, output.notable); + fl_print_format("%[ for ", output.to, output.context); } if (cache.name_file.used) { - fl_print_format("%r file '%]", output.to.stream, is_entry ? controller_entry_s : controller_exit_s, output.context); - fl_print_format("%[%Q%]%['", output.to.stream, output.notable, cache.name_file, output.notable, output.context); + fl_print_format("%r file '%]", output.to, is_entry ? controller_entry_s : controller_exit_s, output.context); + fl_print_format("%[%Q%]%['", output.to, output.notable, cache.name_file, output.notable, output.context); } - fl_print_format(".%]%r", output.to.stream, output.context, f_string_eol_s); + fl_print_format(".%]%r", output.to, output.context, f_string_eol_s); } #endif // _di_controller_entry_print_error_cache_ @@ -150,9 +150,9 @@ extern "C" { controller_lock_print(global.main->warning.to, global.thread); - fl_print_format("%r%[%QThe %Q item setting '%]", global.main->warning.to.stream, f_string_eol_s, global.main->warning.context, global.main->warning.prefix, is_entry ? controller_entry_s : controller_exit_s, global.main->warning.context); - fl_print_format("%[%Q%]", global.main->warning.to.stream, global.main->warning.notable, cache.action.name_action, global.main->warning.notable); - fl_print_format("%[' is being ignored.%]%r", global.main->warning.to.stream, global.main->warning.context, global.main->warning.context, f_string_eol_s); + fl_print_format("%r%[%QThe %Q item setting '%]", global.main->warning.to, f_string_eol_s, global.main->warning.context, global.main->warning.prefix, is_entry ? controller_entry_s : controller_exit_s, global.main->warning.context); + fl_print_format("%[%Q%]", global.main->warning.to, global.main->warning.notable, cache.action.name_action, global.main->warning.notable); + fl_print_format("%[' is being ignored.%]%r", global.main->warning.to, global.main->warning.context, global.main->warning.context, f_string_eol_s); controller_entry_print_error_cache(is_entry, global.main->warning, cache.action); @@ -167,13 +167,13 @@ extern "C" { controller_lock_print(global.main->error.to, global.thread); - fl_print_format("%r%[%QThe %Q item setting '%]", global.main->error.to.stream, f_string_eol_s, global.main->error.context, global.main->error.prefix, is_entry ? controller_entry_s : controller_exit_s, global.main->error.context); - fl_print_format("%[%Q%]", global.main->error.to.stream, global.main->error.notable, cache.action.name_action, global.main->error.notable); - fl_print_format("%[' requires at least %]", global.main->error.to.stream, global.main->error.context, global.main->error.context); - fl_print_format("%[%un%]", global.main->error.to.stream, global.main->error.notable, minimum, global.main->error.notable); - fl_print_format("%[' and at most %]", global.main->error.to.stream, global.main->error.context, global.main->error.context); - fl_print_format("%[%un%]", global.main->error.to.stream, global.main->error.notable, maximum, global.main->error.notable); - fl_print_format("%[ Content.%]%r", global.main->error.to.stream, global.main->error.context, global.main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe %Q item setting '%]", global.main->error.to, f_string_eol_s, global.main->error.context, global.main->error.prefix, is_entry ? controller_entry_s : controller_exit_s, global.main->error.context); + fl_print_format("%[%Q%]", global.main->error.to, global.main->error.notable, cache.action.name_action, global.main->error.notable); + fl_print_format("%[' requires at least %]", global.main->error.to, global.main->error.context, global.main->error.context); + fl_print_format("%[%un%]", global.main->error.to, global.main->error.notable, minimum, global.main->error.notable); + fl_print_format("%[' and at most %]", global.main->error.to, global.main->error.context, global.main->error.context); + fl_print_format("%[%un%]", global.main->error.to, global.main->error.notable, maximum, global.main->error.notable); + fl_print_format("%[ Content.%]%r", global.main->error.to, global.main->error.context, global.main->error.context, f_string_eol_s); controller_entry_print_error_cache(is_entry, global.main->error, cache.action); @@ -188,11 +188,11 @@ extern "C" { controller_lock_print(global.main->error.to, global.thread); - fl_print_format("%r%[%QThe %Q item setting '%]", global.main->error.to.stream, f_string_eol_s, global.main->error.context, global.main->error.prefix, is_entry ? controller_entry_s : controller_exit_s, global.main->error.context); - fl_print_format("%[%Q%]", global.main->error.to.stream, global.main->error.notable, cache.action.name_action, global.main->error.notable); - fl_print_format("%[' requires exactly %]", global.main->error.to.stream, global.main->error.context, global.main->error.context); - fl_print_format("%[%un%]", global.main->error.to.stream, global.main->error.notable, total, global.main->error.notable); - fl_print_format("%[ Content.%]%r", global.main->error.to.stream, global.main->error.context, global.main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe %Q item setting '%]", global.main->error.to, f_string_eol_s, global.main->error.context, global.main->error.prefix, is_entry ? controller_entry_s : controller_exit_s, global.main->error.context); + fl_print_format("%[%Q%]", global.main->error.to, global.main->error.notable, cache.action.name_action, global.main->error.notable); + fl_print_format("%[' requires exactly %]", global.main->error.to, global.main->error.context, global.main->error.context); + fl_print_format("%[%un%]", global.main->error.to, global.main->error.notable, total, global.main->error.notable); + fl_print_format("%[ Content.%]%r", global.main->error.to, global.main->error.context, global.main->error.context, f_string_eol_s); controller_entry_print_error_cache(is_entry, global.main->error, cache.action); @@ -207,9 +207,9 @@ extern "C" { controller_lock_print(global.main->warning.to, global.thread); - fl_print_format("%r%[%QUnknown %r item setting '%]", global.main->warning.to.stream, f_string_eol_s, global.main->warning.context, global.main->warning.prefix, is_entry ? controller_entry_s : controller_exit_s, global.main->warning.context); - fl_print_format("%[%Q%]", global.main->warning.to.stream, global.main->warning.notable, cache.action.name_action, global.main->warning.notable); - fl_print_format("%['.%]%r", global.main->warning.to.stream, global.main->warning.context, global.main->warning.context, f_string_eol_s); + fl_print_format("%r%[%QUnknown %r item setting '%]", global.main->warning.to, f_string_eol_s, global.main->warning.context, global.main->warning.prefix, is_entry ? controller_entry_s : controller_exit_s, global.main->warning.context); + fl_print_format("%[%Q%]", global.main->warning.to, global.main->warning.notable, cache.action.name_action, global.main->warning.notable); + fl_print_format("%['.%]%r", global.main->warning.to, global.main->warning.context, global.main->warning.context, f_string_eol_s); controller_entry_print_error_cache(is_entry, global.main->warning, cache.action); @@ -224,11 +224,11 @@ extern "C" { controller_lock_print(global.main->warning.to, global.thread); - fl_print_format("%r%[%QThe %Q item setting '%]", global.main->warning.to.stream, f_string_eol_s, global.main->warning.context, global.main->warning.prefix, is_entry ? controller_entry_s : controller_exit_s, global.main->warning.context); - fl_print_format("%[%Q%]", global.main->warning.to.stream, global.main->warning.notable, cache.action.name_action, global.main->warning.notable); - fl_print_format("%[' has an unknown value '%]", global.main->warning.to.stream, global.main->warning.context, global.main->warning.context); - fl_print_format("%[%/Q%]", global.main->warning.to.stream, global.main->warning.notable, cache.buffer_file, cache.content_actions.array[index].array[0], global.main->warning.notable); - fl_print_format("%['.%]%r", global.main->warning.to.stream, global.main->warning.context, global.main->warning.context, f_string_eol_s); + fl_print_format("%r%[%QThe %Q item setting '%]", global.main->warning.to, f_string_eol_s, global.main->warning.context, global.main->warning.prefix, is_entry ? controller_entry_s : controller_exit_s, global.main->warning.context); + fl_print_format("%[%Q%]", global.main->warning.to, global.main->warning.notable, cache.action.name_action, global.main->warning.notable); + fl_print_format("%[' has an unknown value '%]", global.main->warning.to, global.main->warning.context, global.main->warning.context); + fl_print_format("%[%/Q%]", global.main->warning.to, global.main->warning.notable, cache.buffer_file, cache.content_actions.array[index].array[0], global.main->warning.notable); + fl_print_format("%['.%]%r", global.main->warning.to, global.main->warning.context, global.main->warning.context, f_string_eol_s); controller_entry_print_error_cache(is_entry, global.main->warning, cache.action); diff --git a/level_3/controller/c/print.c b/level_3/controller/c/print.c index aeb8d37..0daa4d2 100644 --- a/level_3/controller/c/print.c +++ b/level_3/controller/c/print.c @@ -10,13 +10,13 @@ extern "C" { controller_lock_print(print.to, 0); - f_print_dynamic_raw(setting->line_first, print.to.stream); + f_print_dynamic_raw(setting->line_first, print.to); fll_program_print_help_header(print, *main->program_name_long, controller_program_version_s); fll_program_print_help_option_standard(print.to, context); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); + f_print_dynamic_raw(f_string_eol_s, print.to); fll_program_print_help_option(print, controller_short_cgroup_s, controller_long_cgroup_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Specify a custom control group file path, such as '" F_control_group_path_system_prefix_s F_control_group_path_system_default_s "'."); fll_program_print_help_option(print, controller_short_daemon_s, controller_long_daemon_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Run in daemon only mode (do not process the entry)."); @@ -29,21 +29,21 @@ extern "C" { fll_program_print_help_option(print, controller_short_uninterruptible_s, controller_long_uninterruptible_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, "Designate that this program cannot be interrupted by a signal."); fll_program_print_help_option(print, controller_short_validate_s, controller_long_validate_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Validate the settings (entry and rules) without running (does not simulate)."); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); + f_print_dynamic_raw(f_string_eol_s, print.to); + f_print_dynamic_raw(f_string_eol_s, print.to); fll_program_print_help_usage(print, *main->program_name, controller_entry_s); - fl_print_format("%r When both the %[%r%r%] parameter and the", print.to.stream, f_string_eol_s, print.set->notable, f_console_symbol_long_enable_s, controller_long_simulate_s, print.set->notable); - fl_print_format(" %[%r%r%] parameter are specified, then additional information on each would be executed rule is printed but no simulation is performed.%r%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, controller_long_validate_s, print.set->notable, f_string_eol_s, f_string_eol_s); + fl_print_format("%r When both the %[%r%r%] parameter and the", print.to, f_string_eol_s, print.set->notable, f_console_symbol_long_enable_s, controller_long_simulate_s, print.set->notable); + fl_print_format(" %[%r%r%] parameter are specified, then additional information on each would be executed rule is printed but no simulation is performed.%r%r", print.to, print.set->notable, f_console_symbol_long_enable_s, controller_long_validate_s, print.set->notable, f_string_eol_s, f_string_eol_s); const f_string_static_t interruptable = main->as_init ? controller_long_uninterruptible_s : controller_long_interruptible_s; - fl_print_format(" The default interrupt behavior is to operate as if the %[%r%r%] parameter is passed.%r%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, interruptable, print.set->notable, f_string_eol_s, f_string_eol_s); + fl_print_format(" The default interrupt behavior is to operate as if the %[%r%r%] parameter is passed.%r%r", print.to, print.set->notable, f_console_symbol_long_enable_s, interruptable, print.set->notable, f_string_eol_s, f_string_eol_s); - fl_print_format(" Specify an empty string for the %[%r%r%] parameter to disable pid file creation for this program.%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, controller_long_pid_s, print.set->notable, f_string_eol_s); + fl_print_format(" Specify an empty string for the %[%r%r%] parameter to disable pid file creation for this program.%r", print.to, print.set->notable, f_console_symbol_long_enable_s, controller_long_pid_s, print.set->notable, f_string_eol_s); - f_print_dynamic_raw(setting->line_last, print.to.stream); + f_print_dynamic_raw(setting->line_last, print.to); controller_unlock_print_flush(print.to, 0); @@ -62,7 +62,7 @@ extern "C" { if (setting->flag & controller_main_flag_file_to_e) return F_output_not; } - f_print_dynamic_raw(setting->line_first, print.to.stream); + f_print_dynamic_raw(setting->line_first, print.to); return F_none; } @@ -79,7 +79,7 @@ extern "C" { if (setting->flag & controller_main_flag_file_to_e) return F_output_not; } - fll_print_dynamic_raw(setting->line_first, print.to.stream); + fll_print_dynamic_raw(setting->line_first, print.to); return F_none; } @@ -96,7 +96,7 @@ extern "C" { if (setting->flag & controller_main_flag_file_to_e) return F_output_not; } - fll_print_dynamic_raw(setting->line_last, print.to.stream); + fll_print_dynamic_raw(setting->line_last, print.to); return F_none; } @@ -113,7 +113,7 @@ extern "C" { if (setting->flag & controller_main_flag_file_to_e) return F_output_not; } - f_print_dynamic_raw(setting->line_last, print.to.stream); + f_print_dynamic_raw(setting->line_last, print.to); return F_none; } diff --git a/level_3/controller/c/rule/private-rule.c b/level_3/controller/c/rule/private-rule.c index fa71074..a9934c0 100644 --- a/level_3/controller/c/rule/private-rule.c +++ b/level_3/controller/c/rule/private-rule.c @@ -442,21 +442,21 @@ extern "C" { if (global.main->error.verbosity > f_console_verbosity_quiet_e) { controller_lock_print(global.main->error.to, global.thread); - fl_print_format("%r%[%QRule item action '%]", global.main->error.to.stream, f_string_eol_s, global.main->error.context, global.main->error.prefix, global.main->error.context); - fl_print_format("%[%r%]", global.main->error.to.stream, global.main->error.notable, controller_rerun_s, global.main->error.notable); - fl_print_format("%[' has '%]", global.main->error.to.stream, global.main->error.context, global.main->error.context); - fl_print_format("%[%/Q%]", global.main->error.to.stream, global.main->error.notable, cache->buffer_item, cache->content_action.array[0], global.main->error.notable); - fl_print_format("%[' as the first value, only the following are allowed: '%]", global.main->error.to.stream, global.main->error.context, global.main->error.context); - fl_print_format("%[%r%]%[', '%]", global.main->error.to.stream, global.main->error.notable, controller_freeze_s, global.main->error.notable, global.main->error.context, global.main->error.context); - fl_print_format("%[%r%]%[', '%]", global.main->error.to.stream, global.main->error.notable, controller_kill_s, global.main->error.notable, global.main->error.context, global.main->error.context); - fl_print_format("%[%r%]%[', '%]", global.main->error.to.stream, global.main->error.notable, controller_pause_s, global.main->error.notable, global.main->error.context, global.main->error.context); - fl_print_format("%[%r%]%[', '%]", global.main->error.to.stream, global.main->error.notable, controller_reload_s, global.main->error.notable, global.main->error.context, global.main->error.context); - fl_print_format("%[%r%]%[', '%]", global.main->error.to.stream, global.main->error.notable, controller_restart_s, global.main->error.notable, global.main->error.context, global.main->error.context); - fl_print_format("%[%r%]%[', '%]", global.main->error.to.stream, global.main->error.notable, controller_resume_s, global.main->error.notable, global.main->error.context, global.main->error.context); - fl_print_format("%[%r%]%[', '%]", global.main->error.to.stream, global.main->error.notable, controller_start_s, global.main->error.notable, global.main->error.context, global.main->error.context); - fl_print_format("%[%r%]%[', or '%]", global.main->error.to.stream, global.main->error.notable, controller_stop_s, global.main->error.notable, global.main->error.context, global.main->error.context); - fl_print_format("%[%r%]", global.main->error.to.stream, global.main->error.notable, controller_thaw_s, global.main->error.notable, global.main->error.context); - fl_print_format("%['.%]%r", global.main->error.to.stream, global.main->error.context, global.main->error.context, f_string_eol_s); + fl_print_format("%r%[%QRule item action '%]", global.main->error.to, f_string_eol_s, global.main->error.context, global.main->error.prefix, global.main->error.context); + fl_print_format("%[%r%]", global.main->error.to, global.main->error.notable, controller_rerun_s, global.main->error.notable); + fl_print_format("%[' has '%]", global.main->error.to, global.main->error.context, global.main->error.context); + fl_print_format("%[%/Q%]", global.main->error.to, global.main->error.notable, cache->buffer_item, cache->content_action.array[0], global.main->error.notable); + fl_print_format("%[' as the first value, only the following are allowed: '%]", global.main->error.to, global.main->error.context, global.main->error.context); + fl_print_format("%[%r%]%[', '%]", global.main->error.to, global.main->error.notable, controller_freeze_s, global.main->error.notable, global.main->error.context, global.main->error.context); + fl_print_format("%[%r%]%[', '%]", global.main->error.to, global.main->error.notable, controller_kill_s, global.main->error.notable, global.main->error.context, global.main->error.context); + fl_print_format("%[%r%]%[', '%]", global.main->error.to, global.main->error.notable, controller_pause_s, global.main->error.notable, global.main->error.context, global.main->error.context); + fl_print_format("%[%r%]%[', '%]", global.main->error.to, global.main->error.notable, controller_reload_s, global.main->error.notable, global.main->error.context, global.main->error.context); + fl_print_format("%[%r%]%[', '%]", global.main->error.to, global.main->error.notable, controller_restart_s, global.main->error.notable, global.main->error.context, global.main->error.context); + fl_print_format("%[%r%]%[', '%]", global.main->error.to, global.main->error.notable, controller_resume_s, global.main->error.notable, global.main->error.context, global.main->error.context); + fl_print_format("%[%r%]%[', '%]", global.main->error.to, global.main->error.notable, controller_start_s, global.main->error.notable, global.main->error.context, global.main->error.context); + fl_print_format("%[%r%]%[', or '%]", global.main->error.to, global.main->error.notable, controller_stop_s, global.main->error.notable, global.main->error.context, global.main->error.context); + fl_print_format("%[%r%]", global.main->error.to, global.main->error.notable, controller_thaw_s, global.main->error.notable, global.main->error.context); + fl_print_format("%['.%]%r", global.main->error.to, global.main->error.context, global.main->error.context, f_string_eol_s); controller_rule_print_error_cache(global.main->error, cache->action, F_true); @@ -482,14 +482,14 @@ extern "C" { if (global.main->error.verbosity > f_console_verbosity_quiet_e) { controller_lock_print(global.main->error.to, global.thread); - fl_print_format("%r%[%QRule item action '%]", global.main->error.to.stream, f_string_eol_s, global.main->error.context, global.main->error.prefix, global.main->error.context); - fl_print_format("%[%r%]", global.main->error.to.stream, global.main->error.notable, controller_rerun_s, global.main->error.notable); - fl_print_format("%[' has '%]", global.main->error.to.stream, global.main->error.context, global.main->error.context); - fl_print_format("%[%/Q%]", global.main->error.to.stream, global.main->error.notable, cache->buffer_item, cache->content_action.array[1], global.main->error.notable); - fl_print_format("%[' as the second value, only the following are allowed: '%]", global.main->error.to.stream, global.main->error.context, global.main->error.context); - fl_print_format("%[%r%]%[' or '%]", global.main->error.to.stream, global.main->error.notable, controller_stop_s, global.main->error.notable, global.main->error.context, global.main->error.context); - fl_print_format("%[%r%]", global.main->error.to.stream, global.main->error.notable, controller_thaw_s, global.main->error.notable, global.main->error.context); - fl_print_format("%['.%]%r", global.main->error.to.stream, global.main->error.context, global.main->error.context, f_string_eol_s); + fl_print_format("%r%[%QRule item action '%]", global.main->error.to, f_string_eol_s, global.main->error.context, global.main->error.prefix, global.main->error.context); + fl_print_format("%[%r%]", global.main->error.to, global.main->error.notable, controller_rerun_s, global.main->error.notable); + fl_print_format("%[' has '%]", global.main->error.to, global.main->error.context, global.main->error.context); + fl_print_format("%[%/Q%]", global.main->error.to, global.main->error.notable, cache->buffer_item, cache->content_action.array[1], global.main->error.notable); + fl_print_format("%[' as the second value, only the following are allowed: '%]", global.main->error.to, global.main->error.context, global.main->error.context); + fl_print_format("%[%r%]%[' or '%]", global.main->error.to, global.main->error.notable, controller_stop_s, global.main->error.notable, global.main->error.context, global.main->error.context); + fl_print_format("%[%r%]", global.main->error.to, global.main->error.notable, controller_thaw_s, global.main->error.notable, global.main->error.context); + fl_print_format("%['.%]%r", global.main->error.to, global.main->error.context, global.main->error.context, f_string_eol_s); controller_rule_print_error_cache(global.main->error, cache->action, F_true); @@ -514,11 +514,11 @@ extern "C" { if (global.main->error.verbosity > f_console_verbosity_quiet_e) { controller_lock_print(global.main->error.to, global.thread); - fl_print_format("%r%[%QRule item action '%]", global.main->error.to.stream, f_string_eol_s, global.main->error.context, global.main->error.prefix, global.main->error.context); - fl_print_format("%[%r%]", global.main->error.to.stream, global.main->error.notable, controller_rerun_s, global.main->error.notable); - fl_print_format("%[' has an unknown value '%]", global.main->error.to.stream, global.main->error.context, global.main->error.context); - fl_print_format("%[%/Q%]", global.main->error.to.stream, global.main->error.notable, cache->buffer_item, cache->content_action.array[i], global.main->error.notable); - fl_print_format("%['.%]%r", global.main->error.to.stream, global.main->error.context, global.main->error.context, f_string_eol_s); + fl_print_format("%r%[%QRule item action '%]", global.main->error.to, f_string_eol_s, global.main->error.context, global.main->error.prefix, global.main->error.context); + fl_print_format("%[%r%]", global.main->error.to, global.main->error.notable, controller_rerun_s, global.main->error.notable); + fl_print_format("%[' has an unknown value '%]", global.main->error.to, global.main->error.context, global.main->error.context); + fl_print_format("%[%/Q%]", global.main->error.to, global.main->error.notable, cache->buffer_item, cache->content_action.array[i], global.main->error.notable); + fl_print_format("%['.%]%r", global.main->error.to, global.main->error.context, global.main->error.context, f_string_eol_s); controller_rule_print_error_cache(global.main->error, cache->action, F_true); @@ -555,10 +555,10 @@ extern "C" { if (global.main->error.verbosity > f_console_verbosity_quiet_e) { controller_lock_print(global.main->error.to, global.thread); - fl_print_format("%r%[%QUnknown value '%]", global.main->error.to.stream, f_string_eol_s, global.main->error.context, global.main->error.prefix, global.main->error.context); - fl_print_format("%[%/Q%]", global.main->error.to.stream, global.main->error.notable, cache->buffer_item, cache->content_action.array[i], global.main->error.notable); - fl_print_format("%[' for rule item action '%]%[%r%]", global.main->error.to.stream, global.main->error.context, global.main->error.context, global.main->error.notable, controller_with_s, global.main->error.notable); - fl_print_format("%['.%]%r", global.main->error.to.stream, global.main->error.context, global.main->error.context, f_string_eol_s); + fl_print_format("%r%[%QUnknown value '%]", global.main->error.to, f_string_eol_s, global.main->error.context, global.main->error.prefix, global.main->error.context); + fl_print_format("%[%/Q%]", global.main->error.to, global.main->error.notable, cache->buffer_item, cache->content_action.array[i], global.main->error.notable); + fl_print_format("%[' for rule item action '%]%[%r%]", global.main->error.to, global.main->error.context, global.main->error.context, global.main->error.notable, controller_with_s, global.main->error.notable); + fl_print_format("%['.%]%r", global.main->error.to, global.main->error.context, global.main->error.context, f_string_eol_s); controller_rule_print_error_cache(global.main->error, cache->action, F_true); @@ -661,7 +661,7 @@ extern "C" { if (global.main->warning.verbosity == f_console_verbosity_debug_e) { controller_lock_print(global.main->warning.to, global.thread); - fl_print_format("%r%[%QAction is empty, nothing to do.%]%r", global.main->warning.to.stream, f_string_eol_s, global.main->warning.context, global.main->warning.prefix, global.main->warning.context, f_string_eol_s); + fl_print_format("%r%[%QAction is empty, nothing to do.%]%r", global.main->warning.to, f_string_eol_s, global.main->warning.context, global.main->warning.prefix, global.main->warning.context, f_string_eol_s); controller_rule_print_error_cache(global.main->warning, cache->action, F_true); @@ -704,26 +704,26 @@ extern "C" { else { controller_lock_print(global.main->error.to, global.thread); - fl_print_format("%r%[%QRule item action '%]", global.main->error.to.stream, f_string_eol_s, global.main->error.context, global.main->error.prefix, global.main->error.context); - fl_print_format("%[%r%]", global.main->error.to.stream, global.main->error.notable, controller_rerun_s, global.main->error.notable); - fl_print_format("%[' requires a positive whole number or 0 for the '%]", global.main->error.to.stream, global.main->error.context, global.main->error.context); - fl_print_format("%[%S%]", global.main->error.to.stream, global.main->error.notable, name, global.main->error.notable); - fl_print_format("%[' value", global.main->error.to.stream, global.main->error.context, global.main->error.context); + fl_print_format("%r%[%QRule item action '%]", global.main->error.to, f_string_eol_s, global.main->error.context, global.main->error.prefix, global.main->error.context); + fl_print_format("%[%r%]", global.main->error.to, global.main->error.notable, controller_rerun_s, global.main->error.notable); + fl_print_format("%[' requires a positive whole number or 0 for the '%]", global.main->error.to, global.main->error.context, global.main->error.context); + fl_print_format("%[%S%]", global.main->error.to, global.main->error.notable, name, global.main->error.notable); + fl_print_format("%[' value", global.main->error.to, global.main->error.context, global.main->error.context); if (*index + 1 == cache->content_action.used) { - fl_print_format(", but none were given.%]%r", global.main->error.to.stream, global.main->error.context, f_string_eol_s); + fl_print_format(", but none were given.%]%r", global.main->error.to, global.main->error.context, f_string_eol_s); } else { - fl_print_format(", but '%]%[%/Q%]", global.main->error.to.stream, global.main->error.context, global.main->error.notable, cache->buffer_item, cache->content_action.array[*index], global.main->error.notable); + fl_print_format(", but '%]%[%/Q%]", global.main->error.to, global.main->error.context, global.main->error.notable, cache->buffer_item, cache->content_action.array[*index], global.main->error.notable); if (status == F_number || status == F_number_decimal) { - fl_print_format("%[' was given.%]%r", global.main->error.to.stream, global.main->error.context, global.main->error.context, f_string_eol_s); + fl_print_format("%[' was given.%]%r", global.main->error.to, global.main->error.context, global.main->error.context, f_string_eol_s); } else if (status == F_number_overflow) { - fl_print_format("%[' is too large.%]%r", global.main->error.to.stream, global.main->error.context, global.main->error.context, f_string_eol_s); + fl_print_format("%[' is too large.%]%r", global.main->error.to, global.main->error.context, global.main->error.context, f_string_eol_s); } else { - fl_print_format("%[' is negative.%]%r", global.main->error.to.stream, global.main->error.context, global.main->error.context, f_string_eol_s); + fl_print_format("%[' is negative.%]%r", global.main->error.to, global.main->error.context, global.main->error.context, f_string_eol_s); } } @@ -1351,7 +1351,7 @@ extern "C" { if (global.main->warning.verbosity == f_console_verbosity_debug_e) { controller_lock_print(global.main->warning.to, global.thread); - fl_print_format("%r%[%QAction type is unknown, ignoring.%]%r", global.main->warning.to.stream, f_string_eol_s, global.main->warning.context, global.main->warning.prefix, global.main->warning.context, f_string_eol_s); + fl_print_format("%r%[%QAction type is unknown, ignoring.%]%r", global.main->warning.to, f_string_eol_s, global.main->warning.context, global.main->warning.prefix, global.main->warning.context, f_string_eol_s); controller_rule_print_error_cache(global.main->warning, process->cache.action, F_true); @@ -1440,28 +1440,28 @@ extern "C" { if (main->output.verbosity != f_console_verbosity_quiet_e) { controller_lock_print(main->output.to, thread); - fl_print_format("%rSimulating execution of '%[", main->output.to.stream, f_string_eol_s, main->context.set.title); + fl_print_format("%rSimulating execution of '%[", main->output.to, f_string_eol_s, main->context.set.title); if (program.used) { - f_print_dynamic_safely(program, main->output.to.stream); + f_print_dynamic_safely(program, main->output.to); } else { - f_print_dynamic_safely(arguments.array[0], main->output.to.stream); + f_print_dynamic_safely(arguments.array[0], main->output.to); } - fl_print_format("%]' with the arguments: '%[", main->output.to.stream, main->context.set.title, main->context.set.important); + fl_print_format("%]' with the arguments: '%[", main->output.to, main->context.set.title, main->context.set.important); for (f_array_length_t i = program.used ? 0 : 1; i < arguments.used; ++i) { if (program.used && i || !program.used && i > 1) { - f_print_dynamic_raw(f_string_space_s, main->output.to.stream); + f_print_dynamic_raw(f_string_space_s, main->output.to); } - f_print_dynamic_safely(arguments.array[i], main->output.to.stream); + f_print_dynamic_safely(arguments.array[i], main->output.to); } // for - fl_print_format("%]' from '", main->output.to.stream, main->context.set.important); - fl_print_format("%[%Q%]'.%r", main->output.to.stream, main->context.set.notable, process->rule.name, main->context.set.notable, f_string_eol_s); + fl_print_format("%]' from '", main->output.to, main->context.set.important); + fl_print_format("%[%Q%]'.%r", main->output.to, main->context.set.notable, process->rule.name, main->context.set.notable, f_string_eol_s); controller_unlock_print_flush(main->output.to, thread); } @@ -1696,28 +1696,28 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_error_e) { controller_lock_print(main->error.to, thread); - fl_print_format("%rSimulating execution of '%[", main->error.to.stream, f_string_eol_s, main->context.set.title); + fl_print_format("%rSimulating execution of '%[", main->error.to, f_string_eol_s, main->context.set.title); if (program.used) { - f_print_dynamic_safely(program, main->error.to.stream); + f_print_dynamic_safely(program, main->error.to); } else { - f_print_dynamic_safely(arguments.array[0], main->error.to.stream); + f_print_dynamic_safely(arguments.array[0], main->error.to); } - fl_print_format("%]' with the arguments: '%[", main->error.to.stream, main->context.set.title, main->context.set.important); + fl_print_format("%]' with the arguments: '%[", main->error.to, main->context.set.title, main->context.set.important); for (f_array_length_t i = program.used ? 0 : 1; i < arguments.used; ++i) { if (program.used && i || !program.used && i > 1) { - f_print_dynamic_raw(f_string_space_s, main->error.to.stream); + f_print_dynamic_raw(f_string_space_s, main->error.to); } - f_print_dynamic_safely(arguments.array[i], main->error.to.stream); + f_print_dynamic_safely(arguments.array[i], main->error.to); } // for - fl_print_format("%]' from '", main->error.to.stream, main->context.set.important); - fl_print_format("%[%Q%]'.%r", main->error.to.stream, main->context.set.notable, process->rule.name, main->context.set.notable, f_string_eol_s); + fl_print_format("%]' from '", main->error.to, main->context.set.important); + fl_print_format("%[%Q%]'.%r", main->error.to, main->context.set.notable, process->rule.name, main->context.set.notable, f_string_eol_s); controller_unlock_print_flush(main->error.to, thread); } @@ -1887,20 +1887,20 @@ extern "C" { if (main->error.verbosity == f_console_verbosity_debug_e) { controller_lock_print(main->output.to, thread); - fl_print_format("%rRe-running '", main->output.to.stream, f_string_eol_s); - fl_print_format("%[%r%]' '", main->output.to.stream, main->context.set.title, process->rule.alias, main->context.set.title); - fl_print_format("%[%r%]' with a ", main->output.to.stream, main->context.set.notable, controller_rule_action_execute_type_name(action), main->context.set.notable); - fl_print_format("%[%r%] of ", main->output.to.stream, main->context.set.notable, controller_delay_s, main->context.set.notable); - fl_print_format("%[%ul%] MegaTime", main->output.to.stream, main->context.set.notable, rerun_item->delay, main->context.set.notable); + fl_print_format("%rRe-running '", main->output.to, f_string_eol_s); + fl_print_format("%[%r%]' '", main->output.to, main->context.set.title, process->rule.alias, main->context.set.title); + fl_print_format("%[%r%]' with a ", main->output.to, main->context.set.notable, controller_rule_action_execute_type_name(action), main->context.set.notable); + fl_print_format("%[%r%] of ", main->output.to, main->context.set.notable, controller_delay_s, main->context.set.notable); + fl_print_format("%[%ul%] MegaTime", main->output.to, main->context.set.notable, rerun_item->delay, main->context.set.notable); if (rerun_item->max) { - fl_print_format(" for %[%ul%]", main->output.to.stream, main->context.set.notable, rerun_item->count, main->context.set.notable); - fl_print_format(" of %[%r%] ", main->output.to.stream, main->context.set.notable, controller_max_s, main->context.set.notable); - fl_print_format("%[%ul%]", main->output.to.stream, main->context.set.notable, rerun_item->max, main->context.set.notable); - fl_print_format(".%r", main->output.to.stream, f_string_eol_s); + fl_print_format(" for %[%ul%]", main->output.to, main->context.set.notable, rerun_item->count, main->context.set.notable); + fl_print_format(" of %[%r%] ", main->output.to, main->context.set.notable, controller_max_s, main->context.set.notable); + fl_print_format("%[%ul%]", main->output.to, main->context.set.notable, rerun_item->max, main->context.set.notable); + fl_print_format(".%r", main->output.to, f_string_eol_s); } else { - fl_print_format(" with no %[%r%].%r", main->output.to.stream, main->context.set.notable, controller_max_s, main->context.set.notable, f_string_eol_s); + fl_print_format(" with no %[%r%].%r", main->output.to, main->context.set.notable, controller_max_s, main->context.set.notable, f_string_eol_s); } controller_unlock_print_flush(main->output.to, thread); @@ -2481,9 +2481,9 @@ extern "C" { if (global.main->warning.verbosity == f_console_verbosity_debug_e) { controller_lock_print(global.main->warning.to, global.thread); - fl_print_format("%r%[%QUnknown rule item action '%]", global.main->warning.to.stream, f_string_eol_s, global.main->warning.context, global.main->warning.prefix, global.main->warning.context); - fl_print_format("%[%Q%]", global.main->warning.to.stream, global.main->warning.notable, cache->action.name_action, global.main->warning.notable); - fl_print_format("%['.%]%r", global.main->warning.to.stream, global.main->warning.context, global.main->warning.context, f_string_eol_s); + fl_print_format("%r%[%QUnknown rule item action '%]", global.main->warning.to, f_string_eol_s, global.main->warning.context, global.main->warning.prefix, global.main->warning.context); + fl_print_format("%[%Q%]", global.main->warning.to, global.main->warning.notable, cache->action.name_action, global.main->warning.notable); + fl_print_format("%['.%]%r", global.main->warning.to, global.main->warning.context, global.main->warning.context, f_string_eol_s); controller_rule_print_error_cache(global.main->warning, cache->action, F_true); @@ -2499,9 +2499,9 @@ extern "C" { if (global.main->error.verbosity > f_console_verbosity_quiet_e) { controller_lock_print(global.main->error.to, global.thread); - fl_print_format("%r%[%QFSS Extended List is not allowed for the rule item action '%]", global.main->error.to.stream, f_string_eol_s, global.main->error.context, global.main->error.prefix, global.main->error.context); - fl_print_format("%[%Q%]", global.main->error.to.stream, global.main->error.notable, cache->action.name_action, global.main->error.notable); - fl_print_format("%['.%]%r", global.main->error.to.stream, global.main->error.context, global.main->error.context, f_string_eol_s); + fl_print_format("%r%[%QFSS Extended List is not allowed for the rule item action '%]", global.main->error.to, f_string_eol_s, global.main->error.context, global.main->error.prefix, global.main->error.context); + fl_print_format("%[%Q%]", global.main->error.to, global.main->error.notable, cache->action.name_action, global.main->error.notable); + fl_print_format("%['.%]%r", global.main->error.to, global.main->error.context, global.main->error.context, f_string_eol_s); controller_unlock_print_flush(global.main->error.to, global.thread); } @@ -2572,9 +2572,9 @@ extern "C" { if (global.main->error.verbosity > f_console_verbosity_quiet_e) { controller_lock_print(global.main->error.to, global.thread); - fl_print_format("%r%[%QUnsupported action type '%]", global.main->error.to.stream, f_string_eol_s, global.main->error.context, global.main->error.prefix, global.main->error.context); - fl_print_format("%[%r%]", global.main->error.to.stream, global.main->error.notable, controller_rule_action_type_name(process->action), global.main->error.notable); - fl_print_format("%[' while attempting to execute rule.%]%r", global.main->error.to.stream, global.main->error.context, global.main->error.context, f_string_eol_s); + fl_print_format("%r%[%QUnsupported action type '%]", global.main->error.to, f_string_eol_s, global.main->error.context, global.main->error.prefix, global.main->error.context); + fl_print_format("%[%r%]", global.main->error.to, global.main->error.notable, controller_rule_action_type_name(process->action), global.main->error.notable); + fl_print_format("%[' while attempting to execute rule.%]%r", global.main->error.to, global.main->error.context, global.main->error.context, f_string_eol_s); controller_rule_print_error_cache(global.main->error, process->cache.action, F_true); @@ -2993,26 +2993,26 @@ extern "C" { controller_lock_print(global.main->error.to, global.thread); if (process->rule.items.used) { - fl_print_format("%r%[%QThe rule '%]", global.main->error.to.stream, f_string_eol_s, global.main->error.context, global.main->error.prefix, global.main->error.context); - fl_print_format("%[%Q%]", global.main->error.to.stream, global.main->error.notable, process->rule.name, global.main->error.notable); - fl_print_format("%[' has no '%]", global.main->error.to.stream, global.main->error.context, global.main->error.context); - fl_print_format("%[%r%]", global.main->error.to.stream, global.main->error.notable, controller_rule_action_type_name(process->action), global.main->error.notable); - fl_print_format("%[' action to execute.%]%r", global.main->error.to.stream, global.main->error.context, global.main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe rule '%]", global.main->error.to, f_string_eol_s, global.main->error.context, global.main->error.prefix, global.main->error.context); + fl_print_format("%[%Q%]", global.main->error.to, global.main->error.notable, process->rule.name, global.main->error.notable); + fl_print_format("%[' has no '%]", global.main->error.to, global.main->error.context, global.main->error.context); + fl_print_format("%[%r%]", global.main->error.to, global.main->error.notable, controller_rule_action_type_name(process->action), global.main->error.notable); + fl_print_format("%[' action to execute.%]%r", global.main->error.to, global.main->error.context, global.main->error.context, f_string_eol_s); } else { - fl_print_format("%r%[%QThe rule '%]", global.main->error.to.stream, f_string_eol_s, global.main->error.context, global.main->error.prefix, global.main->error.context); - fl_print_format("%[%Q%]", global.main->error.to.stream, global.main->error.notable, process->rule.name, global.main->error.notable); - fl_print_format("%[ has no known '%]", global.main->error.to.stream, global.main->error.context, global.main->error.context); - fl_print_format("%[%r %r%]", global.main->error.to.stream, global.main->error.notable, controller_rule_s, controller_type_s, global.main->error.notable); - fl_print_format("%[' (such as '%]", global.main->error.to.stream, global.main->error.context, global.main->error.context); - fl_print_format("%[%r%]", global.main->error.to.stream, global.main->error.notable, controller_command_s, global.main->error.notable); - fl_print_format("%[', '%]", global.main->error.to.stream, global.main->error.context, global.main->error.context); - fl_print_format("%[%r%]", global.main->error.to.stream, global.main->error.notable, controller_service_s, global.main->error.notable); - fl_print_format("%[', '%]", global.main->error.to.stream, global.main->error.context, global.main->error.context); - fl_print_format("%[%r%]", global.main->error.to.stream, global.main->error.notable, controller_script_s, global.main->error.notable); - fl_print_format("%[', or '%]", global.main->error.to.stream, global.main->error.context, global.main->error.context); - fl_print_format("%[%r%]", global.main->error.to.stream, global.main->error.notable, controller_utility_s, global.main->error.notable); - fl_print_format("%[') to execute.%]%r", global.main->error.to.stream, global.main->error.context, global.main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe rule '%]", global.main->error.to, f_string_eol_s, global.main->error.context, global.main->error.prefix, global.main->error.context); + fl_print_format("%[%Q%]", global.main->error.to, global.main->error.notable, process->rule.name, global.main->error.notable); + fl_print_format("%[ has no known '%]", global.main->error.to, global.main->error.context, global.main->error.context); + fl_print_format("%[%r %r%]", global.main->error.to, global.main->error.notable, controller_rule_s, controller_type_s, global.main->error.notable); + fl_print_format("%[' (such as '%]", global.main->error.to, global.main->error.context, global.main->error.context); + fl_print_format("%[%r%]", global.main->error.to, global.main->error.notable, controller_command_s, global.main->error.notable); + fl_print_format("%[', '%]", global.main->error.to, global.main->error.context, global.main->error.context); + fl_print_format("%[%r%]", global.main->error.to, global.main->error.notable, controller_service_s, global.main->error.notable); + fl_print_format("%[', '%]", global.main->error.to, global.main->error.context, global.main->error.context); + fl_print_format("%[%r%]", global.main->error.to, global.main->error.notable, controller_script_s, global.main->error.notable); + fl_print_format("%[', or '%]", global.main->error.to, global.main->error.context, global.main->error.context); + fl_print_format("%[%r%]", global.main->error.to, global.main->error.notable, controller_utility_s, global.main->error.notable); + fl_print_format("%[') to execute.%]%r", global.main->error.to, global.main->error.context, global.main->error.context, f_string_eol_s); } controller_rule_print_error_cache(global.main->error, process->cache.action, F_true); @@ -3448,9 +3448,9 @@ extern "C" { if (global.main->error.verbosity > f_console_verbosity_quiet_e) { controller_lock_print(global.main->error.to, global.thread); - fl_print_format("%r%[%QThe rule '%]", global.main->error.to.stream, f_string_eol_s, global.main->error.context, global.main->error.prefix, global.main->error.context); - fl_print_format("%[%Q%]", global.main->error.to.stream, global.main->error.notable, process->rule.alias, global.main->error.notable); - fl_print_format("%[' is already on the execution dependency stack, this recursion is prohibited.%]%r", global.main->error.to.stream, global.main->error.context, global.main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe rule '%]", global.main->error.to, f_string_eol_s, global.main->error.context, global.main->error.prefix, global.main->error.context); + fl_print_format("%[%Q%]", global.main->error.to, global.main->error.notable, process->rule.alias, global.main->error.notable); + fl_print_format("%[' is already on the execution dependency stack, this recursion is prohibited.%]%r", global.main->error.to, global.main->error.context, global.main->error.context, f_string_eol_s); controller_rule_print_error_cache(global.main->error, process->cache.action, F_true); @@ -3823,9 +3823,9 @@ extern "C" { if (global.main->warning.verbosity == f_console_verbosity_debug_e) { controller_lock_print(global.main->warning.to, global.thread); - fl_print_format("%r%[%QUnknown rule item '%]", global.main->warning.to.stream, f_string_eol_s, global.main->warning.context, global.main->warning.prefix, global.main->warning.context); - fl_print_format("%[%Q%]", global.main->warning.to.stream, global.main->warning.notable, cache->action.name_item, global.main->warning.notable); - fl_print_format("%['.%]%r", global.main->warning.to.stream, global.main->warning.context, global.main->warning.context, f_string_eol_s); + fl_print_format("%r%[%QUnknown rule item '%]", global.main->warning.to, f_string_eol_s, global.main->warning.context, global.main->warning.prefix, global.main->warning.context); + fl_print_format("%[%Q%]", global.main->warning.to, global.main->warning.notable, cache->action.name_item, global.main->warning.notable); + fl_print_format("%['.%]%r", global.main->warning.to, global.main->warning.context, global.main->warning.context, f_string_eol_s); controller_rule_print_error_cache(global.main->warning, cache->action, F_true); @@ -4020,9 +4020,9 @@ extern "C" { controller_lock_print(global.main->warning.to, global.thread); - fl_print_format("%r%[%QUnknown rule setting '%]", global.main->warning.to.stream, f_string_eol_s, global.main->warning.context, global.main->warning.prefix, global.main->warning.context); - fl_print_format("%[%Q%]", global.main->warning.to.stream, global.main->warning.notable, cache->action.name_item, global.main->warning.notable); - fl_print_format("%['.%]%r", global.main->warning.to.stream, global.main->warning.context, global.main->warning.context, f_string_eol_s); + fl_print_format("%r%[%QUnknown rule setting '%]", global.main->warning.to, f_string_eol_s, global.main->warning.context, global.main->warning.prefix, global.main->warning.context); + fl_print_format("%[%Q%]", global.main->warning.to, global.main->warning.notable, cache->action.name_item, global.main->warning.notable); + fl_print_format("%['.%]%r", global.main->warning.to, global.main->warning.context, global.main->warning.context, f_string_eol_s); controller_rule_print_error_cache(global.main->warning, cache->action, F_false); @@ -4074,7 +4074,7 @@ extern "C" { controller_lock_print(global.main->warning.to, global.thread); - fl_print_format("%r%[%QEmpty rule setting.%]%r", global.main->warning.to.stream, f_string_eol_s, global.main->warning.context, global.main->warning.prefix, global.main->warning.context, f_string_eol_s); + fl_print_format("%r%[%QEmpty rule setting.%]%r", global.main->warning.to, f_string_eol_s, global.main->warning.context, global.main->warning.prefix, global.main->warning.context, f_string_eol_s); controller_rule_print_error_cache(global.main->warning, cache->action, F_false); @@ -4428,9 +4428,9 @@ extern "C" { controller_lock_print(global.main->error.to, global.thread); - fl_print_format("%r%[%QUnknown resource limit type '%]", global.main->error.to.stream, f_string_eol_s, global.main->error.context, global.main->error.prefix, global.main->error.context); - fl_print_format("%[%Q%]", global.main->error.to.stream, global.main->error.notable, cache->action.name_action, global.main->error.notable); - fl_print_format("%['.%]%r", global.main->error.to.stream, global.main->error.context, global.main->error.context, f_string_eol_s); + fl_print_format("%r%[%QUnknown resource limit type '%]", global.main->error.to, f_string_eol_s, global.main->error.context, global.main->error.prefix, global.main->error.context); + fl_print_format("%[%Q%]", global.main->error.to, global.main->error.notable, cache->action.name_action, global.main->error.notable); + fl_print_format("%['.%]%r", global.main->error.to, global.main->error.context, global.main->error.context, f_string_eol_s); controller_rule_print_error_cache(global.main->error, cache->action, F_true); @@ -4457,7 +4457,7 @@ extern "C" { controller_lock_print(global.main->error.to, global.thread); - fl_print_format("%r%[%QThe resource limit type is already specified%]%r", global.main->error.to.stream, f_string_eol_s, global.main->error.context, global.main->error.prefix, global.main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe resource limit type is already specified%]%r", global.main->error.to, f_string_eol_s, global.main->error.context, global.main->error.prefix, global.main->error.context, f_string_eol_s); controller_rule_print_error_cache(global.main->error, cache->action, F_false); @@ -4649,9 +4649,9 @@ extern "C" { if (global.main->error.verbosity > f_console_verbosity_quiet_e) { controller_lock_print(global.main->error.to, global.thread); - fl_print_format("%r%[%QRule setting has an invalid name '%]", global.main->error.to.stream, f_string_eol_s, global.main->error.context, global.main->error.prefix, global.main->error.context); - fl_print_format("%[%Q%]", global.main->error.to.stream, global.main->error.notable, *setting_value, global.main->error.notable); - fl_print_format("%[', there must be at least 1 graph character.%]%r", global.main->error.to.stream, global.main->error.context, global.main->error.context, f_string_eol_s); + fl_print_format("%r%[%QRule setting has an invalid name '%]", global.main->error.to, f_string_eol_s, global.main->error.context, global.main->error.prefix, global.main->error.context); + fl_print_format("%[%Q%]", global.main->error.to, global.main->error.notable, *setting_value, global.main->error.notable); + fl_print_format("%[', there must be at least 1 graph character.%]%r", global.main->error.to, global.main->error.context, global.main->error.context, f_string_eol_s); controller_rule_print_error_cache(global.main->error, cache->action, F_false); @@ -4791,20 +4791,20 @@ extern "C" { controller_lock_print(global.main->error.to, global.thread); - fl_print_format("%r%[%QRule setting has an invalid number '%]", global.main->error.to.stream, f_string_eol_s, global.main->error.context, global.main->error.prefix, global.main->error.context); - fl_print_format("%[%/Q%]", global.main->error.to.stream, global.main->error.notable, cache->buffer_item, cache->content_actions.array[i].array[1], global.main->error.notable); + fl_print_format("%r%[%QRule setting has an invalid number '%]", global.main->error.to, f_string_eol_s, global.main->error.context, global.main->error.prefix, global.main->error.context); + fl_print_format("%[%/Q%]", global.main->error.to, global.main->error.notable, cache->buffer_item, cache->content_actions.array[i].array[1], global.main->error.notable); if (zero_only) { - fl_print_format("%[', only%] ", global.main->error.to.stream, global.main->error.context, global.main->error.context); - fl_print_format("%[0%]%[ is", global.main->error.to.stream, global.main->error.notable, global.main->error.notable, global.main->error.context); + fl_print_format("%[', only%] ", global.main->error.to, global.main->error.context, global.main->error.context); + fl_print_format("%[0%]%[ is", global.main->error.to, global.main->error.notable, global.main->error.notable, global.main->error.context); } else { - fl_print_format("%[', only the whole numbers inclusively between%] ", global.main->error.to.stream, global.main->error.context, global.main->error.context); - fl_print_format("%[1%] %[and%] ", global.main->error.to.stream, global.main->error.notable, global.main->error.notable, global.main->error.context, global.main->error.context); - fl_print_format("%[99%] %[are", global.main->error.to.stream, global.main->error.notable, global.main->error.notable, global.main->error.context); + fl_print_format("%[', only the whole numbers inclusively between%] ", global.main->error.to, global.main->error.context, global.main->error.context); + fl_print_format("%[1%] %[and%] ", global.main->error.to, global.main->error.notable, global.main->error.notable, global.main->error.context, global.main->error.context); + fl_print_format("%[99%] %[are", global.main->error.to, global.main->error.notable, global.main->error.notable, global.main->error.context); } - fl_print_format(" allowed for the designated scheduler.%]%r", global.main->error.to.stream, global.main->error.context, global.main->error.context, f_string_eol_s); + fl_print_format(" allowed for the designated scheduler.%]%r", global.main->error.to, global.main->error.context, global.main->error.context, f_string_eol_s); controller_rule_print_error_cache(global.main->error, cache->action, F_false); @@ -4870,9 +4870,9 @@ extern "C" { controller_lock_print(global.main->error.to, global.thread); - fl_print_format("%r%[%QRule setting's first value has '%]", global.main->error.to.stream, f_string_eol_s, global.main->error.context, global.main->error.prefix, global.main->error.context); - fl_print_format("%[%/Q%]", global.main->error.to.stream, global.main->error.notable, cache->buffer_item, cache->content_actions.array[i].array[0], global.main->error.notable); - fl_print_format("%[' but only supports %r, %r, and %r.%]%r", global.main->error.to.stream, global.main->error.context, controller_kill_s, controller_start_s, controller_stop_s, global.main->error.context, f_string_eol_s); + fl_print_format("%r%[%QRule setting's first value has '%]", global.main->error.to, f_string_eol_s, global.main->error.context, global.main->error.prefix, global.main->error.context); + fl_print_format("%[%/Q%]", global.main->error.to, global.main->error.notable, cache->buffer_item, cache->content_actions.array[i].array[0], global.main->error.notable); + fl_print_format("%[' but only supports %r, %r, and %r.%]%r", global.main->error.to, global.main->error.context, controller_kill_s, controller_start_s, controller_stop_s, global.main->error.context, f_string_eol_s); controller_rule_print_error_cache(global.main->error, cache->action, F_false); @@ -5067,13 +5067,13 @@ extern "C" { controller_lock_print(global.main->error.to, global.thread); - fl_print_format("%r%[%QRule setting has an invalid number '%]", global.main->error.to.stream, f_string_eol_s, global.main->error.context, global.main->error.prefix, global.main->error.context); - fl_print_format("%[%/Q%]", global.main->error.to.stream, global.main->error.notable, cache->buffer_item, cache->content_actions.array[i].array[0], global.main->error.notable); - fl_print_format("%[', only the whole numbers inclusively between%] ", global.main->error.to.stream, global.main->error.context, global.main->error.context); - fl_print_format("%[-20%]", global.main->error.to.stream, global.main->error.notable, global.main->error.notable); - fl_print_format(" %[and%] ", global.main->error.to.stream, global.main->error.context, global.main->error.context); - fl_print_format("%[19%]", global.main->error.to.stream, global.main->error.notable, global.main->error.notable); - fl_print_format(" %[are allowed.%]%r", global.main->error.to.stream, global.main->error.context, global.main->error.context, f_string_eol_s); + fl_print_format("%r%[%QRule setting has an invalid number '%]", global.main->error.to, f_string_eol_s, global.main->error.context, global.main->error.prefix, global.main->error.context); + fl_print_format("%[%/Q%]", global.main->error.to, global.main->error.notable, cache->buffer_item, cache->content_actions.array[i].array[0], global.main->error.notable); + fl_print_format("%[', only the whole numbers inclusively between%] ", global.main->error.to, global.main->error.context, global.main->error.context); + fl_print_format("%[-20%]", global.main->error.to, global.main->error.notable, global.main->error.notable); + fl_print_format(" %[and%] ", global.main->error.to, global.main->error.context, global.main->error.context); + fl_print_format("%[19%]", global.main->error.to, global.main->error.notable, global.main->error.notable); + fl_print_format(" %[are allowed.%]%r", global.main->error.to, global.main->error.context, global.main->error.context, f_string_eol_s); controller_rule_print_error_cache(global.main->error, cache->action, F_false); @@ -5351,9 +5351,9 @@ extern "C" { if (global.main->error.verbosity > f_console_verbosity_quiet_e) { controller_lock_print(global.main->error.to, global.thread); - fl_print_format("%r%[%QRule setting has an invalid environment variable name '%]", global.main->error.to.stream, f_string_eol_s, global.main->error.context, global.main->error.prefix, global.main->error.context); - fl_print_format("%[%Q%]", global.main->error.to.stream, global.main->error.notable, setting_values->array[setting_values->used], global.main->error.notable); - fl_print_format("%['.%]%r", global.main->error.to.stream, global.main->error.context, global.main->error.context, f_string_eol_s); + fl_print_format("%r%[%QRule setting has an invalid environment variable name '%]", global.main->error.to, f_string_eol_s, global.main->error.context, global.main->error.prefix, global.main->error.context); + fl_print_format("%[%Q%]", global.main->error.to, global.main->error.notable, setting_values->array[setting_values->used], global.main->error.notable); + fl_print_format("%['.%]%r", global.main->error.to, global.main->error.context, global.main->error.context, f_string_eol_s); controller_rule_print_error_cache(global.main->error, cache->action, F_false); @@ -5393,7 +5393,7 @@ extern "C" { if (global.main->error.verbosity == f_console_verbosity_debug_e || (global.main->error.verbosity == f_console_verbosity_verbose_e && global.main->parameters.array[controller_parameter_simulate_e].result == f_console_result_found_e)) { controller_lock_print(global.main->output.to, global.thread); - fl_print_format("%rProcessing rule item action '%[%r%]' setting value to an empty set.%r", global.main->output.to.stream, f_string_eol_s, global.main->context.set.title, controller_environment_s, global.main->context.set.title, f_string_eol_s); + fl_print_format("%rProcessing rule item action '%[%r%]' setting value to an empty set.%r", global.main->output.to, f_string_eol_s, global.main->context.set.title, controller_environment_s, global.main->context.set.title, f_string_eol_s); controller_unlock_print_flush(global.main->output.to, global.thread); } @@ -5453,10 +5453,10 @@ extern "C" { controller_lock_print(global.main->error.to, global.thread); - fl_print_format("%r%[%QRule setting's second value has '%]", global.main->error.to.stream, f_string_eol_s, global.main->error.context, global.main->error.prefix, global.main->error.context); - fl_print_format("%[%/Q%]", global.main->error.to.stream, global.main->error.notable, cache->buffer_item, cache->content_actions.array[i].array[1], global.main->error.notable); - fl_print_format("%[' but only supports %r, %r, %r, %r, %r", global.main->error.to.stream, global.main->error.context, controller_freeze_s, controller_kill_s, controller_pause_s, controller_reload_s, controller_restart_s); - fl_print_format("%r, %r, %r, and %r.%]%r", global.main->error.to.stream, controller_resume_s, controller_start_s, controller_stop_s, controller_thaw_s, global.main->error.context, f_string_eol_s); + fl_print_format("%r%[%QRule setting's second value has '%]", global.main->error.to, f_string_eol_s, global.main->error.context, global.main->error.prefix, global.main->error.context); + fl_print_format("%[%/Q%]", global.main->error.to, global.main->error.notable, cache->buffer_item, cache->content_actions.array[i].array[1], global.main->error.notable); + fl_print_format("%[' but only supports %r, %r, %r, %r, %r", global.main->error.to, global.main->error.context, controller_freeze_s, controller_kill_s, controller_pause_s, controller_reload_s, controller_restart_s); + fl_print_format("%r, %r, %r, and %r.%]%r", global.main->error.to, controller_resume_s, controller_start_s, controller_stop_s, controller_thaw_s, global.main->error.context, f_string_eol_s); controller_rule_print_error_cache(global.main->error, cache->action, F_false); @@ -5502,9 +5502,9 @@ extern "C" { controller_lock_print(global.main->error.to, global.thread); - fl_print_format("%r%[%QRule setting's second value has '%]", global.main->error.to.stream, f_string_eol_s, global.main->error.context, global.main->error.prefix, global.main->error.context); - fl_print_format("%[%/Q%]", global.main->error.to.stream, global.main->error.notable, cache->buffer_item, cache->content_actions.array[i].array[1], global.main->error.notable); - fl_print_format("%[' but only supports %r, %r, and %r.%]%r", global.main->error.to.stream, global.main->error.context, controller_need_s, controller_want_s, controller_wish_s, global.main->error.context, f_string_eol_s); + fl_print_format("%r%[%QRule setting's second value has '%]", global.main->error.to, f_string_eol_s, global.main->error.context, global.main->error.prefix, global.main->error.context); + fl_print_format("%[%/Q%]", global.main->error.to, global.main->error.notable, cache->buffer_item, cache->content_actions.array[i].array[1], global.main->error.notable); + fl_print_format("%[' but only supports %r, %r, and %r.%]%r", global.main->error.to, global.main->error.context, controller_need_s, controller_want_s, controller_wish_s, global.main->error.context, f_string_eol_s); controller_rule_print_error_cache(global.main->error, cache->action, F_false); @@ -5605,10 +5605,10 @@ extern "C" { if (global.main->error.verbosity == f_console_verbosity_debug_e || (global.main->error.verbosity == f_console_verbosity_verbose_e && global.main->parameters.array[controller_parameter_simulate_e].result == f_console_result_found_e)) { controller_lock_print(global.main->output.to, global.thread); - fl_print_format("%rProcessing rule item action '%[%r%]', adding ", global.main->output.to.stream, f_string_eol_s, global.main->context.set.title, controller_on_s, global.main->context.set.title); - fl_print_format("'%[%/Q%]' of ", global.main->output.to.stream, global.main->context.set.notable, cache->buffer_item, cache->content_actions.array[i].array[1], global.main->context.set.notable); - fl_print_format("'%[%/Q%]/", global.main->output.to.stream, global.main->context.set.important, cache->buffer_item, cache->content_actions.array[i].array[2], global.main->context.set.important); - fl_print_format("%[%/Q%]'.%r", global.main->output.to.stream, global.main->context.set.important, cache->buffer_item, cache->content_actions.array[i].array[3], global.main->context.set.important, f_string_eol_s); + fl_print_format("%rProcessing rule item action '%[%r%]', adding ", global.main->output.to, f_string_eol_s, global.main->context.set.title, controller_on_s, global.main->context.set.title); + fl_print_format("'%[%/Q%]' of ", global.main->output.to, global.main->context.set.notable, cache->buffer_item, cache->content_actions.array[i].array[1], global.main->context.set.notable); + fl_print_format("'%[%/Q%]/", global.main->output.to, global.main->context.set.important, cache->buffer_item, cache->content_actions.array[i].array[2], global.main->context.set.important); + fl_print_format("%[%/Q%]'.%r", global.main->output.to, global.main->context.set.important, cache->buffer_item, cache->content_actions.array[i].array[3], global.main->context.set.important, f_string_eol_s); controller_unlock_print_flush(global.main->output.to, global.thread); } @@ -5647,9 +5647,9 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { controller_lock_print(main->error.to, global.thread); - fl_print_format("%r%[%QUnsupported action type '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%]", main->error.to.stream, main->error.notable, controller_rule_action_type_name(action), main->error.notable); - fl_print_format("%[' while attempting to validate rule execution.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QUnsupported action type '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%]", main->error.to, main->error.notable, controller_rule_action_type_name(action), main->error.notable); + fl_print_format("%[' while attempting to validate rule execution.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); controller_rule_print_error_cache(main->error, cache->action, F_true); @@ -5682,22 +5682,22 @@ extern "C" { controller_lock_print(main->output.to, global.thread); if (rule.items.used) { - fl_print_format("%rRule '", main->output.to.stream, f_string_eol_s); - fl_print_format("%[%Q%]' has no '", main->output.to.stream, main->context.set.title, rule.name, main->context.set.title); - fl_print_format("%[%r%]' action to execute and would '", main->output.to.stream, main->context.set.title, controller_rule_action_type_name(action), main->context.set.title); - fl_print_format("%[%r%]' because it is '", main->output.to.stream, main->context.set.important, options & controller_process_option_require_d ? controller_fail_s : controller_succeed_s, main->context.set.important); - fl_print_format("%[%r%]'.%r", main->output.to.stream, main->context.set.important, options & controller_process_option_require_d ? controller_required_s : controller_optional_s, main->context.set.important, f_string_eol_s); + fl_print_format("%rRule '", main->output.to, f_string_eol_s); + fl_print_format("%[%Q%]' has no '", main->output.to, main->context.set.title, rule.name, main->context.set.title); + fl_print_format("%[%r%]' action to execute and would '", main->output.to, main->context.set.title, controller_rule_action_type_name(action), main->context.set.title); + fl_print_format("%[%r%]' because it is '", main->output.to, main->context.set.important, options & controller_process_option_require_d ? controller_fail_s : controller_succeed_s, main->context.set.important); + fl_print_format("%[%r%]'.%r", main->output.to, main->context.set.important, options & controller_process_option_require_d ? controller_required_s : controller_optional_s, main->context.set.important, f_string_eol_s); } else { - fl_print_format("%rRule '", main->output.to.stream, f_string_eol_s); - fl_print_format("%[%Q%]' has no known '", main->output.to.stream, main->context.set.title, rule.name, main->context.set.title); - fl_print_format("%[%r %r%]' (such as ", main->output.to.stream, main->context.set.title, controller_rule_s, controller_type_s, main->context.set.title); - fl_print_format("'%[%r%]', ", main->output.to.stream, main->context.set.title, controller_command_s, main->context.set.title); - fl_print_format("'%[%r%]', ", main->output.to.stream, main->context.set.title, controller_service_s, main->context.set.title); - fl_print_format("'%[%r%]', or ", main->output.to.stream, main->context.set.title, controller_script_s, main->context.set.title); - fl_print_format("'%[%r%]'", main->output.to.stream, main->context.set.title, controller_utility_s, main->context.set.title); - fl_print_format(") and would '%[%r%]' because it is '", main->output.to.stream, main->context.set.important, options & controller_process_option_require_d ? controller_fail_s : controller_succeed_s, main->context.set.important); - fl_print_format("%[%r%]'.%r", main->output.to.stream, main->context.set.important, options & controller_process_option_require_d ? controller_required_s : controller_optional_s, main->context.set.important, f_string_eol_s); + fl_print_format("%rRule '", main->output.to, f_string_eol_s); + fl_print_format("%[%Q%]' has no known '", main->output.to, main->context.set.title, rule.name, main->context.set.title); + fl_print_format("%[%r %r%]' (such as ", main->output.to, main->context.set.title, controller_rule_s, controller_type_s, main->context.set.title); + fl_print_format("'%[%r%]', ", main->output.to, main->context.set.title, controller_command_s, main->context.set.title); + fl_print_format("'%[%r%]', ", main->output.to, main->context.set.title, controller_service_s, main->context.set.title); + fl_print_format("'%[%r%]', or ", main->output.to, main->context.set.title, controller_script_s, main->context.set.title); + fl_print_format("'%[%r%]'", main->output.to, main->context.set.title, controller_utility_s, main->context.set.title); + fl_print_format(") and would '%[%r%]' because it is '", main->output.to, main->context.set.important, options & controller_process_option_require_d ? controller_fail_s : controller_succeed_s, main->context.set.important); + fl_print_format("%[%r%]'.%r", main->output.to, main->context.set.important, options & controller_process_option_require_d ? controller_required_s : controller_optional_s, main->context.set.important, f_string_eol_s); } controller_unlock_print_flush(main->output.to, global.thread); @@ -5706,59 +5706,59 @@ extern "C" { controller_lock_print(main->output.to, global.thread); - fl_print_format("%rRule %[%Q%] {%r", main->output.to.stream, f_string_eol_s, main->context.set.title, rule.alias, main->context.set.title, f_string_eol_s); + fl_print_format("%rRule %[%Q%] {%r", main->output.to, f_string_eol_s, main->context.set.title, rule.alias, main->context.set.title, f_string_eol_s); // name. - fl_print_format(" %[%r%] %Q%r", main->output.to.stream, main->context.set.important, controller_name_s, main->context.set.important, rule.name, f_string_eol_s); + fl_print_format(" %[%r%] %Q%r", main->output.to, main->context.set.important, controller_name_s, main->context.set.important, rule.name, f_string_eol_s); // capability. - fl_print_format(" %[%r%] ", main->output.to.stream, main->context.set.important, controller_capability_s, main->context.set.important); + fl_print_format(" %[%r%] ", main->output.to, main->context.set.important, controller_capability_s, main->context.set.important); if (f_capability_supported()) { if (rule.capability) { cache->action.generic.used = 0; if (F_status_is_error_not(f_capability_to_text(rule.capability, &cache->action.generic))) { - f_print_dynamic_safely(cache->action.generic, main->output.to.stream); + f_print_dynamic_safely(cache->action.generic, main->output.to); } } - f_print_dynamic_raw(f_string_eol_s, main->output.to.stream); + f_print_dynamic_raw(f_string_eol_s, main->output.to); } else { - fl_print_format("%[(unsupported)%]%r", main->output.to.stream, main->context.set.warning, main->context.set.warning, f_string_eol_s); + fl_print_format("%[(unsupported)%]%r", main->output.to, main->context.set.warning, main->context.set.warning, f_string_eol_s); } // control group. - fl_print_format(" %[%r%]", main->output.to.stream, main->context.set.important, controller_cgroup_s, main->context.set.important); + fl_print_format(" %[%r%]", main->output.to, main->context.set.important, controller_cgroup_s, main->context.set.important); if (rule.has & controller_rule_has_cgroup_d) { - fl_print_format(" %r", main->output.to.stream, rule.cgroup.as_new ? controller_new_s : controller_existing_s); + fl_print_format(" %r", main->output.to, rule.cgroup.as_new ? controller_new_s : controller_existing_s); for (i = 0; i < rule.cgroup.groups.used; ++i) { if (rule.cgroup.groups.array[i].used) { - fl_print_format(" %Q", main->output.to.stream, rule.cgroup.groups.array[i]); + fl_print_format(" %Q", main->output.to, rule.cgroup.groups.array[i]); } } // for } - f_print_dynamic_raw(f_string_eol_s, main->output.to.stream); + f_print_dynamic_raw(f_string_eol_s, main->output.to); // How. - fl_print_format(" %[%r%] %r%r", main->output.to.stream, main->context.set.important, controller_how_s, main->context.set.important, options & controller_process_option_asynchronous_d ? controller_asynchronous_s : controller_synchronous_s, f_string_eol_s); + fl_print_format(" %[%r%] %r%r", main->output.to, main->context.set.important, controller_how_s, main->context.set.important, options & controller_process_option_asynchronous_d ? controller_asynchronous_s : controller_synchronous_s, f_string_eol_s); // Nice. - fl_print_format(" %[%r%]", main->output.to.stream, main->context.set.important, controller_nice_s, main->context.set.important); + fl_print_format(" %[%r%]", main->output.to, main->context.set.important, controller_nice_s, main->context.set.important); if (rule.has & controller_rule_has_nice_d) { - fl_print_format(" %i", main->output.to.stream, rule.nice); + fl_print_format(" %i", main->output.to, rule.nice); } - f_print_dynamic_raw(f_string_eol_s, main->output.to.stream); + f_print_dynamic_raw(f_string_eol_s, main->output.to); // Scheduler. - fl_print_format(" %[%r%]", main->output.to.stream, main->context.set.important, controller_scheduler_s, main->context.set.important); + fl_print_format(" %[%r%]", main->output.to, main->context.set.important, controller_scheduler_s, main->context.set.important); if (rule.has & controller_rule_has_scheduler_d) { f_string_static_t policy = f_string_static_t_initialize; @@ -5782,101 +5782,101 @@ extern "C" { policy = controller_round_robin_s; } - fl_print_format(" %r %i", main->output.to.stream, policy, rule.scheduler.priority); + fl_print_format(" %r %i", main->output.to, policy, rule.scheduler.priority); } - f_print_dynamic_raw(f_string_eol_s, main->output.to.stream); + f_print_dynamic_raw(f_string_eol_s, main->output.to); // Engine. if (rule.engine_arguments.used) { - fl_print_format(" %[%r%] %Q", main->output.to.stream, main->context.set.important, controller_engine_s, main->context.set.important, rule.engine); + fl_print_format(" %[%r%] %Q", main->output.to, main->context.set.important, controller_engine_s, main->context.set.important, rule.engine); for (i = 0; i < rule.engine_arguments.used; ++i) { if (rule.engine_arguments.array[i].used) { - fl_print_format(" %Q", main->output.to.stream, rule.engine_arguments.array[i]); + fl_print_format(" %Q", main->output.to, rule.engine_arguments.array[i]); } } // for - fl_print_format("%r", main->output.to.stream, f_string_eol_s); + fl_print_format("%r", main->output.to, f_string_eol_s); } else { - fl_print_format(" %[%r%] %Q%r", main->output.to.stream, main->context.set.important, controller_engine_s, main->context.set.important, rule.engine, f_string_eol_s); + fl_print_format(" %[%r%] %Q%r", main->output.to, main->context.set.important, controller_engine_s, main->context.set.important, rule.engine, f_string_eol_s); } // User. - fl_print_format(" %[%r%]", main->output.to.stream, main->context.set.important, controller_user_s, main->context.set.important); + fl_print_format(" %[%r%]", main->output.to, main->context.set.important, controller_user_s, main->context.set.important); if (rule.has & controller_rule_has_user_d) { - fl_print_format(" %i", main->output.to.stream, rule.user); + fl_print_format(" %i", main->output.to, rule.user); } - f_print_dynamic_raw(f_string_eol_s, main->output.to.stream); + f_print_dynamic_raw(f_string_eol_s, main->output.to); // Wait. - fl_print_format(" %[%r%] %r%r", main->output.to.stream, main->context.set.important, controller_wait_s, main->context.set.important, options & controller_process_option_wait_d ? controller_yes_s : controller_no_s, f_string_eol_s); + fl_print_format(" %[%r%] %r%r", main->output.to, main->context.set.important, controller_wait_s, main->context.set.important, options & controller_process_option_wait_d ? controller_yes_s : controller_no_s, f_string_eol_s); // Affinity. - fl_print_format(" %[%r%] {%r", main->output.to.stream, main->context.set.important, controller_affinity_s, main->context.set.important, f_string_eol_s); + fl_print_format(" %[%r%] {%r", main->output.to, main->context.set.important, controller_affinity_s, main->context.set.important, f_string_eol_s); for (i = 0; i < rule.affinity.used; ++i) { - fl_print_format(" %i%r", main->output.to.stream, rule.affinity.array[i], f_string_eol_s); + fl_print_format(" %i%r", main->output.to, rule.affinity.array[i], f_string_eol_s); } // for // Define. - fl_print_format(" }%r %[%r%] {%r", main->output.to.stream, f_string_eol_s, main->context.set.important, controller_define_s, main->context.set.important, f_string_eol_s); + fl_print_format(" }%r %[%r%] {%r", main->output.to, f_string_eol_s, main->context.set.important, controller_define_s, main->context.set.important, f_string_eol_s); for (i = 0; i < rule.define.used; ++i) { if (rule.define.array[i].name.used && rule.define.array[i].value.used) { - fl_print_format(" %Q %[=%] %Q%r", main->output.to.stream, rule.define.array[i].name, main->context.set.important, main->context.set.important, rule.define.array[i].value, f_string_eol_s); + fl_print_format(" %Q %[=%] %Q%r", main->output.to, rule.define.array[i].name, main->context.set.important, main->context.set.important, rule.define.array[i].value, f_string_eol_s); } } // for // Environment. - fl_print_format(" }%r %[%r%] {%r", main->output.to.stream, f_string_eol_s, main->context.set.important, controller_environment_s, main->context.set.important, f_string_eol_s); + fl_print_format(" }%r %[%r%] {%r", main->output.to, f_string_eol_s, main->context.set.important, controller_environment_s, main->context.set.important, f_string_eol_s); for (i = 0; i < rule.environment.used; ++i) { if (rule.environment.array[i].used) { - fl_print_format(" %Q%r", main->output.to.stream, rule.environment.array[i], f_string_eol_s); + fl_print_format(" %Q%r", main->output.to, rule.environment.array[i], f_string_eol_s); } } // for - fl_print_format(" }%r %[%r%] {%r", main->output.to.stream, f_string_eol_s, main->context.set.important, controller_parameter_s, main->context.set.important, f_string_eol_s); + fl_print_format(" }%r %[%r%] {%r", main->output.to, f_string_eol_s, main->context.set.important, controller_parameter_s, main->context.set.important, f_string_eol_s); // Parameter. for (i = 0; i < rule.parameter.used; ++i) { if (rule.parameter.array[i].name.used && rule.parameter.array[i].value.used) { - fl_print_format(" %Q %[=%] %Q%r", main->output.to.stream, rule.parameter.array[i].name, main->context.set.important, main->context.set.important, rule.parameter.array[i].value, f_string_eol_s); + fl_print_format(" %Q %[=%] %Q%r", main->output.to, rule.parameter.array[i].name, main->context.set.important, main->context.set.important, rule.parameter.array[i].value, f_string_eol_s); } } // for // Group. - fl_print_format(" }%r %[%r%] {%r", main->output.to.stream, f_string_eol_s, main->context.set.important, controller_group_s, main->context.set.important, f_string_eol_s); + fl_print_format(" }%r %[%r%] {%r", main->output.to, f_string_eol_s, main->context.set.important, controller_group_s, main->context.set.important, f_string_eol_s); if (rule.has & controller_rule_has_group_d) { - fl_print_format(" %i%r", main->output.to.stream, rule.group, f_string_eol_s); + fl_print_format(" %i%r", main->output.to, rule.group, f_string_eol_s); for (i = 0; i < rule.groups.used; ++i) { - fl_print_format(" %i%r", main->output.to.stream, rule.groups.array[i], f_string_eol_s); + fl_print_format(" %i%r", main->output.to, rule.groups.array[i], f_string_eol_s); } // for } // Limit. - fl_print_format(" }%r %[%r%] {%r", main->output.to.stream, f_string_eol_s, main->context.set.important, controller_limit_s, main->context.set.important, f_string_eol_s); + fl_print_format(" }%r %[%r%] {%r", main->output.to, f_string_eol_s, main->context.set.important, controller_limit_s, main->context.set.important, f_string_eol_s); for (i = 0; i < rule.limits.used; ++i) { - fl_print_format(" %Q %[=%] %un %un%r", main->output.to.stream, controller_rule_setting_limit_type_name(rule.limits.array[i].type), main->context.set.important, main->context.set.important, rule.limits.array[i].value.rlim_cur, rule.limits.array[i].value.rlim_max, f_string_eol_s); + fl_print_format(" %Q %[=%] %un %un%r", main->output.to, controller_rule_setting_limit_type_name(rule.limits.array[i].type), main->context.set.important, main->context.set.important, rule.limits.array[i].value.rlim_cur, rule.limits.array[i].value.rlim_max, f_string_eol_s); } // for // On. - fl_print_format(" }%r %[%r%] {%r", main->output.to.stream, f_string_eol_s, main->context.set.important, controller_on_s, main->context.set.important, f_string_eol_s); + fl_print_format(" }%r %[%r%] {%r", main->output.to, f_string_eol_s, main->context.set.important, controller_on_s, main->context.set.important, f_string_eol_s); for (i = 0; i < rule.ons.used; ++i) { - fl_print_format(" %[%r%] {%r", main->output.to.stream, main->context.set.important, controller_action_s, main->context.set.important, f_string_eol_s); + fl_print_format(" %[%r%] {%r", main->output.to, main->context.set.important, controller_action_s, main->context.set.important, f_string_eol_s); { f_string_static_t action = f_string_static_t_initialize; @@ -5909,40 +5909,40 @@ extern "C" { action = controller_thaw_s; } - fl_print_format(" %[%r%] %r%r", main->output.to.stream, main->context.set.important, controller_type_s, main->context.set.important, action, f_string_eol_s); + fl_print_format(" %[%r%] %r%r", main->output.to, main->context.set.important, controller_type_s, main->context.set.important, action, f_string_eol_s); } - fl_print_format(" %[%r%] {%r", main->output.to.stream, main->context.set.important, controller_need_s, main->context.set.important, f_string_eol_s); + fl_print_format(" %[%r%] {%r", main->output.to, main->context.set.important, controller_need_s, main->context.set.important, f_string_eol_s); for (j = 0; j < rule.ons.array[i].need.used; ++j) { if (rule.ons.array[i].need.array[j].used) { - fl_print_format(" %Q%r", main->output.to.stream, rule.ons.array[i].need.array[j], f_string_eol_s); + fl_print_format(" %Q%r", main->output.to, rule.ons.array[i].need.array[j], f_string_eol_s); } } // for - fl_print_format(" }%r %[%r%] {%r", main->output.to.stream, f_string_eol_s, main->context.set.important, controller_want_s, main->context.set.important, f_string_eol_s); + fl_print_format(" }%r %[%r%] {%r", main->output.to, f_string_eol_s, main->context.set.important, controller_want_s, main->context.set.important, f_string_eol_s); for (j = 0; j < rule.ons.array[i].want.used; ++j) { if (rule.ons.array[i].want.array[j].used) { - fl_print_format(" %Q%r", main->output.to.stream, rule.ons.array[i].want.array[j], f_string_eol_s); + fl_print_format(" %Q%r", main->output.to, rule.ons.array[i].want.array[j], f_string_eol_s); } } // for - fl_print_format(" }%r %[%r%] {%r", main->output.to.stream, f_string_eol_s, main->context.set.important, controller_wish_s, main->context.set.important, f_string_eol_s); + fl_print_format(" }%r %[%r%] {%r", main->output.to, f_string_eol_s, main->context.set.important, controller_wish_s, main->context.set.important, f_string_eol_s); for (j = 0; j < rule.ons.array[i].wish.used; ++j) { if (rule.ons.array[i].wish.array[j].used) { - fl_print_format(" %Q%r", main->output.to.stream, rule.ons.array[i].wish.array[j], f_string_eol_s); + fl_print_format(" %Q%r", main->output.to, rule.ons.array[i].wish.array[j], f_string_eol_s); } } // for - fl_print_format(" }%r }%r", main->output.to.stream, f_string_eol_s, f_string_eol_s); + fl_print_format(" }%r }%r", main->output.to, f_string_eol_s, f_string_eol_s); } // for - fl_print_format(" }%r", main->output.to.stream, f_string_eol_s); + fl_print_format(" }%r", main->output.to, f_string_eol_s); // Items. if (rule.items.used) { @@ -5958,90 +5958,90 @@ extern "C" { item = &rule.items.array[i]; - fl_print_format(" %[%r%] {%r", main->output.to.stream, main->context.set.important, controller_item_s, main->context.set.important, f_string_eol_s); + fl_print_format(" %[%r%] {%r", main->output.to, main->context.set.important, controller_item_s, main->context.set.important, f_string_eol_s); // Type. - fl_print_format(" %[%r%] %Q%r", main->output.to.stream, main->context.set.important, controller_type_s, main->context.set.important, controller_rule_item_type_name(item->type), f_string_eol_s); + fl_print_format(" %[%r%] %Q%r", main->output.to, main->context.set.important, controller_type_s, main->context.set.important, controller_rule_item_type_name(item->type), f_string_eol_s); // Pid file. - fl_print_format(" %[%r%]", main->output.to.stream, main->context.set.important, controller_pid_file_s, main->context.set.important); + fl_print_format(" %[%r%]", main->output.to, main->context.set.important, controller_pid_file_s, main->context.set.important); if (item->pid_file.used) { - fl_print_format(" %Q", main->output.to.stream, item->pid_file); + fl_print_format(" %Q", main->output.to, item->pid_file); } - f_print_dynamic_raw(f_string_eol_s, main->output.to.stream); + f_print_dynamic_raw(f_string_eol_s, main->output.to); // With. - fl_print_format(" %[%r%]", main->output.to.stream, main->context.set.important, controller_with_s, main->context.set.important); + fl_print_format(" %[%r%]", main->output.to, main->context.set.important, controller_with_s, main->context.set.important); if (item->with & controller_with_full_path_d) { - fl_print_format(" %r", main->output.to.stream, controller_full_path_s); + fl_print_format(" %r", main->output.to, controller_full_path_s); } if (item->with & controller_with_session_new_d) { - fl_print_format(" %r", main->output.to.stream, controller_session_new_s); + fl_print_format(" %r", main->output.to, controller_session_new_s); } if (item->with & controller_with_session_same_d) { - fl_print_format(" %r", main->output.to.stream, controller_session_same_s); + fl_print_format(" %r", main->output.to, controller_session_same_s); } - f_print_dynamic_raw(f_string_eol_s, main->output.to.stream); + f_print_dynamic_raw(f_string_eol_s, main->output.to); // Actions. for (j = 0; j < item->actions.used; ++j) { action = &item->actions.array[j]; - fl_print_format(" %[%r%] {%r", main->output.to.stream, main->context.set.important, controller_action_s, main->context.set.important, f_string_eol_s); - fl_print_format(" %[%r%] %r%r", main->output.to.stream, main->context.set.important, controller_type_s, main->context.set.important, controller_rule_action_type_name(action->type), f_string_eol_s); + fl_print_format(" %[%r%] {%r", main->output.to, main->context.set.important, controller_action_s, main->context.set.important, f_string_eol_s); + fl_print_format(" %[%r%] %r%r", main->output.to, main->context.set.important, controller_type_s, main->context.set.important, controller_rule_action_type_name(action->type), f_string_eol_s); if (item->type == controller_rule_item_type_script_e || item->type == controller_rule_item_type_utility_e) { - fl_print_format(" %[%r%] {%r", main->output.to.stream, main->context.set.important, controller_parameter_s, main->context.set.important, f_string_eol_s); + fl_print_format(" %[%r%] {%r", main->output.to, main->context.set.important, controller_parameter_s, main->context.set.important, f_string_eol_s); if (action->parameters.used) { if (action->parameters.array[0].used) { - f_print_terminated(" ", main->output.to.stream); + f_print_terminated(" ", main->output.to); for (k = 0; k < action->parameters.array[0].used; ++k) { if (action->parameters.array[0].string[k] == f_fss_eol_s.string[0]) { if (k + 1 < action->parameters.array[0].used) { - fl_print_format("%r ", main->output.to.stream, f_string_eol_s); + fl_print_format("%r ", main->output.to, f_string_eol_s); } } else { - f_print_character_safely(action->parameters.array[0].string[k], main->output.to.stream); + f_print_character_safely(action->parameters.array[0].string[k], main->output.to); } } // for } - f_print_dynamic_raw(f_string_eol_s, main->output.to.stream); + f_print_dynamic_raw(f_string_eol_s, main->output.to); } - fl_print_format(" }%r", main->output.to.stream, f_string_eol_s); + fl_print_format(" }%r", main->output.to, f_string_eol_s); } else { for (k = 0; k < action->parameters.used; ++k) { - fl_print_format(" %[%r%] %Q%r", main->output.to.stream, main->context.set.important, controller_parameter_s, main->context.set.important, action->parameters.array[k], f_string_eol_s); + fl_print_format(" %[%r%] %Q%r", main->output.to, main->context.set.important, controller_parameter_s, main->context.set.important, action->parameters.array[k], f_string_eol_s); } // for } if (action->ikis.used) { - fl_print_format(" %[%r%] {%r", main->output.to.stream, main->context.set.important, controller_iki_s, main->context.set.important, f_string_eol_s); + fl_print_format(" %[%r%] {%r", main->output.to, main->context.set.important, controller_iki_s, main->context.set.important, f_string_eol_s); for (k = 0; k < action->ikis.used; ++k) { for (l = 0; l < action->ikis.array[j].vocabulary.used; ++l) { - fl_print_format(" %[[%]%ul%[]%]", main->output.to.stream, main->context.set.important, main->context.set.important, k, main->context.set.important, main->context.set.important); - fl_print_format(" %/Q %[:%] %/Q%r", main->output.to.stream, action->parameters.array[k], action->ikis.array[k].vocabulary.array[l], main->context.set.important, main->context.set.important, action->parameters.array[k], action->ikis.array[k].content.array[l], f_string_eol_s); + fl_print_format(" %[[%]%ul%[]%]", main->output.to, main->context.set.important, main->context.set.important, k, main->context.set.important, main->context.set.important); + fl_print_format(" %/Q %[:%] %/Q%r", main->output.to, action->parameters.array[k], action->ikis.array[k].vocabulary.array[l], main->context.set.important, main->context.set.important, action->parameters.array[k], action->ikis.array[k].content.array[l], f_string_eol_s); } // for } // for - fl_print_format(" }%r", main->output.to.stream, f_string_eol_s); + fl_print_format(" }%r", main->output.to, f_string_eol_s); } - fl_print_format(" }%r", main->output.to.stream, f_string_eol_s); + fl_print_format(" }%r", main->output.to, f_string_eol_s); } // for // Rerun. - fl_print_format(" %[%r%] {%r", main->output.to.stream, main->context.set.important, controller_rerun_s, main->context.set.important, f_string_eol_s); + fl_print_format(" %[%r%] {%r", main->output.to, main->context.set.important, controller_rerun_s, main->context.set.important, f_string_eol_s); for (j = 0; j < controller_rule_action_execute_type__enum_size_e; ++j) { for (k = 0; k < 2; ++k) { @@ -6056,65 +6056,65 @@ extern "C" { continue; } - fl_print_format(" %[", main->output.to.stream, main->context.set.important); + fl_print_format(" %[", main->output.to, main->context.set.important); switch (j) { case controller_rule_action_execute_type_freeze_e: - f_print_dynamic_raw(controller_freeze_s, main->output.to.stream); + f_print_dynamic_raw(controller_freeze_s, main->output.to); break; case controller_rule_action_execute_type_kill_e: - f_print_dynamic_raw(controller_kill_s, main->output.to.stream); + f_print_dynamic_raw(controller_kill_s, main->output.to); break; case controller_rule_action_execute_type_pause_e: - f_print_dynamic_raw(controller_pause_s, main->output.to.stream); + f_print_dynamic_raw(controller_pause_s, main->output.to); break; case controller_rule_action_execute_type_reload_e: - f_print_dynamic_raw(controller_reload_s, main->output.to.stream); + f_print_dynamic_raw(controller_reload_s, main->output.to); break; case controller_rule_action_execute_type_restart_e: - f_print_dynamic_raw(controller_restart_s, main->output.to.stream); + f_print_dynamic_raw(controller_restart_s, main->output.to); break; case controller_rule_action_execute_type_resume_e: - f_print_dynamic_raw(controller_resume_s, main->output.to.stream); + f_print_dynamic_raw(controller_resume_s, main->output.to); break; case controller_rule_action_execute_type_start_e: - f_print_dynamic_raw(controller_start_s, main->output.to.stream); + f_print_dynamic_raw(controller_start_s, main->output.to); break; case controller_rule_action_execute_type_stop_e: - f_print_dynamic_raw(controller_stop_s, main->output.to.stream); + f_print_dynamic_raw(controller_stop_s, main->output.to); break; case controller_rule_action_execute_type_thaw_e: - f_print_dynamic_raw(controller_thaw_s, main->output.to.stream); + f_print_dynamic_raw(controller_thaw_s, main->output.to); break; default: break; } - fl_print_format("%] %r", main->output.to.stream, main->context.set.important, k ? controller_success_s : controller_failure_s); - fl_print_format(" %r %ul %r %ul", main->output.to.stream, controller_delay_s, rerun_item->delay, controller_max_s, rerun_item->max); + fl_print_format("%] %r", main->output.to, main->context.set.important, k ? controller_success_s : controller_failure_s); + fl_print_format(" %r %ul %r %ul", main->output.to, controller_delay_s, rerun_item->delay, controller_max_s, rerun_item->max); if (!k && (item->reruns[j].is & controller_rule_rerun_is_failure_reset_d) || k && (item->reruns[j].is & controller_rule_rerun_is_success_reset_d)) { - fl_print_format(" %r", main->output.to.stream, controller_reset_s); + fl_print_format(" %r", main->output.to, controller_reset_s); } - f_print_dynamic_raw(f_string_eol_s, main->output.to.stream); + f_print_dynamic_raw(f_string_eol_s, main->output.to); } // for } // for - fl_print_format(" }%r", main->output.to.stream, f_string_eol_s); + fl_print_format(" }%r", main->output.to, f_string_eol_s); - fl_print_format(" }%r", main->output.to.stream, f_string_eol_s); + fl_print_format(" }%r", main->output.to, f_string_eol_s); } // for } - fl_print_format("}%r", main->output.to.stream, f_string_eol_s); + fl_print_format("}%r", main->output.to, f_string_eol_s); controller_unlock_print_flush(main->output.to, global.thread); } diff --git a/level_3/controller/c/rule/private-rule_print.c b/level_3/controller/c/rule/private-rule_print.c index 8602e92..1ea863e 100644 --- a/level_3/controller/c/rule/private-rule_print.c +++ b/level_3/controller/c/rule/private-rule_print.c @@ -85,242 +85,242 @@ extern "C" { controller_lock_print(print->to, (controller_thread_t *) process->main_thread); - fl_print_format("%r%[%QThe %r '%]", print->to.stream, f_string_eol_s, print->context, print->prefix, script_is ? controller_engine_s : controller_program_s, print->context); - fl_print_format("%[%Q%]", print->to.stream, print->notable, name, print->notable); + fl_print_format("%r%[%QThe %r '%]", print->to, f_string_eol_s, print->context, print->prefix, script_is ? controller_engine_s : controller_program_s, print->context); + fl_print_format("%[%Q%]", print->to, print->notable, name, print->notable); if (status == F_control_group || status == F_limit || status == F_processor || status == F_schedule) { - fl_print_format("%[' failed to setup the '%]%[", print->to.stream, print->context, print->context, print->notable); + fl_print_format("%[' failed to setup the '%]%[", print->to, print->context, print->context, print->notable); if (status == F_control_group) { - f_print_dynamic_raw(controller_cgroup_s, print->to.stream); + f_print_dynamic_raw(controller_cgroup_s, print->to); } else if (status == F_limit) { - f_print_dynamic_raw(controller_limit_s, print->to.stream); + f_print_dynamic_raw(controller_limit_s, print->to); } else if (status == F_processor) { - f_print_dynamic_raw(controller_processor_s, print->to.stream); + f_print_dynamic_raw(controller_processor_s, print->to); } else if (status == F_schedule) { - f_print_dynamic_raw(controller_scheduler_s, print->to.stream); + f_print_dynamic_raw(controller_scheduler_s, print->to); } - fl_print_format("%]%['.%]%r", print->to.stream, print->notable, print->context, print->context, f_string_eol_s); + fl_print_format("%]%['.%]%r", print->to, print->notable, print->context, print->context, f_string_eol_s); } else if (WIFEXITED(process->result) ? WEXITSTATUS(process->result) : 0) { const uint8_t code = WIFEXITED(process->result) ? WEXITSTATUS(process->result) : 0; if (code == F_execute_access) { - fl_print_format("%[' failed, access is denied.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' failed, access is denied.%]%r", print->to, print->context, print->context, f_string_eol_s); } else if (code == F_execute_bad) { - fl_print_format("%[' failed, unsupported format.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' failed, unsupported format.%]%r", print->to, print->context, print->context, f_string_eol_s); } else if (code == F_execute_buffer) { - fl_print_format("%[' invalid memory access in arguments buffer.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' invalid memory access in arguments buffer.%]%r", print->to, print->context, print->context, f_string_eol_s); } else if (code == F_execute_busy) { - fl_print_format("%[' required resources are unavailable, too busy.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' required resources are unavailable, too busy.%]%r", print->to, print->context, print->context, f_string_eol_s); } else if (code == F_execute_capability) { - fl_print_format("%[' failed to setup capabilities.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' failed to setup capabilities.%]%r", print->to, print->context, print->context, f_string_eol_s); } else if (code == F_execute_control_group) { - fl_print_format("%[' failed to setup control group.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' failed to setup control group.%]%r", print->to, print->context, print->context, f_string_eol_s); } else if (code == F_execute_child) { - fl_print_format("%[' failed to setup child process.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' failed to setup child process.%]%r", print->to, print->context, print->context, f_string_eol_s); } else if (code == F_execute_directory_not) { - fl_print_format("%[' invalid path, part of the path is not a valid directory.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' invalid path, part of the path is not a valid directory.%]%r", print->to, print->context, print->context, f_string_eol_s); } else if (code == F_execute_failure) { - fl_print_format("%[' failed during execution.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' failed during execution.%]%r", print->to, print->context, print->context, f_string_eol_s); } else if (code == F_execute_file_found_not) { - fl_print_format("%[' failed, unable to find file.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' failed, unable to find file.%]%r", print->to, print->context, print->context, f_string_eol_s); } else if (code == F_execute_file_type_directory) { - fl_print_format("%[' ELF interpreter is a directory.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' ELF interpreter is a directory.%]%r", print->to, print->context, print->context, f_string_eol_s); } else if (code == F_execute_fork_not) { - fl_print_format("%[' fork failure.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' fork failure.%]%r", print->to, print->context, print->context, f_string_eol_s); } else if (code == F_execute_format_not) { - fl_print_format("%[' could not be executed because the program has an invalid ELF header.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' could not be executed because the program has an invalid ELF header.%]%r", print->to, print->context, print->context, f_string_eol_s); } else if (code == F_execute_group) { - fl_print_format("%[' failed to setup group.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' failed to setup group.%]%r", print->to, print->context, print->context, f_string_eol_s); } else if (code == F_execute_input_output) { - fl_print_format("%[' I/O failure.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' I/O failure.%]%r", print->to, print->context, print->context, f_string_eol_s); } else if (code == F_execute_limit) { - fl_print_format("%[' failed to setup resource limits.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' failed to setup resource limits.%]%r", print->to, print->context, print->context, f_string_eol_s); } else if (code == F_execute_loop) { - fl_print_format("%[' max recursion reached.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' max recursion reached.%]%r", print->to, print->context, print->context, f_string_eol_s); } else if (code == F_execute_memory_not) { - fl_print_format("%[' is out of memory.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' is out of memory.%]%r", print->to, print->context, print->context, f_string_eol_s); } else if (code == F_execute_name_not) { - fl_print_format("%[' file name or path is too long.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' file name or path is too long.%]%r", print->to, print->context, print->context, f_string_eol_s); } else if (code == F_execute_nice) { - fl_print_format("%[' failed to setup niceness.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' failed to setup niceness.%]%r", print->to, print->context, print->context, f_string_eol_s); } else if (code == F_execute_parameter) { - fl_print_format("%[' failed due to an invalid parameter.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' failed due to an invalid parameter.%]%r", print->to, print->context, print->context, f_string_eol_s); } else if (code == F_execute_pipe) { - fl_print_format("%[' pipe failed.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' pipe failed.%]%r", print->to, print->context, print->context, f_string_eol_s); } else if (code == F_execute_processor) { - fl_print_format("%[' failed to setup processor affinity.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' failed to setup processor affinity.%]%r", print->to, print->context, print->context, f_string_eol_s); } else if (code == F_execute_prohibited) { - fl_print_format("%[' access prohibited.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' access prohibited.%]%r", print->to, print->context, print->context, f_string_eol_s); } else if (code == F_execute_resource_not) { - fl_print_format("%[' resource limit reached.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' resource limit reached.%]%r", print->to, print->context, print->context, f_string_eol_s); } else if (code == F_execute_schedule) { - fl_print_format("%[' failed to setup scheduler.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' failed to setup scheduler.%]%r", print->to, print->context, print->context, f_string_eol_s); } else if (code == F_execute_terminal) { - fl_print_format("%[' failed while processing the terminal.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' failed while processing the terminal.%]%r", print->to, print->context, print->context, f_string_eol_s); } else if (code == F_execute_terminal_known_not) { - fl_print_format("%[' cannot process terminal, unknown terminal control command.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' cannot process terminal, unknown terminal control command.%]%r", print->to, print->context, print->context, f_string_eol_s); } else if (code == F_execute_terminal_not) { - fl_print_format("%[' cannot process terminal, not a known terminal.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' cannot process terminal, not a known terminal.%]%r", print->to, print->context, print->context, f_string_eol_s); } else if (code == F_execute_terminal_prohibited) { - fl_print_format("%[' insufficient permissions to process the terminal.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' insufficient permissions to process the terminal.%]%r", print->to, print->context, print->context, f_string_eol_s); } else if (code == F_execute_terminal_valid_not) { - fl_print_format("%[' invalid parameter while processing the terminal.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' invalid parameter while processing the terminal.%]%r", print->to, print->context, print->context, f_string_eol_s); } else if (code == F_execute_too_large) { - fl_print_format("%[' too many arguments or arguments are too large.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' too many arguments or arguments are too large.%]%r", print->to, print->context, print->context, f_string_eol_s); } else if (code == F_execute_user) { - fl_print_format("%[' failed to setup user.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' failed to setup user.%]%r", print->to, print->context, print->context, f_string_eol_s); } else if (code == F_execute_valid_not) { - fl_print_format("%[' unknown ELF interpreter format.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' unknown ELF interpreter format.%]%r", print->to, print->context, print->context, f_string_eol_s); } else if (code == F_execute_invoke_not) { - fl_print_format("%[' cannot execute command.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' cannot execute command.%]%r", print->to, print->context, print->context, f_string_eol_s); } else if (code == F_execute_found_not) { - fl_print_format("%[' command not found.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' command not found.%]%r", print->to, print->context, print->context, f_string_eol_s); } else if (code == F_execute_found_not) { - fl_print_format("%[' invalid argument to exit().%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' invalid argument to exit().%]%r", print->to, print->context, print->context, f_string_eol_s); } else if (code == F_execute_signal_hangup) { - fl_print_format("%[' hang up signal received.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' hang up signal received.%]%r", print->to, print->context, print->context, f_string_eol_s); } else if (code == F_execute_signal_interrupt) { - fl_print_format("%[' interrupt signal received.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' interrupt signal received.%]%r", print->to, print->context, print->context, f_string_eol_s); } else if (code == F_execute_signal_quit) { - fl_print_format("%[' quit signal received.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' quit signal received.%]%r", print->to, print->context, print->context, f_string_eol_s); } else if (code == F_execute_signal_illegal) { - fl_print_format("%[' illegal signal received.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' illegal signal received.%]%r", print->to, print->context, print->context, f_string_eol_s); } else if (code == F_execute_signal_trap) { - fl_print_format("%[' trap signal received.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' trap signal received.%]%r", print->to, print->context, print->context, f_string_eol_s); } else if (code == F_execute_signal_abort) { - fl_print_format("%[' abort signal received.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' abort signal received.%]%r", print->to, print->context, print->context, f_string_eol_s); } else if (code == F_execute_signal_bus_error) { - fl_print_format("%[' bus error signal received.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' bus error signal received.%]%r", print->to, print->context, print->context, f_string_eol_s); } else if (code == F_execute_signal_floating_point_error) { - fl_print_format("%[' floating point error signal received.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' floating point error signal received.%]%r", print->to, print->context, print->context, f_string_eol_s); } else if (code == F_execute_signal_kill) { - fl_print_format("%[' kill signal received.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' kill signal received.%]%r", print->to, print->context, print->context, f_string_eol_s); } else if (code == F_execute_signal_user_1) { - fl_print_format("%[' user 1 signal received.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' user 1 signal received.%]%r", print->to, print->context, print->context, f_string_eol_s); } else if (code == F_execute_signal_segmentation_fault) { - fl_print_format("%[' segmentation fault signal received.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' segmentation fault signal received.%]%r", print->to, print->context, print->context, f_string_eol_s); } else if (code == F_execute_signal_user_2) { - fl_print_format("%[' user 2 signal received.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' user 2 signal received.%]%r", print->to, print->context, print->context, f_string_eol_s); } else if (code == F_execute_signal_broken_pipe) { - fl_print_format("%[' broken pipe signal received.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' broken pipe signal received.%]%r", print->to, print->context, print->context, f_string_eol_s); } else if (code == F_execute_signal_alarm_clock) { - fl_print_format("%[' alarm clock signal received.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' alarm clock signal received.%]%r", print->to, print->context, print->context, f_string_eol_s); } else if (code == F_execute_signal_termination) { - fl_print_format("%[' terminate signal received.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' terminate signal received.%]%r", print->to, print->context, print->context, f_string_eol_s); } else if (code == F_execute_signal_stack_fault) { - fl_print_format("%[' stack fault signal received.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' stack fault signal received.%]%r", print->to, print->context, print->context, f_string_eol_s); } else if (code == F_execute_signal_child) { - fl_print_format("%[' child signal received.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' child signal received.%]%r", print->to, print->context, print->context, f_string_eol_s); } else if (code == F_execute_signal_continue) { - fl_print_format("%[' continue signal received.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' continue signal received.%]%r", print->to, print->context, print->context, f_string_eol_s); } else if (code == F_execute_signal_stop) { - fl_print_format("%[' stop signal received.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' stop signal received.%]%r", print->to, print->context, print->context, f_string_eol_s); } else if (code == F_execute_signal_keyboard_stop) { - fl_print_format("%[' keyboard stop signal received.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' keyboard stop signal received.%]%r", print->to, print->context, print->context, f_string_eol_s); } else if (code == F_execute_signal_tty_in) { - fl_print_format("%[' TTY in signal received.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' TTY in signal received.%]%r", print->to, print->context, print->context, f_string_eol_s); } else if (code == F_execute_signal_tty_out) { - fl_print_format("%[' TTY out signal received.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' TTY out signal received.%]%r", print->to, print->context, print->context, f_string_eol_s); } else if (code == F_execute_signal_urgent) { - fl_print_format("%[' urgent signal received.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' urgent signal received.%]%r", print->to, print->context, print->context, f_string_eol_s); } else if (code == F_execute_signal_cpu_limit) { - fl_print_format("%[' CPU limit signal received.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' CPU limit signal received.%]%r", print->to, print->context, print->context, f_string_eol_s); } else if (code == F_execute_signal_file_size_limit) { - fl_print_format("%[' file size signal received.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' file size signal received.%]%r", print->to, print->context, print->context, f_string_eol_s); } else if (code == F_execute_signal_virtual_alarm_clock) { - fl_print_format("%[' virtual alarm clock signal received.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' virtual alarm clock signal received.%]%r", print->to, print->context, print->context, f_string_eol_s); } else if (code == F_execute_signal_profile_alarm_clock) { - fl_print_format("%[' profile alarm clock signal received.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' profile alarm clock signal received.%]%r", print->to, print->context, print->context, f_string_eol_s); } else if (code == F_execute_signal_window_size_change) { - fl_print_format("%[' window size change signal received.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' window size change signal received.%]%r", print->to, print->context, print->context, f_string_eol_s); } else if (code == F_execute_signal_pollable_event) { - fl_print_format("%[' pollable signal received.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' pollable signal received.%]%r", print->to, print->context, print->context, f_string_eol_s); } else if (code == F_execute_signal_power_failure) { - fl_print_format("%[' power failure signal received.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' power failure signal received.%]%r", print->to, print->context, print->context, f_string_eol_s); } else if (code == F_execute_signal_bad_system_call) { - fl_print_format("%[' bad system call signal received.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' bad system call signal received.%]%r", print->to, print->context, print->context, f_string_eol_s); } else { - fl_print_format("%[' failed with the execute error code %]", print->to.stream, print->context, print->context); - fl_print_format("%[%i%]", print->to.stream, print->notable, code, print->notable); - fl_print_format("%[.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' failed with the execute error code %]", print->to, print->context, print->context); + fl_print_format("%[%i%]", print->to, print->notable, code, print->notable); + fl_print_format("%[.%]%r", print->to, print->context, print->context, f_string_eol_s); } } else { - fl_print_format("%[' failed.%]%r", print->to.stream, print->context, print->context, f_string_eol_s); + fl_print_format("%[' failed.%]%r", print->to, print->context, print->context, f_string_eol_s); } controller_unlock_print_flush(print->to, (controller_thread_t *) process->main_thread); @@ -418,9 +418,9 @@ extern "C" { controller_lock_print(global.main->output.to, global.thread); - fl_print_format("%rProcessing rule item action '%[%Q%]'", global.main->output.to.stream, f_string_eol_s, global.main->context.set.title, name, global.main->context.set.title); - fl_print_format(" mapping '%[%Q%]'", global.main->output.to.stream, global.main->context.set.important, map.name, global.main->context.set.important); - fl_print_format(" to value '%[%Q%]'.%r", global.main->output.to.stream, global.main->context.set.important, map.value, global.main->context.set.important, f_string_eol_s); + fl_print_format("%rProcessing rule item action '%[%Q%]'", global.main->output.to, f_string_eol_s, global.main->context.set.title, name, global.main->context.set.title); + fl_print_format(" mapping '%[%Q%]'", global.main->output.to, global.main->context.set.important, map.name, global.main->context.set.important); + fl_print_format(" to value '%[%Q%]'.%r", global.main->output.to, global.main->context.set.important, map.value, global.main->context.set.important, f_string_eol_s); controller_unlock_print_flush(global.main->output.to, global.thread); } @@ -435,17 +435,17 @@ extern "C" { controller_lock_print(global.main->output.to, global.thread); - fl_print_format("%rProcessing rule item action '%[%Q%]' setting ", global.main->output.to.stream, f_string_eol_s, global.main->context.set.title, name, global.main->context.set.title); + fl_print_format("%rProcessing rule item action '%[%Q%]' setting ", global.main->output.to, f_string_eol_s, global.main->context.set.title, name, global.main->context.set.title); if (name_sub.used) { - fl_print_format("'%[%Q%]'", global.main->output.to.stream, global.main->context.set.notable, name_sub, global.main->context.set.notable); + fl_print_format("'%[%Q%]'", global.main->output.to, global.main->context.set.notable, name_sub, global.main->context.set.notable); } else { - f_print_terminated("value", global.main->output.to.stream); + f_print_terminated("value", global.main->output.to); } - fl_print_format(" to '%[%Q%]'", global.main->output.to.stream, global.main->context.set.important, value, global.main->context.set.important); - fl_print_format("%S.%r", global.main->output.to.stream, suffix, f_string_eol_s); + fl_print_format(" to '%[%Q%]'", global.main->output.to, global.main->context.set.important, value, global.main->context.set.important); + fl_print_format("%S.%r", global.main->output.to, suffix, f_string_eol_s); controller_unlock_print_flush(global.main->output.to, global.thread); } @@ -460,25 +460,25 @@ extern "C" { controller_lock_print(global.main->output.to, global.thread); - fl_print_format("%rProcessing rule item action '%[%Q%]' setting value to", global.main->output.to.stream, f_string_eol_s, global.main->context.set.title, name, global.main->context.set.title); + fl_print_format("%rProcessing rule item action '%[%Q%]' setting value to", global.main->output.to, f_string_eol_s, global.main->context.set.title, name, global.main->context.set.title); for (f_array_length_t j = 0; j < cache->content_actions.array[index].used; ++j) { - fl_print_format(" '%[%/Q%]'", global.main->output.to.stream, global.main->context.set.important, cache->buffer_item, cache->content_actions.array[index].array[j], global.main->context.set.important); + fl_print_format(" '%[%/Q%]'", global.main->output.to, global.main->context.set.important, cache->buffer_item, cache->content_actions.array[index].array[j], global.main->context.set.important); if (j + 2 == cache->content_actions.array[index].used) { if (cache->content_actions.array[index].used > 2) { - f_print_terminated(",", global.main->output.to.stream); + f_print_terminated(",", global.main->output.to); } - f_print_terminated(" and", global.main->output.to.stream); + f_print_terminated(" and", global.main->output.to); } else if (j + 1 < cache->content_actions.array[index].used) { - f_print_terminated(",", global.main->output.to.stream); + f_print_terminated(",", global.main->output.to); } } // for - fl_print_format(".%r", global.main->output.to.stream, f_string_eol_s); + fl_print_format(".%r", global.main->output.to, f_string_eol_s); controller_unlock_print_flush(global.main->output.to, global.thread); } diff --git a/level_3/controller/c/thread/private-thread.c b/level_3/controller/c/thread/private-thread.c index b7582b4..e4afc79 100644 --- a/level_3/controller/c/thread/private-thread.c +++ b/level_3/controller/c/thread/private-thread.c @@ -222,9 +222,9 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { controller_lock_print(main->error.to, &thread); - fl_print_format("%r%[%QThe pid file '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%Q%]", main->error.to.stream, main->error.notable, setting->path_pid, main->error.notable); - fl_print_format("%[' must not already exist.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe pid file '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%Q%]", main->error.to, main->error.notable, setting->path_pid, main->error.notable); + fl_print_format("%[' must not already exist.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); controller_unlock_print_flush(main->error.to, &thread); } @@ -322,7 +322,7 @@ extern "C" { fll_program_print_signal_received(main->warning, setting->line_first, thread.signal); if (main->output.verbosity != f_console_verbosity_quiet_e) { - fll_print_dynamic_raw(f_string_eol_s, main->output.to.stream); + fll_print_dynamic_raw(f_string_eol_s, main->output.to); } return F_status_set_error(F_interrupt); diff --git a/level_3/controller/c/thread/private-thread_entry.c b/level_3/controller/c/thread/private-thread_entry.c index 1331d4a..2050b7d 100644 --- a/level_3/controller/c/thread/private-thread_entry.c +++ b/level_3/controller/c/thread/private-thread_entry.c @@ -42,9 +42,9 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { controller_lock_print(main->error.to, entry->global->thread); - fl_print_format("%r%[%QThe pid file '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%Q%]", main->error.to.stream, main->error.notable, entry->setting->path_pid, main->error.notable); - fl_print_format("%[' must not already exist.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe pid file '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%Q%]", main->error.to, main->error.notable, entry->setting->path_pid, main->error.notable); + fl_print_format("%[' must not already exist.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); controller_unlock_print_flush(main->error.to, entry->global->thread); } @@ -81,9 +81,9 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { controller_lock_print(main->error.to, entry->global->thread); - fl_print_format("%r%[%QFailed while processing requested failsafe item '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%Q%]", main->error.to.stream, main->error.notable, entry->global->setting->entry.items.array[entry->global->setting->failsafe_item_id].name, main->error.notable); - fl_print_format("%['.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QFailed while processing requested failsafe item '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%Q%]", main->error.to, main->error.notable, entry->global->setting->entry.items.array[entry->global->setting->failsafe_item_id].name, main->error.notable); + fl_print_format("%['.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); controller_unlock_print_flush(main->error.to, entry->global->thread); } @@ -196,9 +196,9 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { controller_lock_print(main->error.to, entry->global->thread); - fl_print_format("%r%[%QFailed while processing requested failsafe item '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%Q%]", main->error.to.stream, main->error.notable, entry->global->setting->entry.items.array[entry->global->setting->failsafe_item_id].name, main->error.notable); - fl_print_format("%['.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QFailed while processing requested failsafe item '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%Q%]", main->error.to, main->error.notable, entry->global->setting->entry.items.array[entry->global->setting->failsafe_item_id].name, main->error.notable); + fl_print_format("%['.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); controller_unlock_print_flush(main->error.to, entry->global->thread); } diff --git a/level_3/fake/c/fake.c b/level_3/fake/c/fake.c index 658d754..7e48ba1 100644 --- a/level_3/fake/c/fake.c +++ b/level_3/fake/c/fake.c @@ -174,7 +174,7 @@ extern "C" { status = F_status_set_error(F_parameter); if (main->error.verbosity > f_console_verbosity_quiet_e) { - fll_print_format("%r%[%QYou failed to specify a valid operation.%]%r", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context, f_string_eol_s); + fll_print_format("%r%[%QYou failed to specify a valid operation.%]%r", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context, f_string_eol_s); } } } @@ -186,11 +186,11 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe operation '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%]", main->error.to.stream, main->error.notable, fake_other_operation_build_s, main->error.notable); - fl_print_format("%[' cannot be specified with the operation '%]", main->error.to.stream, main->error.context, main->error.context); - fl_print_format("%[%r%]", main->error.to.stream, main->error.notable, fake_other_operation_make_s, main->error.notable); - fl_print_format("%['.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe operation '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%]", main->error.to, main->error.notable, fake_other_operation_build_s, main->error.notable); + fl_print_format("%[' cannot be specified with the operation '%]", main->error.to, main->error.context, main->error.context); + fl_print_format("%[%r%]", main->error.to, main->error.notable, fake_other_operation_make_s, main->error.notable); + fl_print_format("%['.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -348,9 +348,9 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe operation '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%]", main->error.to.stream, main->error.notable, operations_name, main->error.notable); - fl_print_format("%[' failed.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe operation '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%]", main->error.to, main->error.notable, operations_name, main->error.notable); + fl_print_format("%[' failed.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -359,7 +359,7 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_error_e) { if (F_status_is_error_not(status) && status != F_child) { - fll_print_format("%rAll operations complete.%r%r", main->output.to.stream, f_string_eol_s, f_string_eol_s, f_string_eol_s); + fll_print_format("%rAll operations complete.%r%r", main->output.to, f_string_eol_s, f_string_eol_s, f_string_eol_s); } } } @@ -369,7 +369,7 @@ extern "C" { f_file_stream_flush(main->output.to); } - fll_print_dynamic_raw(f_string_eol_s, main->output.to.stream); + fll_print_dynamic_raw(f_string_eol_s, main->output.to); } fake_data_delete(&data); diff --git a/level_3/fake/c/print.c b/level_3/fake/c/print.c index 97aa71e..b9195b6 100644 --- a/level_3/fake/c/print.c +++ b/level_3/fake/c/print.c @@ -10,13 +10,13 @@ extern "C" { f_file_stream_lock(print.to); - f_print_dynamic_raw(setting->line_first, print.to.stream); + f_print_dynamic_raw(setting->line_first, print.to); fll_program_print_help_header(print, fake_program_name_long_s, fake_program_version_s); fll_program_print_help_option_standard(print); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); + f_print_dynamic_raw(f_string_eol_s, print.to); fll_program_print_help_option(print, fake_short_define_s, fake_long_define_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Append an additional define after defines from settings file."); fll_program_print_help_option(print, fake_short_fakefile_s, fake_long_fakefile_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, "Use this fakefile."); @@ -24,14 +24,14 @@ extern "C" { fll_program_print_help_option(print, fake_short_process_s, fake_long_process_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Process name for storing build states."); fll_program_print_help_option(print, fake_short_settings_s, fake_long_settings_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, "Use this settings file."); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); + f_print_dynamic_raw(f_string_eol_s, print.to); fll_program_print_help_option(print, fake_short_path_build_s, fake_long_path_build_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Specify a custom build directory."); fll_program_print_help_option(print, fake_short_path_data_s, fake_long_path_data_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Specify a custom path to the data files."); fll_program_print_help_option(print, fake_short_path_sources_s, fake_long_path_sources_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, "Specify a custom path to the source files."); fll_program_print_help_option(print, fake_short_path_work_s, fake_long_path_work_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Use includes/libraries/programs from this directory instead of system."); - fl_print_format("%r%r %[Special Options:%] ", print.to.stream, f_string_eol_s, f_string_eol_s, print.set->important, print.set->important); + fl_print_format("%r%r %[Special Options:%] ", print.to, f_string_eol_s, f_string_eol_s, print.set->important, print.set->important); fll_program_print_help_option_long(print, fake_long_documents_disabled_s, f_console_symbol_long_enable_s, " Forcibly do not build documents files."); fll_program_print_help_option_long(print, fake_long_documents_enabled_s, f_console_symbol_long_enable_s, " Forcibly do build documents files."); @@ -40,37 +40,37 @@ extern "C" { fll_program_print_help_option_long(print, fake_long_static_disabled_s, f_console_symbol_long_enable_s, "Forcibly do not build static files."); fll_program_print_help_option_long(print, fake_long_static_enabled_s, f_console_symbol_long_enable_s, " Forcibly do build static files."); - fl_print_format("%r%r %[Operations:%] ", print.to.stream, f_string_eol_s, f_string_eol_s, print.set->important, print.set->important); + fl_print_format("%r%r %[Operations:%] ", print.to, f_string_eol_s, f_string_eol_s, print.set->important, print.set->important); fll_program_print_help_option_other(print, fake_other_operation_build_s, " Build or compile the code based on build settings file."); fll_program_print_help_option_other(print, fake_other_operation_clean_s, " Delete all build files."); fll_program_print_help_option_other(print, fake_other_operation_make_s, " Build or compile the code based on fakefile (default)."); fll_program_print_help_option_other(print, fake_other_operation_skeleton_s, "Build a skeleton directory structure."); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); + f_print_dynamic_raw(f_string_eol_s, print.to); + f_print_dynamic_raw(f_string_eol_s, print.to); fll_program_print_help_usage(print, fake_program_name_s, fake_program_help_parameters_s); - fl_print_format("%r When performing the %[%r%] operation, the", print.to.stream, f_string_eol_s, print.set->notable, fake_other_operation_build_s, print.set->notable); - fl_print_format(" %[%r%r%] parameter specifies a name (limited to alpha-numeric, underscore, and dash) to be used in addition to the global.%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fake_long_mode_s, print.set->notable, f_string_eol_s); + fl_print_format("%r When performing the %[%r%] operation, the", print.to, f_string_eol_s, print.set->notable, fake_other_operation_build_s, print.set->notable); + fl_print_format(" %[%r%r%] parameter specifies a name (limited to alpha-numeric, underscore, and dash) to be used in addition to the global.%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fake_long_mode_s, print.set->notable, f_string_eol_s); - fl_print_format(" For example, when a %[%r%]", print.to.stream, print.set->notable, fake_make_parameter_variable_mode_s, print.set->notable); - fl_print_format(" of 'fll_monolithic' is specified, build libraries from both 'build_libraries' and 'build_libraries-fll_monolithic' are used (but not 'build_libraries-fll_level').%r%r", print.to.stream, f_string_eol_s, f_string_eol_s); + fl_print_format(" For example, when a %[%r%]", print.to, print.set->notable, fake_make_parameter_variable_mode_s, print.set->notable); + fl_print_format(" of 'fll_monolithic' is specified, build libraries from both 'build_libraries' and 'build_libraries-fll_monolithic' are used (but not 'build_libraries-fll_level').%r%r", print.to, f_string_eol_s, f_string_eol_s); - fl_print_format(" When specifying the %[%r%] or the %[%r%]", print.to.stream, print.set->notable, fake_make_parameter_variable_fakefile_s, print.set->notable, print.set->notable, fake_make_parameter_variable_settings_s, print.set->notable); - fl_print_format(" parameters, the project root is seached first and then the build data director is searched when the given file does not contain a directory separator.%r", print.to.stream, f_string_eol_s); + fl_print_format(" When specifying the %[%r%] or the %[%r%]", print.to, print.set->notable, fake_make_parameter_variable_fakefile_s, print.set->notable, print.set->notable, fake_make_parameter_variable_settings_s, print.set->notable); + fl_print_format(" parameters, the project root is seached first and then the build data director is searched when the given file does not contain a directory separator.%r", print.to, f_string_eol_s); - fl_print_format(" For example, with '%[%r%r my_fakefile%]' the fakefile at", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fake_long_fakefile_s, print.set->notable); - fl_print_format(" '%[./my_fakefile%]' is used if found, but if it is not found then", print.to.stream, print.set->notable, print.set->notable); - fl_print_format(" '%[./%r%rmy_fakefile%]' is used if found.%r", print.to.stream, print.set->notable, fake_default_path_data_s, fake_default_path_build_s, print.set->notable, f_string_eol_s); - fl_print_format(" For example, with '%[%r%r ./my_fakefile%]' the fakefile at", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fake_long_fakefile_s, print.set->notable); - fl_print_format(" '%[./my_fakefile%]' is used if found, but if it is not found then no other paths are attempted.%r%r", print.to.stream, print.set->notable, print.set->notable, f_string_eol_s, f_string_eol_s); + fl_print_format(" For example, with '%[%r%r my_fakefile%]' the fakefile at", print.to, print.set->notable, f_console_symbol_long_enable_s, fake_long_fakefile_s, print.set->notable); + fl_print_format(" '%[./my_fakefile%]' is used if found, but if it is not found then", print.to, print.set->notable, print.set->notable); + fl_print_format(" '%[./%r%rmy_fakefile%]' is used if found.%r", print.to, print.set->notable, fake_default_path_data_s, fake_default_path_build_s, print.set->notable, f_string_eol_s); + fl_print_format(" For example, with '%[%r%r ./my_fakefile%]' the fakefile at", print.to, print.set->notable, f_console_symbol_long_enable_s, fake_long_fakefile_s, print.set->notable); + fl_print_format(" '%[./my_fakefile%]' is used if found, but if it is not found then no other paths are attempted.%r%r", print.to, print.set->notable, print.set->notable, f_string_eol_s, f_string_eol_s); - fl_print_format(" When piping data to this program, the piped data is treated as if it were prepended to the %[%r%]", print.to.stream, print.set->notable, fake_make_parameter_variable_fakefile_s, print.set->notable); - fl_print_format("or the %[%r%], depending on the operation.%r", print.to.stream, print.set->notable, fake_make_parameter_variable_settings_s, print.set->notable, f_string_eol_s); + fl_print_format(" When piping data to this program, the piped data is treated as if it were prepended to the %[%r%]", print.to, print.set->notable, fake_make_parameter_variable_fakefile_s, print.set->notable); + fl_print_format("or the %[%r%], depending on the operation.%r", print.to, print.set->notable, fake_make_parameter_variable_settings_s, print.set->notable, f_string_eol_s); - f_print_dynamic_raw(setting->line_last, print.to.stream); + f_print_dynamic_raw(setting->line_last, print.to); f_file_stream_flush(output); f_file_stream_unlock(print.to); @@ -88,7 +88,7 @@ extern "C" { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; } - f_print_dynamic_raw(setting->line_first, print.to.stream); + f_print_dynamic_raw(setting->line_first, print.to); return F_none; } @@ -103,7 +103,7 @@ extern "C" { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; } - fll_print_dynamic_raw(setting->line_first, print.to.stream); + fll_print_dynamic_raw(setting->line_first, print.to); return F_none; } @@ -118,7 +118,7 @@ extern "C" { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; } - fll_print_dynamic_raw(setting->line_last, print.to.stream); + fll_print_dynamic_raw(setting->line_last, print.to); return F_none; } @@ -133,7 +133,7 @@ extern "C" { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; } - f_print_dynamic_raw(setting->line_last, print.to.stream); + f_print_dynamic_raw(setting->line_last, print.to); return F_none; } diff --git a/level_3/fake/c/private-build-library.c b/level_3/fake/c/private-build-library.c index 7b0a7a6..bd267c5 100644 --- a/level_3/fake/c/private-build-library.c +++ b/level_3/fake/c/private-build-library.c @@ -25,7 +25,7 @@ extern "C" { if (!data_build->setting.build_sources_library.used && !data_build->setting.build_sources_library_shared.used) return 0; if (data->main->output.verbosity != f_console_verbosity_quiet_e && data->main->output.verbosity != f_console_verbosity_error_e) { - fll_print_format("%r%[Compiling shared library.%]%r", data->main->output.to.stream, f_string_eol_s, data->main->context.set.important, data->main->context.set.important, f_string_eol_s); + fll_print_format("%r%[Compiling shared library.%]%r", data->main->output.to, f_string_eol_s, data->main->context.set.important, data->main->context.set.important, f_string_eol_s); } f_string_dynamics_t arguments = f_string_dynamics_t_initialize; @@ -329,7 +329,7 @@ extern "C" { *status = f_file_link(parameter_file_name_major, parameter_file_path); if (F_status_is_error_not(*status) && data->main->error.verbosity >= f_console_verbosity_verbose_e) { - fll_print_format("Linked file '%Q' to '%Q'.%r", data->main->output.to.stream, parameter_file_path, parameter_file_name_major, f_string_eol_s); + fll_print_format("Linked file '%Q' to '%Q'.%r", data->main->output.to, parameter_file_path, parameter_file_name_major, f_string_eol_s); } else if (F_status_is_error(*status)) { if (F_status_set_fine(*status) == F_file_found) { @@ -360,7 +360,7 @@ extern "C" { *status = f_file_link(parameter_file_name_minor, parameter_file_path); if (F_status_is_error_not(*status) && data->main->error.verbosity >= f_console_verbosity_verbose_e) { - fll_print_format("Linked file '%Q' to '%Q'.%r", data->main->output.to.stream, parameter_file_path, parameter_file_name_minor, f_string_eol_s); + fll_print_format("Linked file '%Q' to '%Q'.%r", data->main->output.to, parameter_file_path, parameter_file_name_minor, f_string_eol_s); } else if (F_status_is_error(*status)) { if (F_status_set_fine(*status) == F_file_found) { @@ -389,7 +389,7 @@ extern "C" { *status = f_file_link(parameter_file_name_micro, parameter_file_path); if (F_status_is_error_not(*status) && data->main->error.verbosity >= f_console_verbosity_verbose_e) { - fll_print_format("Linked file '%Q' to '%Q'.%r", data->main->output.to.stream, parameter_file_path, parameter_file_name_micro, f_string_eol_s); + fll_print_format("Linked file '%Q' to '%Q'.%r", data->main->output.to, parameter_file_path, parameter_file_name_micro, f_string_eol_s); } else if (F_status_is_error(*status)) { if (F_status_set_fine(*status) == F_file_found) { @@ -417,7 +417,7 @@ extern "C" { *status = f_file_link(parameter_file_name_nano, parameter_file_path); if (F_status_is_error_not(*status) && data->main->error.verbosity >= f_console_verbosity_verbose_e) { - fll_print_format("Linked file '%Q' to '%Q'.%r", data->main->output.to.stream, parameter_file_path, parameter_file_name_nano, f_string_eol_s); + fll_print_format("Linked file '%Q' to '%Q'.%r", data->main->output.to, parameter_file_path, parameter_file_name_nano, f_string_eol_s); } else if (F_status_is_error(*status)) { if (F_status_set_fine(*status) == F_file_found) { @@ -447,7 +447,7 @@ extern "C" { if (!data_build->setting.build_sources_library.used && !data_build->setting.build_sources_library_static.used) return 0; if (data->main->output.verbosity != f_console_verbosity_quiet_e && data->main->output.verbosity != f_console_verbosity_error_e) { - fll_print_format("%r%[Compiling static library.%]%r", data->main->output.to.stream, f_string_eol_s, data->main->context.set.important, data->main->context.set.important, f_string_eol_s); + fll_print_format("%r%[Compiling static library.%]%r", data->main->output.to, f_string_eol_s, data->main->context.set.important, data->main->context.set.important, f_string_eol_s); } f_string_dynamic_t file_name = f_string_dynamic_t_initialize; diff --git a/level_3/fake/c/private-build-load.c b/level_3/fake/c/private-build-load.c index 7157859..205bd80 100644 --- a/level_3/fake/c/private-build-load.c +++ b/level_3/fake/c/private-build-load.c @@ -44,15 +44,15 @@ extern "C" { if (environment->used + data_build->setting.environment.used > environment->size) { if (environment->used + data_build->setting.environment.used > f_environment_max_length) { if (data->main->error.verbosity > f_console_verbosity_quiet_e) { - flockfile(data->main->error.to.stream); + flockfile(data->main->error.to); - fl_print_format("%r%[%QThe values for the setting '%]", data->main->error.to.stream, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context); - fl_print_format("%[%r%]", data->main->error.to.stream, data->main->error.notable, fake_build_setting_name_environment_s, data->main->error.notable); - fl_print_format("%[' of setting file '%]", data->main->error.to.stream, data->main->error.context, data->main->error.context); - fl_print_format("%[%r%]", data->main->error.to.stream, data->main->error.notable, fake_build_setting_name_environment_s, data->main->error.notable); - fl_print_format("%[' is too large.%]%r", data->main->error.to.stream, data->main->error.context, data->main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe values for the setting '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context); + fl_print_format("%[%r%]", data->main->error.to, data->main->error.notable, fake_build_setting_name_environment_s, 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("%[%r%]", data->main->error.to, data->main->error.notable, fake_build_setting_name_environment_s, data->main->error.notable); + fl_print_format("%[' is too large.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s); - flockfile(data->main->error.to.stream); + flockfile(data->main->error.to); } *status = F_status_set_error(F_array_too_large); @@ -185,15 +185,15 @@ extern "C" { for (uint8_t i = 0; i < 1; ++i) { if (!settings[i]->used) { - flockfile(data->main->error.to.stream); + flockfile(data->main->error.to); - fl_print_format("%r%[%QThe setting '%]", data->main->error.to.stream, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context); - fl_print_format("%[%Q%]", data->main->error.to.stream, data->main->error.notable, names[i], data->main->error.notable); - fl_print_format("%[' is required but is not specified in the settings file '%]", data->main->error.to.stream, data->main->error.context, data->main->error.context); - fl_print_format("%[%Q%]", data->main->error.to.stream, data->main->error.notable, path_file, data->main->error.notable); - fl_print_format("%['.%]%r", data->main->error.to.stream, data->main->error.context, data->main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe setting '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context); + fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, names[i], data->main->error.notable); + fl_print_format("%[' is required but is not specified in the settings 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); - funlockfile(data->main->error.to.stream); + funlockfile(data->main->error.to); failed = F_true; } @@ -580,15 +580,15 @@ extern "C" { if (found == F_false) { if (data->main->error.verbosity > f_console_verbosity_quiet_e) { - flockfile(data->main->error.to.stream); + flockfile(data->main->error.to); - fl_print_format("%r%[%QThe specified mode '%]", data->main->error.to.stream, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context); - fl_print_format("%[%Q%]", data->main->error.to.stream, data->main->error.notable, modes->array[i], data->main->error.notable); - fl_print_format("%[' is not a valid mode, according to '%]", data->main->error.to.stream, data->main->error.context, data->main->error.context); - fl_print_format("%[%Q%]", data->main->error.to.stream, data->main->error.notable, path_file, data->main->error.notable); - fl_print_format("%['.%]%r", data->main->error.to.stream, data->main->error.context, data->main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe specified mode '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context); + fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, modes->array[i], data->main->error.notable); + fl_print_format("%[' is not a valid mode, according to '%]", 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); - funlockfile(data->main->error.to.stream); + funlockfile(data->main->error.to); } error_printed = F_true; @@ -674,13 +674,13 @@ extern "C" { if (F_status_is_error(*status)) { if (*status == F_status_set_error(F_string_too_large)) { if (data->main->error.verbosity > f_console_verbosity_quiet_e) { - funlockfile(data->main->error.to.stream); + funlockfile(data->main->error.to); - fl_print_format("%r%[%QA setting in the file '%]", data->main->error.to.stream, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context); - fl_print_format("%[%Q%]", data->main->error.to.stream, data->main->error.notable, path_file, data->main->error.notable); - fl_print_format("%[' is too long.%]%r", data->main->error.to.stream, data->main->error.context, data->main->error.context, f_string_eol_s); + fl_print_format("%r%[%QA setting in the file '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, 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("%[' is too long.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s); - funlockfile(data->main->error.to.stream); + funlockfile(data->main->error.to); } } else if (!error_printed) { @@ -1143,21 +1143,21 @@ extern "C" { *settings_single_bool[i] = F_true; if (data->main->warning.verbosity >= f_console_verbosity_verbose_e) { - flockfile(data->main->warning.to.stream); - - fl_print_format("%r%[%QThe setting '%]", data->main->warning.to.stream, f_string_eol_s, data->main->warning.context, data->main->warning.prefix, data->main->warning.context); - fl_print_format("%[%r%]", data->main->warning.to.stream, data->main->warning.notable, settings_single_name[i], data->main->warning.notable); - fl_print_format("%[' in the file '%]", data->main->warning.to.stream, data->main->warning.context, data->main->warning.context); - fl_print_format("%[%Q%]", data->main->warning.to.stream, data->main->warning.notable, path_file, data->main->warning.notable); - fl_print_format("%[' may be either '%]", data->main->warning.to.stream, data->main->warning.context, data->main->warning.context); - fl_print_format("%[%r%]", data->main->warning.to.stream, data->main->warning.notable, fake_common_setting_bool_yes_s, data->main->warning.notable); - fl_print_format("%[' or '%]", data->main->warning.to.stream, data->main->warning.context, data->main->warning.context); - fl_print_format("%[%r%]", data->main->warning.to.stream, data->main->warning.notable, fake_common_setting_bool_no_s, data->main->warning.notable); - fl_print_format("%[', defaulting to '%]", data->main->warning.to.stream, data->main->warning.context, data->main->warning.context); - fl_print_format("%[%r%]", data->main->warning.to.stream, data->main->warning.notable, fake_common_setting_bool_yes_s, data->main->warning.notable); - fl_print_format("%['.%]%r", data->main->warning.to.stream, data->main->warning.context, data->main->warning.context, f_string_eol_s); - - funlockfile(data->main->warning.to.stream); + flockfile(data->main->warning.to); + + fl_print_format("%r%[%QThe setting '%]", data->main->warning.to, f_string_eol_s, data->main->warning.context, data->main->warning.prefix, data->main->warning.context); + fl_print_format("%[%r%]", data->main->warning.to, data->main->warning.notable, settings_single_name[i], data->main->warning.notable); + fl_print_format("%[' in the file '%]", data->main->warning.to, data->main->warning.context, data->main->warning.context); + fl_print_format("%[%Q%]", data->main->warning.to, data->main->warning.notable, path_file, data->main->warning.notable); + fl_print_format("%[' may be either '%]", data->main->warning.to, data->main->warning.context, data->main->warning.context); + fl_print_format("%[%r%]", data->main->warning.to, data->main->warning.notable, fake_common_setting_bool_yes_s, data->main->warning.notable); + fl_print_format("%[' or '%]", data->main->warning.to, data->main->warning.context, data->main->warning.context); + fl_print_format("%[%r%]", data->main->warning.to, data->main->warning.notable, fake_common_setting_bool_no_s, data->main->warning.notable); + fl_print_format("%[', defaulting to '%]", data->main->warning.to, data->main->warning.context, data->main->warning.context); + fl_print_format("%[%r%]", data->main->warning.to, data->main->warning.notable, fake_common_setting_bool_yes_s, data->main->warning.notable); + fl_print_format("%['.%]%r", data->main->warning.to, data->main->warning.context, data->main->warning.context, f_string_eol_s); + + funlockfile(data->main->warning.to); } } } @@ -1175,23 +1175,23 @@ extern "C" { *settings_single_language[i] = fake_build_language_type_c_e; if (data->main->warning.verbosity >= f_console_verbosity_verbose_e) { - flockfile(data->main->warning.to.stream); - - fl_print_format("%r%[%QThe setting '%]", data->main->warning.to.stream, f_string_eol_s, data->main->warning.context, data->main->warning.prefix, data->main->warning.context); - fl_print_format("%[%r%]", data->main->warning.to.stream, data->main->warning.notable, settings_single_name[i], data->main->warning.notable); - fl_print_format("%[' in the file '%]", data->main->warning.to.stream, data->main->warning.context, data->main->warning.context); - fl_print_format("%[%Q%]", data->main->warning.to.stream, data->main->warning.notable, path_file, data->main->warning.notable); - fl_print_format("%[' may only be one of '%]", data->main->warning.to.stream, data->main->warning.context, data->main->warning.context); - fl_print_format("%[%r%]", data->main->warning.to.stream, data->main->warning.notable, fake_build_language_bash_s, data->main->warning.notable); - fl_print_format("%[', '%]", data->main->warning.to.stream, data->main->warning.context, data->main->warning.context); - fl_print_format("%[%r%]", data->main->warning.to.stream, data->main->warning.notable, fake_build_language_c_s, data->main->warning.notable); - fl_print_format("%[', or '%]", data->main->warning.to.stream, data->main->warning.context, data->main->warning.context); - fl_print_format("%[%r%]", data->main->warning.to.stream, data->main->warning.notable, fake_build_language_cpp_s, data->main->warning.notable); - fl_print_format("%[', defaulting to '%]", data->main->warning.to.stream, data->main->warning.context, data->main->warning.context); - fl_print_format("%[%r%]", data->main->warning.to.stream, data->main->warning.notable, fake_build_language_c_s, data->main->warning.notable); - fl_print_format("%['.%]%r", data->main->warning.to.stream, data->main->warning.context, data->main->warning.context, f_string_eol_s); - - funlockfile(data->main->warning.to.stream); + flockfile(data->main->warning.to); + + fl_print_format("%r%[%QThe setting '%]", data->main->warning.to, f_string_eol_s, data->main->warning.context, data->main->warning.prefix, data->main->warning.context); + fl_print_format("%[%r%]", data->main->warning.to, data->main->warning.notable, settings_single_name[i], data->main->warning.notable); + fl_print_format("%[' in the file '%]", data->main->warning.to, data->main->warning.context, data->main->warning.context); + fl_print_format("%[%Q%]", data->main->warning.to, data->main->warning.notable, path_file, data->main->warning.notable); + fl_print_format("%[' may only be one of '%]", data->main->warning.to, data->main->warning.context, data->main->warning.context); + fl_print_format("%[%r%]", data->main->warning.to, data->main->warning.notable, fake_build_language_bash_s, data->main->warning.notable); + fl_print_format("%[', '%]", data->main->warning.to, data->main->warning.context, data->main->warning.context); + fl_print_format("%[%r%]", data->main->warning.to, data->main->warning.notable, fake_build_language_c_s, data->main->warning.notable); + fl_print_format("%[', or '%]", data->main->warning.to, data->main->warning.context, data->main->warning.context); + fl_print_format("%[%r%]", data->main->warning.to, data->main->warning.notable, fake_build_language_cpp_s, data->main->warning.notable); + fl_print_format("%[', defaulting to '%]", data->main->warning.to, data->main->warning.context, data->main->warning.context); + fl_print_format("%[%r%]", data->main->warning.to, data->main->warning.notable, fake_build_language_c_s, data->main->warning.notable); + fl_print_format("%['.%]%r", data->main->warning.to, data->main->warning.context, data->main->warning.context, f_string_eol_s); + + funlockfile(data->main->warning.to); } } } @@ -1212,25 +1212,25 @@ extern "C" { *settings_single_version[i] = settings_single_version_default[i]; if (data->main->warning.verbosity >= f_console_verbosity_verbose_e) { - flockfile(data->main->warning.to.stream); - - fl_print_format("%r%[%QThe setting '%]", data->main->warning.to.stream, f_string_eol_s, data->main->warning.context, data->main->warning.prefix, data->main->warning.context); - fl_print_format("%[%r%]", data->main->warning.to.stream, data->main->warning.notable, settings_single_name[i], data->main->warning.notable); - fl_print_format("%[' in the file '%]", data->main->warning.to.stream, data->main->warning.context, data->main->warning.context); - fl_print_format("%[%Q%]", data->main->warning.to.stream, data->main->warning.notable, path_file, data->main->warning.notable); - fl_print_format("%[' may only be one of '%]", data->main->warning.to.stream, data->main->warning.context, data->main->warning.context); - fl_print_format("%[%r%]", data->main->warning.to.stream, data->main->warning.notable, fake_build_version_major_s, data->main->warning.notable); - fl_print_format("%[', '%]", data->main->warning.to.stream, data->main->warning.context, data->main->warning.context); - fl_print_format("%[%r%]", data->main->warning.to.stream, data->main->warning.notable, fake_build_version_minor_s, data->main->warning.notable); - fl_print_format("%[', '%]", data->main->warning.to.stream, data->main->warning.context, data->main->warning.context); - fl_print_format("%[%r%]", data->main->warning.to.stream, data->main->warning.notable, fake_build_version_micro_s, data->main->warning.notable); - fl_print_format("%[', or '%]", data->main->warning.to.stream, data->main->warning.context, data->main->warning.context); - fl_print_format("%[%r%]", data->main->warning.to.stream, data->main->warning.notable, fake_build_version_nano_s, data->main->warning.notable); - fl_print_format("%[', defaulting to '%]", data->main->warning.to.stream, data->main->warning.context, data->main->warning.context); - fl_print_format("%[%r%]", data->main->warning.to.stream, data->main->warning.notable, settings_single_version_default_name[i], data->main->warning.notable); - fl_print_format("%['.%]%r", data->main->warning.to.stream, data->main->warning.context, data->main->warning.context, f_string_eol_s); - - funlockfile(data->main->warning.to.stream); + flockfile(data->main->warning.to); + + fl_print_format("%r%[%QThe setting '%]", data->main->warning.to, f_string_eol_s, data->main->warning.context, data->main->warning.prefix, data->main->warning.context); + fl_print_format("%[%r%]", data->main->warning.to, data->main->warning.notable, settings_single_name[i], data->main->warning.notable); + fl_print_format("%[' in the file '%]", data->main->warning.to, data->main->warning.context, data->main->warning.context); + fl_print_format("%[%Q%]", data->main->warning.to, data->main->warning.notable, path_file, data->main->warning.notable); + fl_print_format("%[' may only be one of '%]", data->main->warning.to, data->main->warning.context, data->main->warning.context); + fl_print_format("%[%r%]", data->main->warning.to, data->main->warning.notable, fake_build_version_major_s, data->main->warning.notable); + fl_print_format("%[', '%]", data->main->warning.to, data->main->warning.context, data->main->warning.context); + fl_print_format("%[%r%]", data->main->warning.to, data->main->warning.notable, fake_build_version_minor_s, data->main->warning.notable); + fl_print_format("%[', '%]", data->main->warning.to, data->main->warning.context, data->main->warning.context); + fl_print_format("%[%r%]", data->main->warning.to, data->main->warning.notable, fake_build_version_micro_s, data->main->warning.notable); + fl_print_format("%[', or '%]", data->main->warning.to, data->main->warning.context, data->main->warning.context); + fl_print_format("%[%r%]", data->main->warning.to, data->main->warning.notable, fake_build_version_nano_s, data->main->warning.notable); + fl_print_format("%[', defaulting to '%]", data->main->warning.to, data->main->warning.context, data->main->warning.context); + fl_print_format("%[%r%]", data->main->warning.to, data->main->warning.notable, settings_single_version_default_name[i], data->main->warning.notable); + fl_print_format("%['.%]%r", data->main->warning.to, data->main->warning.context, data->main->warning.context, f_string_eol_s); + + funlockfile(data->main->warning.to); } } } @@ -1273,17 +1273,17 @@ extern "C" { setting->version_file = fake_build_version_type_micro_e; if (data->main->warning.verbosity >= f_console_verbosity_verbose_e) { - flockfile(data->main->warning.to.stream); + flockfile(data->main->warning.to); - fl_print_format("%r%[%QThe setting '%]", data->main->warning.to.stream, f_string_eol_s, data->main->warning.context, data->main->warning.prefix, data->main->warning.context); - fl_print_format("%[%r%]", data->main->warning.to.stream, data->main->warning.notable, fake_build_setting_name_version_file_s, data->main->warning.notable); - fl_print_format("%[' in the file '%]", data->main->warning.to.stream, data->main->warning.context, data->main->warning.context); - fl_print_format("%[%Q%]", data->main->warning.to.stream, data->main->warning.notable, path_file, data->main->warning.notable); - fl_print_format("%[' is required, defaulting to '%]", data->main->warning.to.stream, data->main->warning.context, data->main->warning.context); - fl_print_format("%[%r%]", data->main->warning.to.stream, data->main->warning.notable, fake_build_version_micro_s, data->main->warning.notable); - fl_print_format("%['.%]%r", data->main->warning.to.stream, data->main->warning.context, data->main->warning.context, f_string_eol_s); + fl_print_format("%r%[%QThe setting '%]", data->main->warning.to, f_string_eol_s, data->main->warning.context, data->main->warning.prefix, data->main->warning.context); + fl_print_format("%[%r%]", data->main->warning.to, data->main->warning.notable, fake_build_setting_name_version_file_s, data->main->warning.notable); + fl_print_format("%[' in the file '%]", data->main->warning.to, data->main->warning.context, data->main->warning.context); + fl_print_format("%[%Q%]", data->main->warning.to, data->main->warning.notable, path_file, data->main->warning.notable); + fl_print_format("%[' is required, defaulting to '%]", data->main->warning.to, data->main->warning.context, data->main->warning.context); + fl_print_format("%[%r%]", data->main->warning.to, data->main->warning.notable, fake_build_version_micro_s, data->main->warning.notable); + fl_print_format("%['.%]%r", data->main->warning.to, data->main->warning.context, data->main->warning.context, f_string_eol_s); - funlockfile(data->main->warning.to.stream); + funlockfile(data->main->warning.to); } } @@ -1291,17 +1291,17 @@ extern "C" { setting->version_target = fake_build_version_type_major_e; if (data->main->warning.verbosity >= f_console_verbosity_verbose_e) { - flockfile(data->main->warning.to.stream); + flockfile(data->main->warning.to); - fl_print_format("%r%[%QThe setting '%]", data->main->warning.to.stream, f_string_eol_s, data->main->warning.context, data->main->warning.prefix, data->main->warning.context); - fl_print_format("%[%r%]", data->main->warning.to.stream, data->main->warning.notable, fake_build_setting_name_version_target_s, data->main->warning.notable); - fl_print_format("%[' in the file '%]", data->main->warning.to.stream, data->main->warning.context, data->main->warning.context); - fl_print_format("%[%Q%]", data->main->warning.to.stream, data->main->warning.notable, path_file, data->main->warning.notable); - fl_print_format("%[' is required, defaulting to '%]", data->main->warning.to.stream, data->main->warning.context, data->main->warning.context); - fl_print_format("%[%r%]", data->main->warning.to.stream, data->main->warning.notable, fake_build_version_major_s, data->main->warning.notable); - fl_print_format("%['.%]%r", data->main->warning.to.stream, data->main->warning.context, data->main->warning.context, f_string_eol_s); + fl_print_format("%r%[%QThe setting '%]", data->main->warning.to, f_string_eol_s, data->main->warning.context, data->main->warning.prefix, data->main->warning.context); + fl_print_format("%[%r%]", data->main->warning.to, data->main->warning.notable, fake_build_setting_name_version_target_s, data->main->warning.notable); + fl_print_format("%[' in the file '%]", data->main->warning.to, data->main->warning.context, data->main->warning.context); + fl_print_format("%[%Q%]", data->main->warning.to, data->main->warning.notable, path_file, data->main->warning.notable); + fl_print_format("%[' is required, defaulting to '%]", data->main->warning.to, data->main->warning.context, data->main->warning.context); + fl_print_format("%[%r%]", data->main->warning.to, data->main->warning.notable, fake_build_version_major_s, data->main->warning.notable); + fl_print_format("%['.%]%r", data->main->warning.to, data->main->warning.context, data->main->warning.context, f_string_eol_s); - funlockfile(data->main->warning.to.stream); + funlockfile(data->main->warning.to); } } } @@ -1377,17 +1377,17 @@ extern "C" { } if (data->main->error.verbosity > f_console_verbosity_quiet_e) { - flockfile(data->main->error.to.stream); + flockfile(data->main->error.to); - fl_print_format("%r%[%QThe parameters '%]", data->main->error.to.stream, 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.stream, data->main->error.notable, f_console_symbol_long_enable_s, fake_long_shared_disabled_s, data->main->error.notable); - fl_print_format("%[' and '%]", data->main->error.to.stream, data->main->error.context, data->main->error.context); - fl_print_format("%[%r%r%]", data->main->error.to.stream, data->main->error.notable, f_console_symbol_long_enable_s, fake_long_shared_enabled_s, data->main->error.notable); - fl_print_format("%[' contradict, defaulting to '%]", data->main->error.to.stream, data->main->error.context, data->main->error.context); - fl_print_format("%[%r%r%]", data->main->error.to.stream, data->main->error.notable, f_console_symbol_long_enable_s, setting->build_shared ? fake_long_shared_enabled_s : fake_long_shared_disabled_s, data->main->error.notable); - fl_print_format("%['.%]%r", data->main->error.to.stream, data->main->error.context, data->main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe parameters '%]", 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_enable_s, fake_long_shared_disabled_s, data->main->error.notable); + fl_print_format("%[' and '%]", data->main->error.to, data->main->error.context, data->main->error.context); + fl_print_format("%[%r%r%]", data->main->error.to, data->main->error.notable, f_console_symbol_long_enable_s, fake_long_shared_enabled_s, data->main->error.notable); + fl_print_format("%[' contradict, defaulting to '%]", data->main->error.to, data->main->error.context, data->main->error.context); + fl_print_format("%[%r%r%]", data->main->error.to, data->main->error.notable, f_console_symbol_long_enable_s, setting->build_shared ? fake_long_shared_enabled_s : fake_long_shared_disabled_s, data->main->error.notable); + fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s); - funlockfile(data->main->error.to.stream); + funlockfile(data->main->error.to); } } else { @@ -1412,17 +1412,17 @@ extern "C" { } if (data->main->error.verbosity >= f_console_verbosity_verbose_e) { - flockfile(data->main->error.to.stream); + flockfile(data->main->error.to); - fl_print_format("%r%[%QThe parameters '%]", data->main->error.to.stream, 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.stream, data->main->error.notable, f_console_symbol_long_enable_s, fake_long_static_disabled_s, data->main->error.notable); - fl_print_format("%[' and '%]", data->main->error.to.stream, data->main->error.context, data->main->error.context); - fl_print_format("%[%r%r%]", data->main->error.to.stream, data->main->error.notable, f_console_symbol_long_enable_s, fake_long_static_enabled_s, data->main->error.notable); - fl_print_format("%[' contradict, defaulting to '%]", data->main->error.to.stream, data->main->error.context, data->main->error.context); - fl_print_format("%[%r%r%]", data->main->error.to.stream, data->main->error.notable, f_console_symbol_long_enable_s, setting->build_static ? fake_long_static_enabled_s : fake_long_static_disabled_s, data->main->error.notable); - fl_print_format("%['.%]%r", data->main->error.to.stream, data->main->error.context, data->main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe parameters '%]", 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_enable_s, fake_long_static_disabled_s, data->main->error.notable); + fl_print_format("%[' and '%]", data->main->error.to, data->main->error.context, data->main->error.context); + fl_print_format("%[%r%r%]", data->main->error.to, data->main->error.notable, f_console_symbol_long_enable_s, fake_long_static_enabled_s, data->main->error.notable); + fl_print_format("%[' contradict, defaulting to '%]", data->main->error.to, data->main->error.context, data->main->error.context); + fl_print_format("%[%r%r%]", data->main->error.to, data->main->error.notable, f_console_symbol_long_enable_s, setting->build_static ? fake_long_static_enabled_s : fake_long_static_disabled_s, data->main->error.notable); + fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s); - funlockfile(data->main->error.to.stream); + funlockfile(data->main->error.to); } } else { @@ -1438,17 +1438,17 @@ extern "C" { if (setting->build_language == fake_build_language_type_c_e || setting->build_language == fake_build_language_type_cpp_e) { if (setting->build_shared == F_false && setting->build_static == F_false) { if (data->main->error.verbosity > f_console_verbosity_quiet_e) { - flockfile(data->main->error.to.stream); + flockfile(data->main->error.to); - fl_print_format("%r%[%QThe build settings '%]", data->main->error.to.stream, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context); - fl_print_format("%[%r%]", data->main->error.to.stream, data->main->error.notable, fake_build_setting_name_build_shared_s, data->main->error.notable); - fl_print_format("%[' and '%]", data->main->error.to.stream, data->main->error.context, data->main->error.context); - fl_print_format("%[%r%]", data->main->error.to.stream, data->main->error.notable, fake_build_setting_name_build_static_s, data->main->error.notable); - fl_print_format("%[' cannot both be false when using the language '%]", data->main->error.to.stream, data->main->error.context, data->main->error.context); - fl_print_format("%[%r%]", data->main->error.to.stream, data->main->error.notable, setting->build_language == fake_build_language_type_c_e ? fake_build_language_c_s : fake_build_language_cpp_s, data->main->error.notable); - fl_print_format("%['.%]%r", data->main->error.to.stream, data->main->error.context, data->main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe build settings '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context); + fl_print_format("%[%r%]", data->main->error.to, data->main->error.notable, fake_build_setting_name_build_shared_s, data->main->error.notable); + fl_print_format("%[' and '%]", data->main->error.to, data->main->error.context, data->main->error.context); + fl_print_format("%[%r%]", data->main->error.to, data->main->error.notable, fake_build_setting_name_build_static_s, data->main->error.notable); + fl_print_format("%[' cannot both be false when using the language '%]", data->main->error.to, data->main->error.context, data->main->error.context); + fl_print_format("%[%r%]", data->main->error.to, data->main->error.notable, setting->build_language == fake_build_language_type_c_e ? fake_build_language_c_s : fake_build_language_cpp_s, data->main->error.notable); + fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s); - funlockfile(data->main->error.to.stream); + funlockfile(data->main->error.to); } *status = F_status_set_error(F_failure); diff --git a/level_3/fake/c/private-build-object.c b/level_3/fake/c/private-build-object.c index 465f1ee..5a64dcf 100644 --- a/level_3/fake/c/private-build-object.c +++ b/level_3/fake/c/private-build-object.c @@ -26,7 +26,7 @@ extern "C" { if (!data_build->setting.build_sources_object.used && !data_build->setting.build_sources_object_shared.used) return 0; if (data->main->output.verbosity != f_console_verbosity_quiet_e && data->main->output.verbosity != f_console_verbosity_error_e) { - fll_print_format("%r%[Compiling shared object.%]%r", data->main->output.to.stream, f_string_eol_s, data->main->context.set.important, data->main->context.set.important, f_string_eol_s); + fll_print_format("%r%[Compiling shared object.%]%r", data->main->output.to, f_string_eol_s, data->main->context.set.important, data->main->context.set.important, f_string_eol_s); } f_string_dynamics_t arguments = f_string_dynamics_t_initialize; @@ -97,7 +97,7 @@ extern "C" { if (!data_build->setting.build_sources_object.used && !data_build->setting.build_sources_object_static.used) return 0; if (data->main->output.verbosity != f_console_verbosity_quiet_e && data->main->output.verbosity != f_console_verbosity_error_e) { - fll_print_format("%r%[Compiling static object.%]%r", data->main->output.to.stream, f_string_eol_s, data->main->context.set.important, data->main->context.set.important, f_string_eol_s); + fll_print_format("%r%[Compiling static object.%]%r", data->main->output.to, f_string_eol_s, data->main->context.set.important, data->main->context.set.important, f_string_eol_s); } f_string_dynamics_t arguments = f_string_dynamics_t_initialize; diff --git a/level_3/fake/c/private-build-objects.c b/level_3/fake/c/private-build-objects.c index 2498bcd..8ba9ddc 100644 --- a/level_3/fake/c/private-build-objects.c +++ b/level_3/fake/c/private-build-objects.c @@ -15,7 +15,7 @@ extern "C" { if (!data_build->setting.build_sources_library.used) return 0; if (data->main->output.verbosity != f_console_verbosity_quiet_e && data->main->output.verbosity != f_console_verbosity_error_e) { - fll_print_format("%r%[Compiling objects for static library.%]%r", data->main->output.to.stream, f_string_eol_s, data->main->context.set.important, data->main->context.set.important, f_string_eol_s); + fll_print_format("%r%[Compiling objects for static library.%]%r", data->main->output.to, f_string_eol_s, data->main->context.set.important, data->main->context.set.important, f_string_eol_s); } f_string_dynamics_t arguments = f_string_dynamics_t_initialize; @@ -102,13 +102,13 @@ extern "C" { if (*status == F_false) { if (data->main->error.verbosity > f_console_verbosity_quiet_e) { - flockfile(data->main->error.to.stream); + flockfile(data->main->error.to); - fl_print_format("%r%[%QThe path '%]", data->main->error.to.stream, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context); - fl_print_format("%[%Q%]", data->main->error.to.stream, data->main->error.notable, destination_path, data->main->error.notable); - fl_print_format("%[' exists but is not a directory.%]%r", data->main->error.to.stream, data->main->error.context, data->main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe path '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context); + fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, destination_path, data->main->error.notable); + fl_print_format("%[' exists but is not a directory.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s); - funlockfile(data->main->error.to.stream); + funlockfile(data->main->error.to); } *status = F_status_set_error(F_failure); @@ -121,13 +121,13 @@ extern "C" { if (F_status_is_error(*status)) { if (F_status_set_fine(*status) == F_file_found_not) { - flockfile(data->main->error.to.stream); + flockfile(data->main->error.to); - fl_print_format("%r%[%QThe path '%]", data->main->error.to.stream, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context); - fl_print_format("%[%Q%]", data->main->error.to.stream, data->main->error.notable, destination_path, data->main->error.notable); - fl_print_format("%[' could not be created, a parent directory does not exist.%]%r", data->main->error.to.stream, data->main->error.context, data->main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe path '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context); + fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, destination_path, data->main->error.notable); + fl_print_format("%[' could not be created, a parent directory does not exist.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s); - funlockfile(data->main->error.to.stream); + funlockfile(data->main->error.to); } else { fll_error_file_print(data->main->error, F_status_set_fine(*status), "f_directory_create", F_true, destination_path, f_file_operation_create_s, fll_error_file_type_directory_e); @@ -137,7 +137,7 @@ extern "C" { } if (data->main->error.verbosity >= f_console_verbosity_verbose_e) { - fll_print_format("Directory '%Q' created.%r", data->main->output.to.stream, destination_path, f_string_eol_s); + fll_print_format("Directory '%Q' created.%r", data->main->output.to, destination_path, f_string_eol_s); } } diff --git a/level_3/fake/c/private-build-program.c b/level_3/fake/c/private-build-program.c index 4f81738..b5ee219 100644 --- a/level_3/fake/c/private-build-program.c +++ b/level_3/fake/c/private-build-program.c @@ -26,7 +26,7 @@ extern "C" { if (!data_build->setting.build_sources_program.used && !data_build->setting.build_sources_program_shared.used) return 0; if (data->main->output.verbosity != f_console_verbosity_quiet_e && data->main->output.verbosity != f_console_verbosity_error_e) { - fll_print_format("%r%[Compiling shared program.%]%r", data->main->output.to.stream, f_string_eol_s, data->main->context.set.important, data->main->context.set.important, f_string_eol_s); + fll_print_format("%r%[Compiling shared program.%]%r", data->main->output.to, f_string_eol_s, data->main->context.set.important, data->main->context.set.important, f_string_eol_s); } f_string_dynamics_t arguments = f_string_dynamics_t_initialize; @@ -120,7 +120,7 @@ extern "C" { if (!data_build->setting.build_sources_program.used && !data_build->setting.build_sources_program_static.used) return 0; if (data->main->output.verbosity != f_console_verbosity_quiet_e && data->main->output.verbosity != f_console_verbosity_error_e) { - fll_print_format("%r%[Compiling static program.%]%r", data->main->output.to.stream, f_string_eol_s, data->main->context.set.important, data->main->context.set.important, f_string_eol_s); + fll_print_format("%r%[Compiling static program.%]%r", data->main->output.to, f_string_eol_s, data->main->context.set.important, data->main->context.set.important, f_string_eol_s); } f_string_dynamics_t arguments = f_string_dynamics_t_initialize; diff --git a/level_3/fake/c/private-build-skeleton.c b/level_3/fake/c/private-build-skeleton.c index bb2f62e..daebdc6 100644 --- a/level_3/fake/c/private-build-skeleton.c +++ b/level_3/fake/c/private-build-skeleton.c @@ -51,7 +51,7 @@ extern "C" { }; if (data->main->output.verbosity != f_console_verbosity_quiet_e && data->main->output.verbosity != f_console_verbosity_error_e) { - fll_print_format("%r%[Creating base build directories.%]%r", data->main->output.to.stream, f_string_eol_s, data->main->context.set.important, data->main->context.set.important, f_string_eol_s); + fll_print_format("%r%[Creating base build directories.%]%r", data->main->output.to, f_string_eol_s, data->main->context.set.important, data->main->context.set.important, f_string_eol_s); } bool created = F_false; @@ -112,7 +112,7 @@ extern "C" { } if (created && data->main->error.verbosity >= f_console_verbosity_verbose_e) { - fll_print_format("Created directory '%Q'.%r", data->main->output.to.stream, *directorys[i], f_string_eol_s); + fll_print_format("Created directory '%Q'.%r", data->main->output.to, *directorys[i], f_string_eol_s); } } // for diff --git a/level_3/fake/c/private-build.c b/level_3/fake/c/private-build.c index 4a3a3a0..3b46b7a 100644 --- a/level_3/fake/c/private-build.c +++ b/level_3/fake/c/private-build.c @@ -362,7 +362,7 @@ extern "C" { f_string_static_t buffer = f_string_static_t_initialize; if (data->main->output.verbosity != f_console_verbosity_quiet_e && data->main->output.verbosity != f_console_verbosity_error_e) { - fll_print_format("%r%[Copying %Q.%]%r", data->main->output.to.stream, f_string_eol_s, data->main->context.set.important, label, data->main->context.set.important, f_string_eol_s); + fll_print_format("%r%[Copying %Q.%]%r", data->main->output.to, f_string_eol_s, data->main->context.set.important, label, data->main->context.set.important, f_string_eol_s); } *status = f_string_dynamic_resize(source.used, &path_source); @@ -380,7 +380,7 @@ extern "C" { fl_directory_recurse_t recurse = fl_directory_recurse_t_initialize; if (data->main->error.verbosity >= f_console_verbosity_verbose_e) { - recurse.output.stream = data->main->output.to.stream; + recurse.output.stream = data->main->output.to; recurse.output.id = data->main->output.to.id; recurse.output.flag = data->main->output.to.flag; recurse.output.size_read = data->main->output.to.size_read; @@ -525,7 +525,7 @@ extern "C" { } if (data->main->error.verbosity >= f_console_verbosity_verbose_e) { - fll_print_format("Copied file '%Q' to '%Q'.%r", data->main->output.to.stream, path_source, destination_file, f_string_eol_s); + fll_print_format("Copied file '%Q' to '%Q'.%r", data->main->output.to, path_source, destination_file, f_string_eol_s); } } else if (F_status_is_error(*status)) { @@ -722,13 +722,13 @@ extern "C" { if (F_status_is_error(*status)) { if (F_status_set_fine(*status) == F_failure) { if (data->main->error.verbosity > f_console_verbosity_quiet_e) { - flockfile(data->main->error.to.stream); + flockfile(data->main->error.to); - fl_print_format("%r%[%QFailed to execute script: '%]", data->main->error.to.stream, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context); - fl_print_format("%[%Q%]", data->main->error.to.stream, data->main->error.notable, path, data->main->error.notable); - fl_print_format("%['.%]%r", data->main->error.to.stream, data->main->error.context, data->main->error.context, f_string_eol_s); + fl_print_format("%r%[%QFailed to execute script: '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context); + fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, path, data->main->error.notable); + fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s); - funlockfile(data->main->error.to.stream); + funlockfile(data->main->error.to); } } else { @@ -835,29 +835,29 @@ extern "C" { if (F_status_is_fine(status)) { if (data->main->output.verbosity != f_console_verbosity_quiet_e && data->main->output.verbosity != f_console_verbosity_error_e) { - flockfile(data->main->output.to.stream); + flockfile(data->main->output.to); - fl_print_format("%r%[Building%] ", data->main->output.to.stream, f_string_eol_s, data->main->context.set.important, data->main->context.set.important); - fl_print_format("%[%Q%]", data->main->output.to.stream, data->main->context.set.notable, data_build.setting.build_name, data->main->context.set.notable); - fl_print_format("%[ using '%]", data->main->output.to.stream, data->main->context.set.important, data->main->context.set.important); - fl_print_format("%[%Q%]", data->main->output.to.stream, data->main->context.set.notable, data->settings, data->main->context.set.notable); + fl_print_format("%r%[Building%] ", data->main->output.to, f_string_eol_s, data->main->context.set.important, data->main->context.set.important); + fl_print_format("%[%Q%]", data->main->output.to, data->main->context.set.notable, data_build.setting.build_name, data->main->context.set.notable); + fl_print_format("%[ using '%]", data->main->output.to, data->main->context.set.important, data->main->context.set.important); + fl_print_format("%[%Q%]", data->main->output.to, data->main->context.set.notable, data->settings, data->main->context.set.notable); - fl_print_format("%[' with modes '%]", data->main->output.to.stream, data->main->context.set.important, data->main->context.set.important); + fl_print_format("%[' with modes '%]", data->main->output.to, data->main->context.set.important, data->main->context.set.important); f_string_dynamics_t * const modes = data->mode.used ? &data->mode : &data_build.setting.modes_default; for (f_array_length_t i = 0; i < modes->used; ) { - fl_print_format("%[%Q%]", data->main->output.to.stream, data->main->context.set.notable, modes->array[i], data->main->context.set.notable); + fl_print_format("%[%Q%]", data->main->output.to, data->main->context.set.notable, modes->array[i], data->main->context.set.notable); if (++i < modes->used) { - fl_print_format("%[', '%]", data->main->output.to.stream, data->main->context.set.important, data->main->context.set.important); + fl_print_format("%[', '%]", data->main->output.to, data->main->context.set.important, data->main->context.set.important); } } // for - fl_print_format("%['.%]%r", data->main->output.to.stream, data->main->context.set.important, data->main->context.set.important, f_string_eol_s); + fl_print_format("%['.%]%r", data->main->output.to, data->main->context.set.important, data->main->context.set.important, f_string_eol_s); - funlockfile(data->main->output.to.stream); + funlockfile(data->main->output.to); } } diff --git a/level_3/fake/c/private-clean.c b/level_3/fake/c/private-clean.c index dad819b..ead3e73 100644 --- a/level_3/fake/c/private-clean.c +++ b/level_3/fake/c/private-clean.c @@ -10,13 +10,13 @@ extern "C" { f_status_t fake_clean_operate(fake_data_t * const data) { if (data->main->output.verbosity != f_console_verbosity_quiet_e && data->main->output.verbosity != f_console_verbosity_error_e) { - flockfile(data->main->output.to.stream); + flockfile(data->main->output.to); - fl_print_format("%r%[Deleting all files within build directory '%]", data->main->output.to.stream, f_string_eol_s, data->main->context.set.important, data->main->context.set.important); - fl_print_format("%[%Q%]", data->main->output.to.stream, data->main->context.set.notable, data->path_build, data->main->context.set.notable); - fl_print_format("%['.%]%r", data->main->output.to.stream, data->main->context.set.important, data->main->context.set.important, f_string_eol_s); + fl_print_format("%r%[Deleting all files within build directory '%]", data->main->output.to, f_string_eol_s, data->main->context.set.important, data->main->context.set.important); + fl_print_format("%[%Q%]", data->main->output.to, data->main->context.set.notable, data->path_build, data->main->context.set.notable); + fl_print_format("%['.%]%r", data->main->output.to, data->main->context.set.important, data->main->context.set.important, f_string_eol_s); - funlockfile(data->main->output.to.stream); + funlockfile(data->main->output.to); } f_status_t status = F_none; @@ -30,7 +30,7 @@ extern "C" { if (F_status_set_fine(status) == F_file_found_not || F_status_set_fine(status) == F_directory) { if (data->main->error.verbosity >= f_console_verbosity_verbose_e) { - fll_print_format("The build directory '%[%Q%]' does not exist.%r", data->main->warning.to.stream, data->main->context.set.notable, data->path_build, data->main->context.set.notable, f_string_eol_s); + fll_print_format("The build directory '%[%Q%]' does not exist.%r", data->main->warning.to, data->main->context.set.notable, data->path_build, data->main->context.set.notable, f_string_eol_s); } status = F_none; diff --git a/level_3/fake/c/private-fake.c b/level_3/fake/c/private-fake.c index 81f8d0d..5dca548 100644 --- a/level_3/fake/c/private-fake.c +++ b/level_3/fake/c/private-fake.c @@ -13,23 +13,23 @@ extern "C" { if (F_status_is_error(*status)) return 1; if (data->main->error.verbosity >= f_console_verbosity_verbose_e) { - flockfile(data->main->output.to.stream); + flockfile(data->main->output.to); - f_print_dynamic(program, data->main->output.to.stream); + f_print_dynamic(program, data->main->output.to); for (f_array_length_t i = 0; i < arguments.used; ++i) { if (!arguments.array[i].used) continue; - fl_print_format(" %Q", data->main->output.to.stream, arguments.array[i]); + fl_print_format(" %Q", data->main->output.to, arguments.array[i]); } // for - f_print_dynamic_raw(f_string_eol_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_eol_s, data->main->output.to); - funlockfile(data->main->output.to.stream); + funlockfile(data->main->output.to); // Flush to stdout before executing command. - fflush(data->main->output.to.stream); + fflush(data->main->output.to); } int return_code = 0; @@ -67,13 +67,13 @@ extern "C" { if (F_status_set_fine(*status) == F_file_found_not) { if (data->main->error.verbosity > f_console_verbosity_quiet_e) { - flockfile(data->main->error.to.stream); + flockfile(data->main->error.to); - fl_print_format("%r%[%QFailed to find program '%]", data->main->error.to.stream, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context); - fl_print_format("%[%Q%]", data->main->error.to.stream, data->main->error.notable, program, data->main->error.notable); - fl_print_format("%[' for executing.%]%r", data->main->error.to.stream, data->main->error.context, data->main->error.context, f_string_eol_s); + fl_print_format("%r%[%QFailed to find program '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context); + fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, program, data->main->error.notable); + fl_print_format("%[' for executing.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s); - funlockfile(data->main->error.to.stream); + funlockfile(data->main->error.to); } } else { @@ -256,13 +256,13 @@ extern "C" { if (F_status_is_error(status)) { if (fll_error_print(data->main->error, F_status_set_fine(status), "f_utf_is_word_dash_plus", F_false) == F_known_not && data->main->error.verbosity > f_console_verbosity_quiet_e) { - flockfile(data->main->error.to.stream); + flockfile(data->main->error.to); - fl_print_format("%r%[%QFailed to process the parameter '%]", data->main->error.to.stream, 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.stream, data->main->error.notable, f_console_symbol_long_enable_s, fake_long_process_s, data->main->error.notable); - fl_print_format("%['.%]%r", data->main->error.to.stream, data->main->error.context, data->main->error.context, f_string_eol_s); + fl_print_format("%r%[%QFailed to process the 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_enable_s, fake_long_process_s, data->main->error.notable); + fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s); - funlockfile(data->main->error.to.stream); + funlockfile(data->main->error.to); } return status; @@ -270,15 +270,15 @@ extern "C" { if (status == F_false) { if (data->main->error.verbosity > f_console_verbosity_quiet_e) { - flockfile(data->main->error.to.stream); + flockfile(data->main->error.to); - fl_print_format("%r%[%QThe '%]", data->main->error.to.stream, 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.stream, data->main->error.notable, f_console_symbol_long_enable_s, fake_long_process_s, data->main->error.notable); - fl_print_format("%[' parameters value '%]", data->main->error.to.stream, data->main->error.context, data->main->error.context, f_string_eol_s); - fl_print_format("%[%Q%]", data->main->error.to.stream, data->main->error.notable, data->main->parameters.arguments.array[index], data->main->error.notable); - fl_print_format("%[' contains non-word, non-dash, and non-plus characters.%]%r", data->main->error.to.stream, data->main->error.context, data->main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe '%]", 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_enable_s, fake_long_process_s, data->main->error.notable); + fl_print_format("%[' parameters value '%]", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s); + fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, data->main->parameters.arguments.array[index], data->main->error.notable); + fl_print_format("%[' contains non-word, non-dash, and non-plus characters.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s); - funlockfile(data->main->error.to.stream); + funlockfile(data->main->error.to); } return F_status_set_error(F_parameter); @@ -299,13 +299,13 @@ extern "C" { if (F_status_is_error(status)) { if (status == F_status_set_error(F_string_too_large)) { if (data->main->error.verbosity > f_console_verbosity_quiet_e) { - flockfile(data->main->error.to.stream); + flockfile(data->main->error.to); - fl_print_format("%r%[%QThe parameter '%]", data->main->error.to.stream, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context); - fl_print_format("%[%r%Q%]", data->main->error.to.stream, data->main->error.notable, f_console_symbol_long_enable_s, parameters_name[i], data->main->error.notable); - fl_print_format("%[' is too long.%]%r", data->main->error.to.stream, data->main->error.context, data->main->error.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%Q%]", data->main->error.to, data->main->error.notable, f_console_symbol_long_enable_s, parameters_name[i], data->main->error.notable); + fl_print_format("%[' is too long.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s); - funlockfile(data->main->error.to.stream); + funlockfile(data->main->error.to); } } else { @@ -320,13 +320,13 @@ extern "C" { if (!data->main->parameters.arguments.array[index].used || status == F_data_not) { if (data->main->error.verbosity > f_console_verbosity_quiet_e) { - flockfile(data->main->error.to.stream); + flockfile(data->main->error.to); - fl_print_format("%r%[%QThe parameter '%]", data->main->error.to.stream, 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.stream, data->main->error.notable, f_console_symbol_long_enable_s, parameters_name[i], data->main->error.notable); - fl_print_format("%[' must not be empty and must not contain only white space.%]%r", data->main->error.to.stream, data->main->error.context, data->main->error.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_enable_s, parameters_name[i], data->main->error.notable); + fl_print_format("%[' must not be empty and must not contain only white space.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s); - funlockfile(data->main->error.to.stream); + funlockfile(data->main->error.to); } } } @@ -414,13 +414,13 @@ extern "C" { if (F_status_is_error(status)) { if (fll_error_print(data->main->error, F_status_set_fine(status), "f_path_directory_cleanup", F_false) == F_known_not && data->main->error.verbosity > f_console_verbosity_quiet_e) { - flockfile(data->main->error.to.stream); + flockfile(data->main->error.to); - fl_print_format("%r%[%QFailed to process parameter '%]", data->main->error.to.stream, 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.stream, data->main->error.notable, f_console_symbol_long_enable_s, parameters_name[i], data->main->error.notable); - fl_print_format("%['.%]%r", data->main->error.to.stream, data->main->error.context, data->main->error.context, f_string_eol_s); + fl_print_format("%r%[%QFailed to process 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_enable_s, parameters_name[i], data->main->error.notable); + fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s); - funlockfile(data->main->error.to.stream); + funlockfile(data->main->error.to); } return status; @@ -441,13 +441,13 @@ extern "C" { if (F_status_is_error(status)) { if (fll_error_print(data->main->error, F_status_set_fine(status), " f_string_dynamic_append", F_false) == F_known_not && data->main->error.verbosity > f_console_verbosity_quiet_e) { - flockfile(data->main->error.to.stream); + flockfile(data->main->error.to); - fl_print_format("%r%[%QFailed to load default for the parameter '%]", data->main->error.to.stream, 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.stream, data->main->error.notable, f_console_symbol_long_enable_s, parameters_name[i], data->main->error.notable); - fl_print_format("%['.%]%r", data->main->error.to.stream, data->main->error.context, data->main->error.context, f_string_eol_s); + fl_print_format("%r%[%QFailed to load default for the 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_enable_s, parameters_name[i], data->main->error.notable); + fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s); - funlockfile(data->main->error.to.stream); + funlockfile(data->main->error.to); } return status; @@ -461,13 +461,13 @@ extern "C" { if (F_status_is_error(status)) { if (fll_error_print(data->main->error, F_status_set_fine(status), "fll_program_parameter_additional_rip", F_false) == F_known_not && data->main->error.verbosity > f_console_verbosity_quiet_e) { - flockfile(data->main->error.to.stream); + flockfile(data->main->error.to); - fl_print_format("%r%[%QFailed to process the parameter '%]", data->main->error.to.stream, 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.stream, data->main->error.notable, f_console_symbol_long_enable_s, fake_long_define_s, data->main->error.notable); - fl_print_format("%['.%]%r", data->main->error.to.stream, data->main->error.context, data->main->error.context, f_string_eol_s); + fl_print_format("%r%[%QFailed to process the 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_enable_s, fake_long_define_s, data->main->error.notable); + fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s); - funlockfile(data->main->error.to.stream); + funlockfile(data->main->error.to); } return status; @@ -485,13 +485,13 @@ extern "C" { if (F_status_is_error(status)) { if (fll_error_print(data->main->error, F_status_set_fine(status), "fll_program_parameter_additional_rip", F_false) == F_known_not && data->main->error.verbosity > f_console_verbosity_quiet_e) { - flockfile(data->main->error.to.stream); + flockfile(data->main->error.to); - fl_print_format("%r%[%QFailed to process the parameter '%]", data->main->error.to.stream, 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.stream, data->main->error.notable, f_console_symbol_long_enable_s, fake_long_mode_s, data->main->error.notable); - fl_print_format("%['.%]%r", data->main->error.to.stream, data->main->error.context, data->main->error.context, f_string_eol_s); + fl_print_format("%r%[%QFailed to process the 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_enable_s, fake_long_mode_s, data->main->error.notable); + fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s); - funlockfile(data->main->error.to.stream); + funlockfile(data->main->error.to); } return status; @@ -511,13 +511,13 @@ extern "C" { if (F_status_is_error(status)) { if (fll_error_print(data->main->error, F_status_set_fine(status), "f_utf_is_word_dash_plus", F_false) == F_known_not && data->main->error.verbosity > f_console_verbosity_quiet_e) { - flockfile(data->main->error.to.stream); + flockfile(data->main->error.to); - fl_print_format("%r%[%QFailed to process the parameter '%]", data->main->error.to.stream, 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.stream, data->main->error.notable, f_console_symbol_long_enable_s, fake_long_mode_s, data->main->error.notable); - fl_print_format("%['.%]%r", data->main->error.to.stream, data->main->error.context, data->main->error.context, f_string_eol_s); + fl_print_format("%r%[%QFailed to process the 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_enable_s, fake_long_mode_s, data->main->error.notable); + fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s); - funlockfile(data->main->error.to.stream); + funlockfile(data->main->error.to); } return status; @@ -525,15 +525,15 @@ extern "C" { if (status == F_false) { if (data->main->error.verbosity > f_console_verbosity_quiet_e) { - flockfile(data->main->error.to.stream); + flockfile(data->main->error.to); - fl_print_format("%r%[%QThe '%]", data->main->error.to.stream, 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.stream, data->main->error.notable, f_console_symbol_long_enable_s, fake_long_mode_s, data->main->error.notable); - fl_print_format("%[' parameters value '%]", data->main->error.to.stream, data->main->error.notable, f_console_symbol_long_enable_s, fake_long_mode_s, data->main->error.notable); - fl_print_format("%[%Q%]", data->main->error.to.stream, data->main->error.notable, data->mode.array[i], data->main->error.notable); - fl_print_format("%[' contains non-word, non-dash, and non-plus characters.%]%r", data->main->error.to.stream, data->main->error.context, data->main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe '%]", 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_enable_s, fake_long_mode_s, data->main->error.notable); + fl_print_format("%[' parameters value '%]", data->main->error.to, data->main->error.notable, f_console_symbol_long_enable_s, fake_long_mode_s, data->main->error.notable); + fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, data->mode.array[i], data->main->error.notable); + fl_print_format("%[' contains non-word, non-dash, and non-plus characters.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s); - funlockfile(data->main->error.to.stream); + funlockfile(data->main->error.to); } return F_status_set_error(F_parameter); @@ -633,13 +633,13 @@ extern "C" { } } else if (parameters_required[i] == F_true) { - flockfile(data->main->error.to.stream); + flockfile(data->main->error.to); - fl_print_format("%r%[%QNo valid path for the (required) directory parameter '%]", data->main->error.to.stream, 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.stream, data->main->error.notable, f_console_symbol_long_enable_s, parameters_name[i], data->main->error.notable); - fl_print_format("%[' was found.%]%r", data->main->error.to.stream, data->main->error.context, data->main->error.context, f_string_eol_s); + fl_print_format("%r%[%QNo valid path for the (required) directory 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_enable_s, parameters_name[i], data->main->error.notable); + fl_print_format("%[' was found.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s); - funlockfile(data->main->error.to.stream); + funlockfile(data->main->error.to); return F_status_set_error(F_directory_found_not); } diff --git a/level_3/fake/c/private-make-load_fakefile.c b/level_3/fake/c/private-make-load_fakefile.c index 9d7aef3..babfccc 100644 --- a/level_3/fake/c/private-make-load_fakefile.c +++ b/level_3/fake/c/private-make-load_fakefile.c @@ -44,13 +44,13 @@ extern "C" { if (!data_make->buffer.used) { if (data_make->main->error.verbosity >= f_console_verbosity_verbose_e) { - flockfile(data_make->main->warning.to.stream); + flockfile(data_make->main->warning.to); - fl_print_format("%r%[%QThe fakefile '%]", data_make->main->warning.to.stream, f_string_eol_s, data_make->main->warning.context, data_make->main->warning.prefix, data_make->main->warning.context); - fl_print_format("%[%Q%]", data_make->main->warning.to.stream, data_make->main->warning.notable, data_make->data->file_data_build_fakefile, data_make->main->warning.notable); - fl_print_format("%[' is empty.%]%r", data_make->main->warning.to.stream, data_make->main->warning.context, data_make->main->warning.context, f_string_eol_s); + fl_print_format("%r%[%QThe fakefile '%]", data_make->main->warning.to, f_string_eol_s, data_make->main->warning.context, data_make->main->warning.prefix, data_make->main->warning.context); + fl_print_format("%[%Q%]", data_make->main->warning.to, data_make->main->warning.notable, data_make->data->file_data_build_fakefile, data_make->main->warning.notable); + fl_print_format("%[' is empty.%]%r", data_make->main->warning.to, data_make->main->warning.context, data_make->main->warning.context, f_string_eol_s); - funlockfile(data_make->main->warning.to.stream); + funlockfile(data_make->main->warning.to); } return; @@ -214,15 +214,15 @@ extern "C" { if (missing_main) { if (data_make->main->error.verbosity > f_console_verbosity_quiet_e) { - flockfile(data_make->main->error.to.stream); + flockfile(data_make->main->error.to); - fl_print_format("%r%[%QThe fakefile '%]", data_make->main->error.to.stream, f_string_eol_s, data_make->main->error.context, data_make->main->error.prefix, data_make->main->error.context); - fl_print_format("%[%Q%]", data_make->main->error.to.stream, data_make->main->error.notable, data_make->data->file_data_build_fakefile, data_make->main->error.notable); - fl_print_format("%[' is missing the required '%]", data_make->main->error.to.stream, data_make->main->error.context, data_make->main->error.context); - fl_print_format("%[%r%]", data_make->main->error.to.stream, data_make->main->error.notable, fake_make_section_main_s, data_make->main->error.notable); - fl_print_format("%[' object.%]%r", data_make->main->error.to.stream, data_make->main->error.context, data_make->main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe fakefile '%]", data_make->main->error.to, f_string_eol_s, data_make->main->error.context, data_make->main->error.prefix, data_make->main->error.context); + fl_print_format("%[%Q%]", data_make->main->error.to, data_make->main->error.notable, data_make->data->file_data_build_fakefile, data_make->main->error.notable); + fl_print_format("%[' is missing the required '%]", data_make->main->error.to, data_make->main->error.context, data_make->main->error.context); + fl_print_format("%[%r%]", data_make->main->error.to, data_make->main->error.notable, fake_make_section_main_s, data_make->main->error.notable); + fl_print_format("%[' object.%]%r", data_make->main->error.to, data_make->main->error.context, data_make->main->error.context, f_string_eol_s); - funlockfile(data_make->main->error.to.stream); + funlockfile(data_make->main->error.to); } *status = F_status_set_error(F_failure); @@ -450,13 +450,13 @@ extern "C" { } else { if (data->main->error.verbosity > f_console_verbosity_quiet_e) { - flockfile(data->main->error.to.stream); + flockfile(data->main->error.to); - fl_print_format("%r%[%QInvalid characters in the define setting name '%]", data->main->error.to.stream, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context); - fl_print_format("%[%Q%]", data->main->error.to.stream, data->main->error.notable, define.array[i].name, data->main->error.notable); - fl_print_format("%[', only alpha-numeric ASCII characters and underscore (without a leading digit) are allowed.%]%r", data->main->error.to.stream, data->main->error.context, data->main->error.context, f_string_eol_s); + fl_print_format("%r%[%QInvalid characters in the define setting name '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context); + fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, define.array[i].name, data->main->error.notable); + fl_print_format("%[', only alpha-numeric ASCII characters and underscore (without a leading digit) are allowed.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s); - funlockfile(data->main->error.to.stream); + funlockfile(data->main->error.to); } status = F_status_set_error(F_failure); @@ -534,23 +534,23 @@ extern "C" { ++data_make->setting_build.environment.used; } else if (data_make->main->warning.verbosity >= f_console_verbosity_verbose_e) { - flockfile(data_make->main->warning.to.stream); + flockfile(data_make->main->warning.to); - fl_print_format("%r%[%QThe environment name '%]", data_make->main->warning.to.stream, f_string_eol_s, data_make->main->warning.context, data_make->main->warning.prefix, data_make->main->warning.context); - fl_print_format("%[%Q%]", data_make->main->warning.to.stream, data_make->main->warning.notable, name_define, data_make->main->warning.notable); - fl_print_format("%[' is already added.%]%r", data_make->main->warning.to.stream, data_make->main->warning.context, data_make->main->warning.context, f_string_eol_s); + fl_print_format("%r%[%QThe environment name '%]", data_make->main->warning.to, f_string_eol_s, data_make->main->warning.context, data_make->main->warning.prefix, data_make->main->warning.context); + fl_print_format("%[%Q%]", data_make->main->warning.to, data_make->main->warning.notable, name_define, data_make->main->warning.notable); + fl_print_format("%[' is already added.%]%r", data_make->main->warning.to, data_make->main->warning.context, data_make->main->warning.context, f_string_eol_s); - funlockfile(data_make->main->warning.to.stream); + funlockfile(data_make->main->warning.to); } } else if (data_make->main->warning.verbosity >= f_console_verbosity_verbose_e) { - flockfile(data_make->main->warning.to.stream); + flockfile(data_make->main->warning.to); - fl_print_format("%r%[%QThe environment name '%]", data_make->main->warning.to.stream, f_string_eol_s, data_make->main->warning.context, data_make->main->warning.prefix, data_make->main->warning.context); - fl_print_format("%[%Q%]", data_make->main->warning.to.stream, data_make->main->warning.notable, name_define, data_make->main->warning.notable); - fl_print_format("%[' is invalid, ignoring.%]%r", data_make->main->warning.to.stream, data_make->main->warning.context, data_make->main->warning.context, f_string_eol_s); + fl_print_format("%r%[%QThe environment name '%]", data_make->main->warning.to, f_string_eol_s, data_make->main->warning.context, data_make->main->warning.prefix, data_make->main->warning.context); + fl_print_format("%[%Q%]", data_make->main->warning.to, data_make->main->warning.notable, name_define, data_make->main->warning.notable); + fl_print_format("%[' is invalid, ignoring.%]%r", data_make->main->warning.to, data_make->main->warning.context, data_make->main->warning.context, f_string_eol_s); - funlockfile(data_make->main->warning.to.stream); + funlockfile(data_make->main->warning.to); } name_define.used = 0; diff --git a/level_3/fake/c/private-make-operate.c b/level_3/fake/c/private-make-operate.c index 9278829..60764ee 100644 --- a/level_3/fake/c/private-make-operate.c +++ b/level_3/fake/c/private-make-operate.c @@ -23,27 +23,27 @@ extern "C" { } if (data->main->output.verbosity != f_console_verbosity_quiet_e && data->main->output.verbosity != f_console_verbosity_error_e) { - flockfile(data->main->output.to.stream); + flockfile(data->main->output.to); - fl_print_format("%r%[Now making using '%]", data->main->output.to.stream, f_string_eol_s, data->main->context.set.important, data->main->context.set.important); - fl_print_format("%[%Q%]", data->main->output.to.stream, data->main->context.set.notable, data->fakefile, data->main->context.set.notable); + fl_print_format("%r%[Now making using '%]", data->main->output.to, f_string_eol_s, data->main->context.set.important, data->main->context.set.important); + fl_print_format("%[%Q%]", data->main->output.to, data->main->context.set.notable, data->fakefile, data->main->context.set.notable); if (data->mode.used) { - fl_print_format("%[' with modes '%]", data->main->output.to.stream, data->main->context.set.important, data->main->context.set.important); + fl_print_format("%[' with modes '%]", data->main->output.to, data->main->context.set.important, data->main->context.set.important); for (f_array_length_t i = 0; i < data->mode.used; ) { - fl_print_format("%[%Q%]", data->main->output.to.stream, data->main->context.set.notable, data->mode.array[i], data->main->context.set.notable); + fl_print_format("%[%Q%]", data->main->output.to, data->main->context.set.notable, data->mode.array[i], data->main->context.set.notable); if (++i < data->mode.used) { - fl_print_format("%[', '%]", data->main->output.to.stream, data->main->context.set.important, data->main->context.set.important); + fl_print_format("%[', '%]", data->main->output.to, data->main->context.set.important, data->main->context.set.important); } } // for } - fl_print_format("%['.%]%r", data->main->output.to.stream, data->main->context.set.important, data->main->context.set.important, f_string_eol_s); + fl_print_format("%['.%]%r", data->main->output.to, data->main->context.set.important, data->main->context.set.important, f_string_eol_s); - funlockfile(data->main->output.to.stream); + funlockfile(data->main->output.to); } f_status_t status = F_none; @@ -140,15 +140,15 @@ extern "C" { const f_status_t status_path = f_path_change_at(data_make.path.top.id); if (F_status_is_error(status_path) && data->main->warning.verbosity >= f_console_verbosity_verbose_e) { - flockfile(data->main->warning.to.stream); + flockfile(data->main->warning.to); - fl_print_format("%r%[%QFailed change back to orignal path '%]", data->main->warning.to.stream, f_string_eol_s, data->main->warning.context, data->main->warning.prefix, data->main->warning.context); - fl_print_format("%[%Q%]", data->main->warning.to.stream, data->main->warning.notable, data_make.path.stack.array[0], data->main->warning.notable); - fl_print_format("%[', status code =%] ", data->main->warning.to.stream, data->main->warning.context, data->main->warning.context); - fl_print_format("%[%ui%]", data->main->warning.to.stream, data->main->warning.notable, F_status_set_fine(status_path), data->main->warning.notable); - fl_print_format("%['.%]%r", data->main->warning.to.stream, data->main->warning.context, data->main->warning.context, f_string_eol_s); + fl_print_format("%r%[%QFailed change back to orignal path '%]", data->main->warning.to, f_string_eol_s, data->main->warning.context, data->main->warning.prefix, data->main->warning.context); + fl_print_format("%[%Q%]", data->main->warning.to, data->main->warning.notable, data_make.path.stack.array[0], data->main->warning.notable); + fl_print_format("%[', status code =%] ", data->main->warning.to, data->main->warning.context, data->main->warning.context); + fl_print_format("%[%ui%]", data->main->warning.to, data->main->warning.notable, F_status_set_fine(status_path), data->main->warning.notable); + fl_print_format("%['.%]%r", data->main->warning.to, data->main->warning.context, data->main->warning.context, f_string_eol_s); - funlockfile(data->main->warning.to.stream); + funlockfile(data->main->warning.to); } } @@ -1154,13 +1154,13 @@ extern "C" { const f_fss_named_t *section = &data_make->fakefile.array[id_section]; if (data_make->main->output.verbosity != f_console_verbosity_quiet_e && data_make->main->output.verbosity != f_console_verbosity_error_e) { - flockfile(data_make->main->output.to.stream); + flockfile(data_make->main->output.to); - fl_print_format("%r%[Processing Section '%]", data_make->main->output.to.stream, f_string_eol_s, data_make->main->context.set.important, data_make->main->context.set.important); - fl_print_format("%[%/Q%]", data_make->main->output.to.stream, data_make->main->context.set.notable, data_make->buffer, section->name, data_make->main->context.set.notable); - fl_print_format("%['.%]%r", data_make->main->output.to.stream, data_make->main->context.set.important, data_make->main->context.set.important, f_string_eol_s); + fl_print_format("%r%[Processing Section '%]", data_make->main->output.to, f_string_eol_s, data_make->main->context.set.important, data_make->main->context.set.important); + fl_print_format("%[%/Q%]", data_make->main->output.to, data_make->main->context.set.notable, data_make->buffer, section->name, data_make->main->context.set.notable); + fl_print_format("%['.%]%r", data_make->main->output.to, data_make->main->context.set.important, data_make->main->context.set.important, f_string_eol_s); - funlockfile(data_make->main->output.to.stream); + funlockfile(data_make->main->output.to); } if (!section->objects.used) { @@ -1335,7 +1335,7 @@ extern "C" { data_make->error.suffix = f_string_empty_s; data_make->error.context = data_make->main->context.set.error; data_make->error.notable = data_make->main->context.set.notable; - data_make->error.to.stream = F_type_error_d; + data_make->error.to = F_type_error_d; data_make->error.to.id = F_type_descriptor_error_d; data_make->error.set = &data_make->main->context.set; } @@ -1389,25 +1389,25 @@ extern "C" { if (F_status_set_error(*status) == F_interrupt) return 0; if (i == section->objects.used && F_status_is_error_not(*status) && (state_process.operation == fake_make_operation_type_and_e || state_process.operation == fake_make_operation_type_else_e || state_process.operation == fake_make_operation_type_if_e || state_process.operation == fake_make_operation_type_or_e)) { - if (data_make->data->main->error.verbosity > f_console_verbosity_quiet_e && data_make->error.to.stream) { + if (data_make->data->main->error.verbosity > f_console_verbosity_quiet_e && data_make->error.to) { flockfile(data_make->error.to.stream); - fl_print_format("%r%[%QIncomplete '%]", data_make->error.to.stream, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); + fl_print_format("%r%[%QIncomplete '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); if (state_process.operation == fake_make_operation_type_and_e) { - fl_print_format("%[%r%]", data_make->error.to.stream, data_make->error.notable, fake_make_operation_and_s, data_make->error.notable); + fl_print_format("%[%r%]", data_make->error.to, data_make->error.notable, fake_make_operation_and_s, data_make->error.notable); } else if (state_process.operation == fake_make_operation_type_else_e) { - fl_print_format("%[%r%]", data_make->error.to.stream, data_make->error.notable, fake_make_operation_else_s, data_make->error.notable); + fl_print_format("%[%r%]", data_make->error.to, data_make->error.notable, fake_make_operation_else_s, data_make->error.notable); } else if (state_process.operation == fake_make_operation_type_if_e) { - fl_print_format("%[%r%]", data_make->error.to.stream, data_make->error.notable, fake_make_operation_if_s, data_make->error.notable); + fl_print_format("%[%r%]", data_make->error.to, data_make->error.notable, fake_make_operation_if_s, data_make->error.notable); } else { - fl_print_format("%[%r%]", data_make->error.to.stream, data_make->error.notable, fake_make_operation_or_s, data_make->error.notable); + fl_print_format("%[%r%]", data_make->error.to, data_make->error.notable, fake_make_operation_or_s, data_make->error.notable); } - fl_print_format("%[' at end of the section.%]%r", data_make->error.to.stream, data_make->error.context, data_make->error.context, f_string_eol_s); + fl_print_format("%[' at end of the section.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s); funlockfile(data_make->error.to.stream); } diff --git a/level_3/fake/c/private-make-operate_process.c b/level_3/fake/c/private-make-operate_process.c index 80f2714..35dead3 100644 --- a/level_3/fake/c/private-make-operate_process.c +++ b/level_3/fake/c/private-make-operate_process.c @@ -323,32 +323,32 @@ extern "C" { } if (data_make->main->error.verbosity >= f_console_verbosity_verbose_e) { - flockfile(data_make->main->output.to.stream); + flockfile(data_make->main->output.to); f_array_length_t i = 0; if (program.used) { - f_print_dynamic_safely(program, data_make->main->output.to.stream); + f_print_dynamic_safely(program, data_make->main->output.to); } else { i = 1; - f_print_dynamic_safely(arguments.array[0], data_make->main->output.to.stream); + f_print_dynamic_safely(arguments.array[0], data_make->main->output.to); } for (; i < arguments.used; ++i) { if (arguments.array[i].used) { - fll_print_format(" %Q", data_make->main->output.to.stream, arguments.array[i]); + fll_print_format(" %Q", data_make->main->output.to, arguments.array[i]); } } // for - f_print_dynamic_raw(f_string_eol_s, data_make->main->output.to.stream); + f_print_dynamic_raw(f_string_eol_s, data_make->main->output.to); - funlockfile(data_make->main->output.to.stream); + funlockfile(data_make->main->output.to); // Flush to stdout before executing command. - fflush(data_make->main->output.to.stream); + fflush(data_make->main->output.to); } int return_code = 0; @@ -372,12 +372,12 @@ extern "C" { if (F_status_set_fine(status) == F_interrupt) return status; if (F_status_set_fine(status) == F_file_found_not) { - if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to.stream) { + if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) { flockfile(data_make->error.to.stream); - fl_print_format("%r%[%QFailed to find program '%]", data_make->error.to.stream, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); - fl_print_format("%[%Q%]", data_make->error.to.stream, data_make->error.notable, program, data_make->error.notable); - fl_print_format("%[' for executing.%]%r", data_make->error.to.stream, data_make->error.context, data_make->error.context, f_string_eol_s); + fl_print_format("%r%[%QFailed to find program '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); + fl_print_format("%[%Q%]", data_make->error.to, data_make->error.notable, program, data_make->error.notable); + fl_print_format("%[' for executing.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s); funlockfile(data_make->error.to.stream); } @@ -440,12 +440,12 @@ extern "C" { return status; } - if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to.stream) { + if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) { flockfile(data_make->error.to.stream); - fl_print_format("%r%[%QFailed with return code %]", data_make->error.to.stream, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); - fl_print_format("%[%i%]", data_make->error.to.stream, data_make->error.notable, return_code, data_make->error.notable); - fl_print_format("%[.%]%r", data_make->error.to.stream, data_make->error.context, data_make->error.context, f_string_eol_s); + fl_print_format("%r%[%QFailed with return code %]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); + fl_print_format("%[%i%]", data_make->error.to, data_make->error.notable, return_code, data_make->error.notable); + fl_print_format("%[.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s); funlockfile(data_make->error.to.stream); } diff --git a/level_3/fake/c/private-make-operate_process_type.c b/level_3/fake/c/private-make-operate_process_type.c index 6e90900..b27c07a 100644 --- a/level_3/fake/c/private-make-operate_process_type.c +++ b/level_3/fake/c/private-make-operate_process_type.c @@ -30,13 +30,13 @@ extern "C" { } if (data_make->main->error.verbosity >= f_console_verbosity_verbose_e) { - flockfile(data_make->main->output.to.stream); + flockfile(data_make->main->output.to); - fl_print_format("%rBreaking as '", data_make->main->output.to.stream, f_string_eol_s); - fl_print_format("%[%Q%]", data_make->main->output.to.stream, data_make->main->context.set.notable, data_make->cache_arguments.used ? data_make->cache_arguments.array[0] : fake_make_operation_argument_success_s, data_make->main->context.set.notable); - fl_print_format("'.%r", data_make->main->output.to.stream, f_string_eol_s); + fl_print_format("%rBreaking as '", data_make->main->output.to, f_string_eol_s); + fl_print_format("%[%Q%]", data_make->main->output.to, data_make->main->context.set.notable, data_make->cache_arguments.used ? data_make->cache_arguments.array[0] : fake_make_operation_argument_success_s, data_make->main->context.set.notable); + fl_print_format("'.%r", data_make->main->output.to, f_string_eol_s); - funlockfile(data_make->main->output.to.stream); + funlockfile(data_make->main->output.to); } return status; @@ -327,12 +327,12 @@ extern "C" { } if (data_make->main->error.verbosity >= f_console_verbosity_verbose_e) { - flockfile(data_make->main->output.to.stream); + flockfile(data_make->main->output.to); - fl_print_format("%r%s '%[%Q%]' to '", data_make->main->output.to.stream, f_string_eol_s, clone ? "Cloned" : "Copied", data_make->main->context.set.notable, data_make->cache_arguments.array[i], data_make->main->context.set.notable); - fl_print_format("%[%Q%]'.%r", data_make->main->output.to.stream, data_make->main->context.set.notable, destination, data_make->main->context.set.notable, f_string_eol_s); + fl_print_format("%r%s '%[%Q%]' to '", data_make->main->output.to, f_string_eol_s, clone ? "Cloned" : "Copied", data_make->main->context.set.notable, data_make->cache_arguments.array[i], data_make->main->context.set.notable); + fl_print_format("%[%Q%]'.%r", data_make->main->output.to, data_make->main->context.set.notable, destination, data_make->main->context.set.notable, f_string_eol_s); - funlockfile(data_make->main->output.to.stream); + funlockfile(data_make->main->output.to); } } else if (F_status_is_error(status_file)) { @@ -362,7 +362,7 @@ extern "C" { fll_error_print(data_make->error, F_status_set_fine(status), "f_environment_set", F_true); } else if (data_make->main->error.verbosity >= f_console_verbosity_verbose_e) { - fll_print_format("%rDefined environment variable '%[%Q%]'.%r", data_make->main->output.to.stream, 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); + fll_print_format("%rDefined environment variable '%[%Q%]'.%r", data_make->main->output.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); } return status; @@ -386,13 +386,13 @@ extern "C" { if (F_status_is_error(status)) { if (F_status_set_fine(status) == F_file_found_not) { if (data_make->main->warning.verbosity >= f_console_verbosity_verbose_e) { - flockfile(data_make->main->warning.to.stream); + flockfile(data_make->main->warning.to); - fl_print_format("%r%[%QThe file '%]", data_make->main->warning.to.stream, data_make->main->warning.prefix, f_string_eol_s); - fl_print_format("%[%Q%]", data_make->main->warning.to.stream, data_make->main->warning.notable, data_make->cache_arguments.array[i], data_make->main->warning.notable); - fl_print_format("%[' cannot be found.%]%r", data_make->main->warning.to.stream, f_string_eol_s); + fl_print_format("%r%[%QThe file '%]", data_make->main->warning.to, data_make->main->warning.prefix, f_string_eol_s); + fl_print_format("%[%Q%]", data_make->main->warning.to, data_make->main->warning.notable, data_make->cache_arguments.array[i], data_make->main->warning.notable); + fl_print_format("%[' cannot be found.%]%r", data_make->main->warning.to, f_string_eol_s); - funlockfile(data_make->main->warning.to.stream); + funlockfile(data_make->main->warning.to); } status = F_none; @@ -413,7 +413,7 @@ extern "C" { if (F_status_set_fine(status) == F_file_found_not) { if (data_make->main->error.verbosity >= f_console_verbosity_verbose_e) { - fll_print_format("%rThe directory '%[%Q%]' does not exist.%r", data_make->main->output.to.stream, f_string_eol_s, data_make->main->context.set.notable, data_make->cache_arguments.array[i], data_make->main->context.set.notable, f_string_eol_s); + fll_print_format("%rThe directory '%[%Q%]' does not exist.%r", data_make->main->output.to, f_string_eol_s, data_make->main->context.set.notable, data_make->cache_arguments.array[i], data_make->main->context.set.notable, f_string_eol_s); } status = F_none; @@ -426,7 +426,7 @@ extern "C" { } if (data_make->main->error.verbosity >= f_console_verbosity_verbose_e) { - fll_print_format("%rRemoved '%[%Q%]'.%r", data_make->main->output.to.stream, f_string_eol_s, data_make->main->context.set.notable, data_make->cache_arguments.array[i], data_make->main->context.set.notable, f_string_eol_s); + fll_print_format("%rRemoved '%[%Q%]'.%r", data_make->main->output.to, f_string_eol_s, data_make->main->context.set.notable, data_make->cache_arguments.array[i], data_make->main->context.set.notable, f_string_eol_s); } } else { @@ -434,7 +434,7 @@ extern "C" { if (F_status_set_fine(status) == F_file_found_not) { if (data_make->main->error.verbosity >= f_console_verbosity_verbose_e) { - fll_print_format("%rThe file '%[%Q%]' does not exist.%r", data_make->main->output.to.stream, f_string_eol_s, data_make->main->context.set.notable, data_make->cache_arguments.array[i], data_make->main->context.set.notable, f_string_eol_s); + fll_print_format("%rThe file '%[%Q%]' does not exist.%r", data_make->main->output.to, f_string_eol_s, data_make->main->context.set.notable, data_make->cache_arguments.array[i], data_make->main->context.set.notable, f_string_eol_s); } status = F_none; @@ -447,7 +447,7 @@ extern "C" { } if (data_make->main->error.verbosity >= f_console_verbosity_verbose_e) { - fll_print_format("%rRemoved '%[%Q%]'.%r", data_make->main->output.to.stream, f_string_eol_s, data_make->main->context.set.notable, data_make->cache_arguments.array[i], data_make->main->context.set.notable, f_string_eol_s); + fll_print_format("%rRemoved '%[%Q%]'.%r", data_make->main->output.to, f_string_eol_s, data_make->main->context.set.notable, data_make->cache_arguments.array[i], data_make->main->context.set.notable, f_string_eol_s); } } } // for @@ -473,7 +473,7 @@ extern "C" { data_make->error.suffix = f_string_empty_s; data_make->error.context = data_make->main->context.set.error; data_make->error.notable = data_make->main->context.set.notable; - data_make->error.to.stream = F_type_error_d; + data_make->error.to = F_type_error_d; data_make->error.to.id = F_type_descriptor_error_d; data_make->error.set = &data_make->main->context.set; } @@ -482,7 +482,7 @@ extern "C" { } if (data_make->main->error.verbosity >= f_console_verbosity_verbose_e) { - fll_print_format("%rExiting as '%[%Q%]'.%r", data_make->main->output.to.stream, f_string_eol_s, data_make->main->context.set.notable, data_make->cache_arguments.used ? data_make->cache_arguments.array[0] : fake_make_operation_argument_success_s, data_make->main->context.set.notable, f_string_eol_s); + fll_print_format("%rExiting as '%[%Q%]'.%r", data_make->main->output.to, f_string_eol_s, data_make->main->context.set.notable, data_make->cache_arguments.used ? data_make->cache_arguments.array[0] : fake_make_operation_argument_success_s, data_make->main->context.set.notable, f_string_eol_s); } return status; @@ -498,7 +498,7 @@ extern "C" { data_make->error.suffix = f_string_empty_s; data_make->error.context = data_make->main->context.set.error; data_make->error.notable = data_make->main->context.set.notable; - data_make->error.to.stream = F_type_error_d; + data_make->error.to = F_type_error_d; data_make->error.to.id = F_type_descriptor_error_d; data_make->error.set = &data_make->main->context.set; } @@ -508,34 +508,34 @@ extern "C" { data_make->error.suffix = f_string_empty_s; data_make->error.context = data_make->main->context.set.warning; data_make->error.notable = data_make->main->context.set.notable; - data_make->error.to.stream = F_type_warning_d; + data_make->error.to = F_type_warning_d; data_make->error.to.id = F_type_descriptor_output_d; data_make->error.set = &data_make->main->context.set; } else { data_make->setting_make.fail = fake_make_operation_fail_type_ignore_e; - data_make->error.to.stream = 0; + data_make->error.to = 0; data_make->error.to.id = -1; } if (data_make->main->error.verbosity >= f_console_verbosity_verbose_e) { - flockfile(data_make->main->output.to.stream); + flockfile(data_make->main->output.to); - f_print_terminated("Set failure state to '", data_make->main->output.to.stream); + f_print_terminated("Set failure state to '", data_make->main->output.to); if (data_make->setting_make.fail == fake_make_operation_fail_type_exit_e) { - fl_print_format("%[%r%]", data_make->main->output.to.stream, data_make->main->context.set.notable, fake_make_operation_argument_exit_s, data_make->main->context.set.notable); + fl_print_format("%[%r%]", data_make->main->output.to, data_make->main->context.set.notable, fake_make_operation_argument_exit_s, data_make->main->context.set.notable); } else if (data_make->setting_make.fail == fake_make_operation_fail_type_warn_e) { - fl_print_format("%[%r%]", data_make->main->output.to.stream, data_make->main->context.set.notable, fake_make_operation_argument_warn_s, data_make->main->context.set.notable); + fl_print_format("%[%r%]", data_make->main->output.to, data_make->main->context.set.notable, fake_make_operation_argument_warn_s, data_make->main->context.set.notable); } else { - fl_print_format("%[%r%]", data_make->main->output.to.stream, data_make->main->context.set.notable, fake_make_operation_argument_ignore_s, data_make->main->context.set.notable); + fl_print_format("%[%r%]", data_make->main->output.to, data_make->main->context.set.notable, fake_make_operation_argument_ignore_s, data_make->main->context.set.notable); } - fl_print_format("'.%r", data_make->main->output.to.stream, f_string_eol_s); + fl_print_format("'.%r", data_make->main->output.to, f_string_eol_s); - funlockfile(data_make->main->output.to.stream); + funlockfile(data_make->main->output.to); } } #endif // _di_fake_make_operate_process_type_fail_ @@ -581,12 +581,12 @@ extern "C" { } if (data_make->main->error.verbosity >= f_console_verbosity_verbose_e) { - flockfile(data_make->main->output.to.stream); + flockfile(data_make->main->output.to); - fl_print_format("%r group of '%[%r%]", data_make->main->output.to.stream, all ? "Recursively changed" : "Changed", data_make->main->context.set.notable, data_make->cache_arguments.array[i], data_make->main->context.set.notable); - fl_print_format("' to %[%ul%].%r", data_make->main->output.to.stream, data_make->main->context.set.notable, id, data_make->main->context.set.notable, f_string_eol_s); + fl_print_format("%r group of '%[%r%]", data_make->main->output.to, all ? "Recursively changed" : "Changed", data_make->main->context.set.notable, data_make->cache_arguments.array[i], data_make->main->context.set.notable); + fl_print_format("' to %[%ul%].%r", data_make->main->output.to, data_make->main->context.set.notable, id, data_make->main->context.set.notable, f_string_eol_s); - funlockfile(data_make->main->output.to.stream); + funlockfile(data_make->main->output.to); } } // for @@ -930,18 +930,18 @@ extern "C" { if (F_status_is_error(status)) { state_process->condition_result = fake_condition_result_error_e; - if (data_make->main->error.verbosity > f_console_verbosity_quiet_e && data_make->error.to.stream) { + if (data_make->main->error.verbosity > f_console_verbosity_quiet_e && data_make->error.to) { flockfile(data_make->error.to.stream); if ((i == 1 && number_left > F_number_t_size_unsigned_d) || (i > 1 && number_right > F_number_t_size_unsigned_d)) { - fl_print_format("%r%[%QThe number '%]", data_make->error.to.stream, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); - fl_print_format("%[%Q%]", data_make->error.to.stream, data_make->error.notable, data_make->cache_arguments.array[i], data_make->error.notable); - fl_print_format("%[' may only be between the ranges -%un to %un.%]%r", data_make->error.to.stream, data_make->error.context, F_number_t_size_unsigned_d, F_number_t_size_unsigned_d, data_make->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe number '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); + fl_print_format("%[%Q%]", data_make->error.to, data_make->error.notable, data_make->cache_arguments.array[i], data_make->error.notable); + fl_print_format("%[' may only be between the ranges -%un to %un.%]%r", data_make->error.to, data_make->error.context, F_number_t_size_unsigned_d, F_number_t_size_unsigned_d, data_make->error.context, f_string_eol_s); } else { - fl_print_format("%r%[%QInvalid or unsupported number provided '%]", data_make->error.to.stream, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); - fl_print_format("%[%Q%]", data_make->error.to.stream, data_make->error.notable, data_make->cache_arguments.array[i], data_make->error.notable); - fl_print_format("%['.%]%r", data_make->error.to.stream, data_make->error.context, F_number_t_size_unsigned_d, F_number_t_size_unsigned_d, data_make->error.context, f_string_eol_s); + fl_print_format("%r%[%QInvalid or unsupported number provided '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); + fl_print_format("%[%Q%]", data_make->error.to, data_make->error.notable, data_make->cache_arguments.array[i], data_make->error.notable); + fl_print_format("%['.%]%r", data_make->error.to, data_make->error.context, F_number_t_size_unsigned_d, F_number_t_size_unsigned_d, data_make->error.context, f_string_eol_s); } funlockfile(data_make->error.to.stream); @@ -1363,12 +1363,12 @@ extern "C" { } if (data_make->main->error.verbosity >= f_console_verbosity_verbose_e) { - flockfile(data_make->main->output.to.stream); + flockfile(data_make->main->output.to); - fl_print_format("Created symbolic link from '%[%Q%]", data_make->main->output.to.stream, data_make->main->context.set.notable, data_make->cache_arguments.array[data_make->cache_arguments.used - 1], data_make->main->context.set.notable); - fl_print_format("' to %[%Q%].%r", data_make->main->output.to.stream, data_make->main->context.set.notable, data_make->cache_arguments.array[0], data_make->main->context.set.notable, f_string_eol_s); + fl_print_format("Created symbolic link from '%[%Q%]", data_make->main->output.to, data_make->main->context.set.notable, data_make->cache_arguments.array[data_make->cache_arguments.used - 1], data_make->main->context.set.notable); + fl_print_format("' to %[%Q%].%r", data_make->main->output.to, data_make->main->context.set.notable, data_make->cache_arguments.array[0], data_make->main->context.set.notable, f_string_eol_s); - funlockfile(data_make->main->output.to.stream); + funlockfile(data_make->main->output.to); } return F_none; @@ -1426,7 +1426,7 @@ extern "C" { } if (data_make->main->error.verbosity >= f_console_verbosity_verbose_e) { - fll_print_format("Changed mode of '%Q' to %#@u.%r", data_make->main->output.to.stream, data_make->cache_arguments.array[i], mode, f_string_eol_s); + fll_print_format("Changed mode of '%Q' to %#@u.%r", data_make->main->output.to, data_make->cache_arguments.array[i], mode, f_string_eol_s); } } // for @@ -1593,7 +1593,7 @@ extern "C" { } if (data_make->main->error.verbosity >= f_console_verbosity_verbose_e) { - fll_print_format("%s owner of '%Q' to %u.%r", data_make->main->output.to.stream, all ? "Recursively changed" : "Changed", data_make->cache_arguments.array[i], id, f_string_eol_s); + fll_print_format("%s owner of '%Q' to %u.%r", data_make->main->output.to, all ? "Recursively changed" : "Changed", data_make->cache_arguments.array[i], id, f_string_eol_s); } } // for @@ -1712,12 +1712,12 @@ 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)) { fll_error_print(data_make->error, F_status_set_fine(status), "fake_make_path_relative", F_true); - fll_print_format("Changed to project path '%[%Q%]'.%r", data_make->main->output.to.stream, data_make->main->context.set.notable, argument, data_make->main->context.set.notable, f_string_eol_s); + fll_print_format("Changed to project path '%[%Q%]'.%r", data_make->main->output.to, data_make->main->context.set.notable, argument, data_make->main->context.set.notable, f_string_eol_s); return F_status_set_error(F_failure); } - fll_print_format("Changed to project path '%[%Q%]'.%r", data_make->main->output.to.stream, data_make->main->context.set.notable, data_make->cache_path, data_make->main->context.set.notable, f_string_eol_s); + fll_print_format("Changed to project path '%[%Q%]'.%r", data_make->main->output.to, data_make->main->context.set.notable, data_make->cache_path, data_make->main->context.set.notable, f_string_eol_s); } return F_none; @@ -1773,12 +1773,12 @@ extern "C" { } // for } - flockfile(data_make->main->output.to.stream); + flockfile(data_make->main->output.to); - fll_print_dynamic_raw(data_make->cache_1, data_make->main->output.to.stream); - fll_print_dynamic_raw(f_string_eol_s, data_make->main->output.to.stream); + fll_print_dynamic_raw(data_make->cache_1, data_make->main->output.to); + fll_print_dynamic_raw(f_string_eol_s, data_make->main->output.to); - funlockfile(data_make->main->output.to.stream); + funlockfile(data_make->main->output.to); return F_none; } @@ -1846,10 +1846,10 @@ 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)) { fll_error_print(data_make->error, F_status_set_fine(status), "fake_make_path_relative", F_true); - fll_print_format("Changed to project path '%[%Q%]'.%r", data_make->main->output.to.stream, 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); + fll_print_format("Changed to project path '%[%Q%]'.%r", data_make->main->output.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); } else { - fll_print_format("Changed to project path '%[%Q%]'.%r", data_make->main->output.to.stream, data_make->main->context.set.notable, data_make->cache_path, data_make->main->context.set.notable, f_string_eol_s); + fll_print_format("Changed to project path '%[%Q%]'.%r", data_make->main->output.to, data_make->main->context.set.notable, data_make->cache_path, data_make->main->context.set.notable, f_string_eol_s); } } @@ -1874,7 +1874,7 @@ extern "C" { } if (data_make->main->error.verbosity >= f_console_verbosity_verbose_e) { - fll_print_format("Changed to project path ''.%r", data_make->main->output.to.stream, f_string_eol_s); + fll_print_format("Changed to project path ''.%r", data_make->main->output.to, f_string_eol_s); } // Clear stack, except for the project root. @@ -1928,7 +1928,7 @@ extern "C" { } if (data_make->main->error.verbosity >= f_console_verbosity_verbose_e) { - fll_print_format("Touched '%[%Q%]'.%r", data_make->main->output.to.stream, data_make->main->context.set.notable, data_make->cache_arguments.array[i], data_make->main->context.set.notable, f_string_eol_s); + fll_print_format("Touched '%[%Q%]'.%r", data_make->main->output.to, data_make->main->context.set.notable, data_make->cache_arguments.array[i], data_make->main->context.set.notable, f_string_eol_s); } } // for diff --git a/level_3/fake/c/private-make-operate_validate_type.c b/level_3/fake/c/private-make-operate_validate_type.c index 9e78e01..87d37e4 100644 --- a/level_3/fake/c/private-make-operate_validate_type.c +++ b/level_3/fake/c/private-make-operate_validate_type.c @@ -22,12 +22,12 @@ extern "C" { if (fl_string_dynamic_compare(fake_make_operation_argument_success_s, data_make->cache_arguments.array[0]) == F_equal_to_not) { if (fl_string_dynamic_compare(fake_make_operation_argument_failure_s, data_make->cache_arguments.array[0]) == F_equal_to_not) { - if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to.stream) { + if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) { flockfile(data_make->error.to.stream); - fl_print_format("%r%[%QUnsupported break type '%]", data_make->error.to.stream, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); - fl_print_format("%[%Q%]", data_make->error.to.stream, data_make->error.notable, data_make->cache_arguments.array[0], data_make->error.notable); - fl_print_format("%['.%]%r", data_make->error.to.stream, data_make->error.context, data_make->error.context, f_string_eol_s); + fl_print_format("%r%[%QUnsupported break type '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); + fl_print_format("%[%Q%]", data_make->error.to, data_make->error.notable, data_make->cache_arguments.array[0], data_make->error.notable); + fl_print_format("%['.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s); funlockfile(data_make->error.to.stream); } @@ -59,12 +59,12 @@ extern "C" { const f_status_t status = f_file_is(path_file, F_file_type_regular_d, F_false); if (status == F_file_found_not) { - if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to.stream) { + if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) { flockfile(data_make->error.to.stream); - fl_print_format("%r%[%QFailed to find file '%]", data_make->error.to.stream, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); - fl_print_format("%[%Q%]", data_make->error.to.stream, data_make->error.notable, path_file, data_make->error.notable); - fl_print_format("%['.%]%r", data_make->error.to.stream, data_make->error.context, data_make->error.context, f_string_eol_s); + fl_print_format("%r%[%QFailed to find file '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); + fl_print_format("%[%Q%]", data_make->error.to, data_make->error.notable, path_file, data_make->error.notable); + fl_print_format("%['.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s); funlockfile(data_make->error.to.stream); } @@ -79,12 +79,12 @@ extern "C" { } if (!status) { - if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to.stream) { + if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) { flockfile(data_make->error.to.stream); - fl_print_format("%r%[%QThe file '%]", data_make->error.to.stream, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); - fl_print_format("%[%Q%]", data_make->error.to.stream, data_make->error.notable, path_file, data_make->error.notable); - fl_print_format("%[' must be a regular file.%]%r", data_make->error.to.stream, data_make->error.context, data_make->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe file '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); + fl_print_format("%[%Q%]", data_make->error.to, data_make->error.notable, path_file, data_make->error.notable); + fl_print_format("%[' must be a regular file.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s); funlockfile(data_make->error.to.stream); } @@ -93,8 +93,8 @@ extern "C" { } } else { - if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to.stream) { - fll_print_format("%r%[QFilename argument must not be an empty string.%]%r", data_make->error.to.stream, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context, f_string_eol_s); + if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) { + fll_print_format("%r%[QFilename argument must not be an empty string.%]%r", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context, f_string_eol_s); } return F_status_set_error(F_failure); @@ -139,12 +139,12 @@ extern "C" { for (f_array_length_t i = 0; i < data_make->cache_arguments.used - 1; ++i) { if (f_file_exists(data_make->cache_arguments.array[i], F_true) != F_true) { - if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to.stream) { + if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) { flockfile(data_make->error.to.stream); - fl_print_format("%r%[%QFailed to find file '%]", data_make->error.to.stream, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); - fl_print_format("%[%Q%]", data_make->error.to.stream, data_make->error.notable, data_make->cache_arguments.array[i], data_make->error.notable); - fl_print_format("%['.%]%r", data_make->error.to.stream, data_make->error.context, data_make->error.context, f_string_eol_s); + fl_print_format("%r%[%QFailed to find file '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); + fl_print_format("%[%Q%]", data_make->error.to, data_make->error.notable, data_make->cache_arguments.array[i], data_make->error.notable); + fl_print_format("%['.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s); funlockfile(data_make->error.to.stream); } @@ -159,12 +159,12 @@ extern "C" { status_file = f_directory_is(data_make->cache_arguments.array[data_make->cache_arguments.used - 1]); if (status_file == F_false || status_file == F_file_found_not) { - if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to.stream) { + if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) { flockfile(data_make->error.to.stream); - fl_print_format("%r%[%QThe last file '%]", data_make->error.to.stream, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); - fl_print_format("%[%Q%]", data_make->error.to.stream, data_make->error.notable, data_make->cache_arguments.array[data_make->cache_arguments.used - 1], data_make->error.notable); - fl_print_format("%[' must be a valid directory.%]%r", data_make->error.to.stream, data_make->error.context, data_make->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe last file '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); + fl_print_format("%[%Q%]", data_make->error.to, data_make->error.notable, data_make->cache_arguments.array[data_make->cache_arguments.used - 1], data_make->error.notable); + fl_print_format("%[' must be a valid directory.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s); funlockfile(data_make->error.to.stream); } @@ -187,12 +187,12 @@ extern "C" { status_file = f_directory_is(data_make->cache_arguments.array[1]); if (status_file == F_false) { - if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to.stream) { + if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) { flockfile(data_make->error.to.stream); - fl_print_format("%r%[%QThe second file '%]", data_make->error.to.stream, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); - fl_print_format("%[%Q%]", data_make->error.to.stream, data_make->error.notable, data_make->cache_arguments.array[1], data_make->error.notable); - fl_print_format("%[' must be a valid directory.%]%r", data_make->error.to.stream, data_make->error.context, data_make->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe second file '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); + fl_print_format("%[%Q%]", data_make->error.to, data_make->error.notable, data_make->cache_arguments.array[1], data_make->error.notable); + fl_print_format("%[' must be a valid directory.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s); funlockfile(data_make->error.to.stream); } @@ -221,12 +221,12 @@ extern "C" { } if (data_make->setting_build.build_compiler.used) { - if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to.stream) { + if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) { flockfile(data_make->error.to.stream); - fl_print_format("%r%[%QNo compiler has been specified, cannot perform '%]", data_make->error.to.stream, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); - fl_print_format("%[%r%]", data_make->error.to.stream, data_make->error.notable, fake_make_operation_compile_s, data_make->error.notable); - fl_print_format("%[' section operation.%]%r", data_make->error.to.stream, data_make->error.context, data_make->error.context, f_string_eol_s); + fl_print_format("%r%[%QNo compiler has been specified, cannot perform '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); + fl_print_format("%[%r%]", data_make->error.to, data_make->error.notable, fake_make_operation_compile_s, data_make->error.notable); + fl_print_format("%[' section operation.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s); funlockfile(data_make->error.to.stream); } @@ -243,16 +243,16 @@ extern "C" { if (state_process->operation == fake_make_operation_type_if_e) { if (state_process->operation_previous == fake_make_operation_type_if_e) { - if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to.stream) { + if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) { flockfile(data_make->error.to.stream); - fl_print_format("%r%[%QMust not be used immediately after another '%]", data_make->error.to.stream, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); - fl_print_format("%[%r%]", data_make->error.to.stream, data_make->error.notable, fake_make_operation_if_s, data_make->error.notable); - fl_print_format("%[', '%]", data_make->error.to.stream, data_make->error.context, data_make->error.context); - fl_print_format("%[%r%]", data_make->error.to.stream, data_make->error.notable, fake_make_operation_and_s, data_make->error.notable); - fl_print_format("%[', or '%]", data_make->error.to.stream, data_make->error.context, data_make->error.context); - fl_print_format("%[%r%]", data_make->error.to.stream, data_make->error.notable, fake_make_operation_or_s, data_make->error.notable); - fl_print_format("%[' section operation.%]%r", data_make->error.to.stream, data_make->error.context, data_make->error.context, f_string_eol_s); + fl_print_format("%r%[%QMust not be used immediately after another '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); + fl_print_format("%[%r%]", data_make->error.to, data_make->error.notable, fake_make_operation_if_s, data_make->error.notable); + fl_print_format("%[', '%]", data_make->error.to, data_make->error.context, data_make->error.context); + fl_print_format("%[%r%]", data_make->error.to, data_make->error.notable, fake_make_operation_and_s, data_make->error.notable); + fl_print_format("%[', or '%]", data_make->error.to, data_make->error.context, data_make->error.context); + fl_print_format("%[%r%]", data_make->error.to, data_make->error.notable, fake_make_operation_or_s, data_make->error.notable); + fl_print_format("%[' section operation.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s); funlockfile(data_make->error.to.stream); } @@ -262,16 +262,16 @@ extern "C" { } else { if (!(state_process->operation_previous == fake_make_operation_type_if_e || state_process->operation_previous == fake_make_operation_type_and_e || state_process->operation_previous == fake_make_operation_type_or_e)) { - if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to.stream) { + if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) { flockfile(data_make->error.to.stream); - fl_print_format("%r%[%QMay only be used immediately after another '%]", data_make->error.to.stream, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); - fl_print_format("%[%r%]", data_make->error.to.stream, data_make->error.notable, fake_make_operation_if_s, data_make->error.notable); - fl_print_format("%[', '%]", data_make->error.to.stream, data_make->error.context, data_make->error.context); - fl_print_format("%[%r%]", data_make->error.to.stream, data_make->error.notable, fake_make_operation_and_s, data_make->error.notable); - fl_print_format("%[', or '%]", data_make->error.to.stream, data_make->error.context, data_make->error.context); - fl_print_format("%[%r%]", data_make->error.to.stream, data_make->error.notable, fake_make_operation_or_s, data_make->error.notable); - fl_print_format("%[' section operation.%]%r", data_make->error.to.stream, data_make->error.context, data_make->error.context, f_string_eol_s); + fl_print_format("%r%[%QMay only be used immediately after another '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); + fl_print_format("%[%r%]", data_make->error.to, data_make->error.notable, fake_make_operation_if_s, data_make->error.notable); + fl_print_format("%[', '%]", data_make->error.to, data_make->error.context, data_make->error.context); + fl_print_format("%[%r%]", data_make->error.to, data_make->error.notable, fake_make_operation_and_s, data_make->error.notable); + fl_print_format("%[', or '%]", data_make->error.to, data_make->error.context, data_make->error.context); + fl_print_format("%[%r%]", data_make->error.to, data_make->error.notable, fake_make_operation_or_s, data_make->error.notable); + fl_print_format("%[' section operation.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s); funlockfile(data_make->error.to.stream); } @@ -423,14 +423,14 @@ extern "C" { } // for if (i == 23) { - if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to.stream) { + if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) { flockfile(data_make->error.to.stream); - fl_print_format("%r%[%QUnsupported '%]", data_make->error.to.stream, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); - fl_print_format("%[%r%]", data_make->error.to.stream, data_make->error.notable, if_and_or, data_make->error.notable); - fl_print_format("%[' type '%]", data_make->error.to.stream, data_make->error.context, data_make->error.context); - fl_print_format("%[%Q%]", data_make->error.to.stream, data_make->error.notable, data_make->cache_arguments.array[k], data_make->error.notable); - fl_print_format("%['.%]%r", data_make->error.to.stream, data_make->error.context, data_make->error.context, f_string_eol_s); + fl_print_format("%r%[%QUnsupported '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); + fl_print_format("%[%r%]", data_make->error.to, data_make->error.notable, if_and_or, data_make->error.notable); + fl_print_format("%[' type '%]", data_make->error.to, data_make->error.context, data_make->error.context); + fl_print_format("%[%Q%]", data_make->error.to, data_make->error.notable, data_make->cache_arguments.array[k], data_make->error.notable); + fl_print_format("%['.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s); funlockfile(data_make->error.to.stream); } @@ -460,14 +460,14 @@ extern "C" { } // for if (j == 7) { - if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to.stream) { + if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) { flockfile(data_make->error.to.stream); - fl_print_format("%r%[%QUnsupported '%]", data_make->error.to.stream, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); - fl_print_format("%[%r%]", data_make->error.to.stream, data_make->error.notable, if_and_or, data_make->error.notable); - fl_print_format("%[' not type '%]", data_make->error.to.stream, data_make->error.context, data_make->error.context); - fl_print_format("%[%Q%]", data_make->error.to.stream, data_make->error.notable, data_make->cache_arguments.array[k], data_make->error.notable); - fl_print_format("%['.%]%r", data_make->error.to.stream, data_make->error.context, data_make->error.context, f_string_eol_s); + fl_print_format("%r%[%QUnsupported '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); + fl_print_format("%[%r%]", data_make->error.to, data_make->error.notable, if_and_or, data_make->error.notable); + fl_print_format("%[' not type '%]", data_make->error.to, data_make->error.context, data_make->error.context); + fl_print_format("%[%Q%]", data_make->error.to, data_make->error.notable, data_make->cache_arguments.array[k], data_make->error.notable); + fl_print_format("%['.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s); funlockfile(data_make->error.to.stream); } @@ -511,12 +511,12 @@ extern "C" { if (state_process->condition == fake_make_operation_if_type_if_mode_e || state_process->condition == fake_make_operation_if_type_if_not_mode_e) { if (fl_string_dynamic_compare(fake_make_operation_argument_is_s, data_make->cache_arguments.array[k]) == F_equal_to_not) { if (fl_string_dynamic_compare(fake_make_operation_argument_has_s, data_make->cache_arguments.array[k]) == F_equal_to_not) { - if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to.stream) { + if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) { flockfile(data_make->error.to.stream); - fl_print_format("%r%[%QUnsupported %smode type '%]", data_make->error.to.stream, f_string_eol_s, data_make->error.context, data_make->error.prefix, j == 6 ? "" : "not ", data_make->error.context); - fl_print_format("%[%Q%]", data_make->error.to.stream, data_make->error.notable, data_make->cache_arguments.array[k], data_make->error.notable); - fl_print_format("%['.%]%r", data_make->error.to.stream, data_make->error.context, data_make->error.context, f_string_eol_s); + fl_print_format("%r%[%QUnsupported %smode type '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, j == 6 ? "" : "not ", data_make->error.context); + fl_print_format("%[%Q%]", data_make->error.to, data_make->error.notable, data_make->cache_arguments.array[k], data_make->error.notable); + fl_print_format("%['.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s); funlockfile(data_make->error.to.stream); } @@ -581,12 +581,12 @@ extern "C" { type_file |= 0x40; } else { - if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to.stream) { + if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) { flockfile(data_make->error.to.stream); - fl_print_format("%r%[%QUnsupported file type '%]", data_make->error.to.stream, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); - fl_print_format("%[%Q%]", data_make->error.to.stream, data_make->error.notable, data_make->cache_arguments.array[i], data_make->error.notable); - fl_print_format("%['.%]%r", data_make->error.to.stream, data_make->error.context, data_make->error.context, f_string_eol_s); + fl_print_format("%r%[%QUnsupported file type '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); + fl_print_format("%[%Q%]", data_make->error.to, data_make->error.notable, data_make->cache_arguments.array[i], data_make->error.notable); + fl_print_format("%['.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s); funlockfile(data_make->error.to.stream); } @@ -682,18 +682,18 @@ extern "C" { if (F_status_is_error(status_number)) { status = F_status_set_error(F_failure); - if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to.stream) { + if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) { flockfile(data_make->error.to.stream); if (number > F_number_t_size_unsigned_d) { - fl_print_format("%r%[%QThe number '%]", data_make->error.to.stream, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); - fl_print_format("%[%Q%]", data_make->error.to.stream, data_make->error.notable, data_make->cache_arguments.array[i], data_make->error.notable); - fl_print_format("%[' may only be between the ranges -%un to %un.%]%r", data_make->error.to.stream, data_make->error.context, F_number_t_size_unsigned_d, F_number_t_size_unsigned_d, data_make->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe number '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); + fl_print_format("%[%Q%]", data_make->error.to, data_make->error.notable, data_make->cache_arguments.array[i], data_make->error.notable); + fl_print_format("%[' may only be between the ranges -%un to %un.%]%r", data_make->error.to, data_make->error.context, F_number_t_size_unsigned_d, F_number_t_size_unsigned_d, data_make->error.context, f_string_eol_s); } else { - fl_print_format("%r%[%QInvalid or unsupported number provided '%]", data_make->error.to.stream, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); - fl_print_format("%[%Q%]", data_make->error.to.stream, data_make->error.notable, data_make->cache_arguments.array[i], data_make->error.notable); - fl_print_format("%['.%]%r", data_make->error.to.stream, data_make->error.context, data_make->error.context, f_string_eol_s); + fl_print_format("%r%[%QInvalid or unsupported number provided '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); + fl_print_format("%[%Q%]", data_make->error.to, data_make->error.notable, data_make->cache_arguments.array[i], data_make->error.notable); + fl_print_format("%['.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s); } funlockfile(data_make->error.to.stream); @@ -735,12 +735,12 @@ extern "C" { for (f_array_length_t i = 0; i < data_make->cache_arguments.used - 1; ++i) { if (f_file_exists(data_make->cache_arguments.array[i], F_true) != F_true) { - if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to.stream) { + if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) { flockfile(data_make->error.to.stream); - fl_print_format("%r%[%QFailed to find file '%]", data_make->error.to.stream, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); - fl_print_format("%[%Q%]", data_make->error.to.stream, data_make->error.notable, data_make->cache_arguments.array[i], data_make->error.notable); - fl_print_format("%['.%]%r", data_make->error.to.stream, data_make->error.context, data_make->error.context, f_string_eol_s); + fl_print_format("%r%[%QFailed to find file '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); + fl_print_format("%[%Q%]", data_make->error.to, data_make->error.notable, data_make->cache_arguments.array[i], data_make->error.notable); + fl_print_format("%['.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s); funlockfile(data_make->error.to.stream); } @@ -755,12 +755,12 @@ extern "C" { status_file = f_directory_is(data_make->cache_arguments.array[data_make->cache_arguments.used - 1]); if (status_file == F_false || status_file == F_file_found_not) { - if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to.stream) { + if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) { flockfile(data_make->error.to.stream); - fl_print_format("%r%[%QThe last file '%]", data_make->error.to.stream, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); - fl_print_format("%[%Q%]", data_make->error.to.stream, data_make->error.notable, data_make->cache_arguments.array[data_make->cache_arguments.used - 1], data_make->error.notable); - fl_print_format("%[' must be a valid directory.%]%r", data_make->error.to.stream, data_make->error.context, data_make->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe last file '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); + fl_print_format("%[%Q%]", data_make->error.to, data_make->error.notable, data_make->cache_arguments.array[data_make->cache_arguments.used - 1], data_make->error.notable); + fl_print_format("%[' must be a valid directory.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s); funlockfile(data_make->error.to.stream); } @@ -783,12 +783,12 @@ extern "C" { status_file = f_directory_is(data_make->cache_arguments.array[1]); if (status_file == F_false) { - if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to.stream) { + if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) { flockfile(data_make->error.to.stream); - fl_print_format("%r%[%QThe second file '%]", data_make->error.to.stream, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); - fl_print_format("%[%Q%]", data_make->error.to.stream, data_make->error.notable, data_make->cache_arguments.array[1], data_make->error.notable); - fl_print_format("%[' must be a valid directory.%]%r", data_make->error.to.stream, data_make->error.context, data_make->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe second file '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); + fl_print_format("%[%Q%]", data_make->error.to, data_make->error.notable, data_make->cache_arguments.array[1], data_make->error.notable); + fl_print_format("%[' must be a valid directory.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s); funlockfile(data_make->error.to.stream); } @@ -814,20 +814,20 @@ extern "C" { const f_status_t status = fake_make_operate_validate_define_name(data_make->cache_arguments.array[0]); if (status == F_none) { - if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to.stream) { - fll_print_format("%r%[%QDefine name must not be an empty string.%]%r", data_make->error.to.stream, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context, f_string_eol_s); + if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) { + fll_print_format("%r%[%QDefine name must not be an empty string.%]%r", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context, f_string_eol_s); } return F_status_set_error(F_failure); } if (status == F_false) { - if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to.stream) { + if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) { flockfile(data_make->error.to.stream); - fl_print_format("%r%[%QInvalid characters in the define setting name '%]", data_make->error.to.stream, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); - fl_print_format("%[%Q%]", data_make->error.to.stream, data_make->error.notable, data_make->cache_arguments.array[0], data_make->error.notable); - fl_print_format("%[', only alpha-numeric ASCII characters and underscore (without a leading digit) is allowed.%]%r", data_make->error.to.stream, data_make->error.context, data_make->error.context, f_string_eol_s); + fl_print_format("%r%[%QInvalid characters in the define setting name '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); + fl_print_format("%[%Q%]", data_make->error.to, data_make->error.notable, data_make->cache_arguments.array[0], data_make->error.notable); + fl_print_format("%[', only alpha-numeric ASCII characters and underscore (without a leading digit) is allowed.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s); funlockfile(data_make->error.to.stream); } @@ -875,12 +875,12 @@ extern "C" { f_status_t fake_make_operate_validate_type_else(fake_make_data_t * const data_make, fake_state_process_t * const state_process) { if (state_process->operation_previous == fake_make_operation_type_else_e) { - if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to.stream) { + if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) { flockfile(data_make->error.to.stream); - fl_print_format("%r%[%QMust not be used immediately after another '%]", data_make->error.to.stream, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); - fl_print_format("%[%r%]", data_make->error.to.stream, data_make->error.notable, fake_make_operation_else_s, data_make->error.notable); - fl_print_format("%[' section operation.%]%r", data_make->error.to.stream, data_make->error.context, data_make->error.context, f_string_eol_s); + fl_print_format("%r%[%QMust not be used immediately after another '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); + fl_print_format("%[%r%]", data_make->error.to, data_make->error.notable, fake_make_operation_else_s, data_make->error.notable); + fl_print_format("%[' section operation.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s); funlockfile(data_make->error.to.stream); } @@ -889,16 +889,16 @@ extern "C" { } if (state_process->operation_previous == fake_make_operation_type_if_e || state_process->operation_previous == fake_make_operation_type_and_e || state_process->operation_previous == fake_make_operation_type_or_e) { - if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to.stream) { + if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) { flockfile(data_make->error.to.stream); - fl_print_format("%r%[%QMust not be used immediately after an '%]", data_make->error.to.stream, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); - fl_print_format("%[%r%]", data_make->error.to.stream, data_make->error.notable, fake_make_operation_if_s, data_make->error.notable); - fl_print_format("%[', '%]", data_make->error.to.stream, data_make->error.context, data_make->error.context); - fl_print_format("%[%r%]", data_make->error.to.stream, data_make->error.notable, fake_make_operation_and_s, data_make->error.notable); - fl_print_format("%[', or '%]", data_make->error.to.stream, data_make->error.context, data_make->error.context); - fl_print_format("%[%r%]", data_make->error.to.stream, data_make->error.notable, fake_make_operation_or_s, data_make->error.notable); - fl_print_format("%[' section operation.%]%r", data_make->error.to.stream, data_make->error.context, data_make->error.context, f_string_eol_s); + fl_print_format("%r%[%QMust not be used immediately after an '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); + fl_print_format("%[%r%]", data_make->error.to, data_make->error.notable, fake_make_operation_if_s, data_make->error.notable); + fl_print_format("%[', '%]", data_make->error.to, data_make->error.context, data_make->error.context); + fl_print_format("%[%r%]", data_make->error.to, data_make->error.notable, fake_make_operation_and_s, data_make->error.notable); + fl_print_format("%[', or '%]", data_make->error.to, data_make->error.context, data_make->error.context); + fl_print_format("%[%r%]", data_make->error.to, data_make->error.notable, fake_make_operation_or_s, data_make->error.notable); + fl_print_format("%[' section operation.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s); funlockfile(data_make->error.to.stream); } @@ -907,14 +907,14 @@ extern "C" { } if (!state_process->block) { - if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to.stream) { - fl_print_format("%r%[%QHas no preceding '%]", data_make->error.to.stream, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); - fl_print_format("%[%r%]", data_make->error.to.stream, data_make->error.notable, fake_make_operation_if_s, data_make->error.notable); - fl_print_format("%[', '%]", data_make->error.to.stream, data_make->error.context, data_make->error.context); - fl_print_format("%[%r%]", data_make->error.to.stream, data_make->error.notable, fake_make_operation_and_s, data_make->error.notable); - fl_print_format("%[', or '%]", data_make->error.to.stream, data_make->error.context, data_make->error.context); - fl_print_format("%[%r%]", data_make->error.to.stream, data_make->error.notable, fake_make_operation_or_s, data_make->error.notable); - fl_print_format("%[' section operation.%]%r", data_make->error.to.stream, data_make->error.context, data_make->error.context, f_string_eol_s); + if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) { + fl_print_format("%r%[%QHas no preceding '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); + fl_print_format("%[%r%]", data_make->error.to, data_make->error.notable, fake_make_operation_if_s, data_make->error.notable); + fl_print_format("%[', '%]", data_make->error.to, data_make->error.context, data_make->error.context); + fl_print_format("%[%r%]", data_make->error.to, data_make->error.notable, fake_make_operation_and_s, data_make->error.notable); + fl_print_format("%[', or '%]", data_make->error.to, data_make->error.context, data_make->error.context); + fl_print_format("%[%r%]", data_make->error.to, data_make->error.notable, fake_make_operation_or_s, data_make->error.notable); + fl_print_format("%[' section operation.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s); } return F_status_set_error(F_failure); @@ -942,12 +942,12 @@ extern "C" { if (data_make->cache_arguments.used) { if (fl_string_dynamic_compare(fake_make_operation_argument_success_s, data_make->cache_arguments.array[0]) == F_equal_to_not) { if (fl_string_dynamic_compare(fake_make_operation_argument_failure_s, data_make->cache_arguments.array[0]) == F_equal_to_not) { - if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to.stream) { + if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) { flockfile(data_make->error.to.stream); - fl_print_format("%r%[%QUnsupported exit type '%]", data_make->error.to.stream, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); - fl_print_format("%[%Q%]", data_make->error.to.stream, data_make->error.notable, data_make->cache_arguments.array[0], data_make->error.notable); - fl_print_format("%['.%]%r", data_make->error.to.stream, data_make->error.context, data_make->error.context, f_string_eol_s); + fl_print_format("%r%[%QUnsupported exit type '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); + fl_print_format("%[%Q%]", data_make->error.to, data_make->error.notable, data_make->cache_arguments.array[0], data_make->error.notable); + fl_print_format("%['.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s); funlockfile(data_make->error.to.stream); } @@ -968,12 +968,12 @@ extern "C" { if (fl_string_dynamic_compare(fake_make_operation_argument_exit_s, data_make->cache_arguments.array[0]) == F_equal_to_not) { if (fl_string_dynamic_compare(fake_make_operation_argument_warn_s, data_make->cache_arguments.array[0]) == F_equal_to_not) { if (fl_string_dynamic_compare(fake_make_operation_argument_ignore_s, data_make->cache_arguments.array[0]) == F_equal_to_not) { - if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to.stream) { + if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) { flockfile(data_make->error.to.stream); - fl_print_format("%r%[%QUnsupported fail type '%]", data_make->error.to.stream, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); - fl_print_format("%[%Q%]", data_make->error.to.stream, data_make->error.notable, data_make->cache_arguments.array[0], data_make->error.notable); - fl_print_format("%['.%]%r", data_make->error.to.stream, data_make->error.context, data_make->error.context, f_string_eol_s); + fl_print_format("%r%[%QUnsupported fail type '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); + fl_print_format("%[%Q%]", data_make->error.to, data_make->error.notable, data_make->cache_arguments.array[0], data_make->error.notable); + fl_print_format("%['.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s); funlockfile(data_make->error.to.stream); } @@ -1002,12 +1002,12 @@ extern "C" { } if (!data_make->setting_build.build_indexer.used) { - if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to.stream) { + if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) { flockfile(data_make->error.to.stream); - fl_print_format("%r%[%QNo indexer has been specified, cannot perform '%]", data_make->error.to.stream, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); - fl_print_format("%[%r%]", data_make->error.to.stream, data_make->error.notable, fake_make_operation_index_s, data_make->error.notable); - fl_print_format("%[' section operation.%]%r", data_make->error.to.stream, data_make->error.context, data_make->error.context, f_string_eol_s); + fl_print_format("%r%[%QNo indexer has been specified, cannot perform '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); + fl_print_format("%[%r%]", data_make->error.to, data_make->error.notable, fake_make_operation_index_s, data_make->error.notable); + fl_print_format("%[' section operation.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s); funlockfile(data_make->error.to.stream); } @@ -1163,8 +1163,8 @@ extern "C" { } } else { - if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to.stream) { - fll_print_format("%r%[%QTarget filename argument must not be an empty string.%]%r", data_make->error.to.stream, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context, f_string_eol_s); + if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) { + fll_print_format("%r%[%QTarget filename argument must not be an empty string.%]%r", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context, f_string_eol_s); } } } @@ -1202,12 +1202,12 @@ extern "C" { for (f_array_length_t i = 0; i < data_make->cache_arguments.used - 1; ++i) { if (f_file_exists(data_make->cache_arguments.array[i], F_true) != F_true) { - if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to.stream) { + if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) { flockfile(data_make->error.to.stream); - fl_print_format("%r%[%QFailed to find file '%]", data_make->error.to.stream, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); - fl_print_format("%[%Q%]", data_make->error.to.stream, data_make->error.notable, data_make->cache_arguments.array[i], data_make->error.notable); - fl_print_format("%['.%]%r", data_make->error.to.stream, data_make->error.context, data_make->error.context, f_string_eol_s); + fl_print_format("%r%[%QFailed to find file '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); + fl_print_format("%[%Q%]", data_make->error.to, data_make->error.notable, data_make->cache_arguments.array[i], data_make->error.notable); + fl_print_format("%['.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s); funlockfile(data_make->error.to.stream); } @@ -1226,12 +1226,12 @@ extern "C" { status = f_directory_is(data_make->cache_arguments.array[data_make->cache_arguments.used - 1]); if (status == F_false || status == F_file_found_not) { - if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to.stream) { + if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) { flockfile(data_make->error.to.stream); - fl_print_format("%r%[%QThe last file '%]", data_make->error.to.stream, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); - fl_print_format("%[%Q%]", data_make->error.to.stream, data_make->error.notable, data_make->cache_arguments.array[data_make->cache_arguments.used - 1], data_make->error.notable); - fl_print_format("%[' must be a valid directory.%]%r", data_make->error.to.stream, data_make->error.context, data_make->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe last file '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); + fl_print_format("%[%Q%]", data_make->error.to, data_make->error.notable, data_make->cache_arguments.array[data_make->cache_arguments.used - 1], data_make->error.notable); + fl_print_format("%[' must be a valid directory.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s); funlockfile(data_make->error.to.stream); } @@ -1254,12 +1254,12 @@ extern "C" { status = f_directory_is(data_make->cache_arguments.array[1]); if (status == F_false) { - if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to.stream) { + if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) { flockfile(data_make->error.to.stream); - fl_print_format("%r%[%QThe second file '%]", data_make->error.to.stream, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); - fl_print_format("%[%Q%]", data_make->error.to.stream, data_make->error.notable, data_make->cache_arguments.array[1], data_make->error.notable); - fl_print_format("%[' must be a valid directory.%]%r", data_make->error.to.stream, data_make->error.context, data_make->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe second file '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); + fl_print_format("%[%Q%]", data_make->error.to, data_make->error.notable, data_make->cache_arguments.array[1], data_make->error.notable); + fl_print_format("%[' must be a valid directory.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s); funlockfile(data_make->error.to.stream); } @@ -1300,9 +1300,9 @@ extern "C" { if (id_section == data_make->fakefile.used) { flockfile(data_make->error.to.stream); - fl_print_format("%r%[%QNo operation section named '%]", data_make->error.to.stream, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); - fl_print_format("%[%Q%]", data_make->error.to.stream, data_make->error.notable, data_make->cache_arguments.array[0], data_make->error.notable); - fl_print_format("%[' is found.%]%r", data_make->error.to.stream, data_make->error.context, data_make->error.context, f_string_eol_s); + fl_print_format("%r%[%QNo operation section named '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); + fl_print_format("%[%Q%]", data_make->error.to, data_make->error.notable, data_make->cache_arguments.array[0], data_make->error.notable); + fl_print_format("%[' is found.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s); funlockfile(data_make->error.to.stream); @@ -1312,12 +1312,12 @@ extern "C" { for (f_array_length_t i = 0; i < section_stack->used; ++i) { if (section_stack->array[i] == id_section) { - if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to.stream) { + if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) { flockfile(data_make->error.to.stream); - fl_print_format("%r%[%QThe section operation '%]", data_make->error.to.stream, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); - fl_print_format("%[%Q%]", data_make->error.to.stream, data_make->error.notable, data_make->fakefile.array[id_section].name, data_make->error.notable); - fl_print_format("%[' is already in the operation stack, recursion is not allowed.%]%r", data_make->error.to.stream, data_make->error.context, data_make->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe section operation '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); + fl_print_format("%[%Q%]", data_make->error.to, data_make->error.notable, data_make->fakefile.array[id_section].name, data_make->error.notable); + fl_print_format("%[' is already in the operation stack, recursion is not allowed.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s); funlockfile(data_make->error.to.stream); } @@ -1380,7 +1380,7 @@ extern "C" { for (f_array_length_t i = 0; i < 33; ++i) { if (fl_string_dynamic_compare(reserved_name[i], data_make->cache_arguments.array[0]) == F_equal_to) { - fll_print_format("%r%[%QCannot assign a value to the parameter name '%r' because it is a reserved parameter name.%]%r", data_make->error.to.stream, f_string_eol_s, data_make->error.context, data_make->error.prefix, reserved_name[i], data_make->error.context, f_string_eol_s); + fll_print_format("%r%[%QCannot assign a value to the parameter name '%r' because it is a reserved parameter name.%]%r", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, reserved_name[i], data_make->error.context, f_string_eol_s); status = F_status_set_error(F_failure); } @@ -1416,12 +1416,12 @@ extern "C" { status_file = f_file_is(data_make->cache_arguments.array[i], F_file_type_regular_d, F_false); if (status_file == F_file_found_not) { - if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to.stream) { + if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) { flockfile(data_make->error.to.stream); - fl_print_format("%r%[%QFailed to find file '%]", data_make->error.to.stream, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); - fl_print_format("%[%Q%]", data_make->error.to.stream, data_make->error.notable, data_make->cache_arguments.array[i], data_make->error.notable); - fl_print_format("%['.%]%r", data_make->error.to.stream, data_make->error.context, data_make->error.context, f_string_eol_s); + fl_print_format("%r%[%QFailed to find file '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); + fl_print_format("%[%Q%]", data_make->error.to, data_make->error.notable, data_make->cache_arguments.array[i], data_make->error.notable); + fl_print_format("%['.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s); funlockfile(data_make->error.to.stream); } @@ -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->error.to.stream) { + if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) { fll_error_file_print(data_make->error, F_status_set_fine(status_file), "f_file_is", F_true, data_make->cache_arguments.array[i], f_file_operation_find_s, fll_error_file_type_directory_e); } @@ -1458,8 +1458,8 @@ extern "C" { } if (data_make->path.stack.used == 1) { - if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to.stream) { - fll_print_format("%r%[%QMust not attempt to pop project root off of path stack.%]%r", data_make->error.to.stream, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context, f_string_eol_s); + if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) { + fll_print_format("%r%[%QMust not attempt to pop project root off of path stack.%]%r", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context, f_string_eol_s); } return F_status_set_error(F_failure); @@ -1496,12 +1496,12 @@ extern "C" { const f_status_t status = f_file_is(data_make->cache_arguments.array[0], F_file_type_directory_d, F_false); if (status == F_file_found_not) { - if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to.stream) { + if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) { flockfile(data_make->error.to.stream); - fl_print_format("%r%[%QFailed to find file '%]", data_make->error.to.stream, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); - fl_print_format("%[%Q%]", data_make->error.to.stream, data_make->error.notable, data_make->cache_arguments.array[0], data_make->error.notable); - fl_print_format("%['.%]%r", data_make->error.to.stream, data_make->error.context, data_make->error.context, f_string_eol_s); + fl_print_format("%r%[%QFailed to find file '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); + fl_print_format("%[%Q%]", data_make->error.to, data_make->error.notable, data_make->cache_arguments.array[0], data_make->error.notable); + fl_print_format("%['.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s); funlockfile(data_make->error.to.stream); } @@ -1510,7 +1510,7 @@ extern "C" { } if (F_status_is_error(status)) { - if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to.stream) { + if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) { fll_error_file_print(data_make->error, F_status_set_fine(status), "f_file_is", F_true, data_make->data->file_data_build_fakefile, f_file_operation_find_s, fll_error_file_type_file_e); } @@ -1518,12 +1518,12 @@ extern "C" { } if (!status) { - if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to.stream) { + if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) { flockfile(data_make->error.to.stream); - fl_print_format("%r%[%QThe file '%]", data_make->error.to.stream, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); - fl_print_format("%[%Q%]", data_make->error.to.stream, data_make->error.notable, data_make->cache_arguments.array[0], data_make->error.notable); - fl_print_format("%[' must be a directory file.%]%r", data_make->error.to.stream, data_make->error.context, data_make->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe file '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); + fl_print_format("%[%Q%]", data_make->error.to, data_make->error.notable, data_make->cache_arguments.array[0], data_make->error.notable); + fl_print_format("%[' must be a directory file.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s); funlockfile(data_make->error.to.stream); } @@ -1534,8 +1534,8 @@ extern "C" { return F_none; } - if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to.stream) { - fll_print_format("%r%[%QFilename argument must not be an empty string.%]%r", data_make->error.to.stream, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context, f_string_eol_s); + if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) { + fll_print_format("%r%[%QFilename argument must not be an empty string.%]%r", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context, f_string_eol_s); } return F_status_set_error(F_failure); @@ -1554,12 +1554,12 @@ extern "C" { if (fl_string_dynamic_compare(fake_make_operation_argument_file_s, data_make->cache_arguments.array[0]) == F_equal_to_not) { if (fl_string_dynamic_compare(fake_make_operation_argument_directory_s, data_make->cache_arguments.array[0]) == F_equal_to_not) { - if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to.stream) { + if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->error.to) { flockfile(data_make->error.to.stream); - fl_print_format("%r%[%QUnsupported file type '%]", data_make->error.to.stream, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); - fl_print_format("%[%Q%]", data_make->error.to.stream, data_make->error.notable, data_make->cache_arguments.array[0], data_make->error.notable); - fl_print_format("%['.%]%r", data_make->error.to.stream, data_make->error.context, data_make->error.context, f_string_eol_s); + fl_print_format("%r%[%QUnsupported file type '%]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); + fl_print_format("%[%Q%]", data_make->error.to, data_make->error.notable, data_make->cache_arguments.array[0], data_make->error.notable); + fl_print_format("%['.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s); funlockfile(data_make->error.to.stream); } diff --git a/level_3/fake/c/private-make.c b/level_3/fake/c/private-make.c index 6ba0249..cd1a846 100644 --- a/level_3/fake/c/private-make.c +++ b/level_3/fake/c/private-make.c @@ -60,13 +60,13 @@ extern "C" { if (status == F_exist_not) { if (data->main->error.verbosity > f_console_verbosity_quiet_e) { - flockfile(data->main->error.to.stream); + flockfile(data->main->error.to); - fl_print_format("%r%[%QThe group name '%]", data->main->error.to.stream, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context); - fl_print_format("%[%Q%]", data->main->error.to.stream, data->main->error.notable, buffer, data->main->error.notable); - fl_print_format("%[' is not found.%]%r", data->main->error.to.stream, data->main->error.context, data->main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe group name '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context); + fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, buffer, data->main->error.notable); + fl_print_format("%[' is not found.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s); - funlockfile(data->main->error.to.stream); + funlockfile(data->main->error.to); } return F_status_set_error(F_failure); @@ -82,13 +82,13 @@ extern "C" { if (number > F_type_size_32_unsigned_d) { if (data->main->error.verbosity > f_console_verbosity_quiet_e) { - flockfile(data->main->error.to.stream); + flockfile(data->main->error.to); - fl_print_format("%r%[%QThe number '%]", data->main->error.to.stream, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context); - fl_print_format("%[%un%]", data->main->error.to.stream, data->main->error.notable, number, data->main->error.notable); - fl_print_format("%[' is too large.%]%r", data->main->error.to.stream, data->main->error.context, data->main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe number '%]", 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, number, data->main->error.notable); + fl_print_format("%[' is too large.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s); - funlockfile(data->main->error.to.stream); + funlockfile(data->main->error.to); } } @@ -112,13 +112,13 @@ extern "C" { if (F_status_is_error(status)) { if (data->main->error.verbosity > f_console_verbosity_quiet_e) { if (F_status_set_fine(status) == F_syntax) { - flockfile(data->main->error.to.stream); + flockfile(data->main->error.to); - fl_print_format("%r%[%QThe mode '%]", data->main->error.to.stream, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context); - fl_print_format("%[%Q%]", data->main->error.to.stream, data->main->error.notable, buffer, data->main->error.notable); - fl_print_format("%[' is invalid.%]%r", data->main->error.to.stream, data->main->error.context, data->main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe mode '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context); + fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, buffer, data->main->error.notable); + fl_print_format("%[' is invalid.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s); - funlockfile(data->main->error.to.stream); + funlockfile(data->main->error.to); } else { fll_error_print(print, status, "f_file_mode_from_string", F_true); @@ -153,13 +153,13 @@ extern "C" { if (status == F_exist_not) { if (data->main->error.verbosity > f_console_verbosity_quiet_e) { - flockfile(data->main->error.to.stream); + flockfile(data->main->error.to); - fl_print_format("%r%[%QThe user '%]", data->main->error.to.stream, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context); - fl_print_format("%[%Q%]", data->main->error.to.stream, data->main->error.notable, buffer, data->main->error.notable); - fl_print_format("%[' is not found.%]%r", data->main->error.to.stream, data->main->error.context, data->main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe user '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context); + fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, buffer, data->main->error.notable); + fl_print_format("%[' is not found.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s); - funlockfile(data->main->error.to.stream); + funlockfile(data->main->error.to); } return F_status_set_error(F_failure); @@ -175,13 +175,13 @@ extern "C" { if (number > F_type_size_32_unsigned_d) { if (data->main->error.verbosity > f_console_verbosity_quiet_e) { - flockfile(data->main->error.to.stream); + flockfile(data->main->error.to); - fl_print_format("%r%[%QThe number '%]", data->main->error.to.stream, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context); - fl_print_format("%[%un%]", data->main->error.to.stream, data->main->error.notable, number, data->main->error.notable); - fl_print_format("%[' is too large.%]%r", data->main->error.to.stream, data->main->error.context, data->main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe number '%]", 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, number, data->main->error.notable); + fl_print_format("%[' is too large.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s); - funlockfile(data->main->error.to.stream); + funlockfile(data->main->error.to); } } diff --git a/level_3/fake/c/private-print.c b/level_3/fake/c/private-print.c index a5c9db8..a8f14e1 100644 --- a/level_3/fake/c/private-print.c +++ b/level_3/fake/c/private-print.c @@ -11,15 +11,15 @@ extern "C" { if (status == F_file_found_not) { if (data->main->error.verbosity > f_console_verbosity_quiet_e) { - flockfile(data->main->error.to.stream); + flockfile(data->main->error.to); - fl_print_format("%r%[%QFailed to find '%]", data->main->error.to.stream, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context); + fl_print_format("%r%[%QFailed to find '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context); fake_print_error_build_operation_file_message(data, operation, source, destination, how); - fl_print_format("%['.%]%r", data->main->error.to.stream, data->main->error.context, data->main->error.context, f_string_eol_s); + fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s); - funlockfile(data->main->error.to.stream); + funlockfile(data->main->error.to); } return F_false; @@ -27,17 +27,17 @@ extern "C" { if (status == F_parameter) { if (data->main->error.verbosity > f_console_verbosity_quiet_e) { - flockfile(data->main->error.to.stream); + flockfile(data->main->error.to); - fl_print_format("%r%[%QInvalid parameter when calling '%]", data->main->error.to.stream, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context); - fl_print_format("%[%S%]", data->main->error.to.stream, data->main->error.notable, function, data->main->error.notable); - fl_print_format("%[() to %Q '%]", data->main->error.to.stream, data->main->error.context, operation, data->main->error.context); + fl_print_format("%r%[%QInvalid parameter when calling '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context); + fl_print_format("%[%S%]", 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); fake_print_error_build_operation_file_message(data, operation, source, destination, how); - fl_print_format("%['.%]%r", data->main->error.to.stream, data->main->error.context, data->main->error.context, f_string_eol_s); + fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s); - funlockfile(data->main->error.to.stream); + funlockfile(data->main->error.to); } return F_false; @@ -45,22 +45,22 @@ extern "C" { if (status == F_name) { if (data->main->error.verbosity > f_console_verbosity_quiet_e) { - flockfile(data->main->error.to.stream); + flockfile(data->main->error.to); - fl_print_format("%r%[%QInvalid name for '%]", data->main->error.to.stream, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context); + fl_print_format("%r%[%QInvalid name for '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context); if (source.used) { - fl_print_format("%[%Q%]", data->main->error.to.stream, data->main->error.notable, source, data->main->error.notable); + fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, source, data->main->error.notable); } if (destination.used) { - fl_print_format("%[' or '%]", data->main->error.to.stream, data->main->error.context, data->main->error.context); - fl_print_format("%[%Q%]", data->main->error.to.stream, data->main->error.notable, destination, data->main->error.notable); + 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("%['.%]%r", data->main->error.to.stream, data->main->error.context, data->main->error.context, f_string_eol_s); + fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s); - funlockfile(data->main->error.to.stream); + funlockfile(data->main->error.to); } return F_false; @@ -68,15 +68,15 @@ extern "C" { if (status == F_memory_not) { if (data->main->error.verbosity > f_console_verbosity_quiet_e) { - flockfile(data->main->error.to.stream); + flockfile(data->main->error.to); - fl_print_format("%r%[%QUnable to allocate memory, while trying to %Q '%]", data->main->error.to.stream, f_string_eol_s, data->main->error.context, data->main->error.prefix, operation, data->main->error.context); + fl_print_format("%r%[%QUnable to allocate memory, while trying to %Q '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, operation, data->main->error.context); fake_print_error_build_operation_file_message(data, operation, source, destination, how); - fl_print_format("%['.%]%r", data->main->error.to.stream, data->main->error.context, data->main->error.context, f_string_eol_s); + fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s); - funlockfile(data->main->error.to.stream); + funlockfile(data->main->error.to); } return F_false; @@ -84,15 +84,15 @@ extern "C" { if (status == F_number_overflow) { if (data->main->error.verbosity > f_console_verbosity_quiet_e) { - flockfile(data->main->error.to.stream); + flockfile(data->main->error.to); - fl_print_format("%r%[%QOverflow while trying to %Q '%]", data->main->error.to.stream, f_string_eol_s, data->main->error.context, data->main->error.prefix, operation, data->main->error.context); + fl_print_format("%r%[%QOverflow while trying to %Q '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, operation, data->main->error.context); fake_print_error_build_operation_file_message(data, operation, source, destination, how); - fl_print_format("%['.%]%r", data->main->error.to.stream, data->main->error.context, data->main->error.context, f_string_eol_s); + fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s); - funlockfile(data->main->error.to.stream); + funlockfile(data->main->error.to); } return F_false; @@ -100,15 +100,15 @@ extern "C" { if (status == F_directory) { if (data->main->error.verbosity > f_console_verbosity_quiet_e) { - flockfile(data->main->error.to.stream); + flockfile(data->main->error.to); - fl_print_format("%r%[%QInvalid directory while trying to %Q '%]", data->main->error.to.stream, f_string_eol_s, data->main->error.context, data->main->error.prefix, operation, data->main->error.context); + fl_print_format("%r%[%QInvalid directory while trying to %Q '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, operation, data->main->error.context); fake_print_error_build_operation_file_message(data, operation, source, destination, how); - fl_print_format("%['.%]%r", data->main->error.to.stream, data->main->error.context, data->main->error.context, f_string_eol_s); + fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s); - funlockfile(data->main->error.to.stream); + funlockfile(data->main->error.to); } return F_false; @@ -116,15 +116,15 @@ extern "C" { if (status == F_access_denied) { if (data->main->error.verbosity > f_console_verbosity_quiet_e) { - flockfile(data->main->error.to.stream); + flockfile(data->main->error.to); - fl_print_format("%r%[%QAccess denied while trying to %Q '%]", data->main->error.to.stream, f_string_eol_s, data->main->error.context, data->main->error.prefix, operation, data->main->error.context); + fl_print_format("%r%[%QAccess denied while trying to %Q '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, operation, data->main->error.context); fake_print_error_build_operation_file_message(data, operation, source, destination, how); - fl_print_format("%['.%]%r", data->main->error.to.stream, data->main->error.context, data->main->error.context, f_string_eol_s); + fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s); - funlockfile(data->main->error.to.stream); + funlockfile(data->main->error.to); } return F_false; @@ -132,15 +132,15 @@ extern "C" { if (status == F_loop) { if (data->main->error.verbosity > f_console_verbosity_quiet_e) { - flockfile(data->main->error.to.stream); + flockfile(data->main->error.to); - fl_print_format("%r%[%QLoop while trying to %Q '%]", data->main->error.to.stream, f_string_eol_s, data->main->error.context, data->main->error.prefix, operation, data->main->error.context); + fl_print_format("%r%[%QLoop while trying to %Q '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, operation, data->main->error.context); fake_print_error_build_operation_file_message(data, operation, source, destination, how); - fl_print_format("%['.%]%r", data->main->error.to.stream, data->main->error.context, data->main->error.context, f_string_eol_s); + fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s); - funlockfile(data->main->error.to.stream); + funlockfile(data->main->error.to); } return F_false; @@ -148,15 +148,15 @@ extern "C" { if (status == F_prohibited) { if (data->main->error.verbosity > f_console_verbosity_quiet_e) { - flockfile(data->main->error.to.stream); + flockfile(data->main->error.to); - fl_print_format("%r%[%QProhibited by system while trying to %Q '%]", data->main->error.to.stream, f_string_eol_s, data->main->error.context, data->main->error.prefix, operation, data->main->error.context); + fl_print_format("%r%[%QProhibited by system while trying to %Q '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, operation, data->main->error.context); fake_print_error_build_operation_file_message(data, operation, source, destination, how); - fl_print_format("%['.%]%r", data->main->error.to.stream, data->main->error.context, data->main->error.context, f_string_eol_s); + fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s); - funlockfile(data->main->error.to.stream); + funlockfile(data->main->error.to); } return F_false; @@ -164,15 +164,15 @@ extern "C" { if (status == F_directory_found_not) { if (data->main->error.verbosity > f_console_verbosity_quiet_e) { - flockfile(data->main->error.to.stream); + flockfile(data->main->error.to); - fl_print_format("%r%[%QFailed to %Q '%]", data->main->error.to.stream, f_string_eol_s, data->main->error.context, data->main->error.prefix, operation, data->main->error.context); + fl_print_format("%r%[%QFailed to %Q '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, operation, data->main->error.context); fake_print_error_build_operation_file_message(data, operation, source, destination, how); - fl_print_format("%[' due to an invalid directory in the path.%]%r", data->main->error.to.stream, data->main->error.context, data->main->error.context, f_string_eol_s); + 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); - funlockfile(data->main->error.to.stream); + funlockfile(data->main->error.to); } return F_false; @@ -180,32 +180,32 @@ extern "C" { if (status == F_failure) { if (data->main->error.verbosity > f_console_verbosity_quiet_e) { - flockfile(data->main->error.to.stream); + flockfile(data->main->error.to); - fl_print_format("%r%[%QFailed to %Q '%]", data->main->error.to.stream, f_string_eol_s, data->main->error.context, data->main->error.prefix, operation, data->main->error.context); + fl_print_format("%r%[%QFailed to %Q '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, operation, data->main->error.context); fake_print_error_build_operation_file_message(data, operation, source, destination, how); - fl_print_format("%['.%]%r", data->main->error.to.stream, data->main->error.context, data->main->error.context, f_string_eol_s); + fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s); - funlockfile(data->main->error.to.stream); + funlockfile(data->main->error.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) { - flockfile(data->main->error.to.stream); + flockfile(data->main->error.to); - fl_print_format("%r%[UNKNOWN %Q(%]", data->main->error.to.stream, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context); - fl_print_format("%[%ui%]", data->main->error.to.stream, data->main->error.notable, status, data->main->error.notable); - fl_print_format("%[) occurred while trying to %Q '%]", data->main->error.to.stream, data->main->error.context, operation, data->main->error.context); + 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("%[) occurred while trying to %Q '%]", data->main->error.to, data->main->error.context, operation, data->main->error.context); fake_print_error_build_operation_file_message(data, operation, source, destination, how); - fl_print_format("%['.%]%r", data->main->error.to.stream, data->main->error.context, data->main->error.context, f_string_eol_s); + fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s); - funlockfile(data->main->error.to.stream); + funlockfile(data->main->error.to); } return F_true; @@ -216,17 +216,17 @@ extern "C" { 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) { if (source.used) { - fl_print_format("%[%Q%]", data->main->error.to.stream, data->main->error.notable, source, data->main->error.notable); + fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, source, data->main->error.notable); } - fl_print_format("%[while trying to %Q '%]", data->main->error.to.stream, data->main->error.context, operation, data->main->error.context); + fl_print_format("%[while trying to %Q '%]", data->main->error.to, data->main->error.context, operation, data->main->error.context); if (destination.used) { - fl_print_format("%[' %Q '%]", data->main->error.to.stream, data->main->error.context, how, data->main->error.context); - fl_print_format("%[%Q%]", data->main->error.to.stream, data->main->error.notable, destination, data->main->error.notable); + 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); } else if (source.used) { - fl_print_format("%[%Q%]", data->main->error.to.stream, data->main->error.notable, source, data->main->error.notable); + fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, source, data->main->error.notable); } } #endif // #ifndef _di_fake_print_error_build_operation_file_message_ @@ -236,15 +236,15 @@ extern "C" { if (status == F_file_found_not) { if (data->main->error.verbosity > f_console_verbosity_quiet_e) { - flockfile(data->main->error.to.stream); + flockfile(data->main->error.to); - fl_print_format("%r%[%QOccurred on invalid UTF-8 character at stop position (at '%]", data->main->error.to.stream, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context); - fl_print_format("%[%un%]", data->main->error.to.stream, data->main->error.notable, range.start, data->main->error.notable); - fl_print_format("%[ of setting file '%]", data->main->error.to.stream, data->main->error.context, data->main->error.context); - fl_print_format("%[%Q%]", data->main->error.to.stream, data->main->error.notable, path_file, data->main->error.notable); - fl_print_format("%[').%]%r", data->main->error.to.stream, data->main->error.context, data->main->error.context, f_string_eol_s); + 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); - funlockfile(data->main->error.to.stream); + funlockfile(data->main->error.to); } return F_false; @@ -252,15 +252,15 @@ extern "C" { 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) { - flockfile(data->main->error.to.stream); + flockfile(data->main->error.to); - fl_print_format("%r%[%QOccurred on invalid UTF-8 character at %s (at '%]", data->main->error.to.stream, 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.stream, data->main->error.notable, range.start, data->main->error.notable); - fl_print_format("%[ of setting file '%]", data->main->error.to.stream, data->main->error.context, data->main->error.context); - fl_print_format("%[%Q%]", data->main->error.to.stream, data->main->error.notable, path_file, data->main->error.notable); - fl_print_format("%[').%]%r", data->main->error.to.stream, data->main->error.context, data->main->error.context, f_string_eol_s); + 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); - funlockfile(data->main->error.to.stream); + funlockfile(data->main->error.to); } return F_false; @@ -268,30 +268,30 @@ extern "C" { if (status == F_complete_not_utf_stop) { if (data->main->error.verbosity > f_console_verbosity_quiet_e) { - flockfile(data->main->error.to.stream); + flockfile(data->main->error.to); - fl_print_format("%r%[%QOccurred on invalid UTF-8 character at stop point of string (at '%]", data->main->error.to.stream, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context); - fl_print_format("%[%un%]", data->main->error.to.stream, data->main->error.notable, range.start, data->main->error.notable); - fl_print_format("%[ of setting file '%]", data->main->error.to.stream, data->main->error.context, data->main->error.context); - fl_print_format("%[%Q%]", data->main->error.to.stream, data->main->error.notable, path_file, data->main->error.notable); - fl_print_format("%[').%]%r", data->main->error.to.stream, data->main->error.context, data->main->error.context, f_string_eol_s); + 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); - funlockfile(data->main->error.to.stream); + funlockfile(data->main->error.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) { - flockfile(data->main->error.to.stream); + flockfile(data->main->error.to); - fl_print_format("%r%[UNKNOWN %Q(%]", data->main->error.to.stream, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context); - fl_print_format("%[%ui%]", data->main->error.to.stream, data->main->error.notable, status, data->main->error.notable); - fl_print_format("%[) in function '%]", data->main->error.to.stream, data->main->error.context, data->main->error.context); - fl_print_format("%[%Q%]", data->main->error.to.stream, data->main->error.notable, function, data->main->error.notable); - fl_print_format("%[().%]%r", data->main->error.to.stream, data->main->error.context, data->main->error.context, f_string_eol_s); + 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); - funlockfile(data->main->error.to.stream); + funlockfile(data->main->error.to); } return F_true; @@ -303,13 +303,13 @@ extern "C" { if (data->main->error.verbosity == f_console_verbosity_quiet_e) return; - flockfile(data->main->error.to.stream); + flockfile(data->main->error.to); - fl_print_format("%r%[%QThe parameter '%]", data->main->error.to.stream, 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.stream, data->main->error.notable, f_console_symbol_long_enable_s, parameter, data->main->error.notable); - fl_print_format("%[' is specified, but no value is given.%]%r", data->main->error.to.stream, data->main->error.context, data->main->error.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_enable_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); - funlockfile(data->main->error.to.stream); + funlockfile(data->main->error.to); } #endif // _di_fake_print_error_parameter_missing_value_ @@ -318,13 +318,13 @@ extern "C" { if (data->main->error.verbosity == f_console_verbosity_quiet_e) return; - flockfile(data->main->error.to.stream); + flockfile(data->main->error.to); - fl_print_format("%r%[%QThe parameter '%]", data->main->error.to.stream, 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.stream, data->main->error.notable, f_console_symbol_long_enable_s, parameter, data->main->error.notable); - fl_print_format("%[' was specified too many times.%]%r", data->main->error.to.stream, data->main->error.context, data->main->error.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_enable_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); - funlockfile(data->main->error.to.stream); + funlockfile(data->main->error.to); } #endif // _di_fake_print_error_parameter_too_many_ @@ -332,9 +332,9 @@ extern "C" { void fake_print_error_requires_more_arguments(fake_make_data_t * const data_make) { if (data_make->error.verbosity == f_console_verbosity_quiet_e) return; - if (!data_make->error.to.stream) return; + if (!data_make->error.to) return; - fll_print_format("%r%[%QRequires more arguments.%]%r", data_make->error.to.stream, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context, f_string_eol_s); + fll_print_format("%r%[%QRequires more arguments.%]%r", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context, f_string_eol_s); } #endif // _di_fake_print_error_requires_more_arguments_ @@ -342,9 +342,9 @@ extern "C" { void fake_print_error_too_many_arguments(fake_make_data_t * const data_make) { if (data_make->error.verbosity == f_console_verbosity_quiet_e) return; - if (!data_make->error.to.stream) return; + if (!data_make->error.to) return; - fll_print_format("%r%[%QHas too many arguments.%]%r", data_make->error.to.stream, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context, f_string_eol_s); + fll_print_format("%r%[%QHas too many arguments.%]%r", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context, f_string_eol_s); } #endif // _di_fake_print_error_too_many_arguments_ @@ -352,13 +352,13 @@ extern "C" { void fake_print_error_argument_empty(fake_make_data_t * const data_make, const f_array_length_t index) { if (data_make->error.verbosity == f_console_verbosity_quiet_e) return; - if (!data_make->error.to.stream) return; + if (!data_make->error.to) return; flockfile(data_make->error.to.stream); - fl_print_format("%r%[%QThe %]", data_make->error.to.stream, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); - fl_print_format("%[%un%]", data_make->error.to.stream, data_make->error.notable, index, data_make->error.notable); - fl_print_format("%[ argument must not be an empty string.%]%r", data_make->error.to.stream, data_make->error.context, data_make->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe %]", data_make->error.to, f_string_eol_s, data_make->error.context, data_make->error.prefix, data_make->error.context); + fl_print_format("%[%un%]", data_make->error.to, data_make->error.notable, index, data_make->error.notable); + fl_print_format("%[ argument must not be an empty string.%]%r", data_make->error.to, data_make->error.context, data_make->error.context, f_string_eol_s); funlockfile(data_make->error.to.stream); } @@ -367,7 +367,7 @@ extern "C" { #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) { - if (print.verbosity == f_console_verbosity_quiet_e || !print.to.stream) return; + if (print.verbosity == f_console_verbosity_quiet_e || !print.to) return; f_array_length_t line = 1; f_state_t state = f_state_t_initialize; @@ -391,7 +391,7 @@ extern "C" { #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) { - if (print.verbosity == f_console_verbosity_quiet_e || !print.to.stream) return; + if (print.verbosity == f_console_verbosity_quiet_e || !print.to) return; flockfile(print.to.stream); @@ -411,7 +411,7 @@ extern "C" { #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) { - if (print.verbosity == f_console_verbosity_quiet_e || !print.to.stream) return; + if (print.verbosity == f_console_verbosity_quiet_e || !print.to) return; flockfile(print.to.stream); @@ -427,7 +427,7 @@ extern "C" { #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) { - if (print.verbosity == f_console_verbosity_quiet_e || !print.to.stream) return; + if (print.verbosity == f_console_verbosity_quiet_e || !print.to) return; flockfile(print.to.stream); @@ -443,43 +443,43 @@ extern "C" { #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 char *function, const f_string_static_t path) { - if (data->main->error.verbosity == f_console_verbosity_quiet_e || !print.to.stream) return; + if (data->main->error.verbosity == f_console_verbosity_quiet_e || !print.to) return; - flockfile(data->main->error.to.stream); + flockfile(data->main->error.to); if (F_status_set_fine(status) == F_false) { - fl_print_format("%r%[%QThe path '%]", data->main->error.to.stream, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context); - fl_print_format("%[%Q%]", data->main->error.to.stream, data->main->error.notable, path, data->main->error.notable); - fl_print_format("%[' is outside the project root.%]%r", data->main->error.to.stream, data->main->error.context, data->main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe path '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context); + fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, path, data->main->error.notable); + fl_print_format("%[' is outside the project root.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s); } else { fll_error_file_print(data->main->error, F_status_set_fine(status), function, F_true, path, fake_common_file_path_determine_real_s, fll_error_file_type_file_e); } - funlockfile(data->main->error.to.stream); + funlockfile(data->main->error.to); } #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 char *function, const f_string_static_t path) { - if (data->main->error.verbosity == f_console_verbosity_quiet_e || !print.to.stream) return; + if (data->main->error.verbosity == f_console_verbosity_quiet_e || !print.to) return; if (status == F_array_too_large) { - flockfile(data->main->error.to.stream); + flockfile(data->main->error.to); - fl_print_format("%r%[%QMaximum stack size reached while processing path '%]", data->main->error.to.stream, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context); - fl_print_format("%[%Q%]", data->main->error.to.stream, data->main->error.notable, path, data->main->error.notable); - fl_print_format("%['", data->main->error.to.stream, data->main->error.context); + fl_print_format("%r%[%QMaximum stack size reached while processing path '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context); + fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, path, data->main->error.notable); + fl_print_format("%['", data->main->error.to, data->main->error.context); if (function) { - fl_print_format(" while calling%] %[%S%]", data->main->error.to.stream, data->main->error.context, data->main->error.notable, function, data->main->error.notable); - fl_print_format("%[()", data->main->error.to.stream, data->main->error.context); + fl_print_format(" while calling%] %[%S%]", data->main->error.to, data->main->error.context, data->main->error.notable, function, data->main->error.notable); + fl_print_format("%[()", data->main->error.to, data->main->error.context); } - fl_print_format(".%]%r", data->main->error.to.stream, data->main->error.context, f_string_eol_s); + fl_print_format(".%]%r", data->main->error.to, data->main->error.context, f_string_eol_s); - funlockfile(data->main->error.to.stream); + funlockfile(data->main->error.to); } else { fll_error_file_print(print, status, function, F_true, path, fake_common_file_path_change_to_s, fll_error_file_type_directory_e); @@ -490,50 +490,50 @@ extern "C" { #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) { - if (data->main->error.verbosity == f_console_verbosity_quiet_e || !print.to.stream) return; + if (data->main->error.verbosity == f_console_verbosity_quiet_e || !print.to) return; f_array_length_t line = 1; f_state_t state = f_state_t_initialize; f_fss_count_lines(state, buffer, operation_name.start, &line); - flockfile(data->main->error.to.stream); + flockfile(data->main->error.to); - fl_print_format("%r%[%QThe section operation '%]", data->main->error.to.stream, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context); - fl_print_format("%[%/Q%]", data->main->error.to.stream, data->main->error.notable, buffer, operation_name, data->main->error.notable); - fl_print_format("%[' from section '%]", data->main->error.to.stream, data->main->error.context, buffer, data->main->error.context); - fl_print_format("%[%/Q%]", data->main->error.to.stream, data->main->error.notable, buffer, section_name, data->main->error.notable); - fl_print_format("%[' on line%] ", data->main->error.to.stream, data->main->error.context, data->main->error.context); - fl_print_format("%[%ul%]", data->main->error.to.stream, data->main->error.notable, line, data->main->error.notable); - fl_print_format("%[' cannot be processed because the max stack depth of%] ", data->main->error.to.stream, data->main->error.context, data->main->error.context); - fl_print_format("%[%ul%]", data->main->error.to.stream, data->main->error.notable, stack_max, data->main->error.notable); - fl_print_format(" %[has been reached.%]%r", data->main->error.to.stream, data->main->error.context, data->main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe section operation '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context); + fl_print_format("%[%/Q%]", data->main->error.to, data->main->error.notable, buffer, operation_name, data->main->error.notable); + fl_print_format("%[' from section '%]", data->main->error.to, data->main->error.context, buffer, data->main->error.context); + fl_print_format("%[%/Q%]", data->main->error.to, data->main->error.notable, buffer, section_name, data->main->error.notable); + fl_print_format("%[' on line%] ", data->main->error.to, data->main->error.context, data->main->error.context); + fl_print_format("%[%ul%]", data->main->error.to, data->main->error.notable, line, data->main->error.notable); + fl_print_format("%[' cannot be processed because the max stack depth of%] ", data->main->error.to, data->main->error.context, data->main->error.context); + fl_print_format("%[%ul%]", data->main->error.to, data->main->error.notable, stack_max, data->main->error.notable); + fl_print_format(" %[has been reached.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s); - funlockfile(data->main->error.to.stream); + funlockfile(data->main->error.to); } #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) { - if (data->main->error.verbosity == f_console_verbosity_quiet_e || !print.to.stream) return; + if (data->main->error.verbosity == f_console_verbosity_quiet_e || !print.to) return; f_array_length_t line = 1; f_state_t state = f_state_t_initialize; f_fss_count_lines(state, buffer, operation_name.start, &line); - flockfile(data->main->error.to.stream); + flockfile(data->main->error.to); - fl_print_format("%r%[%QThe section operation '%]", data->main->error.to.stream, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context); - fl_print_format("%[%/Q%]", data->main->error.to.stream, data->main->error.notable, buffer, operation_name, data->main->error.notable); - fl_print_format("%[' from section '%]", data->main->error.to.stream, data->main->error.context, buffer, data->main->error.context); - fl_print_format("%[%/Q%]", data->main->error.to.stream, data->main->error.notable, buffer, section_name, data->main->error.notable); - fl_print_format("%[' on line%] ", data->main->error.to.stream, data->main->error.context, data->main->error.context); - fl_print_format("%[%ul%]", data->main->error.to.stream, data->main->error.notable, line, data->main->error.notable); - fl_print_format(" %[is not a known operation name.%]%r", data->main->error.to.stream, data->main->error.context, data->main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe section operation '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context); + fl_print_format("%[%/Q%]", data->main->error.to, data->main->error.notable, buffer, operation_name, data->main->error.notable); + fl_print_format("%[' from section '%]", data->main->error.to, data->main->error.context, buffer, data->main->error.context); + fl_print_format("%[%/Q%]", data->main->error.to, data->main->error.notable, buffer, section_name, data->main->error.notable); + fl_print_format("%[' on line%] ", data->main->error.to, data->main->error.context, data->main->error.context); + fl_print_format("%[%ul%]", data->main->error.to, data->main->error.notable, line, data->main->error.notable); + fl_print_format(" %[is not a known operation name.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s); - funlockfile(data->main->error.to.stream); + funlockfile(data->main->error.to); } #endif // _di_fake_print_message_section_operation_unknown_ @@ -542,17 +542,17 @@ extern "C" { if (data->main->warning.verbosity == f_console_verbosity_quiet_e) return; - flockfile(data->main->warning.to.stream); + flockfile(data->main->warning.to); - fl_print_format("%r%[%QThe fakefile '%]", data->main->warning.to.stream, f_string_eol_s, data->main->warning.context, data->main->warning.prefix, data->main->warning.context); - fl_print_format("%[%Q%]", data->main->warning.to.stream, data->main->warning.notable, path_file, data->main->warning.notable); - fl_print_format("%[' has empty content for the '%]", data->main->warning.to.stream, data->main->warning.context, data->main->warning.context); - fl_print_format("%[%r%]", data->main->warning.to.stream, data->main->warning.notable, settings_name, data->main->warning.notable); - fl_print_format("%[' object '%]", data->main->warning.to.stream, data->main->warning.context, data->main->warning.context); - fl_print_format("%[%/Q%]", data->main->warning.to.stream, data->main->warning.notable, buffer, range_object, data->main->warning.notable); - fl_print_format("%['.%]%r", data->main->warning.to.stream, data->main->warning.context, data->main->warning.context, f_string_eol_s); + fl_print_format("%r%[%QThe fakefile '%]", data->main->warning.to, f_string_eol_s, data->main->warning.context, data->main->warning.prefix, data->main->warning.context); + fl_print_format("%[%Q%]", data->main->warning.to, data->main->warning.notable, path_file, data->main->warning.notable); + fl_print_format("%[' has empty content for the '%]", data->main->warning.to, data->main->warning.context, data->main->warning.context); + fl_print_format("%[%r%]", data->main->warning.to, data->main->warning.notable, settings_name, data->main->warning.notable); + fl_print_format("%[' object '%]", data->main->warning.to, data->main->warning.context, data->main->warning.context); + fl_print_format("%[%/Q%]", data->main->warning.to, data->main->warning.notable, buffer, range_object, data->main->warning.notable); + fl_print_format("%['.%]%r", data->main->warning.to, data->main->warning.context, data->main->warning.context, f_string_eol_s); - funlockfile(data->main->warning.to.stream); + funlockfile(data->main->warning.to); } #endif // _di_fake_print_warning_settings_content_empty_ @@ -561,19 +561,19 @@ extern "C" { if (data->main->warning.verbosity == f_console_verbosity_quiet_e) return; - flockfile(data->main->warning.to.stream); + flockfile(data->main->warning.to); - fl_print_format("%r%[%QThe fakefile '%]", data->main->warning.to.stream, f_string_eol_s, data->main->warning.context, data->main->warning.prefix, data->main->warning.context); - fl_print_format("%[%Q%]", data->main->warning.to.stream, data->main->warning.notable, path_file, data->main->warning.notable); - fl_print_format("%[' has invalid content '%]", data->main->warning.to.stream, data->main->warning.context, data->main->warning.context); - fl_print_format("%[%/Q%]", data->main->warning.to.stream, data->main->warning.notable, buffer, range_content, data->main->warning.notable); - fl_print_format("%[' for the '%]", data->main->warning.to.stream, data->main->warning.context, data->main->warning.context); - fl_print_format("%[%r%]", data->main->warning.to.stream, data->main->warning.notable, settings_name, data->main->warning.notable); - fl_print_format("%[' object '%]", data->main->warning.to.stream, data->main->warning.context, data->main->warning.context); - fl_print_format("%[%/Q%]", data->main->warning.to.stream, data->main->warning.notable, buffer, range_object, data->main->warning.notable); - fl_print_format("%['.%]%r", data->main->warning.to.stream, data->main->warning.context, data->main->warning.context, f_string_eol_s); + fl_print_format("%r%[%QThe fakefile '%]", data->main->warning.to, f_string_eol_s, data->main->warning.context, data->main->warning.prefix, data->main->warning.context); + fl_print_format("%[%Q%]", data->main->warning.to, data->main->warning.notable, path_file, data->main->warning.notable); + fl_print_format("%[' has invalid content '%]", data->main->warning.to, data->main->warning.context, data->main->warning.context); + fl_print_format("%[%/Q%]", data->main->warning.to, data->main->warning.notable, buffer, range_content, data->main->warning.notable); + fl_print_format("%[' for the '%]", data->main->warning.to, data->main->warning.context, data->main->warning.context); + fl_print_format("%[%r%]", data->main->warning.to, data->main->warning.notable, settings_name, data->main->warning.notable); + fl_print_format("%[' object '%]", data->main->warning.to, data->main->warning.context, data->main->warning.context); + fl_print_format("%[%/Q%]", data->main->warning.to, data->main->warning.notable, buffer, range_object, data->main->warning.notable); + fl_print_format("%['.%]%r", data->main->warning.to, data->main->warning.context, data->main->warning.context, f_string_eol_s); - funlockfile(data->main->warning.to.stream); + funlockfile(data->main->warning.to); } #endif // _di_fake_print_warning_settings_content_invalid_ @@ -582,15 +582,15 @@ extern "C" { if (data->main->warning.verbosity == f_console_verbosity_quiet_e) return; - flockfile(data->main->warning.to.stream); + flockfile(data->main->warning.to); - fl_print_format("%r%[%QThe fakefile '%]", data->main->warning.to.stream, f_string_eol_s, data->main->warning.context, data->main->warning.prefix, data->main->warning.context); - fl_print_format("%[%r%]", data->main->warning.to.stream, data->main->warning.notable, name_object, data->main->warning.notable); - fl_print_format("%[' in the file '%]", data->main->warning.to.stream, data->main->warning.context, data->main->warning.context); - fl_print_format("%[%Q%]", data->main->warning.to.stream, data->main->warning.notable, path_file, data->main->warning.notable); - fl_print_format("%[' may only have a single property, only using the first.%]%r", data->main->warning.to.stream, data->main->warning.context, data->main->warning.context, f_string_eol_s); + fl_print_format("%r%[%QThe fakefile '%]", data->main->warning.to, f_string_eol_s, data->main->warning.context, data->main->warning.prefix, data->main->warning.context); + fl_print_format("%[%r%]", data->main->warning.to, data->main->warning.notable, name_object, data->main->warning.notable); + fl_print_format("%[' in the file '%]", data->main->warning.to, data->main->warning.context, data->main->warning.context); + fl_print_format("%[%Q%]", data->main->warning.to, data->main->warning.notable, path_file, data->main->warning.notable); + fl_print_format("%[' may only have a single property, only using the first.%]%r", data->main->warning.to, data->main->warning.context, data->main->warning.context, f_string_eol_s); - funlockfile(data->main->warning.to.stream); + funlockfile(data->main->warning.to); } #endif // _di_fake_print_warning_settings_content_multiple_ @@ -599,15 +599,15 @@ extern "C" { if (data->main->warning.verbosity == f_console_verbosity_quiet_e) return; - flockfile(data->main->warning.to.stream); + flockfile(data->main->warning.to); - fl_print_format("%r%[%QThe object '%]", data->main->warning.to.stream, f_string_eol_s, data->main->warning.context, data->main->warning.prefix, data->main->warning.context); - fl_print_format("%[%r%]", data->main->warning.to.stream, data->main->warning.notable, name_object, data->main->warning.notable); - fl_print_format("%[' in the file '%]", data->main->warning.to.stream, data->main->warning.context, data->main->warning.context); - fl_print_format("%[%Q%]", data->main->warning.to.stream, data->main->warning.notable, path_file, data->main->warning.notable); - fl_print_format("%[' may only be specified once, only using the first.%]%r", data->main->warning.to.stream, data->main->warning.context, data->main->warning.context, f_string_eol_s); + fl_print_format("%r%[%QThe object '%]", data->main->warning.to, f_string_eol_s, data->main->warning.context, data->main->warning.prefix, data->main->warning.context); + fl_print_format("%[%r%]", data->main->warning.to, data->main->warning.notable, name_object, data->main->warning.notable); + fl_print_format("%[' in the file '%]", data->main->warning.to, data->main->warning.context, data->main->warning.context); + fl_print_format("%[%Q%]", data->main->warning.to, data->main->warning.notable, path_file, data->main->warning.notable); + fl_print_format("%[' may only be specified once, only using the first.%]%r", data->main->warning.to, data->main->warning.context, data->main->warning.context, f_string_eol_s); - funlockfile(data->main->warning.to.stream); + funlockfile(data->main->warning.to); } #endif // _di_fake_print_warning_settings_object_multiple_ diff --git a/level_3/fake/c/private-skeleton.c b/level_3/fake/c/private-skeleton.c index 8ab4e16..593a970 100644 --- a/level_3/fake/c/private-skeleton.c +++ b/level_3/fake/c/private-skeleton.c @@ -12,10 +12,10 @@ extern "C" { f_status_t status = F_none; if (data->main->output.verbosity != f_console_verbosity_quiet_e && data->main->output.verbosity != f_console_verbosity_error_e) { - fll_print_format("%rGenerating skeleton structure.%r", data->main->output.to.stream, f_string_eol_s, f_string_eol_s); + fll_print_format("%rGenerating skeleton structure.%r", data->main->output.to, f_string_eol_s, f_string_eol_s); if (data->main->output.verbosity >= f_console_verbosity_verbose_e) { - fll_print_dynamic(f_string_eol_s, data->main->output.to.stream); + fll_print_dynamic(f_string_eol_s, data->main->output.to); } } @@ -88,7 +88,7 @@ extern "C" { } // for if (data->main->output.verbosity >= f_console_verbosity_verbose_e) { - fll_print_dynamic(f_string_eol_s, data->main->output.to.stream); + fll_print_dynamic(f_string_eol_s, data->main->output.to); } } @@ -135,7 +135,7 @@ extern "C" { if (status == F_true) { if (data->main->error.verbosity >= f_console_verbosity_verbose_e) { - fll_print_format("Directory '%Q' already exists.%r", data->main->output.to.stream, path, f_string_eol_s); + fll_print_format("Directory '%Q' already exists.%r", data->main->output.to, path, f_string_eol_s); } return F_none; @@ -143,13 +143,13 @@ extern "C" { if (status == F_false) { if (data->main->error.verbosity > f_console_verbosity_quiet_e) { - flockfile(data->main->error.to.stream); + flockfile(data->main->error.to); - fl_print_format("%r%[%QThe path '%]", data->main->error.to.stream, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context); - fl_print_format("%[%Q%]", data->main->error.to.stream, data->main->error.notable, path, data->main->error.notable); - fl_print_format("%[' exists but is not a directory.%]%r", data->main->error.to.stream, data->main->error.context, data->main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe path '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context); + fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, path, data->main->error.notable); + fl_print_format("%[' exists but is not a directory.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s); - funlockfile(data->main->error.to.stream); + funlockfile(data->main->error.to); } return F_status_set_warning(F_failure); @@ -159,13 +159,13 @@ extern "C" { if (F_status_is_error(status)) { if (F_status_set_fine(status) == F_file_found_not) { - flockfile(data->main->error.to.stream); + flockfile(data->main->error.to); - fl_print_format("%r%[%QThe path '%]", data->main->error.to.stream, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context); - fl_print_format("%[%Q%]", data->main->error.to.stream, data->main->error.notable, path, data->main->error.notable); - fl_print_format("%[' could not be created, a parent directory does not exist.%]%r", data->main->error.to.stream, data->main->error.context, data->main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe path '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context); + fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, path, data->main->error.notable); + fl_print_format("%[' could not be created, a parent directory does not exist.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s); - funlockfile(data->main->error.to.stream); + funlockfile(data->main->error.to); } else { fll_error_file_print(data->main->error, F_status_set_fine(status), "f_directory_create", F_true, path, f_file_operation_create_s, fll_error_file_type_directory_e); @@ -175,7 +175,7 @@ extern "C" { } if (data->main->error.verbosity >= f_console_verbosity_verbose_e) { - fll_print_format("Directory '%Q' created.%r", data->main->output.to.stream, path, f_string_eol_s); + fll_print_format("Directory '%Q' created.%r", data->main->output.to, path, f_string_eol_s); } } else if (F_status_is_error(status)) { @@ -199,7 +199,7 @@ extern "C" { if (status == F_true) { if (data->main->error.verbosity >= f_console_verbosity_verbose_e) { - fll_print_format("File '%Q' already exists.%r", data->main->output.to.stream, path, f_string_eol_s); + fll_print_format("File '%Q' already exists.%r", data->main->output.to, path, f_string_eol_s); } return F_none; @@ -211,7 +211,7 @@ extern "C" { if (status == F_true) { if (data->main->error.verbosity >= f_console_verbosity_verbose_e) { - fll_print_format("File '%Q' already exists (as a symbolic link).%r", data->main->output.to.stream, path, f_string_eol_s); + fll_print_format("File '%Q' already exists (as a symbolic link).%r", data->main->output.to, path, f_string_eol_s); } return F_none; @@ -220,7 +220,7 @@ extern "C" { if (status == F_false) { if (data->main->error.verbosity >= f_console_verbosity_verbose_e) { - fll_print_format("File '%Q' already exists but is not a regular file (or symbolic link).%r", data->main->output.to.stream, path, f_string_eol_s); + fll_print_format("File '%Q' already exists but is not a regular file (or symbolic link).%r", data->main->output.to, path, f_string_eol_s); } return F_status_set_warning(F_none); @@ -236,13 +236,13 @@ extern "C" { if (F_status_is_error(status)) { if (F_status_set_fine(status) == F_file_found_not) { - flockfile(data->main->error.to.stream); + flockfile(data->main->error.to); - fl_print_format("%r%[%QThe file '%]", data->main->error.to.stream, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context); - fl_print_format("%[%Q%]", data->main->error.to.stream, data->main->error.notable, path, data->main->error.notable); - fl_print_format("%[' could not be created, a parent directory does not exist.%]%r", data->main->error.to.stream, data->main->error.context, data->main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe file '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context); + fl_print_format("%[%Q%]", data->main->error.to, data->main->error.notable, path, data->main->error.notable); + fl_print_format("%[' could not be created, a parent directory does not exist.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s); - funlockfile(data->main->error.to.stream); + funlockfile(data->main->error.to); } else { fll_error_file_print(data->main->error, F_status_set_fine(status), "f_file_create", F_true, path, f_file_operation_create_s, fll_error_file_type_file_e); @@ -252,7 +252,7 @@ extern "C" { } if (data->main->error.verbosity >= f_console_verbosity_verbose_e) { - fll_print_format("File '%Q' created.%r", data->main->output.to.stream, path, f_string_eol_s); + fll_print_format("File '%Q' created.%r", data->main->output.to, path, f_string_eol_s); } if (content.used) { @@ -281,7 +281,7 @@ extern "C" { } if (data->main->error.verbosity >= f_console_verbosity_verbose_e) { - fll_print_format("File '%Q' pre-populated.%r", data->main->output.to.stream, path, f_string_eol_s); + fll_print_format("File '%Q' pre-populated.%r", data->main->output.to, path, f_string_eol_s); } f_file_stream_flush(file); diff --git a/level_3/firewall/c/firewall.c b/level_3/firewall/c/firewall.c index 63bdd9b..897db54 100644 --- a/level_3/firewall/c/firewall.c +++ b/level_3/firewall/c/firewall.c @@ -176,12 +176,12 @@ extern "C" { else { flockfile(main->warning.to.stream); - fl_print_format("%r%[%Q'%]", main->warning.to.stream, f_string_eol_s, main->warning.context, main->warning.prefix, main->warning.context); - fl_print_format("%[%Q%]", main->warning.to.stream, main->warning.notable, data.argv[index], main->warning.notable); - fl_print_format("%[' is not a valid show option.%]%r", main->warning.to.stream, main->warning.context, main->warning.context, f_string_eol_s); + fl_print_format("%r%[%Q'%]", main->warning.to, f_string_eol_s, main->warning.context, main->warning.prefix, main->warning.context); + fl_print_format("%[%Q%]", main->warning.to, main->warning.notable, data.argv[index], main->warning.notable); + fl_print_format("%[' is not a valid show option.%]%r", main->warning.to, main->warning.context, main->warning.context, f_string_eol_s); funlockfile(main->warning.to.stream); - fflush(main->warning.to.stream); + fflush(main->warning.to); } } } @@ -202,7 +202,7 @@ extern "C" { parameters_array[5] = firewall_show_parameter_list_s; if (show_nat) { - fll_print_format("%[===========================%] %[NAT%] %[============================%]%r", main->output.to.stream, main->context.set.standout, main->context.set.standout, main->context.set.title, main->context.set.title, main->context.set.standout, main->context.set.standout, f_string_eol_s); + fll_print_format("%[===========================%] %[NAT%] %[============================%]%r", main->output.to, main->context.set.standout, main->context.set.standout, main->context.set.title, main->context.set.title, main->context.set.standout, main->context.set.standout, f_string_eol_s); f_file_stream_flush(main->output.to); status = fll_execute_program(firewall_tool_iptables_s, parameters, 0, 0, (void *) &return_code); @@ -216,12 +216,12 @@ extern "C" { return status; } - fll_print_dynamic_raw(f_string_eol_s, main->output.to.stream); + fll_print_dynamic_raw(f_string_eol_s, main->output.to); f_file_stream_flush(main->output.to); } if (F_status_is_error_not(status) && show_mangle) { - fll_print_format("%[==========================%] %[MANGLE%] %[==========================%]%r", main->output.to.stream, main->context.set.standout, main->context.set.standout, main->context.set.title, main->context.set.title, main->context.set.standout, main->context.set.standout, f_string_eol_s); + fll_print_format("%[==========================%] %[MANGLE%] %[==========================%]%r", main->output.to, main->context.set.standout, main->context.set.standout, main->context.set.title, main->context.set.title, main->context.set.standout, main->context.set.standout, f_string_eol_s); f_file_stream_flush(main->output.to); parameters_array[3] = firewall_show_mangle_s; @@ -237,12 +237,12 @@ extern "C" { return status; } - fll_print_dynamic_raw(f_string_eol_s, main->output.to.stream); + fll_print_dynamic_raw(f_string_eol_s, main->output.to); f_file_stream_flush(main->output.to); } if (F_status_is_error_not(status) && show_ports) { - fll_print_format("%[==========================%] %[FILTER%] %[==========================%]%r", main->output.to.stream, main->context.set.standout, main->context.set.standout, main->context.set.title, main->context.set.title, main->context.set.standout, main->context.set.standout, f_string_eol_s); + fll_print_format("%[==========================%] %[FILTER%] %[==========================%]%r", main->output.to, main->context.set.standout, main->context.set.standout, main->context.set.title, main->context.set.title, main->context.set.standout, main->context.set.standout, f_string_eol_s); f_file_stream_flush(main->output.to); parameters_array[0] = firewall_show_parameter_exact_s; @@ -262,7 +262,7 @@ extern "C" { return status; } - fll_print_dynamic_raw(f_string_eol_s, main->output.to.stream); + fll_print_dynamic_raw(f_string_eol_s, main->output.to); f_file_stream_flush(main->output.to); } @@ -296,10 +296,10 @@ extern "C" { firewall_print_error_on_allocation_failure(main->error); } else if (status == F_data_not) { - fll_print_format("%r%[%QCould not find any network devices.%]%r", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context, f_string_eol_s); + fll_print_format("%r%[%QCould not find any network devices.%]%r", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context, f_string_eol_s); } else if (status == F_failure) { - fll_print_format("%r%[%QFailed to read the device directory '%r'.%]%r", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, firewall_network_devices_s, main->error.context, f_string_eol_s); + fll_print_format("%r%[%QFailed to read the device directory '%r'.%]%r", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, firewall_network_devices_s, main->error.context, f_string_eol_s); } } @@ -393,7 +393,7 @@ extern "C" { } if (main->error.verbosity > f_console_verbosity_quiet_e) { - fll_print_format("%r%[%QFailed to perform lock request because the lock instructions are missing from: %r.%]%r", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, path_file_other, main->error.context, f_string_eol_s); + fll_print_format("%r%[%QFailed to perform lock request because the lock instructions are missing from: %r.%]%r", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, path_file_other, main->error.context, f_string_eol_s); } firewall_delete_local_data(&local); @@ -435,7 +435,7 @@ extern "C" { } else { if (main->error.verbosity > f_console_verbosity_quiet_e) { - fll_print_format("%r%[%QFailed to perform stop request because the lock instructions are missing from: %r.%]%r", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, path_file_other, main->error.context, f_string_eol_s); + fll_print_format("%r%[%QFailed to perform stop request because the lock instructions are missing from: %r.%]%r", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, path_file_other, main->error.context, f_string_eol_s); } firewall_delete_local_data(&local); @@ -684,7 +684,7 @@ extern "C" { } else { if (main->error.verbosity > f_console_verbosity_quiet_e) { - fll_print_format("%r%[%QNo command given.%]%r", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context, f_string_eol_s); + fll_print_format("%r%[%QNo command given.%]%r", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context, f_string_eol_s); } status = F_status_set_error(F_parameter); @@ -694,7 +694,7 @@ extern "C" { if (F_status_set_fine(status) == F_interrupt) { f_file_stream_flush(main->output.to); - fll_print_dynamic_raw(f_string_eol_s, main->output.to.stream); + fll_print_dynamic_raw(f_string_eol_s, main->output.to); } } diff --git a/level_3/firewall/c/print.c b/level_3/firewall/c/print.c index 08adf08..ea271f5 100644 --- a/level_3/firewall/c/print.c +++ b/level_3/firewall/c/print.c @@ -10,25 +10,25 @@ extern "C" { f_file_stream_lock(print.to); - f_print_dynamic_raw(setting->line_first, print.to.stream); + f_print_dynamic_raw(setting->line_first, print.to); fll_program_print_help_header(print, firewall_program_name_long_s, firewall_program_version_s); fll_program_print_help_option_standard(print); - fl_print_format("%r%r %[Commands:%] ", print.to.stream, f_string_eol_s, f_string_eol_s, print.set->important, print.set->important); - fl_print_format("%r %[%r%] Turn on the firewall.", print.to.stream, f_string_eol_s, print.set->standout, firewall_command_start_s, print.set->standout); - fl_print_format("%r %[%r%] Turn off the firewall.", print.to.stream, f_string_eol_s, print.set->standout, firewall_command_stop_s, print.set->standout); - fl_print_format("%r %[%r%] Turn off and then turn on the firewall.", print.to.stream, f_string_eol_s, print.set->standout, firewall_command_restart_s, print.set->standout); - fl_print_format("%r %[%r%] Prevent all communication.", print.to.stream, f_string_eol_s, print.set->standout, firewall_command_lock_s, print.set->standout); - fl_print_format("%r %[%r%] Show active firewall settings.", print.to.stream, f_string_eol_s, print.set->standout, firewall_command_show_s, print.set->standout); + fl_print_format("%r%r %[Commands:%] ", print.to, f_string_eol_s, f_string_eol_s, print.set->important, print.set->important); + fl_print_format("%r %[%r%] Turn on the firewall.", print.to, f_string_eol_s, print.set->standout, firewall_command_start_s, print.set->standout); + fl_print_format("%r %[%r%] Turn off the firewall.", print.to, f_string_eol_s, print.set->standout, firewall_command_stop_s, print.set->standout); + fl_print_format("%r %[%r%] Turn off and then turn on the firewall.", print.to, f_string_eol_s, print.set->standout, firewall_command_restart_s, print.set->standout); + fl_print_format("%r %[%r%] Prevent all communication.", print.to, f_string_eol_s, print.set->standout, firewall_command_lock_s, print.set->standout); + fl_print_format("%r %[%r%] Show active firewall settings.", print.to, f_string_eol_s, print.set->standout, firewall_command_show_s, print.set->standout); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); + f_print_dynamic_raw(f_string_eol_s, print.to); + f_print_dynamic_raw(f_string_eol_s, print.to); fll_program_print_help_usage(print, firewall_program_name_s, firewall_program_help_parameters_s); - f_print_dynamic_raw(setting->line_last, print.to.stream); + f_print_dynamic_raw(setting->line_last, print.to); f_file_stream_flush(print.to); f_file_stream_unlock(print.to); @@ -46,7 +46,7 @@ extern "C" { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; } - f_print_dynamic_raw(setting->line_first, print.to.stream); + f_print_dynamic_raw(setting->line_first, print.to); return F_none; } @@ -61,7 +61,7 @@ extern "C" { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; } - fll_print_dynamic_raw(setting->line_first, print.to.stream); + fll_print_dynamic_raw(setting->line_first, print.to); return F_none; } @@ -76,7 +76,7 @@ extern "C" { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; } - fll_print_dynamic_raw(setting->line_last, print.to.stream); + fll_print_dynamic_raw(setting->line_last, print.to); return F_none; } @@ -91,7 +91,7 @@ extern "C" { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; } - f_print_dynamic_raw(setting->line_last, print.to.stream); + f_print_dynamic_raw(setting->line_last, print.to); return F_none; } diff --git a/level_3/firewall/c/private-common.c b/level_3/firewall/c/private-common.c index d20e756..6ddbec0 100644 --- a/level_3/firewall/c/private-common.c +++ b/level_3/firewall/c/private-common.c @@ -21,13 +21,13 @@ void firewall_print_debug_tool(const fl_print_t output, const f_string_static_t flockfile(output.to.stream); - fl_print_format("%[%r", output.to.stream, output.context, tool); + fl_print_format("%[%r", output.to, output.context, tool); for (f_array_length_t i = 0; i < arguments.used; ++i) { - fl_print_format(" %Q", output.to.stream, arguments.array[i]); + fl_print_format(" %Q", output.to, arguments.array[i]); } // for - fl_print_format("%]%r", output.to.stream, output.context, f_string_eol_s); + fl_print_format("%]%r", output.to, output.context, f_string_eol_s); funlockfile(output.to.stream); } @@ -36,21 +36,21 @@ void firewall_print_error_on_allocation_failure(const fl_print_t output) { if (output.verbosity == f_console_verbosity_quiet_e) return; - fll_print_format("%r%[%QUnable to allocate memory.%]%r", output.to.stream, f_string_eol_s, output.context, output.prefix, output.context, f_string_eol_s); + fll_print_format("%r%[%QUnable to allocate memory.%]%r", output.to, f_string_eol_s, output.context, output.prefix, output.context, f_string_eol_s); } void firewall_print_error_on_invalid_parameter(const fl_print_t output, const char *function) { if (output.verbosity == f_console_verbosity_quiet_e) return; - fll_print_format("%r%[%QInvalid parameter when calling %s().%]%r", output.to.stream, f_string_eol_s, output.context, output.prefix, function, output.context, f_string_eol_s); + fll_print_format("%r%[%QInvalid parameter when calling %s().%]%r", output.to, f_string_eol_s, output.context, output.prefix, function, output.context, f_string_eol_s); } void firewall_print_error_on_invalid_parameter_for_file(const fl_print_t output, const char *function, const f_string_static_t filename) { if (output.verbosity == f_console_verbosity_quiet_e) return; - fll_print_format("%r%[%QInvalid parameter when calling %s() for the file '%Q'.%]%r", output.to.stream, f_string_eol_s, output.context, output.prefix, function, filename, output.context, f_string_eol_s); + fll_print_format("%r%[%QInvalid parameter when calling %s() for the file '%Q'.%]%r", output.to, f_string_eol_s, output.context, output.prefix, function, filename, output.context, f_string_eol_s); } void firewall_print_error_on_operation(const fl_print_t output, const f_string_static_t tool, const f_string_statics_t arguments) { @@ -59,14 +59,14 @@ void firewall_print_error_on_operation(const fl_print_t output, const f_string_s flockfile(output.to.stream); - fl_print_format("%r%[%QFailed to perform requested %r operation:%]", output.to.stream, f_string_eol_s, output.context, output.prefix, tool, output.context); - fl_print_format("%r %[%r", output.to.stream, f_string_eol_s, output.context, tool); + fl_print_format("%r%[%QFailed to perform requested %r operation:%]", output.to, f_string_eol_s, output.context, output.prefix, tool, output.context); + fl_print_format("%r %[%r", output.to, f_string_eol_s, output.context, tool); for (f_array_length_t i = 0; i < arguments.used; ++i) { - fl_print_format(" %Q", output.to.stream, arguments.array[i]); + fl_print_format(" %Q", output.to, arguments.array[i]); } // for - fl_print_format("%]%r", output.to.stream, output.context, f_string_eol_s); + fl_print_format("%]%r", output.to, output.context, f_string_eol_s); funlockfile(output.to.stream); } @@ -75,14 +75,14 @@ void firewall_print_error_on_unhandled(const fl_print_t output, const char *func if (output.verbosity == f_console_verbosity_quiet_e) return; - fll_print_format("%r%[%QAn unhandled error (%ui) has occurred while calling %s().%]%r", output.to.stream, f_string_eol_s, output.context, output.prefix, status, function, output.context, f_string_eol_s); + fll_print_format("%r%[%QAn unhandled error (%ui) has occurred while calling %s().%]%r", output.to, f_string_eol_s, output.context, output.prefix, status, function, output.context, f_string_eol_s); } void firewall_print_error_on_unhandled_for_file(const fl_print_t output, const char *function, const f_status_t status, const f_string_static_t filename) { if (output.verbosity == f_console_verbosity_quiet_e) return; - fll_print_format("%r%[%QAn unhandled error (%ui) has occurred while calling %s() for the file '%Q'.%]%r", output.to.stream, f_string_eol_s, output.context, output.prefix, status, function, filename, output.context, f_string_eol_s); + fll_print_format("%r%[%QAn unhandled error (%ui) has occurred while calling %s() for the file '%Q'.%]%r", output.to, f_string_eol_s, output.context, output.prefix, status, function, filename, output.context, f_string_eol_s); } #ifndef _di_firewall_signal_received_ diff --git a/level_3/firewall/c/private-firewall.c b/level_3/firewall/c/private-firewall.c index 834136d..42ca1bd 100644 --- a/level_3/firewall/c/private-firewall.c +++ b/level_3/firewall/c/private-firewall.c @@ -85,7 +85,7 @@ f_status_t firewall_perform_commands(firewall_data_t * const data, firewall_loca if (chain == firewall_chain_custom_id_e) { // Custom chains can only apply to themselves, so silently ignore chain commands specified within a custom chain. - fll_print_format("%r%[%QAt line %ul, the chain option is meaningless inside of a custom chain.%]%r", data->main->warning.to.stream, f_string_eol_s, data->main->warning.context, data->main->warning.prefix, i, data->main->warning.context, f_string_eol_s); + fll_print_format("%r%[%QAt line %ul, the chain option is meaningless inside of a custom chain.%]%r", data->main->warning.to, f_string_eol_s, data->main->warning.context, data->main->warning.prefix, i, data->main->warning.context, f_string_eol_s); continue; } @@ -290,16 +290,16 @@ f_status_t firewall_perform_commands(firewall_data_t * const data, firewall_loca // If the remaining rule does not match as firewall_rule_s, then it is an invalid rule. else if (fl_string_dynamic_compare_string(local->buffer.string + local->rule_objects.array[i].start, firewall_rule_s, length) == F_equal_to_not) { if (length) { - flockfile(data->main->warning.to.stream); + flockfile(data->main->warning.to); - fl_print_format("%r%[%QAt line %ul, the object '%]", data->main->warning.to.stream, f_string_eol_s, data->main->warning.context, data->main->warning.prefix, i, data->main->warning.context, data->main->warning.notable); - fl_print_format("%[%/Q%]", data->main->warning.to.stream, data->main->warning.notable, local->buffer, local->rule_objects.array[i], data->main->warning.notable); - fl_print_format("%[' is invalid.%]%r", data->main->warning.to.stream, data->main->warning.context, data->main->warning.context, f_string_eol_s); + fl_print_format("%r%[%QAt line %ul, the object '%]", data->main->warning.to, f_string_eol_s, data->main->warning.context, data->main->warning.prefix, i, data->main->warning.context, data->main->warning.notable); + fl_print_format("%[%/Q%]", data->main->warning.to, data->main->warning.notable, local->buffer, local->rule_objects.array[i], data->main->warning.notable); + fl_print_format("%[' is invalid.%]%r", data->main->warning.to, data->main->warning.context, data->main->warning.context, f_string_eol_s); - funlockfile(data->main->warning.to.stream); + funlockfile(data->main->warning.to); } else { - fll_print_format("%r%[%QAt line %ul, the object is missing.%]%r", data->main->warning.to.stream, f_string_eol_s, data->main->warning.context, data->main->warning.prefix, i, data->main->warning.context, f_string_eol_s); + fll_print_format("%r%[%QAt line %ul, the object is missing.%]%r", data->main->warning.to, f_string_eol_s, data->main->warning.context, data->main->warning.prefix, i, data->main->warning.context, f_string_eol_s); } continue; @@ -309,18 +309,18 @@ f_status_t firewall_perform_commands(firewall_data_t * const data, firewall_loca length = (local->rule_objects.array[i].stop - local->rule_objects.array[i].start) + 1; if (length) { - flockfile(data->main->warning.to.stream); + flockfile(data->main->warning.to); - fl_print_format("%r%[%QAt line %ul, the object '%]", data->main->warning.to.stream, f_string_eol_s, data->main->warning.context, data->main->warning.prefix, i, data->main->warning.context); - fl_print_format("%[%/Q%]", data->main->warning.to.stream, data->main->warning.notable, local->buffer, local->rule_objects.array[i], data->main->warning.notable); - fl_print_format("%[' has invalid content '%]", data->main->warning.to.stream, data->main->warning.context, data->main->warning.context); - fl_print_format("%[%/Q%]", data->main->warning.to.stream, data->main->warning.notable, local->buffer, local->rule_contents.array[i].array[0], data->main->warning.notable); - fl_print_format("%['.%]%r", data->main->warning.to.stream, data->main->warning.context, data->main->warning.context, f_string_eol_s); + fl_print_format("%r%[%QAt line %ul, the object '%]", data->main->warning.to, f_string_eol_s, data->main->warning.context, data->main->warning.prefix, i, data->main->warning.context); + fl_print_format("%[%/Q%]", data->main->warning.to, data->main->warning.notable, local->buffer, local->rule_objects.array[i], data->main->warning.notable); + fl_print_format("%[' has invalid content '%]", data->main->warning.to, data->main->warning.context, data->main->warning.context); + fl_print_format("%[%/Q%]", data->main->warning.to, data->main->warning.notable, local->buffer, local->rule_contents.array[i].array[0], data->main->warning.notable); + fl_print_format("%['.%]%r", data->main->warning.to, data->main->warning.context, data->main->warning.context, f_string_eol_s); - funlockfile(data->main->warning.to.stream); + funlockfile(data->main->warning.to); } else { - fll_print_format("%r%[%QAt line %ul, the object has no content.%]%r", data->main->warning.to.stream, f_string_eol_s, data->main->warning.context, data->main->warning.prefix, i, data->main->warning.context, f_string_eol_s); + fll_print_format("%r%[%QAt line %ul, the object has no content.%]%r", data->main->warning.to, f_string_eol_s, data->main->warning.context, data->main->warning.prefix, i, data->main->warning.context, f_string_eol_s); } continue; @@ -515,13 +515,13 @@ f_status_t firewall_perform_commands(firewall_data_t * const data, firewall_loca else { length = (local->rule_objects.array[i].stop - local->rule_objects.array[i].start) + 1; - flockfile(data->main->warning.to.stream); + flockfile(data->main->warning.to); - fl_print_format("%r%[%QAt line %ul, the object '%]", data->main->warning.to.stream, f_string_eol_s, data->main->warning.context, data->main->warning.prefix, i, data->main->warning.context); - fl_print_format("%[%/Q%]", data->main->warning.to.stream, data->main->warning.notable, local->buffer, local->rule_objects.array[i], data->main->warning.notable); - fl_print_format("%]%[' has no content.%]%r", data->main->warning.to.stream, data->main->warning.context, data->main->warning.context, f_string_eol_s); + fl_print_format("%r%[%QAt line %ul, the object '%]", data->main->warning.to, f_string_eol_s, data->main->warning.context, data->main->warning.prefix, i, data->main->warning.context); + fl_print_format("%[%/Q%]", data->main->warning.to, data->main->warning.notable, local->buffer, local->rule_objects.array[i], data->main->warning.notable); + fl_print_format("%]%[' has no content.%]%r", data->main->warning.to, data->main->warning.context, data->main->warning.context, f_string_eol_s); - funlockfile(data->main->warning.to.stream); + funlockfile(data->main->warning.to); break; } @@ -556,19 +556,19 @@ f_status_t firewall_perform_commands(firewall_data_t * const data, firewall_loca // The file does not have to exist if (data->main->error.verbosity != f_console_verbosity_verbose_e || data->main->error.verbosity == f_console_verbosity_debug_e) { - fll_print_format("%r%[%QCannot find the file '%Q'.%]%r", data->main->warning.to.stream, f_string_eol_s, data->main->warning.context, data->main->warning.prefix, path_file, data->main->warning.context, f_string_eol_s); + fll_print_format("%r%[%QCannot find the file '%Q'.%]%r", data->main->warning.to, f_string_eol_s, data->main->warning.context, data->main->warning.prefix, path_file, data->main->warning.context, f_string_eol_s); } status = F_none; } else if (F_status_set_fine(status) == F_file_open) { if (data->main->error.verbosity > f_console_verbosity_quiet_e) { - fll_print_format("%r%[%QUnable to open the file '%Q'.%]%r", data->main->error.to.stream, f_string_eol_s, data->main->error.context, data->main->error.prefix, path_file, data->main->error.context, f_string_eol_s); + fll_print_format("%r%[%QUnable to open the file '%Q'.%]%r", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, path_file, data->main->error.context, f_string_eol_s); } } else if (F_status_set_fine(status) == F_file_descriptor) { if (data->main->error.verbosity > f_console_verbosity_quiet_e) { - fll_print_format("%r%[%QFile descriptor error while trying to open the file '%Q'.%]%r", data->main->error.to.stream, f_string_eol_s, data->main->error.context, data->main->error.prefix, path_file, data->main->error.context, f_string_eol_s); + fll_print_format("%r%[%QFile descriptor error while trying to open the file '%Q'.%]%r", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, path_file, data->main->error.context, f_string_eol_s); } } else if (F_status_set_fine(status) == F_memory_not) { @@ -593,16 +593,16 @@ f_status_t firewall_perform_commands(firewall_data_t * const data, firewall_loca firewall_print_error_on_invalid_parameter(data->main->error, "f_file_read"); } else if (F_status_set_fine(status) == F_number_overflow) { - fll_print_format("%r%[%QInteger overflow while trying to buffer the file '%Q'.%]%r", data->main->error.to.stream, f_string_eol_s, data->main->error.context, data->main->error.prefix, path_file, data->main->error.context, f_string_eol_s); + fll_print_format("%r%[%QInteger overflow while trying to buffer the file '%Q'.%]%r", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, path_file, data->main->error.context, f_string_eol_s); } else if (F_status_set_fine(status) == F_file_closed) { - fll_print_format("%r%[%QThe file '%Q' is no longer open.%]%r", data->main->error.to.stream, f_string_eol_s, data->main->error.context, data->main->error.prefix, path_file, data->main->error.context, f_string_eol_s); + fll_print_format("%r%[%QThe file '%Q' is no longer open.%]%r", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, path_file, data->main->error.context, f_string_eol_s); } else if (F_status_set_fine(status) == F_file_seek) { - fll_print_format("%r%[%QA seek error occurred while accessing the file '%Q'.%]%r", data->main->error.to.stream, f_string_eol_s, data->main->error.context, data->main->error.prefix, path_file, data->main->error.context, f_string_eol_s); + fll_print_format("%r%[%QA seek error occurred while accessing the file '%Q'.%]%r", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, path_file, data->main->error.context, f_string_eol_s); } else if (F_status_set_fine(status) == F_file_read) { - fll_print_format("%r%[%QA read error occurred while accessing the file '%Q'.%]%r", data->main->error.to.stream, f_string_eol_s, data->main->error.context, data->main->error.prefix, path_file, data->main->error.context, f_string_eol_s); + fll_print_format("%r%[%QA read error occurred while accessing the file '%Q'.%]%r", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, path_file, data->main->error.context, f_string_eol_s); } else if (F_status_set_fine(status) != F_memory_not) { firewall_print_error_on_unhandled(data->main->error, "f_file_read", F_status_set_fine(status)); @@ -1141,13 +1141,13 @@ f_status_t firewall_buffer_rules(firewall_data_t * const data, const f_string_st firewall_print_error_on_invalid_parameter(data->main->error, "f_file_open"); } else if (F_status_set_fine(status) == F_file_found_not) { - fll_print_format("%r%[%QUnable to find the file '%Q'.%]%r", data->main->error.to.stream, f_string_eol_s, data->main->error.context, data->main->error.prefix, filename, data->main->error.context, f_string_eol_s); + fll_print_format("%r%[%QUnable to find the file '%Q'.%]%r", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, filename, data->main->error.context, f_string_eol_s); } else if (F_status_set_fine(status) == F_file_open) { - fll_print_format("%r%[%QUnable to open the file '%Q'.%]%r", data->main->error.to.stream, f_string_eol_s, data->main->error.context, data->main->error.prefix, filename, data->main->error.context, f_string_eol_s); + fll_print_format("%r%[%QUnable to open the file '%Q'.%]%r", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, filename, data->main->error.context, f_string_eol_s); } else if (F_status_set_fine(status) == F_file_descriptor) { - fll_print_format("%r%[%QFile descriptor error while trying to open the file '%Q'.%]%r", data->main->error.to.stream, f_string_eol_s, data->main->error.context, data->main->error.prefix, filename, data->main->error.context, f_string_eol_s); + fll_print_format("%r%[%QFile descriptor error while trying to open the file '%Q'.%]%r", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, filename, data->main->error.context, f_string_eol_s); } else { firewall_print_error_on_unhandled(data->main->error, "f_file_open", F_status_set_fine(status)); @@ -1169,16 +1169,16 @@ f_status_t firewall_buffer_rules(firewall_data_t * const data, const f_string_st firewall_print_error_on_invalid_parameter(data->main->error, "f_file_read"); } else if (F_status_set_fine(status) == F_number_overflow) { - fll_print_format("%r%[%QInteger overflow while trying to buffer the file '%Q'.%]%r", data->main->error.to.stream, f_string_eol_s, data->main->error.context, data->main->error.prefix, filename, data->main->error.context, f_string_eol_s); + fll_print_format("%r%[%QInteger overflow while trying to buffer the file '%Q'.%]%r", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, filename, data->main->error.context, f_string_eol_s); } else if (F_status_set_fine(status) == F_file_closed) { - fll_print_format("%r%[%QThe file '%Q' is no longer open.%]%r", data->main->error.to.stream, f_string_eol_s, data->main->error.context, data->main->error.prefix, filename, data->main->error.context, f_string_eol_s); + fll_print_format("%r%[%QThe file '%Q' is no longer open.%]%r", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, filename, data->main->error.context, f_string_eol_s); } else if (F_status_set_fine(status) == F_file_seek) { - fll_print_format("%r%[%QA seek error occurred while accessing the file '%Q'.%]%r", data->main->error.to.stream, f_string_eol_s, data->main->error.context, data->main->error.prefix, filename, data->main->error.context, f_string_eol_s); + fll_print_format("%r%[%QA seek error occurred while accessing the file '%Q'.%]%r", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, filename, data->main->error.context, f_string_eol_s); } else if (F_status_set_fine(status) == F_file_read) { - fll_print_format("%r%[%QA read error occurred while accessing the file '%Q'.%]%r", data->main->error.to.stream, f_string_eol_s, data->main->error.context, data->main->error.prefix, filename, data->main->error.context, f_string_eol_s); + fll_print_format("%r%[%QA read error occurred while accessing the file '%Q'.%]%r", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, filename, data->main->error.context, f_string_eol_s); } else if (F_status_set_fine(status) == F_memory_not) { firewall_print_error_on_allocation_failure(data->main->error); @@ -1209,7 +1209,7 @@ f_status_t firewall_buffer_rules(firewall_data_t * const data, const f_string_st firewall_print_error_on_invalid_parameter_for_file(data->main->error, "fll_fss_basic_list_read", filename); } else if (status == F_data_not_eos || status == F_data_not || status == F_data_not_stop) { - fll_print_format("%r%[%QNo relevant main was found within the file '%Q'.%]%r", data->main->error.to.stream, f_string_eol_s, data->main->error.context, data->main->error.prefix, filename, data->main->error.context, f_string_eol_s); + fll_print_format("%r%[%QNo relevant main was found within the file '%Q'.%]%r", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, filename, data->main->error.context, f_string_eol_s); } else if (status == F_memory_not) { firewall_print_error_on_allocation_failure(data->main->error); diff --git a/level_3/fss_basic_list_read/c/fss_basic_list_read.c b/level_3/fss_basic_list_read/c/fss_basic_list_read.c index 8346505..e06f495 100644 --- a/level_3/fss_basic_list_read/c/fss_basic_list_read.c +++ b/level_3/fss_basic_list_read/c/fss_basic_list_read.c @@ -119,9 +119,9 @@ extern "C" { if (main->parameters.array[parameter_code[i]].result == f_console_result_found_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, parameter_name[i], main->error.notable); - fl_print_format("%[' requires a %s.%]%r", main->error.to.stream, main->error.context, parameter_message[i], main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, parameter_name[i], main->error.notable); + fl_print_format("%[' requires a %s.%]%r", main->error.to, main->error.context, parameter_message[i], main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); @@ -215,9 +215,9 @@ extern "C" { if (!length) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe value for the parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_basic_list_read_long_delimit_s, main->error.notable); - fl_print_format("%[' must not be empty.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe value for the parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_basic_list_read_long_delimit_s, main->error.notable); + fl_print_format("%[' must not be empty.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); @@ -348,9 +348,9 @@ extern "C" { if (F_status_is_error_not(status) && main->parameters.array[fss_basic_list_read_parameter_select_e].result == f_console_result_found_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_basic_list_read_long_select_s, main->error.notable); - fl_print_format("%[' parameter requires a positive number.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_basic_list_read_long_select_s, main->error.notable); + fl_print_format("%[' parameter requires a positive number.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); @@ -514,7 +514,7 @@ extern "C" { fss_basic_list_read_data_delete_simple(&data); } else { - fll_print_format("%r%[%QYou failed to specify one or more files.%]%r", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context, f_string_eol_s); + fll_print_format("%r%[%QYou failed to specify one or more files.%]%r", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context, f_string_eol_s); status = F_status_set_error(F_parameter); } @@ -522,7 +522,7 @@ extern "C" { if (F_status_set_fine(status) == F_interrupt) { f_file_stream_flush(main->output.to); - fll_print_dynamic_raw(f_string_eol_s, main->output.to.stream); + fll_print_dynamic_raw(f_string_eol_s, main->output.to); } } diff --git a/level_3/fss_basic_list_read/c/print.c b/level_3/fss_basic_list_read/c/print.c index b3d2022..a9df475 100644 --- a/level_3/fss_basic_list_read/c/print.c +++ b/level_3/fss_basic_list_read/c/print.c @@ -10,13 +10,13 @@ extern "C" { f_file_stream_lock(print.to); - f_print_dynamic_raw(setting->line_first, print.to.stream); + f_print_dynamic_raw(setting->line_first, print.to); fll_program_print_help_header(print, fss_basic_list_read_program_name_long_s, fss_basic_list_read_program_version_s); fll_program_print_help_option_standard(print); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); + f_print_dynamic_raw(f_string_eol_s, print.to); fll_program_print_help_option(print, fss_basic_list_read_short_at_s, fss_basic_list_read_long_at_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Select Object at this numeric index."); fll_program_print_help_option(print, fss_basic_list_read_short_content_s, fss_basic_list_read_long_content_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Print the Content (default)."); @@ -33,80 +33,80 @@ extern "C" { fll_program_print_help_option(print, fss_basic_list_read_short_total_s, fss_basic_list_read_long_total_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Print the total number of lines."); fll_program_print_help_option(print, fss_basic_list_read_short_trim_s, fss_basic_list_read_long_trim_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Trim Object names on select or print."); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); + f_print_dynamic_raw(f_string_eol_s, print.to); + f_print_dynamic_raw(f_string_eol_s, print.to); fll_program_print_help_usage(print, fss_basic_list_read_program_name_s, fll_program_parameter_filenames_s); - fl_print_format("%r %[Notes:%]%r", print.to.stream, f_string_eol_s, print.set->important, print.set->important, f_string_eol_s); + fl_print_format("%r %[Notes:%]%r", print.to, f_string_eol_s, print.set->important, print.set->important, f_string_eol_s); - fl_print_format(" This program will print the Content associated with the given Object and Content main based on the FSS-0002 Basic List standard.%r%r", print.to.stream, f_string_eol_s, f_string_eol_s); + fl_print_format(" This program will print the Content associated with the given Object and Content main based on the FSS-0002 Basic List standard.%r%r", print.to, f_string_eol_s, f_string_eol_s); - fl_print_format(" All numeric positions (indexes) start at 0 instead of 1.%r", print.to.stream, f_string_eol_s); - fl_print_format(" For example, a file of 17 lines would range from 0 to 16.%r%r", print.to.stream, f_string_eol_s, f_string_eol_s); + fl_print_format(" All numeric positions (indexes) start at 0 instead of 1.%r", print.to, f_string_eol_s); + fl_print_format(" For example, a file of 17 lines would range from 0 to 16.%r%r", print.to, f_string_eol_s, f_string_eol_s); - fl_print_format(" When using the %[%r%r%] option, an order of operations is enforced on the parameters.%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_basic_list_read_long_depth_s, print.set->notable, f_string_eol_s); + fl_print_format(" When using the %[%r%r%] option, an order of operations is enforced on the parameters.%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_basic_list_read_long_depth_s, print.set->notable, f_string_eol_s); - fl_print_format(" When this order of operations is in effect, parameters to the right of a depth parameter are influenced by that depth parameter:%r", print.to.stream, f_string_eol_s); + fl_print_format(" When this order of operations is in effect, parameters to the right of a depth parameter are influenced by that depth parameter:%r", print.to, f_string_eol_s); - fl_print_format(" %[%r%r%]: An Object index at the specified depth.%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_basic_list_read_long_at_s, print.set->notable, f_string_eol_s); - fl_print_format(" %[%r%r%]: A new depth within the specified depth, indexed from the root.%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_basic_list_read_long_depth_s, print.set->notable, f_string_eol_s); - fl_print_format(" %[%r%r%]: An Object name at the specified depth.%r%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_basic_list_read_long_name_s, print.set->notable, f_string_eol_s, f_string_eol_s); + fl_print_format(" %[%r%r%]: An Object index at the specified depth.%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_basic_list_read_long_at_s, print.set->notable, f_string_eol_s); + fl_print_format(" %[%r%r%]: A new depth within the specified depth, indexed from the root.%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_basic_list_read_long_depth_s, print.set->notable, f_string_eol_s); + fl_print_format(" %[%r%r%]: An Object name at the specified depth.%r%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_basic_list_read_long_name_s, print.set->notable, f_string_eol_s, f_string_eol_s); - fl_print_format(" The parameter %[%r%r%] must be in numeric order, but values in between may be skipped.%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_basic_list_read_long_depth_s, print.set->notable, f_string_eol_s); - fl_print_format(" ('-d 0 -a 1 -d 2 -a 2' would specify index 1 at depth 0, any index at depth 1, and index 2 at depth 2.)%r", print.to.stream, f_string_eol_s); - fl_print_format(" ('-d 2 -a 1 -d 0 -a 2' would be invalid because depth 2 is before depth 1.)%r%r", print.to.stream, f_string_eol_s, f_string_eol_s); + fl_print_format(" The parameter %[%r%r%] must be in numeric order, but values in between may be skipped.%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_basic_list_read_long_depth_s, print.set->notable, f_string_eol_s); + fl_print_format(" ('-d 0 -a 1 -d 2 -a 2' would specify index 1 at depth 0, any index at depth 1, and index 2 at depth 2.)%r", print.to, f_string_eol_s); + fl_print_format(" ('-d 2 -a 1 -d 0 -a 2' would be invalid because depth 2 is before depth 1.)%r%r", print.to, f_string_eol_s, f_string_eol_s); - fl_print_format(" The parameter %[%r%r%] selects a Content column.%r%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_basic_list_read_long_select_s, print.set->notable, f_string_eol_s, f_string_eol_s); + fl_print_format(" The parameter %[%r%r%] selects a Content column.%r%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_basic_list_read_long_select_s, print.set->notable, f_string_eol_s, f_string_eol_s); - fl_print_format(" Specify both %[%r%r%]", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_basic_list_read_long_object_s, print.set->notable); - fl_print_format(" and the %[%r%r%] parameters to get the total objects.%r%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_basic_list_read_long_total_s, print.set->notable, f_string_eol_s, f_string_eol_s); + fl_print_format(" Specify both %[%r%r%]", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_basic_list_read_long_object_s, print.set->notable); + fl_print_format(" and the %[%r%r%] parameters to get the total objects.%r%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_basic_list_read_long_total_s, print.set->notable, f_string_eol_s, f_string_eol_s); - fl_print_format(" When both %[%r%r%]", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_basic_list_read_long_at_s, print.set->notable); - fl_print_format(" and %[%r%r%] parameters are specified (at the same depth),", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_basic_list_read_long_name_s, print.set->notable); - fl_print_format(" the %[%r%r%] parameter value will be treated as a position relative to the specified", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_basic_list_read_long_at_s, print.set->notable); - fl_print_format(" %[%r%r%] parameter value.%r%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_basic_list_read_long_name_s, print.set->notable, f_string_eol_s, f_string_eol_s); + fl_print_format(" When both %[%r%r%]", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_basic_list_read_long_at_s, print.set->notable); + fl_print_format(" and %[%r%r%] parameters are specified (at the same depth),", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_basic_list_read_long_name_s, print.set->notable); + fl_print_format(" the %[%r%r%] parameter value will be treated as a position relative to the specified", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_basic_list_read_long_at_s, print.set->notable); + fl_print_format(" %[%r%r%] parameter value.%r%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_basic_list_read_long_name_s, print.set->notable, f_string_eol_s, f_string_eol_s); - fl_print_format(" This program may support parameters, such as %[%r%r%]", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_basic_list_read_long_depth_s, print.set->notable); - fl_print_format(" or %[%r%r%], even if not supported by the standard.%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_basic_list_read_long_select_s, print.set->notable, f_string_eol_s); - fl_print_format(" This is done to help ensure consistency for scripting.%r%r", print.to.stream, f_string_eol_s, f_string_eol_s); + fl_print_format(" This program may support parameters, such as %[%r%r%]", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_basic_list_read_long_depth_s, print.set->notable); + fl_print_format(" or %[%r%r%], even if not supported by the standard.%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_basic_list_read_long_select_s, print.set->notable, f_string_eol_s); + fl_print_format(" This is done to help ensure consistency for scripting.%r%r", print.to, f_string_eol_s, f_string_eol_s); - fl_print_format(" For parameters like %[%r%r%],", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_basic_list_read_long_depth_s, print.set->notable); - fl_print_format(" if the standard doesn't support nested Content, then only a depth of 0 would be valid.%r", print.to.stream, f_string_eol_s); + fl_print_format(" For parameters like %[%r%r%],", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_basic_list_read_long_depth_s, print.set->notable); + fl_print_format(" if the standard doesn't support nested Content, then only a depth of 0 would be valid.%r", print.to, f_string_eol_s); - fl_print_format(" For parameters like %[%r%r%],", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_basic_list_read_long_select_s, print.set->notable); - fl_print_format(" if the standard doesn't support multiple Content groups, then only a select of 0 would be valid.%r%r", print.to.stream, f_string_eol_s, f_string_eol_s); + fl_print_format(" For parameters like %[%r%r%],", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_basic_list_read_long_select_s, print.set->notable); + fl_print_format(" if the standard doesn't support multiple Content groups, then only a select of 0 would be valid.%r%r", print.to, f_string_eol_s, f_string_eol_s); - fl_print_format(" The parameter %[%r%r%]", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_basic_list_read_long_trim_s, print.set->notable); - fl_print_format(" will remove leading and trailing white spaces when selecting objects or when printing objects.%r%r", print.to.stream, f_string_eol_s, f_string_eol_s); + fl_print_format(" The parameter %[%r%r%]", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_basic_list_read_long_trim_s, print.set->notable); + fl_print_format(" will remove leading and trailing white spaces when selecting objects or when printing objects.%r%r", print.to, f_string_eol_s, f_string_eol_s); - fl_print_format(" When specifying both the %[%r%r%]", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_basic_list_read_long_object_s, print.set->notable); - fl_print_format(" parameter and the %[%r%r%] parameter, the entire Object and Content are printed, including the formatting.%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_basic_list_read_long_content_s, print.set->notable, f_string_eol_s); - fl_print_format(" Both the Object and Content printed are already escaped.%r", print.to.stream, f_string_eol_s); - fl_print_format(" Both the Object and Content are separated by a New Line character '\\n' (U+000A).%r%r", print.to.stream, f_string_eol_s, f_string_eol_s); + fl_print_format(" When specifying both the %[%r%r%]", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_basic_list_read_long_object_s, print.set->notable); + fl_print_format(" parameter and the %[%r%r%] parameter, the entire Object and Content are printed, including the formatting.%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_basic_list_read_long_content_s, print.set->notable, f_string_eol_s); + fl_print_format(" Both the Object and Content printed are already escaped.%r", print.to, f_string_eol_s); + fl_print_format(" Both the Object and Content are separated by a New Line character '\\n' (U+000A).%r%r", print.to, f_string_eol_s, f_string_eol_s); - fl_print_format(" The parameter %[%r%r%] accepts the following:%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_basic_list_read_long_delimit_s, print.set->notable, f_string_eol_s); - fl_print_format(" - %[%r%]: Do not apply delimits.%r", print.to.stream, print.set->notable, fss_basic_list_read_delimit_mode_name_none_s, print.set->notable, f_string_eol_s); - fl_print_format(" - %[%r%]: (default) Apply all delimits.%r", print.to.stream, print.set->notable, fss_basic_list_read_delimit_mode_name_all_s, print.set->notable, f_string_eol_s); - fl_print_format(" - %[%r%]: Apply delimits for Objects.%r", print.to.stream, print.set->notable, fss_basic_list_read_delimit_mode_name_object_s, print.set->notable, f_string_eol_s); - fl_print_format(" - A number, 0 or greater: apply delimits for Content at the specified depth.%r", print.to.stream, f_string_eol_s); - fl_print_format(" - A number, 0 or greater, followed by a %[%r%]: (such as '1+') apply delimits for Content at the specified depth and any greater depth (numerically).%r", print.to.stream, print.set->notable, fss_basic_list_read_delimit_mode_name_greater_s, print.set->notable, f_string_eol_s, f_string_eol_s); - fl_print_format(" - A number, 0 or lesser, followed by a %[%r%]: (such as '1-') apply delimits for Content at the specified depth and any lesser depth (numerically).%r%r", print.to.stream, print.set->notable, fss_basic_list_read_delimit_mode_name_lesser_s, print.set->notable, f_string_eol_s, f_string_eol_s); + fl_print_format(" The parameter %[%r%r%] accepts the following:%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_basic_list_read_long_delimit_s, print.set->notable, f_string_eol_s); + fl_print_format(" - %[%r%]: Do not apply delimits.%r", print.to, print.set->notable, fss_basic_list_read_delimit_mode_name_none_s, print.set->notable, f_string_eol_s); + fl_print_format(" - %[%r%]: (default) Apply all delimits.%r", print.to, print.set->notable, fss_basic_list_read_delimit_mode_name_all_s, print.set->notable, f_string_eol_s); + fl_print_format(" - %[%r%]: Apply delimits for Objects.%r", print.to, print.set->notable, fss_basic_list_read_delimit_mode_name_object_s, print.set->notable, f_string_eol_s); + fl_print_format(" - A number, 0 or greater: apply delimits for Content at the specified depth.%r", print.to, f_string_eol_s); + fl_print_format(" - A number, 0 or greater, followed by a %[%r%]: (such as '1+') apply delimits for Content at the specified depth and any greater depth (numerically).%r", print.to, print.set->notable, fss_basic_list_read_delimit_mode_name_greater_s, print.set->notable, f_string_eol_s, f_string_eol_s); + fl_print_format(" - A number, 0 or lesser, followed by a %[%r%]: (such as '1-') apply delimits for Content at the specified depth and any lesser depth (numerically).%r%r", print.to, print.set->notable, fss_basic_list_read_delimit_mode_name_lesser_s, print.set->notable, f_string_eol_s, f_string_eol_s); - fl_print_format(" The %[%r%r%] parameter may be specified multiple times to customize the delimit behavior.%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_basic_list_read_long_delimit_s, print.set->notable, f_string_eol_s); + fl_print_format(" The %[%r%r%] parameter may be specified multiple times to customize the delimit behavior.%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_basic_list_read_long_delimit_s, print.set->notable, f_string_eol_s); - fl_print_format(" The %[%r%r%]", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_basic_list_read_long_delimit_s, print.set->notable); - fl_print_format(" values %[%r%]", print.to.stream, print.set->notable, fss_basic_list_read_delimit_mode_name_none_s, print.set->notable); - fl_print_format(" and %[%r%],", print.to.stream, print.set->notable, fss_basic_list_read_delimit_mode_name_all_s, print.set->notable); - fl_print_format(" overrule all other delimit values.%r%r", print.to.stream, f_string_eol_s, f_string_eol_s); + fl_print_format(" The %[%r%r%]", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_basic_list_read_long_delimit_s, print.set->notable); + fl_print_format(" values %[%r%]", print.to, print.set->notable, fss_basic_list_read_delimit_mode_name_none_s, print.set->notable); + fl_print_format(" and %[%r%],", print.to, print.set->notable, fss_basic_list_read_delimit_mode_name_all_s, print.set->notable); + fl_print_format(" overrule all other delimit values.%r%r", print.to, f_string_eol_s, f_string_eol_s); - fl_print_format(" The parameters %[%r%r%]", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_basic_list_read_long_columns_s, print.set->notable); - fl_print_format(" and %[%r%r%]", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_basic_list_read_long_select_s, print.set->notable); - fl_print_format(" refer to a Content column.%r", print.to.stream, f_string_eol_s); - fl_print_format(" The word \"column\" is being loosely defined to refer to a specific Content.%r", print.to.stream, f_string_eol_s); - fl_print_format(" This is not to be confused with a depth.%r", print.to.stream, f_string_eol_s); + fl_print_format(" The parameters %[%r%r%]", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_basic_list_read_long_columns_s, print.set->notable); + fl_print_format(" and %[%r%r%]", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_basic_list_read_long_select_s, print.set->notable); + fl_print_format(" refer to a Content column.%r", print.to, f_string_eol_s); + fl_print_format(" The word \"column\" is being loosely defined to refer to a specific Content.%r", print.to, f_string_eol_s); + fl_print_format(" This is not to be confused with a depth.%r", print.to, f_string_eol_s); - f_print_dynamic_raw(setting->line_last, print.to.stream); + f_print_dynamic_raw(setting->line_last, print.to); f_file_stream_flush(print.to); f_file_stream_unlock(print.to); @@ -124,7 +124,7 @@ extern "C" { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; } - f_print_dynamic_raw(setting->line_first, print.to.stream); + f_print_dynamic_raw(setting->line_first, print.to); return F_none; } @@ -139,7 +139,7 @@ extern "C" { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; } - fll_print_dynamic_raw(setting->line_first, print.to.stream); + fll_print_dynamic_raw(setting->line_first, print.to); return F_none; } @@ -154,7 +154,7 @@ extern "C" { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; } - fll_print_dynamic_raw(setting->line_last, print.to.stream); + fll_print_dynamic_raw(setting->line_last, print.to); return F_none; } @@ -169,7 +169,7 @@ extern "C" { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; } - f_print_dynamic_raw(setting->line_last, print.to.stream); + f_print_dynamic_raw(setting->line_last, print.to); return F_none; } diff --git a/level_3/fss_basic_list_read/c/private-print.c b/level_3/fss_basic_list_read/c/private-print.c index 3145a58..a5ec4ae 100644 --- a/level_3/fss_basic_list_read/c/private-print.c +++ b/level_3/fss_basic_list_read/c/private-print.c @@ -18,10 +18,10 @@ extern "C" { if (data->option & fss_basic_list_read_data_option_object_d) { if (data->option & fss_basic_list_read_data_option_trim_d) { - fl_print_trim_except_in_dynamic_partial(data->buffer, data->objects.array[at], delimits_object, data->comments, main->output.to.stream); + fl_print_trim_except_in_dynamic_partial(data->buffer, data->objects.array[at], delimits_object, data->comments, main->output.to); } else { - f_print_except_in_dynamic_partial(data->buffer, data->objects.array[at], delimits_object, data->comments, main->output.to.stream); + f_print_except_in_dynamic_partial(data->buffer, data->objects.array[at], delimits_object, data->comments, main->output.to); } fss_basic_list_read_print_object_end(main); @@ -31,7 +31,7 @@ extern "C" { if (data->contents.array[at].used) { fss_basic_list_read_print_content_ignore(main); - f_print_except_in_dynamic_partial(data->buffer, data->contents.array[at].array[0], delimits_content, data->comments, main->output.to.stream); + f_print_except_in_dynamic_partial(data->buffer, data->contents.array[at].array[0], delimits_content, data->comments, main->output.to); fss_basic_list_read_print_content_ignore(main); } @@ -52,10 +52,10 @@ extern "C" { } if (data->option & fss_basic_list_read_data_option_trim_d) { - fl_print_trim_except_dynamic_partial(data->buffer, data->objects.array[at], delimits_object, main->output.to.stream); + fl_print_trim_except_dynamic_partial(data->buffer, data->objects.array[at], delimits_object, main->output.to); } else { - f_print_except_dynamic_partial(data->buffer, data->objects.array[at], delimits_object, main->output.to.stream); + f_print_except_dynamic_partial(data->buffer, data->objects.array[at], delimits_object, main->output.to); } fss_basic_list_read_print_object_end(main); @@ -66,7 +66,7 @@ extern "C" { void fss_basic_list_read_print_content_ignore(fll_program_data_t * const main) { if (main->parameters.array[fss_basic_list_read_parameter_pipe_e].result == f_console_result_found_e) { - f_print_dynamic_raw(fss_basic_list_read_pipe_content_ignore_s, main->output.to.stream); + f_print_dynamic_raw(fss_basic_list_read_pipe_content_ignore_s, main->output.to); } } #endif // _di_fss_basic_list_read_print_content_ignore_ @@ -75,15 +75,15 @@ extern "C" { void fss_basic_list_read_print_object_end(fll_program_data_t * const main) { if (main->parameters.array[fss_basic_list_read_parameter_pipe_e].result == f_console_result_found_e) { - f_print_dynamic_raw(fss_basic_list_read_pipe_content_start_s, main->output.to.stream); + f_print_dynamic_raw(fss_basic_list_read_pipe_content_start_s, main->output.to); } else { if (main->parameters.array[fss_basic_list_read_parameter_content_e].result == f_console_result_found_e) { - f_print_dynamic_raw(f_fss_basic_list_open_s, main->output.to.stream); - f_print_dynamic_raw(f_fss_basic_list_open_end_s, main->output.to.stream); + f_print_dynamic_raw(f_fss_basic_list_open_s, main->output.to); + f_print_dynamic_raw(f_fss_basic_list_open_end_s, main->output.to); } else { - f_print_dynamic_raw(f_fss_eol_s, main->output.to.stream); + f_print_dynamic_raw(f_fss_eol_s, main->output.to); } } } @@ -93,7 +93,7 @@ extern "C" { void fss_basic_list_read_print_set_end(fll_program_data_t * const main) { if (main->parameters.array[fss_basic_list_read_parameter_pipe_e].result == f_console_result_found_e) { - f_print_dynamic_raw(fss_basic_list_read_pipe_content_end_s, main->output.to.stream); + f_print_dynamic_raw(fss_basic_list_read_pipe_content_end_s, main->output.to); } } #endif // _di_fss_basic_list_read_print_set_end_ @@ -101,16 +101,16 @@ extern "C" { #ifndef _di_fss_basic_list_read_print_one_ void fss_basic_list_read_print_one(fll_program_data_t * const main) { - f_print_dynamic_raw(f_string_ascii_1_s, main->output.to.stream); - f_print_dynamic_raw(f_string_eol_s, main->output.to.stream); + f_print_dynamic_raw(f_string_ascii_1_s, main->output.to); + f_print_dynamic_raw(f_string_eol_s, main->output.to); } #endif // _di_fss_basic_list_read_print_one_ #ifndef _di_fss_basic_list_read_print_zero_ void fss_basic_list_read_print_zero(fll_program_data_t * const main) { - f_print_dynamic_raw(f_string_ascii_0_s, main->output.to.stream); - f_print_dynamic_raw(f_string_eol_s, main->output.to.stream); + f_print_dynamic_raw(f_string_ascii_0_s, main->output.to); + f_print_dynamic_raw(f_string_eol_s, main->output.to); } #endif // _di_fss_basic_list_read_print_zero_ diff --git a/level_3/fss_basic_list_read/c/private-read.c b/level_3/fss_basic_list_read/c/private-read.c index a97e18f..065ca50 100644 --- a/level_3/fss_basic_list_read/c/private-read.c +++ b/level_3/fss_basic_list_read/c/private-read.c @@ -188,11 +188,11 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe value '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%ul%]", main->error.to.stream, main->error.notable, data->depths.array[i].depth, main->error.notable); - fl_print_format("%[' may only be specified once for the parameter '%]", main->error.to.stream, main->error.context, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_basic_list_read_long_depth_s, main->error.notable); - fl_print_format("%['.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe value '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%ul%]", main->error.to, main->error.notable, data->depths.array[i].depth, main->error.notable); + fl_print_format("%[' may only be specified once for the parameter '%]", main->error.to, main->error.context, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_basic_list_read_long_depth_s, main->error.notable); + fl_print_format("%['.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -204,13 +204,13 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_basic_list_read_long_depth_s, main->error.notable); - fl_print_format("%[' may not have the value '%]", main->error.to.stream, main->error.context, main->error.context); - fl_print_format("%[%ul%]", main->error.to.stream, main->error.notable, data->depths.array[i].depth, main->error.notable); - fl_print_format("%[' before the value '%]", main->error.to.stream, main->error.context, main->error.context); - fl_print_format("%[%ul%]", main->error.to.stream, main->error.notable, data->depths.array[j].depth, main->error.notable); - fl_print_format("%['.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_basic_list_read_long_depth_s, main->error.notable); + fl_print_format("%[' may not have the value '%]", main->error.to, main->error.context, main->error.context); + fl_print_format("%[%ul%]", main->error.to, main->error.notable, data->depths.array[i].depth, main->error.notable); + fl_print_format("%[' before the value '%]", main->error.to, main->error.context, main->error.context); + fl_print_format("%[%ul%]", main->error.to, main->error.notable, data->depths.array[j].depth, main->error.notable); + fl_print_format("%['.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -421,7 +421,7 @@ extern "C" { if (status == F_success) return F_none; } else if (data->option & fss_basic_list_read_data_option_columns_d) { - fll_print_format("%ul%r", main->output.to.stream, data->contents.array[i].used, f_string_eol_s); + fll_print_format("%ul%r", main->output.to, data->contents.array[i].used, f_string_eol_s); } else if (data->option & fss_basic_list_read_data_option_total_d) { f_array_length_t total = 0; @@ -444,7 +444,7 @@ extern "C" { total = 1; } - fll_print_format("%ul%r", main->output.to.stream, total, f_string_eol_s); + fll_print_format("%ul%r", main->output.to, total, f_string_eol_s); } else { fss_basic_list_read_print_at(main, i, *delimits_object, *delimits_content, data); @@ -526,7 +526,7 @@ extern "C" { fss_basic_list_read_print_one(main); } else { - f_print_except_in_dynamic_partial(data->buffer, range, delimits_content, data->comments, main->output.to.stream); + f_print_except_in_dynamic_partial(data->buffer, range, delimits_content, data->comments, main->output.to); } funlockfile(main->output.to.stream); @@ -555,8 +555,8 @@ extern "C" { else { range.stop = data->contents.array[at].array[0].stop; - f_print_except_in_dynamic_partial(data->buffer, range, delimits_content, data->comments, main->output.to.stream); - f_print_dynamic_raw(f_string_eol_s, main->output.to.stream); + f_print_except_in_dynamic_partial(data->buffer, range, delimits_content, data->comments, main->output.to); + f_print_dynamic_raw(f_string_eol_s, main->output.to); } funlockfile(main->output.to.stream); @@ -604,7 +604,7 @@ extern "C" { } } // for - fll_print_format("%ul%r", main->output.to.stream, max, f_string_eol_s); + fll_print_format("%ul%r", main->output.to, max, f_string_eol_s); return F_none; } @@ -800,7 +800,7 @@ extern "C" { } } else { - fl_print_format("%ul%r", main->output.to.stream, total, f_string_eol_s); + fl_print_format("%ul%r", main->output.to, total, f_string_eol_s); } funlockfile(main->output.to.stream); diff --git a/level_3/fss_basic_list_write/c/fss_basic_list_write.c b/level_3/fss_basic_list_write/c/fss_basic_list_write.c index eeb3b87..cb43de2 100644 --- a/level_3/fss_basic_list_write/c/fss_basic_list_write.c +++ b/level_3/fss_basic_list_write/c/fss_basic_list_write.c @@ -73,7 +73,7 @@ extern "C" { f_file_t output = f_file_t_initialize; output.id = F_type_descriptor_output_d; - output.stream = main->output.to.stream; + output.stream = main->output.to; output.flag = F_file_flag_create_d | F_file_flag_write_only_d | F_file_flag_append_d; output.size_read = main->output.to.size_read; output.size_write = main->output.to.size_write; @@ -84,9 +84,9 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_basic_list_write_long_file_s, main->error.notable); - fl_print_format("%[' may only be specified once.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_basic_list_write_long_file_s, main->error.notable); + fl_print_format("%[' may only be specified once.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -131,13 +131,13 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_basic_list_write_long_partial_s, main->error.notable); - fl_print_format("%[' parameter only allows either the '%]", main->error.to.stream, main->error.context, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_basic_list_write_long_object_s, main->error.notable); - fl_print_format("%[' parameter or the '%]", main->error.to.stream, main->error.context, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_basic_list_write_long_content_s, main->error.notable); - fl_print_format("%[' parameter, but not both.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_basic_list_write_long_partial_s, main->error.notable); + fl_print_format("%[' parameter only allows either the '%]", main->error.to, main->error.context, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_basic_list_write_long_object_s, main->error.notable); + fl_print_format("%[' parameter or the '%]", main->error.to, main->error.context, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_basic_list_write_long_content_s, main->error.notable); + fl_print_format("%[' parameter, but not both.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -163,11 +163,11 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QEach '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_basic_list_write_long_object_s, main->error.notable); - fl_print_format("%[' parameter must be specified before a '%]", main->error.to.stream, main->error.context, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_basic_list_write_long_content_s, main->error.notable); - fl_print_format("%[' parameter.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QEach '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_basic_list_write_long_object_s, main->error.notable); + fl_print_format("%[' parameter must be specified before a '%]", main->error.to, main->error.context, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_basic_list_write_long_content_s, main->error.notable); + fl_print_format("%[' parameter.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -195,11 +195,11 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThis requires either piped data or the use of the '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_basic_list_write_long_object_s, main->error.notable); - fl_print_format("%[' parameter with the '%]", main->error.to.stream, main->error.context, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_basic_list_write_long_content_s, main->error.notable); - fl_print_format("%[' parameter.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThis requires either piped data or the use of the '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_basic_list_write_long_object_s, main->error.notable); + fl_print_format("%[' parameter with the '%]", main->error.to, main->error.context, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_basic_list_write_long_content_s, main->error.notable); + fl_print_format("%[' parameter.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -212,9 +212,9 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThis '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_basic_list_write_long_partial_s, main->error.notable); - fl_print_format("%[' parameter cannot be used when processing a pipe.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThis '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_basic_list_write_long_partial_s, main->error.notable); + fl_print_format("%[' parameter cannot be used when processing a pipe.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -229,9 +229,9 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_basic_list_write_long_prepend_s, main->error.notable); - fl_print_format("%[' is specified, but no value is given.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_basic_list_write_long_prepend_s, main->error.notable); + fl_print_format("%[' is specified, but no value is given.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -254,9 +254,9 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe value for the parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_basic_list_write_long_prepend_s, main->error.notable); - fl_print_format("%[' must only contain white space.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe value for the parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_basic_list_write_long_prepend_s, main->error.notable); + fl_print_format("%[' must only contain white space.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -271,9 +271,9 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe value for the parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_basic_list_write_long_prepend_s, main->error.notable); - fl_print_format("%[' must not be an empty string.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe value for the parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_basic_list_write_long_prepend_s, main->error.notable); + fl_print_format("%[' must not be an empty string.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -288,9 +288,9 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_basic_list_write_long_ignore_s, main->error.notable); - fl_print_format("%[' was specified, but no values were given.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_basic_list_write_long_ignore_s, main->error.notable); + fl_print_format("%[' was specified, but no values were given.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -304,9 +304,9 @@ extern "C" { if (total_locations * 2 > total_arguments) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_basic_list_write_long_ignore_s, main->error.notable); - fl_print_format("%[' requires two values.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_basic_list_write_long_ignore_s, main->error.notable); + fl_print_format("%[' requires two values.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); @@ -340,8 +340,8 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QWhile processing the '%]%[input pipe%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context, main->error.notable, main->error.notable); - fl_print_format("%['.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QWhile processing the '%]%[input pipe%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context, main->error.notable, main->error.notable); + fl_print_format("%['.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -421,8 +421,8 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QWhile processing the '%]%[input arguments%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context, main->error.notable, main->error.notable); - fl_print_format("%['.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QWhile processing the '%]%[input arguments%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context, main->error.notable, main->error.notable); + fl_print_format("%['.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -430,7 +430,7 @@ extern "C" { else if (main->error.verbosity > f_console_verbosity_quiet_e && main->parameters.array[fss_basic_list_write_parameter_file_e].result == f_console_result_none_e) { // Ensure there is always a newline at the end, unless in quiet mode. - fll_print_dynamic_raw(f_string_eol_s, main->output.to.stream); + fll_print_dynamic_raw(f_string_eol_s, main->output.to); } } } @@ -443,7 +443,7 @@ extern "C" { // Ensure a newline is always put at the end of the program execution, unless in quiet mode. if (main->error.verbosity > f_console_verbosity_quiet_e) { if (F_status_is_error(status)) { - fll_print_dynamic_raw(f_string_eol_s, main->error.to.stream); + fll_print_dynamic_raw(f_string_eol_s, main->error.to); } } diff --git a/level_3/fss_basic_list_write/c/print.c b/level_3/fss_basic_list_write/c/print.c index 96d0763..f348c92 100644 --- a/level_3/fss_basic_list_write/c/print.c +++ b/level_3/fss_basic_list_write/c/print.c @@ -10,13 +10,13 @@ extern "C" { f_file_stream_lock(print.to); - f_print_dynamic_raw(setting->line_first, print.to.stream); + f_print_dynamic_raw(setting->line_first, print.to); fll_program_print_help_header(print, fss_basic_list_write_program_name_long_s, fss_basic_list_write_program_version_s); fll_program_print_help_option_standard(print); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); + f_print_dynamic_raw(f_string_eol_s, print.to); fll_program_print_help_option(print, fss_basic_list_write_short_file_s, fss_basic_list_write_long_file_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Specify a file to send data to."); fll_program_print_help_option(print, fss_basic_list_write_short_content_s, fss_basic_list_write_long_content_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, "The Content to write."); @@ -28,25 +28,25 @@ extern "C" { fll_program_print_help_option(print, fss_basic_list_write_short_single_s, fss_basic_list_write_long_single_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Use single quotes."); fll_program_print_help_option(print, fss_basic_list_write_short_trim_s, fss_basic_list_write_long_trim_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Trim Object names."); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); + f_print_dynamic_raw(f_string_eol_s, print.to); + f_print_dynamic_raw(f_string_eol_s, print.to); fll_program_print_help_usage(print, fss_basic_list_write_program_name_s, f_string_empty_s); - fl_print_format("%r The pipe uses the Backspace character '%[\\b%]' (%[U+0008%]) to designate the start of a Content.%r", print.to.stream, f_string_eol_s, print.set->notable, print.set->notable, print.set->notable, print.set->notable, f_string_eol_s); - fl_print_format(" The pipe uses the Form Feed character '%[\\f%]' (%[U+000C%]) to designate the end of the last Content.%r", print.to.stream, print.set->notable, print.set->notable, print.set->notable, print.set->notable, f_string_eol_s); - fl_print_format(" The pipe uses the Vertical Line character '%[\\v%]' (%[U+000B%]) is used to ignore a Content range, which does nothing in this program.%r", print.to.stream, print.set->notable, print.set->notable, print.set->notable, print.set->notable, f_string_eol_s); - fl_print_format(" For the pipe, an Object is terminated by either a Backspace character '%[\\b%]' (%[U+0008%])", print.to.stream, print.set->notable, print.set->notable, print.set->notable, print.set->notable); - fl_print_format(" or a Form Feed character '%[\\f%]' (%[U+000C%]).%r", print.to.stream, print.set->notable, print.set->notable, print.set->notable, print.set->notable, f_string_eol_s); - fl_print_format(" The end of the pipe represents the end of any Object or Content.%r%r", print.to.stream, f_string_eol_s, f_string_eol_s); + fl_print_format("%r The pipe uses the Backspace character '%[\\b%]' (%[U+0008%]) to designate the start of a Content.%r", print.to, f_string_eol_s, print.set->notable, print.set->notable, print.set->notable, print.set->notable, f_string_eol_s); + fl_print_format(" The pipe uses the Form Feed character '%[\\f%]' (%[U+000C%]) to designate the end of the last Content.%r", print.to, print.set->notable, print.set->notable, print.set->notable, print.set->notable, f_string_eol_s); + fl_print_format(" The pipe uses the Vertical Line character '%[\\v%]' (%[U+000B%]) is used to ignore a Content range, which does nothing in this program.%r", print.to, print.set->notable, print.set->notable, print.set->notable, print.set->notable, f_string_eol_s); + fl_print_format(" For the pipe, an Object is terminated by either a Backspace character '%[\\b%]' (%[U+0008%])", print.to, print.set->notable, print.set->notable, print.set->notable, print.set->notable); + fl_print_format(" or a Form Feed character '%[\\f%]' (%[U+000C%]).%r", print.to, print.set->notable, print.set->notable, print.set->notable, print.set->notable, f_string_eol_s); + fl_print_format(" The end of the pipe represents the end of any Object or Content.%r%r", print.to, f_string_eol_s, f_string_eol_s); - fl_print_format(" The FSS-0002 (Basic List) specification does not support quoted names, therefore the parameters '%[%r%r%]'", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_basic_list_write_long_single_s, print.set->notable); - fl_print_format(" and '%[%r%r%]' do nothing.%r%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_basic_list_write_long_double_s, print.set->notable, f_string_eol_s, f_string_eol_s); + fl_print_format(" The FSS-0002 (Basic List) specification does not support quoted names, therefore the parameters '%[%r%r%]'", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_basic_list_write_long_single_s, print.set->notable); + fl_print_format(" and '%[%r%r%]' do nothing.%r%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_basic_list_write_long_double_s, print.set->notable, f_string_eol_s, f_string_eol_s); - fl_print_format(" This program does not use the parameter '%[%r%r%]', which therefore does nothing.%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_basic_list_write_long_ignore_s, print.set->notable, f_string_eol_s); - fl_print_format(" This parameter requires two values.%r", print.to.stream, f_string_eol_s); + fl_print_format(" This program does not use the parameter '%[%r%r%]', which therefore does nothing.%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_basic_list_write_long_ignore_s, print.set->notable, f_string_eol_s); + fl_print_format(" This parameter requires two values.%r", print.to, f_string_eol_s); - f_print_dynamic_raw(setting->line_last, print.to.stream); + f_print_dynamic_raw(setting->line_last, print.to); f_file_stream_flush(print.to); f_file_stream_unlock(print.to); @@ -64,7 +64,7 @@ extern "C" { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; } - f_print_dynamic_raw(setting->line_first, print.to.stream); + f_print_dynamic_raw(setting->line_first, print.to); return F_none; } @@ -79,7 +79,7 @@ extern "C" { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; } - fll_print_dynamic_raw(setting->line_first, print.to.stream); + fll_print_dynamic_raw(setting->line_first, print.to); return F_none; } @@ -94,7 +94,7 @@ extern "C" { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; } - fll_print_dynamic_raw(setting->line_last, print.to.stream); + fll_print_dynamic_raw(setting->line_last, print.to); return F_none; } @@ -109,7 +109,7 @@ extern "C" { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; } - f_print_dynamic_raw(setting->line_last, print.to.stream); + f_print_dynamic_raw(setting->line_last, print.to); return F_none; } diff --git a/level_3/fss_basic_list_write/c/private-write.c b/level_3/fss_basic_list_write/c/private-write.c index bbf3d7b..0eb1379 100644 --- a/level_3/fss_basic_list_write/c/private-write.c +++ b/level_3/fss_basic_list_write/c/private-write.c @@ -13,13 +13,13 @@ extern "C" { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QMust specify the '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_basic_list_write_long_object_s, main->error.notable); - fl_print_format("%[' parameter and the '%]", main->error.to.stream, main->error.context, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_basic_list_write_long_content_s, main->error.notable); - fl_print_format("%[' parameter the same number of times when not specifying the '%]", main->error.to.stream, main->error.context, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_basic_list_write_long_partial_s, main->error.notable); - fl_print_format("%[' parameter.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QMust specify the '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_basic_list_write_long_object_s, main->error.notable); + fl_print_format("%[' parameter and the '%]", main->error.to, main->error.context, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_basic_list_write_long_content_s, main->error.notable); + fl_print_format("%[' parameter the same number of times when not specifying the '%]", main->error.to, main->error.context, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_basic_list_write_long_partial_s, main->error.notable); + fl_print_format("%[' parameter.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -32,11 +32,11 @@ extern "C" { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe FSS-0002 (Basic List) standard does not support end of line character '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[\\n%]", main->error.to.stream, main->error.notable, main->error.notable); - fl_print_format("%[' (%]", main->error.to.stream, main->error.context, main->error.context); - fl_print_format("%[U+000A%]", main->error.to.stream, main->error.notable, main->error.notable); - fl_print_format("%[) in objects.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe FSS-0002 (Basic List) standard does not support end of line character '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[\\n%]", main->error.to, main->error.notable, main->error.notable); + fl_print_format("%[' (%]", main->error.to, main->error.context, main->error.context); + fl_print_format("%[U+000A%]", main->error.to, main->error.notable, main->error.notable); + fl_print_format("%[) in objects.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -49,9 +49,9 @@ extern "C" { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, symbol, parameter, main->error.notable); - fl_print_format("%[' is specified, but no value is given.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, symbol, parameter, main->error.notable); + fl_print_format("%[' is specified, but no value is given.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -131,7 +131,7 @@ extern "C" { } } - fll_print_dynamic(*buffer, output.stream); + fll_print_dynamic(*buffer, output); buffer->used = 0; @@ -268,7 +268,7 @@ extern "C" { if (block.string[range.start] == fss_basic_list_write_pipe_content_start_s.string[0]) { if (main->error.verbosity > f_console_verbosity_quiet_e) { - fll_print_format("%r%[%QThe FSS-0002 (Basic List) standard only supports one content per object.%]%r", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context, f_string_eol_s); + fll_print_format("%r%[%QThe FSS-0002 (Basic List) standard only supports one content per object.%]%r", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context, f_string_eol_s); } status = F_status_set_error(F_supported_not); diff --git a/level_3/fss_basic_read/c/fss_basic_read.c b/level_3/fss_basic_read/c/fss_basic_read.c index 548654b..3978cda 100644 --- a/level_3/fss_basic_read/c/fss_basic_read.c +++ b/level_3/fss_basic_read/c/fss_basic_read.c @@ -119,9 +119,9 @@ extern "C" { if (main->parameters.array[parameter_code[i]].result == f_console_result_found_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, parameter_name[i], main->error.notable); - fl_print_format("%[' requires a %s.%]%r", main->error.to.stream, main->error.context, parameter_message[i], main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, parameter_name[i], main->error.notable); + fl_print_format("%[' requires a %s.%]%r", main->error.to, main->error.context, parameter_message[i], main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); @@ -215,9 +215,9 @@ extern "C" { if (!length) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe value for the parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_basic_read_long_delimit_s, main->error.notable); - fl_print_format("%[' must not be empty.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe value for the parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_basic_read_long_delimit_s, main->error.notable); + fl_print_format("%[' must not be empty.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); @@ -348,9 +348,9 @@ extern "C" { if (F_status_is_error_not(status) && main->parameters.array[fss_basic_read_parameter_select_e].result == f_console_result_found_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_basic_read_long_select_s, main->error.notable); - fl_print_format("%[' parameter requires a positive number.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_basic_read_long_select_s, main->error.notable); + fl_print_format("%[' parameter requires a positive number.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); @@ -519,7 +519,7 @@ extern "C" { fss_basic_read_data_delete_simple(&data); } else { - fll_print_format("%r%[%QYou failed to specify one or more files.%]%r", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context, f_string_eol_s); + fll_print_format("%r%[%QYou failed to specify one or more files.%]%r", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context, f_string_eol_s); status = F_status_set_error(F_parameter); } @@ -527,7 +527,7 @@ extern "C" { if (F_status_set_fine(status) == F_interrupt) { f_file_stream_flush(main->output.to); - fll_print_dynamic_raw(f_string_eol_s, main->output.to.stream); + fll_print_dynamic_raw(f_string_eol_s, main->output.to); } } diff --git a/level_3/fss_basic_read/c/print.c b/level_3/fss_basic_read/c/print.c index 438e1e6..f993843 100644 --- a/level_3/fss_basic_read/c/print.c +++ b/level_3/fss_basic_read/c/print.c @@ -10,13 +10,13 @@ extern "C" { f_file_stream_lock(print.to); - f_print_dynamic_raw(setting->line_first, print.to.stream); + f_print_dynamic_raw(setting->line_first, print.to); fll_program_print_help_header(print, fss_basic_read_program_name_long_s, fss_basic_read_program_version_s); fll_program_print_help_option_standard(print); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); + f_print_dynamic_raw(f_string_eol_s, print.to); fll_program_print_help_option(print, fss_basic_read_short_at_s, fss_basic_read_long_at_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Select Object at this numeric index."); fll_program_print_help_option(print, fss_basic_read_short_content_s, fss_basic_read_long_content_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Print the Content (default)."); @@ -33,80 +33,80 @@ extern "C" { fll_program_print_help_option(print, fss_basic_read_short_total_s, fss_basic_read_long_total_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Print the total number of lines."); fll_program_print_help_option(print, fss_basic_read_short_trim_s, fss_basic_read_long_trim_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Trim Object names on select or print."); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); + f_print_dynamic_raw(f_string_eol_s, print.to); + f_print_dynamic_raw(f_string_eol_s, print.to); fll_program_print_help_usage(print, fss_basic_read_program_name_s, fll_program_parameter_filenames_s); - fl_print_format("%r %[Notes:%]%r", print.to.stream, f_string_eol_s, print.set->important, print.set->important, f_string_eol_s); + fl_print_format("%r %[Notes:%]%r", print.to, f_string_eol_s, print.set->important, print.set->important, f_string_eol_s); - fl_print_format(" This program will print the Content associated with the given Object and Content main based on the FSS-0000 Basic standard.%r%r", print.to.stream, f_string_eol_s, f_string_eol_s); + fl_print_format(" This program will print the Content associated with the given Object and Content main based on the FSS-0000 Basic standard.%r%r", print.to, f_string_eol_s, f_string_eol_s); - fl_print_format(" All numeric positions (indexes) start at 0 instead of 1.%r", print.to.stream, f_string_eol_s); - fl_print_format(" For example, a file of 17 lines would range from 0 to 16.%r%r", print.to.stream, f_string_eol_s, f_string_eol_s); + fl_print_format(" All numeric positions (indexes) start at 0 instead of 1.%r", print.to, f_string_eol_s); + fl_print_format(" For example, a file of 17 lines would range from 0 to 16.%r%r", print.to, f_string_eol_s, f_string_eol_s); - fl_print_format(" When using the %[%r%r%] option, an order of operations is enforced on the parameters.%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_basic_read_long_depth_s, print.set->notable, f_string_eol_s); + fl_print_format(" When using the %[%r%r%] option, an order of operations is enforced on the parameters.%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_basic_read_long_depth_s, print.set->notable, f_string_eol_s); - fl_print_format(" When this order of operations is in effect, parameters to the right of a depth parameter are influenced by that depth parameter:%r", print.to.stream, f_string_eol_s); + fl_print_format(" When this order of operations is in effect, parameters to the right of a depth parameter are influenced by that depth parameter:%r", print.to, f_string_eol_s); - fl_print_format(" %[%r%r%]: An Object index at the specified depth.%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_basic_read_long_at_s, print.set->notable, f_string_eol_s); - fl_print_format(" %[%r%r%]: A new depth within the specified depth, indexed from the root.%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_basic_read_long_depth_s, print.set->notable, f_string_eol_s); - fl_print_format(" %[%r%r%]: An Object name at the specified depth.%r%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_basic_read_long_name_s, print.set->notable, f_string_eol_s, f_string_eol_s); + fl_print_format(" %[%r%r%]: An Object index at the specified depth.%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_basic_read_long_at_s, print.set->notable, f_string_eol_s); + fl_print_format(" %[%r%r%]: A new depth within the specified depth, indexed from the root.%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_basic_read_long_depth_s, print.set->notable, f_string_eol_s); + fl_print_format(" %[%r%r%]: An Object name at the specified depth.%r%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_basic_read_long_name_s, print.set->notable, f_string_eol_s, f_string_eol_s); - fl_print_format(" The parameter %[%r%r%] must be in numeric order, but values in between may be skipped.%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_basic_read_long_depth_s, print.set->notable, f_string_eol_s); - fl_print_format(" ('-d 0 -a 1 -d 2 -a 2' would specify index 1 at depth 0, any index at depth 1, and index 2 at depth 2.)%r", print.to.stream, f_string_eol_s); - fl_print_format(" ('-d 2 -a 1 -d 0 -a 2' would be invalid because depth 2 is before depth 1.)%r%r", print.to.stream, f_string_eol_s, f_string_eol_s); + fl_print_format(" The parameter %[%r%r%] must be in numeric order, but values in between may be skipped.%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_basic_read_long_depth_s, print.set->notable, f_string_eol_s); + fl_print_format(" ('-d 0 -a 1 -d 2 -a 2' would specify index 1 at depth 0, any index at depth 1, and index 2 at depth 2.)%r", print.to, f_string_eol_s); + fl_print_format(" ('-d 2 -a 1 -d 0 -a 2' would be invalid because depth 2 is before depth 1.)%r%r", print.to, f_string_eol_s, f_string_eol_s); - fl_print_format(" The parameter %[%r%r%] selects a Content column.%r%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_basic_read_long_select_s, print.set->notable, f_string_eol_s, f_string_eol_s); + fl_print_format(" The parameter %[%r%r%] selects a Content column.%r%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_basic_read_long_select_s, print.set->notable, f_string_eol_s, f_string_eol_s); - fl_print_format(" Specify both %[%r%r%]", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_basic_read_long_object_s, print.set->notable); - fl_print_format(" and the %[%r%r%] parameters to get the total objects.%r%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_basic_read_long_total_s, print.set->notable, f_string_eol_s, f_string_eol_s); + fl_print_format(" Specify both %[%r%r%]", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_basic_read_long_object_s, print.set->notable); + fl_print_format(" and the %[%r%r%] parameters to get the total objects.%r%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_basic_read_long_total_s, print.set->notable, f_string_eol_s, f_string_eol_s); - fl_print_format(" When both %[%r%r%]", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_basic_read_long_at_s, print.set->notable); - fl_print_format(" and %[%r%r%] parameters are specified (at the same depth),", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_basic_read_long_name_s, print.set->notable); - fl_print_format(" the %[%r%r%] parameter value will be treated as a position relative to the specified", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_basic_read_long_at_s, print.set->notable); - fl_print_format(" %[%r%r%] parameter value.%r%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_basic_read_long_name_s, print.set->notable, f_string_eol_s, f_string_eol_s); + fl_print_format(" When both %[%r%r%]", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_basic_read_long_at_s, print.set->notable); + fl_print_format(" and %[%r%r%] parameters are specified (at the same depth),", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_basic_read_long_name_s, print.set->notable); + fl_print_format(" the %[%r%r%] parameter value will be treated as a position relative to the specified", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_basic_read_long_at_s, print.set->notable); + fl_print_format(" %[%r%r%] parameter value.%r%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_basic_read_long_name_s, print.set->notable, f_string_eol_s, f_string_eol_s); - fl_print_format(" This program may support parameters, such as %[%r%r%]", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_basic_read_long_depth_s, print.set->notable); - fl_print_format(" or %[%r%r%], even if not supported by the standard.%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_basic_read_long_select_s, print.set->notable, f_string_eol_s); - fl_print_format(" This is done to help ensure consistency for scripting.%r%r", print.to.stream, f_string_eol_s, f_string_eol_s); + fl_print_format(" This program may support parameters, such as %[%r%r%]", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_basic_read_long_depth_s, print.set->notable); + fl_print_format(" or %[%r%r%], even if not supported by the standard.%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_basic_read_long_select_s, print.set->notable, f_string_eol_s); + fl_print_format(" This is done to help ensure consistency for scripting.%r%r", print.to, f_string_eol_s, f_string_eol_s); - fl_print_format(" For parameters like %[%r%r%],", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_basic_read_long_depth_s, print.set->notable); - fl_print_format(" if the standard doesn't support nested Content, then only a depth of 0 would be valid.%r", print.to.stream, f_string_eol_s); + fl_print_format(" For parameters like %[%r%r%],", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_basic_read_long_depth_s, print.set->notable); + fl_print_format(" if the standard doesn't support nested Content, then only a depth of 0 would be valid.%r", print.to, f_string_eol_s); - fl_print_format(" For parameters like %[%r%r%],", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_basic_read_long_select_s, print.set->notable); - fl_print_format(" if the standard doesn't support multiple Content groups, then only a select of 0 would be valid.%r%r", print.to.stream, f_string_eol_s, f_string_eol_s); + fl_print_format(" For parameters like %[%r%r%],", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_basic_read_long_select_s, print.set->notable); + fl_print_format(" if the standard doesn't support multiple Content groups, then only a select of 0 would be valid.%r%r", print.to, f_string_eol_s, f_string_eol_s); - fl_print_format(" The parameter %[%r%r%]", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_basic_read_long_trim_s, print.set->notable); - fl_print_format(" will remove leading and trailing white spaces when selecting objects or when printing objects.%r%r", print.to.stream, f_string_eol_s, f_string_eol_s); + fl_print_format(" The parameter %[%r%r%]", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_basic_read_long_trim_s, print.set->notable); + fl_print_format(" will remove leading and trailing white spaces when selecting objects or when printing objects.%r%r", print.to, f_string_eol_s, f_string_eol_s); - fl_print_format(" When specifying both the %[%r%r%]", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_basic_read_long_object_s, print.set->notable); - fl_print_format(" parameter and the %[%r%r%] parameter, the entire Object and Content are printed, including the formatting.%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_basic_read_long_content_s, print.set->notable, f_string_eol_s); - fl_print_format(" Both the Object and Content printed are already escaped.%r", print.to.stream, f_string_eol_s); - fl_print_format(" Both the Object and Content are separated by a space.%r%r", print.to.stream, f_string_eol_s, f_string_eol_s); + fl_print_format(" When specifying both the %[%r%r%]", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_basic_read_long_object_s, print.set->notable); + fl_print_format(" parameter and the %[%r%r%] parameter, the entire Object and Content are printed, including the formatting.%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_basic_read_long_content_s, print.set->notable, f_string_eol_s); + fl_print_format(" Both the Object and Content printed are already escaped.%r", print.to, f_string_eol_s); + fl_print_format(" Both the Object and Content are separated by a space.%r%r", print.to, f_string_eol_s, f_string_eol_s); - fl_print_format(" The parameter %[%r%r%] accepts the following:%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_basic_read_long_delimit_s, print.set->notable, f_string_eol_s); - fl_print_format(" - %[%r%]: Do not apply delimits.%r", print.to.stream, print.set->notable, fss_basic_read_delimit_mode_name_none_s, print.set->notable, f_string_eol_s); - fl_print_format(" - %[%r%]: (default) Apply all delimits.%r", print.to.stream, print.set->notable, fss_basic_read_delimit_mode_name_all_s, print.set->notable, f_string_eol_s); - fl_print_format(" - %[%r%]: Apply delimits for Objects.%r", print.to.stream, print.set->notable, fss_basic_read_delimit_mode_name_object_s, print.set->notable, f_string_eol_s); - fl_print_format(" - A number, 0 or greater: apply delimits for Content at the specified depth.%r", print.to.stream, f_string_eol_s); - fl_print_format(" - A number, 0 or greater, followed by a %[%r%]: (such as '1+') apply delimits for Content at the specified depth and any greater depth (numerically).%r", print.to.stream, print.set->notable, fss_basic_read_delimit_mode_name_greater_s, print.set->notable, f_string_eol_s, f_string_eol_s); - fl_print_format(" - A number, 0 or lesser, followed by a %[%r%]: (such as '1-') apply delimits for Content at the specified depth and any lesser depth (numerically).%r%r", print.to.stream, print.set->notable, fss_basic_read_delimit_mode_name_lesser_s, print.set->notable, f_string_eol_s, f_string_eol_s); + fl_print_format(" The parameter %[%r%r%] accepts the following:%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_basic_read_long_delimit_s, print.set->notable, f_string_eol_s); + fl_print_format(" - %[%r%]: Do not apply delimits.%r", print.to, print.set->notable, fss_basic_read_delimit_mode_name_none_s, print.set->notable, f_string_eol_s); + fl_print_format(" - %[%r%]: (default) Apply all delimits.%r", print.to, print.set->notable, fss_basic_read_delimit_mode_name_all_s, print.set->notable, f_string_eol_s); + fl_print_format(" - %[%r%]: Apply delimits for Objects.%r", print.to, print.set->notable, fss_basic_read_delimit_mode_name_object_s, print.set->notable, f_string_eol_s); + fl_print_format(" - A number, 0 or greater: apply delimits for Content at the specified depth.%r", print.to, f_string_eol_s); + fl_print_format(" - A number, 0 or greater, followed by a %[%r%]: (such as '1+') apply delimits for Content at the specified depth and any greater depth (numerically).%r", print.to, print.set->notable, fss_basic_read_delimit_mode_name_greater_s, print.set->notable, f_string_eol_s, f_string_eol_s); + fl_print_format(" - A number, 0 or lesser, followed by a %[%r%]: (such as '1-') apply delimits for Content at the specified depth and any lesser depth (numerically).%r%r", print.to, print.set->notable, fss_basic_read_delimit_mode_name_lesser_s, print.set->notable, f_string_eol_s, f_string_eol_s); - fl_print_format(" The %[%r%r%] parameter may be specified multiple times to customize the delimit behavior.%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_basic_read_long_delimit_s, print.set->notable, f_string_eol_s); + fl_print_format(" The %[%r%r%] parameter may be specified multiple times to customize the delimit behavior.%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_basic_read_long_delimit_s, print.set->notable, f_string_eol_s); - fl_print_format(" The %[%r%r%]", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_basic_read_long_delimit_s, print.set->notable); - fl_print_format(" values %[%r%]", print.to.stream, print.set->notable, fss_basic_read_delimit_mode_name_none_s, print.set->notable); - fl_print_format(" and %[%r%],", print.to.stream, print.set->notable, fss_basic_read_delimit_mode_name_all_s, print.set->notable); - fl_print_format(" overrule all other delimit values.%r%r", print.to.stream, f_string_eol_s, f_string_eol_s); + fl_print_format(" The %[%r%r%]", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_basic_read_long_delimit_s, print.set->notable); + fl_print_format(" values %[%r%]", print.to, print.set->notable, fss_basic_read_delimit_mode_name_none_s, print.set->notable); + fl_print_format(" and %[%r%],", print.to, print.set->notable, fss_basic_read_delimit_mode_name_all_s, print.set->notable); + fl_print_format(" overrule all other delimit values.%r%r", print.to, f_string_eol_s, f_string_eol_s); - fl_print_format(" The parameters %[%r%r%]", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_basic_read_long_columns_s, print.set->notable); - fl_print_format(" and %[%r%r%]", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_basic_read_long_select_s, print.set->notable); - fl_print_format(" refer to a Content column.%r", print.to.stream, f_string_eol_s); - fl_print_format(" The word \"column\" is being loosely defined to refer to a specific Content.%r", print.to.stream, f_string_eol_s); - fl_print_format(" This is not to be confused with a depth.%r", print.to.stream, f_string_eol_s); + fl_print_format(" The parameters %[%r%r%]", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_basic_read_long_columns_s, print.set->notable); + fl_print_format(" and %[%r%r%]", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_basic_read_long_select_s, print.set->notable); + fl_print_format(" refer to a Content column.%r", print.to, f_string_eol_s); + fl_print_format(" The word \"column\" is being loosely defined to refer to a specific Content.%r", print.to, f_string_eol_s); + fl_print_format(" This is not to be confused with a depth.%r", print.to, f_string_eol_s); - f_print_dynamic_raw(setting->line_last, print.to.stream); + f_print_dynamic_raw(setting->line_last, print.to); f_file_stream_flush(print.to); f_file_stream_unlock(print.to); @@ -124,7 +124,7 @@ extern "C" { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; } - f_print_dynamic_raw(setting->line_first, print.to.stream); + f_print_dynamic_raw(setting->line_first, print.to); return F_none; } @@ -139,7 +139,7 @@ extern "C" { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; } - fll_print_dynamic_raw(setting->line_first, print.to.stream); + fll_print_dynamic_raw(setting->line_first, print.to); return F_none; } @@ -154,7 +154,7 @@ extern "C" { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; } - fll_print_dynamic_raw(setting->line_last, print.to.stream); + fll_print_dynamic_raw(setting->line_last, print.to); return F_none; } @@ -169,7 +169,7 @@ extern "C" { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; } - f_print_dynamic_raw(setting->line_last, print.to.stream); + f_print_dynamic_raw(setting->line_last, print.to); return F_none; } diff --git a/level_3/fss_basic_read/c/private-print.c b/level_3/fss_basic_read/c/private-print.c index 56cac0d..edcb186 100644 --- a/level_3/fss_basic_read/c/private-print.c +++ b/level_3/fss_basic_read/c/private-print.c @@ -20,33 +20,33 @@ extern "C" { if (data->option & fss_basic_read_data_option_trim_d) { if (data->option & fss_basic_read_data_option_original_d) { if (data->quotes.array[at]) { - f_print_dynamic_raw(data->quotes.array[at] == f_fss_quote_type_single_e ? f_fss_quote_single_s : f_fss_quote_double_s, main->output.to.stream); + f_print_dynamic_raw(data->quotes.array[at] == f_fss_quote_type_single_e ? f_fss_quote_single_s : f_fss_quote_double_s, main->output.to); } - fl_print_trim_dynamic_partial(data->buffer, data->objects.array[at], main->output.to.stream); + fl_print_trim_dynamic_partial(data->buffer, data->objects.array[at], main->output.to); if (data->quotes.array[at]) { - f_print_dynamic_raw(data->quotes.array[at] == f_fss_quote_type_single_e ? f_fss_quote_single_s : f_fss_quote_double_s, main->output.to.stream); + f_print_dynamic_raw(data->quotes.array[at] == f_fss_quote_type_single_e ? f_fss_quote_single_s : f_fss_quote_double_s, main->output.to); } } else { - fl_print_trim_except_dynamic_partial(data->buffer, data->objects.array[at], delimits_object, main->output.to.stream); + fl_print_trim_except_dynamic_partial(data->buffer, data->objects.array[at], delimits_object, main->output.to); } } else { if (data->option & fss_basic_read_data_option_original_d) { if (data->quotes.array[at]) { - f_print_dynamic_raw(data->quotes.array[at] == f_fss_quote_type_single_e ? f_fss_quote_single_s : f_fss_quote_double_s, main->output.to.stream); + f_print_dynamic_raw(data->quotes.array[at] == f_fss_quote_type_single_e ? f_fss_quote_single_s : f_fss_quote_double_s, main->output.to); } - f_print_dynamic_partial(data->buffer, data->objects.array[at], main->output.to.stream); + f_print_dynamic_partial(data->buffer, data->objects.array[at], main->output.to); if (data->quotes.array[at]) { - f_print_dynamic_raw(data->quotes.array[at] == f_fss_quote_type_single_e ? f_fss_quote_single_s : f_fss_quote_double_s, main->output.to.stream); + f_print_dynamic_raw(data->quotes.array[at] == f_fss_quote_type_single_e ? f_fss_quote_single_s : f_fss_quote_double_s, main->output.to); } } else { - f_print_except_dynamic_partial(data->buffer, data->objects.array[at], delimits_object, main->output.to.stream); + f_print_except_dynamic_partial(data->buffer, data->objects.array[at], delimits_object, main->output.to); } } @@ -57,10 +57,10 @@ extern "C" { if ((data->option & fss_basic_read_data_option_content_d) && data->contents.array[at].used) { if (data->option & fss_basic_read_data_option_original_d) { - f_print_dynamic_partial(data->buffer, data->contents.array[at].array[0], main->output.to.stream); + f_print_dynamic_partial(data->buffer, data->contents.array[at].array[0], main->output.to); } else { - f_print_except_dynamic_partial(data->buffer, data->contents.array[at].array[0], delimits_content, main->output.to.stream); + f_print_except_dynamic_partial(data->buffer, data->contents.array[at].array[0], delimits_content, main->output.to); } } @@ -75,10 +75,10 @@ extern "C" { void fss_basic_read_print_object_end(fll_program_data_t * const main) { if (main->parameters.array[fss_basic_read_parameter_pipe_e].result == f_console_result_found_e) { - f_print_dynamic_raw(fss_basic_read_pipe_content_start_s, main->output.to.stream); + f_print_dynamic_raw(fss_basic_read_pipe_content_start_s, main->output.to); } else { - f_print_dynamic_raw(f_fss_space_s, main->output.to.stream); + f_print_dynamic_raw(f_fss_space_s, main->output.to); } } #endif // _di_fss_basic_read_print_object_end_ @@ -86,8 +86,8 @@ extern "C" { #ifndef _di_fss_basic_read_print_one_ void fss_basic_read_print_one(fll_program_data_t * const main) { - f_print_dynamic_raw(f_string_ascii_1_s, main->output.to.stream); - f_print_dynamic_raw(f_string_eol_s, main->output.to.stream); + f_print_dynamic_raw(f_string_ascii_1_s, main->output.to); + f_print_dynamic_raw(f_string_eol_s, main->output.to); } #endif // _di_fss_basic_read_print_one_ @@ -95,10 +95,10 @@ extern "C" { void fss_basic_read_print_set_end(fll_program_data_t * const main) { if (main->parameters.array[fss_basic_read_parameter_pipe_e].result == f_console_result_found_e) { - f_print_dynamic_raw(fss_basic_read_pipe_content_end_s, main->output.to.stream); + f_print_dynamic_raw(fss_basic_read_pipe_content_end_s, main->output.to); } else { - f_print_dynamic_raw(f_string_eol_s, main->output.to.stream); + f_print_dynamic_raw(f_string_eol_s, main->output.to); } } #endif // _di_fss_basic_read_print_set_end_ @@ -106,8 +106,8 @@ extern "C" { #ifndef _di_fss_basic_read_print_zero_ void fss_basic_read_print_zero(fll_program_data_t * const main) { - f_print_dynamic_raw(f_string_ascii_0_s, main->output.to.stream); - f_print_dynamic_raw(f_string_eol_s, main->output.to.stream); + f_print_dynamic_raw(f_string_ascii_0_s, main->output.to); + f_print_dynamic_raw(f_string_eol_s, main->output.to); } #endif // _di_fss_basic_read_print_zero_ diff --git a/level_3/fss_basic_read/c/private-read.c b/level_3/fss_basic_read/c/private-read.c index f3fd7fe..5ff88ce 100644 --- a/level_3/fss_basic_read/c/private-read.c +++ b/level_3/fss_basic_read/c/private-read.c @@ -165,11 +165,11 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe value '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%ul%]", main->error.to.stream, main->error.notable, data->depths.array[i].depth, main->error.notable); - fl_print_format("%[' may only be specified once for the parameter '%]", main->error.to.stream, main->error.context, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_basic_read_long_depth_s, main->error.notable); - fl_print_format("%['.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe value '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%ul%]", main->error.to, main->error.notable, data->depths.array[i].depth, main->error.notable); + fl_print_format("%[' may only be specified once for the parameter '%]", main->error.to, main->error.context, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_basic_read_long_depth_s, main->error.notable); + fl_print_format("%['.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -181,13 +181,13 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_basic_read_long_depth_s, main->error.notable); - fl_print_format("%[' may not have the value '%]", main->error.to.stream, main->error.context, main->error.context); - fl_print_format("%[%ul%]", main->error.to.stream, main->error.notable, data->depths.array[i].depth, main->error.notable); - fl_print_format("%[' before the value '%]", main->error.to.stream, main->error.context, main->error.context); - fl_print_format("%[%ul%]", main->error.to.stream, main->error.notable, data->depths.array[j].depth, main->error.notable); - fl_print_format("%['.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_basic_read_long_depth_s, main->error.notable); + fl_print_format("%[' may not have the value '%]", main->error.to, main->error.context, main->error.context); + fl_print_format("%[%ul%]", main->error.to, main->error.notable, data->depths.array[i].depth, main->error.notable); + fl_print_format("%[' before the value '%]", main->error.to, main->error.context, main->error.context); + fl_print_format("%[%ul%]", main->error.to, main->error.notable, data->depths.array[j].depth, main->error.notable); + fl_print_format("%['.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -404,7 +404,7 @@ extern "C" { } } else if (data->option & fss_basic_read_data_option_columns_d) { - fll_print_format("%ul%r", main->output.to.stream, data->contents.array[i].used, f_string_eol_s); + fll_print_format("%ul%r", main->output.to, data->contents.array[i].used, f_string_eol_s); } else if (data->option & fss_basic_read_data_option_total_d) { flockfile(main->output.to.stream); @@ -474,7 +474,7 @@ extern "C" { } } // for - fll_print_format("%ul%r", main->output.to.stream, max, f_string_eol_s); + fll_print_format("%ul%r", main->output.to, max, f_string_eol_s); return F_none; } @@ -673,7 +673,7 @@ extern "C" { } } else { - fl_print_format("%ul%r", main->output.to.stream, total, f_string_eol_s); + fl_print_format("%ul%r", main->output.to, total, f_string_eol_s); } funlockfile(main->output.to.stream); diff --git a/level_3/fss_basic_write/c/fss_basic_write.c b/level_3/fss_basic_write/c/fss_basic_write.c index e3cfc5b..44397a1 100644 --- a/level_3/fss_basic_write/c/fss_basic_write.c +++ b/level_3/fss_basic_write/c/fss_basic_write.c @@ -82,9 +82,9 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_basic_write_long_file_s, main->error.notable); - fl_print_format("%[' may only be specified once.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_basic_write_long_file_s, main->error.notable); + fl_print_format("%[' may only be specified once.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -129,13 +129,13 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_basic_write_long_partial_s, main->error.notable); - fl_print_format("%[' parameter only allows either the '%]", main->error.to.stream, main->error.context, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_basic_write_long_object_s, main->error.notable); - fl_print_format("%[' parameter or the '%]", main->error.to.stream, main->error.context, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_basic_write_long_content_s, main->error.notable); - fl_print_format("%[' parameter, but not both.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_basic_write_long_partial_s, main->error.notable); + fl_print_format("%[' parameter only allows either the '%]", main->error.to, main->error.context, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_basic_write_long_object_s, main->error.notable); + fl_print_format("%[' parameter or the '%]", main->error.to, main->error.context, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_basic_write_long_content_s, main->error.notable); + fl_print_format("%[' parameter, but not both.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -161,11 +161,11 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QEach '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_basic_write_long_object_s, main->error.notable); - fl_print_format("%[' parameter must be specified before a '%]", main->error.to.stream, main->error.context, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_basic_write_long_content_s, main->error.notable); - fl_print_format("%[' parameter.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QEach '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_basic_write_long_object_s, main->error.notable); + fl_print_format("%[' parameter must be specified before a '%]", main->error.to, main->error.context, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_basic_write_long_content_s, main->error.notable); + fl_print_format("%[' parameter.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -193,11 +193,11 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThis requires either piped data or the use of the '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_basic_write_long_object_s, main->error.notable); - fl_print_format("%[' parameter with the '%]", main->error.to.stream, main->error.context, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_basic_write_long_content_s, main->error.notable); - fl_print_format("%[' parameter.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThis requires either piped data or the use of the '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_basic_write_long_object_s, main->error.notable); + fl_print_format("%[' parameter with the '%]", main->error.to, main->error.context, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_basic_write_long_content_s, main->error.notable); + fl_print_format("%[' parameter.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -210,9 +210,9 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThis '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_basic_write_long_partial_s, main->error.notable); - fl_print_format("%[' parameter cannot be used when processing a pipe.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThis '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_basic_write_long_partial_s, main->error.notable); + fl_print_format("%[' parameter cannot be used when processing a pipe.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -227,9 +227,9 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_basic_write_long_prepend_s, main->error.notable); - fl_print_format("%[' is specified, but no value is given.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_basic_write_long_prepend_s, main->error.notable); + fl_print_format("%[' is specified, but no value is given.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -253,9 +253,9 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe value for the parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_basic_write_long_prepend_s, main->error.notable); - fl_print_format("%[' must only contain white space.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe value for the parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_basic_write_long_prepend_s, main->error.notable); + fl_print_format("%[' must only contain white space.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -270,9 +270,9 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe value for the parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_basic_write_long_prepend_s, main->error.notable); - fl_print_format("%[' must not be an empty string.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe value for the parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_basic_write_long_prepend_s, main->error.notable); + fl_print_format("%[' must not be an empty string.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -287,9 +287,9 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_basic_write_long_ignore_s, main->error.notable); - fl_print_format("%[' was specified, but no values were given.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_basic_write_long_ignore_s, main->error.notable); + fl_print_format("%[' was specified, but no values were given.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -303,9 +303,9 @@ extern "C" { if (total_locations * 2 > total_arguments) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_basic_write_long_ignore_s, main->error.notable); - fl_print_format("%[' requires two values.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_basic_write_long_ignore_s, main->error.notable); + fl_print_format("%[' requires two values.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); @@ -339,8 +339,8 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QWhile processing the '%]%[input pipe%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context, main->error.notable, main->error.notable); - fl_print_format("%['.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QWhile processing the '%]%[input pipe%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context, main->error.notable, main->error.notable); + fl_print_format("%['.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -412,8 +412,8 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QWhile processing the '%]%[input arguments%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context, main->error.notable, main->error.notable); - fl_print_format("%['.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QWhile processing the '%]%[input arguments%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context, main->error.notable, main->error.notable); + fl_print_format("%['.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -421,7 +421,7 @@ extern "C" { else if (main->error.verbosity > f_console_verbosity_quiet_e && main->error.verbosity != f_console_verbosity_error_e && main->parameters.array[fss_basic_write_parameter_file_e].result == f_console_result_none_e) { // Ensure there is always a newline at the end, unless in quiet mode. - fll_print_dynamic_raw(f_string_eol_s, main->output.to.stream); + fll_print_dynamic_raw(f_string_eol_s, main->output.to); } } } @@ -434,7 +434,7 @@ extern "C" { // Ensure a newline is always put at the end of the program execution, unless in quiet mode. if (main->error.verbosity > f_console_verbosity_quiet_e) { if (F_status_is_error(status)) { - fll_print_dynamic_raw(f_string_eol_s, main->error.to.stream); + fll_print_dynamic_raw(f_string_eol_s, main->error.to); } } diff --git a/level_3/fss_basic_write/c/print.c b/level_3/fss_basic_write/c/print.c index d5f167f..d60f04d 100644 --- a/level_3/fss_basic_write/c/print.c +++ b/level_3/fss_basic_write/c/print.c @@ -10,13 +10,13 @@ extern "C" { f_file_stream_lock(print.to); - f_print_dynamic_raw(setting->line_first, print.to.stream); + f_print_dynamic_raw(setting->line_first, print.to); fll_program_print_help_header(print, fss_basic_write_program_name_long_s, fss_basic_write_program_version_s); fll_program_print_help_option_standard(print); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); + f_print_dynamic_raw(f_string_eol_s, print.to); fll_program_print_help_option(print, fss_basic_write_short_file_s, fss_basic_write_long_file_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Specify a file to send data to."); fll_program_print_help_option(print, fss_basic_write_short_content_s, fss_basic_write_long_content_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, "The Content to write."); @@ -28,25 +28,25 @@ extern "C" { fll_program_print_help_option(print, fss_basic_write_short_single_s, fss_basic_write_long_single_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Use single quotes."); fll_program_print_help_option(print, fss_basic_write_short_trim_s, fss_basic_write_long_trim_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Trim Object names."); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); + f_print_dynamic_raw(f_string_eol_s, print.to); + f_print_dynamic_raw(f_string_eol_s, print.to); fll_program_print_help_usage(print, fss_basic_write_program_name_s, f_string_empty_s); - fl_print_format("%r The pipe uses the Backspace character '%[\\b%]' (%[U+0008%]) to designate the start of a Content.%r", print.to.stream, f_string_eol_s, print.set->notable, print.set->notable, print.set->notable, print.set->notable, f_string_eol_s); - fl_print_format(" The pipe uses the Form Feed character '%[\\f%]' (%[U+000C%]) to designate the end of the last Content.%r", print.to.stream, print.set->notable, print.set->notable, print.set->notable, print.set->notable, f_string_eol_s); - fl_print_format(" The pipe uses the Vertical Line character '%[\\v%]' (%[U+000B%]) is used to ignore a Content range, which does nothing in this program.%r", print.to.stream, print.set->notable, print.set->notable, print.set->notable, print.set->notable, f_string_eol_s); - fl_print_format(" For the pipe, an Object is terminated by either a Backspace character '%[\\b%]' (%[U+0008%])", print.to.stream, print.set->notable, print.set->notable, print.set->notable, print.set->notable); - fl_print_format(" or a Form Feed character '%[\\f%]' (%[U+000C%]).%r", print.to.stream, print.set->notable, print.set->notable, print.set->notable, print.set->notable, f_string_eol_s); - fl_print_format(" The end of the pipe represents the end of any Object or Content.%r%r", print.to.stream, f_string_eol_s, f_string_eol_s); + fl_print_format("%r The pipe uses the Backspace character '%[\\b%]' (%[U+0008%]) to designate the start of a Content.%r", print.to, f_string_eol_s, print.set->notable, print.set->notable, print.set->notable, print.set->notable, f_string_eol_s); + fl_print_format(" The pipe uses the Form Feed character '%[\\f%]' (%[U+000C%]) to designate the end of the last Content.%r", print.to, print.set->notable, print.set->notable, print.set->notable, print.set->notable, f_string_eol_s); + fl_print_format(" The pipe uses the Vertical Line character '%[\\v%]' (%[U+000B%]) is used to ignore a Content range, which does nothing in this program.%r", print.to, print.set->notable, print.set->notable, print.set->notable, print.set->notable, f_string_eol_s); + fl_print_format(" For the pipe, an Object is terminated by either a Backspace character '%[\\b%]' (%[U+0008%])", print.to, print.set->notable, print.set->notable, print.set->notable, print.set->notable); + fl_print_format(" or a Form Feed character '%[\\f%]' (%[U+000C%]).%r", print.to, print.set->notable, print.set->notable, print.set->notable, print.set->notable, f_string_eol_s); + fl_print_format(" The end of the pipe represents the end of any Object or Content.%r%r", print.to, f_string_eol_s, f_string_eol_s); - fl_print_format(" The FSS-0000 (Basic) specification does not support multi-line Content, therefore the parameter '%[%r%r%]'", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_basic_write_long_prepend_s, print.set->notable); - fl_print_format(" does nothing.%r%r", print.to.stream, f_string_eol_s, f_string_eol_s); + fl_print_format(" The FSS-0000 (Basic) specification does not support multi-line Content, therefore the parameter '%[%r%r%]'", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_basic_write_long_prepend_s, print.set->notable); + fl_print_format(" does nothing.%r%r", print.to, f_string_eol_s, f_string_eol_s); - fl_print_format(" This program does not use the parameter '%[%r%r%]', which therefore does nothing.%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_basic_write_long_ignore_s, print.set->notable, f_string_eol_s); - fl_print_format(" This parameter requires two values.%r", print.to.stream, f_string_eol_s); + fl_print_format(" This program does not use the parameter '%[%r%r%]', which therefore does nothing.%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_basic_write_long_ignore_s, print.set->notable, f_string_eol_s); + fl_print_format(" This parameter requires two values.%r", print.to, f_string_eol_s); - f_print_dynamic_raw(setting->line_last, print.to.stream); + f_print_dynamic_raw(setting->line_last, print.to); f_file_stream_flush(print.to); f_file_stream_unlock(print.to); @@ -64,7 +64,7 @@ extern "C" { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; } - f_print_dynamic_raw(setting->line_first, print.to.stream); + f_print_dynamic_raw(setting->line_first, print.to); return F_none; } @@ -79,7 +79,7 @@ extern "C" { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; } - fll_print_dynamic_raw(setting->line_first, print.to.stream); + fll_print_dynamic_raw(setting->line_first, print.to); return F_none; } @@ -94,7 +94,7 @@ extern "C" { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; } - fll_print_dynamic_raw(setting->line_last, print.to.stream); + fll_print_dynamic_raw(setting->line_last, print.to); return F_none; } @@ -109,7 +109,7 @@ extern "C" { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; } - f_print_dynamic_raw(setting->line_last, print.to.stream); + f_print_dynamic_raw(setting->line_last, print.to); return F_none; } diff --git a/level_3/fss_basic_write/c/private-write.c b/level_3/fss_basic_write/c/private-write.c index 2356ce3..1915650 100644 --- a/level_3/fss_basic_write/c/private-write.c +++ b/level_3/fss_basic_write/c/private-write.c @@ -13,13 +13,13 @@ extern "C" { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QMust specify the '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_basic_write_long_object_s, main->error.notable); - fl_print_format("%[' parameter and the '%]", main->error.to.stream, main->error.context, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_basic_write_long_content_s, main->error.notable); - fl_print_format("%[' parameter the same number of times when not specifying the '%]", main->error.to.stream, main->error.context, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_basic_write_long_partial_s, main->error.notable); - fl_print_format("%[' parameter.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QMust specify the '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_basic_write_long_object_s, main->error.notable); + fl_print_format("%[' parameter and the '%]", main->error.to, main->error.context, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_basic_write_long_content_s, main->error.notable); + fl_print_format("%[' parameter the same number of times when not specifying the '%]", main->error.to, main->error.context, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_basic_write_long_partial_s, main->error.notable); + fl_print_format("%[' parameter.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -32,9 +32,9 @@ extern "C" { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, symbol, parameter, main->error.notable); - fl_print_format("%[' is specified, but no value is given.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, symbol, parameter, main->error.notable); + fl_print_format("%[' is specified, but no value is given.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -47,11 +47,11 @@ extern "C" { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe FSS-0000 (Basic) standard does not support end of line character '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[\\n%]", main->error.to.stream, main->error.notable, main->error.notable); - fl_print_format("%[' (%]", main->error.to.stream, main->error.context, main->error.context); - fl_print_format("%[U+000A%]", main->error.to.stream, main->error.notable, main->error.notable); - fl_print_format("%[) in objects.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe FSS-0000 (Basic) standard does not support end of line character '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[\\n%]", main->error.to, main->error.notable, main->error.notable); + fl_print_format("%[' (%]", main->error.to, main->error.context, main->error.context); + fl_print_format("%[U+000A%]", main->error.to, main->error.notable, main->error.notable); + fl_print_format("%[) in objects.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -135,7 +135,7 @@ extern "C" { } } - fll_print_dynamic(*buffer, output.stream); + fll_print_dynamic(*buffer, output); buffer->used = 0; @@ -270,7 +270,7 @@ extern "C" { if (block.string[range.start] == fss_basic_write_pipe_content_start_s.string[0]) { if (main->error.verbosity > f_console_verbosity_quiet_e) { - fll_print_format("%r%[%QThe FSS-0000 (Basic) standard only supports one content per object.%]%r", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context, f_string_eol_s); + fll_print_format("%r%[%QThe FSS-0000 (Basic) standard only supports one content per object.%]%r", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context, f_string_eol_s); } status = F_status_set_error(F_supported_not); diff --git a/level_3/fss_embedded_list_read/c/fss_embedded_list_read.c b/level_3/fss_embedded_list_read/c/fss_embedded_list_read.c index 8cd2256..b170ba0 100644 --- a/level_3/fss_embedded_list_read/c/fss_embedded_list_read.c +++ b/level_3/fss_embedded_list_read/c/fss_embedded_list_read.c @@ -91,9 +91,9 @@ extern "C" { if (main->parameters.array[fss_embedded_list_read_parameter_at_e].result == f_console_result_found_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_at_s, main->error.notable); - fl_print_format("%[' requires a positive number.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_at_s, main->error.notable); + fl_print_format("%[' requires a positive number.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); @@ -103,9 +103,9 @@ extern "C" { if (F_status_is_error_not(status) && main->parameters.array[fss_embedded_list_read_parameter_depth_e].result == f_console_result_found_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_depth_s, main->error.notable); - fl_print_format("%[' requires a positive number.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_depth_s, main->error.notable); + fl_print_format("%[' requires a positive number.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); @@ -115,9 +115,9 @@ extern "C" { if (F_status_is_error_not(status) && main->parameters.array[fss_embedded_list_read_parameter_line_e].result == f_console_result_additional_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_line_s, main->error.notable); - fl_print_format("%[' requires a positive number.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_line_s, main->error.notable); + fl_print_format("%[' requires a positive number.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); @@ -127,9 +127,9 @@ extern "C" { if (F_status_is_error_not(status) && main->parameters.array[fss_embedded_list_read_parameter_name_e].result == f_console_result_found_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_name_s, main->error.notable); - fl_print_format("%[' requires a string.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_name_s, main->error.notable); + fl_print_format("%[' requires a string.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); @@ -139,9 +139,9 @@ extern "C" { if (F_status_is_error_not(status) && main->parameters.array[fss_embedded_list_read_parameter_select_e].result == f_console_result_found_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_select_s, main->error.notable); - fl_print_format("%[' requires a positive number.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_select_s, main->error.notable); + fl_print_format("%[' requires a positive number.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); @@ -172,9 +172,9 @@ extern "C" { if (main->parameters.array[fss_embedded_list_read_parameter_delimit_e].result == f_console_result_found_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_delimit_s, main->error.notable); - fl_print_format("%[' requires a value.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_delimit_s, main->error.notable); + fl_print_format("%[' requires a value.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); @@ -187,9 +187,9 @@ extern "C" { if (!length) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe value for the parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_delimit_s, main->error.notable); - fl_print_format("%[' must not be empty.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe value for the parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_delimit_s, main->error.notable); + fl_print_format("%[' must not be empty.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); @@ -250,9 +250,9 @@ extern "C" { if (F_status_is_error_not(status) && main->parameters.array[fss_embedded_list_read_parameter_select_e].result == f_console_result_found_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_select_s, main->error.notable); - fl_print_format("%[' parameter requires a positive number.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_select_s, main->error.notable); + fl_print_format("%[' parameter requires a positive number.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); @@ -329,7 +329,7 @@ extern "C" { // Skip past empty files. if (!size_file) { if (main->parameters.array[fss_embedded_list_read_parameter_total_e].result == f_console_result_found_e) { - fll_print_format("%r%r", main->output.to.stream, f_string_ascii_0_s, f_string_eol_s); + fll_print_format("%r%r", main->output.to, f_string_ascii_0_s, f_string_eol_s); } f_file_stream_flush(file); @@ -411,7 +411,7 @@ extern "C" { f_string_ranges_resize(0, &comments); } else { - fll_print_format("%r%[%QYou failed to specify one or more files.%]%r", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context, f_string_eol_s); + fll_print_format("%r%[%QYou failed to specify one or more files.%]%r", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context, f_string_eol_s); status = F_status_set_error(F_parameter); } @@ -419,7 +419,7 @@ extern "C" { if (F_status_set_fine(status) == F_interrupt) { f_file_stream_flush(main->output.to); - fll_print_dynamic_raw(f_string_eol_s, main->output.to.stream); + fll_print_dynamic_raw(f_string_eol_s, main->output.to); } } diff --git a/level_3/fss_embedded_list_read/c/print.c b/level_3/fss_embedded_list_read/c/print.c index cbbdfed..6bb9648 100644 --- a/level_3/fss_embedded_list_read/c/print.c +++ b/level_3/fss_embedded_list_read/c/print.c @@ -10,13 +10,13 @@ extern "C" { f_file_stream_lock(print.to); - f_print_dynamic_raw(setting->line_first, print.to.stream); + f_print_dynamic_raw(setting->line_first, print.to); fll_program_print_help_header(print, fss_embedded_list_read_program_name_long_s, fss_embedded_list_read_program_version_s); fll_program_print_help_option_standard(print); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); + f_print_dynamic_raw(f_string_eol_s, print.to); fll_program_print_help_option(print, fss_embedded_list_read_short_at_s, fss_embedded_list_read_long_at_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Select Object at this numeric index."); fll_program_print_help_option(print, fss_embedded_list_read_short_content_s, fss_embedded_list_read_long_content_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Print the Content (default)."); @@ -33,79 +33,79 @@ extern "C" { fll_program_print_help_option(print, fss_embedded_list_read_short_total_s, fss_embedded_list_read_long_total_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Print the total number of lines."); fll_program_print_help_option(print, fss_embedded_list_read_short_trim_s, fss_embedded_list_read_long_trim_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Trim Object names on select or print."); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); + f_print_dynamic_raw(f_string_eol_s, print.to); + f_print_dynamic_raw(f_string_eol_s, print.to); fll_program_print_help_usage(print, fss_embedded_list_read_program_name_s, fll_program_parameter_filenames_s); - fl_print_format("%r %[Notes:%]%r", print.to.stream, f_string_eol_s, print.set->important, print.set->important, f_string_eol_s); + fl_print_format("%r %[Notes:%]%r", print.to, f_string_eol_s, print.set->important, print.set->important, f_string_eol_s); - fl_print_format(" This program will print the Content associated with the given Object and Content main based on the FSS-0008 Embedded List standard.%r%r", print.to.stream, f_string_eol_s, f_string_eol_s); + fl_print_format(" This program will print the Content associated with the given Object and Content main based on the FSS-0008 Embedded List standard.%r%r", print.to, f_string_eol_s, f_string_eol_s); - fl_print_format(" All numeric positions (indexes) start at 0 instead of 1.%r", print.to.stream, f_string_eol_s); - fl_print_format(" For example, a file of 17 lines would range from 0 to 16.%r%r", print.to.stream, f_string_eol_s, f_string_eol_s); + fl_print_format(" All numeric positions (indexes) start at 0 instead of 1.%r", print.to, f_string_eol_s); + fl_print_format(" For example, a file of 17 lines would range from 0 to 16.%r%r", print.to, f_string_eol_s, f_string_eol_s); - fl_print_format(" When using the %[%r%r%] option, an order of operations is enforced on the parameters.%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_depth_s, print.set->notable, f_string_eol_s); + fl_print_format(" When using the %[%r%r%] option, an order of operations is enforced on the parameters.%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_depth_s, print.set->notable, f_string_eol_s); - fl_print_format(" When this order of operations is in effect, parameters to the right of a depth parameter are influenced by that depth parameter:%r", print.to.stream, f_string_eol_s); + fl_print_format(" When this order of operations is in effect, parameters to the right of a depth parameter are influenced by that depth parameter:%r", print.to, f_string_eol_s); - fl_print_format(" %[%r%r%]: An Object index at the specified depth.%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_at_s, print.set->notable, f_string_eol_s); - fl_print_format(" %[%r%r%]: A new depth within the specified depth, indexed from the root.%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_depth_s, print.set->notable, f_string_eol_s); - fl_print_format(" %[%r%r%]: An Object name at the specified depth.%r%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_name_s, print.set->notable, f_string_eol_s, f_string_eol_s); + fl_print_format(" %[%r%r%]: An Object index at the specified depth.%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_at_s, print.set->notable, f_string_eol_s); + fl_print_format(" %[%r%r%]: A new depth within the specified depth, indexed from the root.%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_depth_s, print.set->notable, f_string_eol_s); + fl_print_format(" %[%r%r%]: An Object name at the specified depth.%r%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_name_s, print.set->notable, f_string_eol_s, f_string_eol_s); - fl_print_format(" The parameter %[%r%r%] must be in numeric order, but values in between may be skipped.%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_depth_s, print.set->notable, f_string_eol_s); - fl_print_format(" ('-d 0 -a 1 -d 2 -a 2' would specify index 1 at depth 0, any index at depth 1, and index 2 at depth 2.)%r", print.to.stream, f_string_eol_s); - fl_print_format(" ('-d 2 -a 1 -d 0 -a 2' would be invalid because depth 2 is before depth 1.)%r%r", print.to.stream, f_string_eol_s, f_string_eol_s); + fl_print_format(" The parameter %[%r%r%] must be in numeric order, but values in between may be skipped.%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_depth_s, print.set->notable, f_string_eol_s); + fl_print_format(" ('-d 0 -a 1 -d 2 -a 2' would specify index 1 at depth 0, any index at depth 1, and index 2 at depth 2.)%r", print.to, f_string_eol_s); + fl_print_format(" ('-d 2 -a 1 -d 0 -a 2' would be invalid because depth 2 is before depth 1.)%r%r", print.to, f_string_eol_s, f_string_eol_s); - fl_print_format(" The parameter %[%r%r%] selects a Content column.%r%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_select_s, print.set->notable, f_string_eol_s, f_string_eol_s); + fl_print_format(" The parameter %[%r%r%] selects a Content column.%r%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_select_s, print.set->notable, f_string_eol_s, f_string_eol_s); - fl_print_format(" Specify both %[%r%r%]", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_object_s, print.set->notable); - fl_print_format(" and the %[%r%r%] parameters to get the total objects.%r%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_total_s, print.set->notable, f_string_eol_s, f_string_eol_s); + fl_print_format(" Specify both %[%r%r%]", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_object_s, print.set->notable); + fl_print_format(" and the %[%r%r%] parameters to get the total objects.%r%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_total_s, print.set->notable, f_string_eol_s, f_string_eol_s); - fl_print_format(" When both %[%r%r%]", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_at_s, print.set->notable); - fl_print_format(" and %[%r%r%] parameters are specified (at the same depth),", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_name_s, print.set->notable); - fl_print_format(" the %[%r%r%] parameter value will be treated as a position relative to the specified", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_at_s, print.set->notable); - fl_print_format(" %[%r%r%] parameter value.%r%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_name_s, print.set->notable, f_string_eol_s, f_string_eol_s); + fl_print_format(" When both %[%r%r%]", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_at_s, print.set->notable); + fl_print_format(" and %[%r%r%] parameters are specified (at the same depth),", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_name_s, print.set->notable); + fl_print_format(" the %[%r%r%] parameter value will be treated as a position relative to the specified", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_at_s, print.set->notable); + fl_print_format(" %[%r%r%] parameter value.%r%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_name_s, print.set->notable, f_string_eol_s, f_string_eol_s); - fl_print_format(" This program may support parameters, such as %[%r%r%]", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_depth_s, print.set->notable); - fl_print_format(" or %[%r%r%], even if not supported by the standard.%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_select_s, print.set->notable, f_string_eol_s); - fl_print_format(" This is done to help ensure consistency for scripting.%r%r", print.to.stream, f_string_eol_s, f_string_eol_s); + fl_print_format(" This program may support parameters, such as %[%r%r%]", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_depth_s, print.set->notable); + fl_print_format(" or %[%r%r%], even if not supported by the standard.%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_select_s, print.set->notable, f_string_eol_s); + fl_print_format(" This is done to help ensure consistency for scripting.%r%r", print.to, f_string_eol_s, f_string_eol_s); - fl_print_format(" For parameters like %[%r%r%],", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_depth_s, print.set->notable); - fl_print_format(" if the standard doesn't support nested Content, then only a depth of 0 would be valid.%r", print.to.stream, f_string_eol_s); + fl_print_format(" For parameters like %[%r%r%],", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_depth_s, print.set->notable); + fl_print_format(" if the standard doesn't support nested Content, then only a depth of 0 would be valid.%r", print.to, f_string_eol_s); - fl_print_format(" For parameters like %[%r%r%],", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_select_s, print.set->notable); - fl_print_format(" if the standard doesn't support multiple Content groups, then only a select of 0 would be valid.%r%r", print.to.stream, f_string_eol_s, f_string_eol_s); + fl_print_format(" For parameters like %[%r%r%],", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_select_s, print.set->notable); + fl_print_format(" if the standard doesn't support multiple Content groups, then only a select of 0 would be valid.%r%r", print.to, f_string_eol_s, f_string_eol_s); - fl_print_format(" The parameter %[%r%r%]", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_trim_s, print.set->notable); - fl_print_format(" will remove leading and trailing white spaces when selecting objects or when printing objects.%r%r", print.to.stream, f_string_eol_s, f_string_eol_s); + fl_print_format(" The parameter %[%r%r%]", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_trim_s, print.set->notable); + fl_print_format(" will remove leading and trailing white spaces when selecting objects or when printing objects.%r%r", print.to, f_string_eol_s, f_string_eol_s); - fl_print_format(" When specifying both the %[%r%r%]", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_object_s, print.set->notable); - fl_print_format(" parameter and the %[%r%r%] parameter, the entire Object and Content are printed, including the formatting.%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_content_s, print.set->notable, f_string_eol_s); - fl_print_format(" Both the Object and Content printed are already escaped.%r", print.to.stream, f_string_eol_s); - fl_print_format(" Both the Object and Content are separated by a New Line character '\\n' (U+000A).%r%r", print.to.stream, f_string_eol_s, f_string_eol_s); + fl_print_format(" When specifying both the %[%r%r%]", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_object_s, print.set->notable); + fl_print_format(" parameter and the %[%r%r%] parameter, the entire Object and Content are printed, including the formatting.%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_content_s, print.set->notable, f_string_eol_s); + fl_print_format(" Both the Object and Content printed are already escaped.%r", print.to, f_string_eol_s); + fl_print_format(" Both the Object and Content are separated by a New Line character '\\n' (U+000A).%r%r", print.to, f_string_eol_s, f_string_eol_s); - fl_print_format(" The parameter %[%r%r%] accepts the following:%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_delimit_s, print.set->notable, f_string_eol_s); - fl_print_format(" - %[%r%]: Do not apply delimits.%r", print.to.stream, print.set->notable, fss_embedded_list_read_delimit_mode_name_none_s, print.set->notable, f_string_eol_s); - fl_print_format(" - %[%r%]: (default) Apply all delimits.%r", print.to.stream, print.set->notable, fss_embedded_list_read_delimit_mode_name_all_s, print.set->notable, f_string_eol_s); - fl_print_format(" - A number, 0 or greater: apply delimits for Content at the specified depth.%r", print.to.stream, f_string_eol_s); - fl_print_format(" - A number, 0 or greater, followed by a %[%r%]: (such as '1+') apply delimits for Content at the specified depth and any greater depth (numerically).%r", print.to.stream, print.set->notable, fss_embedded_list_read_delimit_mode_name_greater_s, print.set->notable, f_string_eol_s, f_string_eol_s); - fl_print_format(" - A number, 0 or lesser, followed by a %[%r%]: (such as '1-') apply delimits for Content at the specified depth and any lesser depth (numerically).%r%r", print.to.stream, print.set->notable, fss_embedded_list_read_delimit_mode_name_lesser_s, print.set->notable, f_string_eol_s, f_string_eol_s); + fl_print_format(" The parameter %[%r%r%] accepts the following:%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_delimit_s, print.set->notable, f_string_eol_s); + fl_print_format(" - %[%r%]: Do not apply delimits.%r", print.to, print.set->notable, fss_embedded_list_read_delimit_mode_name_none_s, print.set->notable, f_string_eol_s); + fl_print_format(" - %[%r%]: (default) Apply all delimits.%r", print.to, print.set->notable, fss_embedded_list_read_delimit_mode_name_all_s, print.set->notable, f_string_eol_s); + fl_print_format(" - A number, 0 or greater: apply delimits for Content at the specified depth.%r", print.to, f_string_eol_s); + fl_print_format(" - A number, 0 or greater, followed by a %[%r%]: (such as '1+') apply delimits for Content at the specified depth and any greater depth (numerically).%r", print.to, print.set->notable, fss_embedded_list_read_delimit_mode_name_greater_s, print.set->notable, f_string_eol_s, f_string_eol_s); + fl_print_format(" - A number, 0 or lesser, followed by a %[%r%]: (such as '1-') apply delimits for Content at the specified depth and any lesser depth (numerically).%r%r", print.to, print.set->notable, fss_embedded_list_read_delimit_mode_name_lesser_s, print.set->notable, f_string_eol_s, f_string_eol_s); - fl_print_format(" The %[%r%r%] parameter may be specified multiple times to customize the delimit behavior.%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_delimit_s, print.set->notable, f_string_eol_s); + fl_print_format(" The %[%r%r%] parameter may be specified multiple times to customize the delimit behavior.%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_delimit_s, print.set->notable, f_string_eol_s); - fl_print_format(" The %[%r%r%]", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_delimit_s, print.set->notable); - fl_print_format(" values %[%r%]", print.to.stream, print.set->notable, fss_embedded_list_read_delimit_mode_name_none_s, print.set->notable); - fl_print_format(" and %[%r%],", print.to.stream, print.set->notable, fss_embedded_list_read_delimit_mode_name_all_s, print.set->notable); - fl_print_format(" overrule all other delimit values.%r%r", print.to.stream, f_string_eol_s, f_string_eol_s); + fl_print_format(" The %[%r%r%]", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_delimit_s, print.set->notable); + fl_print_format(" values %[%r%]", print.to, print.set->notable, fss_embedded_list_read_delimit_mode_name_none_s, print.set->notable); + fl_print_format(" and %[%r%],", print.to, print.set->notable, fss_embedded_list_read_delimit_mode_name_all_s, print.set->notable); + fl_print_format(" overrule all other delimit values.%r%r", print.to, f_string_eol_s, f_string_eol_s); - fl_print_format(" The parameters %[%r%r%]", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_columns_s, print.set->notable); - fl_print_format(" and %[%r%r%]", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_select_s, print.set->notable); - fl_print_format(" refer to a Content column.%r", print.to.stream, f_string_eol_s); - fl_print_format(" The word \"column\" is being loosely defined to refer to a specific Content.%r", print.to.stream, f_string_eol_s); - fl_print_format(" This is not to be confused with a depth.%r", print.to.stream, f_string_eol_s); + fl_print_format(" The parameters %[%r%r%]", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_columns_s, print.set->notable); + fl_print_format(" and %[%r%r%]", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_select_s, print.set->notable); + fl_print_format(" refer to a Content column.%r", print.to, f_string_eol_s); + fl_print_format(" The word \"column\" is being loosely defined to refer to a specific Content.%r", print.to, f_string_eol_s); + fl_print_format(" This is not to be confused with a depth.%r", print.to, f_string_eol_s); - f_print_dynamic_raw(setting->line_last, print.to.stream); + f_print_dynamic_raw(setting->line_last, print.to); f_file_stream_flush(print.to); f_file_stream_unlock(print.to); @@ -123,7 +123,7 @@ extern "C" { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; } - f_print_dynamic_raw(setting->line_first, print.to.stream); + f_print_dynamic_raw(setting->line_first, print.to); return F_none; } @@ -138,7 +138,7 @@ extern "C" { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; } - fll_print_dynamic_raw(setting->line_first, print.to.stream); + fll_print_dynamic_raw(setting->line_first, print.to); return F_none; } @@ -153,7 +153,7 @@ extern "C" { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; } - fll_print_dynamic_raw(setting->line_last, print.to.stream); + fll_print_dynamic_raw(setting->line_last, print.to); return F_none; } @@ -168,7 +168,7 @@ extern "C" { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; } - f_print_dynamic_raw(setting->line_last, print.to.stream); + f_print_dynamic_raw(setting->line_last, print.to); return F_none; } diff --git a/level_3/fss_embedded_list_read/c/private-print.c b/level_3/fss_embedded_list_read/c/private-print.c index 959c20c..79611c7 100644 --- a/level_3/fss_embedded_list_read/c/private-print.c +++ b/level_3/fss_embedded_list_read/c/private-print.c @@ -10,15 +10,15 @@ extern "C" { void fss_embedded_list_read_print_object_end(fss_embedded_list_read_data_t * const data) { if (data->main->parameters.array[fss_embedded_list_read_parameter_pipe_e].result == f_console_result_found_e) { - f_print_dynamic_raw(fss_embedded_list_read_pipe_content_start_s, data->main->output.to.stream); + f_print_dynamic_raw(fss_embedded_list_read_pipe_content_start_s, data->main->output.to); } else { if (data->main->parameters.array[fss_embedded_list_read_parameter_object_e].result == f_console_result_found_e && data->main->parameters.array[fss_embedded_list_read_parameter_content_e].result == f_console_result_found_e) { - f_print_dynamic_raw(f_fss_embedded_list_open_s, data->main->output.to.stream); - f_print_dynamic_raw(f_fss_embedded_list_open_end_s, data->main->output.to.stream); + f_print_dynamic_raw(f_fss_embedded_list_open_s, data->main->output.to); + f_print_dynamic_raw(f_fss_embedded_list_open_end_s, data->main->output.to); } else { - f_print_dynamic_raw(f_fss_eol_s, data->main->output.to.stream); + f_print_dynamic_raw(f_fss_eol_s, data->main->output.to); } } } @@ -28,7 +28,7 @@ extern "C" { void fss_embedded_list_read_print_content_ignore(fss_embedded_list_read_data_t * const data) { if (data->main->parameters.array[fss_embedded_list_read_parameter_pipe_e].result == f_console_result_found_e) { - f_print_dynamic_raw(fss_embedded_list_read_pipe_content_ignore_s, data->main->output.to.stream); + f_print_dynamic_raw(fss_embedded_list_read_pipe_content_ignore_s, data->main->output.to); } } #endif // _di_fss_embedded_list_read_print_content_ignore_ @@ -37,15 +37,15 @@ extern "C" { void fss_embedded_list_read_print_set_end(fss_embedded_list_read_data_t * const data) { if (data->main->parameters.array[fss_embedded_list_read_parameter_pipe_e].result == f_console_result_found_e) { - f_print_dynamic_raw(fss_embedded_list_read_pipe_content_end_s, data->main->output.to.stream); + f_print_dynamic_raw(fss_embedded_list_read_pipe_content_end_s, data->main->output.to); } else { if (data->main->parameters.array[fss_embedded_list_read_parameter_object_e].result == f_console_result_found_e && data->main->parameters.array[fss_embedded_list_read_parameter_content_e].result == f_console_result_found_e) { - f_print_dynamic_raw(f_fss_embedded_list_close_s, data->main->output.to.stream); - f_print_dynamic_raw(f_fss_embedded_list_close_end_s, data->main->output.to.stream); + f_print_dynamic_raw(f_fss_embedded_list_close_s, data->main->output.to); + f_print_dynamic_raw(f_fss_embedded_list_close_end_s, data->main->output.to); } else { - f_print_dynamic_raw(f_fss_eol_s, data->main->output.to.stream); + f_print_dynamic_raw(f_fss_eol_s, data->main->output.to); } } } diff --git a/level_3/fss_embedded_list_read/c/private-read.c b/level_3/fss_embedded_list_read/c/private-read.c index 3bf2ca3..95fc573 100644 --- a/level_3/fss_embedded_list_read/c/private-read.c +++ b/level_3/fss_embedded_list_read/c/private-read.c @@ -205,30 +205,30 @@ extern "C" { for (j = i + 1; j < depths->used; ++j) { if (depths->array[i].depth == depths->array[j].depth) { - flockfile(data->main->error.to.stream); + flockfile(data->main->error.to); - fl_print_format("%r%[%QThe value '%]", data->main->error.to.stream, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context); - fl_print_format("%[%ul%]", data->main->error.to.stream, data->main->error.notable, depths->array[i].depth, data->main->error.notable); - fl_print_format("%[' may only be specified once for the parameter '%]", data->main->error.to.stream, data->main->error.notable, data->main->error.notable); - fl_print_format("%[%r%r%]", data->main->error.to.stream, data->main->error.notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_depth_s, data->main->error.notable); - fl_print_format("%['.%]%r", data->main->error.to.stream, data->main->error.context, data->main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe value '%]", data->main->error.to, f_string_eol_s, data->main->error.context, data->main->error.prefix, data->main->error.context); + fl_print_format("%[%ul%]", data->main->error.to, data->main->error.notable, depths->array[i].depth, data->main->error.notable); + fl_print_format("%[' may only be specified once for the parameter '%]", data->main->error.to, data->main->error.notable, data->main->error.notable); + fl_print_format("%[%r%r%]", data->main->error.to, data->main->error.notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_depth_s, data->main->error.notable); + fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s); - funlockfile(data->main->error.to.stream); + funlockfile(data->main->error.to); return F_status_set_error(F_parameter); } else if (depths->array[i].depth > depths->array[j].depth) { - flockfile(data->main->error.to.stream); + flockfile(data->main->error.to); - fl_print_format("%r%[%QThe parameter '%]", data->main->error.to.stream, 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.stream, data->main->error.notable, f_console_symbol_long_enable_s, fss_embedded_list_read_long_depth_s, data->main->error.notable); - fl_print_format("%[' may not have the value '%]", data->main->error.to.stream, data->main->error.notable, data->main->error.notable); - fl_print_format("%[%ul%]", data->main->error.to.stream, data->main->error.notable, depths->array[i].depth, data->main->error.notable); - fl_print_format("%[' before the value '%]", data->main->error.to.stream, data->main->error.notable, data->main->error.notable); - fl_print_format("%[%ul%]", data->main->error.to.stream, data->main->error.notable, depths->array[j].depth, data->main->error.notable); - fl_print_format("%['.%]%r", data->main->error.to.stream, data->main->error.context, data->main->error.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_enable_s, fss_embedded_list_read_long_depth_s, data->main->error.notable); + fl_print_format("%[' may not have the value '%]", data->main->error.to, data->main->error.notable, data->main->error.notable); + fl_print_format("%[%ul%]", data->main->error.to, data->main->error.notable, depths->array[i].depth, data->main->error.notable); + fl_print_format("%[' before the value '%]", data->main->error.to, data->main->error.notable, data->main->error.notable); + fl_print_format("%[%ul%]", data->main->error.to, data->main->error.notable, depths->array[j].depth, data->main->error.notable); + fl_print_format("%['.%]%r", data->main->error.to, data->main->error.context, data->main->error.context, f_string_eol_s); - funlockfile(data->main->error.to.stream); + funlockfile(data->main->error.to); return F_status_set_error(F_parameter); } @@ -258,7 +258,7 @@ extern "C" { fss_embedded_list_read_data_delete(data); if (data->main->parameters.array[fss_embedded_list_read_parameter_total_e].result == f_console_result_found_e) { - fll_print_format("%r%r", data->main->output.to.stream, f_string_ascii_0_s, f_string_eol_s); + fll_print_format("%r%r", data->main->output.to, f_string_ascii_0_s, f_string_eol_s); return F_none; } @@ -287,7 +287,7 @@ extern "C" { // Requested depths cannot be greater than contents depth. if (depths.used > data->nest.used) { if (data->main->parameters.array[fss_embedded_list_read_parameter_total_e].result == f_console_result_found_e) { - fll_print_format("%r%r", data->main->output.to.stream, f_string_ascii_0_s, f_string_eol_s); + fll_print_format("%r%r", data->main->output.to, f_string_ascii_0_s, f_string_eol_s); return F_none; } @@ -505,7 +505,7 @@ extern "C" { ++total; } // for - fll_print_format("%ul%r", data->main->output.to.stream, total, f_string_eol_s); + fll_print_format("%ul%r", data->main->output.to, total, f_string_eol_s); return F_none; } @@ -516,26 +516,26 @@ extern "C" { print_object = &fl_print_trim_except_dynamic_partial; } - flockfile(data->main->output.to.stream); + flockfile(data->main->output.to); for (i = 0; i < items->used; ++i) { if (skip[i]) continue; - print_object(data->buffer, items->array[i].object, *objects_delimits, data->main->output.to.stream); + print_object(data->buffer, items->array[i].object, *objects_delimits, data->main->output.to); if (data->main->parameters.array[fss_embedded_list_read_parameter_content_e].result == f_console_result_found_e) { fss_embedded_list_read_print_object_end(data); if (items->array[i].content.used) { - f_print_except_dynamic_partial(data->buffer, items->array[i].content.array[0], *contents_delimits, data->main->output.to.stream); + f_print_except_dynamic_partial(data->buffer, items->array[i].content.array[0], *contents_delimits, data->main->output.to); } } fss_embedded_list_read_print_set_end(data); } // for - funlockfile(data->main->output.to.stream); + funlockfile(data->main->output.to); return F_none; } @@ -582,7 +582,7 @@ extern "C" { } // for } // for - fll_print_format("%ul%r", data->main->output.to.stream, total, f_string_eol_s); + fll_print_format("%ul%r", data->main->output.to, total, f_string_eol_s); return F_none; } @@ -590,7 +590,7 @@ extern "C" { if (data->main->parameters.array[fss_embedded_list_read_parameter_line_e].result == f_console_result_additional_e) { f_array_length_t line_current = 0; - flockfile(data->main->output.to.stream); + flockfile(data->main->output.to); for (; i < items->used; ++i) { @@ -635,24 +635,24 @@ extern "C" { if (!data->buffer.string[j]) continue; if (data->buffer.string[j] == f_string_eol_s.string[0]) { - f_print_dynamic_raw(f_string_eol_s, data->main->output.to.stream); + f_print_dynamic_raw(f_string_eol_s, data->main->output.to); break; } - f_print_character(data->buffer.string[j], data->main->output.to.stream); + f_print_character(data->buffer.string[j], data->main->output.to); } // for break; } } // for - funlockfile(data->main->output.to.stream); + funlockfile(data->main->output.to); return F_none; } - flockfile(data->main->output.to.stream); + flockfile(data->main->output.to); for (i = 0; i < items->used; ++i) { @@ -666,14 +666,14 @@ extern "C" { continue; } - f_print_except_dynamic_partial(data->buffer, items->array[i].content.array[0], *contents_delimits, data->main->output.to.stream); + f_print_except_dynamic_partial(data->buffer, items->array[i].content.array[0], *contents_delimits, data->main->output.to); if (data->main->parameters.array[fss_embedded_list_read_parameter_pipe_e].result == f_console_result_found_e) { - f_print_dynamic_raw(fss_embedded_list_read_pipe_content_end_s, data->main->output.to.stream); + f_print_dynamic_raw(fss_embedded_list_read_pipe_content_end_s, data->main->output.to); } } // for - funlockfile(data->main->output.to.stream); + funlockfile(data->main->output.to); return F_none; } diff --git a/level_3/fss_embedded_list_write/c/fss_embedded_list_write.c b/level_3/fss_embedded_list_write/c/fss_embedded_list_write.c index 5424528..83a188b 100644 --- a/level_3/fss_embedded_list_write/c/fss_embedded_list_write.c +++ b/level_3/fss_embedded_list_write/c/fss_embedded_list_write.c @@ -82,9 +82,9 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_embedded_list_write_long_file_s, main->error.notable); - fl_print_format("%[' may only be specified once.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_embedded_list_write_long_file_s, main->error.notable); + fl_print_format("%[' may only be specified once.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -129,13 +129,13 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_embedded_list_write_long_partial_s, main->error.notable); - fl_print_format("%[' parameter only allows either the '%]", main->error.to.stream, main->error.context, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_embedded_list_write_long_object_s, main->error.notable); - fl_print_format("%[' parameter or the '%]", main->error.to.stream, main->error.context, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_embedded_list_write_long_content_s, main->error.notable); - fl_print_format("%[' parameter, but not both.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_embedded_list_write_long_partial_s, main->error.notable); + fl_print_format("%[' parameter only allows either the '%]", main->error.to, main->error.context, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_embedded_list_write_long_object_s, main->error.notable); + fl_print_format("%[' parameter or the '%]", main->error.to, main->error.context, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_embedded_list_write_long_content_s, main->error.notable); + fl_print_format("%[' parameter, but not both.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -161,11 +161,11 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QEach '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_embedded_list_write_long_object_s, main->error.notable); - fl_print_format("%[' parameter must be specified before a '%]", main->error.to.stream, main->error.context, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_embedded_list_write_long_content_s, main->error.notable); - fl_print_format("%[' parameter.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QEach '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_embedded_list_write_long_object_s, main->error.notable); + fl_print_format("%[' parameter must be specified before a '%]", main->error.to, main->error.context, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_embedded_list_write_long_content_s, main->error.notable); + fl_print_format("%[' parameter.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -193,11 +193,11 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThis requires either piped data or the use of the '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_embedded_list_write_long_object_s, main->error.notable); - fl_print_format("%[' parameter with the '%]", main->error.to.stream, main->error.context, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_embedded_list_write_long_content_s, main->error.notable); - fl_print_format("%[' parameter.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThis requires either piped data or the use of the '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_embedded_list_write_long_object_s, main->error.notable); + fl_print_format("%[' parameter with the '%]", main->error.to, main->error.context, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_embedded_list_write_long_content_s, main->error.notable); + fl_print_format("%[' parameter.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -210,9 +210,9 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThis '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_embedded_list_write_long_partial_s, main->error.notable); - fl_print_format("%[' parameter cannot be used when processing a pipe.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThis '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_embedded_list_write_long_partial_s, main->error.notable); + fl_print_format("%[' parameter cannot be used when processing a pipe.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -227,9 +227,9 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_embedded_list_write_long_prepend_s, main->error.notable); - fl_print_format("%[' is specified, but no value is given.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_embedded_list_write_long_prepend_s, main->error.notable); + fl_print_format("%[' is specified, but no value is given.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -252,9 +252,9 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe value for the parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_embedded_list_write_long_prepend_s, main->error.notable); - fl_print_format("%[' must only contain white space.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe value for the parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_embedded_list_write_long_prepend_s, main->error.notable); + fl_print_format("%[' must only contain white space.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -269,9 +269,9 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe value for the parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_embedded_list_write_long_prepend_s, main->error.notable); - fl_print_format("%[' must not be an empty string.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe value for the parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_embedded_list_write_long_prepend_s, main->error.notable); + fl_print_format("%[' must not be an empty string.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -286,9 +286,9 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_embedded_list_write_long_ignore_s, main->error.notable); - fl_print_format("%[' was specified, but no values were given.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_embedded_list_write_long_ignore_s, main->error.notable); + fl_print_format("%[' was specified, but no values were given.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -302,9 +302,9 @@ extern "C" { if (total_locations * 2 > total_arguments) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_embedded_list_write_long_ignore_s, main->error.notable); - fl_print_format("%[' requires two values.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_embedded_list_write_long_ignore_s, main->error.notable); + fl_print_format("%[' requires two values.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); @@ -340,8 +340,8 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QWhile processing the '%]%[input pipe%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context, main->error.notable, main->error.notable); - fl_print_format("%['.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QWhile processing the '%]%[input pipe%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context, main->error.notable, main->error.notable); + fl_print_format("%['.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -422,8 +422,8 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QWhile processing the '%]%[input arguments%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context, main->error.notable, main->error.notable); - fl_print_format("%['.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QWhile processing the '%]%[input arguments%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context, main->error.notable, main->error.notable); + fl_print_format("%['.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -431,7 +431,7 @@ extern "C" { else if (main->error.verbosity > f_console_verbosity_quiet_e && main->error.verbosity != f_console_verbosity_error_e && main->parameters.array[fss_embedded_list_write_parameter_file_e].result == f_console_result_none_e) { // Ensure there is always a newline at the end, unless in quiet mode. - fll_print_dynamic_raw(f_string_eol_s, main->output.to.stream); + fll_print_dynamic_raw(f_string_eol_s, main->output.to); } } @@ -446,7 +446,7 @@ extern "C" { // Ensure a newline is always put at the end of the program execution, unless in quiet mode. if (main->error.verbosity > f_console_verbosity_quiet_e) { if (F_status_is_error(status)) { - fll_print_dynamic_raw(f_string_eol_s, main->error.to.stream); + fll_print_dynamic_raw(f_string_eol_s, main->error.to); } } diff --git a/level_3/fss_embedded_list_write/c/print.c b/level_3/fss_embedded_list_write/c/print.c index 34e7159..89f184b 100644 --- a/level_3/fss_embedded_list_write/c/print.c +++ b/level_3/fss_embedded_list_write/c/print.c @@ -10,13 +10,13 @@ extern "C" { f_file_stream_lock(print.to); - f_print_dynamic_raw(setting->line_first, print.to.stream); + f_print_dynamic_raw(setting->line_first, print.to); fll_program_print_help_header(print, fss_embedded_list_write_program_name_long_s, fss_embedded_list_write_program_version_s); fll_program_print_help_option_standard(print); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); + f_print_dynamic_raw(f_string_eol_s, print.to); fll_program_print_help_option(print, fss_embedded_list_write_short_file_s, fss_embedded_list_write_long_file_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Specify a file to send data to."); fll_program_print_help_option(print, fss_embedded_list_write_short_content_s, fss_embedded_list_write_long_content_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, "The Content to write."); @@ -28,28 +28,28 @@ extern "C" { fll_program_print_help_option(print, fss_embedded_list_write_short_single_s, fss_embedded_list_write_long_single_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Use single quotes."); fll_program_print_help_option(print, fss_embedded_list_write_short_trim_s, fss_embedded_list_write_long_trim_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Trim Object names."); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); + f_print_dynamic_raw(f_string_eol_s, print.to); + f_print_dynamic_raw(f_string_eol_s, print.to); fll_program_print_help_usage(print, fss_embedded_list_write_program_name_s, f_string_empty_s); - fl_print_format("%r The pipe uses the Backspace character '%[\\b%]' (%[U+0008%]) to designate the start of a Content.%r", print.to.stream, f_string_eol_s, print.set->notable, print.set->notable, print.set->notable, print.set->notable, f_string_eol_s); - fl_print_format(" The pipe uses the Form Feed character '%[\\f%]' (%[U+000C%]) to designate the end of the last Content.%r", print.to.stream, print.set->notable, print.set->notable, print.set->notable, print.set->notable, f_string_eol_s); - fl_print_format(" The pipe uses the Vertical Line character '%[\\v%]' (%[U+000B%]) is used to ignore a Content range (use this both before and after the range).%r", print.to.stream, print.set->notable, print.set->notable, print.set->notable, print.set->notable, f_string_eol_s); - fl_print_format(" For the pipe, an Object is terminated by either a Backspace character '%[\\b%]' (%[U+0008%])", print.to.stream, print.set->notable, print.set->notable, print.set->notable, print.set->notable); - fl_print_format(" or a Form Feed character '%[\\f%]' (%[U+000C%]).%r", print.to.stream, print.set->notable, print.set->notable, print.set->notable, print.set->notable, f_string_eol_s); - fl_print_format(" The end of the pipe represents the end of any Object or Content.%r%r", print.to.stream, f_string_eol_s, f_string_eol_s); + fl_print_format("%r The pipe uses the Backspace character '%[\\b%]' (%[U+0008%]) to designate the start of a Content.%r", print.to, f_string_eol_s, print.set->notable, print.set->notable, print.set->notable, print.set->notable, f_string_eol_s); + fl_print_format(" The pipe uses the Form Feed character '%[\\f%]' (%[U+000C%]) to designate the end of the last Content.%r", print.to, print.set->notable, print.set->notable, print.set->notable, print.set->notable, f_string_eol_s); + fl_print_format(" The pipe uses the Vertical Line character '%[\\v%]' (%[U+000B%]) is used to ignore a Content range (use this both before and after the range).%r", print.to, print.set->notable, print.set->notable, print.set->notable, print.set->notable, f_string_eol_s); + fl_print_format(" For the pipe, an Object is terminated by either a Backspace character '%[\\b%]' (%[U+0008%])", print.to, print.set->notable, print.set->notable, print.set->notable, print.set->notable); + fl_print_format(" or a Form Feed character '%[\\f%]' (%[U+000C%]).%r", print.to, print.set->notable, print.set->notable, print.set->notable, print.set->notable, f_string_eol_s); + fl_print_format(" The end of the pipe represents the end of any Object or Content.%r%r", print.to, f_string_eol_s, f_string_eol_s); - fl_print_format(" The FSS-0008 (Embedded List) specification does not support quoted names, therefore the parameters '%[%r%r%]'", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_embedded_list_write_long_single_s, print.set->notable); - fl_print_format(" and '%[%r%r%]' do nothing.%r%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_embedded_list_write_long_double_s, print.set->notable, f_string_eol_s, f_string_eol_s); + fl_print_format(" The FSS-0008 (Embedded List) specification does not support quoted names, therefore the parameters '%[%r%r%]'", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_embedded_list_write_long_single_s, print.set->notable); + fl_print_format(" and '%[%r%r%]' do nothing.%r%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_embedded_list_write_long_double_s, print.set->notable, f_string_eol_s, f_string_eol_s); - fl_print_format(" The parameter '%[%r%r%]' designates to not escape any valid nested Object or Content within some Content.%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_embedded_list_write_long_ignore_s, print.set->notable, f_string_eol_s); - fl_print_format(" This parameter requires two values.%r", print.to.stream, f_string_eol_s); - fl_print_format(" This parameter is not used for ignoring anything from the input pipe.%r", print.to.stream, f_string_eol_s); - fl_print_format(" This parameter must be specified after a '%[%r%r%]'", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_embedded_list_write_long_content_s, print.set->notable); - fl_print_format(" parameter and this applies only to the Content represented by that specific '%[%r%r%]' parameter.%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_embedded_list_write_long_content_s, print.set->notable, f_string_eol_s); + fl_print_format(" The parameter '%[%r%r%]' designates to not escape any valid nested Object or Content within some Content.%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_embedded_list_write_long_ignore_s, print.set->notable, f_string_eol_s); + fl_print_format(" This parameter requires two values.%r", print.to, f_string_eol_s); + fl_print_format(" This parameter is not used for ignoring anything from the input pipe.%r", print.to, f_string_eol_s); + fl_print_format(" This parameter must be specified after a '%[%r%r%]'", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_embedded_list_write_long_content_s, print.set->notable); + fl_print_format(" parameter and this applies only to the Content represented by that specific '%[%r%r%]' parameter.%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_embedded_list_write_long_content_s, print.set->notable, f_string_eol_s); - f_print_dynamic_raw(setting->line_last, print.to.stream); + f_print_dynamic_raw(setting->line_last, print.to); f_file_stream_flush(print.to); f_file_stream_unlock(print.to); @@ -67,7 +67,7 @@ extern "C" { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; } - f_print_dynamic_raw(setting->line_first, print.to.stream); + f_print_dynamic_raw(setting->line_first, print.to); return F_none; } @@ -82,7 +82,7 @@ extern "C" { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; } - fll_print_dynamic_raw(setting->line_first, print.to.stream); + fll_print_dynamic_raw(setting->line_first, print.to); return F_none; } @@ -98,7 +98,7 @@ extern "C" { if (setting->flag & (fss_embedded_list_write_main_flag_verify_e | fss_embedded_list_write_main_flag_file_to_e)) return F_output_not; } - fll_print_dynamic_raw(setting->line_last, print.to.stream); + fll_print_dynamic_raw(setting->line_last, print.to); return F_none; } @@ -114,7 +114,7 @@ extern "C" { if (setting->flag & (fss_embedded_list_write_main_flag_verify_e | fss_embedded_list_write_main_flag_file_to_e)) return F_output_not; } - f_print_dynamic_raw(setting->line_last, print.to.stream); + f_print_dynamic_raw(setting->line_last, print.to); return F_none; } diff --git a/level_3/fss_embedded_list_write/c/private-write.c b/level_3/fss_embedded_list_write/c/private-write.c index 33bb70a..70f214b 100644 --- a/level_3/fss_embedded_list_write/c/private-write.c +++ b/level_3/fss_embedded_list_write/c/private-write.c @@ -15,13 +15,13 @@ extern "C" { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QMust specify the '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_embedded_list_write_long_object_s, main->error.notable); - fl_print_format("%[' parameter and the '%]", main->error.to.stream, main->error.context, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_embedded_list_write_long_content_s, main->error.notable); - fl_print_format("%[' parameter the same number of times when not specifying the '%]", main->error.to.stream, main->error.context, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_embedded_list_write_long_partial_s, main->error.notable); - fl_print_format("%[' parameter.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QMust specify the '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_embedded_list_write_long_object_s, main->error.notable); + fl_print_format("%[' parameter and the '%]", main->error.to, main->error.context, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_embedded_list_write_long_content_s, main->error.notable); + fl_print_format("%[' parameter the same number of times when not specifying the '%]", main->error.to, main->error.context, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_embedded_list_write_long_partial_s, main->error.notable); + fl_print_format("%[' parameter.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -36,11 +36,11 @@ extern "C" { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe FSS-0008 (Embedded List) standard does not support end of line character '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[\\n%]", main->error.to.stream, main->error.notable, main->error.notable); - fl_print_format("%[' (%]", main->error.to.stream, main->error.context, main->error.context); - fl_print_format("%[U+000A%]", main->error.to.stream, main->error.notable, main->error.notable); - fl_print_format("%[) in objects.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe FSS-0008 (Embedded List) standard does not support end of line character '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[\\n%]", main->error.to, main->error.notable, main->error.notable); + fl_print_format("%[' (%]", main->error.to, main->error.context, main->error.context); + fl_print_format("%[U+000A%]", main->error.to, main->error.notable, main->error.notable); + fl_print_format("%[) in objects.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -55,9 +55,9 @@ extern "C" { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, symbol, parameter, main->error.notable); - fl_print_format("%[' is specified, but no value is given.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, symbol, parameter, main->error.notable); + fl_print_format("%[' is specified, but no value is given.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -137,7 +137,7 @@ extern "C" { } } - fll_print_dynamic(*buffer, output.stream); + fll_print_dynamic(*buffer, output); buffer->used = 0; @@ -280,7 +280,7 @@ extern "C" { if (block.string[range.start] == fss_embedded_list_write_pipe_content_start_s.string[0]) { if (main->error.verbosity > f_console_verbosity_quiet_e) { - fll_print_format("%r%[%QThe FSS-0008 (Embedded List) standard only supports one content per object.%]%r", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context, f_string_eol_s); + fll_print_format("%r%[%QThe FSS-0008 (Embedded List) standard only supports one content per object.%]%r", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context, f_string_eol_s); } status = F_status_set_error(F_supported_not); diff --git a/level_3/fss_extended_list_read/c/fss_extended_list_read.c b/level_3/fss_extended_list_read/c/fss_extended_list_read.c index eca69d8..5d4dddc 100644 --- a/level_3/fss_extended_list_read/c/fss_extended_list_read.c +++ b/level_3/fss_extended_list_read/c/fss_extended_list_read.c @@ -119,9 +119,9 @@ extern "C" { if (main->parameters.array[parameter_code[i]].result == f_console_result_found_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, parameter_name[i], main->error.notable); - fl_print_format("%[' requires a %s.%]%r", main->error.to.stream, main->error.context, parameter_message[i], main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, parameter_name[i], main->error.notable); + fl_print_format("%[' requires a %s.%]%r", main->error.to, main->error.context, parameter_message[i], main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); @@ -215,9 +215,9 @@ extern "C" { if (!length) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe value for the parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_extended_list_read_long_delimit_s, main->error.notable); - fl_print_format("%[' must not be empty.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe value for the parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_extended_list_read_long_delimit_s, main->error.notable); + fl_print_format("%[' must not be empty.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); @@ -348,9 +348,9 @@ extern "C" { if (F_status_is_error_not(status) && main->parameters.array[fss_extended_list_read_parameter_select_e].result == f_console_result_found_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_extended_list_read_long_select_s, main->error.notable); - fl_print_format("%[' parameter requires a positive number.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_extended_list_read_long_select_s, main->error.notable); + fl_print_format("%[' parameter requires a positive number.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); @@ -519,7 +519,7 @@ extern "C" { fss_extended_list_read_data_delete_simple(&data); } else { - fll_print_format("%r%[%QYou failed to specify one or more files.%]%r", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context, f_string_eol_s); + fll_print_format("%r%[%QYou failed to specify one or more files.%]%r", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context, f_string_eol_s); status = F_status_set_error(F_parameter); } @@ -527,7 +527,7 @@ extern "C" { if (F_status_set_fine(status) == F_interrupt) { f_file_stream_flush(main->output.to); - fll_print_dynamic_raw(f_string_eol_s, main->output.to.stream); + fll_print_dynamic_raw(f_string_eol_s, main->output.to); } } diff --git a/level_3/fss_extended_list_read/c/print.c b/level_3/fss_extended_list_read/c/print.c index 8325d19..355f5aa 100644 --- a/level_3/fss_extended_list_read/c/print.c +++ b/level_3/fss_extended_list_read/c/print.c @@ -10,13 +10,13 @@ extern "C" { f_file_stream_lock(print.to); - f_print_dynamic_raw(setting->line_first, print.to.stream); + f_print_dynamic_raw(setting->line_first, print.to); fll_program_print_help_header(print, fss_extended_list_read_program_name_long_s, fss_extended_list_read_program_version_s); fll_program_print_help_option_standard(print); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); + f_print_dynamic_raw(f_string_eol_s, print.to); fll_program_print_help_option(print, fss_extended_list_read_short_at_s, fss_extended_list_read_long_at_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Select Object at this numeric index."); fll_program_print_help_option(print, fss_extended_list_read_short_content_s, fss_extended_list_read_long_content_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Print the Content (default)."); @@ -33,80 +33,80 @@ extern "C" { fll_program_print_help_option(print, fss_extended_list_read_short_total_s, fss_extended_list_read_long_total_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Print the total number of lines."); fll_program_print_help_option(print, fss_extended_list_read_short_trim_s, fss_extended_list_read_long_trim_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Trim Object names on select or print."); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); + f_print_dynamic_raw(f_string_eol_s, print.to); + f_print_dynamic_raw(f_string_eol_s, print.to); fll_program_print_help_usage(print, fss_extended_list_read_program_name_s, fll_program_parameter_filenames_s); - fl_print_format("%r %[Notes:%]%r", print.to.stream, f_string_eol_s, print.set->important, print.set->important, f_string_eol_s); + fl_print_format("%r %[Notes:%]%r", print.to, f_string_eol_s, print.set->important, print.set->important, f_string_eol_s); - fl_print_format(" This program will print the Content associated with the given Object and Content main based on the FSS-0003 Extended List standard.%r%r", print.to.stream, f_string_eol_s, f_string_eol_s); + fl_print_format(" This program will print the Content associated with the given Object and Content main based on the FSS-0003 Extended List standard.%r%r", print.to, f_string_eol_s, f_string_eol_s); - fl_print_format(" All numeric positions (indexes) start at 0 instead of 1.%r", print.to.stream, f_string_eol_s); - fl_print_format(" For example, a file of 17 lines would range from 0 to 16.%r%r", print.to.stream, f_string_eol_s, f_string_eol_s); + fl_print_format(" All numeric positions (indexes) start at 0 instead of 1.%r", print.to, f_string_eol_s); + fl_print_format(" For example, a file of 17 lines would range from 0 to 16.%r%r", print.to, f_string_eol_s, f_string_eol_s); - fl_print_format(" When using the %[%r%r%] option, an order of operations is enforced on the parameters.%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_extended_list_read_long_depth_s, print.set->notable, f_string_eol_s); + fl_print_format(" When using the %[%r%r%] option, an order of operations is enforced on the parameters.%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_extended_list_read_long_depth_s, print.set->notable, f_string_eol_s); - fl_print_format(" When this order of operations is in effect, parameters to the right of a depth parameter are influenced by that depth parameter:%r", print.to.stream, f_string_eol_s); + fl_print_format(" When this order of operations is in effect, parameters to the right of a depth parameter are influenced by that depth parameter:%r", print.to, f_string_eol_s); - fl_print_format(" %[%r%r%]: An Object index at the specified depth.%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_extended_list_read_long_at_s, print.set->notable, f_string_eol_s); - fl_print_format(" %[%r%r%]: A new depth within the specified depth, indexed from the root.%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_extended_list_read_long_depth_s, print.set->notable, f_string_eol_s); - fl_print_format(" %[%r%r%]: An Object name at the specified depth.%r%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_extended_list_read_long_name_s, print.set->notable, f_string_eol_s, f_string_eol_s); + fl_print_format(" %[%r%r%]: An Object index at the specified depth.%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_extended_list_read_long_at_s, print.set->notable, f_string_eol_s); + fl_print_format(" %[%r%r%]: A new depth within the specified depth, indexed from the root.%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_extended_list_read_long_depth_s, print.set->notable, f_string_eol_s); + fl_print_format(" %[%r%r%]: An Object name at the specified depth.%r%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_extended_list_read_long_name_s, print.set->notable, f_string_eol_s, f_string_eol_s); - fl_print_format(" The parameter %[%r%r%] must be in numeric order, but values in between may be skipped.%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_extended_list_read_long_depth_s, print.set->notable, f_string_eol_s); - fl_print_format(" ('-d 0 -a 1 -d 2 -a 2' would specify index 1 at depth 0, any index at depth 1, and index 2 at depth 2.)%r", print.to.stream, f_string_eol_s); - fl_print_format(" ('-d 2 -a 1 -d 0 -a 2' would be invalid because depth 2 is before depth 1.)%r%r", print.to.stream, f_string_eol_s, f_string_eol_s); + fl_print_format(" The parameter %[%r%r%] must be in numeric order, but values in between may be skipped.%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_extended_list_read_long_depth_s, print.set->notable, f_string_eol_s); + fl_print_format(" ('-d 0 -a 1 -d 2 -a 2' would specify index 1 at depth 0, any index at depth 1, and index 2 at depth 2.)%r", print.to, f_string_eol_s); + fl_print_format(" ('-d 2 -a 1 -d 0 -a 2' would be invalid because depth 2 is before depth 1.)%r%r", print.to, f_string_eol_s, f_string_eol_s); - fl_print_format(" The parameter %[%r%r%] selects a Content column.%r%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_extended_list_read_long_select_s, print.set->notable, f_string_eol_s, f_string_eol_s); + fl_print_format(" The parameter %[%r%r%] selects a Content column.%r%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_extended_list_read_long_select_s, print.set->notable, f_string_eol_s, f_string_eol_s); - fl_print_format(" Specify both %[%r%r%]", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_extended_list_read_long_object_s, print.set->notable); - fl_print_format(" and the %[%r%r%] parameters to get the total objects.%r%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_extended_list_read_long_total_s, print.set->notable, f_string_eol_s, f_string_eol_s); + fl_print_format(" Specify both %[%r%r%]", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_extended_list_read_long_object_s, print.set->notable); + fl_print_format(" and the %[%r%r%] parameters to get the total objects.%r%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_extended_list_read_long_total_s, print.set->notable, f_string_eol_s, f_string_eol_s); - fl_print_format(" When both %[%r%r%]", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_extended_list_read_long_at_s, print.set->notable); - fl_print_format(" and %[%r%r%] parameters are specified (at the same depth),", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_extended_list_read_long_name_s, print.set->notable); - fl_print_format(" the %[%r%r%] parameter value will be treated as a position relative to the specified", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_extended_list_read_long_at_s, print.set->notable); - fl_print_format(" %[%r%r%] parameter value.%r%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_extended_list_read_long_name_s, print.set->notable, f_string_eol_s, f_string_eol_s); + fl_print_format(" When both %[%r%r%]", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_extended_list_read_long_at_s, print.set->notable); + fl_print_format(" and %[%r%r%] parameters are specified (at the same depth),", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_extended_list_read_long_name_s, print.set->notable); + fl_print_format(" the %[%r%r%] parameter value will be treated as a position relative to the specified", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_extended_list_read_long_at_s, print.set->notable); + fl_print_format(" %[%r%r%] parameter value.%r%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_extended_list_read_long_name_s, print.set->notable, f_string_eol_s, f_string_eol_s); - fl_print_format(" This program may support parameters, such as %[%r%r%]", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_extended_list_read_long_depth_s, print.set->notable); - fl_print_format(" or %[%r%r%], even if not supported by the standard.%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_extended_list_read_long_select_s, print.set->notable, f_string_eol_s); - fl_print_format(" This is done to help ensure consistency for scripting.%r%r", print.to.stream, f_string_eol_s, f_string_eol_s); + fl_print_format(" This program may support parameters, such as %[%r%r%]", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_extended_list_read_long_depth_s, print.set->notable); + fl_print_format(" or %[%r%r%], even if not supported by the standard.%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_extended_list_read_long_select_s, print.set->notable, f_string_eol_s); + fl_print_format(" This is done to help ensure consistency for scripting.%r%r", print.to, f_string_eol_s, f_string_eol_s); - fl_print_format(" For parameters like %[%r%r%],", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_extended_list_read_long_depth_s, print.set->notable); - fl_print_format(" if the standard doesn't support nested Content, then only a depth of 0 would be valid.%r", print.to.stream, f_string_eol_s); + fl_print_format(" For parameters like %[%r%r%],", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_extended_list_read_long_depth_s, print.set->notable); + fl_print_format(" if the standard doesn't support nested Content, then only a depth of 0 would be valid.%r", print.to, f_string_eol_s); - fl_print_format(" For parameters like %[%r%r%],", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_extended_list_read_long_select_s, print.set->notable); - fl_print_format(" if the standard doesn't support multiple Content groups, then only a select of 0 would be valid.%r%r", print.to.stream, f_string_eol_s, f_string_eol_s); + fl_print_format(" For parameters like %[%r%r%],", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_extended_list_read_long_select_s, print.set->notable); + fl_print_format(" if the standard doesn't support multiple Content groups, then only a select of 0 would be valid.%r%r", print.to, f_string_eol_s, f_string_eol_s); - fl_print_format(" The parameter %[%r%r%]", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_extended_list_read_long_trim_s, print.set->notable); - fl_print_format(" will remove leading and trailing white spaces when selecting objects or when printing objects.%r%r", print.to.stream, f_string_eol_s, f_string_eol_s); + fl_print_format(" The parameter %[%r%r%]", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_extended_list_read_long_trim_s, print.set->notable); + fl_print_format(" will remove leading and trailing white spaces when selecting objects or when printing objects.%r%r", print.to, f_string_eol_s, f_string_eol_s); - fl_print_format(" When specifying both the %[%r%r%]", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_extended_list_read_long_object_s, print.set->notable); - fl_print_format(" parameter and the %[%r%r%] parameter, the entire Object and Content are printed, including the formatting.%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_extended_list_read_long_content_s, print.set->notable, f_string_eol_s); - fl_print_format(" Both the Object and Content printed are already escaped.%r", print.to.stream, f_string_eol_s); - fl_print_format(" Both the Object and Content are separated by a New Line character '\\n' (U+000A).%r%r", print.to.stream, f_string_eol_s, f_string_eol_s); + fl_print_format(" When specifying both the %[%r%r%]", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_extended_list_read_long_object_s, print.set->notable); + fl_print_format(" parameter and the %[%r%r%] parameter, the entire Object and Content are printed, including the formatting.%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_extended_list_read_long_content_s, print.set->notable, f_string_eol_s); + fl_print_format(" Both the Object and Content printed are already escaped.%r", print.to, f_string_eol_s); + fl_print_format(" Both the Object and Content are separated by a New Line character '\\n' (U+000A).%r%r", print.to, f_string_eol_s, f_string_eol_s); - fl_print_format(" The parameter %[%r%r%] accepts the following:%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_extended_list_read_long_delimit_s, print.set->notable, f_string_eol_s); - fl_print_format(" - %[%r%]: Do not apply delimits.%r", print.to.stream, print.set->notable, fss_extended_list_read_delimit_mode_name_none_s, print.set->notable, f_string_eol_s); - fl_print_format(" - %[%r%]: (default) Apply all delimits.%r", print.to.stream, print.set->notable, fss_extended_list_read_delimit_mode_name_all_s, print.set->notable, f_string_eol_s); - fl_print_format(" - %[%r%]: Apply delimits for Objects.%r", print.to.stream, print.set->notable, fss_extended_list_read_delimit_mode_name_object_s, print.set->notable, f_string_eol_s); - fl_print_format(" - A number, 0 or greater: apply delimits for Content at the specified depth.%r", print.to.stream, f_string_eol_s); - fl_print_format(" - A number, 0 or greater, followed by a %[%r%]: (such as '1+') apply delimits for Content at the specified depth and any greater depth (numerically).%r", print.to.stream, print.set->notable, fss_extended_list_read_delimit_mode_name_greater_s, print.set->notable, f_string_eol_s, f_string_eol_s); - fl_print_format(" - A number, 0 or lesser, followed by a %[%r%]: (such as '1-') apply delimits for Content at the specified depth and any lesser depth (numerically).%r%r", print.to.stream, print.set->notable, fss_extended_list_read_delimit_mode_name_lesser_s, print.set->notable, f_string_eol_s, f_string_eol_s); + fl_print_format(" The parameter %[%r%r%] accepts the following:%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_extended_list_read_long_delimit_s, print.set->notable, f_string_eol_s); + fl_print_format(" - %[%r%]: Do not apply delimits.%r", print.to, print.set->notable, fss_extended_list_read_delimit_mode_name_none_s, print.set->notable, f_string_eol_s); + fl_print_format(" - %[%r%]: (default) Apply all delimits.%r", print.to, print.set->notable, fss_extended_list_read_delimit_mode_name_all_s, print.set->notable, f_string_eol_s); + fl_print_format(" - %[%r%]: Apply delimits for Objects.%r", print.to, print.set->notable, fss_extended_list_read_delimit_mode_name_object_s, print.set->notable, f_string_eol_s); + fl_print_format(" - A number, 0 or greater: apply delimits for Content at the specified depth.%r", print.to, f_string_eol_s); + fl_print_format(" - A number, 0 or greater, followed by a %[%r%]: (such as '1+') apply delimits for Content at the specified depth and any greater depth (numerically).%r", print.to, print.set->notable, fss_extended_list_read_delimit_mode_name_greater_s, print.set->notable, f_string_eol_s, f_string_eol_s); + fl_print_format(" - A number, 0 or lesser, followed by a %[%r%]: (such as '1-') apply delimits for Content at the specified depth and any lesser depth (numerically).%r%r", print.to, print.set->notable, fss_extended_list_read_delimit_mode_name_lesser_s, print.set->notable, f_string_eol_s, f_string_eol_s); - fl_print_format(" The %[%r%r%] parameter may be specified multiple times to customize the delimit behavior.%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_extended_list_read_long_delimit_s, print.set->notable, f_string_eol_s); + fl_print_format(" The %[%r%r%] parameter may be specified multiple times to customize the delimit behavior.%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_extended_list_read_long_delimit_s, print.set->notable, f_string_eol_s); - fl_print_format(" The %[%r%r%]", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_extended_list_read_long_delimit_s, print.set->notable); - fl_print_format(" values %[%r%]", print.to.stream, print.set->notable, fss_extended_list_read_delimit_mode_name_none_s, print.set->notable); - fl_print_format(" and %[%r%],", print.to.stream, print.set->notable, fss_extended_list_read_delimit_mode_name_all_s, print.set->notable); - fl_print_format(" overrule all other delimit values.%r%r", print.to.stream, f_string_eol_s, f_string_eol_s); + fl_print_format(" The %[%r%r%]", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_extended_list_read_long_delimit_s, print.set->notable); + fl_print_format(" values %[%r%]", print.to, print.set->notable, fss_extended_list_read_delimit_mode_name_none_s, print.set->notable); + fl_print_format(" and %[%r%],", print.to, print.set->notable, fss_extended_list_read_delimit_mode_name_all_s, print.set->notable); + fl_print_format(" overrule all other delimit values.%r%r", print.to, f_string_eol_s, f_string_eol_s); - fl_print_format(" The parameters %[%r%r%]", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_extended_list_read_long_columns_s, print.set->notable); - fl_print_format(" and %[%r%r%]", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_extended_list_read_long_select_s, print.set->notable); - fl_print_format(" refer to a Content column.%r", print.to.stream, f_string_eol_s); - fl_print_format(" The word \"column\" is being loosely defined to refer to a specific Content.%r", print.to.stream, f_string_eol_s); - fl_print_format(" This is not to be confused with a depth.%r", print.to.stream, f_string_eol_s); + fl_print_format(" The parameters %[%r%r%]", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_extended_list_read_long_columns_s, print.set->notable); + fl_print_format(" and %[%r%r%]", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_extended_list_read_long_select_s, print.set->notable); + fl_print_format(" refer to a Content column.%r", print.to, f_string_eol_s); + fl_print_format(" The word \"column\" is being loosely defined to refer to a specific Content.%r", print.to, f_string_eol_s); + fl_print_format(" This is not to be confused with a depth.%r", print.to, f_string_eol_s); - f_print_dynamic_raw(setting->line_last, print.to.stream); + f_print_dynamic_raw(setting->line_last, print.to); f_file_stream_flush(print.to); f_file_stream_unlock(print.to); @@ -124,7 +124,7 @@ extern "C" { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; } - f_print_dynamic_raw(setting->line_first, print.to.stream); + f_print_dynamic_raw(setting->line_first, print.to); return F_none; } @@ -139,7 +139,7 @@ extern "C" { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; } - fll_print_dynamic_raw(setting->line_first, print.to.stream); + fll_print_dynamic_raw(setting->line_first, print.to); return F_none; } @@ -155,7 +155,7 @@ extern "C" { if (setting->flag & (fss_extended_list_read_main_flag_verify_e | fss_extended_list_read_main_flag_file_to_e)) return F_output_not; } - fll_print_dynamic_raw(setting->line_last, print.to.stream); + fll_print_dynamic_raw(setting->line_last, print.to); return F_none; } @@ -171,7 +171,7 @@ extern "C" { if (setting->flag & (fss_extended_list_read_main_flag_verify_e | fss_extended_list_read_main_flag_file_to_e)) return F_output_not; } - f_print_dynamic_raw(setting->line_last, print.to.stream); + f_print_dynamic_raw(setting->line_last, print.to); return F_none; } diff --git a/level_3/fss_extended_list_read/c/private-print.c b/level_3/fss_extended_list_read/c/private-print.c index dc7e45d..ebcc11d 100644 --- a/level_3/fss_extended_list_read/c/private-print.c +++ b/level_3/fss_extended_list_read/c/private-print.c @@ -18,10 +18,10 @@ extern "C" { if (data->option & fss_extended_list_read_data_option_object_d) { if (data->option & fss_extended_list_read_data_option_trim_d) { - fl_print_trim_except_dynamic_partial(data->buffer, data->objects.array[at], delimits_object, main->output.to.stream); + fl_print_trim_except_dynamic_partial(data->buffer, data->objects.array[at], delimits_object, main->output.to); } else { - f_print_except_dynamic_partial(data->buffer, data->objects.array[at], delimits_object, main->output.to.stream); + f_print_except_dynamic_partial(data->buffer, data->objects.array[at], delimits_object, main->output.to); } fss_extended_list_read_print_object_end(main, data); @@ -32,7 +32,7 @@ extern "C" { if (data->contents.array[at].used && data->contents.array[at].array[0].start <= data->contents.array[at].array[0].stop) { fss_extended_list_read_print_content_ignore(main); - f_print_except_in_dynamic_partial(data->buffer, data->contents.array[at].array[0], delimits_content, data->comments, main->output.to.stream); + f_print_except_in_dynamic_partial(data->buffer, data->contents.array[at].array[0], delimits_content, data->comments, main->output.to); fss_extended_list_read_print_content_ignore(main); } @@ -54,10 +54,10 @@ extern "C" { } if (data->option & fss_extended_list_read_data_option_trim_d) { - fl_print_trim_except_dynamic_partial(data->buffer, data->objects.array[at], delimits_object, main->output.to.stream); + fl_print_trim_except_dynamic_partial(data->buffer, data->objects.array[at], delimits_object, main->output.to); } else { - f_print_except_dynamic_partial(data->buffer, data->objects.array[at], delimits_object, main->output.to.stream); + f_print_except_dynamic_partial(data->buffer, data->objects.array[at], delimits_object, main->output.to); } fss_extended_list_read_print_object_end(main, data); @@ -68,7 +68,7 @@ extern "C" { void fss_extended_list_read_print_content_ignore(fll_program_data_t * const main) { if (main->parameters.array[fss_extended_list_read_parameter_pipe_e].result == f_console_result_found_e) { - f_print_dynamic_raw(fss_extended_list_read_pipe_content_ignore_s, main->output.to.stream); + f_print_dynamic_raw(fss_extended_list_read_pipe_content_ignore_s, main->output.to); } } #endif // _di_fss_extended_list_read_print_content_ignore_ @@ -77,12 +77,12 @@ extern "C" { void fss_extended_list_read_print_object_end(fll_program_data_t * const main, fss_extended_list_read_data_t * const data) { if (main->parameters.array[fss_extended_list_read_parameter_pipe_e].result == f_console_result_found_e) { - f_print_dynamic_raw(fss_extended_list_read_pipe_content_start_s, main->output.to.stream); + f_print_dynamic_raw(fss_extended_list_read_pipe_content_start_s, main->output.to); } else { if ((data->option & fss_extended_list_read_data_option_object_d) && (data->option & fss_extended_list_read_data_option_content_d)) { - f_print_dynamic_raw(f_fss_extended_list_open_s, main->output.to.stream); - f_print_dynamic_raw(f_fss_extended_list_open_end_s, main->output.to.stream); + f_print_dynamic_raw(f_fss_extended_list_open_s, main->output.to); + f_print_dynamic_raw(f_fss_extended_list_open_end_s, main->output.to); } } } @@ -92,16 +92,16 @@ extern "C" { void fss_extended_list_read_print_set_end(fll_program_data_t * const main, fss_extended_list_read_data_t * const data) { if (main->parameters.array[fss_extended_list_read_parameter_pipe_e].result == f_console_result_found_e) { - f_print_dynamic_raw(fss_extended_list_read_pipe_content_end_s, main->output.to.stream); + f_print_dynamic_raw(fss_extended_list_read_pipe_content_end_s, main->output.to); } else { if (data->option & fss_extended_list_read_data_option_object_d) { if (data->option & fss_extended_list_read_data_option_content_d) { - f_print_dynamic_raw(f_fss_extended_list_close_s, main->output.to.stream); - f_print_dynamic_raw(f_fss_extended_list_close_end_s, main->output.to.stream); + f_print_dynamic_raw(f_fss_extended_list_close_s, main->output.to); + f_print_dynamic_raw(f_fss_extended_list_close_end_s, main->output.to); } else if (!(data->option & fss_extended_list_read_data_option_content_d)) { - f_print_dynamic_raw(f_fss_eol_s, main->output.to.stream); + f_print_dynamic_raw(f_fss_eol_s, main->output.to); } } } @@ -111,16 +111,16 @@ extern "C" { #ifndef _di_fss_extended_list_read_print_one_ void fss_extended_list_read_print_one(fll_program_data_t * const main) { - f_print_dynamic_raw(f_string_ascii_1_s, main->output.to.stream); - f_print_dynamic_raw(f_string_eol_s, main->output.to.stream); + f_print_dynamic_raw(f_string_ascii_1_s, main->output.to); + f_print_dynamic_raw(f_string_eol_s, main->output.to); } #endif // _di_fss_extended_list_read_print_one_ #ifndef _di_fss_extended_list_read_print_zero_ void fss_extended_list_read_print_zero(fll_program_data_t * const main) { - f_print_dynamic_raw(f_string_ascii_0_s, main->output.to.stream); - f_print_dynamic_raw(f_string_eol_s, main->output.to.stream); + f_print_dynamic_raw(f_string_ascii_0_s, main->output.to); + f_print_dynamic_raw(f_string_eol_s, main->output.to); } #endif // _di_fss_extended_list_read_print_zero_ diff --git a/level_3/fss_extended_list_read/c/private-read.c b/level_3/fss_extended_list_read/c/private-read.c index fc32736..28974f5 100644 --- a/level_3/fss_extended_list_read/c/private-read.c +++ b/level_3/fss_extended_list_read/c/private-read.c @@ -188,11 +188,11 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe value '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%ul%]", main->error.to.stream, main->error.notable, data->depths.array[i].depth, main->error.notable); - fl_print_format("%[' may only be specified once for the parameter '%]", main->error.to.stream, main->error.context, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_extended_list_read_long_depth_s, main->error.notable); - fl_print_format("%['.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe value '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%ul%]", main->error.to, main->error.notable, data->depths.array[i].depth, main->error.notable); + fl_print_format("%[' may only be specified once for the parameter '%]", main->error.to, main->error.context, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_extended_list_read_long_depth_s, main->error.notable); + fl_print_format("%['.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -203,13 +203,13 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_extended_list_read_long_depth_s, main->error.notable); - fl_print_format("%[' may not have the value '%]", main->error.to.stream, main->error.context, main->error.context); - fl_print_format("%[%ul%]", main->error.to.stream, main->error.notable, data->depths.array[i].depth, main->error.notable); - fl_print_format("%[' before the value '%]", main->error.to.stream, main->error.context, main->error.context); - fl_print_format("%[%ul%]", main->error.to.stream, main->error.notable, data->depths.array[j].depth, main->error.notable); - fl_print_format("%['.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_extended_list_read_long_depth_s, main->error.notable); + fl_print_format("%[' may not have the value '%]", main->error.to, main->error.context, main->error.context); + fl_print_format("%[%ul%]", main->error.to, main->error.notable, data->depths.array[i].depth, main->error.notable); + fl_print_format("%[' before the value '%]", main->error.to, main->error.context, main->error.context); + fl_print_format("%[%ul%]", main->error.to, main->error.notable, data->depths.array[j].depth, main->error.notable); + fl_print_format("%['.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -394,7 +394,7 @@ extern "C" { if (status == F_success) return F_none; } else if (data->option & fss_extended_list_read_data_option_columns_d) { - fll_print_format("%ul%r", main->output.to.stream, data->contents.array[i].used, f_string_eol_s); + fll_print_format("%ul%r", main->output.to, data->contents.array[i].used, f_string_eol_s); } else if (data->option & fss_extended_list_read_data_option_total_d) { if ((data->option & fss_extended_list_read_data_option_object_d) && !(data->option & fss_extended_list_read_data_option_content_d)) { @@ -449,7 +449,7 @@ extern "C" { } } // for - fll_print_format("%ul%r", main->output.to.stream, total, f_string_eol_s); + fll_print_format("%ul%r", main->output.to, total, f_string_eol_s); } } else { @@ -526,7 +526,7 @@ extern "C" { fss_extended_list_read_print_one(main); } else { - f_print_except_in_dynamic_partial(data->buffer, range, delimits_content, data->comments, main->output.to.stream); + f_print_except_in_dynamic_partial(data->buffer, range, delimits_content, data->comments, main->output.to); } funlockfile(main->output.to.stream); @@ -555,8 +555,8 @@ extern "C" { else { range.stop = data->contents.array[at].array[0].stop; - f_print_except_in_dynamic_partial(data->buffer, range, delimits_content, data->comments, main->output.to.stream); - f_print_dynamic_raw(f_string_eol_s, main->output.to.stream); + f_print_except_in_dynamic_partial(data->buffer, range, delimits_content, data->comments, main->output.to); + f_print_dynamic_raw(f_string_eol_s, main->output.to); } funlockfile(main->output.to.stream); @@ -594,7 +594,7 @@ extern "C" { } } // for - fll_print_format("%ul%r", main->output.to.stream, max, f_string_eol_s); + fll_print_format("%ul%r", main->output.to, max, f_string_eol_s); return F_none; } @@ -777,7 +777,7 @@ extern "C" { } } else { - fl_print_format("%ul%r", main->output.to.stream, total, f_string_eol_s); + fl_print_format("%ul%r", main->output.to, total, f_string_eol_s); } funlockfile(main->output.to.stream); diff --git a/level_3/fss_extended_list_write/c/fss_extended_list_write.c b/level_3/fss_extended_list_write/c/fss_extended_list_write.c index 33eb064..2024196 100644 --- a/level_3/fss_extended_list_write/c/fss_extended_list_write.c +++ b/level_3/fss_extended_list_write/c/fss_extended_list_write.c @@ -82,9 +82,9 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_extended_list_write_long_file_s, main->error.notable); - fl_print_format("%[' may only be specified once.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_extended_list_write_long_file_s, main->error.notable); + fl_print_format("%[' may only be specified once.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -129,13 +129,13 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_extended_list_write_long_partial_s, main->error.notable); - fl_print_format("%[' parameter only allows either the '%]", main->error.to.stream, main->error.context, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_extended_list_write_long_object_s, main->error.notable); - fl_print_format("%[' parameter or the '%]", main->error.to.stream, main->error.context, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_extended_list_write_long_content_s, main->error.notable); - fl_print_format("%[' parameter, but not both.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_extended_list_write_long_partial_s, main->error.notable); + fl_print_format("%[' parameter only allows either the '%]", main->error.to, main->error.context, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_extended_list_write_long_object_s, main->error.notable); + fl_print_format("%[' parameter or the '%]", main->error.to, main->error.context, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_extended_list_write_long_content_s, main->error.notable); + fl_print_format("%[' parameter, but not both.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -161,11 +161,11 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QEach '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_extended_list_write_long_object_s, main->error.notable); - fl_print_format("%[' parameter must be specified before a '%]", main->error.to.stream, main->error.context, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_extended_list_write_long_content_s, main->error.notable); - fl_print_format("%[' parameter.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QEach '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_extended_list_write_long_object_s, main->error.notable); + fl_print_format("%[' parameter must be specified before a '%]", main->error.to, main->error.context, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_extended_list_write_long_content_s, main->error.notable); + fl_print_format("%[' parameter.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -192,11 +192,11 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThis requires either piped data or the use of the '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_extended_list_write_long_object_s, main->error.notable); - fl_print_format("%[' parameter with the '%]", main->error.to.stream, main->error.context, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_extended_list_write_long_content_s, main->error.notable); - fl_print_format("%[' parameter.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThis requires either piped data or the use of the '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_extended_list_write_long_object_s, main->error.notable); + fl_print_format("%[' parameter with the '%]", main->error.to, main->error.context, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_extended_list_write_long_content_s, main->error.notable); + fl_print_format("%[' parameter.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -209,9 +209,9 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThis '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_extended_list_write_long_partial_s, main->error.notable); - fl_print_format("%[' parameter cannot be used when processing a pipe.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThis '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_extended_list_write_long_partial_s, main->error.notable); + fl_print_format("%[' parameter cannot be used when processing a pipe.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -226,9 +226,9 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_extended_list_write_long_prepend_s, main->error.notable); - fl_print_format("%[' is specified, but no value is given.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_extended_list_write_long_prepend_s, main->error.notable); + fl_print_format("%[' is specified, but no value is given.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -251,9 +251,9 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe value for the parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_extended_list_write_long_prepend_s, main->error.notable); - fl_print_format("%[' must only contain white space.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe value for the parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_extended_list_write_long_prepend_s, main->error.notable); + fl_print_format("%[' must only contain white space.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -268,9 +268,9 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe value for the parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_extended_list_write_long_prepend_s, main->error.notable); - fl_print_format("%[' must not be an empty string.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe value for the parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_extended_list_write_long_prepend_s, main->error.notable); + fl_print_format("%[' must not be an empty string.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -285,9 +285,9 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_extended_list_write_long_ignore_s, main->error.notable); - fl_print_format("%[' was specified, but no values were given.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_extended_list_write_long_ignore_s, main->error.notable); + fl_print_format("%[' was specified, but no values were given.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -301,9 +301,9 @@ extern "C" { if (total_locations * 2 > total_arguments) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_extended_list_write_long_ignore_s, main->error.notable); - fl_print_format("%[' requires two values.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_extended_list_write_long_ignore_s, main->error.notable); + fl_print_format("%[' requires two values.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); @@ -339,8 +339,8 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QWhile processing the '%]%[input pipe%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context, main->error.notable, main->error.notable); - fl_print_format("%['.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QWhile processing the '%]%[input pipe%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context, main->error.notable, main->error.notable); + fl_print_format("%['.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -421,8 +421,8 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QWhile processing the '%]%[input arguments%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context, main->error.notable, main->error.notable); - fl_print_format("%['.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QWhile processing the '%]%[input arguments%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context, main->error.notable, main->error.notable); + fl_print_format("%['.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -430,7 +430,7 @@ extern "C" { else if (main->error.verbosity > f_console_verbosity_quiet_e && main->error.verbosity != f_console_verbosity_error_e && main->parameters.array[fss_extended_list_write_parameter_file_e].result == f_console_result_none_e) { // Ensure there is always a newline at the end, unless in quiet mode. - fll_print_dynamic_raw(f_string_eol_s, main->output.to.stream); + fll_print_dynamic_raw(f_string_eol_s, main->output.to); } } @@ -445,7 +445,7 @@ extern "C" { // Ensure a newline is always put at the end of the program execution, unless in quiet mode. if (main->error.verbosity > f_console_verbosity_quiet_e) { if (F_status_is_error(status)) { - fll_print_dynamic_raw(f_string_eol_s, main->error.to.stream); + fll_print_dynamic_raw(f_string_eol_s, main->error.to); } } diff --git a/level_3/fss_extended_list_write/c/print.c b/level_3/fss_extended_list_write/c/print.c index b907567..001cbd0 100644 --- a/level_3/fss_extended_list_write/c/print.c +++ b/level_3/fss_extended_list_write/c/print.c @@ -10,13 +10,13 @@ extern "C" { f_file_stream_lock(print.to); - f_print_dynamic_raw(setting->line_first, print.to.stream); + f_print_dynamic_raw(setting->line_first, print.to); fll_program_print_help_header(print, fss_extended_list_write_program_name_long_s, fss_extended_list_write_program_version_s); fll_program_print_help_option_standard(print); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); + f_print_dynamic_raw(f_string_eol_s, print.to); fll_program_print_help_option(print, fss_extended_list_write_short_file_s, fss_extended_list_write_long_file_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Specify a file to send data to."); fll_program_print_help_option(print, fss_extended_list_write_short_content_s, fss_extended_list_write_long_content_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, "The Content to write."); @@ -28,28 +28,28 @@ extern "C" { fll_program_print_help_option(print, fss_extended_list_write_short_single_s, fss_extended_list_write_long_single_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Use single quotes."); fll_program_print_help_option(print, fss_extended_list_write_short_trim_s, fss_extended_list_write_long_trim_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Trim Object names."); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); + f_print_dynamic_raw(f_string_eol_s, print.to); + f_print_dynamic_raw(f_string_eol_s, print.to); fll_program_print_help_usage(print, fss_extended_list_write_program_name_s, f_string_empty_s); - fl_print_format("%r The pipe uses the Backspace character '%[\\b%]' (%[U+0008%]) to designate the start of a Content.%r", print.to.stream, f_string_eol_s, print.set->notable, print.set->notable, print.set->notable, print.set->notable, f_string_eol_s); - fl_print_format(" The pipe uses the Form Feed character '%[\\f%]' (%[U+000C%]) to designate the end of the last Content.%r", print.to.stream, print.set->notable, print.set->notable, print.set->notable, print.set->notable, f_string_eol_s); - fl_print_format(" The pipe uses the Vertical Line character '%[\\v%]' (%[U+000B%]) is used to ignore a Content range (use this both before and after the range).%r", print.to.stream, print.set->notable, print.set->notable, print.set->notable, print.set->notable, f_string_eol_s); - fl_print_format(" For the pipe, an Object is terminated by either a Backspace character '%[\\b%]' (%[U+0008%])", print.to.stream, print.set->notable, print.set->notable, print.set->notable, print.set->notable); - fl_print_format(" or a Form Feed character '%[\\f%]' (%[U+000C%]).%r", print.to.stream, print.set->notable, print.set->notable, print.set->notable, print.set->notable, f_string_eol_s); - fl_print_format(" The end of the pipe represents the end of any Object or Content.%r%r", print.to.stream, f_string_eol_s, f_string_eol_s); + fl_print_format("%r The pipe uses the Backspace character '%[\\b%]' (%[U+0008%]) to designate the start of a Content.%r", print.to, f_string_eol_s, print.set->notable, print.set->notable, print.set->notable, print.set->notable, f_string_eol_s); + fl_print_format(" The pipe uses the Form Feed character '%[\\f%]' (%[U+000C%]) to designate the end of the last Content.%r", print.to, print.set->notable, print.set->notable, print.set->notable, print.set->notable, f_string_eol_s); + fl_print_format(" The pipe uses the Vertical Line character '%[\\v%]' (%[U+000B%]) is used to ignore a Content range (use this both before and after the range).%r", print.to, print.set->notable, print.set->notable, print.set->notable, print.set->notable, f_string_eol_s); + fl_print_format(" For the pipe, an Object is terminated by either a Backspace character '%[\\b%]' (%[U+0008%])", print.to, print.set->notable, print.set->notable, print.set->notable, print.set->notable); + fl_print_format(" or a Form Feed character '%[\\f%]' (%[U+000C%]).%r", print.to, print.set->notable, print.set->notable, print.set->notable, print.set->notable, f_string_eol_s); + fl_print_format(" The end of the pipe represents the end of any Object or Content.%r%r", print.to, f_string_eol_s, f_string_eol_s); - fl_print_format(" The FSS-0003 (Extended List) specification does not support quoted names, therefore the parameters '%[%r%r%]'", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_extended_list_write_long_single_s, print.set->notable); - fl_print_format(" and '%[%r%r%]' do nothing.%r%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_extended_list_write_long_double_s, print.set->notable, f_string_eol_s, f_string_eol_s); + fl_print_format(" The FSS-0003 (Extended List) specification does not support quoted names, therefore the parameters '%[%r%r%]'", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_extended_list_write_long_single_s, print.set->notable); + fl_print_format(" and '%[%r%r%]' do nothing.%r%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_extended_list_write_long_double_s, print.set->notable, f_string_eol_s, f_string_eol_s); - fl_print_format(" The parameter '%[%r%r%]' designates to not escape any valid nested Object or Content within some Content.%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_extended_list_write_long_ignore_s, print.set->notable, f_string_eol_s); - fl_print_format(" This parameter requires two values.%r", print.to.stream, f_string_eol_s); - fl_print_format(" This parameter is not used for ignoring anything from the input pipe.%r", print.to.stream, f_string_eol_s); - fl_print_format(" This parameter must be specified after a '%[%r%r%]'", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_extended_list_write_long_content_s, print.set->notable); - fl_print_format(" parameter and this applies only to the Content represented by that specific '%[%r%r%]' parameter.%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_extended_list_write_long_content_s, print.set->notable, f_string_eol_s); + fl_print_format(" The parameter '%[%r%r%]' designates to not escape any valid nested Object or Content within some Content.%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_extended_list_write_long_ignore_s, print.set->notable, f_string_eol_s); + fl_print_format(" This parameter requires two values.%r", print.to, f_string_eol_s); + fl_print_format(" This parameter is not used for ignoring anything from the input pipe.%r", print.to, f_string_eol_s); + fl_print_format(" This parameter must be specified after a '%[%r%r%]'", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_extended_list_write_long_content_s, print.set->notable); + fl_print_format(" parameter and this applies only to the Content represented by that specific '%[%r%r%]' parameter.%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_extended_list_write_long_content_s, print.set->notable, f_string_eol_s); - f_print_dynamic_raw(setting->line_last, print.to.stream); + f_print_dynamic_raw(setting->line_last, print.to); f_file_stream_flush(print.to); f_file_stream_unlock(print.to); @@ -67,7 +67,7 @@ extern "C" { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; } - f_print_dynamic_raw(setting->line_first, print.to.stream); + f_print_dynamic_raw(setting->line_first, print.to); return F_none; } @@ -82,7 +82,7 @@ extern "C" { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; } - fll_print_dynamic_raw(setting->line_first, print.to.stream); + fll_print_dynamic_raw(setting->line_first, print.to); return F_none; } @@ -98,7 +98,7 @@ extern "C" { if (setting->flag & (fss_extended_list_write_main_flag_verify_e | fss_extended_list_write_main_flag_file_to_e)) return F_output_not; } - fll_print_dynamic_raw(setting->line_last, print.to.stream); + fll_print_dynamic_raw(setting->line_last, print.to); return F_none; } @@ -114,7 +114,7 @@ extern "C" { if (setting->flag & (fss_extended_list_write_main_flag_verify_e | fss_extended_list_write_main_flag_file_to_e)) return F_output_not; } - f_print_dynamic_raw(setting->line_last, print.to.stream); + f_print_dynamic_raw(setting->line_last, print.to); return F_none; } diff --git a/level_3/fss_extended_list_write/c/private-write.c b/level_3/fss_extended_list_write/c/private-write.c index e2b8748..f22c039 100644 --- a/level_3/fss_extended_list_write/c/private-write.c +++ b/level_3/fss_extended_list_write/c/private-write.c @@ -13,13 +13,13 @@ extern "C" { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QMust specify the '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_extended_list_write_long_object_s, main->error.notable); - fl_print_format("%[' parameter and the '%]", main->error.to.stream, main->error.context, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_extended_list_write_long_content_s, main->error.notable); - fl_print_format("%[' parameter the same number of times when not specifying the '%]", main->error.to.stream, main->error.context, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_extended_list_write_long_partial_s, main->error.notable); - fl_print_format("%[' parameter.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QMust specify the '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_extended_list_write_long_object_s, main->error.notable); + fl_print_format("%[' parameter and the '%]", main->error.to, main->error.context, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_extended_list_write_long_content_s, main->error.notable); + fl_print_format("%[' parameter the same number of times when not specifying the '%]", main->error.to, main->error.context, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_extended_list_write_long_partial_s, main->error.notable); + fl_print_format("%[' parameter.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -32,11 +32,11 @@ extern "C" { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe FSS-0003 (Extended List) standard does not support end of line character '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[\\n%]", main->error.to.stream, main->error.notable, main->error.notable); - fl_print_format("%[' (%]", main->error.to.stream, main->error.context, main->error.context); - fl_print_format("%[U+000A%]", main->error.to.stream, main->error.notable, main->error.notable); - fl_print_format("%[) in objects.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe FSS-0003 (Extended List) standard does not support end of line character '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[\\n%]", main->error.to, main->error.notable, main->error.notable); + fl_print_format("%[' (%]", main->error.to, main->error.context, main->error.context); + fl_print_format("%[U+000A%]", main->error.to, main->error.notable, main->error.notable); + fl_print_format("%[) in objects.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -49,9 +49,9 @@ extern "C" { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, symbol, parameter, main->error.notable); - fl_print_format("%[' is specified, but no value is given.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, symbol, parameter, main->error.notable); + fl_print_format("%[' is specified, but no value is given.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -131,7 +131,7 @@ extern "C" { } } - fll_print_dynamic(*buffer, output.stream); + fll_print_dynamic(*buffer, output); buffer->used = 0; @@ -271,7 +271,7 @@ extern "C" { if (block.string[range.start] == fss_extended_list_write_pipe_content_start_s.string[0]) { if (main->error.verbosity > f_console_verbosity_quiet_e) { - fll_print_format("%r%[%QThe FSS-0003 (Extended List) standard only supports one content per object.%]%r", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context, f_string_eol_s); + fll_print_format("%r%[%QThe FSS-0003 (Extended List) standard only supports one content per object.%]%r", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context, f_string_eol_s); } status = F_status_set_error(F_supported_not); diff --git a/level_3/fss_extended_read/c/fss_extended_read.c b/level_3/fss_extended_read/c/fss_extended_read.c index c08a0e1..24d76c0 100644 --- a/level_3/fss_extended_read/c/fss_extended_read.c +++ b/level_3/fss_extended_read/c/fss_extended_read.c @@ -119,9 +119,9 @@ extern "C" { if (main->parameters.array[parameter_code[i]].result == f_console_result_found_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, parameter_name[i], main->error.notable); - fl_print_format("%[' requires a %s.%]%r", main->error.to.stream, main->error.context, parameter_message[i], main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, parameter_name[i], main->error.notable); + fl_print_format("%[' requires a %s.%]%r", main->error.to, main->error.context, parameter_message[i], main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); @@ -214,9 +214,9 @@ extern "C" { if (!length) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe value for the parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_extended_read_long_delimit_s, main->error.notable); - fl_print_format("%[' must not be empty.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe value for the parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_extended_read_long_delimit_s, main->error.notable); + fl_print_format("%[' must not be empty.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); @@ -347,9 +347,9 @@ extern "C" { if (F_status_is_error_not(status) && main->parameters.array[fss_extended_read_parameter_select_e].result == f_console_result_found_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_extended_read_long_select_s, main->error.notable); - fl_print_format("%[' parameter requires a positive number.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_extended_read_long_select_s, main->error.notable); + fl_print_format("%[' parameter requires a positive number.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); @@ -518,7 +518,7 @@ extern "C" { fss_extended_read_data_delete_simple(&data); } else { - fll_print_format("%r%[%QYou failed to specify one or more files.%]%r", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context, f_string_eol_s); + fll_print_format("%r%[%QYou failed to specify one or more files.%]%r", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context, f_string_eol_s); status = F_status_set_error(F_parameter); } @@ -526,7 +526,7 @@ extern "C" { if (F_status_set_fine(status) == F_interrupt) { f_file_stream_flush(main->output.to); - fll_print_dynamic_raw(f_string_eol_s, main->output.to.stream); + fll_print_dynamic_raw(f_string_eol_s, main->output.to); } } diff --git a/level_3/fss_extended_read/c/print.c b/level_3/fss_extended_read/c/print.c index 1adb05a..bce41be 100644 --- a/level_3/fss_extended_read/c/print.c +++ b/level_3/fss_extended_read/c/print.c @@ -10,13 +10,13 @@ extern "C" { f_file_stream_lock(print.to); - f_print_dynamic_raw(setting->line_first, print.to.stream); + f_print_dynamic_raw(setting->line_first, print.to); fll_program_print_help_header(print, fss_extended_read_program_name_long_s, fss_extended_read_program_version_s); fll_program_print_help_option_standard(print); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); + f_print_dynamic_raw(f_string_eol_s, print.to); fll_program_print_help_option(print, fss_extended_read_short_at_s, fss_extended_read_long_at_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Select Object at this numeric index."); fll_program_print_help_option(print, fss_extended_read_short_content_s, fss_extended_read_long_content_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Print the Content (default)."); @@ -33,80 +33,80 @@ extern "C" { fll_program_print_help_option(print, fss_extended_read_short_total_s, fss_extended_read_long_total_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Print the total number of lines."); fll_program_print_help_option(print, fss_extended_read_short_trim_s, fss_extended_read_long_trim_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Trim Object names on select or print."); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); + f_print_dynamic_raw(f_string_eol_s, print.to); + f_print_dynamic_raw(f_string_eol_s, print.to); fll_program_print_help_usage(print, fss_extended_read_program_name_s, fll_program_parameter_filenames_s); - fl_print_format("%r %[Notes:%]%r", print.to.stream, f_string_eol_s, print.set->important, print.set->important, f_string_eol_s); + fl_print_format("%r %[Notes:%]%r", print.to, f_string_eol_s, print.set->important, print.set->important, f_string_eol_s); - fl_print_format(" This program will print the Content associated with the given Object and Content main based on the FSS-0001 Extended standard.%r%r", print.to.stream, f_string_eol_s, f_string_eol_s); + fl_print_format(" This program will print the Content associated with the given Object and Content main based on the FSS-0001 Extended standard.%r%r", print.to, f_string_eol_s, f_string_eol_s); - fl_print_format(" All numeric positions (indexes) start at 0 instead of 1.%r", print.to.stream, f_string_eol_s); - fl_print_format(" For example, a file of 17 lines would range from 0 to 16.%r%r", print.to.stream, f_string_eol_s, f_string_eol_s); + fl_print_format(" All numeric positions (indexes) start at 0 instead of 1.%r", print.to, f_string_eol_s); + fl_print_format(" For example, a file of 17 lines would range from 0 to 16.%r%r", print.to, f_string_eol_s, f_string_eol_s); - fl_print_format(" When using the %[%r%r%] option, an order of operations is enforced on the parameters.%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_extended_read_long_depth_s, print.set->notable, f_string_eol_s); + fl_print_format(" When using the %[%r%r%] option, an order of operations is enforced on the parameters.%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_extended_read_long_depth_s, print.set->notable, f_string_eol_s); - fl_print_format(" When this order of operations is in effect, parameters to the right of a depth parameter are influenced by that depth parameter:%r", print.to.stream, f_string_eol_s); + fl_print_format(" When this order of operations is in effect, parameters to the right of a depth parameter are influenced by that depth parameter:%r", print.to, f_string_eol_s); - fl_print_format(" %[%r%r%]: An Object index at the specified depth.%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_extended_read_long_at_s, print.set->notable, f_string_eol_s); - fl_print_format(" %[%r%r%]: A new depth within the specified depth, indexed from the root.%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_extended_read_long_depth_s, print.set->notable, f_string_eol_s); - fl_print_format(" %[%r%r%]: An Object name at the specified depth.%r%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_extended_read_long_name_s, print.set->notable, f_string_eol_s, f_string_eol_s); + fl_print_format(" %[%r%r%]: An Object index at the specified depth.%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_extended_read_long_at_s, print.set->notable, f_string_eol_s); + fl_print_format(" %[%r%r%]: A new depth within the specified depth, indexed from the root.%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_extended_read_long_depth_s, print.set->notable, f_string_eol_s); + fl_print_format(" %[%r%r%]: An Object name at the specified depth.%r%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_extended_read_long_name_s, print.set->notable, f_string_eol_s, f_string_eol_s); - fl_print_format(" The parameter %[%r%r%] must be in numeric order, but values in between may be skipped.%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_extended_read_long_depth_s, print.set->notable, f_string_eol_s); - fl_print_format(" ('-d 0 -a 1 -d 2 -a 2' would specify index 1 at depth 0, any index at depth 1, and index 2 at depth 2.)%r", print.to.stream, f_string_eol_s); - fl_print_format(" ('-d 2 -a 1 -d 0 -a 2' would be invalid because depth 2 is before depth 1.)%r%r", print.to.stream, f_string_eol_s, f_string_eol_s); + fl_print_format(" The parameter %[%r%r%] must be in numeric order, but values in between may be skipped.%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_extended_read_long_depth_s, print.set->notable, f_string_eol_s); + fl_print_format(" ('-d 0 -a 1 -d 2 -a 2' would specify index 1 at depth 0, any index at depth 1, and index 2 at depth 2.)%r", print.to, f_string_eol_s); + fl_print_format(" ('-d 2 -a 1 -d 0 -a 2' would be invalid because depth 2 is before depth 1.)%r%r", print.to, f_string_eol_s, f_string_eol_s); - fl_print_format(" The parameter %[%r%r%] selects a Content column.%r%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_extended_read_long_select_s, print.set->notable, f_string_eol_s, f_string_eol_s); + fl_print_format(" The parameter %[%r%r%] selects a Content column.%r%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_extended_read_long_select_s, print.set->notable, f_string_eol_s, f_string_eol_s); - fl_print_format(" Specify both %[%r%r%]", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_extended_read_long_object_s, print.set->notable); - fl_print_format(" and the %[%r%r%] parameters to get the total objects.%r%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_extended_read_long_total_s, print.set->notable, f_string_eol_s, f_string_eol_s); + fl_print_format(" Specify both %[%r%r%]", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_extended_read_long_object_s, print.set->notable); + fl_print_format(" and the %[%r%r%] parameters to get the total objects.%r%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_extended_read_long_total_s, print.set->notable, f_string_eol_s, f_string_eol_s); - fl_print_format(" When both %[%r%r%]", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_extended_read_long_at_s, print.set->notable); - fl_print_format(" and %[%r%r%] parameters are specified (at the same depth),", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_extended_read_long_name_s, print.set->notable); - fl_print_format(" the %[%r%r%] parameter value will be treated as a position relative to the specified", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_extended_read_long_at_s, print.set->notable); - fl_print_format(" %[%r%r%] parameter value.%r%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_extended_read_long_name_s, print.set->notable, f_string_eol_s, f_string_eol_s); + fl_print_format(" When both %[%r%r%]", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_extended_read_long_at_s, print.set->notable); + fl_print_format(" and %[%r%r%] parameters are specified (at the same depth),", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_extended_read_long_name_s, print.set->notable); + fl_print_format(" the %[%r%r%] parameter value will be treated as a position relative to the specified", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_extended_read_long_at_s, print.set->notable); + fl_print_format(" %[%r%r%] parameter value.%r%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_extended_read_long_name_s, print.set->notable, f_string_eol_s, f_string_eol_s); - fl_print_format(" This program may support parameters, such as %[%r%r%]", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_extended_read_long_depth_s, print.set->notable); - fl_print_format(" or %[%r%r%], even if not supported by the standard.%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_extended_read_long_select_s, print.set->notable, f_string_eol_s); - fl_print_format(" This is done to help ensure consistency for scripting.%r%r", print.to.stream, f_string_eol_s, f_string_eol_s); + fl_print_format(" This program may support parameters, such as %[%r%r%]", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_extended_read_long_depth_s, print.set->notable); + fl_print_format(" or %[%r%r%], even if not supported by the standard.%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_extended_read_long_select_s, print.set->notable, f_string_eol_s); + fl_print_format(" This is done to help ensure consistency for scripting.%r%r", print.to, f_string_eol_s, f_string_eol_s); - fl_print_format(" For parameters like %[%r%r%],", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_extended_read_long_depth_s, print.set->notable); - fl_print_format(" if the standard doesn't support nested Content, then only a depth of 0 would be valid.%r", print.to.stream, f_string_eol_s); + fl_print_format(" For parameters like %[%r%r%],", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_extended_read_long_depth_s, print.set->notable); + fl_print_format(" if the standard doesn't support nested Content, then only a depth of 0 would be valid.%r", print.to, f_string_eol_s); - fl_print_format(" For parameters like %[%r%r%],", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_extended_read_long_select_s, print.set->notable); - fl_print_format(" if the standard doesn't support multiple Content groups, then only a select of 0 would be valid.%r%r", print.to.stream, f_string_eol_s, f_string_eol_s); + fl_print_format(" For parameters like %[%r%r%],", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_extended_read_long_select_s, print.set->notable); + fl_print_format(" if the standard doesn't support multiple Content groups, then only a select of 0 would be valid.%r%r", print.to, f_string_eol_s, f_string_eol_s); - fl_print_format(" The parameter %[%r%r%]", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_extended_read_long_trim_s, print.set->notable); - fl_print_format(" will remove leading and trailing white spaces when selecting objects or when printing objects.%r%r", print.to.stream, f_string_eol_s, f_string_eol_s); + fl_print_format(" The parameter %[%r%r%]", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_extended_read_long_trim_s, print.set->notable); + fl_print_format(" will remove leading and trailing white spaces when selecting objects or when printing objects.%r%r", print.to, f_string_eol_s, f_string_eol_s); - fl_print_format(" When specifying both the %[%r%r%]", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_extended_read_long_object_s, print.set->notable); - fl_print_format(" parameter and the %[%r%r%] parameter, the entire Object and Content are printed, including the formatting.%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_extended_read_long_content_s, print.set->notable, f_string_eol_s); - fl_print_format(" Both the Object and Content printed are already escaped.%r", print.to.stream, f_string_eol_s); - fl_print_format(" Both the Object and Content are separated by a space.%r%r", print.to.stream, f_string_eol_s, f_string_eol_s); + fl_print_format(" When specifying both the %[%r%r%]", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_extended_read_long_object_s, print.set->notable); + fl_print_format(" parameter and the %[%r%r%] parameter, the entire Object and Content are printed, including the formatting.%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_extended_read_long_content_s, print.set->notable, f_string_eol_s); + fl_print_format(" Both the Object and Content printed are already escaped.%r", print.to, f_string_eol_s); + fl_print_format(" Both the Object and Content are separated by a space.%r%r", print.to, f_string_eol_s, f_string_eol_s); - fl_print_format(" The parameter %[%r%r%] accepts the following:%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_extended_read_long_delimit_s, print.set->notable, f_string_eol_s); - fl_print_format(" - %[%r%]: Do not apply delimits.%r", print.to.stream, print.set->notable, fss_extended_read_delimit_mode_name_none_s, print.set->notable, f_string_eol_s); - fl_print_format(" - %[%r%]: (default) Apply all delimits.%r", print.to.stream, print.set->notable, fss_extended_read_delimit_mode_name_all_s, print.set->notable, f_string_eol_s); - fl_print_format(" - %[%r%]: Apply delimits for Objects.%r", print.to.stream, print.set->notable, fss_extended_read_delimit_mode_name_object_s, print.set->notable, f_string_eol_s); - fl_print_format(" - A number, 0 or greater: apply delimits for Content at the specified depth.%r", print.to.stream, f_string_eol_s); - fl_print_format(" - A number, 0 or greater, followed by a %[%r%]: (such as '1+') apply delimits for Content at the specified depth and any greater depth (numerically).%r", print.to.stream, print.set->notable, fss_extended_read_delimit_mode_name_greater_s, print.set->notable, f_string_eol_s, f_string_eol_s); - fl_print_format(" - A number, 0 or lesser, followed by a %[%r%]: (such as '1-') apply delimits for Content at the specified depth and any lesser depth (numerically).%r%r", print.to.stream, print.set->notable, fss_extended_read_delimit_mode_name_lesser_s, print.set->notable, f_string_eol_s, f_string_eol_s); + fl_print_format(" The parameter %[%r%r%] accepts the following:%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_extended_read_long_delimit_s, print.set->notable, f_string_eol_s); + fl_print_format(" - %[%r%]: Do not apply delimits.%r", print.to, print.set->notable, fss_extended_read_delimit_mode_name_none_s, print.set->notable, f_string_eol_s); + fl_print_format(" - %[%r%]: (default) Apply all delimits.%r", print.to, print.set->notable, fss_extended_read_delimit_mode_name_all_s, print.set->notable, f_string_eol_s); + fl_print_format(" - %[%r%]: Apply delimits for Objects.%r", print.to, print.set->notable, fss_extended_read_delimit_mode_name_object_s, print.set->notable, f_string_eol_s); + fl_print_format(" - A number, 0 or greater: apply delimits for Content at the specified depth.%r", print.to, f_string_eol_s); + fl_print_format(" - A number, 0 or greater, followed by a %[%r%]: (such as '1+') apply delimits for Content at the specified depth and any greater depth (numerically).%r", print.to, print.set->notable, fss_extended_read_delimit_mode_name_greater_s, print.set->notable, f_string_eol_s, f_string_eol_s); + fl_print_format(" - A number, 0 or lesser, followed by a %[%r%]: (such as '1-') apply delimits for Content at the specified depth and any lesser depth (numerically).%r%r", print.to, print.set->notable, fss_extended_read_delimit_mode_name_lesser_s, print.set->notable, f_string_eol_s, f_string_eol_s); - fl_print_format(" The %[%r%r%] parameter may be specified multiple times to customize the delimit behavior.%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_extended_read_long_delimit_s, print.set->notable, f_string_eol_s); + fl_print_format(" The %[%r%r%] parameter may be specified multiple times to customize the delimit behavior.%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_extended_read_long_delimit_s, print.set->notable, f_string_eol_s); - fl_print_format(" The %[%r%r%]", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_extended_read_long_delimit_s, print.set->notable); - fl_print_format(" values %[%r%]", print.to.stream, print.set->notable, fss_extended_read_delimit_mode_name_none_s, print.set->notable); - fl_print_format(" and %[%r%],", print.to.stream, print.set->notable, fss_extended_read_delimit_mode_name_all_s, print.set->notable); - fl_print_format(" overrule all other delimit values.%r%r", print.to.stream, f_string_eol_s, f_string_eol_s); + fl_print_format(" The %[%r%r%]", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_extended_read_long_delimit_s, print.set->notable); + fl_print_format(" values %[%r%]", print.to, print.set->notable, fss_extended_read_delimit_mode_name_none_s, print.set->notable); + fl_print_format(" and %[%r%],", print.to, print.set->notable, fss_extended_read_delimit_mode_name_all_s, print.set->notable); + fl_print_format(" overrule all other delimit values.%r%r", print.to, f_string_eol_s, f_string_eol_s); - fl_print_format(" The parameters %[%r%r%]", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_extended_read_long_columns_s, print.set->notable); - fl_print_format(" and %[%r%r%]", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_extended_read_long_select_s, print.set->notable); - fl_print_format(" refer to a Content column.%r", print.to.stream, f_string_eol_s); - fl_print_format(" The word \"column\" is being loosely defined to refer to a specific Content.%r", print.to.stream, f_string_eol_s); - fl_print_format(" This is not to be confused with a depth.%r", print.to.stream, f_string_eol_s); + fl_print_format(" The parameters %[%r%r%]", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_extended_read_long_columns_s, print.set->notable); + fl_print_format(" and %[%r%r%]", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_extended_read_long_select_s, print.set->notable); + fl_print_format(" refer to a Content column.%r", print.to, f_string_eol_s); + fl_print_format(" The word \"column\" is being loosely defined to refer to a specific Content.%r", print.to, f_string_eol_s); + fl_print_format(" This is not to be confused with a depth.%r", print.to, f_string_eol_s); - f_print_dynamic_raw(setting->line_last, print.to.stream); + f_print_dynamic_raw(setting->line_last, print.to); f_file_stream_flush(print.to); f_file_stream_unlock(print.to); @@ -124,7 +124,7 @@ extern "C" { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; } - f_print_dynamic_raw(setting->line_first, print.to.stream); + f_print_dynamic_raw(setting->line_first, print.to); return F_none; } @@ -139,7 +139,7 @@ extern "C" { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; } - fll_print_dynamic_raw(setting->line_first, print.to.stream); + fll_print_dynamic_raw(setting->line_first, print.to); return F_none; } @@ -155,7 +155,7 @@ extern "C" { if (setting->flag & (fss_extended_read_main_flag_verify_e | fss_extended_read_main_flag_file_to_e)) return F_output_not; } - fll_print_dynamic_raw(setting->line_last, print.to.stream); + fll_print_dynamic_raw(setting->line_last, print.to); return F_none; } @@ -171,7 +171,7 @@ extern "C" { if (setting->flag & (fss_extended_read_main_flag_verify_e | fss_extended_read_main_flag_file_to_e)) return F_output_not; } - f_print_dynamic_raw(setting->line_last, print.to.stream); + f_print_dynamic_raw(setting->line_last, print.to); return F_none; } diff --git a/level_3/fss_extended_read/c/private-print.c b/level_3/fss_extended_read/c/private-print.c index f318c56..7dc8a8a 100644 --- a/level_3/fss_extended_read/c/private-print.c +++ b/level_3/fss_extended_read/c/private-print.c @@ -20,24 +20,24 @@ extern "C" { if (data->option & fss_extended_read_data_option_object_d) { if (data->option & fss_extended_read_data_option_trim_d) { if ((data->option & fss_extended_read_data_option_original_d) && data->quotes_object.array[at]) { - f_print_dynamic_raw(data->quotes_object.array[at] == f_fss_quote_type_single_e ? f_fss_quote_single_s : f_fss_quote_double_s, main->output.to.stream); + f_print_dynamic_raw(data->quotes_object.array[at] == f_fss_quote_type_single_e ? f_fss_quote_single_s : f_fss_quote_double_s, main->output.to); } - fl_print_trim_except_dynamic_partial(data->buffer, data->objects.array[at], delimits_object, main->output.to.stream); + fl_print_trim_except_dynamic_partial(data->buffer, data->objects.array[at], delimits_object, main->output.to); if ((data->option & fss_extended_read_data_option_original_d) && data->quotes_object.array[at]) { - f_print_dynamic_raw(data->quotes_object.array[at] == f_fss_quote_type_single_e ? f_fss_quote_single_s : f_fss_quote_double_s, main->output.to.stream); + f_print_dynamic_raw(data->quotes_object.array[at] == f_fss_quote_type_single_e ? f_fss_quote_single_s : f_fss_quote_double_s, main->output.to); } } else { if ((data->option & fss_extended_read_data_option_original_d) && data->quotes_object.array[at]) { - f_print_dynamic_raw(data->quotes_object.array[at] == f_fss_quote_type_single_e ? f_fss_quote_single_s : f_fss_quote_double_s, main->output.to.stream); + f_print_dynamic_raw(data->quotes_object.array[at] == f_fss_quote_type_single_e ? f_fss_quote_single_s : f_fss_quote_double_s, main->output.to); } - f_print_except_dynamic_partial(data->buffer, data->objects.array[at], delimits_object, main->output.to.stream); + f_print_except_dynamic_partial(data->buffer, data->objects.array[at], delimits_object, main->output.to); if ((data->option & fss_extended_read_data_option_original_d) && data->quotes_object.array[at]) { - f_print_dynamic_raw(data->quotes_object.array[at] == f_fss_quote_type_single_e ? f_fss_quote_single_s : f_fss_quote_double_s, main->output.to.stream); + f_print_dynamic_raw(data->quotes_object.array[at] == f_fss_quote_type_single_e ? f_fss_quote_single_s : f_fss_quote_double_s, main->output.to); } } @@ -54,13 +54,13 @@ extern "C" { content_printed = F_true; if ((data->option & fss_extended_read_data_option_original_d) && data->quotes_content.array[at].array[data->select]) { - f_print_dynamic_raw(data->quotes_content.array[at].array[data->select] == f_fss_quote_type_single_e ? f_fss_quote_single_s : f_fss_quote_double_s, main->output.to.stream); + f_print_dynamic_raw(data->quotes_content.array[at].array[data->select] == f_fss_quote_type_single_e ? f_fss_quote_single_s : f_fss_quote_double_s, main->output.to); } - f_print_except_dynamic_partial(data->buffer, data->contents.array[at].array[data->select], delimits_content, main->output.to.stream); + f_print_except_dynamic_partial(data->buffer, data->contents.array[at].array[data->select], delimits_content, main->output.to); if ((data->option & fss_extended_read_data_option_original_d) && data->quotes_content.array[at].array[data->select]) { - f_print_dynamic_raw(data->quotes_content.array[at].array[data->select] == f_fss_quote_type_single_e ? f_fss_quote_single_s : f_fss_quote_double_s, main->output.to.stream); + f_print_dynamic_raw(data->quotes_content.array[at].array[data->select] == f_fss_quote_type_single_e ? f_fss_quote_single_s : f_fss_quote_double_s, main->output.to); } } } @@ -74,13 +74,13 @@ extern "C" { content_printed = F_true; if ((data->option & fss_extended_read_data_option_original_d) && data->quotes_content.array[at].array[i]) { - f_print_dynamic_raw(data->quotes_content.array[at].array[i] == f_fss_quote_type_single_e ? f_fss_quote_single_s : f_fss_quote_double_s, main->output.to.stream); + f_print_dynamic_raw(data->quotes_content.array[at].array[i] == f_fss_quote_type_single_e ? f_fss_quote_single_s : f_fss_quote_double_s, main->output.to); } - f_print_except_dynamic_partial(data->buffer, data->contents.array[at].array[i], delimits_content, main->output.to.stream); + f_print_except_dynamic_partial(data->buffer, data->contents.array[at].array[i], delimits_content, main->output.to); if ((data->option & fss_extended_read_data_option_original_d) && data->quotes_content.array[at].array[i]) { - f_print_dynamic_raw(data->quotes_content.array[at].array[i] == f_fss_quote_type_single_e ? f_fss_quote_single_s : f_fss_quote_double_s, main->output.to.stream); + f_print_dynamic_raw(data->quotes_content.array[at].array[i] == f_fss_quote_type_single_e ? f_fss_quote_single_s : f_fss_quote_double_s, main->output.to); } if (i + 1 < data->contents.array[at].used && data->contents.array[at].array[i + 1].start <= data->contents.array[at].array[i + 1].stop) { @@ -157,10 +157,10 @@ extern "C" { void fss_extended_read_print_content_end(fll_program_data_t * const main) { if (main->parameters.array[fss_extended_read_parameter_pipe_e].result == f_console_result_found_e) { - f_print_dynamic_raw(fss_extended_read_pipe_content_start_s, main->output.to.stream); + f_print_dynamic_raw(fss_extended_read_pipe_content_start_s, main->output.to); } else { - f_print_dynamic_raw(f_fss_space_s, main->output.to.stream); + f_print_dynamic_raw(f_fss_space_s, main->output.to); } } #endif // _di_fss_extended_read_print_content_end_ @@ -169,10 +169,10 @@ extern "C" { void fss_extended_read_print_object_end(fll_program_data_t * const main) { if (main->parameters.array[fss_extended_read_parameter_pipe_e].result == f_console_result_found_e) { - f_print_dynamic_raw(fss_extended_read_pipe_content_end_s, main->output.to.stream); + f_print_dynamic_raw(fss_extended_read_pipe_content_end_s, main->output.to); } else { - f_print_dynamic_raw(f_fss_space_s, main->output.to.stream); + f_print_dynamic_raw(f_fss_space_s, main->output.to); } } #endif // _di_fss_extended_read_print_object_end_ @@ -180,8 +180,8 @@ extern "C" { #ifndef _di_fss_extended_read_print_one_ void fss_extended_read_print_one(fll_program_data_t * const main) { - f_print_dynamic_raw(f_string_ascii_1_s, main->output.to.stream); - f_print_dynamic_raw(f_string_eol_s, main->output.to.stream); + f_print_dynamic_raw(f_string_ascii_1_s, main->output.to); + f_print_dynamic_raw(f_string_eol_s, main->output.to); } #endif // _di_fss_extended_read_print_one_ @@ -189,10 +189,10 @@ extern "C" { void fss_extended_read_print_set_end(fll_program_data_t * const main) { if (main->parameters.array[fss_extended_read_parameter_pipe_e].result == f_console_result_found_e) { - f_print_dynamic_raw(fss_extended_read_pipe_content_end_s, main->output.to.stream); + f_print_dynamic_raw(fss_extended_read_pipe_content_end_s, main->output.to); } else { - f_print_dynamic_raw(f_fss_eol_s, main->output.to.stream); + f_print_dynamic_raw(f_fss_eol_s, main->output.to); } } #endif // _di_fss_extended_read_print_set_end_ @@ -200,8 +200,8 @@ extern "C" { #ifndef _di_fss_extended_read_print_zero_ void fss_extended_read_print_zero(fll_program_data_t * const main) { - f_print_dynamic_raw(f_string_ascii_0_s, main->output.to.stream); - f_print_dynamic_raw(f_string_eol_s, main->output.to.stream); + f_print_dynamic_raw(f_string_ascii_0_s, main->output.to); + f_print_dynamic_raw(f_string_eol_s, main->output.to); } #endif // _di_fss_extended_read_print_zero_ diff --git a/level_3/fss_extended_read/c/private-read.c b/level_3/fss_extended_read/c/private-read.c index 6a8356e..160a3c6 100644 --- a/level_3/fss_extended_read/c/private-read.c +++ b/level_3/fss_extended_read/c/private-read.c @@ -192,11 +192,11 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe value '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%ul%]", main->error.to.stream, main->error.notable, data->depths.array[i].depth, main->error.notable); - fl_print_format("%[' may only be specified once for the parameter '%]", main->error.to.stream, main->error.context, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_extended_read_long_depth_s, main->error.notable); - fl_print_format("%['.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe value '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%ul%]", main->error.to, main->error.notable, data->depths.array[i].depth, main->error.notable); + fl_print_format("%[' may only be specified once for the parameter '%]", main->error.to, main->error.context, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_extended_read_long_depth_s, main->error.notable); + fl_print_format("%['.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -207,13 +207,13 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_extended_read_long_depth_s, main->error.notable); - fl_print_format("%[' may not have the value '%]", main->error.to.stream, main->error.context, main->error.context); - fl_print_format("%[%ul%]", main->error.to.stream, main->error.notable, data->depths.array[i].depth, main->error.notable); - fl_print_format("%[' before the value '%]", main->error.to.stream, main->error.context, main->error.context); - fl_print_format("%[%ul%]", main->error.to.stream, main->error.notable, data->depths.array[j].depth, main->error.notable); - fl_print_format("%['.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_extended_read_long_depth_s, main->error.notable); + fl_print_format("%[' may not have the value '%]", main->error.to, main->error.context, main->error.context); + fl_print_format("%[%ul%]", main->error.to, main->error.notable, data->depths.array[i].depth, main->error.notable); + fl_print_format("%[' before the value '%]", main->error.to, main->error.context, main->error.context); + fl_print_format("%[%ul%]", main->error.to, main->error.notable, data->depths.array[j].depth, main->error.notable); + fl_print_format("%['.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -410,18 +410,18 @@ extern "C" { } else { if ((data->option & fss_extended_read_data_option_original_d) && data->quotes_object.array[at]) { - f_print_character_safely(data->quotes_object.array[at] == f_fss_quote_type_single_e ? f_fss_quote_single_s.string[0] : f_fss_quote_double_s.string[0], main->output.to.stream); + f_print_character_safely(data->quotes_object.array[at] == f_fss_quote_type_single_e ? f_fss_quote_single_s.string[0] : f_fss_quote_double_s.string[0], main->output.to); } fss_extended_read_print_at(main, i, *delimits_object, *delimits_content, data); if ((data->option & fss_extended_read_data_option_original_d) && data->quotes_object.array[at]) { - f_print_character_safely(data->quotes_object.array[at] == f_fss_quote_type_single_e ? f_fss_quote_single_s.string[0] : f_fss_quote_double_s.string[0], main->output.to.stream); + f_print_character_safely(data->quotes_object.array[at] == f_fss_quote_type_single_e ? f_fss_quote_single_s.string[0] : f_fss_quote_double_s.string[0], main->output.to); } } } else if (data->option & fss_extended_read_data_option_columns_d) { - fll_print_format("%ul%r", main->output.to.stream, data->contents.array[i].used, f_string_eol_s); + fll_print_format("%ul%r", main->output.to, data->contents.array[i].used, f_string_eol_s); } else if (data->option & fss_extended_read_data_option_total_d) { if (fss_extended_read_print_at_total(main, i, data) == F_none) { @@ -430,13 +430,13 @@ extern "C" { } else { if ((data->option & fss_extended_read_data_option_original_d) && data->quotes_content.array[at].array[i]) { - f_print_character_safely(data->quotes_content.array[at].array[i] == f_fss_quote_type_single_e ? f_fss_quote_single_s.string[0] : f_fss_quote_double_s.string[0], main->output.to.stream); + f_print_character_safely(data->quotes_content.array[at].array[i] == f_fss_quote_type_single_e ? f_fss_quote_single_s.string[0] : f_fss_quote_double_s.string[0], main->output.to); } fss_extended_read_print_at(main, i, *delimits_object, *delimits_content, data); if ((data->option & fss_extended_read_data_option_original_d) && data->quotes_content.array[at].array[i]) { - f_print_character_safely(data->quotes_content.array[at].array[i] == f_fss_quote_type_single_e ? f_fss_quote_single_s.string[0] : f_fss_quote_double_s.string[0], main->output.to.stream); + f_print_character_safely(data->quotes_content.array[at].array[i] == f_fss_quote_type_single_e ? f_fss_quote_single_s.string[0] : f_fss_quote_double_s.string[0], main->output.to); } } @@ -482,7 +482,7 @@ extern "C" { } } // for - fll_print_format("%ul%r", main->output.to.stream, max, f_string_eol_s); + fll_print_format("%ul%r", main->output.to, max, f_string_eol_s); return F_none; } @@ -696,7 +696,7 @@ extern "C" { } } else { - fl_print_format("%ul%r", main->output.to.stream, total, f_string_eol_s); + fl_print_format("%ul%r", main->output.to, total, f_string_eol_s); } funlockfile(main->output.to.stream); diff --git a/level_3/fss_extended_write/c/fss_extended_write.c b/level_3/fss_extended_write/c/fss_extended_write.c index 8dd62a9..23c3e27 100644 --- a/level_3/fss_extended_write/c/fss_extended_write.c +++ b/level_3/fss_extended_write/c/fss_extended_write.c @@ -82,9 +82,9 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_extended_write_long_file_s, main->error.notable); - fl_print_format("%[' may only be specified once.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_extended_write_long_file_s, main->error.notable); + fl_print_format("%[' may only be specified once.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -129,13 +129,13 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_extended_write_long_partial_s, main->error.notable); - fl_print_format("%[' parameter only allows either the '%]", main->error.to.stream, main->error.context, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_extended_write_long_object_s, main->error.notable); - fl_print_format("%[' parameter or the '%]", main->error.to.stream, main->error.context, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_extended_write_long_content_s, main->error.notable); - fl_print_format("%[' parameter, but not both.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_extended_write_long_partial_s, main->error.notable); + fl_print_format("%[' parameter only allows either the '%]", main->error.to, main->error.context, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_extended_write_long_object_s, main->error.notable); + fl_print_format("%[' parameter or the '%]", main->error.to, main->error.context, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_extended_write_long_content_s, main->error.notable); + fl_print_format("%[' parameter, but not both.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -155,11 +155,11 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QEach '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_extended_write_long_object_s, main->error.notable); - fl_print_format("%[' parameter must be specified before a '%]", main->error.to.stream, main->error.context, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_extended_write_long_content_s, main->error.notable); - fl_print_format("%[' parameter.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QEach '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_extended_write_long_object_s, main->error.notable); + fl_print_format("%[' parameter must be specified before a '%]", main->error.to, main->error.context, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_extended_write_long_content_s, main->error.notable); + fl_print_format("%[' parameter.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -176,11 +176,11 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QEach '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_extended_write_long_object_s, main->error.notable); - fl_print_format("%[' parameter must have at least one '%]", main->error.to.stream, main->error.context, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_extended_write_long_content_s, main->error.notable); - fl_print_format("%[' parameter.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QEach '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_extended_write_long_object_s, main->error.notable); + fl_print_format("%[' parameter must have at least one '%]", main->error.to, main->error.context, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_extended_write_long_content_s, main->error.notable); + fl_print_format("%[' parameter.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -206,11 +206,11 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThis requires either piped data or the use of the '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_extended_write_long_object_s, main->error.notable); - fl_print_format("%[' parameter with the '%]", main->error.to.stream, main->error.context, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_extended_write_long_content_s, main->error.notable); - fl_print_format("%[' parameter.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThis requires either piped data or the use of the '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_extended_write_long_object_s, main->error.notable); + fl_print_format("%[' parameter with the '%]", main->error.to, main->error.context, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_extended_write_long_content_s, main->error.notable); + fl_print_format("%[' parameter.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -223,9 +223,9 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThis '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_extended_write_long_partial_s, main->error.notable); - fl_print_format("%[' parameter cannot be used when processing a pipe.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThis '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_extended_write_long_partial_s, main->error.notable); + fl_print_format("%[' parameter cannot be used when processing a pipe.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -240,9 +240,9 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_extended_write_long_prepend_s, main->error.notable); - fl_print_format("%[' is specified, but no value is given.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_extended_write_long_prepend_s, main->error.notable); + fl_print_format("%[' is specified, but no value is given.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -266,9 +266,9 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe value for the parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_extended_write_long_prepend_s, main->error.notable); - fl_print_format("%[' must only contain white space.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe value for the parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_extended_write_long_prepend_s, main->error.notable); + fl_print_format("%[' must only contain white space.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -283,9 +283,9 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe value for the parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_extended_write_long_prepend_s, main->error.notable); - fl_print_format("%[' must not be an empty string.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe value for the parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_extended_write_long_prepend_s, main->error.notable); + fl_print_format("%[' must not be an empty string.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -300,9 +300,9 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_extended_write_long_ignore_s, main->error.notable); - fl_print_format("%[' was specified, but no values were given.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_extended_write_long_ignore_s, main->error.notable); + fl_print_format("%[' was specified, but no values were given.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -316,9 +316,9 @@ extern "C" { if (total_locations * 2 > total_arguments) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_extended_write_long_ignore_s, main->error.notable); - fl_print_format("%[' requires two values.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_extended_write_long_ignore_s, main->error.notable); + fl_print_format("%[' requires two values.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); @@ -355,8 +355,8 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QWhile processing the '%]%[input pipe%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context, main->error.notable, main->error.notable); - fl_print_format("%['.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QWhile processing the '%]%[input pipe%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context, main->error.notable, main->error.notable); + fl_print_format("%['.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -479,8 +479,8 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QWhile processing the '%]%[input arguments%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context, main->error.notable, main->error.notable); - fl_print_format("%['.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QWhile processing the '%]%[input arguments%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context, main->error.notable, main->error.notable); + fl_print_format("%['.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -488,7 +488,7 @@ extern "C" { else if (main->error.verbosity > f_console_verbosity_quiet_e && main->error.verbosity != f_console_verbosity_error_e && main->parameters.array[fss_extended_write_parameter_file_e].result == f_console_result_none_e) { // Ensure there is always a newline at the end, unless in quiet mode. - fll_print_dynamic_raw(f_string_eol_s, main->output.to.stream); + fll_print_dynamic_raw(f_string_eol_s, main->output.to); } } @@ -507,7 +507,7 @@ extern "C" { f_file_stream_flush(main->output.to); } - fll_print_dynamic_raw(f_string_eol_s, main->output.to.stream); + fll_print_dynamic_raw(f_string_eol_s, main->output.to); } } diff --git a/level_3/fss_extended_write/c/print.c b/level_3/fss_extended_write/c/print.c index fa456f3..e3bbbd8 100644 --- a/level_3/fss_extended_write/c/print.c +++ b/level_3/fss_extended_write/c/print.c @@ -10,13 +10,13 @@ extern "C" { f_file_stream_lock(print.to); - f_print_dynamic_raw(setting->line_first, print.to.stream); + f_print_dynamic_raw(setting->line_first, print.to); fll_program_print_help_header(print, fss_extended_write_program_name_long_s, fss_extended_write_program_version_s); fll_program_print_help_option_standard(print); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); + f_print_dynamic_raw(f_string_eol_s, print.to); fll_program_print_help_option(print, fss_extended_write_short_file_s, fss_extended_write_long_file_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Specify a file to send data to."); fll_program_print_help_option(print, fss_extended_write_short_content_s, fss_extended_write_long_content_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, "The Content to write."); @@ -28,25 +28,25 @@ extern "C" { fll_program_print_help_option(print, fss_extended_write_short_single_s, fss_extended_write_long_single_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Use single quotes."); fll_program_print_help_option(print, fss_extended_write_short_trim_s, fss_extended_write_long_trim_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Trim Object names."); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); + f_print_dynamic_raw(f_string_eol_s, print.to); + f_print_dynamic_raw(f_string_eol_s, print.to); fll_program_print_help_usage(print, fss_extended_write_program_name_s, f_string_empty_s); - fl_print_format("%r The pipe uses the Backspace character '%[\\b%]' (%[U+0008%]) to designate the start of a Content.%r", print.to.stream, f_string_eol_s, print.set->notable, print.set->notable, print.set->notable, print.set->notable, f_string_eol_s); - fl_print_format(" The pipe uses the Form Feed character '%[\\f%]' (%[U+000C%]) to designate the end of the last Content.%r", print.to.stream, print.set->notable, print.set->notable, print.set->notable, print.set->notable, f_string_eol_s); - fl_print_format(" The pipe uses the Vertical Line character '%[\\v%]' (%[U+000B%]) is used to ignore a Content range, which does nothing in this program.%r", print.to.stream, print.set->notable, print.set->notable, print.set->notable, print.set->notable, f_string_eol_s); - fl_print_format(" For the pipe, an Object is terminated by either a Backspace character '%[\\b%]' (%[U+0008%])", print.to.stream, print.set->notable, print.set->notable, print.set->notable, print.set->notable); - fl_print_format(" or a Form Feed character '%[\\f%]' (%[U+000C%]).%r", print.to.stream, print.set->notable, print.set->notable, print.set->notable, print.set->notable, f_string_eol_s); - fl_print_format(" The end of the pipe represents the end of any Object or Content.%r%r", print.to.stream, f_string_eol_s, f_string_eol_s); + fl_print_format("%r The pipe uses the Backspace character '%[\\b%]' (%[U+0008%]) to designate the start of a Content.%r", print.to, f_string_eol_s, print.set->notable, print.set->notable, print.set->notable, print.set->notable, f_string_eol_s); + fl_print_format(" The pipe uses the Form Feed character '%[\\f%]' (%[U+000C%]) to designate the end of the last Content.%r", print.to, print.set->notable, print.set->notable, print.set->notable, print.set->notable, f_string_eol_s); + fl_print_format(" The pipe uses the Vertical Line character '%[\\v%]' (%[U+000B%]) is used to ignore a Content range, which does nothing in this program.%r", print.to, print.set->notable, print.set->notable, print.set->notable, print.set->notable, f_string_eol_s); + fl_print_format(" For the pipe, an Object is terminated by either a Backspace character '%[\\b%]' (%[U+0008%])", print.to, print.set->notable, print.set->notable, print.set->notable, print.set->notable); + fl_print_format(" or a Form Feed character '%[\\f%]' (%[U+000C%]).%r", print.to, print.set->notable, print.set->notable, print.set->notable, print.set->notable, f_string_eol_s); + fl_print_format(" The end of the pipe represents the end of any Object or Content.%r%r", print.to, f_string_eol_s, f_string_eol_s); - fl_print_format(" The FSS-0001 (Extended) specification does not support multi-line Content, therefore the parameter '%[%r%r%]'", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_extended_write_long_prepend_s, print.set->notable); - fl_print_format(" does nothing.%r%r", print.to.stream, f_string_eol_s, f_string_eol_s); + fl_print_format(" The FSS-0001 (Extended) specification does not support multi-line Content, therefore the parameter '%[%r%r%]'", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_extended_write_long_prepend_s, print.set->notable); + fl_print_format(" does nothing.%r%r", print.to, f_string_eol_s, f_string_eol_s); - fl_print_format(" This program does not use the parameter '%[%r%r%]', which therefore does nothing.%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_extended_write_long_ignore_s, print.set->notable, f_string_eol_s); - fl_print_format(" This parameter requires two values.%r", print.to.stream, f_string_eol_s); + fl_print_format(" This program does not use the parameter '%[%r%r%]', which therefore does nothing.%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_extended_write_long_ignore_s, print.set->notable, f_string_eol_s); + fl_print_format(" This parameter requires two values.%r", print.to, f_string_eol_s); - f_print_dynamic_raw(setting->line_last, print.to.stream); + f_print_dynamic_raw(setting->line_last, print.to); f_file_stream_flush(print.to); f_file_stream_unlock(print.to); @@ -64,7 +64,7 @@ extern "C" { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; } - f_print_dynamic_raw(setting->line_first, print.to.stream); + f_print_dynamic_raw(setting->line_first, print.to); return F_none; } @@ -79,7 +79,7 @@ extern "C" { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; } - fll_print_dynamic_raw(setting->line_first, print.to.stream); + fll_print_dynamic_raw(setting->line_first, print.to); return F_none; } @@ -95,7 +95,7 @@ extern "C" { if (setting->flag & (fss_extended_write_main_flag_verify_e | fss_extended_write_main_flag_file_to_e)) return F_output_not; } - fll_print_dynamic_raw(setting->line_last, print.to.stream); + fll_print_dynamic_raw(setting->line_last, print.to); return F_none; } @@ -111,7 +111,7 @@ extern "C" { if (setting->flag & (fss_extended_write_main_flag_verify_e | fss_extended_write_main_flag_file_to_e)) return F_output_not; } - f_print_dynamic_raw(setting->line_last, print.to.stream); + f_print_dynamic_raw(setting->line_last, print.to); return F_none; } diff --git a/level_3/fss_extended_write/c/private-write.c b/level_3/fss_extended_write/c/private-write.c index 64b7ae2..72c3873 100644 --- a/level_3/fss_extended_write/c/private-write.c +++ b/level_3/fss_extended_write/c/private-write.c @@ -15,13 +15,13 @@ extern "C" { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QMust specify the '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_extended_write_long_object_s, main->error.notable); - fl_print_format("%[' parameter and the '%]", main->error.to.stream, main->error.context, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_extended_write_long_content_s, main->error.notable); - fl_print_format("%[' parameter the same number of times when not specifying the '%]", main->error.to.stream, main->error.context, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_extended_write_long_partial_s, main->error.notable); - fl_print_format("%[' parameter.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QMust specify the '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_extended_write_long_object_s, main->error.notable); + fl_print_format("%[' parameter and the '%]", main->error.to, main->error.context, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_extended_write_long_content_s, main->error.notable); + fl_print_format("%[' parameter the same number of times when not specifying the '%]", main->error.to, main->error.context, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_extended_write_long_partial_s, main->error.notable); + fl_print_format("%[' parameter.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -36,9 +36,9 @@ extern "C" { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, symbol, parameter, main->error.notable); - fl_print_format("%[' is specified, but no value is given.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, symbol, parameter, main->error.notable); + fl_print_format("%[' is specified, but no value is given.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -53,11 +53,11 @@ extern "C" { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe FSS-0001 (Extended) standard does not support end of line character '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[\\n%]", main->error.to.stream, main->error.notable, main->error.notable); - fl_print_format("%[' (%]", main->error.to.stream, main->error.context, main->error.context); - fl_print_format("%[U+000A%]", main->error.to.stream, main->error.notable, main->error.notable); - fl_print_format("%[) in objects.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe FSS-0001 (Extended) standard does not support end of line character '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[\\n%]", main->error.to, main->error.notable, main->error.notable); + fl_print_format("%[' (%]", main->error.to, main->error.context, main->error.context); + fl_print_format("%[U+000A%]", main->error.to, main->error.notable, main->error.notable); + fl_print_format("%[) in objects.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -145,7 +145,7 @@ extern "C" { } } - fll_print_dynamic(*buffer, output.stream); + fll_print_dynamic(*buffer, output); buffer->used = 0; diff --git a/level_3/fss_identify/c/fss_identify.c b/level_3/fss_identify/c/fss_identify.c index 335e41f..faa490c 100644 --- a/level_3/fss_identify/c/fss_identify.c +++ b/level_3/fss_identify/c/fss_identify.c @@ -76,9 +76,9 @@ extern "C" { if (main->parameters.array[fss_identify_parameter_line_e].result == f_console_result_found_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_identify_long_line_s, main->error.notable); - fl_print_format("%[' requires a positive number.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_identify_long_line_s, main->error.notable); + fl_print_format("%[' requires a positive number.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); @@ -116,9 +116,9 @@ extern "C" { if (main->parameters.array[fss_identify_parameter_name_e].result == f_console_result_found_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_identify_long_name_s, main->error.notable); - fl_print_format("%[' requires a string.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_identify_long_name_s, main->error.notable); + fl_print_format("%[' requires a string.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); @@ -132,9 +132,9 @@ extern "C" { if (length == 0) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_identify_long_name_s, main->error.notable); - fl_print_format("%[' does not allow zero length strings.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_identify_long_name_s, main->error.notable); + fl_print_format("%[' does not allow zero length strings.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); @@ -162,11 +162,11 @@ extern "C" { else if (status == F_false) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe value '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%Q%]", main->error.to.stream, main->error.notable, data.argv[index], main->error.notable); - fl_print_format("%[' for the parameter '%]", main->error.to.stream, main->error.context, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_identify_long_name_s, main->error.notable); - fl_print_format("%[' may only contain word characters or the dash (minus)y character.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe value '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%Q%]", main->error.to, main->error.notable, data.argv[index], main->error.notable); + fl_print_format("%[' for the parameter '%]", main->error.to, main->error.context, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_identify_long_name_s, main->error.notable); + fl_print_format("%[' may only contain word characters or the dash (minus)y character.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); @@ -244,7 +244,7 @@ extern "C" { if (F_status_is_error_not(status)) { if (main->parameters.array[fss_identify_parameter_total_e].result == f_console_result_found_e) { - fll_print_format("%ul%r", main->output.to.stream, data.total, f_string_eol_s); + fll_print_format("%ul%r", main->output.to, data.total, f_string_eol_s); } } @@ -255,7 +255,7 @@ extern "C" { f_file_stream_flush(main->output.to); } - fll_print_dynamic_raw(f_string_eol_s, main->output.to.stream); + fll_print_dynamic_raw(f_string_eol_s, main->output.to); } } diff --git a/level_3/fss_identify/c/print.c b/level_3/fss_identify/c/print.c index af3c755..d24c68d 100644 --- a/level_3/fss_identify/c/print.c +++ b/level_3/fss_identify/c/print.c @@ -10,44 +10,44 @@ extern "C" { f_file_stream_lock(print.to); - f_print_dynamic_raw(setting->line_first, print.to.stream); + f_print_dynamic_raw(setting->line_first, print.to); fll_program_print_help_header(print, fss_identify_program_name_long_s, fss_identify_program_version_s); fll_program_print_help_option_standard(print); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); + f_print_dynamic_raw(f_string_eol_s, print.to); fll_program_print_help_option(print, fss_identify_short_content_s, fss_identify_long_content_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, "Print the Identifier content (the 4-digit hexidecimal type code)."); fll_program_print_help_option(print, fss_identify_short_object_s, fss_identify_long_object_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Print the Identifier object (the name)."); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); + f_print_dynamic_raw(f_string_eol_s, print.to); fll_program_print_help_option(print, fss_identify_short_line_s, fss_identify_long_line_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Print only the Identifier at the given line."); fll_program_print_help_option(print, fss_identify_short_name_s, fss_identify_long_name_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Select FSS using this full or partial type name or code."); fll_program_print_help_option(print, fss_identify_short_total_s, fss_identify_long_total_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, "Print the total Identifiers found."); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); + f_print_dynamic_raw(f_string_eol_s, print.to); + f_print_dynamic_raw(f_string_eol_s, print.to); fll_program_print_help_usage(print, fss_identify_program_name_s, fll_program_parameter_filenames_s); - fl_print_format("%r The %[%r%r%] parameter refers to the file lines and not the lines in a given file.%r%r", print.to.stream, f_string_eol_s, print.set->notable, f_console_symbol_long_enable_s, fss_identify_long_line_s, print.set->notable, f_string_eol_s, f_string_eol_s); + fl_print_format("%r The %[%r%r%] parameter refers to the file lines and not the lines in a given file.%r%r", print.to, f_string_eol_s, print.set->notable, f_console_symbol_long_enable_s, fss_identify_long_line_s, print.set->notable, f_string_eol_s, f_string_eol_s); - fl_print_format(" If neither the %[%r%r%] nor", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_identify_long_object_s, print.set->notable); - fl_print_format(" %[%r%r%] are specified, then the default behavior is to print both.%r%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_identify_long_content_s, print.set->notable, f_string_eol_s, f_string_eol_s); + fl_print_format(" If neither the %[%r%r%] nor", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_identify_long_object_s, print.set->notable); + fl_print_format(" %[%r%r%] are specified, then the default behavior is to print both.%r%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_identify_long_content_s, print.set->notable, f_string_eol_s, f_string_eol_s); - fl_print_format(" When specifying the %[%r%r%] parameter, neither the", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_identify_long_total_s, print.set->notable); - fl_print_format(" %[%r%r%] nor the", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_identify_long_object_s, print.set->notable); - fl_print_format(" %[%r%r%] parameter may be specified.%r%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_identify_long_content_s, print.set->notable, f_string_eol_s, f_string_eol_s); + fl_print_format(" When specifying the %[%r%r%] parameter, neither the", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_identify_long_total_s, print.set->notable); + fl_print_format(" %[%r%r%] nor the", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_identify_long_object_s, print.set->notable); + fl_print_format(" %[%r%r%] parameter may be specified.%r%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_identify_long_content_s, print.set->notable, f_string_eol_s, f_string_eol_s); - fl_print_format(" An FSS file is identified by the following format: '%[# Object-Content%]'", print.to.stream, print.set->notable, print.set->notable); - fl_print_format(" where the Object, is a machine-name representing the name and may only consist of \"word\" characters and the Content is a 4-digit hexidecimal number representing a particular variant of the Object.%r", print.to.stream, f_string_eol_s); - fl_print_format(" This identifier, if provided, must exist on the first line in a file and must begin with the pound character: '#'.%r", print.to.stream, f_string_eol_s); - fl_print_format(" Whitespace must follow this pound character.%r", print.to.stream, f_string_eol_s); - fl_print_format(" There may be multiple Object and Content pairs, separated by white space, such as: \"# fss-0002 fss-0000 iki-0002\".%r", print.to.stream, f_string_eol_s); + fl_print_format(" An FSS file is identified by the following format: '%[# Object-Content%]'", print.to, print.set->notable, print.set->notable); + fl_print_format(" where the Object, is a machine-name representing the name and may only consist of \"word\" characters and the Content is a 4-digit hexidecimal number representing a particular variant of the Object.%r", print.to, f_string_eol_s); + fl_print_format(" This identifier, if provided, must exist on the first line in a file and must begin with the pound character: '#'.%r", print.to, f_string_eol_s); + fl_print_format(" Whitespace must follow this pound character.%r", print.to, f_string_eol_s); + fl_print_format(" There may be multiple Object and Content pairs, separated by white space, such as: \"# fss-0002 fss-0000 iki-0002\".%r", print.to, f_string_eol_s); - f_print_dynamic_raw(setting->line_last, print.to.stream); + f_print_dynamic_raw(setting->line_last, print.to); f_file_stream_flush(print.to); f_file_stream_unlock(print.to); @@ -65,7 +65,7 @@ extern "C" { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; } - f_print_dynamic_raw(setting->line_first, print.to.stream); + f_print_dynamic_raw(setting->line_first, print.to); return F_none; } @@ -80,7 +80,7 @@ extern "C" { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; } - fll_print_dynamic_raw(setting->line_first, print.to.stream); + fll_print_dynamic_raw(setting->line_first, print.to); return F_none; } @@ -96,7 +96,7 @@ extern "C" { if (setting->flag & (fss_identify_main_flag_verify_e | fss_identify_main_flag_file_to_e)) return F_output_not; } - fll_print_dynamic_raw(setting->line_last, print.to.stream); + fll_print_dynamic_raw(setting->line_last, print.to); return F_none; } @@ -112,7 +112,7 @@ extern "C" { if (setting->flag & (fss_identify_main_flag_verify_e | fss_identify_main_flag_file_to_e)) return F_output_not; } - f_print_dynamic_raw(setting->line_last, print.to.stream); + f_print_dynamic_raw(setting->line_last, print.to); return F_none; } diff --git a/level_3/fss_identify/c/private-print.c b/level_3/fss_identify/c/private-print.c index a5dcfac..0d94677 100644 --- a/level_3/fss_identify/c/private-print.c +++ b/level_3/fss_identify/c/private-print.c @@ -12,18 +12,18 @@ extern "C" { flockfile(main->output.to.stream); if (main->parameters.array[fss_identify_parameter_object_e].result == f_console_result_found_e || main->parameters.array[fss_identify_parameter_content_e].result != f_console_result_found_e) { - f_print((const f_string_t) id.name, id.used, main->output.to.stream); + f_print((const f_string_t) id.name, id.used, main->output.to); if (main->parameters.array[fss_identify_parameter_object_e].result != f_console_result_found_e || main->parameters.array[fss_identify_parameter_content_e].result == f_console_result_found_e) { - f_print_dynamic_raw(f_fss_type_header_part5_s, main->output.to.stream); + f_print_dynamic_raw(f_fss_type_header_part5_s, main->output.to); } } if (main->parameters.array[fss_identify_parameter_object_e].result != f_console_result_found_e || main->parameters.array[fss_identify_parameter_content_e].result == f_console_result_found_e) { - fl_print_format("%04_ui", main->output.to.stream, id.type); + fl_print_format("%04_ui", main->output.to, id.type); } - f_print_dynamic_raw(f_string_eol_s, main->output.to.stream); + f_print_dynamic_raw(f_string_eol_s, main->output.to); funlockfile(main->output.to.stream); } diff --git a/level_3/fss_payload_read/c/fss_payload_read.c b/level_3/fss_payload_read/c/fss_payload_read.c index 164908c..ff74d55 100644 --- a/level_3/fss_payload_read/c/fss_payload_read.c +++ b/level_3/fss_payload_read/c/fss_payload_read.c @@ -128,9 +128,9 @@ extern "C" { if (main->parameters.array[parameter_code[i]].result == f_console_result_found_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, parameter_name[i], main->error.notable); - fl_print_format("%[' requires a %s.%]%r", main->error.to.stream, main->error.context, parameter_message[i], main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, parameter_name[i], main->error.notable); + fl_print_format("%[' requires a %s.%]%r", main->error.to, main->error.context, parameter_message[i], main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); @@ -223,9 +223,9 @@ extern "C" { if (!length) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe value for the parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_payload_read_long_delimit_s, main->error.notable); - fl_print_format("%[' must not be empty.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe value for the parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_payload_read_long_delimit_s, main->error.notable); + fl_print_format("%[' must not be empty.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); @@ -369,9 +369,9 @@ extern "C" { if (F_status_is_error_not(status) && main->parameters.array[fss_payload_read_parameter_select_e].result == f_console_result_found_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_payload_read_long_select_s, main->error.notable); - fl_print_format("%[' parameter requires a positive number.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_payload_read_long_select_s, main->error.notable); + fl_print_format("%[' parameter requires a positive number.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); @@ -532,7 +532,7 @@ extern "C" { fss_payload_read_data_delete_simple(&data); } else { - fll_print_format("%r%[%QYou failed to specify one or more files.%]%r", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context, f_string_eol_s); + fll_print_format("%r%[%QYou failed to specify one or more files.%]%r", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context, f_string_eol_s); status = F_status_set_error(F_parameter); } @@ -540,7 +540,7 @@ extern "C" { if (F_status_set_fine(status) == F_interrupt) { f_file_stream_flush(main->output.to); - fll_print_dynamic_raw(f_string_eol_s, main->output.to.stream); + fll_print_dynamic_raw(f_string_eol_s, main->output.to); } } diff --git a/level_3/fss_payload_read/c/print.c b/level_3/fss_payload_read/c/print.c index 3d481aa..f18e2ac 100644 --- a/level_3/fss_payload_read/c/print.c +++ b/level_3/fss_payload_read/c/print.c @@ -10,13 +10,13 @@ extern "C" { f_file_stream_lock(print.to); - f_print_dynamic_raw(setting->line_first, print.to.stream); + f_print_dynamic_raw(setting->line_first, print.to); fll_program_print_help_header(print, fss_payload_read_program_name_long_s, fss_payload_read_program_version_s); fll_program_print_help_option_standard(print); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); + f_print_dynamic_raw(f_string_eol_s, print.to); fll_program_print_help_option(print, fss_payload_read_short_at_s, fss_payload_read_long_at_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Select Object at this numeric index."); fll_program_print_help_option(print, fss_payload_read_short_content_s, fss_payload_read_long_content_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Print the Content (default)."); @@ -33,90 +33,90 @@ extern "C" { fll_program_print_help_option(print, fss_payload_read_short_total_s, fss_payload_read_long_total_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Print the total number of lines."); fll_program_print_help_option(print, fss_payload_read_short_trim_s, fss_payload_read_long_trim_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Trim Object names on select or print."); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); + f_print_dynamic_raw(f_string_eol_s, print.to); + f_print_dynamic_raw(f_string_eol_s, print.to); fll_program_print_help_usage(print, fss_payload_read_program_name_s, fll_program_parameter_filenames_s); - fl_print_format("%r %[Notes:%]%r", print.to.stream, f_string_eol_s, print.set->important, print.set->important, f_string_eol_s); + fl_print_format("%r %[Notes:%]%r", print.to, f_string_eol_s, print.set->important, print.set->important, f_string_eol_s); - fl_print_format(" This program will print the Content associated with the given Object and Content main based on the FSS-000E Payload standard.%r%r", print.to.stream, f_string_eol_s, f_string_eol_s); + fl_print_format(" This program will print the Content associated with the given Object and Content main based on the FSS-000E Payload standard.%r%r", print.to, f_string_eol_s, f_string_eol_s); - fl_print_format(" All numeric positions (indexes) start at 0 instead of 1.%r", print.to.stream, f_string_eol_s); - fl_print_format(" For example, a file of 17 lines would range from 0 to 16.%r%r", print.to.stream, f_string_eol_s, f_string_eol_s); + fl_print_format(" All numeric positions (indexes) start at 0 instead of 1.%r", print.to, f_string_eol_s); + fl_print_format(" For example, a file of 17 lines would range from 0 to 16.%r%r", print.to, f_string_eol_s, f_string_eol_s); - fl_print_format(" When using the %[%r%r%] option, an order of operations is enforced on the parameters.%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_payload_read_long_depth_s, print.set->notable, f_string_eol_s); + fl_print_format(" When using the %[%r%r%] option, an order of operations is enforced on the parameters.%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_payload_read_long_depth_s, print.set->notable, f_string_eol_s); - fl_print_format(" When this order of operations is in effect, parameters to the right of a depth parameter are influenced by that depth parameter:%r", print.to.stream, f_string_eol_s); + fl_print_format(" When this order of operations is in effect, parameters to the right of a depth parameter are influenced by that depth parameter:%r", print.to, f_string_eol_s); - fl_print_format(" %[%r%r%]: An Object index at the specified depth.%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_payload_read_long_at_s, print.set->notable, f_string_eol_s); - fl_print_format(" %[%r%r%]: A new depth within the specified depth, indexed from the root.%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_payload_read_long_depth_s, print.set->notable, f_string_eol_s); - fl_print_format(" %[%r%r%]: An Object name at the specified depth.%r%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_payload_read_long_name_s, print.set->notable, f_string_eol_s, f_string_eol_s); + fl_print_format(" %[%r%r%]: An Object index at the specified depth.%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_payload_read_long_at_s, print.set->notable, f_string_eol_s); + fl_print_format(" %[%r%r%]: A new depth within the specified depth, indexed from the root.%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_payload_read_long_depth_s, print.set->notable, f_string_eol_s); + fl_print_format(" %[%r%r%]: An Object name at the specified depth.%r%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_payload_read_long_name_s, print.set->notable, f_string_eol_s, f_string_eol_s); - fl_print_format(" The parameter %[%r%r%] must be in numeric order, but values in between may be skipped.%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_payload_read_long_depth_s, print.set->notable, f_string_eol_s); - fl_print_format(" ('-d 0 -a 1 -d 2 -a 2' would specify index 1 at depth 0, any index at depth 1, and index 2 at depth 2.)%r", print.to.stream, f_string_eol_s); - fl_print_format(" ('-d 2 -a 1 -d 0 -a 2' would be invalid because depth 2 is before depth 1.)%r%r", print.to.stream, f_string_eol_s, f_string_eol_s); + fl_print_format(" The parameter %[%r%r%] must be in numeric order, but values in between may be skipped.%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_payload_read_long_depth_s, print.set->notable, f_string_eol_s); + fl_print_format(" ('-d 0 -a 1 -d 2 -a 2' would specify index 1 at depth 0, any index at depth 1, and index 2 at depth 2.)%r", print.to, f_string_eol_s); + fl_print_format(" ('-d 2 -a 1 -d 0 -a 2' would be invalid because depth 2 is before depth 1.)%r%r", print.to, f_string_eol_s, f_string_eol_s); - fl_print_format(" The parameter %[%r%r%] selects a Content column.%r%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_payload_read_long_select_s, print.set->notable, f_string_eol_s, f_string_eol_s); + fl_print_format(" The parameter %[%r%r%] selects a Content column.%r%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_payload_read_long_select_s, print.set->notable, f_string_eol_s, f_string_eol_s); - fl_print_format(" Specify both %[%r%r%]", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_payload_read_long_object_s, print.set->notable); - fl_print_format(" and the %[%r%r%] parameters to get the total objects.%r%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_payload_read_long_total_s, print.set->notable, f_string_eol_s, f_string_eol_s); + fl_print_format(" Specify both %[%r%r%]", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_payload_read_long_object_s, print.set->notable); + fl_print_format(" and the %[%r%r%] parameters to get the total objects.%r%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_payload_read_long_total_s, print.set->notable, f_string_eol_s, f_string_eol_s); - fl_print_format(" When both %[%r%r%]", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_payload_read_long_at_s, print.set->notable); - fl_print_format(" and %[%r%r%] parameters are specified (at the same depth),", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_payload_read_long_name_s, print.set->notable); - fl_print_format(" the %[%r%r%] parameter value will be treated as a position relative to the specified", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_payload_read_long_at_s, print.set->notable); - fl_print_format(" %[%r%r%] parameter value.%r%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_payload_read_long_name_s, print.set->notable, f_string_eol_s, f_string_eol_s); + fl_print_format(" When both %[%r%r%]", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_payload_read_long_at_s, print.set->notable); + fl_print_format(" and %[%r%r%] parameters are specified (at the same depth),", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_payload_read_long_name_s, print.set->notable); + fl_print_format(" the %[%r%r%] parameter value will be treated as a position relative to the specified", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_payload_read_long_at_s, print.set->notable); + fl_print_format(" %[%r%r%] parameter value.%r%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_payload_read_long_name_s, print.set->notable, f_string_eol_s, f_string_eol_s); - fl_print_format(" This program may support parameters, such as %[%r%r%]", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_payload_read_long_depth_s, print.set->notable); - fl_print_format(" or %[%r%r%], even if not supported by the standard.%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_payload_read_long_select_s, print.set->notable, f_string_eol_s); - fl_print_format(" This is done to help ensure consistency for scripting.%r%r", print.to.stream, f_string_eol_s, f_string_eol_s); + fl_print_format(" This program may support parameters, such as %[%r%r%]", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_payload_read_long_depth_s, print.set->notable); + fl_print_format(" or %[%r%r%], even if not supported by the standard.%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_payload_read_long_select_s, print.set->notable, f_string_eol_s); + fl_print_format(" This is done to help ensure consistency for scripting.%r%r", print.to, f_string_eol_s, f_string_eol_s); - fl_print_format(" For parameters like %[%r%r%],", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_payload_read_long_depth_s, print.set->notable); - fl_print_format(" if the standard doesn't support nested Content, then only a depth of 0 would be valid.%r", print.to.stream, f_string_eol_s); + fl_print_format(" For parameters like %[%r%r%],", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_payload_read_long_depth_s, print.set->notable); + fl_print_format(" if the standard doesn't support nested Content, then only a depth of 0 would be valid.%r", print.to, f_string_eol_s); - fl_print_format(" For parameters like %[%r%r%],", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_payload_read_long_select_s, print.set->notable); - fl_print_format(" if the standard doesn't support multiple Content groups, then only a select of 0 would be valid.%r%r", print.to.stream, f_string_eol_s, f_string_eol_s); + fl_print_format(" For parameters like %[%r%r%],", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_payload_read_long_select_s, print.set->notable); + fl_print_format(" if the standard doesn't support multiple Content groups, then only a select of 0 would be valid.%r%r", print.to, f_string_eol_s, f_string_eol_s); - fl_print_format(" The parameter %[%r%r%]", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_payload_read_long_trim_s, print.set->notable); - fl_print_format(" will remove leading and trailing white spaces when selecting objects or when printing objects.%r%r", print.to.stream, f_string_eol_s, f_string_eol_s); + fl_print_format(" The parameter %[%r%r%]", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_payload_read_long_trim_s, print.set->notable); + fl_print_format(" will remove leading and trailing white spaces when selecting objects or when printing objects.%r%r", print.to, f_string_eol_s, f_string_eol_s); - fl_print_format(" When specifying both the %[%r%r%]", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_payload_read_long_object_s, print.set->notable); - fl_print_format(" parameter and the %[%r%r%] parameter, the entire Object and Content are printed, including the formatting.%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_payload_read_long_content_s, print.set->notable, f_string_eol_s); - fl_print_format(" Both the Object and Content printed are already escaped.%r", print.to.stream, f_string_eol_s); - fl_print_format(" Both the Object and Content are separated by a New Line character '\\n' (U+000A).%r%r", print.to.stream, f_string_eol_s, f_string_eol_s); + fl_print_format(" When specifying both the %[%r%r%]", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_payload_read_long_object_s, print.set->notable); + fl_print_format(" parameter and the %[%r%r%] parameter, the entire Object and Content are printed, including the formatting.%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_payload_read_long_content_s, print.set->notable, f_string_eol_s); + fl_print_format(" Both the Object and Content printed are already escaped.%r", print.to, f_string_eol_s); + fl_print_format(" Both the Object and Content are separated by a New Line character '\\n' (U+000A).%r%r", print.to, f_string_eol_s, f_string_eol_s); - fl_print_format(" The parameter %[%r%r%] accepts the following:%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_payload_read_long_delimit_s, print.set->notable, f_string_eol_s); - fl_print_format(" - %[%r%]: Do not apply delimits.%r", print.to.stream, print.set->notable, fss_payload_read_delimit_mode_name_none_s, print.set->notable, f_string_eol_s); - fl_print_format(" - %[%r%]: (default) Apply all delimits.%r", print.to.stream, print.set->notable, fss_payload_read_delimit_mode_name_all_s, print.set->notable, f_string_eol_s); - fl_print_format(" - %[%r%]: Apply delimits for Objects.%r", print.to.stream, print.set->notable, fss_payload_read_delimit_mode_name_object_s, print.set->notable, f_string_eol_s); - fl_print_format(" - A number, 0 or greater: apply delimits for Content at the specified depth.%r", print.to.stream, f_string_eol_s); - fl_print_format(" - A number, 0 or greater, followed by a %[%r%]: (such as '1+') apply delimits for Content at the specified depth and any greater depth (numerically).%r", print.to.stream, print.set->notable, fss_payload_read_delimit_mode_name_greater_s, print.set->notable, f_string_eol_s, f_string_eol_s); - fl_print_format(" - A number, 0 or lesser, followed by a %[%r%]: (such as '1-') apply delimits for Content at the specified depth and any lesser depth (numerically).%r%r", print.to.stream, print.set->notable, fss_payload_read_delimit_mode_name_lesser_s, print.set->notable, f_string_eol_s, f_string_eol_s); + fl_print_format(" The parameter %[%r%r%] accepts the following:%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_payload_read_long_delimit_s, print.set->notable, f_string_eol_s); + fl_print_format(" - %[%r%]: Do not apply delimits.%r", print.to, print.set->notable, fss_payload_read_delimit_mode_name_none_s, print.set->notable, f_string_eol_s); + fl_print_format(" - %[%r%]: (default) Apply all delimits.%r", print.to, print.set->notable, fss_payload_read_delimit_mode_name_all_s, print.set->notable, f_string_eol_s); + fl_print_format(" - %[%r%]: Apply delimits for Objects.%r", print.to, print.set->notable, fss_payload_read_delimit_mode_name_object_s, print.set->notable, f_string_eol_s); + fl_print_format(" - A number, 0 or greater: apply delimits for Content at the specified depth.%r", print.to, f_string_eol_s); + fl_print_format(" - A number, 0 or greater, followed by a %[%r%]: (such as '1+') apply delimits for Content at the specified depth and any greater depth (numerically).%r", print.to, print.set->notable, fss_payload_read_delimit_mode_name_greater_s, print.set->notable, f_string_eol_s, f_string_eol_s); + fl_print_format(" - A number, 0 or lesser, followed by a %[%r%]: (such as '1-') apply delimits for Content at the specified depth and any lesser depth (numerically).%r%r", print.to, print.set->notable, fss_payload_read_delimit_mode_name_lesser_s, print.set->notable, f_string_eol_s, f_string_eol_s); - fl_print_format(" The %[%r%r%] parameter may be specified multiple times to customize the delimit behavior.%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_payload_read_long_delimit_s, print.set->notable, f_string_eol_s); + fl_print_format(" The %[%r%r%] parameter may be specified multiple times to customize the delimit behavior.%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_payload_read_long_delimit_s, print.set->notable, f_string_eol_s); - fl_print_format(" The %[%r%r%]", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_payload_read_long_delimit_s, print.set->notable); - fl_print_format(" values %[%r%]", print.to.stream, print.set->notable, fss_payload_read_delimit_mode_name_none_s, print.set->notable); - fl_print_format(" and %[%r%],", print.to.stream, print.set->notable, fss_payload_read_delimit_mode_name_all_s, print.set->notable); - fl_print_format(" overrule all other delimit values.%r%r", print.to.stream, f_string_eol_s, f_string_eol_s); + fl_print_format(" The %[%r%r%]", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_payload_read_long_delimit_s, print.set->notable); + fl_print_format(" values %[%r%]", print.to, print.set->notable, fss_payload_read_delimit_mode_name_none_s, print.set->notable); + fl_print_format(" and %[%r%],", print.to, print.set->notable, fss_payload_read_delimit_mode_name_all_s, print.set->notable); + fl_print_format(" overrule all other delimit values.%r%r", print.to, f_string_eol_s, f_string_eol_s); - fl_print_format(" The parameters %[%r%r%]", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_payload_read_long_columns_s, print.set->notable); - fl_print_format(" and %[%r%r%]", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_payload_read_long_select_s, print.set->notable); - fl_print_format(" refer to a Content column.%r", print.to.stream, f_string_eol_s); - fl_print_format(" The word \"column\" is being loosely defined to refer to a specific Content.%r", print.to.stream, f_string_eol_s); - fl_print_format(" This is not to be confused with a depth.%r%r", print.to.stream, f_string_eol_s, f_string_eol_s); + fl_print_format(" The parameters %[%r%r%]", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_payload_read_long_columns_s, print.set->notable); + fl_print_format(" and %[%r%r%]", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_payload_read_long_select_s, print.set->notable); + fl_print_format(" refer to a Content column.%r", print.to, f_string_eol_s); + fl_print_format(" The word \"column\" is being loosely defined to refer to a specific Content.%r", print.to, f_string_eol_s); + fl_print_format(" This is not to be confused with a depth.%r%r", print.to, f_string_eol_s, f_string_eol_s); - fl_print_format(" As an exceptional case, a %[%r%r%] of", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_payload_read_long_depth_s, print.set->notable); - fl_print_format(" %[1%] applies only to the explicit Object of", print.to.stream, print.set->notable, print.set->notable); - fl_print_format(" '%[%r%]'.%r", print.to.stream, print.set->notable, f_fss_string_header_s, print.set->notable, f_string_eol_s); - fl_print_format(" Content at this depth is processed as FSS-0001 Extended.%r%r", print.to.stream, f_string_eol_s, f_string_eol_s); + fl_print_format(" As an exceptional case, a %[%r%r%] of", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_payload_read_long_depth_s, print.set->notable); + fl_print_format(" %[1%] applies only to the explicit Object of", print.to, print.set->notable, print.set->notable); + fl_print_format(" '%[%r%]'.%r", print.to, print.set->notable, f_fss_string_header_s, print.set->notable, f_string_eol_s); + fl_print_format(" Content at this depth is processed as FSS-0001 Extended.%r%r", print.to, f_string_eol_s, f_string_eol_s); - fl_print_format(" The Content of the explicit Object of", print.to.stream); - fl_print_format(" '%[%r%]'", print.to.stream, print.set->notable, f_fss_string_payload_s, print.set->notable, f_string_eol_s); - fl_print_format(" will not contain any Content close pipe control codes when using", print.to.stream); - fl_print_format(" %[%r%r%].%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_payload_read_long_pipe_s, print.set->notable, f_string_eol_s); + fl_print_format(" The Content of the explicit Object of", print.to); + fl_print_format(" '%[%r%]'", print.to, print.set->notable, f_fss_string_payload_s, print.set->notable, f_string_eol_s); + fl_print_format(" will not contain any Content close pipe control codes when using", print.to); + fl_print_format(" %[%r%r%].%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_payload_read_long_pipe_s, print.set->notable, f_string_eol_s); - f_print_dynamic_raw(setting->line_last, print.to.stream); + f_print_dynamic_raw(setting->line_last, print.to); f_file_stream_flush(print.to); f_file_stream_unlock(print.to); @@ -134,7 +134,7 @@ extern "C" { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; } - f_print_dynamic_raw(setting->line_first, print.to.stream); + f_print_dynamic_raw(setting->line_first, print.to); return F_none; } @@ -149,7 +149,7 @@ extern "C" { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; } - fll_print_dynamic_raw(setting->line_first, print.to.stream); + fll_print_dynamic_raw(setting->line_first, print.to); return F_none; } @@ -165,7 +165,7 @@ extern "C" { if (setting->flag & (fss_payload_read_main_flag_verify_e | fss_payload_read_main_flag_file_to_e)) return F_output_not; } - fll_print_dynamic_raw(setting->line_last, print.to.stream); + fll_print_dynamic_raw(setting->line_last, print.to); return F_none; } @@ -181,7 +181,7 @@ extern "C" { if (setting->flag & (fss_payload_read_main_flag_verify_e | fss_payload_read_main_flag_file_to_e)) return F_output_not; } - f_print_dynamic_raw(setting->line_last, print.to.stream); + f_print_dynamic_raw(setting->line_last, print.to); return F_none; } diff --git a/level_3/fss_payload_read/c/private-print.c b/level_3/fss_payload_read/c/private-print.c index db7a459..fb4a6a3 100644 --- a/level_3/fss_payload_read/c/private-print.c +++ b/level_3/fss_payload_read/c/private-print.c @@ -18,10 +18,10 @@ extern "C" { if (data->option & fss_payload_read_data_option_object_d) { if (data->option & fss_payload_read_data_option_trim_d) { - fl_print_trim_except_in_dynamic_partial(data->buffer, data->objects.array[at], delimits_object, data->comments, main->output.to.stream); + fl_print_trim_except_in_dynamic_partial(data->buffer, data->objects.array[at], delimits_object, data->comments, main->output.to); } else { - f_print_except_in_dynamic_partial(data->buffer, data->objects.array[at], delimits_object, data->comments, main->output.to.stream); + f_print_except_in_dynamic_partial(data->buffer, data->objects.array[at], delimits_object, data->comments, main->output.to); } fss_payload_read_print_object_end(main); @@ -34,10 +34,10 @@ extern "C" { } if (is_payload) { - f_print_dynamic_partial_raw(data->buffer, data->contents.array[at].array[0], main->output.to.stream); + f_print_dynamic_partial_raw(data->buffer, data->contents.array[at].array[0], main->output.to); } else { - f_print_except_in_dynamic_partial(data->buffer, data->contents.array[at].array[0], delimits_content, data->comments, main->output.to.stream); + f_print_except_in_dynamic_partial(data->buffer, data->contents.array[at].array[0], delimits_content, data->comments, main->output.to); } if (!is_payload) { @@ -68,24 +68,24 @@ extern "C" { if (data->option & fss_payload_read_data_option_object_d) { if (data->option & fss_payload_read_data_option_trim_d) { if ((data->option & fss_payload_read_data_option_original_d) && data->quotes_object_header.array[at]) { - f_print_dynamic_raw(data->quotes_object_header.array[at] == f_fss_quote_type_single_e ? f_fss_quote_single_s : f_fss_quote_double_s, main->output.to.stream); + f_print_dynamic_raw(data->quotes_object_header.array[at] == f_fss_quote_type_single_e ? f_fss_quote_single_s : f_fss_quote_double_s, main->output.to); } - fl_print_trim_except_dynamic_partial(data->buffer, data->objects_header.array[at], delimits_object, main->output.to.stream); + fl_print_trim_except_dynamic_partial(data->buffer, data->objects_header.array[at], delimits_object, main->output.to); if ((data->option & fss_payload_read_data_option_original_d) && data->quotes_object_header.array[at]) { - f_print_dynamic_raw(data->quotes_object_header.array[at] == f_fss_quote_type_single_e ? f_fss_quote_single_s : f_fss_quote_double_s, main->output.to.stream); + f_print_dynamic_raw(data->quotes_object_header.array[at] == f_fss_quote_type_single_e ? f_fss_quote_single_s : f_fss_quote_double_s, main->output.to); } } else { if ((data->option & fss_payload_read_data_option_original_d) && data->quotes_object_header.array[at]) { - f_print_dynamic_raw(data->quotes_object_header.array[at] == f_fss_quote_type_single_e ? f_fss_quote_single_s : f_fss_quote_double_s, main->output.to.stream); + f_print_dynamic_raw(data->quotes_object_header.array[at] == f_fss_quote_type_single_e ? f_fss_quote_single_s : f_fss_quote_double_s, main->output.to); } - f_print_except_dynamic_partial(data->buffer, data->objects_header.array[at], delimits_object, main->output.to.stream); + f_print_except_dynamic_partial(data->buffer, data->objects_header.array[at], delimits_object, main->output.to); if ((data->option & fss_payload_read_data_option_original_d) && data->quotes_object_header.array[at]) { - f_print_dynamic_raw(data->quotes_object_header.array[at] == f_fss_quote_type_single_e ? f_fss_quote_single_s : f_fss_quote_double_s, main->output.to.stream); + f_print_dynamic_raw(data->quotes_object_header.array[at] == f_fss_quote_type_single_e ? f_fss_quote_single_s : f_fss_quote_double_s, main->output.to); } } @@ -102,13 +102,13 @@ extern "C" { content_printed = F_true; if ((data->option & fss_payload_read_data_option_original_d) && data->quotes_content_header.array[at].array[data->select]) { - f_print_dynamic_raw(data->quotes_content_header.array[at].array[data->select] == f_fss_quote_type_single_e ? f_fss_quote_single_s : f_fss_quote_double_s, main->output.to.stream); + f_print_dynamic_raw(data->quotes_content_header.array[at].array[data->select] == f_fss_quote_type_single_e ? f_fss_quote_single_s : f_fss_quote_double_s, main->output.to); } - f_print_except_dynamic_partial(data->buffer, data->contents_header.array[at].array[data->select], delimits_content, main->output.to.stream); + f_print_except_dynamic_partial(data->buffer, data->contents_header.array[at].array[data->select], delimits_content, main->output.to); if ((data->option & fss_payload_read_data_option_original_d) && data->quotes_content_header.array[at].array[data->select]) { - f_print_dynamic_raw(data->quotes_content_header.array[at].array[data->select] == f_fss_quote_type_single_e ? f_fss_quote_single_s : f_fss_quote_double_s, main->output.to.stream); + f_print_dynamic_raw(data->quotes_content_header.array[at].array[data->select] == f_fss_quote_type_single_e ? f_fss_quote_single_s : f_fss_quote_double_s, main->output.to); } } } @@ -122,13 +122,13 @@ extern "C" { content_printed = F_true; if ((data->option & fss_payload_read_data_option_original_d) && data->quotes_content_header.array[at].array[i]) { - f_print_dynamic_raw(data->quotes_content_header.array[at].array[i] == f_fss_quote_type_single_e ? f_fss_quote_single_s : f_fss_quote_double_s, main->output.to.stream); + f_print_dynamic_raw(data->quotes_content_header.array[at].array[i] == f_fss_quote_type_single_e ? f_fss_quote_single_s : f_fss_quote_double_s, main->output.to); } - f_print_except_dynamic_partial(data->buffer, data->contents_header.array[at].array[i], delimits_content, main->output.to.stream); + f_print_except_dynamic_partial(data->buffer, data->contents_header.array[at].array[i], delimits_content, main->output.to); if ((data->option & fss_payload_read_data_option_original_d) && data->quotes_content_header.array[at].array[i]) { - f_print_dynamic_raw(data->quotes_content_header.array[at].array[i] == f_fss_quote_type_single_e ? f_fss_quote_single_s : f_fss_quote_double_s, main->output.to.stream); + f_print_dynamic_raw(data->quotes_content_header.array[at].array[i] == f_fss_quote_type_single_e ? f_fss_quote_single_s : f_fss_quote_double_s, main->output.to); } if (i + 1 < data->contents_header.array[at].used && data->contents_header.array[at].array[i + 1].start <= data->contents_header.array[at].array[i + 1].stop) { @@ -155,10 +155,10 @@ extern "C" { } if (data->option & fss_payload_read_data_option_trim_d) { - fl_print_trim_except_dynamic_partial(data->buffer, data->objects.array[at], delimits_object, main->output.to.stream); + fl_print_trim_except_dynamic_partial(data->buffer, data->objects.array[at], delimits_object, main->output.to); } else { - f_print_except_dynamic_partial(data->buffer, data->objects.array[at], delimits_object, main->output.to.stream); + f_print_except_dynamic_partial(data->buffer, data->objects.array[at], delimits_object, main->output.to); } fss_payload_read_print_object_end(main); @@ -223,10 +223,10 @@ extern "C" { void fss_payload_read_print_content_end_extended(fll_program_data_t * const main) { if (main->parameters.array[fss_payload_read_parameter_pipe_e].result == f_console_result_found_e) { - f_print_dynamic_raw(fss_payload_read_pipe_content_start_s, main->output.to.stream); + f_print_dynamic_raw(fss_payload_read_pipe_content_start_s, main->output.to); } else { - f_print_dynamic_raw(f_fss_space_s, main->output.to.stream); + f_print_dynamic_raw(f_fss_space_s, main->output.to); } } #endif // _di_fss_payload_read_print_content_end_extended_ @@ -235,7 +235,7 @@ extern "C" { void fss_payload_read_print_content_ignore(fll_program_data_t * const main) { if (main->parameters.array[fss_payload_read_parameter_pipe_e].result == f_console_result_found_e) { - f_print_dynamic_raw(fss_payload_read_pipe_content_ignore_s, main->output.to.stream); + f_print_dynamic_raw(fss_payload_read_pipe_content_ignore_s, main->output.to); } } #endif // _di_fss_payload_read_print_content_ignore_ @@ -244,15 +244,15 @@ extern "C" { void fss_payload_read_print_object_end(fll_program_data_t * const main) { if (main->parameters.array[fss_payload_read_parameter_pipe_e].result == f_console_result_found_e) { - f_print_dynamic_raw(fss_payload_read_pipe_content_start_s, main->output.to.stream); + f_print_dynamic_raw(fss_payload_read_pipe_content_start_s, main->output.to); } else { if (main->parameters.array[fss_payload_read_parameter_content_e].result == f_console_result_found_e) { - f_print_dynamic_raw(f_fss_basic_list_open_s, main->output.to.stream); - f_print_dynamic_raw(f_fss_basic_list_open_end_s, main->output.to.stream); + f_print_dynamic_raw(f_fss_basic_list_open_s, main->output.to); + f_print_dynamic_raw(f_fss_basic_list_open_end_s, main->output.to); } else { - f_print_dynamic_raw(f_fss_eol_s, main->output.to.stream); + f_print_dynamic_raw(f_fss_eol_s, main->output.to); } } } @@ -262,10 +262,10 @@ extern "C" { void fss_payload_read_print_object_end_extended(fll_program_data_t * const main) { if (main->parameters.array[fss_payload_read_parameter_pipe_e].result == f_console_result_found_e) { - f_print_dynamic_raw(fss_payload_read_pipe_content_end_s, main->output.to.stream); + f_print_dynamic_raw(fss_payload_read_pipe_content_end_s, main->output.to); } else { - f_print_dynamic_raw(f_fss_space_s, main->output.to.stream); + f_print_dynamic_raw(f_fss_space_s, main->output.to); } } #endif // _di_fss_payload_read_print_object_end_extended_ @@ -274,7 +274,7 @@ extern "C" { void fss_payload_read_print_set_end(fll_program_data_t * const main) { if (main->parameters.array[fss_payload_read_parameter_pipe_e].result == f_console_result_found_e) { - f_print_dynamic_raw(fss_payload_read_pipe_content_end_s, main->output.to.stream); + f_print_dynamic_raw(fss_payload_read_pipe_content_end_s, main->output.to); } } #endif // _di_fss_payload_read_print_set_end_ @@ -283,10 +283,10 @@ extern "C" { void fss_payload_read_print_set_end_extended(fll_program_data_t * const main) { if (main->parameters.array[fss_payload_read_parameter_pipe_e].result == f_console_result_found_e) { - f_print_dynamic_raw(fss_payload_read_pipe_content_end_s, main->output.to.stream); + f_print_dynamic_raw(fss_payload_read_pipe_content_end_s, main->output.to); } else { - f_print_dynamic_raw(f_fss_eol_s, main->output.to.stream); + f_print_dynamic_raw(f_fss_eol_s, main->output.to); } } #endif // _di_fss_payload_read_print_set_end_extended_ @@ -294,16 +294,16 @@ extern "C" { #ifndef _di_fss_payload_read_print_one_ void fss_payload_read_print_one(fll_program_data_t * const main) { - f_print_dynamic_raw(f_string_ascii_1_s, main->output.to.stream); - f_print_dynamic_raw(f_string_eol_s, main->output.to.stream); + f_print_dynamic_raw(f_string_ascii_1_s, main->output.to); + f_print_dynamic_raw(f_string_eol_s, main->output.to); } #endif // _di_fss_payload_read_print_one_ #ifndef _di_fss_payload_read_print_zero_ void fss_payload_read_print_zero(fll_program_data_t * const main) { - f_print_dynamic_raw(f_string_ascii_0_s, main->output.to.stream); - f_print_dynamic_raw(f_string_eol_s, main->output.to.stream); + f_print_dynamic_raw(f_string_ascii_0_s, main->output.to); + f_print_dynamic_raw(f_string_eol_s, main->output.to); } #endif // _di_fss_payload_read_print_zero_ diff --git a/level_3/fss_payload_read/c/private-read.c b/level_3/fss_payload_read/c/private-read.c index b43252f..a95ee59 100644 --- a/level_3/fss_payload_read/c/private-read.c +++ b/level_3/fss_payload_read/c/private-read.c @@ -197,13 +197,13 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_payload_read_long_depth_s, main->error.notable); - fl_print_format("%[' may not have the value '%]", main->error.to.stream, main->error.context, main->error.context); - fl_print_format("%[%ul%]", main->error.to.stream, main->error.notable, data->depths.array[i].depth, main->error.notable); - fl_print_format("%[' before the value '%]", main->error.to.stream, main->error.context, main->error.context); - fl_print_format("%[%ul%]", main->error.to.stream, main->error.notable, data->depths.array[j].depth, main->error.notable); - fl_print_format("%['.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_payload_read_long_depth_s, main->error.notable); + fl_print_format("%[' may not have the value '%]", main->error.to, main->error.context, main->error.context); + fl_print_format("%[%ul%]", main->error.to, main->error.notable, data->depths.array[i].depth, main->error.notable); + fl_print_format("%[' before the value '%]", main->error.to, main->error.context, main->error.context); + fl_print_format("%[%ul%]", main->error.to, main->error.notable, data->depths.array[j].depth, main->error.notable); + fl_print_format("%['.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -254,11 +254,11 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe file '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%]", main->error.to.stream, main->error.notable, file_name, main->error.notable); - fl_print_format("%[' does not have the required Object '%]", main->error.to.stream, main->error.context, main->error.context); - fl_print_format("%[%r%]", main->error.to.stream, main->error.notable, f_fss_string_payload_s, main->error.notable); - fl_print_format("%['.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe file '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%]", main->error.to, main->error.notable, file_name, main->error.notable); + fl_print_format("%[' does not have the required Object '%]", main->error.to, main->error.context, main->error.context); + fl_print_format("%[%r%]", main->error.to, main->error.notable, f_fss_string_payload_s, main->error.notable); + fl_print_format("%['.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -515,7 +515,7 @@ extern "C" { if (status == F_success) return F_none; } else if (data->option & fss_payload_read_data_option_columns_d) { - fll_print_format("%ul%r", main->output.to.stream, data->contents.array[i].used, f_string_eol_s); + fll_print_format("%ul%r", main->output.to, data->contents.array[i].used, f_string_eol_s); } else if (data->option & fss_payload_read_data_option_total_d) { flockfile(main->output.to.stream); @@ -611,18 +611,18 @@ extern "C" { } else { if ((data->option & fss_payload_read_data_option_original_d) && data->quotes_object_header.array[at]) { - f_print_character_safely(data->quotes_object_header.array[at] == f_fss_quote_type_single_e ? f_fss_quote_single_s.string[0] : f_fss_quote_double_s.string[0], main->output.to.stream); + f_print_character_safely(data->quotes_object_header.array[at] == f_fss_quote_type_single_e ? f_fss_quote_single_s.string[0] : f_fss_quote_double_s.string[0], main->output.to); } fss_payload_read_print_at_extended(main, i, *delimits_object, *delimits_content, data); if ((data->option & fss_payload_read_data_option_original_d) && data->quotes_object_header.array[at]) { - f_print_character_safely(data->quotes_object_header.array[at] == f_fss_quote_type_single_e ? f_fss_quote_single_s.string[0] : f_fss_quote_double_s.string[0], main->output.to.stream); + f_print_character_safely(data->quotes_object_header.array[at] == f_fss_quote_type_single_e ? f_fss_quote_single_s.string[0] : f_fss_quote_double_s.string[0], main->output.to); } } } else if (data->option & fss_payload_read_data_option_columns_d) { - fll_print_format("%ul%r", main->output.to.stream, data->contents_header.array[i].used, f_string_eol_s); + fll_print_format("%ul%r", main->output.to, data->contents_header.array[i].used, f_string_eol_s); } else if (data->option & fss_payload_read_data_option_total_d) { if (fss_payload_read_print_at_total_extended(main, i, data) == F_none) { @@ -631,13 +631,13 @@ extern "C" { } else { if ((data->option & fss_payload_read_data_option_original_d) && data->quotes_content_header.array[at].array[i]) { - f_print_character_safely(data->quotes_content_header.array[at].array[i] == f_fss_quote_type_single_e ? f_fss_quote_single_s.string[0] : f_fss_quote_double_s.string[0], main->output.to.stream); + f_print_character_safely(data->quotes_content_header.array[at].array[i] == f_fss_quote_type_single_e ? f_fss_quote_single_s.string[0] : f_fss_quote_double_s.string[0], main->output.to); } fss_payload_read_print_at_extended(main, i, *delimits_object, *delimits_content, data); if ((data->option & fss_payload_read_data_option_original_d) && data->quotes_content_header.array[at].array[i]) { - f_print_character_safely(data->quotes_content_header.array[at].array[i] == f_fss_quote_type_single_e ? f_fss_quote_single_s.string[0] : f_fss_quote_double_s.string[0], main->output.to.stream); + f_print_character_safely(data->quotes_content_header.array[at].array[i] == f_fss_quote_type_single_e ? f_fss_quote_single_s.string[0] : f_fss_quote_double_s.string[0], main->output.to); } } @@ -720,7 +720,7 @@ extern "C" { fss_payload_read_print_one(main); } else { - f_print_except_in_dynamic_partial(data->buffer, range, delimits_content, data->comments, main->output.to.stream); + f_print_except_in_dynamic_partial(data->buffer, range, delimits_content, data->comments, main->output.to); } funlockfile(main->output.to.stream); @@ -749,8 +749,8 @@ extern "C" { else { range.stop = data->contents.array[at].array[0].stop; - f_print_except_in_dynamic_partial(data->buffer, range, delimits_content, data->comments, main->output.to.stream); - f_print_dynamic_raw(f_string_eol_s, main->output.to.stream); + f_print_except_in_dynamic_partial(data->buffer, range, delimits_content, data->comments, main->output.to); + f_print_dynamic_raw(f_string_eol_s, main->output.to); } funlockfile(main->output.to.stream); @@ -798,7 +798,7 @@ extern "C" { } } // for - fll_print_format("%ul%r", main->output.to.stream, max, f_string_eol_s); + fll_print_format("%ul%r", main->output.to, max, f_string_eol_s); return F_none; } @@ -828,7 +828,7 @@ extern "C" { } } // for - fll_print_format("%ul%r", main->output.to.stream, max, f_string_eol_s); + fll_print_format("%ul%r", main->output.to, max, f_string_eol_s); return F_none; } @@ -1114,7 +1114,7 @@ extern "C" { } } else { - fl_print_format("%ul%r", main->output.to.stream, total, f_string_eol_s); + fl_print_format("%ul%r", main->output.to, total, f_string_eol_s); } funlockfile(main->output.to.stream); @@ -1181,7 +1181,7 @@ extern "C" { } } else { - fl_print_format("%ul%r", main->output.to.stream, total, f_string_eol_s); + fl_print_format("%ul%r", main->output.to, total, f_string_eol_s); } funlockfile(main->output.to.stream); diff --git a/level_3/fss_payload_write/c/fss_payload_write.c b/level_3/fss_payload_write/c/fss_payload_write.c index 5a8222f..caf37b9 100644 --- a/level_3/fss_payload_write/c/fss_payload_write.c +++ b/level_3/fss_payload_write/c/fss_payload_write.c @@ -82,7 +82,7 @@ extern "C" { f_file_t output = f_file_t_initialize; output.id = F_type_descriptor_output_d; - output.stream = main->output.to.stream; + output.stream = main->output.to; output.flag = F_file_flag_create_d | F_file_flag_write_only_d | F_file_flag_append_d; output.size_read = main->output.to.size_read; output.size_write = main->output.to.size_write; @@ -134,13 +134,13 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_payload_write_long_partial_s, main->error.notable); - fl_print_format("%[' parameter only allows either the '%]", main->error.to.stream, main->error.context, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_payload_write_long_object_s, main->error.notable); - fl_print_format("%[' parameter or the '%]", main->error.to.stream, main->error.context, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_payload_write_long_content_s, main->error.notable); - fl_print_format("%[' parameter, but not both.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_payload_write_long_partial_s, main->error.notable); + fl_print_format("%[' parameter only allows either the '%]", main->error.to, main->error.context, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_payload_write_long_object_s, main->error.notable); + fl_print_format("%[' parameter or the '%]", main->error.to, main->error.context, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_payload_write_long_content_s, main->error.notable); + fl_print_format("%[' parameter, but not both.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -166,11 +166,11 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QEach '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_payload_write_long_object_s, main->error.notable); - fl_print_format("%[' parameter must be specified before a '%]", main->error.to.stream, main->error.context, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_payload_write_long_content_s, main->error.notable); - fl_print_format("%[' parameter.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QEach '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_payload_write_long_object_s, main->error.notable); + fl_print_format("%[' parameter must be specified before a '%]", main->error.to, main->error.context, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_payload_write_long_content_s, main->error.notable); + fl_print_format("%[' parameter.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -197,11 +197,11 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThis requires either piped data or the use of the '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_payload_write_long_object_s, main->error.notable); - fl_print_format("%[' parameter with the '%]", main->error.to.stream, main->error.context, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_payload_write_long_content_s, main->error.notable); - fl_print_format("%[' parameter.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThis requires either piped data or the use of the '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_payload_write_long_object_s, main->error.notable); + fl_print_format("%[' parameter with the '%]", main->error.to, main->error.context, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_payload_write_long_content_s, main->error.notable); + fl_print_format("%[' parameter.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -214,9 +214,9 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThis '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_payload_write_long_partial_s, main->error.notable); - fl_print_format("%[' parameter cannot be used when processing a pipe.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThis '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_payload_write_long_partial_s, main->error.notable); + fl_print_format("%[' parameter cannot be used when processing a pipe.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -231,9 +231,9 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_payload_write_long_prepend_s, main->error.notable); - fl_print_format("%[' is specified, but no value is given.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_payload_write_long_prepend_s, main->error.notable); + fl_print_format("%[' is specified, but no value is given.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -256,9 +256,9 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe value for the parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_payload_write_long_prepend_s, main->error.notable); - fl_print_format("%[' must only contain white space.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe value for the parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_payload_write_long_prepend_s, main->error.notable); + fl_print_format("%[' must only contain white space.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -272,9 +272,9 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe value for the parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_payload_write_long_prepend_s, main->error.notable); - fl_print_format("%[' must not be an empty string.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe value for the parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_payload_write_long_prepend_s, main->error.notable); + fl_print_format("%[' must not be an empty string.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -289,9 +289,9 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_payload_write_long_ignore_s, main->error.notable); - fl_print_format("%[' was specified, but no values were given.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_payload_write_long_ignore_s, main->error.notable); + fl_print_format("%[' was specified, but no values were given.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -305,9 +305,9 @@ extern "C" { if (total_locations * 2 > total_arguments) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_payload_write_long_ignore_s, main->error.notable); - fl_print_format("%[' requires two values.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_payload_write_long_ignore_s, main->error.notable); + fl_print_format("%[' requires two values.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); @@ -343,8 +343,8 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QWhile processing the '%]%[input pipe%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context, main->error.notable, main->error.notable); - fl_print_format("%['.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QWhile processing the '%]%[input pipe%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context, main->error.notable, main->error.notable); + fl_print_format("%['.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -417,8 +417,8 @@ extern "C" { if (main->error.verbosity > f_console_verbosity_quiet_e) { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QWhile processing the '%]%[input arguments%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context, main->error.notable, main->error.notable); - fl_print_format("%['.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QWhile processing the '%]%[input arguments%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context, main->error.notable, main->error.notable); + fl_print_format("%['.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -426,7 +426,7 @@ extern "C" { else if (main->error.verbosity > f_console_verbosity_quiet_e && main->error.verbosity != f_console_verbosity_error_e && main->parameters.array[fss_payload_write_parameter_file_e].result == f_console_result_none_e) { // Ensure there is always a newline at the end, unless in quiet mode. - fll_print_dynamic_raw(f_string_eol_s, main->output.to.stream); + fll_print_dynamic_raw(f_string_eol_s, main->output.to); } } @@ -441,7 +441,7 @@ extern "C" { // Ensure a newline is always put at the end of the program execution, unless in quiet mode. if (main->error.verbosity > f_console_verbosity_quiet_e) { if (F_status_is_error(status)) { - fll_print_dynamic_raw(f_string_eol_s, main->error.to.stream); + fll_print_dynamic_raw(f_string_eol_s, main->error.to); } } diff --git a/level_3/fss_payload_write/c/print.c b/level_3/fss_payload_write/c/print.c index d553e85..00eba02 100644 --- a/level_3/fss_payload_write/c/print.c +++ b/level_3/fss_payload_write/c/print.c @@ -10,13 +10,13 @@ extern "C" { f_file_stream_lock(print.to); - f_print_dynamic_raw(setting->line_first, print.to.stream); + f_print_dynamic_raw(setting->line_first, print.to); fll_program_print_help_header(print, fss_payload_write_program_name_long_s, fss_payload_write_program_version_s); fll_program_print_help_option_standard(print); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); + f_print_dynamic_raw(f_string_eol_s, print.to); fll_program_print_help_option(print, fss_payload_write_short_file_s, fss_payload_write_long_file_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Specify a file to send data to."); fll_program_print_help_option(print, fss_payload_write_short_content_s, fss_payload_write_long_content_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, "The Content to write."); @@ -28,25 +28,25 @@ extern "C" { fll_program_print_help_option(print, fss_payload_write_short_single_s, fss_payload_write_long_single_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Use single quotes."); fll_program_print_help_option(print, fss_payload_write_short_trim_s, fss_payload_write_long_trim_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Trim Object names."); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); + f_print_dynamic_raw(f_string_eol_s, print.to); + f_print_dynamic_raw(f_string_eol_s, print.to); fll_program_print_help_usage(print, fss_payload_write_program_name_s, f_string_empty_s); - fl_print_format("%r The pipe uses the Backspace character '%[\\b%]' (%[U+0008%]) to designate the start of a Content.%r", print.to.stream, f_string_eol_s, print.set->notable, print.set->notable, print.set->notable, print.set->notable, f_string_eol_s); - fl_print_format(" The pipe uses the Form Feed character '%[\\f%]' (%[U+000C%]) to designate the end of the last Content.%r", print.to.stream, print.set->notable, print.set->notable, print.set->notable, print.set->notable, f_string_eol_s); - fl_print_format(" The pipe uses the Vertical Line character '%[\\v%]' (%[U+000B%]) is used to ignore a Content range, which does nothing in this program.%r", print.to.stream, print.set->notable, print.set->notable, print.set->notable, print.set->notable, f_string_eol_s); - fl_print_format(" For the pipe, an Object is terminated by either a Backspace character '%[\\b%]' (%[U+0008%])", print.to.stream, print.set->notable, print.set->notable, print.set->notable, print.set->notable); - fl_print_format(" or a Form Feed character '%[\\f%]' (%[U+000C%]).%r", print.to.stream, print.set->notable, print.set->notable, print.set->notable, print.set->notable, f_string_eol_s); - fl_print_format(" The end of the pipe represents the end of any Object or Content.%r%r", print.to.stream, f_string_eol_s, f_string_eol_s); + fl_print_format("%r The pipe uses the Backspace character '%[\\b%]' (%[U+0008%]) to designate the start of a Content.%r", print.to, f_string_eol_s, print.set->notable, print.set->notable, print.set->notable, print.set->notable, f_string_eol_s); + fl_print_format(" The pipe uses the Form Feed character '%[\\f%]' (%[U+000C%]) to designate the end of the last Content.%r", print.to, print.set->notable, print.set->notable, print.set->notable, print.set->notable, f_string_eol_s); + fl_print_format(" The pipe uses the Vertical Line character '%[\\v%]' (%[U+000B%]) is used to ignore a Content range, which does nothing in this program.%r", print.to, print.set->notable, print.set->notable, print.set->notable, print.set->notable, f_string_eol_s); + fl_print_format(" For the pipe, an Object is terminated by either a Backspace character '%[\\b%]' (%[U+0008%])", print.to, print.set->notable, print.set->notable, print.set->notable, print.set->notable); + fl_print_format(" or a Form Feed character '%[\\f%]' (%[U+000C%]).%r", print.to, print.set->notable, print.set->notable, print.set->notable, print.set->notable, f_string_eol_s); + fl_print_format(" The end of the pipe represents the end of any Object or Content.%r%r", print.to, f_string_eol_s, f_string_eol_s); - fl_print_format(" The FSS-000E (Payload) specification does not support quoted names, therefore the parameters '%[%r%r%]'", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_payload_write_long_single_s, print.set->notable); - fl_print_format(" and '%[%r%r%]' do nothing.%r%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_payload_write_long_double_s, print.set->notable, f_string_eol_s, f_string_eol_s); + fl_print_format(" The FSS-000E (Payload) specification does not support quoted names, therefore the parameters '%[%r%r%]'", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_payload_write_long_single_s, print.set->notable); + fl_print_format(" and '%[%r%r%]' do nothing.%r%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_payload_write_long_double_s, print.set->notable, f_string_eol_s, f_string_eol_s); - fl_print_format(" This program does not use the parameter '%[%r%r%]', which therefore does nothing.%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, fss_payload_write_long_ignore_s, print.set->notable, f_string_eol_s); - fl_print_format(" This parameter requires two values.%r", print.to.stream, f_string_eol_s); + fl_print_format(" This program does not use the parameter '%[%r%r%]', which therefore does nothing.%r", print.to, print.set->notable, f_console_symbol_long_enable_s, fss_payload_write_long_ignore_s, print.set->notable, f_string_eol_s); + fl_print_format(" This parameter requires two values.%r", print.to, f_string_eol_s); - f_print_dynamic_raw(setting->line_last, print.to.stream); + f_print_dynamic_raw(setting->line_last, print.to); f_file_stream_flush(print.to); f_file_stream_unlock(print.to); @@ -64,7 +64,7 @@ extern "C" { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; } - f_print_dynamic_raw(setting->line_first, print.to.stream); + f_print_dynamic_raw(setting->line_first, print.to); return F_none; } @@ -79,7 +79,7 @@ extern "C" { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; } - fll_print_dynamic_raw(setting->line_first, print.to.stream); + fll_print_dynamic_raw(setting->line_first, print.to); return F_none; } @@ -95,7 +95,7 @@ extern "C" { if (setting->flag & (fss_payload_write_main_flag_verify_e | fss_payload_write_main_flag_file_to_e)) return F_output_not; } - fll_print_dynamic_raw(setting->line_last, print.to.stream); + fll_print_dynamic_raw(setting->line_last, print.to); return F_none; } @@ -111,7 +111,7 @@ extern "C" { if (setting->flag & (fss_payload_write_main_flag_verify_e | fss_payload_write_main_flag_file_to_e)) return F_output_not; } - f_print_dynamic_raw(setting->line_last, print.to.stream); + f_print_dynamic_raw(setting->line_last, print.to); return F_none; } diff --git a/level_3/fss_payload_write/c/private-write.c b/level_3/fss_payload_write/c/private-write.c index 6c574d0..b91cf3d 100644 --- a/level_3/fss_payload_write/c/private-write.c +++ b/level_3/fss_payload_write/c/private-write.c @@ -15,13 +15,13 @@ extern "C" { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QMust specify the '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_payload_write_long_object_s, main->error.notable); - fl_print_format("%[' parameter and the '%]", main->error.to.stream, main->error.context, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_payload_write_long_content_s, main->error.notable); - fl_print_format("%[' parameter the same number of times when not specifying the '%]", main->error.to.stream, main->error.context, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, f_console_symbol_long_enable_s, fss_payload_write_long_partial_s, main->error.notable); - fl_print_format("%[' parameter.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QMust specify the '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_payload_write_long_object_s, main->error.notable); + fl_print_format("%[' parameter and the '%]", main->error.to, main->error.context, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_payload_write_long_content_s, main->error.notable); + fl_print_format("%[' parameter the same number of times when not specifying the '%]", main->error.to, main->error.context, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, f_console_symbol_long_enable_s, fss_payload_write_long_partial_s, main->error.notable); + fl_print_format("%[' parameter.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -36,11 +36,11 @@ extern "C" { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe FSS-000E (Payload) standard does not support end of line character '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[\\n%]", main->error.to.stream, main->error.notable, main->error.notable); - fl_print_format("%[' (%]", main->error.to.stream, main->error.context, main->error.context); - fl_print_format("%[U+000A%]", main->error.to.stream, main->error.notable, main->error.notable); - fl_print_format("%[) in objects.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe FSS-000E (Payload) standard does not support end of line character '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[\\n%]", main->error.to, main->error.notable, main->error.notable); + fl_print_format("%[' (%]", main->error.to, main->error.context, main->error.context); + fl_print_format("%[U+000A%]", main->error.to, main->error.notable, main->error.notable); + fl_print_format("%[) in objects.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -55,9 +55,9 @@ extern "C" { f_file_stream_lock(main->error.to); - fl_print_format("%r%[%QThe parameter '%]", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); - fl_print_format("%[%r%r%]", main->error.to.stream, main->error.notable, symbol, parameter, main->error.notable); - fl_print_format("%[' is specified, but no value is given.%]%r", main->error.to.stream, main->error.context, main->error.context, f_string_eol_s); + fl_print_format("%r%[%QThe parameter '%]", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context); + fl_print_format("%[%r%r%]", main->error.to, main->error.notable, symbol, parameter, main->error.notable); + fl_print_format("%[' is specified, but no value is given.%]%r", main->error.to, main->error.context, main->error.context, f_string_eol_s); f_file_stream_unlock(main->error.to); } @@ -178,7 +178,7 @@ extern "C" { } } - fll_print_dynamic(*buffer, output.stream); + fll_print_dynamic(*buffer, output); buffer->used = 0; @@ -345,7 +345,7 @@ extern "C" { if (block.string[range.start] == fss_payload_write_pipe_content_start_s.string[0]) { if (main->error.verbosity > f_console_verbosity_quiet_e) { - fll_print_format("%r%[%QThe FSS-000E (Payload) standard only supports one content per object.%]%r", main->error.to.stream, f_string_eol_s, main->error.context, main->error.prefix, main->error.context, f_string_eol_s); + fll_print_format("%r%[%QThe FSS-000E (Payload) standard only supports one content per object.%]%r", main->error.to, f_string_eol_s, main->error.context, main->error.prefix, main->error.context, f_string_eol_s); } status = F_status_set_error(F_supported_not); diff --git a/level_3/fss_status_code/c/print.c b/level_3/fss_status_code/c/print.c index 5e2da07..faa9d73 100644 --- a/level_3/fss_status_code/c/print.c +++ b/level_3/fss_status_code/c/print.c @@ -13,13 +13,13 @@ extern "C" { f_file_stream_lock(print.to); - fl_print_format("%[%QCannot specify the '%]", print.to.stream, print.context, print.prefix, print.context); - fl_print_format("%[%r%r%]", print.to.stream, print.notable, f_console_symbol_long_enable_s, fss_status_code_long_error_s, print.notable); - fl_print_format("%[' parameter with the '%]", print.to.stream, print.context, print.context); - fl_print_format("%[%r%r%]", print.to.stream, print.notable, f_console_symbol_long_enable_s, fss_status_code_long_warning_s, print.notable); - fl_print_format("%[' parameter when not also specifying the '%]", print.to.stream, print.context, print.context); - fl_print_format("%[%r%r%]", print.to.stream, print.notable, f_console_symbol_long_enable_s, fss_status_code_long_number_s, print.notable); - fl_print_format("%[' parameter.%]%r", print.to.stream, print.context, print.context, f_string_eol_s); + fl_print_format("%[%QCannot specify the '%]", print.to, print.context, print.prefix, print.context); + fl_print_format("%[%r%r%]", print.to, print.notable, f_console_symbol_long_enable_s, fss_status_code_long_error_s, print.notable); + fl_print_format("%[' parameter with the '%]", print.to, print.context, print.context); + fl_print_format("%[%r%r%]", print.to, print.notable, f_console_symbol_long_enable_s, fss_status_code_long_warning_s, print.notable); + fl_print_format("%[' parameter when not also specifying the '%]", print.to, print.context, print.context); + fl_print_format("%[%r%r%]", print.to, print.notable, f_console_symbol_long_enable_s, fss_status_code_long_number_s, print.notable); + fl_print_format("%[' parameter.%]%r", print.to, print.context, print.context, f_string_eol_s); f_file_stream_unlock(print.to); @@ -32,7 +32,7 @@ extern "C" { if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; - fll_print_format("%[No status code is specified.%]%r", print.to.stream, print.context, print.context, f_string_eol_s); + fll_print_format("%[No status code is specified.%]%r", print.to, print.context, print.context, f_string_eol_s); return F_none; } @@ -43,25 +43,25 @@ extern "C" { f_file_stream_lock(print.to); - f_print_dynamic_raw(setting->line_first, print.to.stream); + f_print_dynamic_raw(setting->line_first, print.to); fll_program_print_help_header(print, fss_status_code_program_name_long_s, fss_status_code_program_version_s); fll_program_print_help_option_standard(print); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); + f_print_dynamic_raw(f_string_eol_s, print.to); fll_program_print_help_option(print, fss_status_code_short_fine_s, fss_status_code_long_fine_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Print F_true or F_false if status code is neither an error nor a warning or print number with neither the error code nor the warning code bits set."); fll_program_print_help_option(print, fss_status_code_short_warning_s, fss_status_code_long_warning_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, "Print F_true or F_false if status code is a warning or print number with warning code bit set."); fll_program_print_help_option(print, fss_status_code_short_error_s, fss_status_code_long_error_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Print F_true or F_false if status code is an error or print number with error code bit set."); fll_program_print_help_option(print, fss_status_code_short_number_s, fss_status_code_long_number_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Convert status code name to number."); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); + f_print_dynamic_raw(f_string_eol_s, print.to); + f_print_dynamic_raw(f_string_eol_s, print.to); fll_program_print_help_usage(print, fss_status_code_program_name_s, fss_status_code_program_help_parameters_s); - f_print_dynamic_raw(setting->line_last, print.to.stream); + f_print_dynamic_raw(setting->line_last, print.to); f_file_stream_flush(print.to); f_file_stream_unlock(print.to); @@ -79,7 +79,7 @@ extern "C" { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; } - f_print_dynamic_raw(setting->line_first, print.to.stream); + f_print_dynamic_raw(setting->line_first, print.to); return F_none; } @@ -94,7 +94,7 @@ extern "C" { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; } - fll_print_dynamic_raw(setting->line_first, print.to.stream); + fll_print_dynamic_raw(setting->line_first, print.to); return F_none; } @@ -109,7 +109,7 @@ extern "C" { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; } - fll_print_dynamic_raw(setting->line_last, print.to.stream); + fll_print_dynamic_raw(setting->line_last, print.to); return F_none; } @@ -124,7 +124,7 @@ extern "C" { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; } - f_print_dynamic_raw(setting->line_last, print.to.stream); + f_print_dynamic_raw(setting->line_last, print.to); return F_none; } diff --git a/level_3/fss_status_code/c/private-fss_status_code.c b/level_3/fss_status_code/c/private-fss_status_code.c index 77147b8..bd05b4a 100644 --- a/level_3/fss_status_code/c/private-fss_status_code.c +++ b/level_3/fss_status_code/c/private-fss_status_code.c @@ -17,13 +17,13 @@ extern "C" { } if ((setting->flag & fss_status_code_main_flag_error_e) && F_status_is_error(number) || (setting->flag & fss_status_code_main_flag_warning_e) && F_status_is_warning(number) || (setting->flag & fss_status_code_main_flag_fine_e) && F_status_is_fine(number)) { - f_print_dynamic_raw(f_status_true_s, main->output.to.stream); + f_print_dynamic_raw(f_status_true_s, main->output.to); } else { - f_print_dynamic_raw(f_status_false_s, main->output.to.stream); + f_print_dynamic_raw(f_status_false_s, main->output.to); } - f_print_dynamic_raw(f_string_eol_s, main->output.to.stream); + f_print_dynamic_raw(f_string_eol_s, main->output.to); return F_none; } @@ -40,13 +40,13 @@ extern "C" { status = fl_conversion_dynamic_to_unsigned_detect(fl_conversion_data_base_10_c, value, &number); if (status == F_none) { - fl_print_format("%[%r%]%r", main->output.to.stream, main->context.set.error, fss_status_code_invalid_name_s, main->context.set.error, f_string_eol_s); + fl_print_format("%[%r%]%r", main->output.to, main->context.set.error, fss_status_code_invalid_name_s, main->context.set.error, f_string_eol_s); return F_status_set_error(F_parameter); } if (status == F_data_not || F_status_set_fine(status) == F_parameter) { - fl_print_format("%[%r%]%r", main->output.to.stream, main->context.set.error, fss_status_code_invalid_main_s, main->context.set.error, f_string_eol_s); + fl_print_format("%[%r%]%r", main->output.to, main->context.set.error, fss_status_code_invalid_main_s, main->context.set.error, f_string_eol_s); return status; } @@ -63,10 +63,10 @@ extern "C" { if (F_status_is_error(status)) { if (F_status_set_fine(status) == F_data) { - fl_print_format("%[%r%]%r", main->output.to.stream, main->context.set.error, fss_status_code_unknown_name_s, main->context.set.error, f_string_eol_s); + fl_print_format("%[%r%]%r", main->output.to, main->context.set.error, fss_status_code_unknown_name_s, main->context.set.error, f_string_eol_s); } else { - fl_print_format("%[%r%]%r", main->output.to.stream, main->context.set.error, fss_status_code_failed_to_convert_s, main->context.set.error, f_string_eol_s); + fl_print_format("%[%r%]%r", main->output.to, main->context.set.error, fss_status_code_failed_to_convert_s, main->context.set.error, f_string_eol_s); } return status; @@ -74,7 +74,7 @@ extern "C" { } if (status == F_data) { - fl_print_format("%[%r%]%r", main->output.to.stream, main->context.set.error, fss_status_code_unknown_code_s, main->context.set.error, f_string_eol_s); + fl_print_format("%[%r%]%r", main->output.to, main->context.set.error, fss_status_code_unknown_code_s, main->context.set.error, f_string_eol_s); return F_none; } @@ -87,7 +87,7 @@ extern "C" { code = F_status_set_warning(code); } - fl_print_format("%ui%r", main->output.to.stream, code, f_string_eol_s); + fl_print_format("%ui%r", main->output.to, code, f_string_eol_s); return F_none; } @@ -107,16 +107,16 @@ extern "C" { if (F_status_is_error(status)) { if (F_status_set_fine(status) == F_data) { - fl_print_format("%[%r%]%r", main->output.to.stream, main->context.set.error, fss_status_code_unknown_code_s, main->context.set.error, f_string_eol_s); + fl_print_format("%[%r%]%r", main->output.to, main->context.set.error, fss_status_code_unknown_code_s, main->context.set.error, f_string_eol_s); } else { - fl_print_format("%[%r%]%r", main->output.to.stream, main->context.set.error, fss_status_code_failed_to_convert_s, main->context.set.error, f_string_eol_s); + fl_print_format("%[%r%]%r", main->output.to, main->context.set.error, fss_status_code_failed_to_convert_s, main->context.set.error, f_string_eol_s); } return status; } - fl_print_format("%Q%r", main->output.to.stream, name, f_string_eol_s); + fl_print_format("%Q%r", main->output.to, name, f_string_eol_s); return F_none; } @@ -128,17 +128,17 @@ extern "C" { const f_status_t status = fl_conversion_dynamic_to_unsigned_detect(fl_conversion_data_base_10_c, value, number); if (*number > F_status_size_max_with_bits_d) { - fl_print_format("%[%r%]%r", main->output.to.stream, main->context.set.error, fss_status_code_out_of_range_s, main->context.set.error, f_string_eol_s); + fl_print_format("%[%r%]%r", main->output.to, main->context.set.error, fss_status_code_out_of_range_s, main->context.set.error, f_string_eol_s); return F_status_set_error(F_number_overflow); } if (F_status_is_error(status)) { if (F_status_set_fine(status) == F_number_negative) { - fl_print_format("%[%r%]%r", main->output.to.stream, main->context.set.error, fss_status_code_out_of_range_s, main->context.set.error, f_string_eol_s); + fl_print_format("%[%r%]%r", main->output.to, main->context.set.error, fss_status_code_out_of_range_s, main->context.set.error, f_string_eol_s); } else { - fl_print_format("%[%r%]%r", main->output.to.stream, main->context.set.error, fss_status_code_invalid_number_s, main->context.set.error, f_string_eol_s); + fl_print_format("%[%r%]%r", main->output.to, main->context.set.error, fss_status_code_invalid_number_s, main->context.set.error, f_string_eol_s); } return status; diff --git a/level_3/iki_read/c/print.c b/level_3/iki_read/c/print.c index ae055e5..e63c2e9 100644 --- a/level_3/iki_read/c/print.c +++ b/level_3/iki_read/c/print.c @@ -10,85 +10,85 @@ extern "C" { f_file_stream_lock(print.to); - f_print_dynamic_raw(setting->line_first, print.to.stream); + f_print_dynamic_raw(setting->line_first, print.to); fll_program_print_help_header(print, iki_read_program_name_long_s, iki_read_program_version_s); fll_program_print_help_option_standard(print); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); + f_print_dynamic_raw(f_string_eol_s, print.to); fll_program_print_help_option(print, iki_read_short_at_s, iki_read_long_at_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Select variable at this numeric index."); fll_program_print_help_option(print, iki_read_short_line_s, iki_read_long_line_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Print only the variables at the given line within the file."); fll_program_print_help_option(print, iki_read_short_name_s, iki_read_long_name_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Select variables with this name."); fll_program_print_help_option(print, iki_read_short_whole_s, iki_read_long_whole_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, "Print all of the data instead of just the IKI variable data."); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); + f_print_dynamic_raw(f_string_eol_s, print.to); fll_program_print_help_option(print, iki_read_short_content_s, iki_read_long_content_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, "Print the variable value (aka: content) (default)"); fll_program_print_help_option(print, iki_read_short_literal_s, iki_read_long_literal_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, "Print the entire variable (aka: object, content, and syntax)."); fll_program_print_help_option(print, iki_read_short_object_s, iki_read_long_object_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Print the variable name (aka: object)."); fll_program_print_help_option(print, iki_read_short_total_s, iki_read_long_total_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Print the total number of variables."); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); + f_print_dynamic_raw(f_string_eol_s, print.to); fll_program_print_help_option(print, iki_read_short_replace_s, iki_read_long_replace_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Simple substitution, replacing the variable for the given name with the given string."); fll_program_print_help_option(print, iki_read_short_substitute_s, iki_read_long_substitute_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, "Substitute the variable for the given name and matching content value with the given string."); fll_program_print_help_option(print, iki_read_short_wrap_s, iki_read_long_wrap_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Prepend and append strings for the given name."); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); + f_print_dynamic_raw(f_string_eol_s, print.to); + f_print_dynamic_raw(f_string_eol_s, print.to); fll_program_print_help_usage(print, iki_read_program_name_s, fll_program_parameter_filenames_s); - fl_print_format("%r %[Notes:%]%r", print.to.stream, f_string_eol_s, print.set->important, print.set->important, f_string_eol_s); - fl_print_format(" This program will find and print variables, vocabularies, or content following the IKI standard, without focusing on any particular vocabulary specification.%r%r", print.to.stream, f_string_eol_s, f_string_eol_s); + fl_print_format("%r %[Notes:%]%r", print.to, f_string_eol_s, print.set->important, print.set->important, f_string_eol_s); + fl_print_format(" This program will find and print variables, vocabularies, or content following the IKI standard, without focusing on any particular vocabulary specification.%r%r", print.to, f_string_eol_s, f_string_eol_s); - fl_print_format(" The %[%r%r%] option requires 2 additional parameters:", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, iki_read_long_replace_s, print.set->notable); - fl_print_format(" %[<%]%r%[>%]", print.to.stream, print.set->notable, print.set->notable, iki_read_substitution_vocabulary_s, print.set->notable, print.set->notable); - fl_print_format(" %[<%]%r%[>%].%r", print.to.stream, print.set->notable, print.set->notable, iki_read_substitution_with_s, print.set->notable, print.set->notable, f_string_eol_s); + fl_print_format(" The %[%r%r%] option requires 2 additional parameters:", print.to, print.set->notable, f_console_symbol_long_enable_s, iki_read_long_replace_s, print.set->notable); + fl_print_format(" %[<%]%r%[>%]", print.to, print.set->notable, print.set->notable, iki_read_substitution_vocabulary_s, print.set->notable, print.set->notable); + fl_print_format(" %[<%]%r%[>%].%r", print.to, print.set->notable, print.set->notable, iki_read_substitution_with_s, print.set->notable, print.set->notable, f_string_eol_s); - fl_print_format(" %[%r%]: The name of the vocabulary whose content is to be substituted.%r", print.to.stream, print.set->notable, iki_read_substitution_vocabulary_s, print.set->notable, f_string_eol_s); - fl_print_format(" %[%r%]: The new string to use as the substitute.%r%r", print.to.stream, print.set->notable, iki_read_substitution_with_s, print.set->notable, f_string_eol_s, f_string_eol_s); + fl_print_format(" %[%r%]: The name of the vocabulary whose content is to be substituted.%r", print.to, print.set->notable, iki_read_substitution_vocabulary_s, print.set->notable, f_string_eol_s); + fl_print_format(" %[%r%]: The new string to use as the substitute.%r%r", print.to, print.set->notable, iki_read_substitution_with_s, print.set->notable, f_string_eol_s, f_string_eol_s); - fl_print_format(" The vocabulary is case-sensitive and must exactly match.%r%r", print.to.stream, f_string_eol_s, f_string_eol_s); + fl_print_format(" The vocabulary is case-sensitive and must exactly match.%r%r", print.to, f_string_eol_s, f_string_eol_s); - fl_print_format(" The %[%r%r%] option requires 3 additional parameters:", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, iki_read_long_substitute_s, print.set->notable); - fl_print_format(" %[<%]%r%[>%]", print.to.stream, print.set->notable, print.set->notable, iki_read_substitution_vocabulary_s, print.set->notable, print.set->notable); - fl_print_format(" %[<%]%r%[>%]", print.to.stream, print.set->notable, print.set->notable, iki_read_substitution_replace_s, print.set->notable, print.set->notable); - fl_print_format(" %[<%]%r%[>%].%r", print.to.stream, print.set->notable, print.set->notable, iki_read_substitution_with_s, print.set->notable, print.set->notable, f_string_eol_s); + fl_print_format(" The %[%r%r%] option requires 3 additional parameters:", print.to, print.set->notable, f_console_symbol_long_enable_s, iki_read_long_substitute_s, print.set->notable); + fl_print_format(" %[<%]%r%[>%]", print.to, print.set->notable, print.set->notable, iki_read_substitution_vocabulary_s, print.set->notable, print.set->notable); + fl_print_format(" %[<%]%r%[>%]", print.to, print.set->notable, print.set->notable, iki_read_substitution_replace_s, print.set->notable, print.set->notable); + fl_print_format(" %[<%]%r%[>%].%r", print.to, print.set->notable, print.set->notable, iki_read_substitution_with_s, print.set->notable, print.set->notable, f_string_eol_s); - fl_print_format(" %[%r%]: The name of the vocabulary whose content is to be substituted.%r", print.to.stream, print.set->notable, iki_read_substitution_vocabulary_s, print.set->notable, f_string_eol_s); - fl_print_format(" %[%r%]: The content matching this exact string will be substituted.%r", print.to.stream, print.set->notable, iki_read_substitution_replace_s, print.set->notable, f_string_eol_s); - fl_print_format(" %[%r%]: The new string to use as the substitute.%r%r", print.to.stream, print.set->notable, iki_read_substitution_with_s, print.set->notable, f_string_eol_s, f_string_eol_s); + fl_print_format(" %[%r%]: The name of the vocabulary whose content is to be substituted.%r", print.to, print.set->notable, iki_read_substitution_vocabulary_s, print.set->notable, f_string_eol_s); + fl_print_format(" %[%r%]: The content matching this exact string will be substituted.%r", print.to, print.set->notable, iki_read_substitution_replace_s, print.set->notable, f_string_eol_s); + fl_print_format(" %[%r%]: The new string to use as the substitute.%r%r", print.to, print.set->notable, iki_read_substitution_with_s, print.set->notable, f_string_eol_s, f_string_eol_s); - fl_print_format(" The vocabulary and replacement are case-sensitive and must exactly match.%r%r", print.to.stream, f_string_eol_s, f_string_eol_s); + fl_print_format(" The vocabulary and replacement are case-sensitive and must exactly match.%r%r", print.to, f_string_eol_s, f_string_eol_s); - fl_print_format(" The %[%r%r%] option requires 3 additional parameters:", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, iki_read_long_wrap_s, print.set->notable); - fl_print_format(" %[<%]%r%[>%]", print.to.stream, print.set->notable, print.set->notable, iki_read_substitution_vocabulary_s, print.set->notable, print.set->notable); - fl_print_format(" %[<%]%r%[>%]", print.to.stream, print.set->notable, print.set->notable, iki_read_substitution_before_s, print.set->notable, print.set->notable); - fl_print_format(" %[<%]%r%[>%].%r", print.to.stream, print.set->notable, print.set->notable, iki_read_substitution_after_s, print.set->notable, print.set->notable, f_string_eol_s); + fl_print_format(" The %[%r%r%] option requires 3 additional parameters:", print.to, print.set->notable, f_console_symbol_long_enable_s, iki_read_long_wrap_s, print.set->notable); + fl_print_format(" %[<%]%r%[>%]", print.to, print.set->notable, print.set->notable, iki_read_substitution_vocabulary_s, print.set->notable, print.set->notable); + fl_print_format(" %[<%]%r%[>%]", print.to, print.set->notable, print.set->notable, iki_read_substitution_before_s, print.set->notable, print.set->notable); + fl_print_format(" %[<%]%r%[>%].%r", print.to, print.set->notable, print.set->notable, iki_read_substitution_after_s, print.set->notable, print.set->notable, f_string_eol_s); - fl_print_format(" %[%r%]: The name of the vocabulary whose content is to be wrapped.%r", print.to.stream, print.set->notable, iki_read_substitution_vocabulary_s, print.set->notable, f_string_eol_s); - fl_print_format(" %[%r%]: The string to prepend.%r", print.to.stream, print.set->notable, iki_read_substitution_before_s, print.set->notable, f_string_eol_s); - fl_print_format(" %[%r%]: The string to append.%r%r", print.to.stream, print.set->notable, iki_read_substitution_after_s, print.set->notable, f_string_eol_s, f_string_eol_s); + fl_print_format(" %[%r%]: The name of the vocabulary whose content is to be wrapped.%r", print.to, print.set->notable, iki_read_substitution_vocabulary_s, print.set->notable, f_string_eol_s); + fl_print_format(" %[%r%]: The string to prepend.%r", print.to, print.set->notable, iki_read_substitution_before_s, print.set->notable, f_string_eol_s); + fl_print_format(" %[%r%]: The string to append.%r%r", print.to, print.set->notable, iki_read_substitution_after_s, print.set->notable, f_string_eol_s, f_string_eol_s); - fl_print_format(" The vocabulary is case-sensitive and must exactly match.%r%r", print.to.stream, f_string_eol_s, f_string_eol_s); + fl_print_format(" The vocabulary is case-sensitive and must exactly match.%r%r", print.to, f_string_eol_s, f_string_eol_s); - fl_print_format(" The difference between %[%r%r%]", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, iki_read_long_replace_s, print.set->notable); - fl_print_format(" and %[%r%r%] is that the", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, iki_read_long_substitute_s, print.set->notable); - fl_print_format(" %[%r%r%] option substitutes all matching vocabulary names and the", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, iki_read_long_replace_s, print.set->notable); - fl_print_format(" %[%r%r%] option substitutes all matching vocabulary names that must also have the given matching content.%r%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, iki_read_long_substitute_s, print.set->notable, f_string_eol_s, f_string_eol_s); + fl_print_format(" The difference between %[%r%r%]", print.to, print.set->notable, f_console_symbol_long_enable_s, iki_read_long_replace_s, print.set->notable); + fl_print_format(" and %[%r%r%] is that the", print.to, print.set->notable, f_console_symbol_long_enable_s, iki_read_long_substitute_s, print.set->notable); + fl_print_format(" %[%r%r%] option substitutes all matching vocabulary names and the", print.to, print.set->notable, f_console_symbol_long_enable_s, iki_read_long_replace_s, print.set->notable); + fl_print_format(" %[%r%r%] option substitutes all matching vocabulary names that must also have the given matching content.%r%r", print.to, print.set->notable, f_console_symbol_long_enable_s, iki_read_long_substitute_s, print.set->notable, f_string_eol_s, f_string_eol_s); - fl_print_format(" The %[%r%r%]", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, iki_read_long_substitute_s, print.set->notable); - fl_print_format(" option takes priority over the %[%r%r%] option when matching the same variable.%r%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, iki_read_long_replace_s, print.set->notable, f_string_eol_s, f_string_eol_s); + fl_print_format(" The %[%r%r%]", print.to, print.set->notable, f_console_symbol_long_enable_s, iki_read_long_substitute_s, print.set->notable); + fl_print_format(" option takes priority over the %[%r%r%] option when matching the same variable.%r%r", print.to, print.set->notable, f_console_symbol_long_enable_s, iki_read_long_replace_s, print.set->notable, f_string_eol_s, f_string_eol_s); - fl_print_format(" The %[%r%r%]", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, iki_read_long_wrap_s, print.set->notable); - fl_print_format(" option is ignored when the %[%r%r%] option is matching the same variable.%r%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, iki_read_long_substitute_s, print.set->notable, f_string_eol_s, f_string_eol_s); + fl_print_format(" The %[%r%r%]", print.to, print.set->notable, f_console_symbol_long_enable_s, iki_read_long_wrap_s, print.set->notable); + fl_print_format(" option is ignored when the %[%r%r%] option is matching the same variable.%r%r", print.to, print.set->notable, f_console_symbol_long_enable_s, iki_read_long_substitute_s, print.set->notable, f_string_eol_s, f_string_eol_s); - fl_print_format(" The default behavior is to only display content portion of the IKI variable.%r", print.to.stream, f_string_eol_s); + fl_print_format(" The default behavior is to only display content portion of the IKI variable.%r", print.to, f_string_eol_s); - f_print_dynamic_raw(setting->line_last, print.to.stream); + f_print_dynamic_raw(setting->line_last, print.to); f_file_stream_flush(print.to); f_file_stream_unlock(print.to); @@ -106,7 +106,7 @@ extern "C" { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; } - f_print_dynamic_raw(setting->line_first, print.to.stream); + f_print_dynamic_raw(setting->line_first, print.to); return F_none; } @@ -121,7 +121,7 @@ extern "C" { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; } - fll_print_dynamic_raw(setting->line_first, print.to.stream); + fll_print_dynamic_raw(setting->line_first, print.to); return F_none; } @@ -136,7 +136,7 @@ extern "C" { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; } - fll_print_dynamic_raw(setting->line_last, print.to.stream); + fll_print_dynamic_raw(setting->line_last, print.to); return F_none; } @@ -151,7 +151,7 @@ extern "C" { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; } - f_print_dynamic_raw(setting->line_last, print.to.stream); + f_print_dynamic_raw(setting->line_last, print.to); return F_none; } diff --git a/level_3/iki_read/c/private-print.c b/level_3/iki_read/c/private-print.c index bf652df..7e24979 100644 --- a/level_3/iki_read/c/private-print.c +++ b/level_3/iki_read/c/private-print.c @@ -20,81 +20,81 @@ extern "C" { if (content_only) { iki_read_print_wrap_prepend(main, setting, index); - f_print_dynamic(setting->substitute.array[at].c, main->output.to.stream); + f_print_dynamic(setting->substitute.array[at].c, main->output.to); iki_read_print_wrap_append(main, setting, index); } else { f_string_range_t range = macro_f_string_range_t_initialize(setting->data.variable.array[index].start, setting->data.content.array[index].start - 1); - f_print_dynamic_partial(setting->buffer, range, main->output.to.stream); + f_print_dynamic_partial(setting->buffer, range, main->output.to); iki_read_print_wrap_prepend(main, setting, index); - f_print_dynamic(setting->substitute.array[at].a, main->output.to.stream); + f_print_dynamic(setting->substitute.array[at].a, main->output.to); iki_read_print_wrap_append(main, setting, index); - f_print_dynamic(setting->substitute.array[at].c, main->output.to.stream); + f_print_dynamic(setting->substitute.array[at].c, main->output.to); } } else if (setting->replace.used && setting->map_replaces[index] < setting->replace.used) { if (content_only) { iki_read_print_wrap_prepend(main, setting, index); - f_print_dynamic(setting->replace.array[index].value, main->output.to.stream); + f_print_dynamic(setting->replace.array[index].value, main->output.to); iki_read_print_wrap_append(main, setting, index); } else if (setting->flag & iki_read_main_flag_object_e) { - f_print_dynamic(setting->replace.array[index].name, main->output.to.stream); + f_print_dynamic(setting->replace.array[index].name, main->output.to); } else { f_string_range_t range = macro_f_string_range_t_initialize(setting->data.variable.array[index].start, setting->data.content.array[index].start - 1); - f_print_dynamic_partial(setting->buffer, setting->data.vocabulary.array[index], main->output.to.stream); - f_print_dynamic_partial(setting->buffer, range, main->output.to.stream); + f_print_dynamic_partial(setting->buffer, setting->data.vocabulary.array[index], main->output.to); + f_print_dynamic_partial(setting->buffer, range, main->output.to); iki_read_print_wrap_prepend(main, setting, index); - f_print_dynamic_partial(setting->buffer, setting->data.content.array[index], main->output.to.stream); + f_print_dynamic_partial(setting->buffer, setting->data.content.array[index], main->output.to); iki_read_print_wrap_append(main, setting, index); - f_print_dynamic(setting->replace.array[index].value, main->output.to.stream); + f_print_dynamic(setting->replace.array[index].value, main->output.to); range.start = setting->data.content.array[index].stop + 1; range.stop = setting->data.variable.array[index].stop; - f_print_dynamic_partial(setting->buffer, range, main->output.to.stream); + f_print_dynamic_partial(setting->buffer, range, main->output.to); } } else if (content_only) { iki_read_print_wrap_prepend(main, setting, index); - f_print_dynamic_partial(setting->buffer, setting->data.content.array[index], main->output.to.stream); + f_print_dynamic_partial(setting->buffer, setting->data.content.array[index], main->output.to); iki_read_print_wrap_append(main, setting, index); } else if (setting->flag & iki_read_main_flag_object_e) { - f_print_dynamic_partial(setting->buffer, setting->data.vocabulary.array[index], main->output.to.stream); + f_print_dynamic_partial(setting->buffer, setting->data.vocabulary.array[index], main->output.to); } else { f_string_range_t range = macro_f_string_range_t_initialize(setting->data.variable.array[index].start, setting->data.content.array[index].start - 1); - f_print_dynamic_partial(setting->buffer, setting->data.vocabulary.array[index], main->output.to.stream); - f_print_dynamic_partial(setting->buffer, range, main->output.to.stream); + f_print_dynamic_partial(setting->buffer, setting->data.vocabulary.array[index], main->output.to); + f_print_dynamic_partial(setting->buffer, range, main->output.to); iki_read_print_wrap_prepend(main, setting, index); - f_print_dynamic_partial(setting->buffer, setting->data.content.array[index], main->output.to.stream); + f_print_dynamic_partial(setting->buffer, setting->data.content.array[index], main->output.to); iki_read_print_wrap_append(main, setting, index); range.start = setting->data.content.array[index].stop + 1; range.stop = setting->data.variable.array[index].stop; - f_print_dynamic_partial(setting->buffer, range, main->output.to.stream); + f_print_dynamic_partial(setting->buffer, range, main->output.to); } } #endif // _di_iki_read_print_ @@ -104,7 +104,7 @@ extern "C" { if (!(index < setting->wrap.used && setting->wrap.array[setting->map_wraps[index]].c.used)) return; - f_print_dynamic(setting->wrap.array[setting->map_wraps[index]].c, main->output.to.stream); + f_print_dynamic(setting->wrap.array[setting->map_wraps[index]].c, main->output.to); } #endif // _di_iki_read_print_wrap_append_ @@ -113,7 +113,7 @@ extern "C" { if (!(index < setting->wrap.used && setting->wrap.array[setting->map_wraps[index]].b.used)) return; - f_print_dynamic(setting->wrap.array[setting->map_wraps[index]].b, main->output.to.stream); + f_print_dynamic(setting->wrap.array[setting->map_wraps[index]].b, main->output.to); } #endif // _di_iki_read_print_wrap_prepend_ diff --git a/level_3/iki_read/c/private-read.c b/level_3/iki_read/c/private-read.c index 5c330e3..56b6c69 100644 --- a/level_3/iki_read/c/private-read.c +++ b/level_3/iki_read/c/private-read.c @@ -213,7 +213,7 @@ extern "C" { iki_read_print(main, setting, i, setting->flag & iki_read_main_flag_content_e); - f_print_dynamic_raw(f_string_eol_s, main->output.to.stream); + f_print_dynamic_raw(f_string_eol_s, main->output.to); } } // for } // for @@ -235,7 +235,7 @@ extern "C" { iki_read_print(main, setting, setting->at, setting->flag & iki_read_main_flag_content_e); - f_print_dynamic_raw(f_string_eol_s, main->output.to.stream); + f_print_dynamic_raw(f_string_eol_s, main->output.to); funlockfile(main->output.to.stream); @@ -252,7 +252,7 @@ extern "C" { iki_read_print(main, setting, i, setting->flag & iki_read_main_flag_content_e); - f_print_dynamic_raw(f_string_eol_s, main->output.to.stream); + f_print_dynamic_raw(f_string_eol_s, main->output.to); } // for funlockfile(main->output.to.stream); @@ -293,7 +293,7 @@ extern "C" { } // for if (!setting->data.variable.used) { - fll_print_dynamic_partial(setting->buffer, buffer_range, main->output.to.stream); + fll_print_dynamic_partial(setting->buffer, buffer_range, main->output.to); setting->status = F_none; @@ -318,7 +318,7 @@ extern "C" { range.start = i; range.stop = setting->data.variable.array[j].start - 1; - f_print_dynamic_partial(setting->buffer, range, main->output.to.stream); + f_print_dynamic_partial(setting->buffer, range, main->output.to); range.start = setting->data.variable.array[j].stop + 1; range.stop = buffer_range.stop; @@ -346,7 +346,7 @@ extern "C" { if (i <= buffer_range.stop) { range.start = i; - f_print_dynamic_partial(setting->buffer, range, main->output.to.stream); + f_print_dynamic_partial(setting->buffer, range, main->output.to); } funlockfile(main->output.to.stream); @@ -365,7 +365,7 @@ extern "C" { if (setting->status == F_true) { if (range.start > setting->buffer.used) { - fll_print_format("%r%r", main->output.to.stream, f_string_ascii_0_s, f_string_eol_s); + fll_print_format("%r%r", main->output.to, f_string_ascii_0_s, f_string_eol_s); setting->status = F_none; @@ -373,7 +373,7 @@ extern "C" { } } else if (setting->status == F_data_not) { - fll_print_format("%r%r", main->output.to.stream, f_string_ascii_0_s, f_string_eol_s); + fll_print_format("%r%r", main->output.to, f_string_ascii_0_s, f_string_eol_s); setting->status = F_none; @@ -462,7 +462,7 @@ extern "C" { } } - fll_print_format("%ul%r", main->output.to.stream, total, f_string_eol_s); + fll_print_format("%ul%r", main->output.to, total, f_string_eol_s); setting->status = F_none; } diff --git a/level_3/iki_write/c/iki_write.c b/level_3/iki_write/c/iki_write.c index b5d792a..bcdc4a1 100644 --- a/level_3/iki_write/c/iki_write.c +++ b/level_3/iki_write/c/iki_write.c @@ -127,7 +127,7 @@ extern "C" { setting->status = iki_write_process(main, setting, setting->object, setting->content); if (F_status_is_error(setting->status)) return; - fll_print_dynamic_raw(f_string_eol_s, main->output.to.stream); + fll_print_dynamic_raw(f_string_eol_s, main->output.to); object_ended = F_false; } @@ -185,7 +185,7 @@ extern "C" { setting->status = iki_write_process(main, setting, setting->objects.array[i], setting->contents.array[i]); if (F_status_is_error(setting->status)) return; - fll_print_dynamic_raw(f_string_eol_s, main->output.to.stream); + fll_print_dynamic_raw(f_string_eol_s, main->output.to); } // for // Ensure a new line is always put at the end of the program execution, unless in quiet mode. diff --git a/level_3/iki_write/c/print.c b/level_3/iki_write/c/print.c index c4fe82c..d411935 100644 --- a/level_3/iki_write/c/print.c +++ b/level_3/iki_write/c/print.c @@ -10,7 +10,7 @@ extern "C" { f_file_stream_lock(print.to); - f_print_dynamic_raw(setting->line_first, print.to.stream); + f_print_dynamic_raw(setting->line_first, print.to); fll_program_print_help_header(print, iki_write_program_name_long_s, iki_write_program_version_s); @@ -25,7 +25,7 @@ extern "C" { fll_program_print_help_option(print, f_console_standard_short_debug_s, f_console_standard_long_debug_s, f_console_symbol_short_disable_s, f_console_symbol_long_disable_s, " Enable debugging, significantly increasing verbosity beyond normal output."); fll_program_print_help_option(print, f_console_standard_short_version_s, f_console_standard_long_version_s, f_console_symbol_short_disable_s, f_console_symbol_long_disable_s, " Print only the version number."); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); + f_print_dynamic_raw(f_string_eol_s, print.to); fll_program_print_help_option(print, iki_write_short_file_s, iki_write_long_file_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Specify a file to send data to."); fll_program_print_help_option(print, iki_write_short_content_s, iki_write_long_content_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, "The Content to write."); @@ -33,20 +33,20 @@ extern "C" { fll_program_print_help_option(print, iki_write_short_object_s, iki_write_long_object_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " The Object to write."); fll_program_print_help_option(print, iki_write_short_single_s, iki_write_long_single_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Use single quotes."); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); + f_print_dynamic_raw(f_string_eol_s, print.to); + f_print_dynamic_raw(f_string_eol_s, print.to); fll_program_print_help_usage(print, iki_write_program_name_s, f_string_empty_s); - fl_print_format("%r %[Notes:%]%r", print.to.stream, f_string_eol_s, print.set->important, print.set->important, f_string_eol_s); - fl_print_format(" This program will accept Object and Content strings to generate an IKI string, such as %[object:\"content\"%].%r", print.to.stream, print.set->notable, print.set->notable, f_string_eol_s); + fl_print_format("%r %[Notes:%]%r", print.to, f_string_eol_s, print.set->important, print.set->important, f_string_eol_s); + fl_print_format(" This program will accept Object and Content strings to generate an IKI string, such as %[object:\"content\"%].%r", print.to, print.set->notable, print.set->notable, f_string_eol_s); - fl_print_format(" Each object must have a Content (and each Content must have an Object).%r%r", print.to.stream, f_string_eol_s, f_string_eol_s); + fl_print_format(" Each object must have a Content (and each Content must have an Object).%r%r", print.to, f_string_eol_s, f_string_eol_s); - fl_print_format(" When piping main to this program, a single form-feed character (\\f) must be used to separate each Object from each Content.%r", print.to.stream, f_string_eol_s); - fl_print_format(" Furthermore, each Object must be followed by a Content.%r", print.to.stream, f_string_eol_s); + fl_print_format(" When piping main to this program, a single form-feed character (\\f) must be used to separate each Object from each Content.%r", print.to, f_string_eol_s); + fl_print_format(" Furthermore, each Object must be followed by a Content.%r", print.to, f_string_eol_s); - f_print_dynamic_raw(setting->line_last, print.to.stream); + f_print_dynamic_raw(setting->line_last, print.to); f_file_stream_flush(print.to); f_file_stream_unlock(print.to); @@ -64,7 +64,7 @@ extern "C" { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; } - f_print_dynamic_raw(setting->line_first, print.to.stream); + f_print_dynamic_raw(setting->line_first, print.to); return F_none; } @@ -79,7 +79,7 @@ extern "C" { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; } - fll_print_dynamic_raw(setting->line_first, print.to.stream); + fll_print_dynamic_raw(setting->line_first, print.to); return F_none; } @@ -94,7 +94,7 @@ extern "C" { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; } - fll_print_dynamic_raw(setting->line_last, print.to.stream); + fll_print_dynamic_raw(setting->line_last, print.to); return F_none; } @@ -109,7 +109,7 @@ extern "C" { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; } - f_print_dynamic_raw(setting->line_last, print.to.stream); + f_print_dynamic_raw(setting->line_last, print.to); return F_none; } @@ -122,11 +122,11 @@ extern "C" { f_file_stream_lock(print.to); - fl_print_format("%[%QNo main provided, either pipe the main data or use the '%]", print.to.stream, print.set->error, print.prefix, print.set->error); - fl_print_format("%[%r%r%]", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, iki_write_long_object_s, print.set->notable); - fl_print_format("%[' and the '%]", print.to.stream, print.set->error, print.set->error); - fl_print_format("%[%r%r%]", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, iki_write_long_content_s, print.set->notable); - fl_print_format("%[' parameters.%]%r", print.to.stream, print.set->error, print.set->error, f_string_eol_s); + fl_print_format("%[%QNo main provided, either pipe the main data or use the '%]", print.to, print.set->error, print.prefix, print.set->error); + fl_print_format("%[%r%r%]", print.to, print.set->notable, f_console_symbol_long_enable_s, iki_write_long_object_s, print.set->notable); + fl_print_format("%[' and the '%]", print.to, print.set->error, print.set->error); + fl_print_format("%[%r%r%]", print.to, print.set->notable, f_console_symbol_long_enable_s, iki_write_long_content_s, print.set->notable); + fl_print_format("%[' parameters.%]%r", print.to, print.set->error, print.set->error, f_string_eol_s); f_file_stream_unlock(print.to); @@ -141,9 +141,9 @@ extern "C" { f_file_stream_lock(print.to); - fl_print_format("%[%QThe object '%]", print.to.stream, print.set->error, print.prefix, print.set->error); - fl_print_format("%[%Q%]", print.to.stream, print.set->notable, object, print.set->notable); - fl_print_format("%[' is not a valid IKI Object.%]%r", print.to.stream, print.set->error, print.set->error, f_string_eol_s); + fl_print_format("%[%QThe object '%]", print.to, print.set->error, print.prefix, print.set->error); + fl_print_format("%[%Q%]", print.to, print.set->notable, object, print.set->notable); + fl_print_format("%[' is not a valid IKI Object.%]%r", print.to, print.set->error, print.set->error, f_string_eol_s); f_file_stream_unlock(print.to); diff --git a/level_3/iki_write/c/private-write.c b/level_3/iki_write/c/private-write.c index 8036182..eacb585 100644 --- a/level_3/iki_write/c/private-write.c +++ b/level_3/iki_write/c/private-write.c @@ -39,7 +39,7 @@ extern "C" { return F_status_set_error(F_failure); } - fl_print_format("%Q%r%r%Q%r", main->output.to.stream, object, f_iki_syntax_separator_s, setting->quote, setting->escaped, setting->quote); + fl_print_format("%Q%r%r%Q%r", main->output.to, object, f_iki_syntax_separator_s, setting->quote, setting->escaped, setting->quote); return F_none; } diff --git a/level_3/status_code/c/print.c b/level_3/status_code/c/print.c index d40035a..c0c93fb 100644 --- a/level_3/status_code/c/print.c +++ b/level_3/status_code/c/print.c @@ -13,13 +13,13 @@ extern "C" { f_file_stream_lock(print.to); - fl_print_format("%[%QCannot specify the '%]", print.to.stream, print.context, print.prefix, print.context); - fl_print_format("%[%r%r%]", print.to.stream, print.notable, f_console_symbol_long_enable_s, status_code_long_error_s, print.notable); - fl_print_format("%[' parameter with the '%]", print.to.stream, print.context, print.context); - fl_print_format("%[%r%r%]", print.to.stream, print.notable, f_console_symbol_long_enable_s, status_code_long_warning_s, print.notable); - fl_print_format("%[' parameter when not also specifying the '%]", print.to.stream, print.context, print.context); - fl_print_format("%[%r%r%]", print.to.stream, print.notable, f_console_symbol_long_enable_s, status_code_long_number_s, print.notable); - fl_print_format("%[' parameter.%]%r", print.to.stream, print.context, print.context, f_string_eol_s); + fl_print_format("%[%QCannot specify the '%]", print.to, print.context, print.prefix, print.context); + fl_print_format("%[%r%r%]", print.to, print.notable, f_console_symbol_long_enable_s, status_code_long_error_s, print.notable); + fl_print_format("%[' parameter with the '%]", print.to, print.context, print.context); + fl_print_format("%[%r%r%]", print.to, print.notable, f_console_symbol_long_enable_s, status_code_long_warning_s, print.notable); + fl_print_format("%[' parameter when not also specifying the '%]", print.to, print.context, print.context); + fl_print_format("%[%r%r%]", print.to, print.notable, f_console_symbol_long_enable_s, status_code_long_number_s, print.notable); + fl_print_format("%[' parameter.%]%r", print.to, print.context, print.context, f_string_eol_s); f_file_stream_unlock(print.to); @@ -32,7 +32,7 @@ extern "C" { if (print.verbosity == f_console_verbosity_quiet_e) return F_output_not; - fll_print_format("%[No status code is specified.%]%r", print.to.stream, print.context, print.context, f_string_eol_s); + fll_print_format("%[No status code is specified.%]%r", print.to, print.context, print.context, f_string_eol_s); return F_none; } @@ -43,25 +43,25 @@ extern "C" { f_file_stream_lock(print.to); - f_print_dynamic_raw(setting->line_first, print.to.stream); + f_print_dynamic_raw(setting->line_first, print.to); fll_program_print_help_header(print, status_code_program_name_long_s, status_code_program_version_s); fll_program_print_help_option_standard(print); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); + f_print_dynamic_raw(f_string_eol_s, print.to); fll_program_print_help_option(print, status_code_short_fine_s, status_code_long_fine_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Print F_true or F_false if status code is neither an error nor a warning or print number with neither the error code nor the warning code bits set."); fll_program_print_help_option(print, status_code_short_warning_s, status_code_long_warning_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, "Print F_true or F_false if status code is a warning or print number with warning code bit set."); fll_program_print_help_option(print, status_code_short_error_s, status_code_long_error_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Print F_true or F_false if status code is an error or print number with error code bit set."); fll_program_print_help_option(print, status_code_short_number_s, status_code_long_number_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Convert status code name to number."); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); + f_print_dynamic_raw(f_string_eol_s, print.to); + f_print_dynamic_raw(f_string_eol_s, print.to); fll_program_print_help_usage(print, status_code_program_name_s, status_code_program_help_parameters_s); - f_print_dynamic_raw(setting->line_last, print.to.stream); + f_print_dynamic_raw(setting->line_last, print.to); f_file_stream_flush(print.to); f_file_stream_unlock(print.to); @@ -79,7 +79,7 @@ extern "C" { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; } - f_print_dynamic_raw(setting->line_first, print.to.stream); + f_print_dynamic_raw(setting->line_first, print.to); return F_none; } @@ -94,7 +94,7 @@ extern "C" { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; } - fll_print_dynamic_raw(setting->line_first, print.to.stream); + fll_print_dynamic_raw(setting->line_first, print.to); return F_none; } @@ -109,7 +109,7 @@ extern "C" { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; } - fll_print_dynamic_raw(setting->line_last, print.to.stream); + fll_print_dynamic_raw(setting->line_last, print.to); return F_none; } @@ -124,7 +124,7 @@ extern "C" { if (print.verbosity == f_console_verbosity_error_e) return F_output_not; } - f_print_dynamic_raw(setting->line_last, print.to.stream); + f_print_dynamic_raw(setting->line_last, print.to); return F_none; } diff --git a/level_3/status_code/c/private-status_code.c b/level_3/status_code/c/private-status_code.c index 24684d3..bf81ebf 100644 --- a/level_3/status_code/c/private-status_code.c +++ b/level_3/status_code/c/private-status_code.c @@ -17,13 +17,13 @@ extern "C" { } if ((setting->flag & status_code_main_flag_error_e) && F_status_is_error(number) || (setting->flag & status_code_main_flag_warning_e) && F_status_is_warning(number) || (setting->flag & status_code_main_flag_fine_e) && F_status_is_fine(number)) { - f_print_dynamic_raw(f_status_true_s, main->output.to.stream); + f_print_dynamic_raw(f_status_true_s, main->output.to); } else { - f_print_dynamic_raw(f_status_false_s, main->output.to.stream); + f_print_dynamic_raw(f_status_false_s, main->output.to); } - f_print_dynamic_raw(f_string_eol_s, main->output.to.stream); + f_print_dynamic_raw(f_string_eol_s, main->output.to); return F_none; } @@ -40,13 +40,13 @@ extern "C" { status = fl_conversion_dynamic_to_unsigned_detect(fl_conversion_data_base_10_c, value, &number); if (status == F_none) { - fl_print_format("%[%r%]%r", main->output.to.stream, main->context.set.error, status_code_invalid_name_s, main->context.set.error, f_string_eol_s); + fl_print_format("%[%r%]%r", main->output.to, main->context.set.error, status_code_invalid_name_s, main->context.set.error, f_string_eol_s); return F_status_set_error(F_parameter); } if (status == F_data_not || F_status_set_fine(status) == F_parameter) { - fl_print_format("%[%r%]%r", main->output.to.stream, main->context.set.error, status_code_invalid_main_s, main->context.set.error, f_string_eol_s); + fl_print_format("%[%r%]%r", main->output.to, main->context.set.error, status_code_invalid_main_s, main->context.set.error, f_string_eol_s); return status; } @@ -58,17 +58,17 @@ extern "C" { if (F_status_is_error(status)) { if (F_status_set_fine(status) == F_data) { - fl_print_format("%[%r%]%r", main->output.to.stream, main->context.set.error, status_code_unknown_name_s, main->context.set.error, f_string_eol_s); + fl_print_format("%[%r%]%r", main->output.to, main->context.set.error, status_code_unknown_name_s, main->context.set.error, f_string_eol_s); } else { - fl_print_format("%[%r%]%r", main->output.to.stream, main->context.set.error, status_code_failed_to_convert_s, main->context.set.error, f_string_eol_s); + fl_print_format("%[%r%]%r", main->output.to, main->context.set.error, status_code_failed_to_convert_s, main->context.set.error, f_string_eol_s); } return status; } if (status == F_data) { - fl_print_format("%[%r%]%r", main->output.to.stream, main->context.set.error, status_code_unknown_code_s, main->context.set.error, f_string_eol_s); + fl_print_format("%[%r%]%r", main->output.to, main->context.set.error, status_code_unknown_code_s, main->context.set.error, f_string_eol_s); return F_none; } @@ -81,7 +81,7 @@ extern "C" { code = F_status_set_warning(code); } - fl_print_format("%ui%r", main->output.to.stream, code, f_string_eol_s); + fl_print_format("%ui%r", main->output.to, code, f_string_eol_s); return F_none; } @@ -101,16 +101,16 @@ extern "C" { if (F_status_is_error(status)) { if (F_status_set_fine(status) == F_data) { - fl_print_format("%[%r%]%r", main->output.to.stream, main->context.set.error, status_code_unknown_code_s, main->context.set.error, f_string_eol_s); + fl_print_format("%[%r%]%r", main->output.to, main->context.set.error, status_code_unknown_code_s, main->context.set.error, f_string_eol_s); } else { - fl_print_format("%[%r%]%r", main->output.to.stream, main->context.set.error, status_code_failed_to_convert_s, main->context.set.error, f_string_eol_s); + fl_print_format("%[%r%]%r", main->output.to, main->context.set.error, status_code_failed_to_convert_s, main->context.set.error, f_string_eol_s); } return status; } - fl_print_format("%Q%r", main->output.to.stream, name, f_string_eol_s); + fl_print_format("%Q%r", main->output.to, name, f_string_eol_s); return F_none; } @@ -122,17 +122,17 @@ extern "C" { const f_status_t status = fl_conversion_dynamic_to_unsigned_detect(fl_conversion_data_base_10_c, value, number); if (*number > F_status_size_max_with_bits_d) { - fl_print_format("%[%r%]%r", main->output.to.stream, main->context.set.error, status_code_out_of_range_s, main->context.set.error, f_string_eol_s); + fl_print_format("%[%r%]%r", main->output.to, main->context.set.error, status_code_out_of_range_s, main->context.set.error, f_string_eol_s); return F_status_set_error(F_number_overflow); } if (F_status_is_error(status)) { if (F_status_set_fine(status) == F_number_negative) { - fl_print_format("%[%r%]%r", main->output.to.stream, main->context.set.error, status_code_out_of_range_s, main->context.set.error, f_string_eol_s); + fl_print_format("%[%r%]%r", main->output.to, main->context.set.error, status_code_out_of_range_s, main->context.set.error, f_string_eol_s); } else { - fl_print_format("%[%r%]%r", main->output.to.stream, main->context.set.error, status_code_invalid_number_s, main->context.set.error, f_string_eol_s); + fl_print_format("%[%r%]%r", main->output.to, main->context.set.error, status_code_invalid_number_s, main->context.set.error, f_string_eol_s); } return status; diff --git a/level_3/utf8/c/print.c b/level_3/utf8/c/print.c index f29d01e..b7f742d 100644 --- a/level_3/utf8/c/print.c +++ b/level_3/utf8/c/print.c @@ -8,7 +8,7 @@ extern "C" { #ifndef _di_utf8_print_bytesequence_ f_status_t utf8_print_bytesequence(fll_program_data_t * const main, utf8_setting_t * const setting, const f_string_static_t sequence) { - fl_print_format("%r%r%r", main->output.to.stream, setting->prepend, sequence, setting->append); + fl_print_format("%r%r%r", main->output.to, setting->prepend, sequence, setting->append); return F_none; } @@ -24,19 +24,19 @@ extern "C" { utf8_print_combining_or_width(main, setting, invalid); } else if (setting->mode & utf8_mode_to_bytesequence_e) { - fl_print_format("%r%[%r%]%r", main->output.to.stream, setting->prepend, setting->valid_not, invalid, setting->valid_not, setting->append); + fl_print_format("%r%[%r%]%r", main->output.to, setting->prepend, setting->valid_not, invalid, setting->valid_not, setting->append); } else if (setting->mode & utf8_mode_from_codepoint_e) { - fl_print_format("%r%[%Q%]%r", main->output.to.stream, setting->prepend, setting->valid_not, invalid, setting->valid_not, setting->append); + fl_print_format("%r%[%Q%]%r", main->output.to, setting->prepend, setting->valid_not, invalid, setting->valid_not, setting->append); } else { - fl_print_format("%r%[0x", main->output.to.stream, setting->prepend, setting->valid_not); + fl_print_format("%r%[0x", main->output.to, setting->prepend, setting->valid_not); for (uint8_t i = 0; i < invalid.used; ++i) { - fl_print_format("%02_uii", main->output.to.stream, (uint8_t) invalid.string[i]); + fl_print_format("%02_uii", main->output.to, (uint8_t) invalid.string[i]); } // for - fl_print_format("%]%r", main->output.to.stream, setting->valid_not, setting->append); + fl_print_format("%]%r", main->output.to, setting->valid_not, setting->append); } return F_none; @@ -47,13 +47,13 @@ extern "C" { f_status_t utf8_print_codepoint(fll_program_data_t * const main, utf8_setting_t * const setting, const uint32_t codepoint) { if (codepoint < 0x10000) { - fl_print_format("%rU+%04_U%r", main->output.to.stream, setting->prepend, codepoint, setting->append); + fl_print_format("%rU+%04_U%r", main->output.to, setting->prepend, codepoint, setting->append); } else if (codepoint < 0x100000) { - fl_print_format("%rU+%05_U%r", main->output.to.stream, setting->prepend, codepoint, setting->append); + fl_print_format("%rU+%05_U%r", main->output.to, setting->prepend, codepoint, setting->append); } else { - fl_print_format("%rU+%06_U%r", main->output.to.stream, setting->prepend, codepoint, setting->append); + fl_print_format("%rU+%06_U%r", main->output.to, setting->prepend, codepoint, setting->append); } return F_none; @@ -67,19 +67,19 @@ extern "C" { f_status_t status = f_utf_is_combining(sequence.string, sequence.used); if (status == F_true) { - fl_print_format("%r%r%r", main->output.to.stream, setting->prepend, utf8_string_combining_is_s, setting->append); + fl_print_format("%r%r%r", main->output.to, setting->prepend, utf8_string_combining_is_s, setting->append); } else if (status == F_false) { status = f_utf_is_private(sequence.string, sequence.used); if (status == F_true) { - fl_print_format("%r%r%r", main->output.to.stream, setting->prepend, utf8_string_unknown_s, setting->append); + fl_print_format("%r%r%r", main->output.to, setting->prepend, utf8_string_unknown_s, setting->append); } else if (setting->mode & utf8_mode_to_width_e) { utf8_print_width(main, setting, sequence); } else { - fl_print_format("%r%r%r", main->output.to.stream, setting->prepend, utf8_string_combining_not_s, setting->append); + fl_print_format("%r%r%r", main->output.to, setting->prepend, utf8_string_combining_not_s, setting->append); } } else { @@ -99,7 +99,7 @@ extern "C" { if (setting->flag & (utf8_main_flag_strip_invalid_e | utf8_main_flag_verify_e)) return F_output_not; - fl_print_format("%r%[%r%]%r", main->output.to.stream, setting->prepend, setting->valid_not, utf8_string_unknown_s, setting->valid_not, setting->append); + fl_print_format("%r%[%r%]%r", main->output.to, setting->prepend, setting->valid_not, utf8_string_unknown_s, setting->valid_not, setting->append); return F_none; } @@ -113,31 +113,31 @@ extern "C" { utf8_print_line_first_unlocked(setting, main->error); - fl_print_format("%[%QFailed to decode character code '%]", main->error.to.stream, main->context.set.error, main->error.prefix, main->context.set.error); + fl_print_format("%[%QFailed to decode character code '%]", main->error.to, main->context.set.error, main->error.prefix, main->context.set.error); if (invalid.used) { - fl_print_format("%[0x", main->error.to.stream, main->context.set.notable); + fl_print_format("%[0x", main->error.to, main->context.set.notable); for (uint8_t i = 0; i < invalid.used; ++i) { - fl_print_format("%02_uii", main->error.to.stream, (uint8_t) invalid.string[i]); + fl_print_format("%02_uii", main->error.to, (uint8_t) invalid.string[i]); } // for - fl_print_format("%]", main->error.to.stream, main->context.set.notable); + fl_print_format("%]", main->error.to, main->context.set.notable); } if (F_status_set_fine(status) == F_utf_not) { - fl_print_format("%[', not a valid UTF-8 character sequence.%]%r", main->error.to.stream, main->context.set.error, main->context.set.error, f_string_eol_s); + fl_print_format("%[', not a valid UTF-8 character sequence.%]%r", main->error.to, main->context.set.error, main->context.set.error, f_string_eol_s); } else if (F_status_set_fine(status) == F_complete_not_utf) { - fl_print_format("%[', invalid UTF-8 (truncated).%]%r", main->error.to.stream, main->context.set.error, main->context.set.error, f_string_eol_s); + fl_print_format("%[', invalid UTF-8 (truncated).%]%r", main->error.to, main->context.set.error, main->context.set.error, f_string_eol_s); } else if (F_status_set_fine(status) == F_utf_fragment) { - fl_print_format("%[', invalid UTF-8 fragment.%]%r", main->error.to.stream, main->context.set.error, main->context.set.error, f_string_eol_s); + fl_print_format("%[', invalid UTF-8 fragment.%]%r", main->error.to, main->context.set.error, main->context.set.error, f_string_eol_s); } else { - fl_print_format("%[', error status code%] ", main->error.to.stream, main->context.set.error, main->context.set.error, f_string_eol_s); - fl_print_format("%[%ui%]", main->error.to.stream, main->context.set.notable, F_status_set_fine(status), main->context.set.notable); - fl_print_format("%[.%]%r", main->error.to.stream, main->context.set.error, main->context.set.error, f_string_eol_s); + fl_print_format("%[', error status code%] ", main->error.to, main->context.set.error, main->context.set.error, f_string_eol_s); + fl_print_format("%[%ui%]", main->error.to, main->context.set.notable, F_status_set_fine(status), main->context.set.notable); + fl_print_format("%[.%]%r", main->error.to, main->context.set.error, main->context.set.error, f_string_eol_s); } return F_none; @@ -151,16 +151,16 @@ extern "C" { utf8_print_line_first_unlocked(setting, main->error); - fl_print_format("%[%QFailed to encode Unicode codepoint '%]", main->error.to.stream, main->context.set.error, main->error.prefix, main->context.set.error); - fl_print_format("%[U+%_U%]", main->error.to.stream, main->context.set.notable, codepoint, main->context.set.notable); + fl_print_format("%[%QFailed to encode Unicode codepoint '%]", main->error.to, main->context.set.error, main->error.prefix, main->context.set.error); + fl_print_format("%[U+%_U%]", main->error.to, main->context.set.notable, codepoint, main->context.set.notable); if (F_status_set_fine(status) == F_utf_not) { - fl_print_format("%[', not a valid Unicode codepoint.%]%r", main->error.to.stream, main->context.set.error, main->context.set.error, f_string_eol_s); + fl_print_format("%[', not a valid Unicode codepoint.%]%r", main->error.to, main->context.set.error, main->context.set.error, f_string_eol_s); } else { - fl_print_format("%[', error status code%] ", main->error.to.stream, main->context.set.error, main->context.set.error, f_string_eol_s); - fl_print_format("%[%ui%]", main->error.to.stream, main->context.set.notable, F_status_set_fine(status), main->context.set.notable); - fl_print_format("%[.%]%r", main->error.to.stream, main->context.set.error, main->context.set.error, f_string_eol_s); + fl_print_format("%[', error status code%] ", main->error.to, main->context.set.error, main->context.set.error, f_string_eol_s); + fl_print_format("%[%ui%]", main->error.to, main->context.set.notable, F_status_set_fine(status), main->context.set.notable); + fl_print_format("%[.%]%r", main->error.to, main->context.set.error, main->context.set.error, f_string_eol_s); } return F_none; @@ -174,7 +174,7 @@ extern "C" { utf8_print_line_first_locked(setting, main->error); - fll_print_format("%[%QNo from sources are specified, please pipe data, designate a file, or add parameters.%]%r", main->error.to.stream, main->error.context, main->error.prefix, main->error.context, f_string_eol_s); + fll_print_format("%[%QNo from sources are specified, please pipe data, designate a file, or add parameters.%]%r", main->error.to, main->error.context, main->error.prefix, main->error.context, f_string_eol_s); return F_none; } @@ -189,9 +189,9 @@ extern "C" { utf8_print_line_first_unlocked(setting, main->error); - fl_print_format("%[%QNo file specified at parameter index %]", main->error.to.stream, main->context.set.error, main->error.prefix, main->context.set.error); - fl_print_format("%[%ul%]", main->error.to.stream, main->context.set.notable, index, main->context.set.notable); - fl_print_format("%[.%]%r", main->error.to.stream, main->context.set.error, main->context.set.error, f_string_eol_s); + fl_print_format("%[%QNo file specified at parameter index %]", main->error.to, main->context.set.error, main->error.prefix, main->context.set.error); + fl_print_format("%[%ul%]", main->error.to, main->context.set.notable, index, main->context.set.notable); + fl_print_format("%[.%]%r", main->error.to, main->context.set.error, main->context.set.error, f_string_eol_s); f_file_stream_unlock(main->error.to); @@ -208,9 +208,9 @@ extern "C" { utf8_print_line_first_unlocked(setting, main->error); - fl_print_format("%[%QFailed to find the %r file '%]", main->error.to.stream, main->context.set.error, main->error.prefix, from ? utf8_string_from_s : utf8_string_to_s, main->context.set.error); - fl_print_format("%[%Q%]", main->error.to.stream, main->context.set.notable, name, main->context.set.notable); - fl_print_format("%['.%]%r", main->error.to.stream, main->context.set.error, main->context.set.error, f_string_eol_s); + fl_print_format("%[%QFailed to find the %r file '%]", main->error.to, main->context.set.error, main->error.prefix, from ? utf8_string_from_s : utf8_string_to_s, main->context.set.error); + fl_print_format("%[%Q%]", main->error.to, main->context.set.notable, name, main->context.set.notable); + fl_print_format("%['.%]%r", main->error.to, main->context.set.error, main->context.set.error, f_string_eol_s); f_file_stream_unlock(main->error.to); @@ -225,7 +225,7 @@ extern "C" { utf8_print_line_first_locked(setting, main->error); - fll_print_format("%[%QToo many '%r' files specified, there may only be one '%r' file.%]%r", main->error.to.stream, main->context.set.error, main->error.prefix, utf8_string_to_s, utf8_string_to_s, main->context.set.error, f_string_eol_s); + fll_print_format("%[%QToo many '%r' files specified, there may only be one '%r' file.%]%r", main->error.to, main->context.set.error, main->error.prefix, utf8_string_to_s, utf8_string_to_s, main->context.set.error, f_string_eol_s); return F_none; } @@ -257,19 +257,19 @@ extern "C" { f_file_stream_lock(print.to); - f_print_dynamic_raw(setting->line_first, print.to.stream); + f_print_dynamic_raw(setting->line_first, print.to); fll_program_print_help_header(print, utf8_program_name_long_s, utf8_program_version_s); fll_program_print_help_option_standard(print); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); + f_print_dynamic_raw(f_string_eol_s, print.to); fll_program_print_help_option(print, utf8_short_from_bytesequence_s, utf8_long_from_bytesequence_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, "The expected input format is byte sequence (character data)."); fll_program_print_help_option(print, utf8_short_from_codepoint_s, utf8_long_from_codepoint_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " The expected input format is codepoint (such as U+0000)."); fll_program_print_help_option(print, utf8_short_from_file_s, utf8_long_from_file_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Use the given print.to as the input source."); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); + f_print_dynamic_raw(f_string_eol_s, print.to); fll_program_print_help_option(print, utf8_short_to_bytesequence_s, utf8_long_to_bytesequence_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, "The print.to format is byte sequence (character data)."); fll_program_print_help_option(print, utf8_short_to_codepoint_s, utf8_long_to_codepoint_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " The print.to format is codepoint (such as U+0000)."); @@ -277,30 +277,30 @@ extern "C" { fll_program_print_help_option(print, utf8_short_to_file_s, utf8_long_to_file_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Use the given print.to as the print.to destination."); fll_program_print_help_option(print, utf8_short_to_width_s, utf8_long_to_width_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " The print.to format is to print the width of a character (either 0, 1, or 2)."); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); + f_print_dynamic_raw(f_string_eol_s, print.to); fll_program_print_help_option(print, utf8_short_headers_s, utf8_long_headers_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Print headers for each section (pipe, file, or parameter)."); fll_program_print_help_option(print, utf8_short_separate_s, utf8_long_separate_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Separate characters by newlines (implied when printing headers)."); fll_program_print_help_option(print, utf8_short_strip_invalid_s, utf8_long_strip_invalid_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, "Strip invalid Unicode characters (do not print invalid sequences)."); fll_program_print_help_option(print, utf8_short_verify_s, utf8_long_verify_s, f_console_symbol_short_enable_s, f_console_symbol_long_enable_s, " Only perform verification of valid sequences."); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); - f_print_dynamic_raw(f_string_eol_s, print.to.stream); + f_print_dynamic_raw(f_string_eol_s, print.to); + f_print_dynamic_raw(f_string_eol_s, print.to); fll_program_print_help_usage(print, utf8_program_name_s, utf8_program_help_parameters_s); - fl_print_format("%r The default behavior is to assume the expected input is byte sequence from the command line to be print.to to the screen as codepoints.%r%r", print.to.stream, f_string_eol_s, f_string_eol_s, f_string_eol_s); + fl_print_format("%r The default behavior is to assume the expected input is byte sequence from the command line to be print.to to the screen as codepoints.%r%r", print.to, f_string_eol_s, f_string_eol_s, f_string_eol_s); - fl_print_format(" Multiple input sources are allowed but only a single print.to destination is allowed.%r%r", print.to.stream, f_string_eol_s, f_string_eol_s); + fl_print_format(" Multiple input sources are allowed but only a single print.to destination is allowed.%r%r", print.to, f_string_eol_s, f_string_eol_s); - fl_print_format(" When using the parameter '%[%r%r%]', no data is printed and 0 is returned if valid or 1 is returned if invalid.%r%r", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, utf8_long_verify_s, print.set->notable, f_string_eol_s, f_string_eol_s); + fl_print_format(" When using the parameter '%[%r%r%]', no data is printed and 0 is returned if valid or 1 is returned if invalid.%r%r", print.to, print.set->notable, f_console_symbol_long_enable_s, utf8_long_verify_s, print.set->notable, f_string_eol_s, f_string_eol_s); - fl_print_format(" When using the parameter '%[%r%r%]' with the parameter ", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, utf8_long_to_combining_s, print.set->notable); - fl_print_format("'%[%r%r%]', the ", print.to.stream, print.set->notable, f_console_symbol_long_enable_s, utf8_long_to_width_s, print.set->notable); - fl_print_format("'%[%r%]' character is printed to represent the combining and the digits are used to represent widths.%r", print.to.stream, print.set->notable, utf8_string_combining_is_s, print.set->notable, f_string_eol_s); - fl_print_format(" The combining characters should be considered 1-width by themselves or 0-width when combined.%r", print.to.stream, f_string_eol_s); + fl_print_format(" When using the parameter '%[%r%r%]' with the parameter ", print.to, print.set->notable, f_console_symbol_long_enable_s, utf8_long_to_combining_s, print.set->notable); + fl_print_format("'%[%r%r%]', the ", print.to, print.set->notable, f_console_symbol_long_enable_s, utf8_long_to_width_s, print.set->notable); + fl_print_format("'%[%r%]' character is printed to represent the combining and the digits are used to represent widths.%r", print.to, print.set->notable, utf8_string_combining_is_s, print.set->notable, f_string_eol_s); + fl_print_format(" The combining characters should be considered 1-width by themselves or 0-width when combined.%r", print.to, f_string_eol_s); - f_print_dynamic_raw(setting->line_last, print.to.stream); + f_print_dynamic_raw(setting->line_last, print.to); f_file_stream_flush(print.to); f_file_stream_unlock(print.to); @@ -319,7 +319,7 @@ extern "C" { if (setting->flag & (utf8_main_flag_verify_e | utf8_main_flag_file_to_e)) return F_output_not; } - f_print_dynamic_raw(setting->line_first, print.to.stream); + f_print_dynamic_raw(setting->line_first, print.to); return F_none; } @@ -335,7 +335,7 @@ extern "C" { if (setting->flag & (utf8_main_flag_verify_e | utf8_main_flag_file_to_e)) return F_output_not; } - fll_print_dynamic_raw(setting->line_first, print.to.stream); + fll_print_dynamic_raw(setting->line_first, print.to); return F_none; } @@ -351,7 +351,7 @@ extern "C" { if (setting->flag & (utf8_main_flag_verify_e | utf8_main_flag_file_to_e)) return F_output_not; } - fll_print_dynamic_raw(setting->line_last, print.to.stream); + fll_print_dynamic_raw(setting->line_last, print.to); return F_none; } @@ -367,7 +367,7 @@ extern "C" { if (setting->flag & (utf8_main_flag_verify_e | utf8_main_flag_file_to_e)) return F_output_not; } - f_print_dynamic_raw(setting->line_last, print.to.stream); + f_print_dynamic_raw(setting->line_last, print.to); return F_none; } @@ -408,7 +408,7 @@ extern "C" { memset(byte, 0, sizeof(f_char_t) * width); } - fl_print_format("%r%[%r%]%r", main->output.to.stream, setting->prepend, setting->valid_not, character, setting->valid_not, setting->append); + fl_print_format("%r%[%r%]%r", main->output.to, setting->prepend, setting->valid_not, character, setting->valid_not, setting->append); return F_none; } @@ -419,7 +419,7 @@ extern "C" { if (setting->flag & (utf8_main_flag_strip_invalid_e | utf8_main_flag_verify_e)) return F_output_not; - fl_print_format("%r%[%r%]%r", main->output.to.stream, setting->prepend, setting->valid_not, raw, setting->valid_not, setting->append); + fl_print_format("%r%[%r%]%r", main->output.to, setting->prepend, setting->valid_not, raw, setting->valid_not, setting->append); return F_none; } @@ -457,7 +457,7 @@ extern "C" { character = &utf8_string_width_0_s; } - fl_print_format("%r%[%r%]%r", main->output.to.stream, setting->prepend, setting->valid_not, *character, setting->valid_not, setting->append); + fl_print_format("%r%[%r%]%r", main->output.to, setting->prepend, setting->valid_not, *character, setting->valid_not, setting->append); } return F_none; @@ -473,20 +473,20 @@ extern "C" { f_file_stream_lock(main->output.to); if ((main->pipe & fll_program_data_pipe_input_e) || index) { - f_print_dynamic_raw(f_string_eol_s, main->output.to.stream); + f_print_dynamic_raw(f_string_eol_s, main->output.to); } else { - f_print_dynamic_raw(setting->line_first, main->output.to.stream); + f_print_dynamic_raw(setting->line_first, main->output.to); } if (setting->flag & utf8_main_flag_header_e) { - fl_print_format("%[File%] ", main->output.to.stream, main->output.set->title, main->output.set->title); + fl_print_format("%[File%] ", main->output.to, main->output.set->title, main->output.set->title); if (setting->flag & utf8_main_flag_file_to_e) { - fl_print_format("%[%Q%]: %Q.%r", main->output.to.stream, main->output.set->notable, name, main->output.set->notable, setting->path_files_to.array[0], f_string_eol_s); + fl_print_format("%[%Q%]: %Q.%r", main->output.to, main->output.set->notable, name, main->output.set->notable, setting->path_files_to.array[0], f_string_eol_s); } else { - fl_print_format("%[%Q%]:%r", main->output.to.stream, main->output.set->notable, name, main->output.set->notable, f_string_eol_s); + fl_print_format("%[%Q%]:%r", main->output.to, main->output.set->notable, name, main->output.set->notable, f_string_eol_s); } } @@ -505,15 +505,15 @@ extern "C" { f_file_stream_lock(main->output.to); if ((main->pipe & fll_program_data_pipe_input_e) || (setting->flag & utf8_main_flag_file_from_e) || index) { - f_print_dynamic_raw(f_string_eol_s, main->output.to.stream); + f_print_dynamic_raw(f_string_eol_s, main->output.to); } else { - f_print_dynamic_raw(setting->line_first, main->output.to.stream); + f_print_dynamic_raw(setting->line_first, main->output.to); } if (setting->flag & utf8_main_flag_header_e) { - fl_print_format("%[Parameter%] ", main->output.to.stream, main->output.set->title, main->output.set->title); - fl_print_format("%[%ul%]:%r", main->output.to.stream, main->output.set->notable, index, main->output.set->notable, f_string_eol_s); + fl_print_format("%[Parameter%] ", main->output.to, main->output.set->title, main->output.set->title); + fl_print_format("%[%ul%]:%r", main->output.to, main->output.set->notable, index, main->output.set->notable, f_string_eol_s); } f_file_stream_unlock(main->output.to); @@ -530,10 +530,10 @@ extern "C" { f_file_stream_lock(main->output.to); - f_print_dynamic_raw(setting->line_first, main->output.to.stream); + f_print_dynamic_raw(setting->line_first, main->output.to); if (setting->flag & utf8_main_flag_header_e) { - fl_print_format("%[Pipe%]:%r", main->output.to.stream, main->output.set->title, main->output.set->title, f_string_eol_s); + fl_print_format("%[Pipe%]:%r", main->output.to, main->output.set->title, main->output.set->title, f_string_eol_s); } f_file_stream_unlock(main->output.to); @@ -548,7 +548,7 @@ extern "C" { f_status_t status = f_utf_is_wide(sequence.string, sequence.used); if (status == F_true) { - fl_print_format("%r%r%r", main->output.to.stream, setting->prepend, utf8_string_width_2_s, setting->append); + fl_print_format("%r%r%r", main->output.to, setting->prepend, utf8_string_width_2_s, setting->append); return F_output_not; } @@ -557,13 +557,13 @@ extern "C" { status = f_utf_is_graph(sequence.string, sequence.used); if (status == F_true) { - fl_print_format("%r%r%r", main->output.to.stream, setting->prepend, utf8_string_width_1_s, setting->append); + fl_print_format("%r%r%r", main->output.to, setting->prepend, utf8_string_width_1_s, setting->append); return F_output_not; } if (status == F_false) { - fl_print_format("%r%r%r", main->output.to.stream, setting->prepend, utf8_string_width_0_s, setting->append); + fl_print_format("%r%r%r", main->output.to, setting->prepend, utf8_string_width_0_s, setting->append); return F_output_not; } diff --git a/level_3/utf8/c/utf8.c b/level_3/utf8/c/utf8.c index 7a873b5..84a3712 100644 --- a/level_3/utf8/c/utf8.c +++ b/level_3/utf8/c/utf8.c @@ -44,10 +44,10 @@ extern "C" { if (F_status_is_error_not(setting->status)) { if (setting->mode & utf8_mode_to_bytesequence_e) { if (setting->flag & utf8_main_flag_header_e) { - fll_print_dynamic_raw(f_string_eol_s, main->output.to.stream); + fll_print_dynamic_raw(f_string_eol_s, main->output.to); } else if ((setting->flag & (utf8_main_flag_separate_e | utf8_main_flag_file_from_e)) || setting->remaining.used) { - fll_print_dynamic_raw(f_string_eol_s, main->output.to.stream); + fll_print_dynamic_raw(f_string_eol_s, main->output.to); } } } @@ -102,16 +102,16 @@ extern "C" { if (F_status_is_error_not(setting->status)) { if (setting->mode & utf8_mode_to_bytesequence_e) { if (setting->flag & utf8_main_flag_header_e) { - fll_print_dynamic_raw(f_string_eol_s, main->output.to.stream); + fll_print_dynamic_raw(f_string_eol_s, main->output.to); } else if ((setting->flag & utf8_main_flag_separate_e) && (setting->remaining.used || setting->path_files_from.used)) { - fll_print_dynamic_raw(f_string_eol_s, main->output.to.stream); + fll_print_dynamic_raw(f_string_eol_s, main->output.to); } } else { if (!(setting->flag & (utf8_main_flag_file_to_e | utf8_main_flag_header_e | utf8_main_flag_verify_e))) { if (!(setting->flag & utf8_main_flag_separate_e)) { - fll_print_dynamic_raw(f_string_eol_s, main->output.to.stream); + fll_print_dynamic_raw(f_string_eol_s, main->output.to); } } } @@ -145,16 +145,16 @@ extern "C" { if (setting->mode & utf8_mode_to_bytesequence_e) { if (setting->flag & utf8_main_flag_header_e) { - fll_print_dynamic_raw(f_string_eol_s, main->output.to.stream); + fll_print_dynamic_raw(f_string_eol_s, main->output.to); } else if ((setting->flag & utf8_main_flag_separate_e) && i + 1 < main->parameters.remaining.used) { - fll_print_dynamic_raw(f_string_eol_s, main->output.to.stream); + fll_print_dynamic_raw(f_string_eol_s, main->output.to); } } else { if (!(setting->flag & (utf8_main_flag_file_to_e | utf8_main_flag_header_e | utf8_main_flag_verify_e))) { if (!(setting->flag & utf8_main_flag_separate_e)) { - fll_print_dynamic_raw(f_string_eol_s, main->output.to.stream); + fll_print_dynamic_raw(f_string_eol_s, main->output.to); } } } -- 1.8.3.1