After using fll_error_print_t for a while now, I find that it is in practice superior to the regular print approach (such as with "f_file_t output;").
This made coding far easier than I imagined.
This refactor changes renames this from an error purpose print to a generic all-purpose print.
The existing "f_file_t output;" designs are not changed with this factor and will be changed in a later commit.
This refactor allows this to be moved from a level 2 project to a level 1 project.
In following with my completeness principle, I have added a "suffix" to compliment the "prefix".
I also added the "set" as a pointer to make it optional and to also not take up as much resources the full object rather than a pointer.
Having used fll_error_print_t for some time, I have found that I occasionally needed more than just the "context" and "notable".
While working on this, I realized I could improve my practice of handling "static" strings (such as fll_error_print_debug_s).
The practice is now to have the defines more closely match the names, but begin with the F_, FL_, etc.. in the same way that status codes are used.
This then allows:
| old | new |
----------------------------------------------
| fll_error_print_debug_s | fl_print_debug_s | <--- variable.
| fll_error_print_debug | FL_print_debug_s | <--- define/macro.
A future commit will convert all existing code that follows the old way.
build_libraries -lc -lcap
build_libraries-level -lfll_0
build_libraries-level_threadless -lfll_0
-build_sources_library console.c control_group.c conversion.c private-conversion.c directory.c private-directory.c environment.c private-fss.c fss_basic.c fss_basic_list.c fss_embedded_list.c fss_extended.c fss_extended_list.c iki.c print.c private-print.c signal.c status.c string.c private-string.c utf.c private-utf.c utf_file.c private-utf_file.c
+build_sources_library console.c control_group.c conversion.c private-conversion.c directory.c private-directory.c environment.c private-fss.c fss_basic.c fss_basic_list.c fss_embedded_list.c fss_extended.c fss_extended_list.c iki.c print.c print-common.c private-print.c signal.c status.c string.c private-string.c utf.c private-utf.c utf_file.c private-utf_file.c
build_sources_library-level
build_sources_program
-build_sources_headers console.h control_group.h conversion.h directory.h environment.h execute.h execute-common.h fss.h fss_basic.h fss_basic_list.h fss_embedded_list.h fss_extended.h fss_extended_list.h fss_status.h iki.h print.h signal.h signal-common.h status.h string.h utf.h utf_file.h
+build_sources_headers console.h control_group.h conversion.h directory.h environment.h execute.h execute-common.h fss.h fss_basic.h fss_basic_list.h fss_embedded_list.h fss_extended.h fss_extended_list.h fss_status.h iki.h print.h print-common.h signal.h signal-common.h status.h string.h utf.h utf_file.h
build_sources_headers-level
build_sources_script
build_sources_setting
build_libraries -lc -lcap
build_libraries-monolithic
build_libraries-monolithic_threadless
-build_sources_library level_0/account.c level_0/private-account.c level_0/capability.c level_0/color.c level_0/color-common.c level_0/console.c level_0/console-common.c level_0/control_group.c level_0/control_group-common.c level_0/conversion.c level_0/conversion-common.c level_0/private-conversion.c level_0/directory.c level_0/private-directory.c level_0/environment.c level_0/private-environment.c level_0/execute.c level_0/file.c level_0/file-common.c level_0/private-file.c level_0/fss.c level_0/private-fss.c level_0/fss-common.c level_0/fss_named.c level_0/fss_nest.c level_0/fss_set.c level_0/iki.c level_0/iki-common.c level_0/private-iki.c level_0/limit.c level_0/memory.c level_0/memory_structure.c level_0/private-memory.c level_0/path.c level_0/path-common.c level_0/private-path.c level_0/pipe.c level_0/print.c level_0/print-common.c level_0/private-print.c level_0/serialize.c level_0/serialize-common.c level_0/private-serialize.c level_0/signal.c level_0/socket.c level_0/string.c level_0/string-common.c level_0/private-string.c level_0/string_dynamic.c level_0/string_map.c level_0/string_quantity.c level_0/string_range.c level_0/string_triple.c level_0/type_array.c level_0/private-type_array.c level_0/utf.c level_0/utf-common.c level_0/private-utf.c level_0/utf_dynamic.c level_0/utf_map.c level_0/utf_triple.c level_1/console.c level_1/control_group.c level_1/conversion.c level_1/private-conversion.c level_1/directory.c level_1/private-directory.c level_1/environment.c level_1/private-fss.c level_1/fss_basic.c level_1/fss_basic_list.c level_1/fss_embedded_list.c level_1/fss_extended.c level_1/fss_extended_list.c level_1/iki.c level_1/print.c level_1/private-print.c level_1/signal.c level_1/status.c level_1/string.c level_1/private-string.c level_1/utf.c level_1/private-utf.c level_1/utf_file.c level_1/private-utf_file.c level_2/control_group.c level_2/error.c level_2/error-common.c level_2/private-error.c level_2/execute.c level_2/private-execute.c level_2/file.c level_2/private-file.c level_2/fss.c level_2/private-fss.c level_2/fss_basic.c level_2/fss_basic_list.c level_2/fss_embedded_list.c level_2/fss_extended.c level_2/fss_extended_list.c level_2/fss_status.c level_2/iki.c level_2/private-iki.c level_2/path.c level_2/print.c level_2/program.c level_2/status.c
+build_sources_library level_0/account.c level_0/private-account.c level_0/capability.c level_0/color.c level_0/color-common.c level_0/console.c level_0/console-common.c level_0/control_group.c level_0/control_group-common.c level_0/conversion.c level_0/conversion-common.c level_0/private-conversion.c level_0/directory.c level_0/private-directory.c level_0/environment.c level_0/private-environment.c level_0/execute.c level_0/file.c level_0/file-common.c level_0/private-file.c level_0/fss.c level_0/private-fss.c level_0/fss-common.c level_0/fss_named.c level_0/fss_nest.c level_0/fss_set.c level_0/iki.c level_0/iki-common.c level_0/private-iki.c level_0/limit.c level_0/memory.c level_0/memory_structure.c level_0/private-memory.c level_0/path.c level_0/path-common.c level_0/private-path.c level_0/pipe.c level_0/print.c level_0/print-common.c level_0/private-print.c level_0/serialize.c level_0/serialize-common.c level_0/private-serialize.c level_0/signal.c level_0/socket.c level_0/string.c level_0/string-common.c level_0/private-string.c level_0/string_dynamic.c level_0/string_map.c level_0/string_quantity.c level_0/string_range.c level_0/string_triple.c level_0/type_array.c level_0/private-type_array.c level_0/utf.c level_0/utf-common.c level_0/private-utf.c level_0/utf_dynamic.c level_0/utf_map.c level_0/utf_triple.c level_1/console.c level_1/control_group.c level_1/conversion.c level_1/private-conversion.c level_1/directory.c level_1/private-directory.c level_1/environment.c level_1/private-fss.c level_1/fss_basic.c level_1/fss_basic_list.c level_1/fss_embedded_list.c level_1/fss_extended.c level_1/fss_extended_list.c level_1/iki.c level_1/print.c level_1/print-common.c level_1/private-print.c level_1/signal.c level_1/status.c level_1/string.c level_1/private-string.c level_1/utf.c level_1/private-utf.c level_1/utf_file.c level_1/private-utf_file.c level_2/control_group.c level_2/error.c level_2/error-common.c level_2/private-error.c level_2/execute.c level_2/private-execute.c level_2/file.c level_2/private-file.c level_2/fss.c level_2/private-fss.c level_2/fss_basic.c level_2/fss_basic_list.c level_2/fss_embedded_list.c level_2/fss_extended.c level_2/fss_extended_list.c level_2/fss_status.c level_2/iki.c level_2/private-iki.c level_2/path.c level_2/print.c level_2/program.c level_2/status.c
build_sources_library-monolithic level_0/thread.c level_0/private-thread.c
build_sources_program
-build_sources_headers level_0/account.h level_0/account-common.h level_0/capability.h level_0/capability-common.h level_0/color.h level_0/color-common.h level_0/console.h level_0/console-common.h level_0/control_group.h level_0/control_group-common.h level_0/conversion.h level_0/conversion-common.h level_0/directory.h level_0/directory_type.h level_0/directory-common.h level_0/environment.h level_0/environment-common.h level_0/execute.h level_0/execute-common.h level_0/file.h level_0/file-common.h level_0/fss.h level_0/fss-common.h level_0/fss_comment.h level_0/fss_delimit.h level_0/fss_named.h level_0/fss_nest.h level_0/fss_quote.h level_0/fss_set.h level_0/iki.h level_0/iki-common.h level_0/limit.h level_0/limit-common.h level_0/memory.h level_0/memory_structure.h level_0/memory-common.h level_0/path.h level_0/path-common.h level_0/pipe.h level_0/print.h level_0/print-common.h level_0/serialize.h level_0/serialize-common.h level_0/signal.h level_0/signal-common.h level_0/socket.h level_0/socket-common.h level_0/status.h level_0/string.h level_0/string-common.h level_0/string_dynamic.h level_0/string_map.h level_0/string_quantity.h level_0/string_range.h level_0/string_triple.h level_0/type.h level_0/type_array.h level_0/type_array-common.h level_0/utf.h level_0/utf-common.h level_0/utf_dynamic.h level_0/utf_map.h level_0/utf_triple.h level_1/console.h level_1/control_group.h level_1/conversion.h level_1/directory.h level_1/environment.h level_1/execute.h level_1/execute-common.h level_1/fss.h level_1/fss_basic.h level_1/fss_basic_list.h level_1/fss_embedded_list.h level_1/fss_extended.h level_1/fss_extended_list.h level_1/fss_status.h level_1/iki.h level_1/print.h level_1/signal.h level_1/signal-common.h level_1/status.h level_1/string.h level_1/utf.h level_1/utf_file.h level_2/control_group.h level_2/error.h level_2/error-common.h level_2/execute.h level_2/file.h level_2/fss.h level_2/fss_basic.h level_2/fss_basic_list.h level_2/fss_embedded_list.h level_2/fss_extended.h level_2/fss_extended_list.h level_2/fss_status.h level_2/iki.h level_2/path.h level_2/print.h level_2/program.h level_2/status.h
+build_sources_headers level_0/account.h level_0/account-common.h level_0/capability.h level_0/capability-common.h level_0/color.h level_0/color-common.h level_0/console.h level_0/console-common.h level_0/control_group.h level_0/control_group-common.h level_0/conversion.h level_0/conversion-common.h level_0/directory.h level_0/directory_type.h level_0/directory-common.h level_0/environment.h level_0/environment-common.h level_0/execute.h level_0/execute-common.h level_0/file.h level_0/file-common.h level_0/fss.h level_0/fss-common.h level_0/fss_comment.h level_0/fss_delimit.h level_0/fss_named.h level_0/fss_nest.h level_0/fss_quote.h level_0/fss_set.h level_0/iki.h level_0/iki-common.h level_0/limit.h level_0/limit-common.h level_0/memory.h level_0/memory_structure.h level_0/memory-common.h level_0/path.h level_0/path-common.h level_0/pipe.h level_0/print.h level_0/print-common.h level_0/serialize.h level_0/serialize-common.h level_0/signal.h level_0/signal-common.h level_0/socket.h level_0/socket-common.h level_0/status.h level_0/string.h level_0/string-common.h level_0/string_dynamic.h level_0/string_map.h level_0/string_quantity.h level_0/string_range.h level_0/string_triple.h level_0/type.h level_0/type_array.h level_0/type_array-common.h level_0/utf.h level_0/utf-common.h level_0/utf_dynamic.h level_0/utf_map.h level_0/utf_triple.h level_1/console.h level_1/control_group.h level_1/conversion.h level_1/directory.h level_1/environment.h level_1/execute.h level_1/execute-common.h level_1/fss.h level_1/fss_basic.h level_1/fss_basic_list.h level_1/fss_embedded_list.h level_1/fss_extended.h level_1/fss_extended_list.h level_1/fss_status.h level_1/iki.h level_1/print.h level_1/print-common.h level_1/signal.h level_1/signal-common.h level_1/status.h level_1/string.h level_1/utf.h level_1/utf_file.h level_2/control_group.h level_2/error.h level_2/error-common.h level_2/execute.h level_2/file.h level_2/fss.h level_2/fss_basic.h level_2/fss_basic_list.h level_2/fss_embedded_list.h level_2/fss_extended.h level_2/fss_extended_list.h level_2/fss_status.h level_2/iki.h level_2/path.h level_2/print.h level_2/program.h level_2/status.h
build_sources_headers-monolithic level_0/thread.h level_0/thread-common.h
build_sources_script
build_sources_setting
--- /dev/null
+#include "print.h"
+#include "private-print.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifndef _di_fl_print_t_
+ const f_string_t fl_print_debug_s = FL_print_debug_s;
+ const f_string_t fl_print_error_s = FL_print_error_s;
+ const f_string_t fl_print_warning_s = FL_print_warning_s;
+#endif // _di_fl_print_t_
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
--- /dev/null
+/**
+ * FLL - Level 1
+ *
+ * Project: Print
+ * API Version: 0.5
+ * Licenses: lgplv2.1
+ *
+ * Defines common data to be used for/by project print.
+ *
+ * This is auto-included by print.h and should not need to be explicitly included.
+ */
+#ifndef _FL_print_common_h
+#define _FL_print_common_h
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * Structure for facilitating colored or other managed printing.
+ *
+ * to: The file to print to.
+ * verbosity: The verbosity mode.
+ * prefix: An optional prefix string for displaying before any special messages.
+ * suffix: An optional suffix string for displaying after any special messages.
+ * context: The color codes for the entire error message.
+ * notable: The color codes for a part of the message to make more visible.
+ * set: An optional pointer to a set of all available color contexts for explicit use.
+ */
+#ifndef _di_fl_print_t_
+ #define FL_print_debug_s "DEBUG: "
+ #define FL_print_error_s "ERROR: "
+ #define FL_print_warning_s "WARNING: "
+
+ #define FL_debug_s_length 7
+ #define FL_error_s_length 7
+ #define FL_warning_s_length 9
+
+ extern const f_string_t fl_print_debug_s;
+ extern const f_string_t fl_print_error_s;
+ extern const f_string_t fl_print_warning_s;
+
+ typedef struct {
+ f_file_t to;
+ uint8_t verbosity;
+
+ const char *prefix;
+ const char *suffix;
+
+ f_color_set_t context;
+ f_color_set_t notable;
+ f_color_set_context_t *set;
+ } fl_print_t;
+
+ #define fl_print_t_initialize { \
+ macro_f_file_t_initialize2(f_type_output, f_type_descriptor_output, f_file_flag_write_only), \
+ f_console_verbosity_normal, \
+ 0, \
+ 0, \
+ f_color_set_t_initialize, \
+ f_color_set_t_initialize, \
+ 0, \
+ }
+
+ #define macro_fl_print_t_initialize(to, verbosity, prefix, suffix, context, notable, set) { to, verbosity, prefix, suffix, context, notable, set }
+ #define macro_fl_print_t_initialize_debug() macro_fl_print_t_initialize(macro_f_file_t_initialize2(f_type_debug, f_type_descriptor_debug, f_file_flag_write_only), f_console_verbosity_normal, fl_print_debug_s, 0, f_color_set_t_initialize, f_color_set_t_initialize, 0)
+ #define macro_fl_print_t_initialize_debug2(suffix, set) macro_fl_print_t_initialize(macro_f_file_t_initialize2(f_type_debug, f_type_descriptor_debug, f_file_flag_write_only), f_console_verbosity_normal, fl_print_debug_s, suffix, f_color_set_t_initialize, f_color_set_t_initialize, set)
+ #define macro_fl_print_t_initialize_error() macro_fl_print_t_initialize(macro_f_file_t_initialize2(f_type_error, f_type_descriptor_error, f_file_flag_write_only), f_console_verbosity_normal, fl_print_error_s, 0, f_color_set_t_initialize, f_color_set_t_initialize, 0)
+ #define macro_fl_print_t_initialize_error2(suffix, set) macro_fl_print_t_initialize(macro_f_file_t_initialize2(f_type_error, f_type_descriptor_error, f_file_flag_write_only), f_console_verbosity_normal, fl_print_error_s, suffix, f_color_set_t_initialize, f_color_set_t_initialize, set)
+ #define macro_fl_print_t_initialize_warning() macro_fl_print_t_initialize(macro_f_file_t_initialize2(f_type_warning, f_type_descriptor_warning, f_file_flag_write_only), f_console_verbosity_normal, fl_print_warning_s, 0, f_color_set_t_initialize, f_color_set_t_initialize, 0)
+ #define macro_fl_print_t_initialize_warning2(suffix, set) macro_fl_print_t_initialize(macro_f_file_t_initialize2(f_type_warning, f_type_descriptor_warning, f_file_flag_write_only), f_console_verbosity_normal, fl_print_warning_s, suffix, f_color_set_t_initialize, f_color_set_t_initialize, set)
+#endif // _di_fl_print_t_
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
+
+#endif // _FL_print_common_h
* Provides some standard printing functions not available in a libc.
*
* Functions provided here are UTF-8 aware.
- *
- * @fixme the except_in and except_at only apply to 1-byte characters, so what happens if a single except byte is only a part of a single multibyte character?
*/
#ifndef _FL_print_h
#define _FL_print_h
-// libc includes
+// libc includes.
#include <stdio.h>
-// fll-0 includes
+// fll-0 includes.
#include <fll/level_0/type.h>
#include <fll/level_0/status.h>
#include <fll/level_0/memory.h>
#include <fll/level_0/utf.h>
#include <fll/level_0/color.h>
#include <fll/level_0/conversion.h>
+#include <fll/level_0/file.h>
#include <fll/level_0/print.h>
+// fll-1 print includes.
+#include <fll/level_1/print-common.h>
+
#ifdef __cplusplus
extern "C" {
#endif
f_utf
f_color
f_conversion
+f_file
f_print
build_indexer ar
build_language c
build_libraries -lc
-build_libraries-individual -lf_color -lf_conversion -lf_memory -lf_print -lf_string -lf_utf
-build_sources_library print.c private-print.c
+build_libraries-individual -lf_color -lf_conversion -lf_file -lf_memory -lf_print -lf_string -lf_utf
+build_sources_library print.c print-common.c private-print.c
build_sources_program
-build_sources_headers print.h
+build_sources_headers print.h print-common.h
build_sources_script
build_sources_setting
build_script yes
const f_string_t fll_error_file_type_string_pipe_s = fll_error_file_type_string_pipe;
#endif // _di_fll_error_file_type_
-#ifndef _di_fll_error_print_t_
- const f_string_t fll_error_print_debug_s = fll_error_print_debug;
- const f_string_t fll_error_print_error_s = fll_error_print_error;
- const f_string_t fll_error_print_warning_s = fll_error_print_warning;
-#endif // _di_fll_error_print_t_
-
#ifdef __cplusplus
} // extern "C"
#endif
extern const f_string_t fll_error_file_type_string_pipe_s;
#endif // _di_fll_error_file_type_
-/**
- * Structure for facilitating the error printing.
- *
- * to: The file to print to.
- * verbosity: The verbosity mode.
- * prefix: A prefix string to display before the error.
- * context: The color codes for the entire error message.
- * notable: The color codes for a part of the message to make more visible.
- */
-#ifndef _di_fll_error_print_t_
- #define fll_error_print_debug "DEBUG: "
- #define fll_error_print_error "ERROR: "
- #define fll_error_print_warning "WARNING: "
-
- #define fll_error_print_debug_length 7
- #define fll_error_print_error_length 7
- #define fll_error_print_warning_length 9
-
- extern const f_string_t fll_error_print_debug_s;
- extern const f_string_t fll_error_print_error_s;
- extern const f_string_t fll_error_print_warning_s;
-
- typedef struct {
- f_file_t to;
- uint8_t verbosity;
-
- const char *prefix;
-
- f_color_set_t context;
- f_color_set_t notable;
- } fll_error_print_t;
-
- #define fll_error_print_t_initialize { \
- macro_f_file_t_initialize2(f_type_error, f_type_descriptor_error, f_file_flag_write_only), \
- f_console_verbosity_normal, \
- fll_error_print_error_s, \
- f_color_set_t_initialize, \
- f_color_set_t_initialize, \
- }
-
- #define macro_fll_error_print_t_initialize(to, verbosity, prefix, context, notable) { to, verbosity, prefix, context, notable }
- #define macro_fll_error_print_t_initialize_debug() macro_fll_error_print_t_initialize(macro_f_file_t_initialize2(f_type_debug, f_type_descriptor_debug, f_file_flag_write_only), f_console_verbosity_normal, fll_error_print_debug_s, f_color_set_t_initialize, f_color_set_t_initialize)
- #define macro_fll_error_print_t_initialize_warning() macro_fll_error_print_t_initialize(macro_f_file_t_initialize2(f_type_warning, f_type_descriptor_warning, f_file_flag_write_only), f_console_verbosity_normal, fll_error_print_warning_s, f_color_set_t_initialize, f_color_set_t_initialize)
-#endif // _di_fll_error_print_t_
-
#ifdef __cplusplus
} // extern "C"
#endif
#endif
#ifndef _di_fll_error_print_
- f_status_t fll_error_print(const fll_error_print_t print, const f_status_t status, const f_string_t function, const bool fallback) {
+ f_status_t fll_error_print(const fl_print_t print, const f_status_t status, const f_string_t function, const bool fallback) {
return private_fll_error_print(print, status, function, fallback);
}
#endif // _di_fll_error_print_
#ifndef _di_fll_error_file_print_
- f_status_t fll_error_file_print(const fll_error_print_t print, const f_status_t status, const f_string_t function, const bool fallback, const f_string_t name, const f_string_t operation, const uint8_t type) {
+ f_status_t fll_error_file_print(const fl_print_t print, const f_status_t status, const f_string_t function, const bool fallback, const f_string_t name, const f_string_t operation, const uint8_t type) {
const char *type_name = fll_error_file_type_string_file;
#endif // _di_fll_error_file_print_
#ifndef _di_fll_error_parameter_integer_print_
- f_status_t fll_error_parameter_integer_print(const fll_error_print_t print, const f_status_t status, const f_string_t function, const bool fallback, const f_string_t parameter, const f_string_t argument) {
+ f_status_t fll_error_parameter_integer_print(const fl_print_t print, const f_status_t status, const f_string_t function, const bool fallback, const f_string_t parameter, const f_string_t argument) {
if (status == F_data_not) {
if (print.verbosity != f_console_verbosity_quiet) {
* F_true is returned if the status code is unknown.
*/
#ifndef _di_fll_error_print_
- extern f_status_t fll_error_print(const fll_error_print_t print, const f_status_t status, const f_string_t function, const bool fallback);
+ extern f_status_t fll_error_print(const fl_print_t print, const f_status_t status, const f_string_t function, const bool fallback);
#endif // _di_fll_error_print_
/**
* F_false is returned on successful print of known errors.
*/
#ifndef _di_fll_error_file_print_
- extern f_status_t fll_error_file_print(const fll_error_print_t print, const f_status_t status, const f_string_t function, const bool fallback, const f_string_t name, const f_string_t operation, const uint8_t type);
+ extern f_status_t fll_error_file_print(const fl_print_t print, const f_status_t status, const f_string_t function, const bool fallback, const f_string_t name, const f_string_t operation, const uint8_t type);
#endif // _di_fll_error_file_print_
/**
* F_false is returned on successful print of known errors.
*/
#ifndef _di_fll_error_parameter_integer_print_
- extern f_status_t fll_error_parameter_integer_print(const fll_error_print_t print, const f_status_t status, const f_string_t function, const bool fallback, const f_string_t parameter, const f_string_t argument);
+ extern f_status_t fll_error_parameter_integer_print(const fl_print_t print, const f_status_t status, const f_string_t function, const bool fallback, const f_string_t parameter, const f_string_t argument);
#endif // _di_fll_error_parameter_integer_print_
#ifdef __cplusplus
#endif
#if !defined(_di_fll_error_print_) || !defined(_di_fll_error_file_print_) || !defined(_di_fll_error_number_print_)
- f_status_t private_fll_error_print(const fll_error_print_t print, const f_status_t status, const f_string_t function, const bool fallback) {
+ f_status_t private_fll_error_print(const fl_print_t print, const f_status_t status, const f_string_t function, const bool fallback) {
if (status == F_access_denied) {
if (print.verbosity != f_console_verbosity_quiet) {
#endif // !defined(_di_fll_error_print_) || !defined(_di_fll_error_file_print_) || !defined(_di_fll_error_number_print_)
#if !defined(_di_fll_error_print_) || !defined(_di_fll_error_file_print_) || !defined(_di_fll_error_number_print_)
- void private_fll_error_print_function(const fll_error_print_t print, const f_string_t function) {
+ void private_fll_error_print_function(const fl_print_t print, const f_string_t function) {
if (function) {
fl_print_format(" when calling function%] ", print.to.stream, print.context);
* @see fll_error_file_print()
*/
#if !defined(_di_fll_error_print_) || !defined(_di_fll_error_file_print_) || !defined(_di_fll_error_number_print_)
- extern f_status_t private_fll_error_print(const fll_error_print_t print, const f_status_t status, const f_string_t function, const bool fallback) f_attribute_visibility_internal;
+ extern f_status_t private_fll_error_print(const fl_print_t print, const f_status_t status, const f_string_t function, const bool fallback) f_attribute_visibility_internal;
#endif // !defined(_di_fll_error_print_) || !defined(_di_fll_error_file_print_) || !defined(_di_fll_error_number_print_)
/**
* @see fll_error_file_print()
*/
#if !defined(_di_fll_error_print_) || !defined(_di_fll_error_file_print_) || !defined(_di_fll_error_number_print_)
- void private_fll_error_print_function(const fll_error_print_t print, const f_string_t function) f_attribute_visibility_internal;
+ void private_fll_error_print_function(const fl_print_t print, const f_string_t function) f_attribute_visibility_internal;
#endif // !defined(_di_fll_error_print_) || !defined(_di_fll_error_file_print_) || !defined(_di_fll_error_number_print_)
#ifdef __cplusplus
build_indexer ar
build_language c
build_libraries -lc
-build_libraries-individual -lfl_print -lf_color -lf_conversion -lf_memory -lf_print -lf_string -lf_utf
+build_libraries-individual -lfl_print -lf_color -lf_conversion -lf_file -lf_memory -lf_print -lf_string -lf_utf
build_sources_library print.c
build_sources_program
build_sources_headers print.h
bool process_pipe;
f_file_t output;
- fll_error_print_t error;
- fll_error_print_t warning;
+ fl_print_t error;
+ fl_print_t warning;
uint64_t first;
uint64_t last;
f_array_lengths_t_initialize, \
F_false, \
macro_f_file_t_initialize2(f_type_output, f_type_descriptor_output, f_file_flag_write_only), \
- fll_error_print_t_initialize, \
- macro_fll_error_print_t_initialize_warning(), \
+ fl_print_t_initialize, \
+ macro_fl_print_t_initialize_warning(), \
0, \
0, \
8, \
bool process_pipe;
f_file_t output;
- fll_error_print_t error;
- fll_error_print_t warning;
+ fl_print_t error;
+ fl_print_t warning;
f_color_context_t context;
} control_main_t;
f_array_lengths_t_initialize, \
F_false, \
macro_f_file_t_initialize2(f_type_output, f_type_descriptor_output, f_file_flag_write_only), \
- fll_error_print_t_initialize, \
- macro_fll_error_print_t_initialize_warning(), \
+ fl_print_t_initialize, \
+ macro_fl_print_t_initialize_warning(), \
f_color_context_t_initialize, \
}
#endif // _di_control_data_t_
bool as_init;
f_file_t output;
- fll_error_print_t error;
- fll_error_print_t warning;
+ fl_print_t error;
+ fl_print_t warning;
pid_t pid;
mode_t umask;
F_false, \
F_false, \
macro_f_file_t_initialize2(f_type_output, f_type_descriptor_output, f_file_flag_write_only), \
- fll_error_print_t_initialize, \
- macro_fll_error_print_t_initialize_warning(), \
+ fl_print_t_initialize, \
+ macro_fl_print_t_initialize_warning(), \
0, \
0, \
0, \
#endif // _di_controller_entry_items_delete_simple_
#ifndef _di_controller_error_file_print_
- void controller_error_file_print(const fll_error_print_t print, const f_status_t status, const f_string_t function, const bool fallback, const f_string_t name, const f_string_t operation, const uint8_t type, controller_thread_t *thread) {
+ void controller_error_file_print(const fl_print_t print, const f_status_t status, const f_string_t function, const bool fallback, const f_string_t name, const f_string_t operation, const uint8_t type, controller_thread_t *thread) {
if (print.verbosity == f_console_verbosity_quiet) return;
}
#endif // _di_controller_error_file_print_
#ifndef _di_controller_error_print_
- void controller_error_print(const fll_error_print_t print, const f_status_t status, const f_string_t function, const bool fallback, controller_thread_t *thread) {
+ void controller_error_print(const fl_print_t print, const f_status_t status, const f_string_t function, const bool fallback, controller_thread_t *thread) {
if (print.verbosity == f_console_verbosity_quiet) return;
if (status == F_interrupt) return;
#endif // _di_controller_lock_delete_simple_
#ifndef _di_controller_lock_error_critical_print_
- void controller_lock_error_critical_print(const fll_error_print_t print, const f_status_t status, const bool read, controller_thread_t *thread) {
+ void controller_lock_error_critical_print(const fl_print_t print, const f_status_t status, const bool read, controller_thread_t *thread) {
// A signal is not an error.
if (status == F_signal) {
* @see fll_error_file_print()
*/
#ifndef _di_controller_error_file_print_
- extern void controller_error_file_print(const fll_error_print_t print, const f_status_t status, const f_string_t function, const bool fallback, const f_string_t name, const f_string_t operation, const uint8_t type, controller_thread_t *thread) f_attribute_visibility_internal;
+ extern void controller_error_file_print(const fl_print_t print, const f_status_t status, const f_string_t function, const bool fallback, const f_string_t name, const f_string_t operation, const uint8_t type, controller_thread_t *thread) f_attribute_visibility_internal;
#endif // _di_controller_error_file_print_
/**
* @see fll_error_print()
*/
#ifndef _di_controller_error_print_
- extern void controller_error_print(const fll_error_print_t print, const f_status_t status, const f_string_t function, const bool fallback, controller_thread_t *thread) f_attribute_visibility_internal;
+ extern void controller_error_print(const fl_print_t print, const f_status_t status, const f_string_t function, const bool fallback, controller_thread_t *thread) f_attribute_visibility_internal;
#endif // _di_controller_error_print_
/**
* @see controller_entry_error_print_cache()
*/
#ifndef _di_controller_lock_error_critical_print_
- extern void controller_lock_error_critical_print(const fll_error_print_t print, const f_status_t status, const bool read, controller_thread_t *thread) f_attribute_visibility_internal;
+ extern void controller_lock_error_critical_print(const fl_print_t print, const f_status_t status, const bool read, controller_thread_t *thread) f_attribute_visibility_internal;
#endif // _di_controller_lock_error_critical_print_
/**
}
else {
if ((entry_action->code & controller_entry_rule_code_require) && global->main->error.verbosity != f_console_verbosity_quiet || !(entry_action->code & controller_entry_rule_code_require) && (global->main->warning.verbosity == f_console_verbosity_verbose || global->main->warning.verbosity == f_console_verbosity_debug)) {
- fll_error_print_t *output = 0;
+ fl_print_t *output = 0;
if (entry_action->code & controller_entry_rule_code_require) {
output = &global->main->error;
#endif // _di_controller_entry_actions_read_
#ifndef _di_controller_entry_error_print_
- void controller_entry_error_print(const bool is_entry, const fll_error_print_t print, const controller_cache_action_t cache, const f_status_t status, const f_string_t function, const bool fallback, controller_thread_t *thread) {
+ void controller_entry_error_print(const bool is_entry, const fl_print_t print, const controller_cache_action_t cache, const f_status_t status, const f_string_t function, const bool fallback, controller_thread_t *thread) {
if (print.verbosity == f_console_verbosity_quiet) return;
if (status == F_interrupt) return;
#endif // _di_controller_entry_error_print_
#ifndef _di_controller_entry_error_print_cache_
- void controller_entry_error_print_cache(const bool is_entry, const fll_error_print_t output, const controller_cache_action_t cache) {
+ void controller_entry_error_print_cache(const bool is_entry, const fl_print_t output, const controller_cache_action_t cache) {
fl_print_format("%c%[%SWhile processing ", output.to.stream, f_string_eol_s[0], output.context, output.prefix);
* @see controller_entry_error_print_cache()
*/
#ifndef _di_controller_entry_error_print_
- extern void controller_entry_error_print(const bool is_entry, const fll_error_print_t print, const controller_cache_action_t cache, const f_status_t status, const f_string_t function, const bool fallback, controller_thread_t *thread) f_attribute_visibility_internal;
+ extern void controller_entry_error_print(const bool is_entry, const fl_print_t print, const controller_cache_action_t cache, const f_status_t status, const f_string_t function, const bool fallback, controller_thread_t *thread) f_attribute_visibility_internal;
#endif // _di_controller_entry_error_print_
/**
* @see controller_entry_read()
*/
#ifndef _di_controller_entry_error_print_cache_
- extern void controller_entry_error_print_cache(const bool is_entry, const fll_error_print_t output, const controller_cache_action_t cache) f_attribute_visibility_internal;
+ extern void controller_entry_error_print_cache(const bool is_entry, const fl_print_t output, const controller_cache_action_t cache) f_attribute_visibility_internal;
#endif // _di_controller_entry_error_print_cache_
/**
#endif // _di_controller_rule_copy_
#ifndef _di_controller_rule_error_print_
- void controller_rule_error_print(const fll_error_print_t print, const controller_cache_action_t cache, const f_status_t status, const f_string_t function, const bool fallback, const bool item, controller_thread_t *thread) {
+ void controller_rule_error_print(const fl_print_t print, const controller_cache_action_t cache, const f_status_t status, const f_string_t function, const bool fallback, const bool item, controller_thread_t *thread) {
if (print.verbosity == f_console_verbosity_quiet) return;
if (status == F_interrupt) return;
#endif // _di_controller_rule_error_print_
#ifndef _di_controller_rule_error_print_cache_
- void controller_rule_error_print_cache(const fll_error_print_t print, const controller_cache_action_t cache, const bool item) {
+ void controller_rule_error_print_cache(const fl_print_t print, const controller_cache_action_t cache, const bool item) {
if (print.verbosity == f_console_verbosity_quiet) return;
#endif // _di_controller_rule_error_print_cache_
#ifndef _di_controller_rule_item_error_print_
- void controller_rule_item_error_print(const fll_error_print_t print, const controller_cache_action_t cache, const bool item, const f_status_t status, controller_thread_t *thread) {
+ void controller_rule_item_error_print(const fl_print_t print, const controller_cache_action_t cache, const bool item, const f_status_t status, controller_thread_t *thread) {
if (print.verbosity == f_console_verbosity_quiet) return;
if (status == F_interrupt) return;
void controller_rule_item_error_print_execute(const bool script_is, const f_string_t name, const f_status_t status, controller_process_t * const process) {
if (((controller_main_t *) process->main_data)->error.verbosity != f_console_verbosity_quiet) {
- fll_error_print_t * const print = &((controller_main_t *) process->main_data)->error;
+ fl_print_t * const print = &((controller_main_t *) process->main_data)->error;
controller_print_lock(print->to, (controller_thread_t *) process->main_thread);
#endif // _di_controller_rule_item_error_print_execute_
#ifndef _di_controller_rule_item_error_print_need_want_wish_
- void controller_rule_item_error_print_need_want_wish(const fll_error_print_t print, const f_string_t need_want_wish, const f_string_t value, const f_string_t why) {
+ void controller_rule_item_error_print_need_want_wish(const fl_print_t print, const f_string_t need_want_wish, const f_string_t value, const f_string_t why) {
if (print.verbosity == f_console_verbosity_quiet) return;
#endif // _di_controller_rule_item_error_print_need_want_wish_
#ifndef _di_controller_rule_item_error_print_rule_not_loaded_
- void controller_rule_item_error_print_rule_not_loaded(const fll_error_print_t print, const f_string_t alias) {
+ void controller_rule_item_error_print_rule_not_loaded(const fl_print_t print, const f_string_t alias) {
if (print.verbosity == f_console_verbosity_quiet) return;
#endif // _di_controller_rule_item_error_print_rule_not_loaded_
#ifndef _di_controller_rule_action_error_missing_pid_
- void controller_rule_action_error_missing_pid(const fll_error_print_t print, const f_string_t alias) {
+ void controller_rule_action_error_missing_pid(const fl_print_t print, const f_string_t alias) {
if (print.verbosity == f_console_verbosity_quiet) return;
#endif // _di_controller_rule_setting_read_print_value_
#ifndef _di_controller_rule_setting_read_problem_print_
- void controller_rule_setting_read_problem_print(const fll_error_print_t print, const f_string_t message, const f_array_length_t index, const f_array_length_t line_item, controller_thread_t *thread, controller_cache_t *cache) {
+ void controller_rule_setting_read_problem_print(const fl_print_t print, const f_string_t message, const f_array_length_t index, const f_array_length_t line_item, controller_thread_t *thread, controller_cache_t *cache) {
if (print.verbosity == f_console_verbosity_quiet) return;
#endif // _di_controller_rule_setting_read_problem_print_
#ifndef _di_controller_rule_setting_read_problem_print_with_range_
- void controller_rule_setting_read_problem_print_with_range(const fll_error_print_t print, const f_string_t before, const f_string_range_t range, const f_string_t after, const f_array_length_t index, const f_array_length_t line_item, controller_thread_t *thread, controller_cache_t *cache) {
+ void controller_rule_setting_read_problem_print_with_range(const fl_print_t print, const f_string_t before, const f_string_range_t range, const f_string_t after, const f_array_length_t index, const f_array_length_t line_item, controller_thread_t *thread, controller_cache_t *cache) {
if (print.verbosity == f_console_verbosity_quiet) return;
* @see controller_entry_error_print_cache()
*/
#ifndef _di_controller_rule_error_print_
- extern void controller_rule_error_print(const fll_error_print_t print, const controller_cache_action_t cache, const f_status_t status, const f_string_t function, const bool fallback, const bool item, controller_thread_t *thread) f_attribute_visibility_internal;
+ extern void controller_rule_error_print(const fl_print_t print, const controller_cache_action_t cache, const f_status_t status, const f_string_t function, const bool fallback, const bool item, controller_thread_t *thread) f_attribute_visibility_internal;
#endif // _di_controller_rule_error_print_
/**
* @see controller_rule_setting_read()
*/
#ifndef _di_controller_rule_error_print_cache_
- extern void controller_rule_error_print_cache(const fll_error_print_t print, const controller_cache_action_t cache, const bool item) f_attribute_visibility_internal;
+ extern void controller_rule_error_print_cache(const fl_print_t print, const controller_cache_action_t cache, const bool item) f_attribute_visibility_internal;
#endif // _di_controller_rule_error_print_cache_
/**
* @see controller_rule_error_print_cache()
*/
#ifndef _di_controller_rule_item_error_print_
- extern void controller_rule_item_error_print(const fll_error_print_t print, const controller_cache_action_t cache, const bool item, const f_status_t status, controller_thread_t *thread) f_attribute_visibility_internal;
+ extern void controller_rule_item_error_print(const fl_print_t print, const controller_cache_action_t cache, const bool item, const f_status_t status, controller_thread_t *thread) f_attribute_visibility_internal;
#endif // _di_controller_rule_item_error_print_
/**
* A short explanation on why this is an error or warning.
*/
#ifndef _di_controller_rule_item_error_print_need_want_wish_
- extern void controller_rule_item_error_print_need_want_wish(const fll_error_print_t print, const f_string_t need_want_wish, const f_string_t value, const f_string_t why) f_attribute_visibility_internal;
+ extern void controller_rule_item_error_print_need_want_wish(const fl_print_t print, const f_string_t need_want_wish, const f_string_t value, const f_string_t why) f_attribute_visibility_internal;
#endif // _di_controller_rule_item_error_print_need_want_wish_
/**
* The rule alias of the rule that is not loaded.
*/
#ifndef _di_controller_rule_item_error_print_rule_not_loaded_
- extern void controller_rule_item_error_print_rule_not_loaded(const fll_error_print_t print, const f_string_t alias) f_attribute_visibility_internal;
+ extern void controller_rule_item_error_print_rule_not_loaded(const fl_print_t print, const f_string_t alias) f_attribute_visibility_internal;
#endif // _di_controller_rule_item_error_print_rule_not_loaded_
/**
* The rule alias of the rule that is missing the pid file designation.
*/
#ifndef _di_controller_rule_action_error_missing_pid_
- extern void controller_rule_action_error_missing_pid(const fll_error_print_t print, const f_string_t alias) f_attribute_visibility_internal;
+ extern void controller_rule_action_error_missing_pid(const fl_print_t print, const f_string_t alias) f_attribute_visibility_internal;
#endif // _di_controller_rule_action_error_missing_pid_
/**
* @see controller_rule_setting_read()
*/
#ifndef _di_controller_rule_setting_read_problem_print_
- extern void controller_rule_setting_read_problem_print(const fll_error_print_t print, const f_string_t message, const f_array_length_t index, const f_array_length_t line_item, controller_thread_t *thread, controller_cache_t *cache) f_attribute_visibility_internal;
+ extern void controller_rule_setting_read_problem_print(const fl_print_t print, const f_string_t message, const f_array_length_t index, const f_array_length_t line_item, controller_thread_t *thread, controller_cache_t *cache) f_attribute_visibility_internal;
#endif // _di_controller_rule_setting_read_problem_print_
/**
* @see controller_rule_setting_read()
*/
#ifndef _di_controller_rule_setting_read_problem_print_with_range_
- extern void controller_rule_setting_read_problem_print_with_range(const fll_error_print_t print, const f_string_t before, const f_string_range_t range, const f_string_t after, const f_array_length_t index, const f_array_length_t line_item, controller_thread_t *thread, controller_cache_t *cache) f_attribute_visibility_internal;
+ extern void controller_rule_setting_read_problem_print_with_range(const fl_print_t print, const f_string_t before, const f_string_range_t range, const f_string_t after, const f_array_length_t index, const f_array_length_t line_item, controller_thread_t *thread, controller_cache_t *cache) f_attribute_visibility_internal;
#endif // _di_controller_rule_setting_read_problem_print_with_range_
/**
bool process_pipe;
f_file_t output;
- fll_error_print_t error;
- fll_error_print_t warning;
+ fl_print_t error;
+ fl_print_t warning;
uint8_t operation;
f_array_lengths_t_initialize, \
F_false, \
macro_f_file_t_initialize2(f_type_output, f_type_descriptor_output, f_file_flag_write_only), \
- fll_error_print_t_initialize, \
- macro_fll_error_print_t_initialize_warning(), \
+ fl_print_t_initialize, \
+ macro_fl_print_t_initialize_warning(), \
0, \
0, \
0, \
fake_make_parameter_t parameter;
fake_make_path_t path; // @todo review this, check if path.current is used anymore.
- fll_error_print_t error;
+ fl_print_t error;
f_fss_nameds_t fakefile;
f_string_maps_t_initialize, \
fake_make_parameter_t_initialize, \
fake_make_path_t_initialize, \
- fll_error_print_t_initialize, \
+ fl_print_t_initialize, \
f_fss_nameds_t_initialize, \
f_string_dynamic_t_initialize, \
f_string_dynamic_t_initialize, \
#endif // _di_fake_make_assure_inside_project_
#ifndef _di_fake_make_get_id_group_
- f_status_t fake_make_get_id_group(const fake_main_t main, const fll_error_print_t error, const f_string_static_t buffer, gid_t *id) {
+ f_status_t fake_make_get_id_group(const fake_main_t main, const fl_print_t print, const f_string_static_t buffer, gid_t *id) {
const f_string_range_t range = macro_f_string_range_t_initialize(buffer.used);
status = f_account_id_group_by_name(buffer.string, id);
if (F_status_is_error(status)) {
- fll_error_print(error, F_status_set_fine(status), "f_account_id_group_by_name", F_true);
+ fll_error_print(print, F_status_set_fine(status), "f_account_id_group_by_name", F_true);
return F_status_set_error(status);
}
return F_none;
}
- fll_error_print(error, F_status_set_fine(status), "fl_conversion_string_to_number_unsigned", F_true);
+ fll_error_print(print, F_status_set_fine(status), "fl_conversion_string_to_number_unsigned", F_true);
return F_status_set_error(status);
}
else if (number > f_type_size_32_unsigned) {
#endif // _di_fake_make_get_id_group_
#ifndef _di_fake_make_get_id_mode_
- f_status_t fake_make_get_id_mode(const fake_main_t main, const fll_error_print_t error, const f_string_static_t buffer, f_file_mode_t *mode, uint8_t *replace) {
+ f_status_t fake_make_get_id_mode(const fake_main_t main, const fl_print_t print, const f_string_static_t buffer, f_file_mode_t *mode, uint8_t *replace) {
if (!buffer.used) {
- fll_error_print(error, F_parameter, "fake_make_get_id_mode", F_true);
+ fll_error_print(print, F_parameter, "fake_make_get_id_mode", F_true);
return F_status_set_error(F_parameter);
}
funlockfile(main.error.to.stream);
}
else {
- fll_error_print(error, status, "f_file_mode_from_string", F_true);
+ fll_error_print(print, status, "f_file_mode_from_string", F_true);
}
}
#endif // _di_fake_make_get_id_mode_
#ifndef _di_fake_make_get_id_owner_
- f_status_t fake_make_get_id_owner(const fake_main_t main, const fll_error_print_t error, const f_string_static_t buffer, uid_t *id) {
+ f_status_t fake_make_get_id_owner(const fake_main_t main, const fl_print_t print, const f_string_static_t buffer, uid_t *id) {
const f_string_range_t range = macro_f_string_range_t_initialize(buffer.used);
status = f_account_id_user_by_name(buffer.string, id);
if (F_status_is_error(status)) {
- fll_error_print(error, status, "f_account_id_user_by_name", F_true);
+ fll_error_print(print, status, "f_account_id_user_by_name", F_true);
return F_status_set_error(status);
}
return F_none;
}
- fll_error_print(error, status, "fl_conversion_string_to_number_unsigned", F_true);
+ fll_error_print(print, status, "fl_conversion_string_to_number_unsigned", F_true);
return F_status_set_error(status);
}
else if (number > f_type_size_32_unsigned) {
if (F_status_is_error(status)) {
macro_fake_make_data_t_delete_simple(data_make);
- // signal is set with error code only to prevent further execution above, return without the error bit set.
+ // signal is set with print code only to prevent further execution above, return without the print bit set.
if (F_status_set_fine(status) == F_signal) {
return F_signal;
}
}
if (data_make.setting_make.fail == fake_make_operation_fail_type_exit) {
- data_make.error.prefix = fll_error_print_error_s;
+ data_make.error.prefix = fl_print_error_s;
+ data_make.error.suffix = 0;
data_make.error.context = main->context.set.error;
data_make.error.notable = main->context.set.notable;
data_make.error.to.stream = f_type_error;
data_make.error.to.id = f_type_descriptor_error;
+ data_make.error.set = &main->context.set;
}
else if (data_make.setting_make.fail == fake_make_operation_fail_type_warn) {
- data_make.error.prefix = fll_error_print_warning_s;
+ data_make.error.prefix = fl_print_warning_s;
+ data_make.error.suffix = 0;
data_make.error.context = main->context.set.warning;
data_make.error.notable = main->context.set.notable;
data_make.error.to.stream = f_type_warning;
data_make.error.to.id = f_type_descriptor_warning;
+ data_make.error.set = &main->context.set;
}
else {
data_make.error.to.stream = 0;
+ data_make.error.prefix = 0;
+ data_make.error.suffix = 0;
data_make.error.to.id = -1;
+ data_make.error.set = &main->context.set;
}
{
// break acts identical to fail when at the top of the stack.
if (F_status_set_fine(*status) == F_signal_abort && !section_stack->used) {
data_make->setting_make.fail = fake_make_operation_fail_type_exit;
- data_make->error.prefix = fll_error_print_error;
+ data_make->error.prefix = fl_print_error_s;
+ data_make->error.suffix = 0;
data_make->error.context = main->context.set.error;
data_make->error.notable = main->context.set.notable;
data_make->error.to.stream = f_type_error;
data_make->error.to.id = f_type_descriptor_error;
+ data_make->error.set = &main->context.set;
}
fake_print_message_section_operation_failed(*main, data_make->error, data_make->buffer, section->name, section->objects.array[i]);
// forcing exit forces fail mode.
data_make->setting_make.fail = fake_make_operation_fail_type_exit;
- data_make->error.prefix = fll_error_print_error;
+ data_make->error.prefix = fl_print_error_s;
+ data_make->error.suffix = 0;
data_make->error.context = main->context.set.error;
data_make->error.notable = main->context.set.notable;
data_make->error.to.stream = f_type_error;
data_make->error.to.id = f_type_descriptor_error;
+ data_make->error.set = &main->context.set;
}
else {
return 0;
if (fl_string_dynamic_compare_string(fake_make_operation_argument_exit, arguments.array[0], fake_make_operation_argument_exit_length) == F_equal_to) {
data_make->setting_make.fail = fake_make_operation_fail_type_exit;
- data_make->error.prefix = fll_error_print_error;
+ data_make->error.prefix = fl_print_error_s;
+ data_make->error.suffix = 0;
data_make->error.context = main->context.set.error;
data_make->error.notable = main->context.set.notable;
data_make->error.to.stream = f_type_error;
data_make->error.to.id = f_type_descriptor_error;
+ data_make->error.set = &main->context.set;
}
else if (fl_string_dynamic_compare_string(fake_make_operation_argument_warn, arguments.array[0], fake_make_operation_argument_warn_length) == F_equal_to) {
data_make->setting_make.fail = fake_make_operation_fail_type_warn;
- data_make->error.prefix = fll_error_print_warning;
+ data_make->error.prefix = fl_print_warning_s;
+ data_make->error.suffix = 0;
data_make->error.context = main->context.set.warning;
data_make->error.notable = main->context.set.notable;
data_make->error.to.stream = f_type_warning;
data_make->error.to.id = f_type_descriptor_warning;
+ data_make->error.set = &main->context.set;
}
else if (fl_string_dynamic_compare_string(fake_make_operation_argument_ignore, arguments.array[0], fake_make_operation_argument_ignore_length) == F_equal_to) {
data_make->setting_make.fail = fake_make_operation_fail_type_ignore;
*
* @param main
* The main data.
- * @param error
+ * @param print
* The error/warning print data.
* @param buffer
* The string containing the name or number.
* Status codes (with error bit) are returned on any problem.
*/
#ifndef _di_fake_make_get_id_group_
- f_status_t fake_make_get_id_group(const fake_main_t main, const fll_error_print_t error, const f_string_static_t buffer, gid_t *id) f_attribute_visibility_internal;
+ f_status_t fake_make_get_id_group(const fake_main_t main, const fl_print_t print, const f_string_static_t buffer, gid_t *id) f_attribute_visibility_internal;
#endif // _di_fake_make_get_id_group_
/**
*
* @param main
* The main data.
- * @param error
+ * @param print
* The error/warning print data.
* @param buffer
* The string containing the name or number.
* Status codes (with error bit) are returned on any problem.
*/
#ifndef _di_fake_make_get_id_mode_
- f_status_t fake_make_get_id_mode(const fake_main_t main, const fll_error_print_t error, const f_string_static_t buffer, f_file_mode_t *mode, uint8_t *replace) f_attribute_visibility_internal;
+ f_status_t fake_make_get_id_mode(const fake_main_t main, const fl_print_t print, const f_string_static_t buffer, f_file_mode_t *mode, uint8_t *replace) f_attribute_visibility_internal;
#endif // _di_fake_make_get_id_mode_
/**
*
* @param main
* The main data.
- * @param error
+ * @param print
* The error/warning print data.
* @param buffer
* The string containing the name or number.
* Status codes (with error bit) are returned on any problem.
*/
#ifndef _di_fake_make_get_id_owner_
- f_status_t fake_make_get_id_owner(const fake_main_t main, const fll_error_print_t error, const f_string_static_t buffer, uid_t *id) f_attribute_visibility_internal;
+ f_status_t fake_make_get_id_owner(const fake_main_t main, const fl_print_t print, const f_string_static_t buffer, uid_t *id) f_attribute_visibility_internal;
#endif // _di_fake_make_get_id_owner_
/**
#endif // _di_fake_print_error_parameter_too_many_
#ifndef _di_fake_print_message_section_operation_failed_
- void fake_print_message_section_operation_failed(const fake_main_t main, const fll_error_print_t error, const f_string_static_t buffer, const f_string_range_t section_name, const f_string_range_t operation_name) {
+ void fake_print_message_section_operation_failed(const fake_main_t main, 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 (main.error.verbosity == f_console_verbosity_quiet || !error.to.stream) return;
+ if (main.error.verbosity == f_console_verbosity_quiet || !print.to.stream) return;
f_array_length_t line = 1;
#endif // _di_fake_print_message_section_operation_failed_
#ifndef _di_fake_print_message_section_operation_path_outside_
- void fake_print_message_section_operation_path_outside(const fake_main_t main, const fll_error_print_t error, const f_status_t status, const f_string_t function, const f_string_t path) {
+ void fake_print_message_section_operation_path_outside(const fake_main_t main, const fl_print_t print, const f_status_t status, const f_string_t function, const f_string_t path) {
- if (main.error.verbosity == f_console_verbosity_quiet || !error.to.stream) return;
+ if (main.error.verbosity == f_console_verbosity_quiet || !print.to.stream) return;
flockfile(main.error.to.stream);
#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(const fake_main_t main, fll_error_print_t error, const f_status_t status, const f_string_t function, const f_string_t path) {
+ void fake_print_message_section_operation_path_stack_max(const fake_main_t main, fl_print_t print, const f_status_t status, const f_string_t function, const f_string_t path) {
- if (main.error.verbosity == f_console_verbosity_quiet || !error.to.stream) return;
+ if (main.error.verbosity == f_console_verbosity_quiet || !print.to.stream) return;
if (status == F_array_too_large) {
flockfile(main.error.to.stream);
funlockfile(main.error.to.stream);
}
else {
- fll_error_file_print(error, status, function, F_true, path, "change path to", fll_error_file_type_directory);
+ fll_error_file_print(print, status, function, F_true, path, "change path to", fll_error_file_type_directory);
}
}
#endif // _di_fake_print_message_section_operation_path_stack_max_
#ifndef _di_fake_print_message_section_operation_stack_max_
- void fake_print_message_section_operation_stack_max(const fake_main_t main, fll_error_print_t error, 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) {
+ void fake_print_message_section_operation_stack_max(const fake_main_t main, 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 (main.error.verbosity == f_console_verbosity_quiet || !error.to.stream) return;
+ if (main.error.verbosity == f_console_verbosity_quiet || !print.to.stream) return;
f_array_length_t line = 1;
#endif // _di_fake_print_message_section_operation_stack_max_
#ifndef _di_fake_print_message_section_operation_unknown_
- void fake_print_message_section_operation_unknown(const fake_main_t main, const fll_error_print_t error, const f_string_static_t buffer, const f_string_range_t section_name, const f_string_range_t operation_name) {
+ void fake_print_message_section_operation_unknown(const fake_main_t main, 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 (main.error.verbosity == f_console_verbosity_quiet || !error.to.stream) return;
+ if (main.error.verbosity == f_console_verbosity_quiet || !print.to.stream) return;
f_array_length_t line = 1;
*
* @param main
* The main data.
- * @param error
+ * @param print
* Designates how the section error/warning should be printed.
* @param buffer
* The buffer containing the fakefile data.
* The range within the buffer representing the operation name within the section.
*/
#ifndef _di_fake_print_message_section_operation_failed_
- extern void fake_print_message_section_operation_failed(const fake_main_t main, const fll_error_print_t error, const f_string_static_t buffer, const f_string_range_t section_name, const f_string_range_t operation_name) f_attribute_visibility_internal;
+ extern void fake_print_message_section_operation_failed(const fake_main_t main, const fl_print_t print, const f_string_static_t buffer, const f_string_range_t section_name, const f_string_range_t operation_name) f_attribute_visibility_internal;
#endif // _di_fake_print_message_section_operation_failed_
/**
*
* @param main
* The main data.
- * @param error
+ * @param print
* Designates how the section error/warning should be printed.
* @param status
* The status code representing an error.
* The path that is outside of the project path.
*/
#ifndef _di_fake_print_message_section_operation_path_outside_
- extern void fake_print_message_section_operation_path_outside(const fake_main_t main, const fll_error_print_t error, const f_status_t status, const f_string_t function, const f_string_t path) f_attribute_visibility_internal;
+ extern void fake_print_message_section_operation_path_outside(const fake_main_t main, const fl_print_t print, const f_status_t status, const f_string_t function, const f_string_t path) f_attribute_visibility_internal;
#endif // _fake_print_message_section_operation_path_outside_
/**
* The path to the directory.
*/
#ifndef _di_fake_print_message_section_operation_path_stack_max_
- extern void fake_print_message_section_operation_path_stack_max(const fake_main_t main, fll_error_print_t error, const f_status_t status, const f_string_t function, const f_string_t path) f_attribute_visibility_internal;
+ extern void fake_print_message_section_operation_path_stack_max(const fake_main_t main, fl_print_t error, const f_status_t status, const f_string_t function, const f_string_t path) f_attribute_visibility_internal;
#endif // _di_fake_print_message_section_operation_path_stack_max_
/**
*
* @param main
* The main data.
- * @param error
+ * @param print
* Designates how the section error/warning should be printed.
* @param buffer
* The buffer containing the fakefile data.
* The max stack depth.
*/
#ifndef _di_fake_print_message_section_operation_stack_max_
- extern void fake_print_message_section_operation_stack_max(const fake_main_t main, const fll_error_print_t error, const f_string_static_t buffer, const f_string_range_t section_name, const f_string_range_t operation_name, const f_array_length_t stack_max) f_attribute_visibility_internal;
+ extern void fake_print_message_section_operation_stack_max(const fake_main_t main, const fl_print_t print, const f_string_static_t buffer, const f_string_range_t section_name, const f_string_range_t operation_name, const f_array_length_t stack_max) f_attribute_visibility_internal;
#endif // _di_fake_print_message_section_operation_stack_max_
/**
*
* @param main
* The main data.
- * @param error
+ * @param print
* Designates how the section error/warning should be printed.
* @param buffer
* The buffer containing the fakefile data.
* The range within the buffer representing the operation name within the section.
*/
#ifndef _di_fake_print_message_section_operation_unknown_
- extern void fake_print_message_section_operation_unknown(const fake_main_t main, const fll_error_print_t error, const f_string_static_t buffer, const f_string_range_t section_name, const f_string_range_t operation_name) f_attribute_visibility_internal;
+ extern void fake_print_message_section_operation_unknown(const fake_main_t main, const fl_print_t print, const f_string_static_t buffer, const f_string_range_t section_name, const f_string_range_t operation_name) f_attribute_visibility_internal;
#endif // _di_fake_print_message_section_operation_unknown_
/**
bool process_pipe;
f_file_t output;
- fll_error_print_t error;
- fll_error_print_t warning;
+ fl_print_t error;
+ fl_print_t warning;
f_string_dynamics_t chains;
f_string_dynamics_t devices;
f_array_lengths_t_initialize, \
F_false, \
macro_f_file_t_initialize2(f_type_output, f_type_descriptor_output, f_file_flag_write_only), \
- fll_error_print_t_initialize, \
- macro_fll_error_print_t_initialize_warning(), \
+ fl_print_t_initialize, \
+ macro_fl_print_t_initialize_warning(), \
f_string_dynamics_t_initialize, \
f_string_dynamics_t_initialize, \
f_color_context_t_initialize, \
extern "C" {
#endif
-void firewall_print_debug_tool(const fll_error_print_t output, const f_string_t tool, const f_string_dynamics_t arguments) {
+void firewall_print_debug_tool(const fl_print_t output, const f_string_t tool, const f_string_dynamics_t arguments) {
if (output.verbosity != f_console_verbosity_debug) return;
funlockfile(output.to.stream);
}
-void firewall_print_error_on_allocation_failure(const fll_error_print_t output) {
+void firewall_print_error_on_allocation_failure(const fl_print_t output) {
if (output.verbosity == f_console_verbosity_quiet) return;
fll_print_format("%c%[%sUnable to allocate memory.%]%c", output.to.stream, f_string_eol_s[0], output.context, output.prefix, output.context, f_string_eol_s[0]);
}
-void firewall_print_error_on_invalid_parameter(const fll_error_print_t output, const f_string_t function) {
+void firewall_print_error_on_invalid_parameter(const fl_print_t output, const f_string_t function) {
if (output.verbosity == f_console_verbosity_quiet) return;
fll_print_format("%c%[%sInvalid parameter when calling %S().%]%c", output.to.stream, f_string_eol_s[0], output.context, output.prefix, function, output.context, f_string_eol_s[0]);
}
-void firewall_print_error_on_invalid_parameter_for_file(const fll_error_print_t output, const f_string_t function, const f_string_t filename) {
+void firewall_print_error_on_invalid_parameter_for_file(const fl_print_t output, const f_string_t function, const f_string_t filename) {
if (output.verbosity == f_console_verbosity_quiet) return;
fll_print_format("%c%[%sInvalid parameter when calling %S() for the file '%S'.%]%c", output.to.stream, f_string_eol_s[0], output.context, output.prefix, function, filename, output.context, f_string_eol_s[0]);
}
-void firewall_print_error_on_operation(const fll_error_print_t output, const f_string_t tool, const f_string_dynamics_t arguments) {
+void firewall_print_error_on_operation(const fl_print_t output, const f_string_t tool, const f_string_dynamics_t arguments) {
if (output.verbosity == f_console_verbosity_quiet) return;
funlockfile(output.to.stream);
}
-void firewall_print_error_on_unhandled(const fll_error_print_t output, const f_string_t function, const f_status_t status) {
+void firewall_print_error_on_unhandled(const fl_print_t output, const f_string_t function, const f_status_t status) {
if (output.verbosity == f_console_verbosity_quiet) return;
fll_print_format("%c%[%sAn unhandled error (%ui) has occurred while calling %S().%]%c", output.to.stream, f_string_eol_s[0], output.context, output.prefix, status, function, output.context, f_string_eol_s[0]);
}
-void firewall_print_error_on_unhandled_for_file(const fll_error_print_t output, const f_string_t function, const f_status_t status, const f_string_t filename) {
+void firewall_print_error_on_unhandled_for_file(const fl_print_t output, const f_string_t function, const f_status_t status, const f_string_t filename) {
if (output.verbosity == f_console_verbosity_quiet) return;
* @param arguments
* The arguments passed to the tool.
*/
-extern void firewall_print_debug_tool(const fll_error_print_t output, const f_string_t tool, const f_string_dynamics_t arguments) f_attribute_visibility_internal;
+extern void firewall_print_debug_tool(const fl_print_t output, const f_string_t tool, const f_string_dynamics_t arguments) f_attribute_visibility_internal;
/**
* Print an memory allocation error.
* @param output
* The output to print to.
*/
-extern void firewall_print_error_on_allocation_failure(const fll_error_print_t output) f_attribute_visibility_internal;
+extern void firewall_print_error_on_allocation_failure(const fl_print_t output) f_attribute_visibility_internal;
/**
* Print an invalid parameter error for the given function.
* @param function
* The function that failed.
*/
-extern void firewall_print_error_on_invalid_parameter(const fll_error_print_t output, const f_string_t function) f_attribute_visibility_internal;
+extern void firewall_print_error_on_invalid_parameter(const fl_print_t output, const f_string_t function) f_attribute_visibility_internal;
/**
* Print an invalid parameter error for the given function.
* @param filename
* The name of the file.
*/
-extern void firewall_print_error_on_invalid_parameter_for_file(const fll_error_print_t output, const f_string_t function, const f_string_t filename) f_attribute_visibility_internal;
+extern void firewall_print_error_on_invalid_parameter_for_file(const fl_print_t output, const f_string_t function, const f_string_t filename) f_attribute_visibility_internal;
/**
* Print an error about the given operation failed.
* @param arguments
* The arguments passed to the tool.
*/
-extern void firewall_print_error_on_operation(const fll_error_print_t output, const f_string_t tool, const f_string_dynamics_t arguments) f_attribute_visibility_internal;
+extern void firewall_print_error_on_operation(const fl_print_t output, const f_string_t tool, const f_string_dynamics_t arguments) f_attribute_visibility_internal;
/**
* Print an unhandled error for the given function.
* @param status
* The failure status code.
*/
-extern void firewall_print_error_on_unhandled(const fll_error_print_t output, const f_string_t function, const f_status_t status) f_attribute_visibility_internal;
+extern void firewall_print_error_on_unhandled(const fl_print_t output, const f_string_t function, const f_status_t status) f_attribute_visibility_internal;
/**
* Print an unhandled error for the given function for some given file.
* @param filename
* The name of the file.
*/
-extern void firewall_print_error_on_unhandled_for_file(const fll_error_print_t output, const f_string_t function, const f_status_t status, const f_string_t filename) f_attribute_visibility_internal;
+extern void firewall_print_error_on_unhandled_for_file(const fl_print_t output, const f_string_t function, const f_status_t status, const f_string_t filename) f_attribute_visibility_internal;
#ifdef __cplusplus
} // extern "C"
bool process_pipe;
f_file_t output;
- fll_error_print_t error;
- fll_error_print_t warning;
+ fl_print_t error;
+ fl_print_t warning;
f_color_context_t context;
} fss_basic_list_read_main_t;
f_array_lengths_t_initialize, \
F_false, \
macro_f_file_t_initialize2(f_type_output, f_type_descriptor_output, f_file_flag_write_only), \
- fll_error_print_t_initialize, \
- macro_fll_error_print_t_initialize_warning(), \
+ fl_print_t_initialize, \
+ macro_fl_print_t_initialize_warning(), \
f_color_context_t_initialize, \
}
#endif // _di_fss_basic_list_read_main_t_
bool process_pipe;
f_file_t output;
- fll_error_print_t error;
- fll_error_print_t warning;
+ fl_print_t error;
+ fl_print_t warning;
f_string_static_t prepend;
f_color_context_t context;
f_array_lengths_t_initialize, \
F_false, \
macro_f_file_t_initialize2(f_type_output, f_type_descriptor_output, f_file_flag_write_only), \
- fll_error_print_t_initialize, \
- macro_fll_error_print_t_initialize_warning(), \
+ fl_print_t_initialize, \
+ macro_fl_print_t_initialize_warning(), \
f_string_static_t_initialize, \
f_color_context_t_initialize, \
}
bool process_pipe;
f_file_t output;
- fll_error_print_t error;
- fll_error_print_t warning;
+ fl_print_t error;
+ fl_print_t warning;
f_color_context_t context;
} fss_basic_read_main_t;
f_array_lengths_t_initialize, \
F_false, \
macro_f_file_t_initialize2(f_type_output, f_type_descriptor_output, f_file_flag_write_only), \
- fll_error_print_t_initialize, \
- macro_fll_error_print_t_initialize_warning(), \
+ fl_print_t_initialize, \
+ macro_fl_print_t_initialize_warning(), \
f_color_context_t_initialize, \
}
#endif // _di_fss_basic_read_main_t_
bool process_pipe;
f_file_t output;
- fll_error_print_t error;
- fll_error_print_t warning;
+ fl_print_t error;
+ fl_print_t warning;
f_color_context_t context;
} fss_basic_write_main_t;
f_array_lengths_t_initialize, \
F_false, \
macro_f_file_t_initialize2(f_type_output, f_type_descriptor_output, f_file_flag_write_only), \
- fll_error_print_t_initialize, \
- macro_fll_error_print_t_initialize_warning(), \
+ fl_print_t_initialize, \
+ macro_fl_print_t_initialize_warning(), \
f_color_context_t_initialize, \
}
#endif // _di_fss_basic_write_data_
bool process_pipe;
f_file_t output;
- fll_error_print_t error;
- fll_error_print_t warning;
+ fl_print_t error;
+ fl_print_t warning;
f_string_dynamic_t buffer;
f_fss_nest_t nest;
f_array_lengths_t_initialize, \
F_false, \
macro_f_file_t_initialize2(f_type_output, f_type_descriptor_output, f_file_flag_write_only), \
- fll_error_print_t_initialize, \
- macro_fll_error_print_t_initialize_warning(), \
+ fl_print_t_initialize, \
+ macro_fl_print_t_initialize_warning(), \
f_string_dynamic_t_initialize, \
f_fss_nest_t_initialize, \
f_string_quantity_t_initialize, \
bool process_pipe;
f_file_t output;
- fll_error_print_t error;
- fll_error_print_t warning;
+ fl_print_t error;
+ fl_print_t warning;
f_string_static_t prepend;
f_color_context_t context;
f_array_lengths_t_initialize, \
F_false, \
macro_f_file_t_initialize2(f_type_output, f_type_descriptor_output, f_file_flag_write_only), \
- fll_error_print_t_initialize, \
- macro_fll_error_print_t_initialize_warning(), \
+ fl_print_t_initialize, \
+ macro_fl_print_t_initialize_warning(), \
f_string_static_t_initialize, \
f_color_context_t_initialize, \
}
bool process_pipe;
f_file_t output;
- fll_error_print_t error;
- fll_error_print_t warning;
+ fl_print_t error;
+ fl_print_t warning;
f_color_context_t context;
} fss_extended_list_read_main_t;
f_array_lengths_t_initialize, \
F_false, \
macro_f_file_t_initialize2(f_type_output, f_type_descriptor_output, f_file_flag_write_only), \
- fll_error_print_t_initialize, \
- macro_fll_error_print_t_initialize_warning(), \
+ fl_print_t_initialize, \
+ macro_fl_print_t_initialize_warning(), \
f_color_context_t_initialize, \
}
#endif // _di_fss_extended_list_read_main_t_
bool process_pipe;
f_file_t output;
- fll_error_print_t error;
- fll_error_print_t warning;
+ fl_print_t error;
+ fl_print_t warning;
f_string_static_t prepend;
f_array_lengths_t_initialize, \
F_false, \
macro_f_file_t_initialize2(f_type_output, f_type_descriptor_output, f_file_flag_write_only), \
- fll_error_print_t_initialize, \
- macro_fll_error_print_t_initialize_warning(), \
+ fl_print_t_initialize, \
+ macro_fl_print_t_initialize_warning(), \
f_string_static_t_initialize, \
f_color_context_t_initialize, \
}
bool process_pipe;
f_file_t output;
- fll_error_print_t error;
- fll_error_print_t warning;
+ fl_print_t error;
+ fl_print_t warning;
f_color_context_t context;
} fss_extended_read_main_t;
f_array_lengths_t_initialize, \
F_false, \
macro_f_file_t_initialize2(f_type_output, f_type_descriptor_output, f_file_flag_write_only), \
- fll_error_print_t_initialize, \
- macro_fll_error_print_t_initialize_warning(), \
+ fl_print_t_initialize, \
+ macro_fl_print_t_initialize_warning(), \
f_color_context_t_initialize, \
}
#endif // _di_fss_extended_read_main_t_
bool process_pipe;
f_file_t output;
- fll_error_print_t error;
- fll_error_print_t warning;
+ fl_print_t error;
+ fl_print_t warning;
f_string_static_t prepend;
f_color_context_t context;
f_array_lengths_t_initialize, \
F_false, \
macro_f_file_t_initialize2(f_type_output, f_type_descriptor_output, f_file_flag_write_only), \
- fll_error_print_t_initialize, \
- macro_fll_error_print_t_initialize_warning(), \
+ fl_print_t_initialize, \
+ macro_fl_print_t_initialize_warning(), \
f_string_static_t_initialize, \
f_color_context_t_initialize, \
}
bool process_pipe;
f_file_t output;
- fll_error_print_t error;
- fll_error_print_t warning;
+ fl_print_t error;
+ fl_print_t warning;
f_color_context_t context;
} fss_identify_main_t;
f_array_lengths_t_initialize, \
F_false, \
macro_f_file_t_initialize2(f_type_output, f_type_descriptor_output, f_file_flag_write_only), \
- fll_error_print_t_initialize, \
- macro_fll_error_print_t_initialize_warning(), \
+ fl_print_t_initialize, \
+ macro_fl_print_t_initialize_warning(), \
f_color_context_t_initialize, \
}
#endif // _di_fss_identify_data_t_
bool process_pipe;
f_file_t output;
- fll_error_print_t error;
- fll_error_print_t warning;
+ fl_print_t error;
+ fl_print_t warning;
f_color_context_t context;
} fss_status_code_main_t;
f_array_lengths_t_initialize, \
F_false, \
macro_f_file_t_initialize2(f_type_output, f_type_descriptor_output, f_file_flag_write_only), \
- fll_error_print_t_initialize, \
- macro_fll_error_print_t_initialize_warning(), \
+ fl_print_t_initialize, \
+ macro_fl_print_t_initialize_warning(), \
f_color_context_t_initialize, \
}
#endif // _di_fss_status_code_main_t_
bool process_pipe;
f_file_t output;
- fll_error_print_t error;
- fll_error_print_t warning;
+ fl_print_t error;
+ fl_print_t warning;
uint8_t mode;
f_array_lengths_t_initialize, \
F_false, \
macro_f_file_t_initialize2(f_type_output, f_type_descriptor_output, f_file_flag_write_only), \
- fll_error_print_t_initialize, \
- macro_fll_error_print_t_initialize_warning(), \
+ fl_print_t_initialize, \
+ macro_fl_print_t_initialize_warning(), \
0, \
0, \
0, \
bool process_pipe;
f_file_t output;
- fll_error_print_t error;
- fll_error_print_t warning;
+ fl_print_t error;
+ fl_print_t warning;
f_string_dynamic_t buffer;
f_array_lengths_t_initialize, \
F_false, \
macro_f_file_t_initialize2(f_type_output, f_type_descriptor_output, f_file_flag_write_only), \
- fll_error_print_t_initialize, \
- macro_fll_error_print_t_initialize_warning(), \
+ fl_print_t_initialize, \
+ macro_fl_print_t_initialize_warning(), \
f_string_dynamic_t_initialize, \
f_color_context_t_initialize, \
}
bool process_pipe;
f_file_t output;
- fll_error_print_t error;
- fll_error_print_t warning;
+ fl_print_t error;
+ fl_print_t warning;
f_color_context_t context;
} status_code_main_t;
f_array_lengths_t_initialize, \
F_false, \
macro_f_file_t_initialize2(f_type_output, f_type_descriptor_output, f_file_flag_write_only), \
- fll_error_print_t_initialize, \
- macro_fll_error_print_t_initialize_warning(), \
+ fl_print_t_initialize, \
+ macro_fl_print_t_initialize_warning(), \
f_color_context_t_initialize, \
}
#endif // _di_status_code_main_t_