Fix some small things that I noticed while I was migrating the byte_dump program.
setting->state.step_small = control_write_allocation_small_d;
- // Identify and pocess first/last parameters.
+ // Identify and process first/last parameters.
if (main->parameters.array[control_parameter_line_first_no_e].result & f_console_result_found_e) {
setting->flag -= setting->flag & control_main_flag_print_first_e;
}
* - copyright: Print copyright.
* - file_from: Using a specified source file.
* - file_to: Using a specified destination file.
- * - help: Print help.
* - header: Enable printing of headers.
+ * - help: Print help.
* - print_first: When set, print new line to message output on program begin after loading settings.
* - print_last: When set, print new line to message output on program end.
* - separate: Enable printing of separators.
choices.array = choices_array;
choices.used = 3;
- const uint8_t modes[3] = { f_color_mode_not_e, f_color_mode_light_e, f_color_mode_dark_e };
+ static const uint8_t modes[3] = { f_color_mode_not_e, f_color_mode_light_e, f_color_mode_dark_e };
status = fll_program_parameter_process_context(choices, modes, F_true, &main->program);
main->setting.state.step_small = controller_allocation_small_d;
- // Identify and pocess first/last parameters.
+ // Identify and process first/last parameters.
if (main->program.parameters.array[controller_parameter_line_first_no_e].result & f_console_result_found_e) {
main->setting.flag -= main->setting.flag & controller_main_flag_print_first_e;
}
* - copyright: Print copyright.
* - file_from: Using a specified source file.
* - file_to: Using a specified destination file.
- * - help: Print help.
* - header: Enable printing of headers.
+ * - help: Print help.
* - print_first: When set, print new line to message output on program begin after loading settings.
* - print_last: When set, print new line to message output on program end.
* - separate: Enable printing of separators.
choices.array = choices_array;
choices.used = 3;
- const uint8_t modes[3] = { f_color_mode_not_e, f_color_mode_light_e, f_color_mode_dark_e };
+ static const uint8_t modes[3] = { f_color_mode_not_e, f_color_mode_light_e, f_color_mode_dark_e };
status = fll_program_parameter_process_context(choices, modes, F_true, &main->program);
main->setting.state.step_small = step_original;
}
- // Identify and pocess first/last parameters.
+ // Identify and process first/last parameters.
if (main->program.parameters.array[fake_parameter_line_first_no_e].result & f_console_result_found_e) {
main->setting.flag -= main->setting.flag & fake_main_flag_print_first_e;
}
#ifndef _di_fake_make_print_error_argument_invalid_section_
f_status_t fake_make_print_error_argument_invalid_section(fl_print_t * const print, const f_string_static_t name) {
+ if (!print) return F_status_set_error(F_output_not);
if (print->verbosity < f_console_verbosity_error_e) return F_output_not;
fake_print_context_wrapped_variable(print, "The argument ", name, " is not a valid section name");
#ifndef _di_fake_make_print_error_compiler_not_specified_
f_status_t fake_make_print_error_compiler_not_specified(fl_print_t * const print, const f_string_static_t action) {
+ if (!print) return F_status_set_error(F_output_not);
if (print->verbosity < f_console_verbosity_error_e) return F_output_not;
fake_print_context_wrapped_variable(print, "No compiler has been specified, cannot perform ", action, " section operation");
#ifndef _di_fake_make_print_error_content_not_directory_
f_status_t fake_make_print_error_content_not_directory(fl_print_t * const print, const f_string_t content, const f_string_static_t file) {
+ if (!print) return F_status_set_error(F_output_not);
if (print->verbosity < f_console_verbosity_error_e) return F_output_not;
f_file_stream_lock(print->to);
#ifndef _di_fake_make_print_error_define_name_empty_
f_status_t fake_make_print_error_define_name_empty(fl_print_t * const print) {
+ if (!print) return F_status_set_error(F_output_not);
if (print->verbosity < f_console_verbosity_error_e) return F_output_not;
fake_print_context_simple(print, "Define name must not be an empty string");
#ifndef _di_fake_make_print_error_define_invalid_character_
f_status_t fake_make_print_error_define_invalid_character(fl_print_t * const print, const f_string_static_t name) {
+ if (!print) return F_status_set_error(F_output_not);
if (print->verbosity < f_console_verbosity_error_e) return F_output_not;
fake_print_context_wrapped_variable(print, "Invalid characters in the define name ", name, ", only alpha-numeric ASCII characters and underscore (without a leading digit) are allowed");
#ifndef _di_fake_make_print_error_fakefile_section_missing_
f_status_t fake_make_print_error_fakefile_section_missing(fl_print_t * const print, const f_string_static_t fakefile, const f_string_static_t section) {
+ if (!print) return F_status_set_error(F_output_not);
if (print->verbosity < f_console_verbosity_error_e) return F_output_not;
f_file_stream_lock(print->to);
#ifndef _di_fake_make_print_error_file_name_empty_
f_status_t fake_make_print_error_file_name_empty(fl_print_t * const print) {
+ if (!print) return F_status_set_error(F_output_not);
if (print->verbosity < f_console_verbosity_error_e) return F_output_not;
fake_print_context_simple(print, "File name argument must not be an empty string");
#ifndef _di_fake_make_print_error_file_type_
f_status_t fake_make_print_error_file_type(fl_print_t * const print, const f_string_static_t type, const f_string_static_t file) {
+ if (!print) return F_status_set_error(F_output_not);
if (print->verbosity < f_console_verbosity_error_e) return F_output_not;
f_file_stream_lock(print->to);
#ifndef _di_fake_make_print_error_indexer_not_specified_
f_status_t fake_make_print_error_indexer_not_specified(fl_print_t * const print, const f_string_static_t action) {
+ if (!print) return F_status_set_error(F_output_not);
if (print->verbosity < f_console_verbosity_error_e) return F_output_not;
fake_print_context_wrapped_variable(print, "No indexer has been specified, cannot perform ", action, " section operation");
#ifndef _di_fake_make_print_error_after_condition_
f_status_t fake_make_print_error_after_condition(fl_print_t * const print, const f_string_t message) {
+ if (!print) return F_status_set_error(F_output_not);
if (print->verbosity < f_console_verbosity_error_e) return F_output_not;
f_file_stream_lock(print->to);
#ifndef _di_fake_make_print_error_after_condition_may_only_
f_status_t fake_make_print_error_after_condition_may_only(fl_print_t * const print) {
+ if (!print) return F_status_set_error(F_output_not);
if (print->verbosity < f_console_verbosity_error_e) return F_output_not;
fake_make_print_error_after_condition(print, "May only be used immediately after");
#ifndef _di_fake_make_print_error_after_condition_must_not_
f_status_t fake_make_print_error_after_condition_must_not(fl_print_t * const print) {
+ if (!print) return F_status_set_error(F_output_not);
if (print->verbosity < f_console_verbosity_error_e) return F_output_not;
fake_make_print_error_after_condition(print, "Must not be used immediately after");
#ifndef _di_fake_make_print_error_after_condition_no_preceding_
f_status_t fake_make_print_error_after_condition_no_preceding(fl_print_t * const print) {
+ if (!print) return F_status_set_error(F_output_not);
if (print->verbosity < f_console_verbosity_error_e) return F_output_not;
fake_make_print_error_after_condition(print, "Has no preceding");
#ifndef _di_fake_make_print_error_operation_incomplete_
f_status_t fake_make_print_error_operation_incomplete(fl_print_t * const print, const uint8_t operation) {
+ if (!print) return F_status_set_error(F_output_not);
if (print->verbosity < f_console_verbosity_error_e) return F_output_not;
f_file_stream_lock(print->to);
#ifndef _di_fake_make_print_error_operation_recursion_
f_status_t fake_make_print_error_operation_recursion(fl_print_t * const print, const f_string_static_t buffer, const f_string_range_t range) {
+ if (!print) return F_status_set_error(F_output_not);
if (print->verbosity < f_console_verbosity_error_e) return F_output_not;
f_file_stream_lock(print->to);
#ifndef _di_fake_print_error_fss_
f_status_t fake_print_error_fss(fl_print_t * const print, const f_string_t function, const f_string_static_t path_file, const f_string_range_t range, const bool fallback) {
- if (!print->custom) return F_status_set_error(F_output_not);
+ if (!print || !print->custom) return F_status_set_error(F_output_not);
if (print->verbosity < f_console_verbosity_error_e) return F_output_not;
fake_main_t * const main = (fake_main_t *) print->custom;
#ifndef _di_fake_print_error_operation_failed_
f_status_t fake_print_error_operation_failed(fl_print_t * const print, const f_string_static_t buffer, const f_string_range_t section_name, const f_string_range_t operation_name) {
- if (!print->custom) return F_status_set_error(F_output_not);
+ if (!print || !print->custom) return F_status_set_error(F_output_not);
if (print->verbosity < f_console_verbosity_error_e) return F_output_not;
fake_main_t * const main = (fake_main_t *) print->custom;
#ifndef _di_fake_print_error_operation_path_outside_
f_status_t fake_print_error_operation_path_outside(fl_print_t * const print, const f_string_t function, const f_string_static_t path) {
- if (!print->custom) return F_status_set_error(F_output_not);
+ if (!print || !print->custom) return F_status_set_error(F_output_not);
if (print->verbosity < f_console_verbosity_verbose_e) return F_output_not;
fake_main_t * const main = (fake_main_t *) print->custom;
#ifndef _di_fake_print_error_operation_path_stack_max_
f_status_t fake_print_error_operation_path_stack_max(fl_print_t * const print, const f_string_t function, const f_string_static_t path) {
- if (!print->custom) return F_status_set_error(F_output_not);
+ if (!print || !print->custom) return F_status_set_error(F_output_not);
if (print->verbosity < f_console_verbosity_error_e) return F_output_not;
fake_main_t * const main = (fake_main_t *) print->custom;
#ifndef _di_fake_print_error_operation_stack_max_
f_status_t fake_print_error_operation_stack_max(fl_print_t * const print, const f_string_static_t buffer, const f_string_range_t section_name, const f_string_range_t operation_name, const f_number_unsigned_t stack_max) {
- if (!print->custom) return F_status_set_error(F_output_not);
+ if (!print || !print->custom) return F_status_set_error(F_output_not);
if (print->verbosity < f_console_verbosity_error_e) return F_output_not;
fake_main_t * const main = (fake_main_t *) print->custom;
#ifndef _di_fake_print_error_operation_unknown_
f_status_t fake_print_error_operation_unknown(fl_print_t * const print, const f_string_static_t buffer, const f_string_range_t section_name, const f_string_range_t operation_name) {
- if (!print->custom) return F_status_set_error(F_output_not);
+ if (!print || !print->custom) return F_status_set_error(F_output_not);
if (print->verbosity < f_console_verbosity_error_e) return F_output_not;
fake_main_t * const main = (fake_main_t *) print->custom;
#if !defined(_di_fake_signal_check_) && defined(_di_thread_support_)
f_status_t fake_signal_check(fake_main_t * const main) {
- if (!main) return F_false;
- if (main->program.signal.id == -1) return F_false;
+ if (!main || main->program.signal.id == -1) return F_false;
if (!((++main->program.signal_check) % fake_signal_check_d)) {
if (fll_program_standard_signal_received(&main->program)) {
#if !defined(_di_fake_signal_check_) && !defined(_di_thread_support_)
f_status_t fake_signal_check(fake_main_t * const main) {
- if (!main) return F_false;
- if (main->program.signal.id == -1) return F_false;
+ if (!main || main->program.signal.id == -1) return F_false;
if (main->program.signal_received) {
fll_program_print_signal_received(&main->program.warning, main->program.signal_received);
main->setting.state.status = f_console_parameter_process(state, arguments, &main->program.parameters, &main->setting.state, 0);
- // Identify and pocess first/last parameters.
+ // Identify and process first/last parameters.
if (main->program.parameters.array[firewall_parameter_line_first_no_e].result & f_console_result_found_e) {
main->setting.flag -= main->setting.flag & firewall_main_flag_print_first_e;
}
* - none: No flags set.
* - file_from: Using a specified source file.
* - file_to: Using a specified destination file.
- * - help: Print help.
* - header: Enable printing of headers.
+ * - help: Print help.
* - print_first: When set, print new line to message output on program begin after loading settings.
* - print_last: When set, print new line to message output on program end.
* - separate: Enable printing of separators.
choices.array = choices_array;
choices.used = 3;
- const uint8_t modes[3] = { f_color_mode_not_e, f_color_mode_light_e, f_color_mode_dark_e };
+ static const uint8_t modes[3] = { f_color_mode_not_e, f_color_mode_light_e, f_color_mode_dark_e };
status = fll_program_parameter_process_context(choices, modes, F_true, &main->program);
main->setting.state.step_small = fss_embedded_list_read_allocation_small_d;
- // Identify and pocess first/last parameters.
+ // Identify and process first/last parameters.
if (main->program.parameters.array[fss_embedded_list_read_parameter_line_first_no_e].result & f_console_result_found_e) {
main->setting.flag -= main->setting.flag & fss_embedded_list_read_main_flag_print_first_e;
}
* - copyright: Print copyright.
* - file_from: Using a specified source file.
* - file_to: Using a specified destination file.
- * - help: Print help.
* - header: Enable printing of headers.
+ * - help: Print help.
* - print_first: When set, print new line to message output on program begin after loading settings.
* - print_last: When set, print new line to message output on program end.
* - separate: Enable printing of separators.
choices.array = choices_array;
choices.used = 3;
- const uint8_t modes[3] = { f_color_mode_not_e, f_color_mode_light_e, f_color_mode_dark_e };
+ static const uint8_t modes[3] = { f_color_mode_not_e, f_color_mode_light_e, f_color_mode_dark_e };
status = fll_program_parameter_process_context(choices, modes, F_true, &main->program);
main->setting.state.step_small = fss_identify_allocation_small_d;
- // Identify and pocess first/last parameters.
+ // Identify and process first/last parameters.
if (main->program.parameters.array[fss_identify_parameter_line_first_no_e].result & f_console_result_found_e) {
main->setting.flag -= main->setting.flag & fss_identify_main_flag_print_first_e;
}
* - copyright: Print copyright.
* - file_from: Using a specified source file.
* - file_to: Using a specified destination file. (Not used at this time.)
- * - help: Print help.
* - header: Enable printing of headers.
+ * - help: Print help.
* - line: Print only the identifier at a given line.
* - name: Select using this full or partial type name or code.
* - object: Use the object (The "FSS" part of "FSS-0000").
#ifndef _di_fss_identify_print_data_id_
f_status_t fss_identify_print_data_id(fl_print_t * const print, const f_fll_id_t id) {
- if (!print->custom) return F_status_set_error(F_output_not);
+ if (!print || !print->custom) return F_status_set_error(F_output_not);
fss_identify_main_t * const main = (fss_identify_main_t *) print->custom;
#ifndef _di_fss_identify_print_data_total_
f_status_t fss_identify_print_data_total(fl_print_t * const print) {
- if (!print->custom) return F_status_set_error(F_output_not);
+ if (!print || !print->custom) return F_status_set_error(F_output_not);
fss_identify_main_t * const main = (fss_identify_main_t *) print->custom;
#ifndef _di_fss_identify_print_error_
f_status_t fss_identify_print_error(fl_print_t * const print, const f_string_t function) {
- if (!print->custom) return F_status_set_error(F_output_not);
+ if (!print || !print->custom) return F_status_set_error(F_output_not);
if (print->verbosity < f_console_verbosity_error_e) return F_output_not;
fll_error_print(print, F_status_set_fine(((fss_identify_main_t *) print->custom)->setting.state.status), function, fll_error_file_flag_fallback_e);
#ifndef _di_fss_identify_print_error_file_
f_status_t fss_identify_print_error_file(fl_print_t * const print, const f_string_t function, const f_string_static_t name, const f_string_static_t operation, const uint8_t type) {
- if (!print->custom) return F_status_set_error(F_output_not);
+ if (!print || !print->custom) return F_status_set_error(F_output_not);
if (print->verbosity < f_console_verbosity_error_e) return F_output_not;
fss_identify_main_t * const main = (fss_identify_main_t *) print->custom;
#ifndef _di_fss_identify_print_error_no_from_
f_status_t fss_identify_print_error_no_from(fl_print_t * const print) {
+ if (!print) return F_status_set_error(F_output_not);
if (print->verbosity < f_console_verbosity_error_e) return F_output_not;
fll_print_format("%[%QNo sources are specified, please pipe data or designate a file.%]%r", print->to, print->set->error, print->prefix, print->set->error, f_string_eol_s);
#ifndef _di_fss_identify_print_error_parameter_file_name_empty_
f_status_t fss_identify_print_error_parameter_file_name_empty(fl_print_t * const print, const f_number_unsigned_t index) {
+ if (!print) return F_status_set_error(F_output_not);
if (print->verbosity < f_console_verbosity_error_e) return F_output_not;
f_file_stream_lock(print->to);
#ifndef _di_fss_identify_print_error_parameter_file_name_invalid_
f_status_t fss_identify_print_error_parameter_file_name_invalid(fl_print_t * const print, const f_number_unsigned_t index, const f_string_static_t name) {
+ if (!print) return F_status_set_error(F_output_not);
if (print->verbosity < f_console_verbosity_error_e) return F_output_not;
f_file_stream_lock(print->to);
#if !defined(_di_fss_identify_signal_check_) && defined(_di_thread_support_)
f_status_t fss_identify_signal_check(fss_identify_main_t * const main) {
- if (!main) return F_false;
- if (main->program.signal.id == -1) return F_false;
+ if (!main || main->program.signal.id == -1) return F_false;
if (!((++main->program.signal_check) % fss_identify_signal_check_d)) {
if (fll_program_standard_signal_received(&main->program)) {
#if !defined(_di_fss_identify_signal_check_) && !defined(_di_thread_support_)
f_status_t fss_identify_signal_check(fss_identify_main_t * const main) {
- if (!main) return F_false;
- if (main->program.signal.id == -1) return F_false;
+ if (!main || main->program.signal.id == -1) return F_false;
if (main->program.signal_received) {
fll_program_print_signal_received(&main->program.warning, main->program.signal_received);
main->setting.state.step_small = fss_read_allocation_small_d;
- // Identify and pocess first/last parameters.
+ // Identify and process first/last parameters.
if (parameters->array[fss_read_parameter_line_first_no_e].result & f_console_result_found_e) {
main->setting.flag -= main->setting.flag & fss_read_main_flag_print_first_e;
}
choices.array = choices_array;
choices.used = 3;
- const uint8_t modes[3] = { f_color_mode_not_e, f_color_mode_light_e, f_color_mode_dark_e };
+ static const uint8_t modes[3] = { f_color_mode_not_e, f_color_mode_light_e, f_color_mode_dark_e };
main->setting.state.status = fll_program_parameter_process_context(choices, modes, F_true, &main->program);
#if !defined(_di_fss_read_signal_check_) && defined(_di_thread_support_)
f_status_t fss_read_signal_check(fss_read_main_t * const main) {
- if (!main) return F_false;
- if (main->program.signal.id == -1) return F_false;
+ if (!main || main->program.signal.id == -1) return F_false;
if (!((++main->program.signal_check) % fss_read_signal_check_d)) {
if (fll_program_standard_signal_received(&main->program)) {
#if !defined(_di_fss_read_signal_check_) && !defined(_di_thread_support_)
f_status_t fss_read_signal_check(fss_read_main_t * const main) {
- if (!main) return F_false;
- if (main->program.signal.id == -1) return F_false;
+ if (!main || main->program.signal.id == -1) return F_false;
if (main->program.signal_received) {
fll_program_print_signal_received(&main->program.warning, main->program.signal_received);
main->setting.state.step_small = fss_write_allocation_small_d;
- // Identify and pocess first/last parameters.
+ // Identify and process first/last parameters.
if (main->program.parameters.array[fss_write_parameter_line_first_no_e].result & f_console_result_found_e) {
main->setting.flag -= main->setting.flag & fss_write_main_flag_print_first_e;
}
#if !defined(_di_fss_write_signal_check_) && defined(_di_thread_support_)
f_status_t fss_write_signal_check(fss_write_main_t * const main) {
- if (!main) return F_false;
- if (main->program.signal.id == -1) return F_false;
+ if (!main || main->program.signal.id == -1) return F_false;
if (!((++main->program.signal_check) % fss_write_signal_check_d)) {
if (fll_program_standard_signal_received(&main->program)) {
#if !defined(_di_fss_write_signal_check_) && !defined(_di_thread_support_)
f_status_t fss_write_signal_check(fss_write_main_t * const main) {
- if (!main) return F_false;
- if (main->program.signal.id == -1) return F_false;
+ if (!main || main->program.signal.id == -1) return F_false;
if (main->program.signal_received) {
fll_program_print_signal_received(&main->program.warning, main->program.signal_received);
main->setting.state.step_small = iki_read_allocation_small_d;
- // Identify and pocess first/last parameters.
+ // Identify and process first/last parameters.
if (main->program.parameters.array[iki_read_parameter_line_first_no_e].result & f_console_result_found_e) {
main->setting.flag -= main->setting.flag & iki_read_main_flag_print_first_e;
}
#if !defined(_di_iki_read_signal_check_) && defined(_di_thread_support_)
f_status_t iki_read_signal_check(iki_read_main_t * const main) {
- if (!main) return F_false;
- if (main->program.signal.id == -1) return F_false;
+ if (!main || main->program.signal.id == -1) return F_false;
if (!((++main->program.signal_check) % iki_read_signal_check_d)) {
if (fll_program_standard_signal_received(&main->program)) {
#if !defined(_di_iki_read_signal_check_) && !defined(_di_thread_support_)
f_status_t iki_read_signal_check(iki_read_main_t * const main) {
- if (!main) return F_false;
- if (main->program.signal.id == -1) return F_false;
+ if (!main || main->program.signal.id == -1) return F_false;
if (main->program.signal_received) {
fll_program_print_signal_received(&main->program.warning, main->program.signal_received);
main->setting.state.step_small = iki_write_allocation_small_d;
- // Identify and pocess first/last parameters.
+ // Identify and process first/last parameters.
if (main->program.parameters.array[iki_write_parameter_line_first_no_e].result & f_console_result_found_e) {
main->setting.flag -= main->setting.flag & iki_write_main_flag_print_first_e;
}
#if !defined(_di_iki_write_signal_check_) && defined(_di_thread_support_)
f_status_t iki_write_signal_check(iki_write_main_t * const main) {
- if (!main) return F_false;
- if (main->program.signal.id == -1) return F_false;
+ if (!main || main->program.signal.id == -1) return F_false;
if (!((++main->program.signal_check) % iki_write_signal_check_d)) {
if (fll_program_standard_signal_received(&main->program)) {
#if !defined(_di_iki_write_signal_check_) && !defined(_di_thread_support_)
f_status_t iki_write_signal_check(iki_write_main_t * const main) {
- if (!main) return F_false;
- if (main->program.signal.id == -1) return F_false;
+ if (!main || main->program.signal.id == -1) return F_false;
if (main->program.signal_received) {
fll_program_print_signal_received(&main->program.warning, main->program.signal_received);
main->setting.state.step_small = status_code_allocation_small_d;
- // Identify and pocess first/last parameters.
+ // Identify and process first/last parameters.
if (main->program.parameters.array[status_code_parameter_line_first_no_e].result & f_console_result_found_e) {
main->setting.flag -= main->setting.flag & status_code_main_flag_print_first_e;
}
#if !defined(_di_status_code_signal_check_) && defined(_di_thread_support_)
f_status_t status_code_signal_check(status_code_main_t * const main) {
- if (!main) return F_false;
- if (main->program.signal.id == -1) return F_false;
+ if (!main || main->program.signal.id == -1) return F_false;
if (!((++main->program.signal_check) % status_code_signal_check_d)) {
if (fll_program_standard_signal_received(&main->program)) {
#if !defined(_di_status_code_signal_check_) && !defined(_di_thread_support_)
f_status_t status_code_signal_check(status_code_main_t * const main) {
- if (!main) return F_false;
- if (main->program.signal.id == -1) return F_false;
+ if (!main || main->program.signal.id == -1) return F_false;
if (main->program.signal_received) {
fll_program_print_signal_received(&main->program.warning, main->program.signal_received);
main->setting.state.step_small = utf8_allocation_small_d;
- // Identify and pocess first/last parameters.
+ // Identify and process first/last parameters.
if (main->program.parameters.array[utf8_parameter_line_first_no_e].result & f_console_result_found_e) {
main->setting.flag -= main->setting.flag & utf8_main_flag_print_first_e;
}
uint16_t choices_array[2] = { utf8_parameter_from_bytesequence_e, utf8_parameter_from_codepoint_e };
choices.array = choices_array;
choices.used = 2;
+ choice = 0;
main->setting.state.status = f_console_parameter_prioritize_right(main->program.parameters, choices, &choice);
#ifndef _di_utf8_print_data_bytesequence_
f_status_t utf8_print_data_bytesequence(fl_print_t * const print, const f_string_static_t sequence) {
- if (!print->custom) return F_status_set_error(F_output_not);
+ if (!print || !print->custom) return F_status_set_error(F_output_not);
utf8_main_t * const main = (utf8_main_t *) print->custom;
#ifndef _di_utf8_print_data_character_invalid_
f_status_t utf8_print_data_character_invalid(fl_print_t * const print, const f_string_static_t invalid) {
- if (!print->custom) return F_status_set_error(F_output_not);
+ if (!print || !print->custom) return F_status_set_error(F_output_not);
utf8_main_t * const main = (utf8_main_t *) print->custom;
#ifndef _di_utf8_print_data_codepoint_
f_status_t utf8_print_data_codepoint(fl_print_t * const print, const uint32_t codepoint) {
- if (!print->custom) return F_status_set_error(F_output_not);
+ if (!print || !print->custom) return F_status_set_error(F_output_not);
utf8_main_t * const main = (utf8_main_t *) print->custom;
#ifndef _di_utf8_print_data_combining_or_width_
f_status_t utf8_print_data_combining_or_width(fl_print_t * const print, const f_string_static_t sequence) {
- if (!print->custom) return F_status_set_error(F_output_not);
+ if (!print || !print->custom) return F_status_set_error(F_output_not);
utf8_main_t * const main = (utf8_main_t *) print->custom;
#ifndef _di_utf8_print_data_combining_or_width_invalid_
f_status_t utf8_print_data_combining_or_width_invalid(fl_print_t * const print) {
- if (!print->custom) return F_status_set_error(F_output_not);
+ if (!print || !print->custom) return F_status_set_error(F_output_not);
utf8_main_t * const main = (utf8_main_t *) print->custom;
#ifndef _di_utf8_print_data_raw_bytesequence_
f_status_t utf8_print_data_raw_bytesequence(fl_print_t * const print, const f_utf_char_t raw, const uint8_t width) {
- if (!print->custom) return F_status_set_error(F_output_not);
+ if (!print || !print->custom) return F_status_set_error(F_output_not);
utf8_main_t * const main = (utf8_main_t *) print->custom;
#ifndef _di_utf8_print_data_raw_codepoint_
f_status_t utf8_print_data_raw_codepoint(fl_print_t * const print, const f_string_static_t raw) {
- if (!print->custom) return F_status_set_error(F_output_not);
+ if (!print || !print->custom) return F_status_set_error(F_output_not);
utf8_main_t * const main = (utf8_main_t *) print->custom;
#ifndef _di_utf8_print_data_raw_combining_or_width_
f_status_t utf8_print_data_raw_combining_or_width(fl_print_t * const print, const uint8_t width) {
- if (!print->custom) return F_status_set_error(F_output_not);
+ if (!print || !print->custom) return F_status_set_error(F_output_not);
utf8_main_t * const main = (utf8_main_t *) print->custom;
#ifndef _di_utf8_print_data_section_header_file_
f_status_t utf8_print_data_section_header_file(fl_print_t * const print, const f_string_static_t name, const f_number_unsigned_t index) {
- if (!print->custom) return F_status_set_error(F_output_not);
+ if (!print || !print->custom) return F_status_set_error(F_output_not);
utf8_main_t * const main = (utf8_main_t *) print->custom;
#ifndef _di_utf8_print_data_section_header_parameter_
f_status_t utf8_print_data_section_header_parameter(fl_print_t * const print, const f_number_unsigned_t index) {
- if (!print->custom) return F_status_set_error(F_output_not);
+ if (!print || !print->custom) return F_status_set_error(F_output_not);
utf8_main_t * const main = (utf8_main_t *) print->custom;
#ifndef _di_utf8_print_data_section_header_pipe_
f_status_t utf8_print_data_section_header_pipe(fl_print_t * const print) {
- if (!print->custom) return F_status_set_error(F_output_not);
+ if (!print || !print->custom) return F_status_set_error(F_output_not);
utf8_main_t * const main = (utf8_main_t *) print->custom;
#ifndef _di_utf8_print_data_width_
f_status_t utf8_print_data_width(fl_print_t * const print, const f_string_static_t sequence) {
- if (!print->custom) return F_status_set_error(F_output_not);
+ if (!print || !print->custom) return F_status_set_error(F_output_not);
if (print->verbosity < f_console_verbosity_error_e) return F_output_not;
f_status_t status = f_utf_is_wide(sequence.string, sequence.used);
if (status == F_true) {
fl_print_format("%r%r%r", print->to, main->setting.prepend, utf8_string_width_2_s, main->setting.append);
- return F_output_not;
+ return F_none;
}
if (status == F_false) {
if (status == F_true) {
fl_print_format("%r%r%r", print->to, main->setting.prepend, utf8_string_width_1_s, main->setting.append);
- return F_output_not;
+ return F_none;
}
if (status == F_false) {
fl_print_format("%r%r%r", print->to, main->setting.prepend, utf8_string_width_0_s, main->setting.append);
- return F_output_not;
+ return F_none;
}
}
#ifndef _di_utf8_print_error_
f_status_t utf8_print_error(fl_print_t * const print, const f_string_t function) {
- if (!print->custom) return F_status_set_error(F_output_not);
+ if (!print || !print->custom) return F_status_set_error(F_output_not);
if (print->verbosity < f_console_verbosity_error_e) return F_output_not;
fll_error_print(print, F_status_set_fine(((utf8_main_t *) print->custom)->setting.state.status), function, fll_error_file_flag_fallback_e);
#ifndef _di_utf8_print_error_decode_
f_status_t utf8_print_error_decode(fl_print_t * const print, const f_string_static_t invalid) {
- if (!print->custom) return F_status_set_error(F_output_not);
+ if (!print || !print->custom) return F_status_set_error(F_output_not);
if (print->verbosity < f_console_verbosity_error_e) return F_output_not;
utf8_main_t * const main = (utf8_main_t *) print->custom;
#ifndef _di_utf8_print_error_encode_
f_status_t utf8_print_error_encode(fl_print_t * const print, const uint32_t codepoint) {
- if (!print->custom) return F_status_set_error(F_output_not);
+ if (!print || !print->custom) return F_status_set_error(F_output_not);
if (print->verbosity < f_console_verbosity_error_e) return F_output_not;
utf8_main_t * const main = (utf8_main_t *) print->custom;
#ifndef _di_utf8_print_error_file_
f_status_t utf8_print_error_file(fl_print_t * const print, const f_string_t function, const f_string_static_t name, const f_string_static_t operation, const uint8_t type) {
- if (!print->custom) return F_status_set_error(F_output_not);
+ if (!print || !print->custom) return F_status_set_error(F_output_not);
if (print->verbosity < f_console_verbosity_error_e) return F_output_not;
utf8_main_t * const main = (utf8_main_t *) print->custom;
#ifndef _di_utf8_print_error_no_from_
f_status_t utf8_print_error_no_from(fl_print_t * const print) {
+ if (!print) return F_status_set_error(F_output_not);
if (print->verbosity < f_console_verbosity_error_e) return F_output_not;
fll_print_format("%[%QNo from sources are specified, please pipe data, designate a file, or add parameters.%]%r", print->to, print->set->error, print->prefix, print->set->error, f_string_eol_s);
#ifndef _di_utf8_print_error_parameter_file_name_empty_
f_status_t utf8_print_error_parameter_file_name_empty(fl_print_t * const print, const f_number_unsigned_t index) {
+ if (!print) return F_status_set_error(F_output_not);
if (print->verbosity < f_console_verbosity_error_e) return F_output_not;
f_file_stream_lock(print->to);
#ifndef _di_utf8_print_error_parameter_file_not_found_
f_status_t utf8_print_error_parameter_file_not_found(fl_print_t * const print, const bool from, const f_string_static_t name) {
+ if (!print) return F_status_set_error(F_output_not);
if (print->verbosity < f_console_verbosity_error_e) return F_output_not;
f_file_stream_lock(print->to);
#ifndef _di_utf8_print_error_parameter_file_to_too_many_
f_status_t utf8_print_error_parameter_file_to_too_many(fl_print_t * const print) {
+ if (!print) return F_status_set_error(F_output_not);
if (print->verbosity < f_console_verbosity_error_e) return F_output_not;
fll_print_format("%[%QToo many '%r' files specified, there may only be one '%r' file.%]%r", print->to, print->set->error, print->prefix, utf8_string_to_s, utf8_string_to_s, print->set->error, f_string_eol_s);
#if !defined(_di_utf8_signal_check_) && defined(_di_thread_support_)
f_status_t utf8_signal_check(utf8_main_t * const main) {
- if (!main) return F_false;
- if (main->program.signal.id == -1) return F_false;
+ if (!main || main->program.signal.id == -1) return F_false;
if (!((++main->program.signal_check) % utf8_signal_check_d)) {
if (fll_program_standard_signal_received(&main->program)) {
#if !defined(_di_utf8_signal_check_) && !defined(_di_thread_support_)
f_status_t utf8_signal_check(utf8_main_t * const main) {
- if (!main) return F_false;
- if (main->program.signal.id == -1) return F_false;
+ if (!main || main->program.signal.id == -1) return F_false;
if (main->program.signal_received) {
fll_program_print_signal_received(&main->program.warning, main->program.signal_received);