This reduces repeated strings in the code.
A helper macro is used so that the individual code never needs to be changed if there are any changes to the array and the enumeration.
This reduces the binary file size.
}
if (F_status_is_error(setting->status)) {
- fss_write_print_error(setting, main->error, "fl_fss_basic_content_write");
+ fss_write_print_error(setting, main->error, macro_fss_write_f(fl_fss_basic_content_write));
return;
}
}
if (F_status_is_error(setting->status)) {
- fss_write_print_error(setting, main->error, "fl_fss_basic_object_write");
+ fss_write_print_error(setting, main->error, macro_fss_write_f(fl_fss_basic_object_write));
}
}
#endif // _di_fss_write_basic_process_object_
// FSS Write includes.
#include <program/fss_write/main/common.h>
+#include <program/fss_write/main/common-print.h>
#include <program/fss_write/basic/common.h>
#include <program/fss_write/main/print.h>
#include <program/fss_write/basic/print.h>
}
if (F_status_is_error(setting->status)) {
- fss_write_print_error(setting, main->error, "fl_fss_basic_list_content_write");
+ fss_write_print_error(setting, main->error, macro_fss_write_f(fl_fss_basic_list_content_write));
return;
}
}
if (F_status_is_error(setting->status)) {
- fss_write_print_error(setting, main->error, "fl_fss_basic_list_object_write");
+ fss_write_print_error(setting, main->error, macro_fss_write_f(fl_fss_basic_list_object_write));
}
}
#endif // _di_fss_write_basic_list_process_object_
// FSS Write includes.
#include <program/fss_write/main/common.h>
+#include <program/fss_write/main/common-print.h>
#include <program/fss_write/basic_list/common.h>
#include <program/fss_write/main/print.h>
#include <program/fss_write/basic_list/print.h>
}
if (F_status_is_error(setting->status)) {
- fss_write_print_error(setting, main->error, "fl_fss_embedded_list_content_write");
+ fss_write_print_error(setting, main->error, macro_fss_write_f(fl_fss_embedded_list_content_write));
return;
}
}
if (F_status_is_error(setting->status)) {
- fss_write_print_error(setting, main->error, "fl_fss_embedded_list_object_write");
+ fss_write_print_error(setting, main->error, macro_fss_write_f(fl_fss_embedded_list_object_write));
}
}
#endif // _di_fss_write_embedded_list_process_object_
// FSS Write includes.
#include <program/fss_write/main/common.h>
+#include <program/fss_write/main/common-print.h>
#include <program/fss_write/embedded_list/common.h>
#include <program/fss_write/main/print.h>
#include <program/fss_write/embedded_list/print.h>
}
if (F_status_is_error(setting->status)) {
- fss_write_print_error(setting, main->error, "fl_fss_extended_content_write");
+ fss_write_print_error(setting, main->error, macro_fss_write_f(fl_fss_extended_content_write));
return;
}
}
if (F_status_is_error(setting->status)) {
- fss_write_print_error(setting, main->error, "fl_fss_extended_object_write");
+ fss_write_print_error(setting, main->error, macro_fss_write_f(fl_fss_extended_object_write));
}
}
#endif // _di_fss_write_extended_process_object_
// FSS Write includes.
#include <program/fss_write/main/common.h>
+#include <program/fss_write/main/common-print.h>
#include <program/fss_write/extended/common.h>
#include <program/fss_write/main/print.h>
#include <program/fss_write/extended/print.h>
}
if (F_status_is_error(setting->status)) {
- fss_write_print_error(setting, main->error, "fl_fss_extended_list_content_write");
+ fss_write_print_error(setting, main->error, macro_fss_write_f(fl_fss_extended_list_content_write));
return;
}
}
if (F_status_is_error(macro_fss_write_setting(setting)->status)) {
- fss_write_print_error(macro_fss_write_setting(setting), main->error, "fl_fss_extended_list_object_write");
+ fss_write_print_error(macro_fss_write_setting(setting), main->error, macro_fss_write_f(fl_fss_extended_list_object_write));
}
}
#endif // _di_fss_write_extended_list_process_object_
// FSS Write includes.
#include <program/fss_write/main/common.h>
+#include <program/fss_write/main/common-print.h>
#include <program/fss_write/extended_list/common.h>
#include <program/fss_write/main/print.h>
#include <program/fss_write/extended_list/print.h>
--- /dev/null
+#include "fss_write.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifndef _di_fss_write_f_a_
+ const f_string_t fss_write_f_a[] = {
+ "f_console_parameter_process",
+ "f_file_read_block",
+ "f_file_stream_open",
+ "f_fss_is_space",
+ "f_string_dynamic_append",
+ "f_string_dynamic_append_nulless",
+ "f_string_dynamic_increase_by",
+ "f_string_dynamics_increase",
+ "f_string_dynamics_increase_by",
+ "f_string_dynamics_resize",
+ "f_string_dynamicss_increase",
+ "f_string_dynamicss_increase_by",
+ "f_string_ranges_increase",
+ "f_string_ranges_increase_by",
+ "f_string_rangess_increase",
+ "f_string_rangess_increase_by",
+ "f_string_read_block_increase",
+ "fl_fss_basic_content_write",
+ "fl_fss_basic_list_content_write",
+ "fl_fss_basic_list_object_write",
+ "fl_fss_basic_object_write",
+ "fl_fss_embedded_list_content_write",
+ "fl_fss_embedded_list_object_write",
+ "fl_fss_extended_content_write",
+ "fl_fss_extended_list_content_write",
+ "fl_fss_extended_list_object_write",
+ "fl_fss_extended_object_write",
+ "fl_fss_payload_content_write",
+ "fll_program_parameter_process_context",
+ "fll_program_parameter_process_verbosity",
+ "fll_fss_payload_write",
+ };
+#endif // _di_fss_write_f_a_
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
--- /dev/null
+/**
+ * FLL - Level 3
+ *
+ * Project: FSS Write
+ * API Version: 0.7
+ * Licenses: lgpl-2.1-or-later
+ *
+ * Provides the common data structures.
+ *
+ * This is auto-included and should not need to be explicitly included.
+ */
+#ifndef _fss_write_common_print_h
+#define _fss_write_common_print_h
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * A special array of strings intended for representing funciton names.
+ *
+ * These are primarily used for printing errors with the function names.
+ *
+ * The macro macro_fss_write_f() is used to reference the array index by the enum name.
+ *
+ * macro_fss_write_f():
+ * - name: The name of the function.
+ */
+#ifndef _di_fss_write_f_a_
+ extern const f_string_t fss_write_f_a[];
+
+ #define macro_fss_write_f(name) fss_write_f_a[fss_write_f_##name##_e]
+#endif // _di_fss_write_f_a_
+
+/**
+ * An enum representing specific indexes within the above array.
+ *
+ * This is a convenience enum used to make code slightly more readable.
+ */
+#ifndef _di_fss_write_f_e_
+ enum {
+ fss_write_f_f_console_parameter_process_e,
+ fss_write_f_f_file_read_block_e,
+ fss_write_f_f_file_stream_open_e,
+ fss_write_f_f_fss_is_space_e,
+ fss_write_f_f_string_dynamic_append_e,
+ fss_write_f_f_string_dynamic_append_nulless_e,
+ fss_write_f_f_string_dynamic_increase_by_e,
+ fss_write_f_f_string_dynamics_increase_e,
+ fss_write_f_f_string_dynamics_increase_by_e,
+ fss_write_f_f_string_dynamics_resize_e,
+ fss_write_f_f_string_dynamicss_increase_e,
+ fss_write_f_f_string_dynamicss_increase_by_e,
+ fss_write_f_f_string_ranges_increase_e,
+ fss_write_f_f_string_ranges_increase_by_e,
+ fss_write_f_f_string_rangess_increase_e,
+ fss_write_f_f_string_rangess_increase_by_e,
+ fss_write_f_f_string_read_block_increase_e,
+ fss_write_f_fl_fss_basic_content_write_e,
+ fss_write_f_fl_fss_basic_list_content_write_e,
+ fss_write_f_fl_fss_basic_list_object_write_e,
+ fss_write_f_fl_fss_basic_object_write_e,
+ fss_write_f_fl_fss_embedded_list_content_write_e,
+ fss_write_f_fl_fss_embedded_list_object_write_e,
+ fss_write_f_fl_fss_extended_content_write_e,
+ fss_write_f_fl_fss_extended_list_content_write_e,
+ fss_write_f_fl_fss_extended_list_object_write_e,
+ fss_write_f_fl_fss_extended_object_write_e,
+ fss_write_f_fl_fss_payload_content_write_e,
+ fss_write_f_fll_program_parameter_process_context_e,
+ fss_write_f_fll_program_parameter_process_verbosity_e,
+ fss_write_f_fll_fss_payload_write_e,
+ }; // enum
+#endif // _di_fss_write_f_e_
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
+
+#endif // _fss_write_common_print_h
setting->status = f_console_parameter_process(arguments, &main->parameters);
if (F_status_is_error(setting->status)) {
- fss_write_print_error(setting, main->error, "f_console_parameter_process");
+ fss_write_print_error(setting, main->error, macro_fss_write_f(f_console_parameter_process));
return;
}
setting->status = fll_program_parameter_process_context(choices, modes, F_true, main);
if (F_status_is_error(setting->status)) {
- fss_write_print_error(setting, main->error, "fll_program_parameter_process_context");
+ fss_write_print_error(setting, main->error, macro_fss_write_f(fll_program_parameter_process_context));
return;
}
setting->status = fll_program_parameter_process_verbosity(choices, verbosity, F_true, main);
if (F_status_is_error(setting->status)) {
- fss_write_print_error(setting, main->error, "fll_program_parameter_process_verbosity");
+ fss_write_print_error(setting, main->error, macro_fss_write_f(fll_program_parameter_process_verbosity));
return;
}
setting->status = f_file_stream_open(main->parameters.arguments.array[index], f_string_empty_s, &main->output.to);
if (F_status_is_error(setting->status)) {
- fss_write_print_error_file(setting, main->error, "f_file_stream_open", main->parameters.arguments.array[index], f_file_operation_open_s, fll_error_file_type_file_e);
+ fss_write_print_error_file(setting, main->error, macro_fss_write_f(f_file_stream_open), main->parameters.arguments.array[index], f_file_operation_open_s, fll_error_file_type_file_e);
return;
}
setting->status = f_string_dynamics_resize(values->used, &setting->objects);
if (F_status_is_error(setting->status)) {
- fss_write_print_error(setting, main->error, "f_string_dynamics_resize");
+ fss_write_print_error(setting, main->error, macro_fss_write_f(f_string_dynamics_resize));
return;
}
setting->status = f_string_dynamicss_increase_by(values_object->used, &setting->contentss);
if (F_status_is_error(setting->status)) {
- fss_write_print_error(setting, main->error, "f_string_dynamicss_increase_by");
+ fss_write_print_error(setting, main->error, macro_fss_write_f(f_string_dynamicss_increase_by));
return;
}
setting->status = f_string_dynamics_increase_by(total, &setting->contentss.array[j]);
if (F_status_is_error(setting->status)) {
- fss_write_print_error(setting, main->error, "f_string_dynamics_increase_by");
+ fss_write_print_error(setting, main->error, macro_fss_write_f(f_string_dynamics_increase_by));
return;
}
setting->status = f_string_dynamic_append_nulless(main->parameters.arguments.array[index], &setting->prepend);
if (F_status_is_error(setting->status)) {
- fss_write_print_error(setting, main->error, "f_string_dynamic_append_nulless");
+ fss_write_print_error(setting, main->error, macro_fss_write_f(f_string_dynamic_append_nulless));
return;
}
setting->status = f_fss_is_space(state, main->parameters.arguments.array[index], range);
if (F_status_is_error(setting->status)) {
- fss_write_print_error(setting, main->error, "f_fss_is_space");
+ fss_write_print_error(setting, main->error, macro_fss_write_f(f_fss_is_space));
return;
}
setting->status = f_string_rangess_increase_by(values_data->used, &setting->ignoress);
if (F_status_is_error(setting->status)) {
- fss_write_print_error(setting, main->error, "f_string_rangess_increase_by");
+ fss_write_print_error(setting, main->error, macro_fss_write_f(f_string_rangess_increase_by));
return;
}
setting->status = f_string_ranges_increase_by(total, &setting->ignoress.array[j]);
if (F_status_is_error(setting->status)) {
- fss_write_print_error(setting, main->error, "f_string_ranges_increase_by");
+ fss_write_print_error(setting, main->error, macro_fss_write_f(f_string_ranges_increase_by));
return;
}
setting->status = f_string_dynamics_increase(setting->state.step_small, &setting->objects);
if (F_status_is_error(setting->status)) {
- fss_write_print_error(setting, main->error, "f_string_dynamics_increase");
+ fss_write_print_error(setting, main->error, macro_fss_write_f(f_string_dynamics_increase));
return;
}
setting->status = f_string_dynamicss_increase(setting->state.step_small, &setting->contentss);
if (F_status_is_error(setting->status)) {
- fss_write_print_error(setting, main->error, "f_string_dynamicss_increase");
+ fss_write_print_error(setting, main->error, macro_fss_write_f(f_string_dynamicss_increase));
return;
}
setting->status = f_string_dynamics_increase(setting->state.step_small, setting->contents);
if (F_status_is_error(setting->status)) {
- fss_write_print_error(setting, main->error, "f_string_dynamics_increase");
+ fss_write_print_error(setting, main->error, macro_fss_write_f(f_string_dynamics_increase));
return;
}
setting->status = f_string_rangess_increase(setting->state.step_small, &setting->ignoress);
if (F_status_is_error(setting->status)) {
- fss_write_print_error(setting, main->error, "f_string_rangess_increase");
+ fss_write_print_error(setting, main->error, macro_fss_write_f(f_string_rangess_increase));
return;
}
status_pipe = f_file_read_block(input, &setting->block);
if (F_status_is_error(status_pipe)) {
- fss_write_print_error(setting, main->error, "f_file_read_block");
+ fss_write_print_error(setting, main->error, macro_fss_write_f(f_file_read_block));
status_pipe = F_status_set_error(F_pipe);
setting->status = f_string_dynamic_increase_by(setting->block.used, setting->object);
if (F_status_is_error(setting->status)) {
- fss_write_print_error(setting, main->error, "f_string_dynamic_increase_by");
+ fss_write_print_error(setting, main->error, macro_fss_write_f(f_string_dynamic_increase_by));
break;
}
setting->status = f_string_dynamics_increase(setting->state.step_small, setting->contents);
if (F_status_is_error(setting->status)) {
- fss_write_print_error(setting, main->error, "f_string_dynamics_increase");
+ fss_write_print_error(setting, main->error, macro_fss_write_f(f_string_dynamics_increase));
break;
}
setting->status = f_string_dynamic_increase_by(total, &setting->contents->array[setting->contents->used]);
if (F_status_is_error(setting->status)) {
- fss_write_print_error(setting, main->error, "f_string_dynamic_increase_by");
+ fss_write_print_error(setting, main->error, macro_fss_write_f(f_string_dynamic_increase_by));
break;
}
setting->status = f_string_ranges_increase(setting->state.step_small, setting->ignores);
if (F_status_is_error(setting->status)) {
- fss_write_print_error(setting, main->error, "f_string_ranges_increase");
+ fss_write_print_error(setting, main->error, macro_fss_write_f(f_string_ranges_increase));
break;
}
// FSS Write includes.
#include <program/fss_write/main/common.h>
+#include <program/fss_write/main/common-print.h>
#include <program/fss_write/main/print.h>
#ifdef __cplusplus
setting->status = f_string_dynamics_increase(setting->state.step_small, &setting->objects);
if (F_status_is_error(setting->status)) {
- fss_write_print_error(setting, main->error, "f_string_dynamics_increase");
+ fss_write_print_error(setting, main->error, macro_fss_write_f(f_string_dynamics_increase));
return;
}
setting->status = f_string_dynamicss_increase(setting->state.step_small, &setting->contentss);
if (F_status_is_error(setting->status)) {
- fss_write_print_error(setting, main->error, "f_string_dynamicss_increase");
+ fss_write_print_error(setting, main->error, macro_fss_write_f(f_string_dynamicss_increase));
return;
}
setting->status = f_string_dynamics_increase(setting->state.step_small, setting->contents);
if (F_status_is_error(setting->status)) {
- fss_write_print_error(setting, main->error, "f_string_dynamics_increase");
+ fss_write_print_error(setting, main->error, macro_fss_write_f(f_string_dynamics_increase));
return;
}
setting->status = f_string_rangess_increase(setting->state.step_small, &setting->ignoress);
if (F_status_is_error(setting->status)) {
- fss_write_print_error(setting, main->error, "f_string_rangess_increase");
+ fss_write_print_error(setting, main->error, macro_fss_write_f(f_string_rangess_increase));
return;
}
status_pipe = f_file_read_block(input, &setting->block);
if (F_status_is_error(status_pipe)) {
- fss_write_print_error(setting, main->error, "f_file_read_block");
+ fss_write_print_error(setting, main->error, macro_fss_write_f(f_file_read_block));
status_pipe = F_status_set_error(F_pipe);
setting->status = f_string_dynamic_increase_by(setting->block.used, setting->object);
if (F_status_is_error(setting->status)) {
- fss_write_print_error(setting, main->error, "f_string_dynamic_increase_by");
+ fss_write_print_error(setting, main->error, macro_fss_write_f(f_string_dynamic_increase_by));
break;
}
setting->status = f_string_dynamics_increase(setting->state.step_small, setting->contents);
if (F_status_is_error(setting->status)) {
- fss_write_print_error(setting, main->error, "f_string_dynamics_increase");
+ fss_write_print_error(setting, main->error, macro_fss_write_f(f_string_dynamics_increase));
break;
}
setting->status = f_string_dynamic_increase_by(total, &setting->contents->array[setting->contents->used]);
if (F_status_is_error(setting->status)) {
- fss_write_print_error(setting, main->error, "f_string_dynamic_increase_by");
+ fss_write_print_error(setting, main->error, macro_fss_write_f(f_string_dynamic_increase_by));
break;
}
setting->status = f_string_dynamic_increase_by(total, &setting->contents->array[setting->contents->used]);
if (F_status_is_error(setting->status)) {
- fss_write_print_error(setting, main->error, "f_string_dynamic_increase_by");
+ fss_write_print_error(setting, main->error, macro_fss_write_f(f_string_dynamic_increase_by));
break;
}
setting->status = f_string_dynamic_increase_by(length + 1, &setting->contents->array[setting->contents->used]);
if (F_status_is_error(setting->status)) {
- fss_write_print_error(setting, main->error, "f_string_dynamic_increase_by");
+ fss_write_print_error(setting, main->error, macro_fss_write_f(f_string_dynamic_increase_by));
break;
}
}
if (F_status_is_error(setting->status)) {
- fss_write_print_error(setting, main->error, "fll_fss_payload_write");
+ fss_write_print_error(setting, main->error, macro_fss_write_f(fll_fss_payload_write));
return;
}
}
if (F_status_is_error(setting->status)) {
- fss_write_print_error(setting, main->error, "fl_fss_basic_list_object_write");
+ fss_write_print_error(setting, main->error, macro_fss_write_f(fl_fss_basic_list_object_write));
return;
}
);
if (F_status_is_error(setting->status)) {
- fss_write_print_error(setting, main->error, "fl_fss_payload_content_write");
+ fss_write_print_error(setting, main->error, macro_fss_write_f(fl_fss_payload_content_write));
return;
}
setting->status = f_string_dynamic_append(f_string_eol_s, &setting->buffer);
if (F_status_is_error(setting->status)) {
- fss_write_print_error(setting, main->error, "f_string_dynamic_append");
+ fss_write_print_error(setting, main->error, macro_fss_write_f(f_string_dynamic_append));
return;
}
// FSS Write includes.
#include <program/fss_write/main/common.h>
+#include <program/fss_write/main/common-print.h>
#include <program/fss_write/payload/common.h>
#include <program/fss_write/main/print.h>
#include <program/fss_write/payload/print.h>
build_libraries-level -lfll_2 -lfll_1 -lfll_0
build_libraries-monolithic -lfll
-build_sources_library main/fss_write.c main/common.c main/print.c
+build_sources_library main/fss_write.c main/common.c main/common-print.c main/print.c
build_sources_library basic/fss_write.c basic/common.c basic/print.c
build_sources_library basic_list/fss_write.c basic_list/common.c basic_list/print.c
build_sources_library embedded_list/fss_write.c embedded_list/common.c embedded_list/print.c
build_sources_library extended_list/fss_write.c extended_list/common.c extended_list/print.c
build_sources_library payload/fss_write.c payload/common.c payload/print.c
-build_sources_headers main/fss_write.h main/common.h main/print.h main/private-common.h
+build_sources_headers main/fss_write.h main/common.h main/common-print.h main/print.h main/private-common.h
build_sources_headers basic/fss_write.h basic/common.h basic/print.h basic/private-common.h
build_sources_headers basic_list/fss_write.h basic_list/common.h basic_list/print.h
build_sources_headers embedded_list/fss_write.h embedded_list/common.h embedded_list/print.h
--- /dev/null
+#include "iki_read.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifndef _di_iki_read_f_a_
+ const f_string_t iki_read_f_a[] = {
+ "f_console_parameter_process",
+ "f_file_descriptor",
+ "f_file_read",
+ "f_file_size_by_id",
+ "f_file_stream_open",
+ "f_file_stream_read_until",
+ "f_string_dynamic_append_nulless",
+ "f_string_dynamic_increase_by",
+ "f_string_dynamic_resize",
+ "f_string_dynamics_append",
+ "f_string_dynamics_increase_by",
+ "f_string_dynamics_resize",
+ "f_string_maps_increase_by",
+ "f_string_triples_increase_by",
+ "fl_iki_read",
+ "fll_program_parameter_process_context",
+ "fll_program_parameter_process_verbosity",
+ };
+#endif // _di_iki_read_f_a_
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
--- /dev/null
+/**
+ * FLL - Level 3
+ *
+ * Project: FSS Write
+ * API Version: 0.7
+ * Licenses: lgpl-2.1-or-later
+ *
+ * Provides the common data structures.
+ *
+ * This is auto-included and should not need to be explicitly included.
+ */
+#ifndef _iki_read_common_print_h
+#define _iki_read_common_print_h
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * A special array of strings intended for representing funciton names.
+ *
+ * These are primarily used for printing errors with the function names.
+ *
+ * The macro macro_iki_read_f() is used to reference the array index by the enum name.
+ *
+ * macro_iki_read_f():
+ * - name: The name of the function.
+ */
+#ifndef _di_iki_read_f_a_
+ extern const f_string_t iki_read_f_a[];
+
+ #define macro_iki_read_f(name) iki_read_f_a[iki_read_f_##name##_e]
+#endif // _di_iki_read_f_a_
+
+/**
+ * An enum representing specific indexes within the above array.
+ *
+ * This is a convenience enum used to make code slightly more readable.
+ */
+#ifndef _di_iki_read_f_e_
+ enum {
+ iki_read_f_f_console_parameter_process_e,
+ iki_read_f_f_file_descriptor_e,
+ iki_read_f_f_file_read_e,
+ iki_read_f_f_file_size_by_id_e,
+ iki_read_f_f_file_stream_open_e,
+ iki_read_f_f_file_stream_read_until_e,
+ iki_read_f_f_string_dynamic_append_nulless_e,
+ iki_read_f_f_string_dynamic_increase_by_e,
+ iki_read_f_f_string_dynamic_resize_e,
+ iki_read_f_f_string_dynamics_append_e,
+ iki_read_f_f_string_dynamics_increase_by_e,
+ iki_read_f_f_string_dynamics_resize_e,
+ iki_read_f_f_string_maps_increase_by_e,
+ iki_read_f_f_string_triples_increase_by_e,
+ iki_read_f_fl_iki_read_e,
+ iki_read_f_fll_program_parameter_process_context_e,
+ iki_read_f_fll_program_parameter_process_verbosity_e,
+ }; // enum
+#endif // _di_iki_read_f_e_
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
+
+#endif // _iki_read_common_print_h
setting->status = f_console_parameter_process(arguments, &main->parameters);
if (F_status_is_error(setting->status)) {
- iki_read_print_error(setting, main->error, "f_console_parameter_process");
+ iki_read_print_error(setting, main->error, macro_iki_read_f(f_console_parameter_process));
return;
}
setting->status = fll_program_parameter_process_context(choices, modes, F_true, main);
if (F_status_is_error(setting->status)) {
- iki_read_print_error(setting, main->error, "fll_program_parameter_process_context");
+ iki_read_print_error(setting, main->error, macro_iki_read_f(fll_program_parameter_process_context));
return;
}
setting->status = fll_program_parameter_process_verbosity(choices, verbosity, F_true, main);
if (F_status_is_error(setting->status)) {
- iki_read_print_error(setting, main->error, "fll_program_parameter_process_verbosity");
+ iki_read_print_error(setting, main->error, macro_iki_read_f(fll_program_parameter_process_verbosity));
return;
}
setting->status = f_string_dynamics_increase_by(main->parameters.array[iki_read_parameter_name_e].values.used, &setting->names);
if (F_status_is_error(setting->status)) {
- iki_read_print_error(setting, main->error, "f_string_dynamics_increase_by");
+ iki_read_print_error(setting, main->error, macro_iki_read_f(f_string_dynamics_increase_by));
return;
}
} // for
if (F_status_is_error(setting->status)) {
- iki_read_print_error(setting, main->error, "f_string_dynamics_append");
+ iki_read_print_error(setting, main->error, macro_iki_read_f(f_string_dynamics_append));
return;
}
setting->status = f_string_maps_increase_by(main->parameters.array[iki_read_parameter_replace_e].values.used / 2, &setting->replace);
if (F_status_is_error(setting->status)) {
- iki_read_print_error(setting, main->error, "f_string_maps_increase_by");
+ iki_read_print_error(setting, main->error, macro_iki_read_f(f_string_maps_increase_by));
return;
}
}
if (F_status_is_error(setting->status)) {
- iki_read_print_error(setting, main->error, "f_string_dynamic_resize");
+ iki_read_print_error(setting, main->error, macro_iki_read_f(f_string_dynamic_resize));
return;
}
setting->status = f_string_triples_increase_by(main->parameters.array[iki_read_parameter_wrap_e].values.used / 3, &setting->wrap);
if (F_status_is_error(setting->status)) {
- iki_read_print_error(setting, main->error, "f_string_triples_increase_by");
+ iki_read_print_error(setting, main->error, macro_iki_read_f(f_string_triples_increase_by));
return;
}
}
if (F_status_is_error(setting->status)) {
- iki_read_print_error(setting, main->error, "f_string_dynamic_resize");
+ iki_read_print_error(setting, main->error, macro_iki_read_f(f_string_dynamic_resize));
return;
}
setting->status = f_string_dynamics_resize(main->parameters.remaining.used, &setting->files);
if (F_status_is_error(setting->status)) {
- iki_read_print_error(setting, main->error, "f_string_dynamics_resize");
+ iki_read_print_error(setting, main->error, macro_iki_read_f(f_string_dynamics_resize));
return;
}
setting->status = f_string_dynamic_resize(0, &setting->files.array[setting->files.used]);
if (F_status_is_error(setting->status)) {
- iki_read_print_error(setting, main->error, "f_string_dynamic_resize");
+ iki_read_print_error(setting, main->error, macro_iki_read_f(f_string_dynamic_resize));
return;
}
setting->status = f_string_triples_increase_by(parameter.values.used / 3, triple);
if (F_status_is_error(setting->status)) {
- iki_read_print_error(setting, main->error, "f_string_triples_increase_by");
+ iki_read_print_error(setting, main->error, macro_iki_read_f(f_string_triples_increase_by));
return F_false;
}
}
if (F_status_is_error(setting->status)) {
- iki_read_print_error(setting, main->error, "f_string_dynamic_resize");
+ iki_read_print_error(setting, main->error, macro_iki_read_f(f_string_dynamic_resize));
return F_false;
}
setting->status = f_file_read(file, &setting->buffer);
if (F_status_is_error(setting->status)) {
- iki_read_print_error_file(setting, main->error, "f_file_read", f_string_ascii_minus_s, f_file_operation_process_s, fll_error_file_type_file_e);
+ iki_read_print_error_file(setting, main->error, macro_iki_read_f(f_file_read), f_string_ascii_minus_s, f_file_operation_process_s, fll_error_file_type_file_e);
}
else {
iki_read_process_buffer(main, setting);
setting->status = f_file_stream_open(setting->files.array[i], f_string_empty_s, &file);
if (F_status_is_error(setting->status)) {
- iki_read_print_error_file(setting, main->error, "f_file_stream_open", setting->files.array[i], f_file_operation_process_s, fll_error_file_type_file_e);
+ iki_read_print_error_file(setting, main->error, macro_iki_read_f(f_file_stream_open), setting->files.array[i], f_file_operation_process_s, fll_error_file_type_file_e);
return;
}
setting->status = f_file_descriptor(&file);
if (F_status_is_error(setting->status)) {
- iki_read_print_error_file(setting, main->error, "f_file_descriptor", setting->files.array[i], f_file_operation_process_s, fll_error_file_type_file_e);
+ iki_read_print_error_file(setting, main->error, macro_iki_read_f(f_file_descriptor), setting->files.array[i], f_file_operation_process_s, fll_error_file_type_file_e);
return;
}
setting->status = f_file_size_by_id(file, &size_file);
if (F_status_is_error(setting->status)) {
- iki_read_print_error_file(setting, main->error, "f_file_size_by_id", setting->files.array[i], f_file_operation_analyze_s, fll_error_file_type_file_e);
+ iki_read_print_error_file(setting, main->error, macro_iki_read_f(f_file_size_by_id), setting->files.array[i], f_file_operation_analyze_s, fll_error_file_type_file_e);
break;
}
setting->status = f_string_dynamic_increase_by(size_file + 1, &setting->buffer);
if (F_status_is_error(setting->status)) {
- iki_read_print_error_file(setting, main->error, "f_string_dynamic_increase_by", setting->files.array[i], f_file_operation_process_s, fll_error_file_type_file_e);
+ iki_read_print_error_file(setting, main->error, macro_iki_read_f(f_string_dynamic_increase_by), setting->files.array[i], f_file_operation_process_s, fll_error_file_type_file_e);
break;
}
if (F_status_is_error(setting->status)) {
if (F_status_set_fine(setting->status) != F_interrupt) {
- iki_read_print_error_file(setting, main->error, "f_file_stream_read_until", setting->files.array[i], f_file_operation_process_s, fll_error_file_type_file_e);
+ iki_read_print_error_file(setting, main->error, macro_iki_read_f(f_file_stream_read_until), setting->files.array[i], f_file_operation_process_s, fll_error_file_type_file_e);
}
break;
// IKI Read includes.
#include <program/iki_read/common.h>
+#include <program/iki_read/common-print.h>
#include <program/iki_read/print.h>
#ifdef __cplusplus
}
if (F_status_is_error(setting->status)) {
- iki_read_print_error(setting, main->error, "fl_iki_read");
+ iki_read_print_error(setting, main->error, macro_iki_read_f(fl_iki_read));
return;
}
}
if (F_status_is_error(setting->status)) {
- iki_read_print_error(setting, main->error, "fl_iki_read");
+ iki_read_print_error(setting, main->error, macro_iki_read_f(fl_iki_read));
return;
}
}
if (F_status_is_error(setting->status)) {
- iki_read_print_error(setting, main->error, "fl_iki_read");
+ iki_read_print_error(setting, main->error, macro_iki_read_f(fl_iki_read));
return;
}
setting->status = f_string_dynamic_append_nulless(main->parameters.arguments.array[index], &name);
if (F_status_is_error(setting->status)) {
- iki_read_print_error(setting, main->error, "f_string_dynamic_append_nulless");
+ iki_read_print_error(setting, main->error, macro_iki_read_f(f_string_dynamic_append_nulless));
f_string_dynamic_resize(0, &name);
build_libraries-level -lfll_2 -lfll_1 -lfll_0
build_libraries-monolithic -lfll
-build_sources_library iki_read.c common.c print.c private-common.c private-print.c private-read.c
+build_sources_library iki_read.c common.c common-print.c print.c private-common.c private-print.c private-read.c
build_sources_program main.c
-build_sources_headers iki_read.h common.h print.h
+build_sources_headers iki_read.h common.h common-print.h print.h
build_script yes
build_shared yes
--- /dev/null
+#include "iki_write.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifndef _di_iki_write_f_a_
+ const f_string_t iki_write_f_a[] = {
+ "f_console_parameter_process",
+ "f_file_read",
+ "f_iki_object_is",
+ "f_string_dynamic_partial_append_nulless",
+ "f_string_dynamic_seek_to",
+ "f_string_dynamics_resize",
+ "fll_iki_content_escape",
+ "fll_program_parameter_process_context",
+ "fll_program_parameter_process_verbosity",
+ };
+#endif // _di_iki_write_f_a_
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
--- /dev/null
+/**
+ * FLL - Level 3
+ *
+ * Project: FSS Write
+ * API Version: 0.7
+ * Licenses: lgpl-2.1-or-later
+ *
+ * Provides the common data structures.
+ *
+ * This is auto-included and should not need to be explicitly included.
+ */
+#ifndef _iki_write_common_print_h
+#define _iki_write_common_print_h
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * A special array of strings intended for representing funciton names.
+ *
+ * These are primarily used for printing errors with the function names.
+ *
+ * The macro macro_iki_write_f() is used to reference the array index by the enum name.
+ *
+ * macro_iki_write_f():
+ * - name: The name of the function.
+ */
+#ifndef _di_iki_write_f_a_
+ extern const f_string_t iki_write_f_a[];
+
+ #define macro_iki_write_f(name) iki_write_f_a[iki_write_f_##name##_e]
+#endif // _di_iki_write_f_a_
+
+/**
+ * An enum representing specific indexes within the above array.
+ *
+ * This is a convenience enum used to make code slightly more readable.
+ */
+#ifndef _di_iki_write_f_e_
+ enum {
+ iki_write_f_f_console_parameter_process_e,
+ iki_write_f_f_file_read_e,
+ iki_write_f_f_iki_object_is_e,
+ iki_write_f_f_string_dynamic_partial_append_nulless_e,
+ iki_write_f_f_string_dynamic_seek_to_e,
+ iki_write_f_f_string_dynamics_resize_e,
+ iki_write_f_fll_iki_content_escape_e,
+ iki_write_f_fll_program_parameter_process_context_e,
+ iki_write_f_fll_program_parameter_process_verbosity_e,
+ }; // enum
+#endif // _di_iki_write_f_e_
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
+
+#endif // _iki_write_common_print_h
setting->status = f_console_parameter_process(arguments, &main->parameters);
if (F_status_is_error(setting->status)) {
- iki_write_print_error(setting, main->error, "f_console_parameter_process");
+ iki_write_print_error(setting, main->error, macro_iki_write_f(f_console_parameter_process));
return;
}
setting->status = fll_program_parameter_process_context(choices, modes, F_true, main);
if (F_status_is_error(setting->status)) {
- iki_write_print_error(setting, main->error, "fll_program_parameter_process_context");
+ iki_write_print_error(setting, main->error, macro_iki_write_f(fll_program_parameter_process_context));
return;
}
setting->status = fll_program_parameter_process_verbosity(choices, verbosity, F_true, main);
if (F_status_is_error(setting->status)) {
- iki_write_print_error(setting, main->error, "fll_program_parameter_process_verbosity");
+ iki_write_print_error(setting, main->error, macro_iki_write_f(fll_program_parameter_process_verbosity));
return;
}
setting->status = f_string_dynamics_resize(values->used, &setting->objects);
if (F_status_is_error(setting->status)) {
- iki_write_print_error(setting, main->error, "f_string_dynamics_resize");
+ iki_write_print_error(setting, main->error, macro_iki_write_f(f_string_dynamics_resize));
return;
}
setting->status = f_string_dynamics_resize(values->used, &setting->contents);
if (F_status_is_error(setting->status)) {
- iki_write_print_error(setting, main->error, "f_string_dynamics_resize");
+ iki_write_print_error(setting, main->error, macro_iki_write_f(f_string_dynamics_resize));
return;
}
if (F_status_is_error(status)) {
setting->status = F_status_set_error(F_pipe);
- iki_write_print_error_file(setting, main->error, "f_file_read", f_string_ascii_minus_s, f_file_operation_read_s, fll_error_file_type_pipe_e);
+ iki_write_print_error_file(setting, main->error, macro_iki_write_f(f_file_read), f_string_ascii_minus_s, f_file_operation_read_s, fll_error_file_type_pipe_e);
return;
}
}
if (F_status_is_error(setting->status)) {
- iki_write_print_error(setting, main->error, "f_string_dynamic_seek_to");
+ iki_write_print_error(setting, main->error, macro_iki_write_f(f_string_dynamic_seek_to));
return;
}
setting->status = f_string_dynamic_partial_append_nulless(setting->buffer, range, &setting->content);
if (F_status_is_error(setting->status)) {
- iki_write_print_error(setting, main->error, "f_string_dynamic_partial_append_nulless");
+ iki_write_print_error(setting, main->error, macro_iki_write_f(f_string_dynamic_partial_append_nulless));
return;
}
setting->status = f_string_dynamic_partial_append_nulless(setting->buffer, range, &setting->object);
if (F_status_is_error(setting->status)) {
- iki_write_print_error(setting, main->error, "f_string_dynamic_partial_append_nulless");
+ iki_write_print_error(setting, main->error, macro_iki_write_f(f_string_dynamic_partial_append_nulless));
return;
}
// IKI Write includes.
#include <program/iki_write/common.h>
+#include <program/iki_write/common-print.h>
#include <program/iki_write/print.h>
#ifdef __cplusplus
}
if (F_status_is_error(setting->status)) {
- iki_write_print_error(setting, main->error, "f_iki_object_is");
+ iki_write_print_error(setting, main->error, macro_iki_write_f(f_iki_object_is));
return;
}
setting->status = fll_iki_content_escape(content, setting->quote, &setting->escaped);
if (F_status_is_error(setting->status)) {
- iki_write_print_error(setting, main->error, "fll_iki_content_escape");
+ iki_write_print_error(setting, main->error, macro_iki_write_f(fll_iki_content_escape));
return;
}
build_libraries-level -lfll_2 -lfll_1 -lfll_0
build_libraries-monolithic -lfll
-build_sources_library iki_write.c common.c print.c private-common.c private-write.c
+build_sources_library iki_write.c common.c common-print.c print.c private-common.c private-write.c
build_sources_program main.c
-build_sources_headers iki_write.h common.h print.h
+build_sources_headers iki_write.h common.h common-print.h print.h
build_script yes
build_shared yes
--- /dev/null
+#include "status_code.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifndef _di_status_code_f_a_
+ const f_string_t status_code_f_a[] = {
+ "f_console_parameter_process",
+ "status_string_from",
+ "status_string_to",
+ "fll_program_parameter_process_context",
+ "fll_program_parameter_process_verbosity",
+ };
+#endif // _di_status_code_f_a_
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
--- /dev/null
+/**
+ * FLL - Level 3
+ *
+ * Project: FSS Write
+ * API Version: 0.7
+ * Licenses: lgpl-2.1-or-later
+ *
+ * Provides the common data structures.
+ *
+ * This is auto-included and should not need to be explicitly included.
+ */
+#ifndef _status_code_common_print_h
+#define _status_code_common_print_h
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * A special array of strings intended for representing funciton names.
+ *
+ * These are primarily used for printing errors with the function names.
+ *
+ * The macro macro_status_code_f() is used to reference the array index by the enum name.
+ *
+ * macro_status_code_f():
+ * - name: The name of the function.
+ */
+#ifndef _di_status_code_f_a_
+ extern const f_string_t status_code_f_a[];
+
+ #define macro_status_code_f(name) status_code_f_a[status_code_f_##name##_e]
+#endif // _di_status_code_f_a_
+
+/**
+ * An enum representing specific indexes within the above array.
+ *
+ * This is a convenience enum used to make code slightly more readable.
+ */
+#ifndef _di_status_code_f_e_
+ enum {
+ status_code_f_f_console_parameter_process_e,
+ status_code_f_status_string_from_e,
+ status_code_f_status_string_to_e,
+ status_code_f_fll_program_parameter_process_context_e,
+ status_code_f_fll_program_parameter_process_verbosity_e,
+ }; // enum
+#endif // _di_status_code_f_e_
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
+
+#endif // _status_code_common_print_h
setting->status = f_console_parameter_process(arguments, &main->parameters);
if (F_status_is_error(setting->status)) {
- status_code_print_error(setting, main->error, "f_console_parameter_process");
+ status_code_print_error(setting, main->error, macro_status_code_f(f_console_parameter_process));
return;
}
setting->status = fll_program_parameter_process_context(choices, modes, F_true, main);
if (F_status_is_error(setting->status)) {
- status_code_print_error(setting, main->error, "fll_program_parameter_process_context");
+ status_code_print_error(setting, main->error, macro_status_code_f(fll_program_parameter_process_context));
return;
}
setting->status = fll_program_parameter_process_verbosity(choices, verbosity, F_true, main);
if (F_status_is_error(setting->status)) {
- status_code_print_error(setting, main->error, "fll_program_parameter_process_verbosity");
+ status_code_print_error(setting, main->error, macro_status_code_f(fll_program_parameter_process_verbosity));
return;
}
if (!setting->status_string_from || !setting->status_string_to) {
if (!setting->status_string_from) {
- status_code_print_error_invalid_callback(setting, main->error, "status_string_from");
+ status_code_print_error_invalid_callback(setting, main->error, macro_status_code_f(status_string_from));
}
if (!setting->status_string_to) {
- status_code_print_error_invalid_callback(setting, main->error, "status_string_to");
+ status_code_print_error_invalid_callback(setting, main->error, macro_status_code_f(status_string_to));
}
setting->status = F_status_set_error(F_parameter);
// Status Code includes.
#include <program/status_code/common.h>
+#include <program/status_code/common-print.h>
#include <program/status_code/print.h>
#ifdef __cplusplus
build_libraries-level -lfll_2 -lfll_1 -lfll_0
build_libraries-monolithic -lfll
-build_sources_library status_code.c common.c print.c private-common.c private-status_code.c
+build_sources_library status_code.c common.c common-print.c print.c private-common.c private-status_code.c
build_sources_program main-status_code.c
-build_sources_headers status_code.h common.h print.h
+build_sources_headers status_code.h common.h common-print.h print.h
build_script yes
build_shared yes
--- /dev/null
+#include "utf8.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifndef _di_utf8_f_a_
+ const f_string_t utf8_f_a[] = {
+ "f_console_parameter_prioritize_right",
+ "f_console_parameter_process",
+ "f_file_stream_open",
+ "f_string_dynamic_append_nulless",
+ "f_string_dynamics_increase_by",
+ "fll_program_parameter_process_context",
+ "fll_program_parameter_process_verbosity",
+ "utf8_detect_codepoint",
+ };
+#endif // _di_utf8_f_a_
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
--- /dev/null
+/**
+ * FLL - Level 3
+ *
+ * Project: FSS Write
+ * API Version: 0.7
+ * Licenses: lgpl-2.1-or-later
+ *
+ * Provides the common data structures.
+ *
+ * This is auto-included and should not need to be explicitly included.
+ */
+#ifndef _utf8_common_print_h
+#define _utf8_common_print_h
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * A special array of strings intended for representing funciton names.
+ *
+ * These are primarily used for printing errors with the function names.
+ *
+ * The macro macro_utf8_f() is used to reference the array index by the enum name.
+ *
+ * macro_utf8_f():
+ * - name: The name of the function.
+ */
+#ifndef _di_utf8_f_a_
+ extern const f_string_t utf8_f_a[];
+
+ #define macro_utf8_f(name) utf8_f_a[utf8_f_##name##_e]
+#endif // _di_utf8_f_a_
+
+/**
+ * An enum representing specific indexes within the above array.
+ *
+ * This is a convenience enum used to make code slightly more readable.
+ */
+#ifndef _di_utf8_f_e_
+ enum {
+ utf8_f_f_console_parameter_prioritize_right_e,
+ utf8_f_f_console_parameter_process_e,
+ utf8_f_f_file_stream_open_e,
+ utf8_f_f_string_dynamic_append_nulless_e,
+ utf8_f_f_string_dynamics_increase_by_e,
+ utf8_f_fll_program_parameter_process_context_e,
+ utf8_f_fll_program_parameter_process_verbosity_e,
+ utf8_f_utf8_detect_codepoint_e,
+ }; // enum
+#endif // _di_utf8_f_e_
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
+
+#endif // _utf8_common_print_h
setting->status = f_console_parameter_process(arguments, &main->parameters);
if (F_status_is_error(setting->status)) {
- utf8_print_error(setting, main->error, "f_console_parameter_process");
+ utf8_print_error(setting, main->error, macro_utf8_f(f_console_parameter_process));
return;
}
setting->status = fll_program_parameter_process_context(choices, modes, F_true, main);
if (F_status_is_error(setting->status)) {
- utf8_print_error(setting, main->error, "fll_program_parameter_process_context");
+ utf8_print_error(setting, main->error, macro_utf8_f(fll_program_parameter_process_context));
return;
}
setting->status = fll_program_parameter_process_verbosity(choices, verbosity, F_true, main);
if (F_status_is_error(setting->status)) {
- utf8_print_error(setting, main->error, "fll_program_parameter_process_verbosity");
+ utf8_print_error(setting, main->error, macro_utf8_f(fll_program_parameter_process_verbosity));
return;
}
setting->status = f_console_parameter_prioritize_right(main->parameters, choices, &choice);
if (F_status_is_error(setting->status)) {
- utf8_print_error(setting, main->error, "f_console_parameter_prioritize_right");
+ utf8_print_error(setting, main->error, macro_utf8_f(f_console_parameter_prioritize_right));
return;
}
setting->status = f_console_parameter_prioritize_right(main->parameters, choices, &choice);
if (F_status_is_error(setting->status)) {
- utf8_print_error(setting, main->error, "f_console_parameter_prioritize_right");
+ utf8_print_error(setting, main->error, macro_utf8_f(f_console_parameter_prioritize_right));
return;
}
setting->status = f_string_dynamics_increase_by(1, &setting->path_files_to);
if (F_status_is_error(setting->status)) {
- utf8_print_error(setting, main->error, "f_string_dynamics_increase_by");
+ utf8_print_error(setting, main->error, macro_utf8_f(f_string_dynamics_increase_by));
return;
}
setting->status = f_string_dynamic_append_nulless(main->parameters.arguments.array[main->parameters.array[utf8_parameter_to_file_e].values.array[0]], &setting->path_files_to.array[0]);
if (F_status_is_error(setting->status)) {
- utf8_print_error(setting, main->error, "f_string_dynamic_append_nulless");
+ utf8_print_error(setting, main->error, macro_utf8_f(f_string_dynamic_append_nulless));
return;
}
setting->status = f_file_stream_open(main->parameters.arguments.array[main->parameters.array[utf8_parameter_to_file_e].values.array[0]], f_file_open_mode_append_s, &main->output.to);
if (F_status_is_error(setting->status)) {
- utf8_print_error_file(setting, main->error, "f_file_stream_open", main->parameters.arguments.array[main->parameters.array[utf8_parameter_to_file_e].values.array[0]], f_file_operation_open_s, fll_error_file_type_file_e);
+ utf8_print_error_file(setting, main->error, macro_utf8_f(f_file_stream_open), main->parameters.arguments.array[main->parameters.array[utf8_parameter_to_file_e].values.array[0]], f_file_operation_open_s, fll_error_file_type_file_e);
return;
}
setting->status = f_string_dynamics_increase_by(main->parameters.array[utf8_parameter_from_file_e].values.used, &setting->path_files_from);
if (F_status_is_error(setting->status)) {
- utf8_print_error(setting, main->error, "f_string_dynamics_increase_by");
+ utf8_print_error(setting, main->error, macro_utf8_f(f_string_dynamics_increase_by));
return;
}
if (F_status_is_error(setting->status)) {
utf8_print_line_first_locked(setting, main->error);
- fll_error_print(main->error, F_status_set_fine(setting->status), "f_string_dynamic_append_nulless", F_true);
+ fll_error_print(main->error, F_status_set_fine(setting->status), macro_utf8_f(f_string_dynamic_append_nulless), F_true);
break;
}
setting->status = f_string_dynamics_resize(main->parameters.remaining.used, &setting->remaining);
if (F_status_is_error(setting->status)) {
- utf8_print_error(setting, main->error, "f_string_dynamic_append_nulless");
+ utf8_print_error(setting, main->error, macro_utf8_f(f_string_dynamic_append_nulless));
return;
}
if (F_status_is_error(status)) {
utf8_print_line_first_locked(setting, main->error);
- fll_error_print(main->error, F_status_set_fine(status), "utf8_detect_codepoint", F_true);
+ fll_error_print(main->error, F_status_set_fine(status), macro_utf8_f(utf8_detect_codepoint), F_true);
break;
}
setting->status = f_file_stream_open(setting->path_files_from.array[i], f_string_empty_s, &file);
if (F_status_is_error(setting->status)) {
- utf8_print_error_file(setting, main->error, "f_file_stream_open", setting->path_files_from.array[i], f_file_operation_open_s, fll_error_file_type_file_e);
+ utf8_print_error_file(setting, main->error, macro_utf8_f(f_file_stream_open), setting->path_files_from.array[i], f_file_operation_open_s, fll_error_file_type_file_e);
break;
}
// UTF-8 includes.
#include <program/utf8/common.h>
+#include <program/utf8/common-print.h>
#include <program/utf8/print.h>
#ifdef __cplusplus
build_libraries-level -lfll_2 -lfll_1 -lfll_0
build_libraries-monolithic -lfll
-build_sources_library common.c print.c utf8.c
+build_sources_library common.c common-print.c print.c utf8.c
build_sources_library private-common.c private-utf8.c private-utf8_bytesequence.c private-utf8_codepoint.c
build_sources_program main.c
-build_sources_headers common.h print.h utf8.h
+build_sources_headers common.h common-print.h print.h utf8.h
build_script yes
build_shared yes