The f_console project already provides the parameters matching these modes.
This makes me think that this is the best place to relocate the verbosity modes.
#endif // _di_f_console_types_t_
/**
+ * Provide the standard verbosity codes.
+ *
+ * Intended to be used for the basic/standard verbosity modes for all programs following this practice.
+ */
+#ifndef _di_f_console_verbosity_
+ enum {
+ f_console_verbosity_quiet = 1,
+ f_console_verbosity_normal,
+ f_console_verbosity_verbose,
+ f_console_verbosity_debug,
+ };
+#endif // _di_f_console_verbosity_
+
+/**
* Provide a structure for describing console parameters for the console processing functions to use.
*
* The short parameters are will be prepended with either '-' or '+'.
}
if (choice == fake_parameter_quiet) {
- data->verbosity = fake_verbosity_quiet;
+ data->verbosity = f_console_verbosity_quiet;
}
else if (choice == fake_parameter_verbose) {
- data->verbosity = fake_verbosity_verbose;
+ data->verbosity = f_console_verbosity_verbose;
}
else if (choice == fake_parameter_debug) {
- data->verbosity = fake_verbosity_debug;
+ data->verbosity = f_console_verbosity_debug;
}
}
break;
}
else if (F_status_is_error(status)) {
- if (data->verbosity != fake_verbosity_quiet) {
+ if (data->verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data->context.set.error, "ERROR: The operation '");
fl_color_print(f_type_error, data->context.set.notable, "%s", operations_name);
} // for
// ensure a newline is always put at the end of the program execution, unless in quiet mode.
- if (data->verbosity != fake_verbosity_quiet) {
+ if (data->verbosity != f_console_verbosity_quiet) {
if (F_status_is_error(status) || status == F_signal) {
fprintf(f_type_error, "%c", f_string_eol[0]);
}
}
}
else {
- if (data->verbosity != fake_verbosity_quiet) {
+ if (data->verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print_line(f_type_error, data->context.set.error, "ERROR: You failed to specify an operation.");
fprintf(f_type_error, "%c", f_string_eol[0]);
#define fake_operations_total 4
#define fake_operations_initialize { 0, 0, 0, 0 }
- enum {
- fake_verbosity_quiet = 1,
- fake_verbosity_normal,
- fake_verbosity_verbose,
- fake_verbosity_debug,
- };
-
#define fake_short_define "d"
#define fake_short_fakefile "f"
#define fake_short_mode "m"
0, \
f_signal_t_initialize, \
0, \
- fake_verbosity_normal, \
+ f_console_verbosity_normal, \
f_string_dynamics_t_initialize, \
f_string_dynamic_t_initialize, \
f_string_dynamics_t_initialize, \
f_string_dynamic_t path_source = f_string_dynamic_t_initialize;
f_string_dynamic_t destination_file = f_string_dynamic_t_initialize;
- if (data.verbosity != fake_verbosity_quiet) {
+ if (data.verbosity != f_console_verbosity_quiet) {
printf("%c", f_string_eol[0]);
fl_color_print_line(f_type_output, data.context.set.important, "Copying %s.", label);
}
fl_directory_recurse_t recurse = fl_directory_recurse_t_initialize;
- if (data.verbosity == fake_verbosity_verbose) {
+ if (data.verbosity == f_console_verbosity_verbose) {
recurse.output = f_type_output;
recurse.verbose = fake_verbose_print_copy;
}
*status = fl_directory_copy_content(path_source.string, destination.string, path_source.used, destination.used, mode, recurse);
if (F_status_is_error(*status)) {
- if (data.verbosity == fake_verbosity_verbose) {
+ if (data.verbosity == f_console_verbosity_verbose) {
for (f_string_length_t j = 0; j < failures.used; j++) {
fake_print_error_build_operation_file(data, F_status_set_fine(*status), "fl_directory_copy_content", "copy contents of", "to", path_source.string, destination.string, F_true);
} // for
break;
}
- else if (data.verbosity != fake_verbosity_quiet) {
+ else if (data.verbosity != f_console_verbosity_quiet) {
fake_print_error_build_operation_file(data, F_status_set_fine(*status), "fl_directory_copy_content", "copy contents of", "to", path_source.string, destination.string, F_true);
}
break;
}
- if (data.verbosity == fake_verbosity_verbose) {
+ if (data.verbosity == f_console_verbosity_verbose) {
printf("Copied file '%s' to '%s'.%c", path_source.string, destination_file.string, f_string_eol[0]);
}
}
&path_headers,
};
- if (data.verbosity != fake_verbosity_quiet) {
+ if (data.verbosity != f_console_verbosity_quiet) {
printf("%c", f_string_eol[0]);
fl_color_print_line(f_type_output, data.context.set.important, "Creating base build directories.");
}
return;
}
- if (data.verbosity == fake_verbosity_verbose) {
+ if (data.verbosity == f_console_verbosity_verbose) {
printf("Created directory '%s'.%c", directorys[i]->string, f_string_eol[0]);
}
} // for
}
// ensure verbosity level is passed to the scripts so that they can also react to requested verbosity.
- if (F_status_is_error_not(*status) && data.verbosity != fake_verbosity_normal) {
+ if (F_status_is_error_not(*status) && data.verbosity != f_console_verbosity_normal) {
char argument[3] = { f_console_symbol_disable, 0, 0 };
- if (data.verbosity == fake_verbosity_quiet) {
+ if (data.verbosity == f_console_verbosity_quiet) {
argument[1] = f_console_standard_short_quiet[0];
}
- else if (data.verbosity == fake_verbosity_verbose) {
+ else if (data.verbosity == f_console_verbosity_verbose) {
argument[1] = f_console_standard_short_verbose[0];
}
- else if (data.verbosity == fake_verbosity_debug) {
+ else if (data.verbosity == f_console_verbosity_debug) {
argument[1] = f_console_standard_short_debug[0];
}
else {
if (F_status_is_error(*status)) {
if (F_status_set_fine(*status) == F_failure) {
- if (data.verbosity != fake_verbosity_quiet) {
+ if (data.verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data.context.set.error, "ERROR: Failed to execute script: ");
fl_color_print(f_type_error, data.context.set.notable, "%s", path.string);
if (F_status_is_error(*status) || f_file_exists(file_stage.string) == F_true) return;
if (!data_build.setting.build_sources_library.used) return;
- if (data.verbosity != fake_verbosity_quiet) {
+ if (data.verbosity != f_console_verbosity_quiet) {
printf("%c", f_string_eol[0]);
fl_color_print_line(f_type_output, data.context.set.important, "Compiling shared library.");
}
*status = f_file_link(parameter_file_name_micro, parameter_file_path);
- if (F_status_is_error_not(*status) && data.verbosity == fake_verbosity_verbose) {
+ if (F_status_is_error_not(*status) && data.verbosity == f_console_verbosity_verbose) {
printf("Linked file '%s' to '%s'.%c", parameter_file_path, parameter_file_name_micro, f_string_eol[0]);
}
else if (F_status_is_error(*status)) {
*status = f_file_link(parameter_file_name_micro, parameter_file_path);
}
- if (F_status_is_error_not(*status) && data.verbosity == fake_verbosity_verbose) {
+ if (F_status_is_error_not(*status) && data.verbosity == f_console_verbosity_verbose) {
printf("Linked file '%s' to '", parameter_file_path);
if (data_build.setting.version_target == fake_build_version_type_major) {
if (F_status_is_error(*status) || f_file_exists(file_stage.string) == F_true) return;
if (!data_build.setting.build_sources_library.used) return;
- if (data.verbosity != fake_verbosity_quiet) {
+ if (data.verbosity != f_console_verbosity_quiet) {
printf("%c", f_string_eol[0]);
fl_color_print_line(f_type_output, data.context.set.important, "Compiling static library.");
}
if (F_status_is_error_not(*status)) {
if (names.used + data_build.setting.environment.used > names.size) {
if (names.used + data_build.setting.environment.used > f_array_length_t_size) {
- if (data.verbosity != fake_verbosity_quiet) {
+ if (data.verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data.context.set.error, "ERROR: The values for the setting '");
fl_color_print(f_type_error, data.context.set.notable, "%s", fake_build_setting_name_environment);
} // for
if (found == F_false) {
- if (data.verbosity != fake_verbosity_quiet) {
+ if (data.verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data.context.set.error, "ERROR: The specified mode '");
fl_color_print(f_type_error, data.context.set.notable, "%s", modes->array[i].string);
if (F_status_is_error(*status)) {
if (*status == F_status_set_error(F_string_too_large)) {
- if (data.verbosity != fake_verbosity_quiet) {
+ if (data.verbosity != f_console_verbosity_quiet) {
// @todo update FSS functions to return which setting index the problem happened on.
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data.context.set.error, "ERROR: A setting in the build setting file '");
if (!settings_single_source[i]->used) continue;
if (settings_single_source[i]->used > 1) {
- if (data.verbosity == fake_verbosity_verbose) {
+ if (data.verbosity == f_console_verbosity_verbose) {
fprintf(f_type_warning, "%c", f_string_eol[0]);
fl_color_print(f_type_warning, data.context.set.warning, "WARNING: the setting '");
fl_color_print(f_type_warning, data.context.set.notable, "%s", settings_single_name[i]);
else {
*settings_single_bool[i] = F_true;
- if (data.verbosity == fake_verbosity_verbose) {
+ if (data.verbosity == f_console_verbosity_verbose) {
fprintf(f_type_warning, "%c", f_string_eol[0]);
fl_color_print(f_type_warning, data.context.set.warning, "WARNING: the setting '");
fl_color_print(f_type_warning, data.context.set.notable, "%s", settings_single_name[i]);
else {
*settings_single_language[i] = fake_build_language_type_c;
- if (data.verbosity == fake_verbosity_verbose) {
+ if (data.verbosity == f_console_verbosity_verbose) {
fprintf(f_type_warning, "%c", f_string_eol[0]);
fl_color_print(f_type_warning, data.context.set.warning, "WARNING: the setting '");
fl_color_print(f_type_warning, data.context.set.notable, "%s", settings_single_name[i]);
else {
*settings_single_version[i] = fake_build_version_type_major;
- if (data.verbosity == fake_verbosity_verbose) {
+ if (data.verbosity == f_console_verbosity_verbose) {
fprintf(f_type_warning, "%c", f_string_eol[0]);
fl_color_print(f_type_warning, data.context.set.warning, "WARNING: the setting '");
fl_color_print(f_type_warning, data.context.set.notable, "%s", settings_single_name[i]);
setting->search_shared = F_false;
}
- if (data.verbosity == fake_verbosity_verbose) {
+ if (data.verbosity == f_console_verbosity_verbose) {
fprintf(f_type_warning, "%c", f_string_eol[0]);
fl_color_print(f_type_warning, data.context.set.error, "WARNING: the parameters '");
fl_color_print(f_type_warning, data.context.set.notable, "%s%s", f_console_symbol_long_enable, fake_long_shared_disabled);
setting->search_static = F_false;
}
- if (data.verbosity == fake_verbosity_verbose) {
+ if (data.verbosity == f_console_verbosity_verbose) {
fprintf(f_type_warning, "%c", f_string_eol[0]);
fl_color_print(f_type_warning, data.context.set.error, "WARNING: the parameters '");
fl_color_print(f_type_warning, data.context.set.notable, "%s%s", f_console_symbol_long_enable, fake_long_static_disabled);
if (setting->build_language == fake_build_language_type_c || setting->build_language == fake_build_language_type_cpp) {
if (setting->build_shared == F_false && setting->build_static == F_false) {
- if (data.verbosity != fake_verbosity_quiet) {
+ if (data.verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data.context.set.error, "ERROR: The build settings '");
fl_color_print(f_type_error, data.context.set.notable, "%s", fake_build_setting_name_build_shared);
if (F_status_is_error(*status) || f_file_exists(file_stage.string) == F_true) return;
if (!data_build.setting.build_sources_library.used) return;
- if (data.verbosity != fake_verbosity_quiet) {
+ if (data.verbosity != f_console_verbosity_quiet) {
printf("%c", f_string_eol[0]);
fl_color_print_line(f_type_output, data.context.set.important, "Compiling static objects.");
}
*status = f_directory_exists(destination_path.string);
if (*status == F_false) {
- if (data.verbosity != fake_verbosity_quiet) {
+ if (data.verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data.context.set.error, "ERROR: The path '");
fl_color_print(f_type_error, data.context.set.notable, "%s", destination_path.string);
break;
}
- if (data.verbosity == fake_verbosity_verbose) {
+ if (data.verbosity == f_console_verbosity_verbose) {
printf("Directory '%s' created.%c", destination_path.string, f_string_eol[0]);
}
}
fake_build_load_setting(data, setting_file, &data_build.setting, &status);
if (F_status_is_fine(status)) {
- if (data.verbosity != fake_verbosity_quiet) {
+ if (data.verbosity != f_console_verbosity_quiet) {
printf("%c", f_string_eol[0]);
fl_color_print(f_type_output, data.context.set.important, "Building project%c", data_build.setting.project_name.used ? ' ' : 0);
if (F_status_is_error(*status) || f_file_exists(file_stage.string) == F_true) return;
if (!data_build.setting.build_sources_program.used) return;
- if (data.verbosity != fake_verbosity_quiet) {
+ if (data.verbosity != f_console_verbosity_quiet) {
printf("%c", f_string_eol[0]);
fl_color_print_line(f_type_output, data.context.set.important, "Compiling shared program.");
}
if (F_status_is_error(*status) || f_file_exists(file_stage.string) == F_true) return;
if (!data_build.setting.build_sources_program.used) return;
- if (data.verbosity != fake_verbosity_quiet) {
+ if (data.verbosity != f_console_verbosity_quiet) {
printf("%c", f_string_eol[0]);
fl_color_print_line(f_type_output, data.context.set.important, "Compiling static program.");
}
f_return_status fake_clean_operate(const fake_data_t data) {
f_status_t status = F_none;
- if (data.verbosity != fake_verbosity_quiet) {
+ if (data.verbosity != f_console_verbosity_quiet) {
printf("%c", f_string_eol[0]);
fl_color_print(f_type_output, data.context.set.important, "Deleting all files within build directory '");
fl_color_print(f_type_output, data.context.set.notable, "%s", data.path_build.string);
return F_signal;
}
- if (data.verbosity == fake_verbosity_verbose) {
+ if (data.verbosity == f_console_verbosity_verbose) {
status = f_directory_remove_custom(data.path_build.string, f_directory_descriptors_max, F_true, fake_clean_remove_recursively_verbosely);
}
else {
}
if (F_status_set_fine(status) == F_file_found_not) {
- if (data.verbosity == fake_verbosity_verbose) {
+ if (data.verbosity == f_console_verbosity_verbose) {
printf("The build directory '%s' does not exist.%c", data.path_build.string, f_string_eol[0]);
}
int fake_execute(const fake_data_t data, const fake_environment_t environment, const f_string_static_t program, const f_string_statics_t arguments, f_status_t *status) {
if (F_status_is_error(*status)) return 1;
- if (data.verbosity == fake_verbosity_verbose) {
+ if (data.verbosity == f_console_verbosity_verbose) {
printf("%s", program.string);
for (f_array_length_t i = 0; i < arguments.used; i++) {
return_code = 1;
if (F_status_set_fine(*status) == F_file_found_not) {
- if (data.verbosity != fake_verbosity_quiet) {
+ if (data.verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data.context.set.error, "ERROR: Failed to find program '");
fl_color_print(f_type_error, data.context.set.notable, "%s", program.used ? program.string : "");
status = f_utf_is_word_dash_plus(arguments.argv[location] + j, width_max, F_false);
if (F_status_is_error(status)) {
- if (fake_print_error(*data, F_status_set_fine(status), "f_utf_is_word_dash_plus", F_false) == F_unknown && data->verbosity != fake_verbosity_quiet) {
+ if (fake_print_error(*data, F_status_set_fine(status), "f_utf_is_word_dash_plus", F_false) == F_unknown && data->verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data->context.set.error, "ERROR: Failed to process the parameter '");
fl_color_print(f_type_error, data->context.set.notable, "%s%s", f_console_symbol_long_enable, fake_long_process);
}
if (status == F_false) {
- if (data->verbosity != fake_verbosity_quiet) {
+ if (data->verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data->context.set.error, "ERROR: The '");
fl_color_print(f_type_error, data->context.set.notable, "%s%s", f_console_symbol_long_enable, fake_long_process);
if (F_status_is_error(status)) {
if (status == F_status_set_error(F_string_too_large)) {
- if (data->verbosity != fake_verbosity_quiet) {
+ if (data->verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data->context.set.error, "ERROR: The parameter '");
fl_color_print(f_type_error, data->context.set.notable, "%s%s", f_console_symbol_long_enable, parameters_name[i]);
}
if (length == 0 || status == F_data_not) {
- if (data->verbosity != fake_verbosity_quiet) {
+ if (data->verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data->context.set.error, "ERROR: The parameter '");
fl_color_print(f_type_error, data->context.set.notable, "%s%s", f_console_symbol_long_enable, parameters_name[i]);
status = fl_console_parameter_to_string_dynamic_directory(arguments.argv[data->parameters[parameters_id[i]].additional.array[0]], parameters_value[i]);
if (F_status_is_error(status)) {
- if (fake_print_error(*data, F_status_set_fine(status), "fl_console_parameter_to_string_dynamic_directory", F_false) == F_unknown && data->verbosity != fake_verbosity_quiet) {
+ if (fake_print_error(*data, F_status_set_fine(status), "fl_console_parameter_to_string_dynamic_directory", F_false) == F_unknown && data->verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data->context.set.error, "ERROR: Failed to process parameter '");
fl_color_print(f_type_error, data->context.set.notable, "%s%s", f_console_symbol_long_enable, parameters_name[i]);
f_macro_string_dynamic_t_new(status, (*parameters_value[i]), parameter_default_lengths[i]);
if (F_status_is_error(status)) {
- if (fake_print_error(*data, F_status_set_fine(status), "f_macro_string_dynamic_t_new", F_false) == F_unknown && data->verbosity != fake_verbosity_quiet) {
+ if (fake_print_error(*data, F_status_set_fine(status), "f_macro_string_dynamic_t_new", F_false) == F_unknown && data->verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data->context.set.error, "ERROR: Failed to load default for the parameter '");
fl_color_print(f_type_error, data->context.set.notable, "%s%s", f_console_symbol_long_enable, parameters_name[i]);
status = fll_program_parameter_additional_rip(arguments.argv, data->parameters[fake_parameter_define].additional, &data->define);
if (F_status_is_error(status)) {
- if (fake_print_error(*data, F_status_set_fine(status), "fll_program_parameter_additional_rip", F_false) == F_unknown && data->verbosity != fake_verbosity_quiet) {
+ if (fake_print_error(*data, F_status_set_fine(status), "fll_program_parameter_additional_rip", F_false) == F_unknown && data->verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data->context.set.error, "ERROR: Failed to process the parameter '");
fl_color_print(f_type_error, data->context.set.notable, "%s%s", f_console_symbol_long_enable, fake_long_define);
status = f_utf_is_word(data->define.array[i].string + j, width_max, F_false);
if (F_status_is_error(status)) {
- if (fake_print_error(*data, F_status_set_fine(status), "f_utf_is_word", F_false) == F_unknown && data->verbosity != fake_verbosity_quiet) {
+ if (fake_print_error(*data, F_status_set_fine(status), "f_utf_is_word", F_false) == F_unknown && data->verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data->context.set.error, "ERROR: Failed to process the parameter '");
fl_color_print(f_type_error, data->context.set.notable, "%s%s", f_console_symbol_long_enable, fake_long_define);
}
if (status == F_false) {
- if (data->verbosity != fake_verbosity_quiet) {
+ if (data->verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data->context.set.error, "ERROR: The '");
fl_color_print(f_type_error, data->context.set.notable, "%s%s", f_console_symbol_long_enable, fake_long_define);
status = fll_program_parameter_additional_rip(arguments.argv, data->parameters[fake_parameter_mode].additional, &data->mode);
if (F_status_is_error(status)) {
- if (fake_print_error(*data, F_status_set_fine(status), "fll_program_parameter_additional_rip", F_false) == F_unknown && data->verbosity != fake_verbosity_quiet) {
+ if (fake_print_error(*data, F_status_set_fine(status), "fll_program_parameter_additional_rip", F_false) == F_unknown && data->verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data->context.set.error, "ERROR: Failed to process the parameter '");
fl_color_print(f_type_error, data->context.set.notable, "%s%s", f_console_symbol_long_enable, fake_long_mode);
status = f_utf_is_word_dash_plus(data->mode.array[i].string + j, width_max, F_false);
if (F_status_is_error(status)) {
- if (fake_print_error(*data, F_status_set_fine(status), "f_utf_is_word_dash_plus", F_false) == F_unknown && data->verbosity != fake_verbosity_quiet) {
+ if (fake_print_error(*data, F_status_set_fine(status), "f_utf_is_word_dash_plus", F_false) == F_unknown && data->verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data->context.set.error, "ERROR: Failed to process the parameter '");
fl_color_print(f_type_error, data->context.set.notable, "%s%s", f_console_symbol_long_enable, fake_long_mode);
}
if (status == F_false) {
- if (data->verbosity != fake_verbosity_quiet) {
+ if (data->verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data->context.set.error, "ERROR: The '");
fl_color_print(f_type_error, data->context.set.notable, "%s%s", f_console_symbol_long_enable, fake_long_mode);
case F_signal_quit:
case F_signal_termination:
- if (data.verbosity != fake_verbosity_quiet) {
+ if (data.verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print_line(f_type_error, data.context.set.error, "ALERT: An appropriate exit signal has been received, now aborting.");
}
return F_status_set_error(status);
}
else if (status == F_exist_not) {
- if (data.verbosity != fake_verbosity_quiet) {
+ if (data.verbosity != f_console_verbosity_quiet) {
fprintf(print.to, "%c", f_string_eol[0]);
fl_color_print(print.to, print.context, "%s: The group name '", print.prefix);
fl_color_print(print.to, data.context.set.notable, "%s", buffer.string);
return F_status_set_error(status);
}
else if (number > f_type_size_32_unsigned) {
- if (data.verbosity != fake_verbosity_quiet) {
+ if (data.verbosity != f_console_verbosity_quiet) {
fprintf(print.to, "%c", f_string_eol[0]);
fl_color_print(print.to, print.context, "%s: The number '", print.prefix);
fl_color_print(print.to, data.context.set.notable, "%llu", number);
f_status_t status = f_file_mode_from_string(buffer.string, data.umask, mode, replace);
if (F_status_is_error(status)) {
- if (data.verbosity != fake_verbosity_quiet) {
+ if (data.verbosity != f_console_verbosity_quiet) {
if (F_status_set_fine(status) == F_syntax) {
fprintf(print.to, "%c", f_string_eol[0]);
fl_color_print(print.to, print.context, "%s: The mode '", print.prefix);
return F_status_set_error(status);
}
else if (status == F_exist_not) {
- if (data.verbosity != fake_verbosity_quiet) {
+ if (data.verbosity != f_console_verbosity_quiet) {
fprintf(print.to, "%c", f_string_eol[0]);
fl_color_print(print.to, print.context, "%s: The user name '", print.prefix);
fl_color_print(print.to, data.context.set.notable, "%s", buffer.string);
return F_status_set_error(status);
}
else if (number > f_type_size_32_unsigned) {
- if (data.verbosity != fake_verbosity_quiet) {
+ if (data.verbosity != f_console_verbosity_quiet) {
fprintf(print.to, "%c", f_string_eol[0]);
fl_color_print(print.to, print.context, "%s: The number '", print.prefix);
fl_color_print(print.to, data.context.set.notable, "%llu", number);
}
if (!data_make->buffer.used) {
- if (data.verbosity == fake_verbosity_verbose) {
+ if (data.verbosity == f_console_verbosity_verbose) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_warning, data.context.set.warning, "WARNING: the fakefile '");
fl_color_print(f_type_warning, data.context.set.notable, "%s", data.file_data_build_fakefile.string);
}
if (missing_main) {
- if (data.verbosity != fake_verbosity_quiet) {
+ if (data.verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data.context.set.error, "ERROR: The fakefile '");
fl_color_print(f_type_error, data.context.set.notable, "%s", data.file_data_build_fakefile.string);
data_make->setting_build.environment.array[data_make->setting_build.environment.used].used--;
data_make->setting_build.environment.used++;
}
- else if (data.verbosity == fake_verbosity_verbose) {
+ else if (data.verbosity == f_console_verbosity_verbose) {
fprintf(f_type_warning, "%c", f_string_eol[0]);
fl_color_print(f_type_warning, data.context.set.warning, "WARNING: The environment name '");
fl_color_print(f_type_warning, data.context.set.notable, "%s", name_define.string);
fl_color_print_line(f_type_warning, data.context.set.warning, "' is already added.");
}
}
- else if (data.verbosity == fake_verbosity_verbose) {
+ else if (data.verbosity == f_console_verbosity_verbose) {
fprintf(f_type_warning, "%c", f_string_eol[0]);
fl_color_print(f_type_warning, data.context.set.warning, "WARNING: The environment name '");
fl_color_print(f_type_warning, data.context.set.notable, "%s", name_define.string);
}
}
else {
- if (data.verbosity != fake_verbosity_quiet) {
+ if (data.verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data.context.set.error, "ERROR: Invalid characters in the define setting name '");
}
}
- if (data.verbosity != fake_verbosity_normal) {
+ if (data.verbosity != f_console_verbosity_normal) {
if (data_make->parameter.verbosity.used >= data_make->parameter.verbosity.size) {
*status = fl_string_dynamics_size_increase(f_memory_default_allocation_step, &data_make->parameter.verbosity);
}
}
- if (data.verbosity == fake_verbosity_quiet) {
+ if (data.verbosity == f_console_verbosity_quiet) {
if (data.parameters[fake_parameter_quiet].type == f_console_type_normal) {
*status = fl_string_append(f_console_symbol_short_enable, 1, &data_make->parameter.verbosity.array[data_make->parameter.verbosity.used]);
}
*status = fl_string_append(f_console_standard_short_quiet, 1, &data_make->parameter.verbosity.array[data_make->parameter.verbosity.used]);
}
}
- else if (data.verbosity == fake_verbosity_verbose) {
+ else if (data.verbosity == f_console_verbosity_verbose) {
if (data.parameters[fake_parameter_verbose].type == f_console_type_normal) {
*status = fl_string_append(f_console_symbol_short_enable, 1, &data_make->parameter.verbosity.array[data_make->parameter.verbosity.used]);
}
*status = fl_string_append(f_console_standard_short_verbose, 1, &data_make->parameter.verbosity.array[data_make->parameter.verbosity.used]);
}
}
- else if (data.verbosity == fake_verbosity_debug) {
+ else if (data.verbosity == f_console_verbosity_debug) {
if (data.parameters[fake_parameter_debug].type == f_console_type_normal) {
*status = fl_string_append(f_console_symbol_short_enable, 1, &data_make->parameter.verbosity.array[data_make->parameter.verbosity.used]);
}
return F_signal;
}
- if (data.verbosity != fake_verbosity_quiet) {
+ if (data.verbosity != f_console_verbosity_quiet) {
printf("%c", f_string_eol[0]);
fl_color_print_line(f_type_output, data.context.set.important, "Making project.");
}
{
f_status_t status_path = f_path_change_at(data_make.path.top);
- if (F_status_is_error(status_path) && data.verbosity == fake_verbosity_verbose) {
+ if (F_status_is_error(status_path) && data.verbosity == f_console_verbosity_verbose) {
fprintf(f_type_warning, "%c", f_string_eol[0]);
fl_color_print(f_type_warning, data.context.set.warning, "WARNING: Failed change back to orignal path '");
fl_color_print(f_type_warning, data.context.set.notable, "%s", data_make.path.stack.array[0].string);
const f_fss_named_t *section = &data_make->fakefile.array[id_section];
- if (data.verbosity != fake_verbosity_quiet) {
+ if (data.verbosity != f_console_verbosity_quiet) {
printf("%c", f_string_eol[0]);
fl_color_print(f_type_output, data.context.set.important, "Processing Section '");
if (i == section->objects.used && (operation_if == fake_make_operation_if_type_true_next || operation_if == fake_make_operation_if_type_false_next || operation_if == fake_make_operation_if_type_else_true || operation_if == fake_make_operation_if_type_else_false)) {
- if (data.verbosity != fake_verbosity_quiet && data_make->print.to) {
+ if (data.verbosity != f_console_verbosity_quiet && data_make->print.to) {
const char *type_name = 0;
if (operation_if == fake_make_operation_if_type_true_next || operation_if == fake_make_operation_if_type_false_next) {
return;
}
- if (data.verbosity == fake_verbosity_verbose) {
+ if (data.verbosity == f_console_verbosity_verbose) {
printf("Breaking as '%s'.", arguments.used ? arguments.array[0].string : fake_make_operation_argument_success);
}
f_string_length_t destination_length = 0;
- if (data.verbosity == fake_verbosity_verbose) {
+ if (data.verbosity == f_console_verbosity_verbose) {
recurse.output = f_type_output;
recurse.verbose = fake_verbose_print_clone;
}
fake_print_message_file(data, F_status_set_fine(status_file), "f_file_clone", arguments.array[i].string, "clone", F_false, F_true, data_make->print);
*status = F_status_set_error(F_failure);
}
- else if (data.verbosity == fake_verbosity_verbose) {
+ else if (data.verbosity == f_console_verbosity_verbose) {
printf("Cloned '%s' to '%s'.%c", arguments.array[i].string, destination, f_string_eol[0]);
}
}
f_macro_mode_t_set_default_umask(mode, data.umask);
- if (data.verbosity == fake_verbosity_verbose) {
+ if (data.verbosity == f_console_verbosity_verbose) {
recurse.output = f_type_output;
recurse.verbose = fake_verbose_print_copy;
}
fake_print_message_file(data, F_status_set_fine(status_file), "f_file_copy", arguments.array[i].string, "copy", F_false, F_true, data_make->print);
*status = F_status_set_error(F_failure);
}
- else if (data.verbosity == fake_verbosity_verbose) {
+ else if (data.verbosity == f_console_verbosity_verbose) {
printf("Copied '%s' to '%s'.%c", arguments.array[i].string, destination, f_string_eol[0]);
}
}
if (F_status_is_error(*status)) {
fake_print_message(data, F_status_set_fine(*status), "f_environment_set", F_true, data_make->print);
}
- else if (data.verbosity == fake_verbosity_verbose) {
+ else if (data.verbosity == f_console_verbosity_verbose) {
printf("Defined environment variable '%s'.%c", arguments.array[0].string, f_string_eol[0]);
}
if (F_status_is_error(*status)) {
if (F_status_set_fine(*status) == F_file_found_not) {
- if (data.verbosity == fake_verbosity_verbose) {
+ if (data.verbosity == f_console_verbosity_verbose) {
fprintf(f_type_warning, "%c", f_string_eol[0]);
fl_color_print(f_type_warning, data.context.set.warning, "WARNING: the file '");
fl_color_print(f_type_warning, data.context.set.notable, "%s", arguments.array[i].string);
}
}
else if (f_macro_file_type_is_directory(file_stat.st_mode)) {
- if (data.verbosity == fake_verbosity_verbose) {
+ if (data.verbosity == f_console_verbosity_verbose) {
*status = f_directory_remove_custom(arguments.array[i].string, recursion_max, F_false, fake_clean_remove_recursively_verbosely);
}
else {
}
if (F_status_set_fine(*status) == F_file_found_not) {
- if (data.verbosity == fake_verbosity_verbose) {
+ if (data.verbosity == f_console_verbosity_verbose) {
printf("The directory '%s' does not exist.%c", arguments.array[i].string, f_string_eol[0]);
}
fake_print_message_file(data, F_status_set_fine(*status), "f_directory_remove", arguments.array[i].string, "delete", F_false, F_true, data_make->print);
return;
}
- else if (data.verbosity == fake_verbosity_verbose) {
+ else if (data.verbosity == f_console_verbosity_verbose) {
printf("Removed '%s'.%c", arguments.array[i].string, f_string_eol[0]);
}
}
fake_print_message_file(data, F_status_set_fine(*status), "f_file_remove", arguments.array[i].string, "delete", F_true, F_true, data_make->print);
return;
}
- else if (data.verbosity == fake_verbosity_verbose) {
+ else if (data.verbosity == f_console_verbosity_verbose) {
printf("Removed '%s'.%c", arguments.array[i].string, f_string_eol[0]);
}
}
return;
}
- if (data.verbosity == fake_verbosity_verbose) {
+ if (data.verbosity == f_console_verbosity_verbose) {
printf("Exiting as '%s'.", arguments.used ? arguments.array[0].string : fake_make_operation_argument_success);
}
data_make->print.to = 0;
}
- if (data.verbosity == fake_verbosity_verbose) {
+ if (data.verbosity == f_console_verbosity_verbose) {
printf("Set failure state to '");
if (data_make->setting_make.fail == fake_make_operation_fail_type_exit) {
fake_print_message_file(data, *status, "f_file_role_change", arguments.array[i].string, "change group of", F_true, F_true, data_make->print);
}
- else if (data.verbosity == fake_verbosity_verbose) {
+ else if (data.verbosity == f_console_verbosity_verbose) {
printf("Changed group of '%s' to %llu.%c", arguments.array[i].string, id, f_string_eol[0]);
}
} // for
fake_print_message_file(data, F_status_set_fine(*status), "fll_file_role_change_all", arguments.array[i].string, "change group of", F_true, F_true, data_make->print);
}
- else if (data.verbosity == fake_verbosity_verbose) {
+ else if (data.verbosity == f_console_verbosity_verbose) {
printf("Changed group of '%s' to %llu.%c", arguments.array[i].string, id, f_string_eol[0]);
}
} // for
*status = F_status_set_error(F_failure);
*operation_if = fake_make_operation_if_type_false_always_next;
- if (data.verbosity != fake_verbosity_quiet && data_make->print.to) {
+ if (data.verbosity != f_console_verbosity_quiet && data_make->print.to) {
printf("%c", f_string_eol[0]);
if ((i == 1 && number_left > f_number_t_size_unsigned) || (i > 1 && number_right > f_number_t_size_unsigned)) {
if (F_status_is_error(*status)) {
fake_print_message_file(data, *status, "f_file_link", arguments.array[1].string, "create link", F_true, F_true, data_make->print);
}
- else if (data.verbosity == fake_verbosity_verbose) {
+ else if (data.verbosity == f_console_verbosity_verbose) {
printf("Created symbolic link from '%s' to '%s'.%c", arguments.array[1].string, arguments.array[0].string, f_string_eol[0]);
}
break;
}
- if (data.verbosity == fake_verbosity_verbose) {
+ if (data.verbosity == f_console_verbosity_verbose) {
printf("Changed mode of '%s' to %#o.%c", arguments.array[i].string, mode, f_string_eol[0]);
}
} // for
break;
}
- if (data.verbosity == fake_verbosity_verbose) {
+ if (data.verbosity == f_console_verbosity_verbose) {
printf("Changed mode of '%s' to %#o.%c", arguments.array[i].string, mode, f_string_eol[0]);
}
} // for
f_string_length_t destination_length = 0;
- if (data.verbosity == fake_verbosity_verbose) {
+ if (data.verbosity == f_console_verbosity_verbose) {
recurse.output = f_type_output;
recurse.verbose = fake_verbose_print_move;
}
fake_print_message_file(data, F_status_set_fine(*status), "f_file_role_change", arguments.array[i].string, "change owner of", F_true, F_true, data_make->print);
break;
}
- else if (data.verbosity == fake_verbosity_verbose) {
+ else if (data.verbosity == f_console_verbosity_verbose) {
printf("Changed owner of '%s' to %d.%c", arguments.array[i].string, id, f_string_eol[0]);
}
} // for
fake_print_message_file(data, F_status_set_fine(*status), "fll_file_role_change_all", arguments.array[i].string, "change owner of", F_true, F_true, data_make->print);
}
- else if (data.verbosity == fake_verbosity_verbose) {
+ else if (data.verbosity == f_console_verbosity_verbose) {
printf("Changed owner of '%s' to %o.%c", arguments.array[i].string, id, f_string_eol[0]);
}
} // for
return;
}
- if (data.verbosity == fake_verbosity_verbose) {
+ if (data.verbosity == f_console_verbosity_verbose) {
*status = fake_make_path_relative(data, data_make->path.stack.array[data_make->path.stack.used - 1], data_make);
if (F_status_is_error(*status)) {
fake_print_message(data, F_status_set_fine(*status), "fake_make_path_relative", F_true, data_make->print);
return;
}
- if (data.verbosity == fake_verbosity_verbose) {
+ if (data.verbosity == f_console_verbosity_verbose) {
*status = fake_make_path_relative(data, data_make->path.stack.array[data_make->path.stack.used], data_make);
if (F_status_is_error(*status)) {
return;
}
- if (data.verbosity == fake_verbosity_verbose) {
+ if (data.verbosity == f_console_verbosity_verbose) {
printf("Changed to project path ''.%c", f_string_eol[0]);
}
}
}
- if (data.verbosity == fake_verbosity_verbose) {
+ if (data.verbosity == f_console_verbosity_verbose) {
printf("Touched %s '", arguments.array[0].string);
f_print_dynamic(f_type_output, arguments.array[i]);
printf("'.%c", f_string_eol[0]);
data_make->environment.values.used++;
} // for
- if (data.verbosity == fake_verbosity_verbose) {
+ if (data.verbosity == f_console_verbosity_verbose) {
printf("%s", program.string);
for (f_array_length_t i = 0; i < arguments.used; i++) {
if (F_status_is_error(status)) {
if (F_status_set_fine(status) == F_file_found_not) {
- if (data.verbosity != fake_verbosity_quiet && data_make->print.to) {
+ if (data.verbosity != f_console_verbosity_quiet && data_make->print.to) {
fprintf(data_make->print.to, "%c", f_string_eol[0]);
fl_color_print(data_make->print.to, data_make->print.context, "%s: Failed to find program '", data_make->print.prefix);
fl_color_print(data_make->print.to, data.context.set.notable, "%s", program.string);
return;
}
- if (data.verbosity != fake_verbosity_quiet && data_make->print.to) {
+ if (data.verbosity != f_console_verbosity_quiet && data_make->print.to) {
fprintf(data_make->print.to, "%c", f_string_eol[0]);
fl_color_print(data_make->print.to, data_make->print.context, "%s: Failed with return code '", data_make->print.prefix);
fl_color_print(data_make->print.to, data.context.set.notable, "%s", data_make->setting_make.parameter.array[0].value.array[0].string);
if (operation == fake_make_operation_type_index || operation == fake_make_operation_type_run || operation == fake_make_operation_type_shell) {
if (!arguments.used) {
- if (data.verbosity != fake_verbosity_quiet && data_make->print.to) {
+ if (data.verbosity != f_console_verbosity_quiet && data_make->print.to) {
printf("%c", f_string_eol[0]);
fl_color_print_line(data_make->print.to, data_make->print.context, "%s: Requires more arguments.", data_make->print.prefix);
}
else if (operation == fake_make_operation_type_index) {
if (!data_make->setting_build.build_indexer.used) {
- if (data.verbosity != fake_verbosity_quiet && data_make->print.to) {
+ if (data.verbosity != f_console_verbosity_quiet && data_make->print.to) {
fprintf(data_make->print.to, "%c", f_string_eol[0]);
fl_color_print(data_make->print.to, data_make->print.context, "%s: No indexer has been specified, cannot perform '", data_make->print.prefix);
fl_color_print(data_make->print.to, data.context.set.notable, fake_make_operation_index);
if (operation == fake_make_operation_type_break) {
if (arguments.used > 1) {
- if (data.verbosity != fake_verbosity_quiet && data_make->print.to) {
+ if (data.verbosity != f_console_verbosity_quiet && data_make->print.to) {
printf("%c", f_string_eol[0]);
fl_color_print_line(data_make->print.to, data_make->print.context, "%s: Has too many arguments.", data_make->print.prefix);
}
if (fl_string_dynamic_compare_string(fake_make_operation_argument_success, arguments.array[0], fake_make_operation_argument_success_length) == F_equal_to_not) {
if (fl_string_dynamic_compare_string(fake_make_operation_argument_failure, arguments.array[0], fake_make_operation_argument_failure_length) == F_equal_to_not) {
- if (data.verbosity != fake_verbosity_quiet && data_make->print.to) {
+ if (data.verbosity != f_console_verbosity_quiet && data_make->print.to) {
printf("%c", f_string_eol[0]);
fl_color_print(data_make->print.to, data_make->print.context, "%s: Unsupported break type '", data_make->print.prefix);
fl_color_print(data_make->print.to, data.context.set.notable, "%s", arguments.array[0].string);
if (operation == fake_make_operation_type_build) {
if (arguments.used > 1) {
- if (data.verbosity != fake_verbosity_quiet && data_make->print.to) {
+ if (data.verbosity != f_console_verbosity_quiet && data_make->print.to) {
printf("%c", f_string_eol[0]);
fl_color_print_line(data_make->print.to, data_make->print.context, "%s: Has too many arguments.", data_make->print.prefix);
}
f_status_t status_file = f_file_is(path_file, f_file_type_regular, F_false);
if (status_file == F_file_found_not) {
- if (data.verbosity != fake_verbosity_quiet && data_make->print.to) {
+ if (data.verbosity != f_console_verbosity_quiet && data_make->print.to) {
printf("%c", f_string_eol[0]);
fl_color_print(data_make->print.to, data_make->print.context, "%s: Failed to find file '", data_make->print.prefix);
fl_color_print(data_make->print.to, data.context.set.notable, "%s", path_file);
*status = status_file;
}
else if (!status_file) {
- if (data.verbosity != fake_verbosity_quiet && data_make->print.to) {
+ if (data.verbosity != f_console_verbosity_quiet && data_make->print.to) {
printf("%c", f_string_eol[0]);
fl_color_print(data_make->print.to, data_make->print.context, "%s: The file '", data_make->print.prefix);
fl_color_print(data_make->print.to, data.context.set.notable, "%s", path_file);
}
}
else {
- if (data.verbosity != fake_verbosity_quiet && data_make->print.to) {
+ if (data.verbosity != f_console_verbosity_quiet && data_make->print.to) {
printf("%c", f_string_eol[0]);
fl_color_print_line(data_make->print.to, data_make->print.context, "%s: Filename argument must not be an empty string.", data_make->print.prefix);
}
if (operation == fake_make_operation_type_clean || operation == fake_make_operation_type_pop || operation == fake_make_operation_type_top || operation == fake_make_operation_type_skeleton) {
if (arguments.used) {
- if (data.verbosity != fake_verbosity_quiet && data_make->print.to) {
+ if (data.verbosity != f_console_verbosity_quiet && data_make->print.to) {
printf("%c", f_string_eol[0]);
fl_color_print_line(data_make->print.to, data_make->print.context, "%s: Has too many arguments.", data_make->print.prefix);
}
else if (operation == fake_make_operation_type_pop) {
if (data_make->path.stack.used == 1) {
- if (data.verbosity != fake_verbosity_quiet && data_make->print.to) {
+ if (data.verbosity != f_console_verbosity_quiet && data_make->print.to) {
printf("%c", f_string_eol[0]);
fl_color_print_line(data_make->print.to, data_make->print.context, "%s: Must not attempt to pop project root off of path stack.", data_make->print.prefix);
}
for (f_array_length_t i = 0; i < arguments.used - 1; i++) {
if (f_file_exists(arguments.array[i].string) != F_true) {
- if (data.verbosity != fake_verbosity_quiet && data_make->print.to) {
+ if (data.verbosity != f_console_verbosity_quiet && data_make->print.to) {
printf("%c", f_string_eol[0]);
fl_color_print(data_make->print.to, data_make->print.context, "%s: Failed to find file '", data_make->print.prefix);
fl_color_print(data_make->print.to, data.context.set.notable, "%s", arguments.array[i].string);
f_status_t status_file = f_directory_is(arguments.array[arguments.used - 1].string);
if (status_file == F_false || status_file == F_file_found_not) {
- if (data.verbosity != fake_verbosity_quiet && data_make->print.to) {
+ if (data.verbosity != f_console_verbosity_quiet && data_make->print.to) {
printf("%c", f_string_eol[0]);
fl_color_print(data_make->print.to, data_make->print.context, "%s: The last file '", data_make->print.prefix);
fl_color_print(data_make->print.to, data.context.set.notable, "%s", arguments.array[arguments.used - 1].string);
status_file = f_directory_is(arguments.array[1].string);
if (status_file == F_false) {
- if (data.verbosity != fake_verbosity_quiet && data_make->print.to) {
+ if (data.verbosity != f_console_verbosity_quiet && data_make->print.to) {
printf("%c", f_string_eol[0]);
fl_color_print(data_make->print.to, data_make->print.context, "%s: The last file '", data_make->print.prefix);
fl_color_print(data_make->print.to, data.context.set.notable, "%s", arguments.array[arguments.used - 1].string);
}
}
else {
- if (data.verbosity != fake_verbosity_quiet && data_make->print.to) {
+ if (data.verbosity != f_console_verbosity_quiet && data_make->print.to) {
printf("%c", f_string_eol[0]);
fl_color_print_line(data_make->print.to, data_make->print.context, "%s: Requires more arguments.", data_make->print.prefix);
}
if (operation == fake_make_operation_type_compile) {
if (!arguments.used) {
- if (data.verbosity != fake_verbosity_quiet && data_make->print.to) {
+ if (data.verbosity != f_console_verbosity_quiet && data_make->print.to) {
printf("%c", f_string_eol[0]);
fl_color_print_line(data_make->print.to, data_make->print.context, "%s: Requires more arguments.", data_make->print.prefix);
}
*status = F_status_set_error(F_failure);
}
else if (data_make->setting_build.build_compiler.used) {
- if (data.verbosity != fake_verbosity_quiet && data_make->print.to) {
+ if (data.verbosity != f_console_verbosity_quiet && data_make->print.to) {
fprintf(data_make->print.to, "%c", f_string_eol[0]);
fl_color_print(data_make->print.to, data_make->print.context, "%s: No compiler has been specified, cannot perform '", data_make->print.prefix);
fl_color_print(data_make->print.to, data.context.set.notable, fake_make_operation_compile);
for (f_array_length_t i = 0; i < arguments.used - 1; i++) {
if (f_file_exists(arguments.array[i].string) != F_true) {
- if (data.verbosity != fake_verbosity_quiet && data_make->print.to) {
+ if (data.verbosity != f_console_verbosity_quiet && data_make->print.to) {
printf("%c", f_string_eol[0]);
fl_color_print(data_make->print.to, data_make->print.context, "%s: Failed to find file '", data_make->print.prefix);
fl_color_print(data_make->print.to, data.context.set.notable, "%s", arguments.array[i].string);
f_status_t status_file = f_directory_is(arguments.array[arguments.used - 1].string);
if (status_file == F_false || status_file == F_file_found_not) {
- if (data.verbosity != fake_verbosity_quiet && data_make->print.to) {
+ if (data.verbosity != f_console_verbosity_quiet && data_make->print.to) {
printf("%c", f_string_eol[0]);
fl_color_print(data_make->print.to, data_make->print.context, "%s: The last file '", data_make->print.prefix);
fl_color_print(data_make->print.to, data.context.set.notable, "%s", arguments.array[arguments.used - 1].string);
status_file = f_directory_is(arguments.array[1].string);
if (status_file == F_false) {
- if (data.verbosity != fake_verbosity_quiet && data_make->print.to) {
+ if (data.verbosity != f_console_verbosity_quiet && data_make->print.to) {
printf("%c", f_string_eol[0]);
fl_color_print(data_make->print.to, data_make->print.context, "%s: The last file '", data_make->print.prefix);
fl_color_print(data_make->print.to, data.context.set.notable, "%s", arguments.array[arguments.used - 1].string);
}
}
else {
- if (data.verbosity != fake_verbosity_quiet && data_make->print.to) {
+ if (data.verbosity != f_console_verbosity_quiet && data_make->print.to) {
printf("%c", f_string_eol[0]);
fl_color_print_line(data_make->print.to, data_make->print.context, "%s: Requires more arguments.", data_make->print.prefix);
}
} // for
}
else {
- if (data.verbosity != fake_verbosity_quiet && data_make->print.to) {
+ if (data.verbosity != f_console_verbosity_quiet && data_make->print.to) {
printf("%c", f_string_eol[0]);
fl_color_print_line(data_make->print.to, data_make->print.context, "%s: Requires more arguments.", data_make->print.prefix);
}
*status = fake_make_operate_validate_define_name(arguments.array[0]);
if (*status == F_none) {
- if (data.verbosity != fake_verbosity_quiet && data_make->print.to) {
+ if (data.verbosity != f_console_verbosity_quiet && data_make->print.to) {
printf("%c", f_string_eol[0]);
fl_color_print_line(data_make->print.to, data_make->print.context, "%s: Define name must not be an empty string.", data_make->print.prefix);
}
*status = F_status_set_error(F_failure);
}
else if (*status == F_false) {
- if (data.verbosity != fake_verbosity_quiet && data_make->print.to) {
+ if (data.verbosity != f_console_verbosity_quiet && data_make->print.to) {
fprintf(data_make->print.to, "%c", f_string_eol[0]);
fl_color_print(data_make->print.to, data_make->print.context, "%s: Invalid characters in the define setting name '", data_make->print.prefix);
}
}
else {
- if (data.verbosity != fake_verbosity_quiet && data_make->print.to) {
+ if (data.verbosity != f_console_verbosity_quiet && data_make->print.to) {
printf("%c", f_string_eol[0]);
fl_color_print_line(data_make->print.to, data_make->print.context, "%s: Requires more arguments.", data_make->print.prefix);
}
if (operation == fake_make_operation_type_else) {
if (*operation_if == fake_make_operation_if_type_else_true || *operation_if == fake_make_operation_if_type_else_false) {
- if (data.verbosity != fake_verbosity_quiet && data_make->print.to) {
+ if (data.verbosity != f_console_verbosity_quiet && data_make->print.to) {
printf("%c", f_string_eol[0]);
fl_color_print(data_make->print.to, data_make->print.context, "%s: Must not be used after another '", data_make->print.prefix);
fl_color_print(data_make->print.to, data.context.set.notable, "else");
}
if (*operation_if == fake_make_operation_if_type_true || *operation_if == fake_make_operation_if_type_false || *operation_if == fake_make_operation_if_type_false_always) {
- if (data.verbosity != fake_verbosity_quiet && data_make->print.to) {
+ if (data.verbosity != f_console_verbosity_quiet && data_make->print.to) {
printf("%c", f_string_eol[0]);
fl_color_print(data_make->print.to, data_make->print.context, "%s: Must not be used inside an ", data_make->print.prefix);
fl_color_print(data_make->print.to, data.context.set.notable, "if");
}
if (*operation_if != fake_make_operation_if_type_else_true_next && *operation_if != fake_make_operation_if_type_else_false_next && *operation_if != fake_make_operation_if_type_else_false_next_always) {
- if (data.verbosity != fake_verbosity_quiet && data_make->print.to) {
+ if (data.verbosity != f_console_verbosity_quiet && data_make->print.to) {
printf("%c", f_string_eol[0]);
fl_color_print_line(data_make->print.to, data_make->print.context, "%s: Has no preceding if condition.", data_make->print.prefix);
}
}
if (arguments.used) {
- if (data.verbosity != fake_verbosity_quiet && data_make->print.to) {
+ if (data.verbosity != f_console_verbosity_quiet && data_make->print.to) {
printf("%c", f_string_eol[0]);
fl_color_print_line(data_make->print.to, data_make->print.context, "%s: Has too many arguments.", data_make->print.prefix);
}
if (operation == fake_make_operation_type_exit) {
if (arguments.used > 1) {
- if (data.verbosity != fake_verbosity_quiet && data_make->print.to) {
+ if (data.verbosity != f_console_verbosity_quiet && data_make->print.to) {
printf("%c", f_string_eol[0]);
fl_color_print_line(data_make->print.to, data_make->print.context, "%s: Has too many arguments.", data_make->print.prefix);
}
if (fl_string_dynamic_compare_string(fake_make_operation_argument_success, arguments.array[0], fake_make_operation_argument_success_length) == F_equal_to_not) {
if (fl_string_dynamic_compare_string(fake_make_operation_argument_failure, arguments.array[0], fake_make_operation_argument_failure_length) == F_equal_to_not) {
- if (data.verbosity != fake_verbosity_quiet && data_make->print.to) {
+ if (data.verbosity != f_console_verbosity_quiet && data_make->print.to) {
printf("%c", f_string_eol[0]);
fl_color_print(data_make->print.to, data_make->print.context, "%s: Unsupported exit type '", data_make->print.prefix);
fl_color_print(data_make->print.to, data.context.set.notable, "%s", arguments.array[0].string);
if (fl_string_dynamic_compare_string(fake_make_operation_argument_warn, arguments.array[0], fake_make_operation_argument_warn_length) == F_equal_to_not) {
if (fl_string_dynamic_compare_string(fake_make_operation_argument_ignore, arguments.array[0], fake_make_operation_argument_ignore_length) == F_equal_to_not) {
- if (data.verbosity != fake_verbosity_quiet && data_make->print.to) {
+ if (data.verbosity != f_console_verbosity_quiet && data_make->print.to) {
printf("%c", f_string_eol[0]);
fl_color_print(data_make->print.to, data_make->print.context, "%s: Unsupported fail type '", data_make->print.prefix);
fl_color_print(data_make->print.to, data.context.set.notable, "%s", arguments.array[0].string);
}
}
else {
- if (data.verbosity != fake_verbosity_quiet && data_make->print.to) {
+ if (data.verbosity != f_console_verbosity_quiet && data_make->print.to) {
printf("%c", f_string_eol[0]);
fl_color_print_line(data_make->print.to, data_make->print.context, "%s: Requires more arguments.", data_make->print.prefix);
}
status_file = f_file_is(arguments.array[i].string, f_file_type_regular, F_false);
if (status_file == F_file_found_not) {
- if (data.verbosity != fake_verbosity_quiet && data_make->print.to) {
+ if (data.verbosity != f_console_verbosity_quiet && data_make->print.to) {
printf("%c", f_string_eol[0]);
fl_color_print(data_make->print.to, data_make->print.context, "%s: Failed to find file '", data_make->print.prefix);
fl_color_print(data_make->print.to, data.context.set.notable, "%s", arguments.array[i].string);
*status = F_status_set_error(status_file);
}
else if (F_status_is_error(status_file)) {
- if (data.verbosity != fake_verbosity_quiet && data_make->print.to) {
+ if (data.verbosity != f_console_verbosity_quiet && data_make->print.to) {
fake_print_message_file(data, *status, "f_file_is", arguments.array[i].string, "find", F_true, F_true, data_make->print);
}
return;
}
- if (data.verbosity != fake_verbosity_quiet && data_make->print.to) {
+ if (data.verbosity != f_console_verbosity_quiet && data_make->print.to) {
printf("%c", f_string_eol[0]);
fl_color_print_line(data_make->print.to, data_make->print.context, "%s: Requires more arguments.", data_make->print.prefix);
}
if (operation == fake_make_operation_type_if) {
if (*operation_if == fake_make_operation_if_type_true || *operation_if == fake_make_operation_if_type_false || *operation_if == fake_make_operation_if_type_false_always) {
- if (data.verbosity != fake_verbosity_quiet && data_make->print.to) {
+ if (data.verbosity != f_console_verbosity_quiet && data_make->print.to) {
printf("%c", f_string_eol[0]);
fl_color_print(data_make->print.to, data_make->print.context, "%s: Must not be used after another '", data_make->print.prefix);
fl_color_print(data_make->print.to, data.context.set.notable, "if");
} // for
if (i == 14) {
- if (data.verbosity != fake_verbosity_quiet && data_make->print.to) {
+ if (data.verbosity != f_console_verbosity_quiet && data_make->print.to) {
printf("%c", f_string_eol[0]);
fl_color_print(data_make->print.to, data_make->print.context, "%s: Unsupported if type '", data_make->print.prefix);
fl_color_print(data_make->print.to, data.context.set.notable, "%s", arguments.array[0].string);
if (arguments.used >= if_type_minimum[i]) {
if (*operation_if == fake_make_operation_if_type_if_success || *operation_if == fake_make_operation_if_type_if_failure) {
if (arguments.used > if_type_minimum[i]) {
- if (data.verbosity != fake_verbosity_quiet && data_make->print.to) {
+ if (data.verbosity != f_console_verbosity_quiet && data_make->print.to) {
printf("%c", f_string_eol[0]);
fl_color_print_line(data_make->print.to, data_make->print.context, "%s: Has too many arguments.", data_make->print.prefix);
}
if (*operation_if == fake_make_operation_if_type_if_mode) {
if (fl_string_dynamic_compare_string(fake_make_operation_argument_is, arguments.array[1], fake_make_operation_argument_is_length) == F_equal_to_not) {
if (fl_string_dynamic_compare_string(fake_make_operation_argument_has, arguments.array[1], fake_make_operation_argument_has_length) == F_equal_to_not) {
- if (data.verbosity != fake_verbosity_quiet && data_make->print.to) {
+ if (data.verbosity != f_console_verbosity_quiet && data_make->print.to) {
printf("%c", f_string_eol[0]);
fl_color_print(data_make->print.to, data_make->print.context, "%s: Unsupported mode type '", data_make->print.prefix);
fl_color_print(data_make->print.to, data.context.set.notable, "%s", arguments.array[1].string);
type_file |= 0x40;
}
else {
- if (data.verbosity != fake_verbosity_quiet && data_make->print.to) {
+ if (data.verbosity != f_console_verbosity_quiet && data_make->print.to) {
printf("%c", f_string_eol[0]);
fl_color_print(data_make->print.to, data_make->print.context, "%s: Unsupported file type '", data_make->print.prefix);
fl_color_print(data_make->print.to, data.context.set.notable, "%s", arguments.array[i].string);
if (fl_string_dynamic_compare_string(fake_make_operation_argument_environment, arguments.array[1], fake_make_operation_argument_environment_length) == F_equal_to_not) {
if (fl_string_dynamic_compare_string(fake_make_operation_argument_parameter, arguments.array[1], fake_make_operation_argument_parameter_length) == F_equal_to_not) {
- if (data.verbosity != fake_verbosity_quiet && data_make->print.to) {
+ if (data.verbosity != f_console_verbosity_quiet && data_make->print.to) {
printf("%c", f_string_eol[0]);
fl_color_print(data_make->print.to, data_make->print.context, "%s: Unsupported define type '", data_make->print.prefix);
fl_color_print(data_make->print.to, data.context.set.notable, "%s", arguments.array[1].string);
if (*operation_if == fake_make_operation_if_type_if_equal || *operation_if == fake_make_operation_if_type_if_equal_not) {
if (arguments.used < 3) {
- if (data.verbosity != fake_verbosity_quiet && data_make->print.to) {
+ if (data.verbosity != f_console_verbosity_quiet && data_make->print.to) {
printf("%c", f_string_eol[0]);
fl_color_print_line(data_make->print.to, data_make->print.context, "%s: Requires more arguments.", data_make->print.prefix);
}
if (*operation_if == fake_make_operation_if_type_if_greater || *operation_if == fake_make_operation_if_type_if_greater_equal || *operation_if == fake_make_operation_if_type_if_less || *operation_if == fake_make_operation_if_type_if_less_equal) {
if (arguments.used < 3) {
- if (data.verbosity != fake_verbosity_quiet && data_make->print.to) {
+ if (data.verbosity != f_console_verbosity_quiet && data_make->print.to) {
printf("%c", f_string_eol[0]);
fl_color_print_line(data_make->print.to, data_make->print.context, "%s: Requires more arguments.", data_make->print.prefix);
}
if (F_status_is_error(status_number)) {
*status = F_status_set_error(F_failure);
- if (data.verbosity != fake_verbosity_quiet && data_make->print.to) {
+ if (data.verbosity != f_console_verbosity_quiet && data_make->print.to) {
printf("%c", f_string_eol[0]);
if (number > f_number_t_size_unsigned) {
}
}
- if (data.verbosity != fake_verbosity_quiet && data_make->print.to) {
+ if (data.verbosity != f_console_verbosity_quiet && data_make->print.to) {
printf("%c", f_string_eol[0]);
fl_color_print_line(data_make->print.to, data_make->print.context, "%s: Requires more arguments.", data_make->print.prefix);
}
if (operation == fake_make_operation_type_link) {
if (arguments.used > 2) {
- if (data.verbosity != fake_verbosity_quiet && data_make->print.to) {
+ if (data.verbosity != f_console_verbosity_quiet && data_make->print.to) {
printf("%c", f_string_eol[0]);
fl_color_print_line(data_make->print.to, data_make->print.context, "%s: Has too many arguments.", data_make->print.prefix);
}
}
}
else {
- if (data.verbosity != fake_verbosity_quiet && data_make->print.to) {
+ if (data.verbosity != f_console_verbosity_quiet && data_make->print.to) {
printf("%c", f_string_eol[0]);
fl_color_print_line(data_make->print.to, data_make->print.context, "%s: Requires more arguments.", data_make->print.prefix);
}
for (f_array_length_t i = 0; i < arguments.used - 1; i++) {
if (f_file_exists(arguments.array[i].string) != F_true) {
- if (data.verbosity != fake_verbosity_quiet && data_make->print.to) {
+ if (data.verbosity != f_console_verbosity_quiet && data_make->print.to) {
printf("%c", f_string_eol[0]);
fl_color_print(data_make->print.to, data_make->print.context, "%s: Failed to find file '", data_make->print.prefix);
fl_color_print(data_make->print.to, data.context.set.notable, "%s", arguments.array[i].string);
f_status_t status_file = f_directory_is(arguments.array[arguments.used - 1].string);
if (status_file == F_false || status_file == F_file_found_not) {
- if (data.verbosity != fake_verbosity_quiet && data_make->print.to) {
+ if (data.verbosity != f_console_verbosity_quiet && data_make->print.to) {
printf("%c", f_string_eol[0]);
fl_color_print(data_make->print.to, data_make->print.context, "%s: The last file '", data_make->print.prefix);
fl_color_print(data_make->print.to, data.context.set.notable, "%s", arguments.array[arguments.used - 1].string);
status_file = f_directory_is(arguments.array[1].string);
if (status_file == F_false) {
- if (data.verbosity != fake_verbosity_quiet && data_make->print.to) {
+ if (data.verbosity != f_console_verbosity_quiet && data_make->print.to) {
printf("%c", f_string_eol[0]);
fl_color_print(data_make->print.to, data_make->print.context, "%s: The last file '", data_make->print.prefix);
fl_color_print(data_make->print.to, data.context.set.notable, "%s", arguments.array[arguments.used - 1].string);
}
}
else {
- if (data.verbosity != fake_verbosity_quiet && data_make->print.to) {
+ if (data.verbosity != f_console_verbosity_quiet && data_make->print.to) {
printf("%c", f_string_eol[0]);
fl_color_print_line(data_make->print.to, data_make->print.context, "%s: Requires more arguments.", data_make->print.prefix);
}
if (operation == fake_make_operation_type_operate) {
if (arguments.used > 1) {
- if (data.verbosity != fake_verbosity_quiet && data_make->print.to) {
+ if (data.verbosity != f_console_verbosity_quiet && data_make->print.to) {
printf("%c", f_string_eol[0]);
fl_color_print_line(data_make->print.to, data_make->print.context, "%s: Has too many arguments.", data_make->print.prefix);
}
}
}
else {
- if (data.verbosity != fake_verbosity_quiet && data_make->print.to) {
+ if (data.verbosity != f_console_verbosity_quiet && data_make->print.to) {
printf("%c", f_string_eol[0]);
fl_color_print_line(data_make->print.to, data_make->print.context, "%s: Requires more arguments.", data_make->print.prefix);
}
if (operation == fake_make_operation_type_to) {
if (arguments.used > 1) {
- if (data.verbosity != fake_verbosity_quiet && data_make->print.to) {
+ if (data.verbosity != f_console_verbosity_quiet && data_make->print.to) {
printf("%c", f_string_eol[0]);
fl_color_print_line(data_make->print.to, data_make->print.context, "%s: Has too many arguments.", data_make->print.prefix);
}
f_status_t status_file = f_file_is(arguments.array[0].string, f_file_type_directory, F_false);
if (status_file == F_file_found_not) {
- if (data.verbosity != fake_verbosity_quiet && data_make->print.to) {
+ if (data.verbosity != f_console_verbosity_quiet && data_make->print.to) {
printf("%c", f_string_eol[0]);
fl_color_print(data_make->print.to, data_make->print.context, "%s: Failed to find file '", data_make->print.prefix);
fl_color_print(data_make->print.to, data.context.set.notable, "%s", arguments.array[0].string);
*status = F_status_set_error(status_file);
}
else if (F_status_is_error(status_file)) {
- if (data.verbosity != fake_verbosity_quiet && data_make->print.to) {
+ if (data.verbosity != f_console_verbosity_quiet && data_make->print.to) {
fake_print_message_file(data, *status, "f_file_is", data.file_data_build_fakefile.string, "find", F_true, F_true, data_make->print);
}
*status = status_file;
}
else if (!status_file) {
- if (data.verbosity != fake_verbosity_quiet && data_make->print.to) {
+ if (data.verbosity != f_console_verbosity_quiet && data_make->print.to) {
printf("%c", f_string_eol[0]);
fl_color_print(data_make->print.to, data_make->print.context, "%s: The file '", data_make->print.prefix);
fl_color_print(data_make->print.to, data.context.set.notable, "%s", arguments.array[0].string);
}
}
else {
- if (data.verbosity != fake_verbosity_quiet && data_make->print.to) {
+ if (data.verbosity != f_console_verbosity_quiet && data_make->print.to) {
printf("%c", f_string_eol[0]);
fl_color_print_line(data_make->print.to, data_make->print.context, "%s: Filename argument must not be an empty string.", data_make->print.prefix);
}
}
}
else {
- if (data.verbosity != fake_verbosity_quiet && data_make->print.to) {
+ if (data.verbosity != f_console_verbosity_quiet && data_make->print.to) {
printf("%c", f_string_eol[0]);
fl_color_print_line(data_make->print.to, data_make->print.context, "%s: Requires more arguments.", data_make->print.prefix);
}
if (fl_string_dynamic_compare_string(fake_make_operation_argument_file, arguments.array[0], fake_make_operation_argument_file_length) == F_equal_to_not) {
if (fl_string_dynamic_compare_string(fake_make_operation_argument_directory, arguments.array[0], fake_make_operation_argument_directory_length) == F_equal_to_not) {
- if (data.verbosity != fake_verbosity_quiet && data_make->print.to) {
+ if (data.verbosity != f_console_verbosity_quiet && data_make->print.to) {
printf("%c", f_string_eol[0]);
fl_color_print(data_make->print.to, data_make->print.context, "%s: Unsupported file type '", data_make->print.prefix);
fl_color_print(data_make->print.to, data.context.set.notable, "%s", arguments.array[0].string);
} // for
}
else {
- if (data.verbosity != fake_verbosity_quiet && data_make->print.to) {
+ if (data.verbosity != f_console_verbosity_quiet && data_make->print.to) {
printf("%c", f_string_eol[0]);
fl_color_print_line(data_make->print.to, data_make->print.context, "%s: Requires more arguments.", data_make->print.prefix);
}
bool fake_print_error_build_operation_file(const fake_data_t data, const f_status_t status, const f_string_t function, const f_string_t operation, const f_string_t how, const f_string_t source, const f_string_t destination, const bool fallback) {
if (status == F_file_found_not) {
- if (data.verbosity != fake_verbosity_quiet) {
+ if (data.verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data.context.set.error, "ERROR: Failed to find '");
}
if (status == F_parameter) {
- if (data.verbosity != fake_verbosity_quiet) {
+ if (data.verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data.context.set.error, "INTERNAL ERROR: Invalid parameter when calling ");
fl_color_print(f_type_error, data.context.set.notable, "%s", function);
}
if (status == F_name) {
- if (data.verbosity != fake_verbosity_quiet) {
+ if (data.verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data.context.set.error, "ERROR: Invalid name for '");
fl_color_print(f_type_error, data.context.set.notable, "%s", source);
}
if (status == F_memory_out) {
- if (data.verbosity != fake_verbosity_quiet) {
+ if (data.verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data.context.set.error, "CRITICAL ERROR: Unable to allocate memory, while trying to %s '", operation);
fl_color_print(f_type_error, data.context.set.notable, "%s", source);
}
if (status == F_number_overflow) {
- if (data.verbosity != fake_verbosity_quiet) {
+ if (data.verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data.context.set.error, "ERROR: Overflow while trying to %s '", operation);
}
if (status == F_directory) {
- if (data.verbosity != fake_verbosity_quiet) {
+ if (data.verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data.context.set.error, "ERROR: Invalid directory while trying to %s '", operation);
fl_color_print(f_type_error, data.context.set.notable, "%s", source);
}
if (status == F_access_denied) {
- if (data.verbosity != fake_verbosity_quiet) {
+ if (data.verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data.context.set.error, "ERROR: Access denied while trying to %s '", operation);
fl_color_print(f_type_error, data.context.set.notable, "%s", source);
}
if (status == F_loop) {
- if (data.verbosity != fake_verbosity_quiet) {
+ if (data.verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data.context.set.error, "ERROR: Loop while trying to %s '", operation);
fl_color_print(f_type_error, data.context.set.notable, "%s", source);
}
if (status == F_prohibited) {
- if (data.verbosity != fake_verbosity_quiet) {
+ if (data.verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data.context.set.error, "ERROR: Prohibited by system while trying to %s '", operation);
fl_color_print(f_type_error, data.context.set.notable, "%s", source);
}
if (status == F_directory_found_not) {
- if (data.verbosity != fake_verbosity_quiet) {
+ if (data.verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data.context.set.error, "ERROR: Failed to %s '", operation);
fl_color_print(f_type_error, data.context.set.notable, "%s", source);
}
if (status == F_failure) {
- if (data.verbosity != fake_verbosity_quiet) {
+ if (data.verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data.context.set.error, "ERROR: Failed to %s '", operation);
fl_color_print(f_type_error, data.context.set.notable, "%s", source);
return F_false;
}
- if (fake_print_error(data, status, function, F_false) == F_unknown && fallback && data.verbosity != fake_verbosity_quiet) {
+ if (fake_print_error(data, status, function, F_false) == F_unknown && fallback && data.verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data.context.set.error, "UNKNOWN ERROR: (");
fl_color_print(f_type_error, data.context.set.notable, "%llu", status);
bool fake_print_error_fss(const fake_data_t data, const f_status_t status, const f_string_t function, const f_string_t path_file, const f_string_range_t range, const bool fallback) {
if (status == F_file_found_not) {
- if (data.verbosity != fake_verbosity_quiet) {
+ if (data.verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data.context.set.error, "ENCODING ERROR: error occurred on invalid UTF-8 character at stop position (at ");
fl_color_print(f_type_error, data.context.set.notable, "%d", range.start);
}
if (status == F_status_set_error(F_incomplete_utf_stop)) {
- if (data.verbosity != fake_verbosity_quiet) {
+ if (data.verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data.context.set.error, "ENCODING ERROR: error occurred on invalid UTF-8 character at end of string (at ");
fl_color_print(f_type_error, data.context.set.notable, "%d", range.start);
return F_false;
}
- if (fake_print_error(data, status, function, F_false) == F_unknown && fallback && data.verbosity != fake_verbosity_quiet) {
+ if (fake_print_error(data, status, function, F_false) == F_unknown && fallback && data.verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data.context.set.error, "UNKNOWN ERROR: (");
fl_color_print(f_type_error, data.context.set.notable, "%llu", status);
#ifndef _di_fake_print_error_parameter_missing_value_
void fake_print_error_parameter_missing_value(const fake_data_t data, const f_string_t parameter) {
- if (data.verbosity == fake_verbosity_quiet) return;
+ if (data.verbosity == f_console_verbosity_quiet) return;
fprintf(f_type_error, "%c", f_string_eol[0]);
#ifndef _di_fake_print_error_parameter_too_many_
void fake_print_error_parameter_too_many(const fake_data_t data, const f_string_t parameter) {
- if (data.verbosity == fake_verbosity_quiet) return;
+ if (data.verbosity == f_console_verbosity_quiet) return;
fprintf(f_type_error, "%c", f_string_eol[0]);
f_return_status fake_print_message(const fake_data_t data, const f_status_t status, const f_string_t function, const bool fallback, const fake_make_print_t print) {
if (status == F_parameter) {
- if (data.verbosity != fake_verbosity_quiet) {
+ if (data.verbosity != f_console_verbosity_quiet) {
fprintf(print.to, "%c", f_string_eol[0]);
fl_color_print(print.to, print.context, "%s: Invalid parameter", print.prefix);
}
if (status == F_memory_allocation || status == F_memory_reallocation) {
- if (data.verbosity != fake_verbosity_quiet) {
+ if (data.verbosity != f_console_verbosity_quiet) {
fprintf(print.to, "%c", f_string_eol[0]);
fl_color_print(print.to, print.context, "%s: Unable to allocate memory", print.prefix);
return F_none;
}
- if (fallback && data.verbosity != fake_verbosity_quiet) {
+ if (fallback && data.verbosity != f_console_verbosity_quiet) {
fprintf(print.to, "%c", f_string_eol[0]);
fl_color_print(print.to, print.context, "UNKNOWN %s: (", print.prefix);
fl_color_print(print.to, data.context.set.notable, "%llu", status);
const f_string_t file_or_directory = is_file ? "file" : "directory";
if (status == F_file_found_not) {
- if (data.verbosity != fake_verbosity_quiet) {
+ if (data.verbosity != f_console_verbosity_quiet) {
fprintf(print.to, "%c", f_string_eol[0]);
fl_color_print(print.to, print.context, "%s: Failed to find %s '", print.prefix, file_or_directory);
fl_color_print(print.to, data.context.set.notable, "%s", name);
}
if (status == F_file_found) {
- if (data.verbosity != fake_verbosity_quiet) {
+ if (data.verbosity != f_console_verbosity_quiet) {
fprintf(print.to, "%c", f_string_eol[0]);
fl_color_print(print.to, print.context, "%s: The %s '", print.prefix, file_or_directory);
fl_color_print(print.to, data.context.set.notable, "%s", name);
}
if (status == F_directory_empty_not) {
- if (data.verbosity != fake_verbosity_quiet) {
+ if (data.verbosity != f_console_verbosity_quiet) {
fprintf(print.to, "%c", f_string_eol[0]);
fl_color_print(print.to, print.context, "%s: The %s '", print.prefix, file_or_directory);
fl_color_print(print.to, data.context.set.notable, "%s", name);
}
if (status == F_parameter) {
- if (data.verbosity != fake_verbosity_quiet) {
+ if (data.verbosity != f_console_verbosity_quiet) {
fprintf(print.to, "%c", f_string_eol[0]);
fl_color_print(print.to, print.context, "INTERNAL %s: Invalid parameter when calling ", print.prefix);
fl_color_print(print.to, data.context.set.notable, "%s", function);
}
if (status == F_name) {
- if (data.verbosity != fake_verbosity_quiet) {
+ if (data.verbosity != f_console_verbosity_quiet) {
fprintf(print.to, "%c", f_string_eol[0]);
fl_color_print(print.to, print.context, "%s: Invalid %s name '", print.prefix, file_or_directory);
fl_color_print(print.to, data.context.set.notable, "%s", name);
}
if (status == F_memory_out) {
- if (data.verbosity != fake_verbosity_quiet) {
+ if (data.verbosity != f_console_verbosity_quiet) {
fprintf(print.to, "%c", f_string_eol[0]);
fl_color_print(print.to, print.context, "CRITICAL %s: Unable to allocate memory, while trying to %s %s '", print.prefix, operation, file_or_directory);
fl_color_print(print.to, data.context.set.notable, "%s", name);
}
if (status == F_number_overflow) {
- if (data.verbosity != fake_verbosity_quiet) {
+ if (data.verbosity != f_console_verbosity_quiet) {
fprintf(print.to, "%c", f_string_eol[0]);
fl_color_print(print.to, print.context, "%s: Overflow while trying to %s %s '", print.prefix, operation, file_or_directory);
fl_color_print(print.to, data.context.set.notable, "%s", name);
}
if (status == F_directory) {
- if (data.verbosity != fake_verbosity_quiet) {
+ if (data.verbosity != f_console_verbosity_quiet) {
fprintf(print.to, "%c", f_string_eol[0]);
fl_color_print(print.to, print.context, "%s: Invalid directory while trying to %s %s '", print.prefix, operation, file_or_directory);
fl_color_print(print.to, data.context.set.notable, "%s", name);
}
if (status == F_access_denied) {
- if (data.verbosity != fake_verbosity_quiet) {
+ if (data.verbosity != f_console_verbosity_quiet) {
fprintf(print.to, "%c", f_string_eol[0]);
fl_color_print(print.to, print.context, "%s: Access denied while trying to %s %s '", print.prefix, operation, file_or_directory);
fl_color_print(print.to, data.context.set.notable, "%s", name);
}
if (status == F_loop) {
- if (data.verbosity != fake_verbosity_quiet) {
+ if (data.verbosity != f_console_verbosity_quiet) {
fprintf(print.to, "%c", f_string_eol[0]);
fl_color_print(print.to, print.context, "%s: Loop while trying to %s %s '", print.prefix, operation, file_or_directory);
fl_color_print(print.to, data.context.set.notable, "%s", name);
}
if (status == F_prohibited) {
- if (data.verbosity != fake_verbosity_quiet) {
+ if (data.verbosity != f_console_verbosity_quiet) {
fprintf(print.to, "%c", f_string_eol[0]);
fl_color_print(print.to, print.context, "%s: Prohibited by system while trying to %s %s '", print.prefix, operation, file_or_directory);
fl_color_print(print.to, data.context.set.notable, "%s", name);
}
if (status == F_access_owner) {
- if (data.verbosity != fake_verbosity_quiet) {
+ if (data.verbosity != f_console_verbosity_quiet) {
fprintf(print.to, "%c", f_string_eol[0]);
fl_color_print(print.to, print.context, "%s: Currrent user is not allowed to use the given owner while trying to %s %s '", print.prefix, operation, file_or_directory);
fl_color_print(print.to, data.context.set.notable, "%s", name);
}
if (status == F_access_group) {
- if (data.verbosity != fake_verbosity_quiet) {
+ if (data.verbosity != f_console_verbosity_quiet) {
fprintf(print.to, "%c", f_string_eol[0]);
fl_color_print(print.to, print.context, "%s: Currrent user is not allowed to use the given group while trying to %s %s '", print.prefix, operation, file_or_directory);
fl_color_print(print.to, data.context.set.notable, "%s", name);
if (is_file) {
if (status == F_directory_found_not) {
- if (data.verbosity != fake_verbosity_quiet) {
+ if (data.verbosity != f_console_verbosity_quiet) {
fprintf(print.to, "%c", f_string_eol[0]);
fl_color_print(print.to, print.context, "%s: Failed to %s %s '", print.prefix, operation, file_or_directory);
fl_color_print(print.to, data.context.set.notable, "%s", name);
}
else {
if (status == F_directory_found_not) {
- if (data.verbosity != fake_verbosity_quiet) {
+ if (data.verbosity != f_console_verbosity_quiet) {
fprintf(print.to, "%c", f_string_eol[0]);
fl_color_print(print.to, print.context, "%s: Failed to %s %s '", print.prefix, operation, file_or_directory);
fl_color_print(print.to, data.context.set.notable, "%s", name);
}
if (status == F_failure) {
- if (data.verbosity != fake_verbosity_quiet) {
+ if (data.verbosity != f_console_verbosity_quiet) {
fprintf(print.to, "%c", f_string_eol[0]);
fl_color_print(print.to, print.context, "%s: Failed to %s %s '", print.prefix, operation, file_or_directory);
fl_color_print(print.to, data.context.set.notable, "%s", name);
}
}
- if (fake_print_error(data, status, function, F_false) == F_unknown && fallback && data.verbosity != fake_verbosity_quiet) {
+ if (fake_print_error(data, status, function, F_false) == F_unknown && fallback && data.verbosity != f_console_verbosity_quiet) {
fprintf(print.to, "%c", f_string_eol[0]);
fl_color_print(print.to, print.context, "UNKNOWN %s: (", print.prefix);
fl_color_print(print.to, data.context.set.notable, "%llu", status);
#ifndef _di_fake_print_message_section_operation_failed_
void fake_print_message_section_operation_failed(const fake_data_t data, const f_string_static_t buffer, const f_string_range_t section_name, const f_string_range_t operation_name, const fake_make_print_t print) {
- if (data.verbosity == fake_verbosity_quiet || !print.to) return;
+ if (data.verbosity == f_console_verbosity_quiet || !print.to) return;
f_string_length_t line = 1;
#ifndef _di_fake_print_message_section_operation_path_outside_
void fake_print_message_section_operation_path_outside(const fake_data_t data, const f_status_t status, const f_string_t function, const f_string_t path, const fake_make_print_t print) {
- if (data.verbosity == fake_verbosity_quiet || !print.to) return;
+ if (data.verbosity == f_console_verbosity_quiet || !print.to) return;
if (F_status_set_fine(status) == F_false) {
fprintf(print.to, "%c", f_string_eol[0]);
#ifndef _di_fake_print_message_section_operation_path_stack_max_
void fake_print_message_section_operation_path_stack_max(const fake_data_t data, const f_status_t status, const f_string_t function, const f_string_t path, const fake_make_print_t print) {
- if (data.verbosity == fake_verbosity_quiet || !print.to) return;
+ if (data.verbosity == f_console_verbosity_quiet || !print.to) return;
if (status == F_buffer_too_large) {
fprintf(print.to, "%c", f_string_eol[0]);
#ifndef _di_fake_print_message_section_operation_stack_max_
void fake_print_message_section_operation_stack_max(const fake_data_t data, 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, const fake_make_print_t print) {
- if (data.verbosity == fake_verbosity_quiet || !print.to) return;
+ if (data.verbosity == f_console_verbosity_quiet || !print.to) return;
f_string_length_t line = 1;
#ifndef _di_fake_print_message_section_operation_unknown_
void fake_print_message_section_operation_unknown(const fake_data_t data, const f_string_static_t buffer, const f_string_range_t section_name, const f_string_range_t operation_name, const fake_make_print_t print) {
- if (data.verbosity == fake_verbosity_quiet || !print.to) return;
+ if (data.verbosity == f_console_verbosity_quiet || !print.to) return;
f_string_length_t line = 1;
#ifndef _di_fake_print_warning_settings_content_empty_
void fake_print_warning_settings_content_empty(const fake_data_t data, const f_string_t path_file, const f_string_dynamic_t buffer, const f_string_range_t range_object, const f_string_t settings_name) {
- if (data.verbosity == fake_verbosity_quiet) return;
+ if (data.verbosity == f_console_verbosity_quiet) return;
fprintf(f_type_error, "%c", f_string_eol[0]);
#ifndef _di_fake_print_warning_settings_content_invalid_
void fake_print_warning_settings_content_invalid(const fake_data_t data, const f_string_t path_file, const f_string_dynamic_t buffer, const f_string_range_t range_object, const f_string_range_t range_content, const f_string_t settings_name) {
- if (data.verbosity == fake_verbosity_quiet) return;
+ if (data.verbosity == f_console_verbosity_quiet) return;
fprintf(f_type_error, "%c", f_string_eol[0]);
#ifndef _di_fake_print_warning_settings_content_multiple_
void fake_print_warning_settings_content_multiple(const fake_data_t data, const f_string_t path_file, const f_string_t name_object) {
- if (data.verbosity != fake_verbosity_verbose) return;
+ if (data.verbosity != f_console_verbosity_verbose) return;
fprintf(f_type_error, "%c", f_string_eol[0]);
#ifndef _di_fake_print_warning_settings_object_multiple_
void fake_print_warning_settings_object_multiple(const fake_data_t data, const f_string_t path_file, const f_string_t label, const f_string_t name_object) {
- if (data.verbosity != fake_verbosity_verbose) return;
+ if (data.verbosity != f_console_verbosity_verbose) return;
fprintf(f_type_error, "%c", f_string_eol[0]);
f_status_t status = F_none;
- if (data.verbosity != fake_verbosity_quiet) {
+ if (data.verbosity != f_console_verbosity_quiet) {
printf("%c", f_string_eol[0]);
fl_color_print_line(f_type_output, data.context.set.important, "Generating skeleton structure.");
}
status = f_directory_exists(path.string);
if (status == F_true) {
- if (data.verbosity == fake_verbosity_verbose) {
+ if (data.verbosity == f_console_verbosity_verbose) {
printf("Directory '%s' already exists.%c", path.string, f_string_eol[0]);
}
}
if (status == F_false) {
- if (data.verbosity != fake_verbosity_quiet) {
+ if (data.verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data.context.set.error, "ERROR: The path '");
fl_color_print(f_type_error, data.context.set.notable, "%s", path.string);
return status;
}
- if (data.verbosity == fake_verbosity_verbose) {
+ if (data.verbosity == f_console_verbosity_verbose) {
printf("Directory '%s' created.%c", path.string, f_string_eol[0]);
}
}
status = f_file_is(path.string, f_file_type_regular, F_false);
if (status == F_true) {
- if (data.verbosity == fake_verbosity_verbose) {
+ if (data.verbosity == f_console_verbosity_verbose) {
printf("File '%s' already exists.%c", path.string, f_string_eol[0]);
}
status = f_file_is(path.string, f_file_type_link, F_false);
if (status == F_true) {
- if (data.verbosity == fake_verbosity_verbose) {
+ if (data.verbosity == f_console_verbosity_verbose) {
printf("File '%s' already exists (as a symbolic link).%c", path.string, f_string_eol[0]);
}
}
if (status == F_false) {
- if (data.verbosity == fake_verbosity_verbose) {
+ if (data.verbosity == f_console_verbosity_verbose) {
printf("File '%s' already exists but is not a regular file (or symbolic link).%c", path.string, f_string_eol[0]);
}
return status;
}
- if (data.verbosity == fake_verbosity_verbose) {
+ if (data.verbosity == f_console_verbosity_verbose) {
printf("File '%s' created.%c", path.string, f_string_eol[0]);
}
return status;
}
- if (data.verbosity == fake_verbosity_verbose) {
+ if (data.verbosity == f_console_verbosity_verbose) {
printf("File '%s' pre-populated.%c", path.string, f_string_eol[0]);
}
if (F_status_is_error(status)) {
iki_read_print_error(data->context, data->verbosity, F_status_set_fine(status), "fll_program_parameter_process", F_true);
- if (data->verbosity == iki_read_verbosity_verbose) {
+ if (data->verbosity == f_console_verbosity_verbose) {
fprintf(f_type_error, "%c", f_string_eol[0]);
}
status = F_status_set_error(F_parameter);
}
- data->verbosity = iki_read_verbosity_verbose;
+ data->verbosity = f_console_verbosity_verbose;
}
else if (data->parameters[iki_read_parameter_quiet].result == f_console_result_found) {
- data->verbosity = iki_read_verbosity_quiet;
+ data->verbosity = f_console_verbosity_quiet;
}
else {
- data->verbosity = iki_read_verbosity_normal;
+ data->verbosity = f_console_verbosity_normal;
}
if (F_status_is_fine(status)) {
if (data->remaining.used > 0 || data->process_pipe) {
if (data->parameters[iki_read_parameter_at].result == f_console_result_found) {
- if (data->verbosity != iki_read_verbosity_quiet) {
+ if (data->verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data->context.set.error, "ERROR: The parameter '");
fl_color_print(f_type_error, data->context.set.notable, "%s%s", f_console_symbol_long_enable, iki_read_long_at);
data->at = number;
if (data->parameters[iki_read_parameter_total].result == f_console_result_found) {
- if (data->verbosity != iki_read_verbosity_quiet) {
+ if (data->verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data->context.set.error, "ERROR: Cannot specify the '");
fl_color_print(f_type_error, data->context.set.notable, "%s%s", f_console_symbol_long_enable, iki_read_long_at);
}
if (data->parameters[iki_read_parameter_line].result == f_console_result_found) {
- if (data->verbosity != iki_read_verbosity_quiet) {
+ if (data->verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data->context.set.error, "ERROR: The parameter '");
fl_color_print(f_type_error, data->context.set.notable, "%s%s", f_console_symbol_long_enable, iki_read_long_line);
}
if (data->parameters[iki_read_parameter_name].result == f_console_result_found) {
- if (data->verbosity != iki_read_verbosity_quiet) {
+ if (data->verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data->context.set.error, "ERROR: The parameter '");
fl_color_print(f_type_error, data->context.set.notable, "%s%s", f_console_symbol_long_enable, iki_read_long_name);
if (data->parameters[iki_read_parameter_substitute].result != f_console_result_none) {
if (data->parameters[iki_read_parameter_substitute].result == f_console_result_found || data->parameters[iki_read_parameter_substitute].additional.used % 3 != 0) {
- if (data->verbosity != iki_read_verbosity_quiet) {
+ if (data->verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data->context.set.error, "ERROR: The parameter '");
fl_color_print(f_type_error, data->context.set.notable, "%s%s", f_console_symbol_long_enable, iki_read_long_substitute);
}
if (data->parameters[iki_read_parameter_total].result == f_console_result_found) {
- if (data->verbosity != iki_read_verbosity_quiet) {
+ if (data->verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data->context.set.error, "ERROR: Cannot specify the '");
fl_color_print(f_type_error, data->context.set.notable, "%s%s", f_console_symbol_long_enable, iki_read_long_substitute);
if (data->parameters[iki_read_parameter_literal].result == f_console_result_found) {
if (data->parameters[iki_read_parameter_object].result == f_console_result_found) {
- if (data->verbosity != iki_read_verbosity_quiet) {
+ if (data->verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data->context.set.error, "ERROR: Cannot specify the '");
fl_color_print(f_type_error, data->context.set.notable, "%s%s", f_console_symbol_long_enable, iki_read_long_literal);
}
if (data->parameters[iki_read_parameter_content].result == f_console_result_found) {
- if (data->verbosity != iki_read_verbosity_quiet) {
+ if (data->verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data->context.set.error, "ERROR: Cannot specify the '");
fl_color_print(f_type_error, data->context.set.notable, "%s%s", f_console_symbol_long_enable, iki_read_long_literal);
}
if (data->parameters[iki_read_parameter_total].result == f_console_result_found) {
- if (data->verbosity != iki_read_verbosity_quiet) {
+ if (data->verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data->context.set.error, "ERROR: Cannot specify the '");
fl_color_print(f_type_error, data->context.set.notable, "%s%s", f_console_symbol_long_enable, iki_read_long_literal);
}
else if (data->parameters[iki_read_parameter_object].result == f_console_result_found) {
if (data->parameters[iki_read_parameter_content].result == f_console_result_found) {
- if (data->verbosity != iki_read_verbosity_quiet) {
+ if (data->verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data->context.set.error, "ERROR: Cannot specify the '");
fl_color_print(f_type_error, data->context.set.notable, "%s%s", f_console_symbol_long_enable, iki_read_long_object);
}
if (data->parameters[iki_read_parameter_total].result == f_console_result_found) {
- if (data->verbosity != iki_read_verbosity_quiet) {
+ if (data->verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data->context.set.error, "ERROR: Cannot specify the '");
fl_color_print(f_type_error, data->context.set.notable, "%s%s", f_console_symbol_long_enable, iki_read_long_object);
if (data->parameters[iki_read_parameter_whole].result == f_console_result_found) {
if (data->parameters[iki_read_parameter_total].result == f_console_result_found) {
- if (data->verbosity != iki_read_verbosity_quiet) {
+ if (data->verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data->context.set.error, "ERROR: Cannot specify the '");
fl_color_print(f_type_error, data->context.set.notable, "%s%s", f_console_symbol_long_enable, iki_read_long_whole);
}
if (F_status_is_error(status)) {
- if (data->verbosity != iki_read_verbosity_quiet) {
+ if (data->verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
}
}
}
else {
- if (data->verbosity != iki_read_verbosity_quiet) {
+ if (data->verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print_line(f_type_error, data->context.set.error, "ERROR: you failed to specify one or more files.");
}
}
// ensure a newline is always put at the end of the program execution, unless in quiet mode.
- if (data->verbosity != iki_read_verbosity_quiet) {
+ if (data->verbosity != f_console_verbosity_quiet) {
if (F_status_is_error(status) || !data->mode) {
fprintf(f_type_error, "%c", f_string_eol[0]);
}
iki_read_mode_total,
};
- enum {
- iki_read_verbosity_quiet = 1,
- iki_read_verbosity_normal,
- iki_read_verbosity_verbose,
- iki_read_verbosity_debug,
- };
-
#define iki_read_short_at "a"
#define iki_read_short_content "c"
#define iki_read_short_line "l"
f_return_status iki_read_print_error(const f_color_context_t context, const uint8_t verbosity, const f_status_t status, const f_string_t function, const bool fallback) {
if (status == F_parameter) {
- if (verbosity != iki_read_verbosity_quiet) {
+ if (verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.set.error, "ERROR: Invalid parameter when calling function ");
fl_color_print(f_type_error, context.set.notable, "%s", function);
}
if (status == F_memory_allocation || status == F_memory_reallocation) {
- if (verbosity != iki_read_verbosity_quiet) {
+ if (verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.set.error, "ERROR: Unable to allocate memory in function ");
fl_color_print(f_type_error, context.set.notable, "%s", function);
}
if (status == F_buffer_too_large) {
- if (verbosity != iki_read_verbosity_quiet) {
+ if (verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.set.error, "ERROR: Maximum buffer limit reached while processing ");
fl_color_print(f_type_error, context.set.notable, "%s", function);
}
if (status == F_string_too_large) {
- if (verbosity != iki_read_verbosity_quiet) {
+ if (verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.set.error, "ERROR: Maximum string limit reached while processing ");
fl_color_print(f_type_error, context.set.notable, "%s", function);
return F_none;
}
- if (fallback && verbosity != iki_read_verbosity_quiet) {
+ if (fallback && verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.set.error, "UNKNOWN ERROR: (");
fl_color_print(f_type_error, context.set.notable, "%llu", status);
const f_string_t file_or_directory = is_file ? "file" : "directory";
if (status == F_file_found_not) {
- if (verbosity != iki_read_verbosity_quiet) {
+ if (verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.set.error, "ERROR: Failed to find %s '", file_or_directory);
fl_color_print(f_type_error, context.set.notable, "%s", name);
}
if (status == F_file_found) {
- if (verbosity != iki_read_verbosity_quiet) {
+ if (verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.set.error, "ERROR: The %s '", file_or_directory);
fl_color_print(f_type_error, context.set.notable, "%s", name);
}
if (status == F_parameter) {
- if (verbosity != iki_read_verbosity_quiet) {
+ if (verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.set.error, "INTERNAL ERROR: Invalid parameter when calling ");
fl_color_print(f_type_error, context.set.notable, "%s", function);
}
if (status == F_name) {
- if (verbosity != iki_read_verbosity_quiet) {
+ if (verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.set.error, "ERROR: Invalid %s name '", file_or_directory);
fl_color_print(f_type_error, context.set.notable, "%s", name);
}
if (status == F_memory_out) {
- if (verbosity != iki_read_verbosity_quiet) {
+ if (verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.set.error, "CRITICAL ERROR: Unable to allocate memory, while trying to %s %s '", operation, file_or_directory);
fl_color_print(f_type_error, context.set.notable, "%s", name);
}
if (status == F_number_overflow) {
- if (verbosity != iki_read_verbosity_quiet) {
+ if (verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.set.error, "ERROR: Overflow while trying to %s %s '", operation, file_or_directory);
fl_color_print(f_type_error, context.set.notable, "%s", name);
}
if (status == F_directory) {
- if (verbosity != iki_read_verbosity_quiet) {
+ if (verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.set.error, "ERROR: Invalid directory while trying to %s %s '", operation, file_or_directory);
fl_color_print(f_type_error, context.set.notable, "%s", name);
}
if (status == F_access_denied) {
- if (verbosity != iki_read_verbosity_quiet) {
+ if (verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.set.error, "ERROR: Access denied while trying to %s %s '", operation, file_or_directory);
fl_color_print(f_type_error, context.set.notable, "%s", name);
}
if (status == F_loop) {
- if (verbosity != iki_read_verbosity_quiet) {
+ if (verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.set.error, "ERROR: Loop while trying to %s %s '", operation, file_or_directory);
fl_color_print(f_type_error, context.set.notable, "%s", name);
}
if (status == F_prohibited) {
- if (verbosity != iki_read_verbosity_quiet) {
+ if (verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.set.error, "ERROR: Prohibited by system while trying to %s %s '", operation, file_or_directory);
fl_color_print(f_type_error, context.set.notable, "%s", name);
if (is_file) {
if (status == F_directory_found_not) {
- if (verbosity != iki_read_verbosity_quiet) {
+ if (verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.set.error, "ERROR: Failed to %s %s '", operation, file_or_directory);
fl_color_print(f_type_error, context.set.notable, "%s", name);
}
else {
if (status == F_directory_found_not) {
- if (verbosity != iki_read_verbosity_quiet) {
+ if (verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.set.error, "ERROR: Failed to %s %s '", operation, file_or_directory);
fl_color_print(f_type_error, context.set.notable, "%s", name);
}
if (status == F_failure) {
- if (verbosity != iki_read_verbosity_quiet) {
+ if (verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.set.error, "ERROR: Failed to %s %s '", operation, file_or_directory);
fl_color_print(f_type_error, context.set.notable, "%s", name);
}
}
- if (iki_read_print_error(context, verbosity, status, function, F_false) == F_unknown && fallback && verbosity != iki_read_verbosity_quiet) {
+ if (iki_read_print_error(context, verbosity, status, function, F_false) == F_unknown && fallback && verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.set.error, "UNKNOWN ERROR: (");
fl_color_print(f_type_error, context.set.notable, "%llu", status);
#ifndef _di_iki_read_print_error_number_argument_
void iki_read_print_error_number_argument(const f_color_context_t context, const uint8_t verbosity, const f_status_t status, const f_string_t function, const f_string_t parameter, const f_string_t argument) {
- if (verbosity == iki_read_verbosity_quiet) return;
+ if (verbosity == f_console_verbosity_quiet) return;
fprintf(f_type_error, "%c", f_string_eol[0]);
printf("%c", f_string_eol[0]);
fll_program_print_help_option(context, iki_write_short_file, iki_write_long_file, f_console_symbol_short_enable, f_console_symbol_long_enable, " Specify a file to send output to.");
- fll_program_print_help_option(context, iki_write_short_content, iki_write_long_content, f_console_symbol_short_enable, f_console_symbol_long_enable, "The content to write.");
+ fll_program_print_help_option(context, iki_write_short_content, iki_write_long_content, f_console_symbol_short_enable, f_console_symbol_long_enable, "The content to output.");
fll_program_print_help_option(context, iki_write_short_double, iki_write_long_double, f_console_symbol_short_enable, f_console_symbol_long_enable, " Use double quotes (default).");
- fll_program_print_help_option(context, iki_write_short_object, iki_write_long_object, f_console_symbol_short_enable, f_console_symbol_long_enable, " The object to write.");
+ fll_program_print_help_option(context, iki_write_short_object, iki_write_long_object, f_console_symbol_short_enable, f_console_symbol_long_enable, " The object to output.");
fll_program_print_help_option(context, iki_write_short_single, iki_write_long_single, f_console_symbol_short_enable, f_console_symbol_long_enable, " Use single quotes.");
fll_program_print_help_usage(context, iki_write_name, "filename(s)");
if (F_status_is_error(status)) {
iki_write_print_error(data->context, data->verbosity, F_status_set_fine(status), "fll_program_parameter_process", F_true);
- if (data->verbosity == iki_write_verbosity_verbose) {
+ if (data->verbosity == f_console_verbosity_verbose) {
fprintf(f_type_error, "%c", f_string_eol[0]);
}
status = F_status_set_error(F_parameter);
}
- data->verbosity = iki_write_verbosity_verbose;
+ data->verbosity = f_console_verbosity_verbose;
}
else if (data->parameters[iki_write_parameter_quiet].result == f_console_result_found) {
- data->verbosity = iki_write_verbosity_quiet;
+ data->verbosity = f_console_verbosity_quiet;
}
else {
- data->verbosity = iki_write_verbosity_normal;
+ data->verbosity = f_console_verbosity_normal;
}
f_file_t output = f_file_t_initialize;
if (F_status_is_fine(status)) {
if (data->parameters[iki_write_parameter_file].result == f_console_result_additional) {
if (data->parameters[iki_write_parameter_file].additional.used > 1) {
- if (data->verbosity != iki_write_verbosity_quiet) {
+ if (data->verbosity != f_console_verbosity_quiet) {
fl_color_print(f_type_error, data->context.set.error, "ERROR: The parameter '");
fl_color_print(f_type_error, data->context.set.notable, "%s%s", f_console_symbol_long_enable, iki_write_long_file);
fl_color_print_line(f_type_error, data->context.set.error, "' may only be specified once.");
}
}
else if (data->parameters[iki_write_parameter_file].result == f_console_result_found) {
- if (data->verbosity != iki_write_verbosity_quiet) {
+ if (data->verbosity != f_console_verbosity_quiet) {
fl_color_print(f_type_error, data->context.set.error, "ERROR: The parameter '");
fl_color_print(f_type_error, data->context.set.notable, "%s%s", f_console_symbol_long_enable, iki_write_long_file);
fl_color_print_line(f_type_error, data->context.set.error, "' was specified, but no value was given.");
}
if (F_status_is_fine(status) && data->parameters[iki_write_parameter_object].result == f_console_result_found) {
- if (data->verbosity != iki_write_verbosity_quiet) {
+ if (data->verbosity != f_console_verbosity_quiet) {
fl_color_print(f_type_error, data->context.set.error, "ERROR: The parameter '");
fl_color_print(f_type_error, data->context.set.notable, "%s%s", f_console_symbol_long_enable, iki_write_long_object);
fl_color_print_line(f_type_error, data->context.set.error, "' was specified, but no value was given.");
}
if (F_status_is_fine(status) && data->parameters[iki_write_parameter_content].result == f_console_result_found) {
- if (data->verbosity != iki_write_verbosity_quiet) {
+ if (data->verbosity != f_console_verbosity_quiet) {
fl_color_print(f_type_error, data->context.set.error, "ERROR: The parameter '");
fl_color_print(f_type_error, data->context.set.notable, "%s%s", f_console_symbol_long_enable, iki_write_long_content);
fl_color_print_line(f_type_error, data->context.set.error, "' was specified, but no value was given.");
if (F_status_is_fine(status) && !data->process_pipe) {
if (data->parameters[iki_write_parameter_object].result != f_console_result_additional && data->parameters[iki_write_parameter_content].result != f_console_result_additional) {
- if (data->verbosity != iki_write_verbosity_quiet) {
+ if (data->verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data->context.set.error, "ERROR: No data provided, either pipe the data or use the '");
fl_color_print(f_type_error, data->context.set.notable, "%s%s", f_console_symbol_long_enable, iki_write_long_object);
if (F_status_is_fine(status)) {
if (data->parameters[iki_write_parameter_object].additional.used != data->parameters[iki_write_parameter_content].additional.used) {
- if (data->verbosity != iki_write_verbosity_quiet) {
+ if (data->verbosity != f_console_verbosity_quiet) {
fl_color_print(f_type_error, data->context.set.error, "ERROR: The parameters '");
fl_color_print(f_type_error, data->context.set.notable, "%s%s", f_console_symbol_long_enable, iki_write_long_content);
fl_color_print(f_type_error, data->context.set.error, "' and '");
}
if (!buffer.used) {
- if (data->verbosity != iki_write_verbosity_quiet) {
+ if (data->verbosity != f_console_verbosity_quiet) {
fl_color_print_line(f_type_error, data->context.set.error, "ERROR: The pipe has no content.");
}
}
if (object_ended && previous == range.start) {
- if (data->verbosity != iki_write_verbosity_quiet) {
+ if (data->verbosity != f_console_verbosity_quiet) {
fl_color_print_line(f_type_error, data->context.set.error, "ERROR: The pipe has incorrectly placed newlines.");
}
} // for
if (F_status_is_fine(status) && object_ended) {
- if (data->verbosity != iki_write_verbosity_quiet) {
+ if (data->verbosity != f_console_verbosity_quiet) {
fl_color_print_line(f_type_error, data->context.set.error, "ERROR: The pipe has an object without content.");
}
} // for
// ensure there is always a newline at the end, unless in quiet mode.
- if (F_status_is_fine(status) && data->verbosity != iki_write_verbosity_quiet && data->parameters[iki_write_parameter_file].result == f_console_result_none) {
+ if (F_status_is_fine(status) && data->verbosity != f_console_verbosity_quiet && data->parameters[iki_write_parameter_file].result == f_console_result_none) {
fprintf(f_type_output, "%c", f_string_eol[0]);
}
}
}
// ensure a newline is always put at the end of the program execution, unless in quiet mode.
- if (data->verbosity != iki_write_verbosity_quiet) {
+ if (data->verbosity != f_console_verbosity_quiet) {
if (F_status_is_error(status)) {
fprintf(f_type_error, "%c", f_string_eol[0]);
}
#endif // _di_iki_write_name_
#ifndef _di_iki_write_defines_
- enum {
- iki_write_verbosity_quiet = 1,
- iki_write_verbosity_normal,
- iki_write_verbosity_verbose,
- iki_write_verbosity_debug,
- };
-
#define iki_write_short_file "f"
#define iki_write_short_content "c"
#define iki_write_short_double "d"
f_return_status iki_write_print_error(const f_color_context_t context, const uint8_t verbosity, const f_status_t status, const f_string_t function, const bool fallback) {
if (status == F_parameter) {
- if (verbosity != iki_write_verbosity_quiet) {
+ if (verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.set.error, "ERROR: Invalid parameter when calling function ");
fl_color_print(f_type_error, context.set.notable, "%s", function);
}
if (status == F_memory_allocation || status == F_memory_reallocation) {
- if (verbosity != iki_write_verbosity_quiet) {
+ if (verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.set.error, "ERROR: Unable to allocate memory in function ");
fl_color_print(f_type_error, context.set.notable, "%s", function);
}
if (status == F_buffer_too_large) {
- if (verbosity != iki_write_verbosity_quiet) {
+ if (verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.set.error, "ERROR: Maximum buffer limit reached while processing ");
fl_color_print(f_type_error, context.set.notable, "%s", function);
}
if (status == F_string_too_large) {
- if (verbosity != iki_write_verbosity_quiet) {
+ if (verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.set.error, "ERROR: Maximum string limit reached while processing ");
fl_color_print(f_type_error, context.set.notable, "%s", function);
return F_none;
}
- if (fallback && verbosity != iki_write_verbosity_quiet) {
+ if (fallback && verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.set.error, "UNKNOWN ERROR: (");
fl_color_print(f_type_error, context.set.notable, "%llu", status);
}
if (status == F_file_found_not) {
- if (verbosity != iki_write_verbosity_quiet) {
+ if (verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.set.error, "ERROR: Failed to find %s '", type_name);
fl_color_print(f_type_error, context.set.notable, "%s", name);
}
if (status == F_file_closed) {
- if (verbosity != iki_write_verbosity_quiet) {
+ if (verbosity != f_console_verbosity_quiet) {
fl_color_print(f_type_error, context.set.error, "INTERNAL ERROR: The %s '", type_name);
fl_color_print(f_type_error, context.set.notable, "%s", name);
fl_color_print_line(f_type_error, context.set.error, "' is no longer open.");
}
if (status == F_file_seek) {
- if (verbosity != iki_write_verbosity_quiet) {
+ if (verbosity != f_console_verbosity_quiet) {
fl_color_print(f_type_error, context.set.error, "ERROR: A seek error occurred while accessing the file '");
fl_color_print(f_type_error, context.set.notable, "%s", name);
fl_color_print_line(f_type_error, context.set.error, "'.");
}
if (status == F_file_read) {
- if (verbosity != iki_write_verbosity_quiet) {
+ if (verbosity != f_console_verbosity_quiet) {
fl_color_print(f_type_error, context.set.error, "ERROR: A read error occurred while accessing the file '");
fl_color_print(f_type_error, context.set.notable, "%s", name);
fl_color_print_line(f_type_error, context.set.error, "'.");
}
if (status == F_file_found) {
- if (verbosity != iki_write_verbosity_quiet) {
+ if (verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.set.error, "ERROR: The %s '", type_name);
fl_color_print(f_type_error, context.set.notable, "%s", name);
}
if (status == F_parameter) {
- if (verbosity != iki_write_verbosity_quiet) {
+ if (verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.set.error, "INTERNAL ERROR: Invalid parameter when calling ");
fl_color_print(f_type_error, context.set.notable, "%s", function);
}
if (status == F_name) {
- if (verbosity != iki_write_verbosity_quiet) {
+ if (verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.set.error, "ERROR: Invalid %s name '", type_name);
fl_color_print(f_type_error, context.set.notable, "%s", name);
}
if (status == F_memory_out) {
- if (verbosity != iki_write_verbosity_quiet) {
+ if (verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.set.error, "CRITICAL ERROR: Unable to allocate memory, while trying to %s %s '", operation, type_name);
fl_color_print(f_type_error, context.set.notable, "%s", name);
}
if (status == F_number_overflow) {
- if (verbosity != iki_write_verbosity_quiet) {
+ if (verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.set.error, "ERROR: Overflow while trying to %s %s '", operation, type_name);
fl_color_print(f_type_error, context.set.notable, "%s", name);
}
if (status == F_directory) {
- if (verbosity != iki_write_verbosity_quiet) {
+ if (verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.set.error, "ERROR: Invalid directory while trying to %s %s '", operation, type_name);
fl_color_print(f_type_error, context.set.notable, "%s", name);
}
if (status == F_access_denied) {
- if (verbosity != iki_write_verbosity_quiet) {
+ if (verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.set.error, "ERROR: Access denied while trying to %s %s '", operation, type_name);
fl_color_print(f_type_error, context.set.notable, "%s", name);
}
if (status == F_loop) {
- if (verbosity != iki_write_verbosity_quiet) {
+ if (verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.set.error, "ERROR: Loop while trying to %s %s '", operation, type_name);
fl_color_print(f_type_error, context.set.notable, "%s", name);
}
if (status == F_prohibited) {
- if (verbosity != iki_write_verbosity_quiet) {
+ if (verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.set.error, "ERROR: Prohibited by system while trying to %s %s '", operation, type_name);
fl_color_print(f_type_error, context.set.notable, "%s", name);
if (!type) {
if (status == F_directory_found_not) {
- if (verbosity != iki_write_verbosity_quiet) {
+ if (verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.set.error, "ERROR: Failed to %s %s '", operation, type_name);
fl_color_print(f_type_error, context.set.notable, "%s", name);
}
else if (type == 1) {
if (status == F_directory_found_not) {
- if (verbosity != iki_write_verbosity_quiet) {
+ if (verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.set.error, "ERROR: Failed to %s %s '", operation, type_name);
fl_color_print(f_type_error, context.set.notable, "%s", name);
}
if (status == F_failure) {
- if (verbosity != iki_write_verbosity_quiet) {
+ if (verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.set.error, "ERROR: Failed to %s %s '", operation, type_name);
fl_color_print(f_type_error, context.set.notable, "%s", name);
}
}
- if (iki_write_print_error(context, verbosity, status, function, F_false) == F_unknown && fallback && verbosity != iki_write_verbosity_quiet) {
+ if (iki_write_print_error(context, verbosity, status, function, F_false) == F_unknown && fallback && verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.set.error, "UNKNOWN ERROR: (");
fl_color_print(f_type_error, context.set.notable, "%llu", status);
f_return_status iki_write_process(const iki_write_data_t data, const f_string_static_t object, const f_string_static_t content, const uint8_t quote, const int output, f_string_dynamic_t *escaped) {
if (!object.used) {
- if (data.verbosity != iki_write_verbosity_quiet) {
+ if (data.verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data.context.set.error, "ERROR: The object is missing, it must not have a length of ");
fl_color_print(f_type_error, data.context.set.notable, "0");
f_status_t status = f_iki_object_is(object);
if (status == F_false) {
- if (data.verbosity != iki_write_verbosity_quiet) {
+ if (data.verbosity != f_console_verbosity_quiet) {
fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data.context.set.error, "ERROR: The object '");