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_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
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
#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_
#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_
// FLL-0 includes.
#include <fll/level_0/type.h>
+#include <fll/level_0/type_file.h>
#include <fll/level_0/status.h>
#include <fll/level_0/memory.h>
#include <fll/level_0/string.h>
* 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.
* @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_
/**
* 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.
* @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_
/**
#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;
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);
}
}
#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;
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
}
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
#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) {
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
#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) {
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
}
}
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) {
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
}
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
}
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
}
}
* 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.
* @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_)
/**
* 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.
* @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_)
/**
* 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.
* @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_)
/**
* 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.
* @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_)
/**
* 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.
#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.
* 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()
// FLL-0 includes.
#include <fll/level_0/type.h>
+#include <fll/level_0/type_file.h>
#include <fll/level_0/status.h>
#include <fll/level_0/memory.h>
#include <fll/level_0/string.h>
#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.
#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_
* @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);
}
#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_
#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) {
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) {
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) {
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) {
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) {
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) {
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) {
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) {
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) {
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) {
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) {
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) {
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) {
}
// 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_
#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) {
uint8_t width = 0;
- clearerr_unlocked(stream);
+ clearerr_unlocked(file.stream);
for (register f_array_length_t i = 0; string[i]; ) {
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);
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);
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);
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);
}
#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_
// FLL-0 includes.
#include <fll/level_0/type.h>
+#include <fll/level_0/type_file.h>
#include <fll/level_0/status.h>
#include <fll/level_0/memory.h>
#include <fll/level_0/string.h>
* 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.
* @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_
/**
*
* @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.
* @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_
/**
*
* @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.
* @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_
/**
*
* @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.
* @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_
/**
* 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.
* @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_
/**
* 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.
* @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_
/**
* 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.
* @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_
/**
* 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.
* @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_
/**
*
* @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.
* @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_
/**
*
* @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.
* @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_
/**
*
* @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.
* @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_
/**
* @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.
* @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_
/**
* @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.
* @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_
/**
* @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.
* @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_
/**
* @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.
* @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_
/**
* @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.
* @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_
/**
* @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.
* @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_
/**
* @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.
* @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_
/**
* @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.
* @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_
/**
* @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.
* @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_
/**
* @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.
* @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_
/**
* @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.
* @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_
/**
* @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.
* @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_
/**
* @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.
* @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_
/**
* @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.
* @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_
/**
* @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.
* @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_
/**
* @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.
* @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_
/**
* @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.
* @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_
/**
* @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.
* @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_
/**
* @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.
* @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_
/**
* @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.
* @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_
/**
* @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.
* @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_
/**
* @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.
* @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_
/**
* @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.
* @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_
/**
* @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.
* @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_
/**
* 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.
* @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_
/**
* 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.
* @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_
/**
*
* @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.
* @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_
/**
* 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.
* @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_
/**
* 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.
* @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_
/**
*
* @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.
* @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
}
#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();
}
#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) {
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) {
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) {
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) {
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) {
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) {
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) {
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) {
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) {
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) {
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) {
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) {
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;
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();
}
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();
}
} // 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();
}
}
#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_
* 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.
* @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_
/**
*
* @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.
* @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_
/**
*
* @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.
* @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_
/**
*
* @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.
* @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_
/**
* 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.
* @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_
/**
* 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.
* @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_
/**
* 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.
* @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_
/**
* 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.
* @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_
/**
*
* @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.
* @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_
/**
*
* @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.
* @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_
/**
*
* @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.
* @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_
/**
* @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.
* @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_
/**
* @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.
* @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_
/**
* @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.
* @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_
/**
* @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.
* @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_
/**
* @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.
* @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_
/**
* 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
* @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_
/**
* @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.
* @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_
/**
* @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.
* @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_
/**
* @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.
* @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_
/**
* @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.
* @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_
/**
* @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.
* @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_
/**
* @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.
* @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_
/**
* @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.
* @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_
/**
* @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.
* @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_
/**
* @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.
* @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_
/**
* @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.
* @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_
/**
* @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.
* @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_
/**
* @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.
* @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_
/**
* @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.
* @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_
/**
* @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.
* @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_
/**
* @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.
* @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_
/**
* @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.
* @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_
/**
* @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.
* @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_
/**
* @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.
* @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_
/**
* 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.
* @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_
/**
* 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.
* @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_
/**
*
* @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.
* @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_
/**
* 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.
* @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_
/**
*
* @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.
* @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_
/**
*
* @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.
* @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
#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; ) {
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);
#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;
f_array_length_t total = 0;
f_array_length_t count = 0;
- clearerr_unlocked(stream);
+ clearerr_unlocked(file.stream);
while (i < stop) {
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);
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);
#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;
f_array_length_t total = 0;
f_array_length_t count = 0;
- clearerr_unlocked(stream);
+ clearerr_unlocked(file.stream);
while (i < stop) {
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);
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);
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);
#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;
f_array_length_t total = 0;
f_array_length_t count = 0;
- clearerr_unlocked(stream);
+ clearerr_unlocked(file.stream);
while (i < stop) {
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);
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);
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);
#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;
uint8_t width = 0;
- clearerr_unlocked(stream);
+ clearerr_unlocked(file.stream);
while (i < stop) {
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);
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);
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);
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);
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);
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);
}
#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;
uint8_t width = 0;
- clearerr_unlocked(stream);
+ clearerr_unlocked(file.stream);
while (i < stop) {
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);
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);
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);
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);
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);
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);
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);
}
#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;
f_array_length_t total = 0;
f_array_length_t count = 0;
- clearerr_unlocked(stream);
+ clearerr_unlocked(file.stream);
while (i < stop) {
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);
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);
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);
}
#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;
uint8_t width = 0;
- clearerr_unlocked(stream);
+ clearerr_unlocked(file.stream);
while (i < stop) {
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);
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);
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);
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);
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);
}
#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;
uint8_t width = 0;
- clearerr_unlocked(stream);
+ clearerr_unlocked(file.stream);
while (i < stop) {
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);
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);
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);
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);
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);
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);
}
#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);
}
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);
}
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);
#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;
uint8_t width = 0;
- clearerr_unlocked(stream);
+ clearerr_unlocked(file.stream);
while (i < length) {
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);
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);
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);
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);
}
#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;
uint8_t width = 0;
- clearerr_unlocked(stream);
+ clearerr_unlocked(file.stream);
while (i < length) {
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);
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);
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);
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);
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);
}
#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)) {
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);
* 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.
* @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_)
/**
*
* @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.
* @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_)
/**
* @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.
* @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_)
/**
* @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.
* @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_)
/**
* @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.
* @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_)
/**
* @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.
* @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_)
/**
* @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.
* @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_)
/**
* @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.
* @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_)
/**
* @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.
* @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_)
/**
* @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.
* @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_)
/**
* 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.
* @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_)
/**
* 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.
* @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_)
/**
* 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.
* @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_)
/**
*
* @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.
* @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_)
/**
* 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
--- /dev/null
+/**
+ * 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 <stdio.h>
+
+#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
build_libraries -lc
-build_sources_headers type.h
+build_sources_headers type.h type_file.h
build_script yes
build_shared yes
#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);
#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;
#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) {
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) {
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) {
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) {
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) {
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) {
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) {
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) {
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) {
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) {
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) {
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) {
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_
// FLL-0 includes.
#include <fll/level_0/type.h>
+#include <fll/level_0/type_file.h>
#include <fll/level_0/status.h>
#include <fll/level_0/memory.h>
#include <fll/level_0/string.h>
* @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_
/**
* @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_
/**
* @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_
/**
* @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_
/**
* @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_
/**
* @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_
/**
* @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_
/**
* @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_
/**
* @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_
/**
* @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_
/**
* @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_
/**
* @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_
/**
* @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_
/**
* @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_
/**
* @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_
/**
* @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_
/**
* @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_
/**
* @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_
/**
* @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_
/**
* @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_
/**
* @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_
/**
* @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_
/**
* @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_
/**
* @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_
/**
* @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_
/**
* @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_
/**
* @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_
/**
* @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_
/**
* @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_
/**
* @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_
/**
* @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_
/**
* @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_
/**
* @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_
/**
* @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_
/**
* @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_
/**
* @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_
/**
* @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_
/**
* @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_
/**
* @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
#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;
// 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);
}
}
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;
}
}
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) {
}
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_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);
}
}
}
}
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) {
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);
}
}
}
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) {
}
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_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);
}
}
}
}
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) {
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);
}
}
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;
}
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;
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;
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);
}
}
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) {
}
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_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);
}
}
}
}
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) {
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);
}
}
}
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) {
}
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_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);
}
}
}
}
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) {
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);
}
}
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;
}
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;
}
}
- *status = f_print_terminated(buffer, stream);
+ *status = f_print_terminated(buffer, file);
}
va_end(apl);
}
}
else {
- if (!fputc_unlocked(*string, stream)) break;
+ if (!fputc_unlocked(*string, file.stream)) break;
}
} // for
#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;
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);
}
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);
}
#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;
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);
}
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);
}
#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;
}
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);
}
}
if (!string[i]) {
- if (!fputc_unlocked(string[i], stream)) {
+ if (!fputc_unlocked(string[i], file.stream)) {
return F_status_set_error(F_output);
}
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);
}
}
}
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);
}
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);
}
#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;
}
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);
}
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);
}
}
}
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);
}
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);
}
#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;
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);
}
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);
}
#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;
// 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);
}
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);
}
#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;
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);
}
}
if (!string[i]) {
- if (!fputc_unlocked(string[i], stream)) {
+ if (!fputc_unlocked(string[i], file.stream)) {
return F_status_set_error(F_output);
}
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);
}
}
}
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);
}
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);
}
#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;
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);
}
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);
}
}
}
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);
}
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);
}
*
* @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
* @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_)
/**
* @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.
* @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_)
/**
* @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.
* @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_)
/**
* @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.
* @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_)
/**
* @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.
* @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_)
/**
* 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.
* @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_)
/**
* 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.
* @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_)
/**
* 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.
* @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_)
/**
* 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.
* @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
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
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);
}
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);
}
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);
}
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);
}
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_)
#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;
}
* 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().
* @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_
/**
*
* @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().
* @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_
/**
*
* @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().
* @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_
/**
*
* @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().
* @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_
/**
* 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().
* @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_
/**
* 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().
* @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_
/**
* 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().
* @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_
/**
* 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().
* @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_
/**
*
* @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().
* @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_
/**
*
* @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().
* @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_
/**
*
* @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().
* @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_
/**
* @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().
* @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_
/**
* @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().
* @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_
/**
* @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().
* @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_
/**
* @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().
* @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_
/**
* @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().
* @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_
/**
* @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().
* @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_
/**
* @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().
* @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_
/**
* @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().
* @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_
/**
* @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().
* @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_
/**
* @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().
* @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_
/**
* @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().
* @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_
/**
* @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().
* @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_
/**
* @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().
* @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_
/**
* @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().
* @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_
/**
* @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().
* @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_
/**
* @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().
* @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_
/**
* @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().
* @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_
/**
* @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().
* @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_
/**
* @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().
* @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_
/**
* @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().
* @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_
/**
* @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().
* @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_
/**
* @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().
* @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_
/**
* @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().
* @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_
/**
* @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().
* @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_
/**
* @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.
*
* @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_
/**
*
* @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
* @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_
/**
* 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().
* @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_
/**
* 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().
* @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_
/**
*
* @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().
* @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_
/**
* 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().
* @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_
/**
* 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().
* @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_
/**
*
* @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.
* @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_
/**
*
* @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().
* @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_
/**
* 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().
* @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_
/**
* 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().
* @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_
/**
* 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().
* @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_
/**
* 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().
* @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_
/**
*
* @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().
* @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_
/**
*
* @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().
* @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_
/**
*
* @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().
* @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_
/**
*
* @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().
* @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_
/**
* 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().
* @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_
/**
* 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().
* @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_
/**
* 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().
* @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_
/**
* 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().
* @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_
/**
* @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().
* @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_
/**
* @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().
* @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_
/**
* @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().
* @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_
/**
* @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().
* @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_
/**
* @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().
* @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_
/**
* @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().
* @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_
/**
* @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().
* @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_
/**
* @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().
* @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_
/**
* @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().
* @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_
/**
* @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().
* @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_
/**
* @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().
* @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_
/**
* @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().
* @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_
/**
* @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().
* @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_
/**
* @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().
* @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_
/**
* @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().
* @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_
/**
* @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().
* @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_
/**
* @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().
* @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_
/**
* @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().
* @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_
/**
* @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().
* @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_
/**
* @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().
* @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_
/**
* @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().
* @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_
/**
* @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().
* @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_
/**
* @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().
* @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_
/**
* @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().
* @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
#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;
}
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
#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;
}
#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;
}
#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;
}
#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;
}
// 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);
#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;
}
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);
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);
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);
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);
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);
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);
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);
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);
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);
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 {
}
}
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);
}
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.");
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.");
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);
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;
}
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;
}
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;
}
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;
}
}
}
- 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;
position += width_utf;
if (position >= data->last) {
- funlockfile(data->main->output.to.stream);
+ funlockfile(data->main->output.to);
break;
}
++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) {
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;
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);
}
}
}
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;
}
}
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;
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;
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);
}
}
}
}
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);
}
}
}
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;
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);
}
}
}
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);
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
}
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
}
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;
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) {
// 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) {
// 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;
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);
}
}
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;
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;
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;
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_
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);
}
}
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);
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;
}
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;
}
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;
}
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;
}
}
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);
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);
}
}
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);
}
}
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);
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);
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);
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);
}
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);
}
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);
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_
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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_
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_
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_
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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)) {
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);
}
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);
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);
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);
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);
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
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);
}
}
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);
}
}
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);
}
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);
}
}
}
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
}
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);
}
}
}
}
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);
}
}
}
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);
}
}
}
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);
}
}
}
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);
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);
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);
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);
}
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);
}
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);
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);
}
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);
}
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);
}
}
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);
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);
}
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);
}
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);
}
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);
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);
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);
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);
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);
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);
}
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);
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);
}
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);
}
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);
}
}
}
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);
}
#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_
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);
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);
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);
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);
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);
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).");
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);
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;
}
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;
}
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;
}
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;
}
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);
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);
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);
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);
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);
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);
}
}
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);
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);
}
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);
}
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);
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);
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);
}
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
}
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);
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);
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);
}
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);
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);
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;
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;
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) {
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) {
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);
}
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);
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);
}
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);
}
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);
}
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);
}
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);
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);
}
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);
}
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);
}
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);
}
}
}
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);
}
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);
}
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);
}
}
}
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);
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.");
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.");
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);
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;
}
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;
}
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;
}
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;
}
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;
*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) {
*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) {
*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) {
*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) {
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;
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);
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;
}
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;
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) {
*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);
}
}
}
*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);
}
}
}
*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);
}
}
}
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);
}
}
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);
}
}
}
}
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 {
}
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 {
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);
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;
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;
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;
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);
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);
}
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);
}
}
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;
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;
};
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;
}
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
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);
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;
}
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)) {
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 {
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);
}
}
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;
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;
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;
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 {
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;
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);
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 {
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);
}
}
}
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;
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;
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;
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;
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;
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);
}
}
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);
}
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;
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);
}
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);
++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;
}
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;
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);
}
}
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) {
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;
}
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);
}
}
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;
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);
}
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);
}
}
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;
}
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)) {
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;
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;
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;
}
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 {
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;
}
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
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;
}
}
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;
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;
}
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_
}
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
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);
}
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;
}
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
}
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
// 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;
} // 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;
}
// 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);
}
}
}
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.
}
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
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);
}
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);
}
}
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);
}
}
}
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);
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);
}
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);
}
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);
}
}
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);
}
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);
}
}
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);
}
} // 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);
}
} // 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);
}
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);
}
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);
}
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);
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);
}
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);
}
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);
}
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);
}
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);
}
}
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);
}
}
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);
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);
}
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);
}
}
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);
}
}
}
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);
}
}
}
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);
}
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);
}
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);
}
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);
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);
}
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);
}
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);
}
}
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);
}
}
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);
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);
}
}
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);
}
}
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);
}
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);
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);
}
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);
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);
}
}
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);
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);
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);
}
}
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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_
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;
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;
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;
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_
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_
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_
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_
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);
}
#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;
#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);
#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);
#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);
#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);
#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_
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_
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_
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_
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_
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);
}
}
} // 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);
}
}
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;
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);
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);
}
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)) {
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;
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;
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);
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);
}
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) {
}
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);
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);
}
}
}
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);
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;
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;
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);
}
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);
}
}
}
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);
}
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);
}
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);
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);
}
}
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);
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;
}
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;
}
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;
}
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;
}
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);
}
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) {
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);
}
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_
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;
}
// 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;
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;
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;
}
// 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) {
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));
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));
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);
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);
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);
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);
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);
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);
}
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);
}
}
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).");
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);
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;
}
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;
}
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;
}
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;
}
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);
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);
}
}
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);
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_
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);
}
}
}
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_
#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_
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);
}
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);
}
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;
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);
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);
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);
}
} // 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;
}
}
}
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);
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;
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
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);
}
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);
}
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);
}
}
}
// 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);
}
}
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.");
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);
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;
}
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;
}
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;
}
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;
}
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);
}
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);
}
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);
}
}
}
- fll_print_dynamic(*buffer, output.stream);
+ fll_print_dynamic(*buffer, output);
buffer->used = 0;
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);
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);
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);
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);
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);
}
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);
}
}
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).");
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);
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;
}
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;
}
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;
}
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;
}
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);
}
}
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);
}
}
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_
#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_
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_
#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_
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);
}
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);
}
}
}
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);
}
} // 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;
}
}
}
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);
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
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);
}
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);
}
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);
}
}
}
// 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);
}
}
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.");
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);
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;
}
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;
}
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;
}
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;
}
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);
}
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);
}
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);
}
}
}
- fll_print_dynamic(*buffer, output.stream);
+ fll_print_dynamic(*buffer, output);
buffer->used = 0;
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);
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);
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);
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);
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);
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);
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);
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);
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);
// 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);
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);
}
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);
}
}
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).");
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);
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;
}
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;
}
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;
}
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;
}
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);
}
}
}
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_
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);
}
}
}
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);
}
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;
}
// 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;
}
++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;
}
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;
}
} // 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;
}
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) {
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) {
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;
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
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);
}
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);
}
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);
}
}
// 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);
}
}
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.");
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);
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;
}
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;
}
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;
}
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;
}
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);
}
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);
}
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);
}
}
}
- fll_print_dynamic(*buffer, output.stream);
+ fll_print_dynamic(*buffer, output);
buffer->used = 0;
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);
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);
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);
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);
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);
}
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);
}
}
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).");
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);
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;
}
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;
}
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;
}
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;
}
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);
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);
}
}
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);
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_
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);
}
}
}
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);
}
}
}
#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_
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);
}
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);
}
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)) {
}
} // 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 {
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);
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);
}
} // 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;
}
}
}
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);
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
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);
}
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);
}
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);
}
}
// 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);
}
}
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.");
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);
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;
}
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;
}
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;
}
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;
}
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);
}
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);
}
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);
}
}
}
- fll_print_dynamic(*buffer, output.stream);
+ fll_print_dynamic(*buffer, output);
buffer->used = 0;
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);
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);
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);
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);
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);
}
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);
}
}
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).");
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);
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;
}
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;
}
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;
}
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;
}
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);
}
}
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);
}
}
}
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) {
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_
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_
#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_
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_
#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_
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);
}
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);
}
}
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) {
}
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);
}
}
}
} // 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;
}
}
}
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);
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
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);
}
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);
}
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);
}
}
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);
}
}
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.");
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);
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;
}
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;
}
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;
}
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;
}
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);
}
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);
}
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);
}
}
}
- fll_print_dynamic(*buffer, output.stream);
+ fll_print_dynamic(*buffer, output);
buffer->used = 0;
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);
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);
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);
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);
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);
}
}
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);
}
}
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);
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;
}
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;
}
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;
}
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;
}
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);
}
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);
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);
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);
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);
}
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);
}
}
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).");
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);
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;
}
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;
}
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;
}
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;
}
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);
}
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) {
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);
}
}
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);
}
}
}
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) {
}
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);
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_
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_
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);
}
}
}
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_
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_
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_
#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_
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);
}
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);
}
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);
}
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) {
}
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);
}
}
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);
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);
}
} // 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;
}
}
} // 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;
}
}
}
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);
}
}
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);
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;
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
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);
}
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);
}
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);
}
}
// 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);
}
}
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.");
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);
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;
}
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;
}
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;
}
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;
}
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);
}
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);
}
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);
}
}
}
- fll_print_dynamic(*buffer, output.stream);
+ fll_print_dynamic(*buffer, output);
buffer->used = 0;
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);
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);
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;
}
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);
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;
}
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;
}
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;
}
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;
}
}
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;
}
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;
}
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;
}
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;
}
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;
}
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;
}
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;
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);
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;
}
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;
}
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;
}
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;
}
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_
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_
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_
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
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);
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);
} // 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;
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;
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);
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;
}
}
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;
}
}
- 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;
}
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;
}
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.
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);
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.");
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);
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;
}
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;
}
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;
}
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;
}
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);
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);
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;
}
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);
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;
}
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);
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;
}
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;
}
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;
}
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;
}
}
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;
}
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;
}
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;
}
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;
}
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;
}
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;
#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;
}
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;
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;
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 {
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;
}
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;
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;
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;
}
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);
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);
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;
}
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).");
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);
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;
}
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;
}
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;
}
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;
}
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;
}
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;
}
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;
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);
}
}
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);
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);
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;
}
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;
}
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);
}
}
}
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);
}
}
}
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);
}
}
}