if (F_status_is_error_not(*status)) {
for (f_array_length_t i = 0; i < data_build.setting.build_libraries.used; i++) {
+
*status = fll_execute_arguments_add(data_build.setting.build_libraries.array[i].string, data_build.setting.build_libraries.array[i].used, arguments);
if (F_status_is_error(*status)) break;
} // for
}
for (f_array_length_t i = 0; i < data_build.setting.flags_all.used && F_status_is_error_not(*status); i++) {
+
*status = fll_execute_arguments_add(data_build.setting.flags_all.array[i].string, data_build.setting.flags_all.array[i].used, arguments);
if (F_status_is_error(*status)) break;
} // for
for (f_array_length_t i = 0; i < data_build.setting.flags_shared.used && F_status_is_error_not(*status); i++) {
+
*status = fll_execute_arguments_add(data_build.setting.flags_shared.array[i].string, data_build.setting.flags_shared.array[i].used, arguments);
if (F_status_is_error(*status)) break;
} // for
if (is_library) {
for (f_array_length_t j = 0; j < data_build.setting.flags_library.used && F_status_is_error_not(*status); j++) {
+
*status = fll_execute_arguments_add(data_build.setting.flags_library.array[j].string, data_build.setting.flags_library.array[j].used, arguments);
if (F_status_is_error(*status)) break;
} // for
}
else {
for (f_array_length_t i = 0; i < data_build.setting.flags_program.used && F_status_is_error_not(*status); i++) {
+
*status = fll_execute_arguments_add(data_build.setting.flags_program.array[i].string, data_build.setting.flags_program.array[i].used, arguments);
if (F_status_is_error(*status)) break;
} // for
f_array_length_t i = 0;
for (; i < data.define.used && F_status_is_error_not(*status); i++) {
+
*status = fll_execute_arguments_add(data.define.array[i].string, data.define.array[i].used, arguments);
if (F_status_is_error(*status)) break;
} // for
f_array_length_t i = 0;
for (; i < data_build.setting.defines_all.used && F_status_is_error_not(*status); i++) {
+
*status = fll_execute_arguments_add(data_build.setting.defines_all.array[i].string, data_build.setting.defines_all.array[i].used, arguments);
if (F_status_is_error(*status)) break;
} // for
if (is_shared) {
for (i = 0; i < data_build.setting.defines_shared.used && F_status_is_error_not(*status); i++) {
+
*status = fll_execute_arguments_add(data_build.setting.defines_shared.array[i].string, data_build.setting.defines_shared.array[i].used, arguments);
if (F_status_is_error(*status)) break;
} // for
}
else {
for (i = 0; i < data_build.setting.defines_static.used && F_status_is_error_not(*status); i++) {
+
*status = fll_execute_arguments_add(data_build.setting.defines_static.array[i].string, data_build.setting.defines_static.array[i].used, arguments);
if (F_status_is_error(*status)) break;
} // for
f_macro_string_dynamic_t_new(*status, path_source, source.used);
if (F_status_is_error(*status)) {
- fll_error_print(data->error, F_status_set_fine(*status), "f_macro_string_dynamic_t_new", F_true);
+ fll_error_print(data.error, F_status_set_fine(*status), "f_macro_string_dynamic_t_new", F_true);
f_macro_string_dynamic_t_delete_simple(path_source);
return;
fl_directory_recurse_t recurse = fl_directory_recurse_t_initialize;
if (data.error.verbosity == f_console_verbosity_verbose) {
- recurse.output = f_type_descriptor_output;
+ recurse.output = data.output;
recurse.verbose = fake_verbose_print_copy;
}
*status = fl_string_dynamic_append_nulless(files.array[i], &path_source);
if (F_status_is_error(*status)) {
- fll_error_print(data->error, F_status_set_fine(*status), "fl_string_dynamic_append_nulless", F_true);
+ fll_error_print(data.error, F_status_set_fine(*status), "fl_string_dynamic_append_nulless", F_true);
break;
}
*status = fl_string_dynamic_terminate_after(&path_source);
if (F_status_is_error(*status)) {
- fll_error_print(data->error, F_status_set_fine(*status), "fl_string_dynamic_terminate_after", F_true);
+ fll_error_print(data.error, F_status_set_fine(*status), "fl_string_dynamic_terminate_after", F_true);
break;
}
} // for
if (F_status_set_fine(*status) != F_failure) {
- fll_error_print(data->error, F_status_set_fine(*status), "fl_directory_copy_content", F_true);
+ fll_error_print(data.error, F_status_set_fine(*status), "fl_directory_copy_content", F_true);
}
break;
*status = fl_string_dynamic_append_nulless(destination, &destination_file);
if (F_status_is_error(*status)) {
- fll_error_print(data->error, F_status_set_fine(*status), "fl_string_dynamic_append_nulless", F_true);
+ fll_error_print(data.error, F_status_set_fine(*status), "fl_string_dynamic_append_nulless", F_true);
break;
}
*status = f_file_name_base(path_source.string, path_source.used, &destination_file);
if (F_status_is_error(*status)) {
- fll_error_print(data->error, F_status_set_fine(*status), "f_file_name_base", F_true);
+ fll_error_print(data.error, F_status_set_fine(*status), "f_file_name_base", F_true);
break;
}
}
if (F_status_is_error(*status)) {
- fll_error_print(data->error, F_status_set_fine(*status), "fll_execute_arguments_add", F_true);
+ fll_error_print(data.error, F_status_set_fine(*status), "fll_execute_arguments_add", F_true);
f_macro_string_dynamics_t_delete_simple(arguments);
return;
} // for
if (F_status_is_error(*status)) {
- fll_error_print(data->error, F_status_set_fine(*status), "fl_string_dynamic_mash", F_true);
+ fll_error_print(data.error, F_status_set_fine(*status), "fl_string_dynamic_mash", F_true);
f_macro_string_dynamic_t_delete_simple(defines);
f_macro_string_dynamics_t_delete_simple(arguments);
*status = fl_string_dynamic_terminate_after(&defines);
if (F_status_is_error(*status)) {
- fll_error_print(data->error, F_status_set_fine(*status), "fl_string_dynamic_terminate_after", F_true);
+ fll_error_print(data.error, F_status_set_fine(*status), "fl_string_dynamic_terminate_after", F_true);
f_macro_string_dynamic_t_delete_simple(defines);
f_macro_string_dynamics_t_delete_simple(arguments);
f_macro_string_dynamic_t_delete_simple(defines);
if (F_status_is_error(*status)) {
- fll_error_print(data->error, F_status_set_fine(*status), "fll_execute_arguments_add_parameter_set", F_true);
+ fll_error_print(data.error, F_status_set_fine(*status), "fll_execute_arguments_add_parameter_set", F_true);
f_macro_string_dynamics_t_delete_simple(arguments);
return;
}
if (F_status_is_error(*status)) {
- fll_error_print(data->error, F_status_set_fine(*status), function, F_true);
+ fll_error_print(data.error, F_status_set_fine(*status), function, F_true);
f_macro_string_dynamic_t_delete_simple(path);
f_macro_string_dynamics_t_delete_simple(arguments);
if (F_status_is_error(*status)) {
if (F_status_set_fine(*status) == F_failure) {
if (data.error.verbosity != f_console_verbosity_quiet) {
- fprintf(data.error.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error, data.context.set.error, "ERROR: Failed to execute script: ");
- fl_color_print(data.error, data.context.set.notable, "%s", path.string);
- fl_color_print(data.error, data.context.set.error, ".%c", f_string_eol[0]);
+ fprintf(data.error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data.error.to.stream, data.error.context, "%sFailed to execute script: ", data.error.prefix);
+ fl_color_print(data.error.to.stream, data.error.notable, "%s", path.string);
+ fl_color_print(data.error.to.stream, data.error.context, ".%c", f_string_eol[0]);
}
}
else {
- fll_error_print(data->error, F_status_set_fine(*status), "fll_execute_path_environment", F_true);
+ fll_error_print(data.error, F_status_set_fine(*status), "fll_execute_path_environment", F_true);
}
}
else {
f_status_t status = f_file_name_base(path.string, path.used, name);
if (F_status_is_error(status)) {
- fll_error_print(data->error, F_status_set_fine(status), "f_file_name_base", F_true);
+ fll_error_print(data.error, F_status_set_fine(status), "f_file_name_base", F_true);
return status;
}
status = fl_string_dynamic_terminate_after(name);
if (F_status_is_error(status)) {
- fll_error_print(data->error, F_status_set_fine(status), "fl_string_dynamic_terminate_after", F_true);
+ fll_error_print(data.error, F_status_set_fine(status), "fl_string_dynamic_terminate_after", F_true);
return status;
}
} // for
if (F_status_is_error(*status)) {
- fll_error_print(data->error, F_status_set_fine(*status), "fll_execute_arguments_add", F_true);
+ fll_error_print(data.error, F_status_set_fine(*status), "fll_execute_arguments_add", F_true);
f_macro_string_dynamics_t_delete_simple(arguments);
return;
fake_build_arguments_standard_add(data, data_build, F_true, F_true, &arguments, status);
if (F_status_is_error(*status)) {
- fll_error_print(data->error, F_status_set_fine(*status), "fll_execute_arguments_add", F_true);
+ fll_error_print(data.error, F_status_set_fine(*status), "fll_execute_arguments_add", F_true);
f_macro_string_dynamics_t_delete_simple(arguments);
return;
*status = fake_build_get_file_name_without_extension(data, data_build.setting.build_sources_library.array[i], &file_name);
if (F_status_is_error(*status)) {
- fll_error_print(data->error, F_status_set_fine(*status), "fake_build_get_file_name_without_extension", F_true);
+ fll_error_print(data.error, F_status_set_fine(*status), "fake_build_get_file_name_without_extension", F_true);
break;
}
*status = f_file_name_directory(data_build.setting.build_sources_library.array[i].string, data_build.setting.build_sources_library.array[i].used, &source_path);
if (F_status_is_error(*status)) {
- fll_error_print(data->error, F_status_set_fine(*status), "f_file_name_directory", F_true);
+ fll_error_print(data.error, F_status_set_fine(*status), "f_file_name_directory", F_true);
break;
}
*status = fl_string_dynamic_prepend(data.path_build_objects, &source_path);
if (F_status_is_error(*status)) {
- fll_error_print(data->error, F_status_set_fine(*status), "fl_string_dynamic_prepend", F_true);
+ fll_error_print(data.error, F_status_set_fine(*status), "fl_string_dynamic_prepend", F_true);
break;
}
*status = fl_string_append_assure(f_path_separator, f_path_separator_length, &source_path);
if (F_status_is_error(*status)) {
- fll_error_print(data->error, F_status_set_fine(*status), "fl_string_append_assure", F_true);
+ fll_error_print(data.error, F_status_set_fine(*status), "fl_string_append_assure", F_true);
break;
}
*status = fl_string_dynamic_terminate_after(&source_path);
if (F_status_is_error(*status)) {
- fll_error_print(data->error, F_status_set_fine(*status), "fl_string_dynamic_terminate_after", F_true);
+ fll_error_print(data.error, F_status_set_fine(*status), "fl_string_dynamic_terminate_after", F_true);
break;
}
*status = fll_execute_arguments_add(source, source_length, &arguments);
if (F_status_is_error(*status)) {
- fll_error_print(data->error, F_status_set_fine(*status), "fll_execute_arguments_add", F_true);
+ fll_error_print(data.error, F_status_set_fine(*status), "fll_execute_arguments_add", F_true);
break;
}
} // for
f_macro_string_dynamics_new(*status, names, 2);
if (F_status_is_error(*status)) {
- fll_error_print(data->error, F_status_set_fine(*status), "f_macro_string_dynamics_new", F_true);
+ fll_error_print(data.error, F_status_set_fine(*status), "f_macro_string_dynamics_new", F_true);
f_macro_string_dynamics_t_delete_simple(names);
return;
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.error.verbosity != f_console_verbosity_quiet) {
- fprintf(data.error.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error, data.context.set.error, "ERROR: The values for the setting '");
- fl_color_print(data.error, data.context.set.notable, "%s", fake_build_setting_name_environment);
- fl_color_print(data.error, data.context.set.error, "' of setting file '");
- fl_color_print(data.error, data.context.set.notable, "%s", data.file_data_build_settings.string);
- fl_color_print(data.error, data.context.set.error, "' is too large.%c", f_string_eol[0]);
+ fprintf(data.error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data.error.to.stream, data.context.set.error, "ERROR: The values for the setting '");
+ fl_color_print(data.error.to.stream, data.context.set.notable, "%s", fake_build_setting_name_environment);
+ fl_color_print(data.error.to.stream, data.context.set.error, "' of setting file '");
+ fl_color_print(data.error.to.stream, data.context.set.notable, "%s", data.file_data_build_settings.string);
+ fl_color_print(data.error.to.stream, data.context.set.error, "' is too large.%c", f_string_eol[0]);
}
f_macro_string_dynamic_t_delete_simple(part);
f_macro_string_dynamics_resize(*status, names, names.used + data_build.setting.environment.used);
if (F_status_is_error(*status)) {
- fll_error_print(data->error, F_status_set_fine(*status), "f_macro_string_dynamics_resize", F_true);
+ fll_error_print(data.error, F_status_set_fine(*status), "f_macro_string_dynamics_resize", F_true);
f_macro_string_dynamic_t_delete_simple(part);
f_macro_string_dynamics_t_delete_simple(names);
f_macro_string_dynamic_t_delete_simple(part);
if (F_status_is_error(*status)) {
- fll_error_print(data->error, F_status_set_fine(*status), "fl_string_append", F_true);
+ fll_error_print(data.error, F_status_set_fine(*status), "fl_string_append", F_true);
f_macro_string_dynamics_t_delete_simple(names);
return;
f_macro_string_dynamic_t_delete_simple(variable_value);
if (F_status_is_error(*status) && F_status_set_fine(*status) != F_signal) {
- fll_error_print(data->error, *status, function, F_true);
+ fll_error_print(data.error, *status, function, F_true);
}
}
#endif // _di_fake_build_load_environment_
for (uint8_t i = 0; i < 1; i++) {
if (!settings[i]->used) {
- fprintf(data.error.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error, data.context.set.error, "ERROR: The setting '");
- fl_color_print(data.error, data.context.set.notable, "%s", names[i]);
- fl_color_print(data.error, data.context.set.error, "' is required but is not specified in the settings file '");
- fl_color_print(data.error, data.context.set.notable, "%s", setting_file.used ? path_file : data.file_data_build_settings.string);
- fl_color_print(data.error, data.context.set.error, "'.%c", f_string_eol[0]);
+ fprintf(data.error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data.error.to.stream, data.context.set.error, "ERROR: The setting '");
+ fl_color_print(data.error.to.stream, data.context.set.notable, "%s", names[i]);
+ fl_color_print(data.error.to.stream, data.context.set.error, "' is required but is not specified in the settings file '");
+ fl_color_print(data.error.to.stream, data.context.set.notable, "%s", setting_file.used ? path_file : data.file_data_build_settings.string);
+ fl_color_print(data.error.to.stream, data.context.set.error, "'.%c", f_string_eol[0]);
failed = F_true;
}
if (found == F_false) {
if (data.error.verbosity != f_console_verbosity_quiet) {
- fprintf(data.error.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error, data.context.set.error, "ERROR: The specified mode '");
- fl_color_print(data.error, data.context.set.notable, "%s", modes->array[i].string);
- fl_color_print(data.error, data.context.set.error, "' is not a valid mode, according to '");
- fl_color_print(data.error, data.context.set.notable, "%s", path_file);
- fl_color_print(data.error, data.context.set.error, "'.%c", f_string_eol[0]);
+ fprintf(data.error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data.error.to.stream, data.context.set.error, "ERROR: The specified mode '");
+ fl_color_print(data.error.to.stream, data.context.set.notable, "%s", modes->array[i].string);
+ fl_color_print(data.error.to.stream, data.context.set.error, "' is not a valid mode, according to '");
+ fl_color_print(data.error.to.stream, data.context.set.notable, "%s", path_file);
+ fl_color_print(data.error.to.stream, data.context.set.error, "'.%c", f_string_eol[0]);
}
error_printed = F_true;
if (*status == F_status_set_error(F_string_too_large)) {
if (data.error.verbosity != f_console_verbosity_quiet) {
// @todo update FSS functions to return which setting index the problem happened on.
- fprintf(data.error.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error, data.context.set.error, "ERROR: A setting in the build setting file '");
- fl_color_print(data.error, data.context.set.notable, "%s", path_file);
- fl_color_print(data.error, data.context.set.error, "' is too long.%c", f_string_eol[0]);
+ fprintf(data.error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data.error.to.stream, data.context.set.error, "ERROR: A setting in the build setting file '");
+ fl_color_print(data.error.to.stream, data.context.set.notable, "%s", path_file);
+ fl_color_print(data.error.to.stream, data.context.set.error, "' is too long.%c", f_string_eol[0]);
}
}
else if (!error_printed) {
- fll_error_print(data->error, F_status_set_fine(*status), function, F_true);
+ fll_error_print(data.error, F_status_set_fine(*status), function, F_true);
}
}
else if (!fake_signal_received(data)) {
*status = fl_string_dynamic_append_nulless(settings_single_source[i]->array[0], settings_single_destination[i]);
if (F_status_is_error(*status)) {
- fll_error_print(data->error, F_status_set_fine(*status), "fl_string_dynamic_append_nulless", F_true);
+ fll_error_print(data.error, F_status_set_fine(*status), "fl_string_dynamic_append_nulless", F_true);
break;
}
if (settings_single_type[i] == 2) {
*status = fl_string_append_assure(f_path_separator, f_path_separator_length, settings_single_destination[i]);
if (F_status_is_error(*status)) {
- fll_error_print(data->error, F_status_set_fine(*status), "fl_string_append_assure", F_true);
+ fll_error_print(data.error, F_status_set_fine(*status), "fl_string_append_assure", F_true);
break;
}
}
*status = fl_string_dynamic_terminate_after(settings_single_destination[i]);
if (F_status_is_error(*status)) {
- fll_error_print(data->error, F_status_set_fine(*status), "fl_string_dynamic_terminate_after", F_true);
+ fll_error_print(data.error, F_status_set_fine(*status), "fl_string_dynamic_terminate_after", F_true);
break;
}
}
if (destinations[i]->used > 0) continue;
*status = fl_string_append_assure(sources[i], lengths[i], destinations[i]);
+
if (F_status_is_error(*status)) {
- fll_error_print(data->error, F_status_set_fine(*status), "fl_string_append_assure", F_true);
+ fll_error_print(data.error, F_status_set_fine(*status), "fl_string_append_assure", F_true);
break;
}
*status = fl_string_dynamic_terminate_after(destinations[i]);
+
if (F_status_is_error(*status)) {
- fll_error_print(data->error, F_status_set_fine(*status), "fl_string_dynamic_terminate_after", F_true);
+ fll_error_print(data.error, F_status_set_fine(*status), "fl_string_dynamic_terminate_after", F_true);
break;
}
} // for
}
if (data.error.verbosity == f_console_verbosity_verbose) {
- Dprintf(data.output, "%c", f_string_eol[0]);
- fl_color_print_TO(data.output, data.context.set.error, "WARNING: the parameters '");
- fl_color_print_TO(data.output, data.context.set.notable, "%s%s", f_console_symbol_long_enable, fake_long_shared_disabled);
- fl_color_print_TO(data.output, data.context.set.error, "' and '");
- fl_color_print_TO(data.output, data.context.set.notable, "%s%s", f_console_symbol_long_enable, fake_long_shared_enabled);
- fl_color_print_TO(data.output, data.context.set.error, "' contradict, defaulting to '");
+ fprintf(data.output.stream, "%c", f_string_eol[0]);
+ fl_color_print(data.output.stream, data.context.set.error, "WARNING: the parameters '");
+ fl_color_print(data.output.stream, data.context.set.notable, "%s%s", f_console_symbol_long_enable, fake_long_shared_disabled);
+ fl_color_print(data.output.stream, data.context.set.error, "' and '");
+ fl_color_print(data.output.stream, data.context.set.notable, "%s%s", f_console_symbol_long_enable, fake_long_shared_enabled);
+ fl_color_print(data.output.stream, data.context.set.error, "' contradict, defaulting to '");
if (setting->build_shared) {
fl_color_print(data.output.stream, data.context.set.notable, "%s%s", f_console_symbol_long_enable, fake_long_shared_enabled);
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.error.verbosity != f_console_verbosity_quiet) {
- fprintf(data.error.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error, data.context.set.error, "ERROR: The build settings '");
- fl_color_print(data.error, data.context.set.notable, "%s", fake_build_setting_name_build_shared);
- fl_color_print(data.error, data.context.set.error, "' and '");
- fl_color_print(data.error, data.context.set.notable, "%s", fake_build_setting_name_build_static);
- fl_color_print(data.error, data.context.set.error, "' cannot both be false when using the language '");
+ fprintf(data.error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data.error.to.stream, data.context.set.error, "ERROR: The build settings '");
+ fl_color_print(data.error.to.stream, data.context.set.notable, "%s", fake_build_setting_name_build_shared);
+ fl_color_print(data.error.to.stream, data.context.set.error, "' and '");
+ fl_color_print(data.error.to.stream, data.context.set.notable, "%s", fake_build_setting_name_build_static);
+ fl_color_print(data.error.to.stream, data.context.set.error, "' cannot both be false when using the language '");
if (setting->build_language == fake_build_language_type_c) {
- fl_color_print(data.error, data.context.set.notable, "%s", fake_build_language_c);
+ fl_color_print(data.error.to.stream, data.context.set.notable, "%s", fake_build_language_c);
}
else {
- fl_color_print(data.error, data.context.set.notable, "%s", fake_build_language_cpp);
+ fl_color_print(data.error.to.stream, data.context.set.notable, "%s", fake_build_language_cpp);
}
- fl_color_print(data.error, data.context.set.error, "'.%c", f_string_eol[0]);
+ fl_color_print(data.error.to.stream, data.context.set.error, "'.%c", f_string_eol[0]);
}
*status = F_status_set_error(F_failure);
}
if (F_status_is_error(*status)) {
- fll_error_print(data->error, F_status_set_fine(*status), "f_file_name_base", F_true);
+ fll_error_print(data.error, F_status_set_fine(*status), "f_file_name_base", F_true);
return;
}
*status = fl_string_dynamic_append_nulless(data.path_build_stage, values[i]);
if (F_status_is_error(*status)) {
- fll_error_print(data->error, F_status_set_fine(*status), "fl_string_dynamic_append_nulless", F_true);
+ fll_error_print(data.error, F_status_set_fine(*status), "fl_string_dynamic_append_nulless", F_true);
break;
}
*status = fl_string_append(data.process.string, data.process.used, values[i]);
if (F_status_is_error(*status)) {
- fll_error_print(data->error, F_status_set_fine(*status), "fl_string_append", F_true);
+ fll_error_print(data.error, F_status_set_fine(*status), "fl_string_append", F_true);
break;
}
*status = fl_string_append(fake_build_stage_separate, fake_build_stage_separate_length, values[i]);
if (F_status_is_error(*status)) {
- fll_error_print(data->error, F_status_set_fine(*status), "fl_string_append", F_true);
+ fll_error_print(data.error, F_status_set_fine(*status), "fl_string_append", F_true);
break;
}
}
*status = fl_string_append_nulless(names[i], lengths[i], values[i]);
if (F_status_is_error(*status)) {
- fll_error_print(data->error, F_status_set_fine(*status), "fl_string_dynamic_append_nulless", F_true);
+ fll_error_print(data.error, F_status_set_fine(*status), "fl_string_dynamic_append_nulless", F_true);
break;
}
*status = fl_string_append(fake_build_stage_separate, fake_build_stage_separate_length, values[i]);
if (F_status_is_error(*status)) {
- fll_error_print(data->error, F_status_set_fine(*status), "fl_string_append", F_true);
+ fll_error_print(data.error, F_status_set_fine(*status), "fl_string_append", F_true);
break;
}
*status = fl_string_dynamic_append(settings_file_base, values[i]);
if (F_status_is_error(*status)) {
- fll_error_print(data->error, F_status_set_fine(*status), "fl_string_dynamic_append", F_true);
+ fll_error_print(data.error, F_status_set_fine(*status), "fl_string_dynamic_append", F_true);
break;
}
*status = fl_string_append(fake_build_stage_built, fake_build_stage_built_length, values[i]);
if (F_status_is_error(*status)) {
- fll_error_print(data->error, F_status_set_fine(*status), "fl_string_append", F_true);
+ fll_error_print(data.error, F_status_set_fine(*status), "fl_string_append", F_true);
break;
}
*status = fl_string_dynamic_terminate_after(values[i]);
if (F_status_is_error(*status)) {
- fll_error_print(data->error, F_status_set_fine(*status), "fl_string_dynamic_terminate_after", F_true);
+ fll_error_print(data.error, F_status_set_fine(*status), "fl_string_dynamic_terminate_after", F_true);
break;
}
} // for
*status = fake_build_get_file_name_without_extension(data, data_build.setting.build_sources_library.array[i], &file_name);
if (F_status_is_error(*status)) {
- fll_error_print(data->error, F_status_set_fine(*status), "fake_build_get_file_name_without_extension", F_true);
+ fll_error_print(data.error, F_status_set_fine(*status), "fake_build_get_file_name_without_extension", F_true);
break;
}
*status = f_file_name_directory(data_build.setting.build_sources_library.array[i].string, data_build.setting.build_sources_library.array[i].used, &destination_path);
if (F_status_is_error(*status)) {
- fll_error_print(data->error, F_status_set_fine(*status), "f_file_name_directory", F_true);
+ fll_error_print(data.error, F_status_set_fine(*status), "f_file_name_directory", F_true);
break;
}
*status = fl_string_dynamic_prepend(data.path_build_objects, &destination_path);
if (F_status_is_error(*status)) {
- fll_error_print(data->error, F_status_set_fine(*status), "fl_string_dynamic_prepend", F_true);
+ fll_error_print(data.error, F_status_set_fine(*status), "fl_string_dynamic_prepend", F_true);
break;
}
*status = fl_string_append_assure(f_path_separator, f_path_separator_length, &destination_path);
if (F_status_is_error(*status)) {
- fll_error_print(data->error, F_status_set_fine(*status), "fl_string_append_assure", F_true);
+ fll_error_print(data.error, F_status_set_fine(*status), "fl_string_append_assure", F_true);
break;
}
*status = fl_string_dynamic_terminate_after(&destination_path);
if (F_status_is_error(*status)) {
- fll_error_print(data->error, F_status_set_fine(*status), "fl_string_dynamic_terminate_after", F_true);
+ fll_error_print(data.error, F_status_set_fine(*status), "fl_string_dynamic_terminate_after", F_true);
break;
}
if (*status == F_false) {
if (data.error.verbosity != f_console_verbosity_quiet) {
- fprintf(data.error.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error, data.context.set.error, "ERROR: The path '");
- fl_color_print(data.error, data.context.set.notable, "%s", destination_path.string);
- fl_color_print(data.error, data.context.set.error, "' exists but is not a directory.%c", f_string_eol[0]);
+ fprintf(data.error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data.error.to.stream, data.context.set.error, "ERROR: The path '");
+ fl_color_print(data.error.to.stream, data.context.set.notable, "%s", destination_path.string);
+ fl_color_print(data.error.to.stream, data.context.set.error, "' exists but is not a directory.%c", f_string_eol[0]);
}
*status = F_status_set_error(F_failure);
if (F_status_is_error(*status)) {
if (F_status_set_fine(*status) == F_file_found_not) {
- fprintf(data.error.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error, data.context.set.error, "ERROR: The path '");
- fl_color_print(data.error, data.context.set.notable, "%s", destination_path.string);
- fl_color_print(data.error, data.context.set.error, "' could not be created, a parent directory does not exist.%c", f_string_eol[0]);
+ fprintf(data.error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data.error.to.stream, data.context.set.error, "ERROR: The path '");
+ fl_color_print(data.error.to.stream, data.context.set.notable, "%s", destination_path.string);
+ fl_color_print(data.error.to.stream, data.context.set.error, "' could not be created, a parent directory does not exist.%c", f_string_eol[0]);
}
else {
fll_error_file_print(data.error, F_status_set_fine(*status), "f_directory_create", F_true, destination_path.string, "create", fll_error_file_type_directory);
fake_build_arguments_standard_add(data, data_build, F_false, F_true, &arguments, status);
if (F_status_is_error(*status)) {
- fll_error_print(data->error, F_status_set_fine(*status), "fll_execute_arguments_add", F_true);
+ fll_error_print(data.error, F_status_set_fine(*status), "fll_execute_arguments_add", F_true);
break;
}
fake_build_arguments_standard_add(data, data_build, F_true, F_false, &arguments, status);
if (F_status_is_error(*status)) {
- fll_error_print(data->error, F_status_set_fine(*status), "fll_execute_arguments_add", F_true);
+ fll_error_print(data.error, F_status_set_fine(*status), "fll_execute_arguments_add", F_true);
f_macro_string_dynamics_t_delete_simple(arguments);
return;
fake_build_arguments_standard_add(data, data_build, F_false, F_false, &arguments, status);
if (F_status_is_error(*status)) {
- fll_error_print(data->error, F_status_set_fine(*status), "fll_execute_arguments_add", F_true);
+ fll_error_print(data.error, F_status_set_fine(*status), "fll_execute_arguments_add", F_true);
f_macro_string_dynamics_t_delete_simple(arguments);
return;
status = f_account_id_group_by_name(buffer.string, id);
if (F_status_is_error(status)) {
- fake_print_message(data, status, "f_account_id_group_by_name", F_true);
+ fll_error_print(error, F_status_set_fine(status), "f_account_id_group_by_name", F_true);
return F_status_set_error(status);
}
else if (status == F_exist_not) {
if (data.error.verbosity != f_console_verbosity_quiet) {
fprintf(error.to.stream, "%c", f_string_eol[0]);
- fl_color_print(error.to.stream, print.context, "%s: The group name '", data.error.prefix);
- fl_color_print(error.to.stream, data.context.set.notable, "%s", buffer.string);
- fl_color_print(error.to.stream, print.context, "' was not found.%c", f_string_eol[0]);
+ fl_color_print(error.to.stream, error.context, "%sThe group name '", error.prefix);
+ fl_color_print(error.to.stream, error.notable, "%s", buffer.string);
+ fl_color_print(error.to.stream, error.context, "' was not found.%c", f_string_eol[0]);
}
return F_status_set_error(F_failure);
return F_none;
}
- fake_print_message(data, status, "fl_conversion_string_to_number_unsigned", F_true);
+ fll_error_print(error, F_status_set_fine(status), "fl_conversion_string_to_number_unsigned", F_true);
return F_status_set_error(status);
}
else if (number > f_type_size_32_unsigned) {
if (data.error.verbosity != f_console_verbosity_quiet) {
fprintf(error.to.stream, "%c", f_string_eol[0]);
- fl_color_print(error.to.stream, print.context, "%s: The number '", data.error.prefix);
- fl_color_print(error.to.stream, data.context.set.notable, "%llu", number);
- fl_color_print(error.to.stream, print.context, "' is too large.%c", f_string_eol[0]);
+ fl_color_print(error.to.stream, error.context, "%sThe number '", error.prefix);
+ fl_color_print(error.to.stream, error.notable, "%llu", number);
+ fl_color_print(error.to.stream, error.context, "' is too large.%c", f_string_eol[0]);
}
}
#ifndef _di_fake_make_get_id_mode_
f_return_status fake_make_get_id_mode(const fake_data_t data, const fll_error_print_t error, const f_string_static_t buffer, f_file_mode_t *mode, uint8_t *replace) {
if (!buffer.used) {
- fake_print_message(data, F_parameter, "fake_make_get_id_mode", F_true);
+ fll_error_print(error, F_parameter, "fake_make_get_id_mode", F_true);
return F_status_set_error(F_parameter);
}
if (data.error.verbosity != f_console_verbosity_quiet) {
if (F_status_set_fine(status) == F_syntax) {
fprintf(error.to.stream, "%c", f_string_eol[0]);
- fl_color_print(error.to.stream, print.context, "%s: The mode '", data.error.prefix);
- fl_color_print(error.to.stream, data.context.set.notable, "%s", buffer.string);
- fl_color_print(error.to.stream, print.context, "' is invalid.%c", f_string_eol[0]);
+ fl_color_print(error.to.stream, error.context, "%sThe mode '", error.prefix);
+ fl_color_print(error.to.stream, error.notable, "%s", buffer.string);
+ fl_color_print(error.to.stream, error.context, "' is invalid.%c", f_string_eol[0]);
}
else {
- fake_print_message(data, status, "f_file_mode_from_string", F_true);
+ fll_error_print(error, status, "f_file_mode_from_string", F_true);
}
}
#endif // _di_fake_make_get_id_mode_
#ifndef _di_fake_make_get_id_owner_
- f_return_status fake_make_get_id_owner(const fake_data_t data, const f_string_static_t buffer, uid_t *id) {
+ f_return_status fake_make_get_id_owner(const fake_data_t data, const fll_error_print_t error, const f_string_static_t buffer, uid_t *id) {
const f_string_range_t range = f_macro_string_range_t_initialize(buffer.used);
f_number_unsigned_t number = 0;
status = f_account_id_user_by_name(buffer.string, id);
if (F_status_is_error(status)) {
- fake_print_message(data, status, "f_account_id_user_by_name", F_true);
+ fll_error_print(error, status, "f_account_id_user_by_name", F_true);
return F_status_set_error(status);
}
else if (status == F_exist_not) {
if (data.error.verbosity != f_console_verbosity_quiet) {
fprintf(error.to.stream, "%c", f_string_eol[0]);
- fl_color_print(error.to.stream, print.context, "%s: The user name '", data.error.prefix);
- fl_color_print(error.to.stream, data.context.set.notable, "%s", buffer.string);
- fl_color_print(error.to.stream, print.context, "' was not found.%c", f_string_eol[0]);
+ fl_color_print(error.to.stream, error.context, "%sThe user '", error.prefix);
+ fl_color_print(error.to.stream, error.notable, "%s", buffer.string);
+ fl_color_print(error.to.stream, error.context, "' was not found.%c", f_string_eol[0]);
}
return F_status_set_error(F_failure);
return F_none;
}
- fake_print_message(data, status, "fl_conversion_string_to_number_unsigned", F_true);
+ fll_error_print(error, status, "fl_conversion_string_to_number_unsigned", F_true);
return F_status_set_error(status);
}
else if (number > f_type_size_32_unsigned) {
if (data.error.verbosity != f_console_verbosity_quiet) {
fprintf(error.to.stream, "%c", f_string_eol[0]);
- fl_color_print(error.to.stream, print.context, "%s: The number '", data.error.prefix);
- fl_color_print(error.to.stream, data.context.set.notable, "%llu", number);
- fl_color_print(error.to.stream, print.context, "' is too large.%c", f_string_eol[0]);
+ fl_color_print(error.to.stream, error.context, "%sThe number '", error.prefix);
+ fl_color_print(error.to.stream, error.notable, "%llu", number);
+ fl_color_print(error.to.stream, error.context, "' is too large.%c", f_string_eol[0]);
}
}
*status = fll_fss_extended_read(&data_make->buffer, &content_range, &settings.objects, &settings.contents, 0, 0);
if (F_status_is_error(*status)) {
- fake_print_error_fss(data, *status, "fll_fss_extended_read", data.file_data_build_fakefile.string, content_range, F_true);
+ fake_print_error_fss(data, F_status_set_fine(*status), "fll_fss_extended_read", data.file_data_build_fakefile.string, content_range, F_true);
break;
}
*status = fll_fss_extended_read(&data_make->buffer, &content_range, &data_make->fakefile.array[data_make->fakefile.used].objects, &data_make->fakefile.array[data_make->fakefile.used].contents, 0, &data_make->fakefile.array[data_make->fakefile.used].quotedss);
if (F_status_is_error(*status)) {
- fake_print_error_fss(data, *status, "fll_fss_extended_read", data.file_data_build_fakefile.string, content_range, F_true);
+ fake_print_error_fss(data, F_status_set_fine(*status), "fll_fss_extended_read", data.file_data_build_fakefile.string, content_range, F_true);
break;
}
if (missing_main) {
if (data.error.verbosity != f_console_verbosity_quiet) {
fprintf(data.error.to.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error.to.stream, data.context.set.error, "ERROR: The fakefile '");
- fl_color_print(data.error.to.stream, data.context.set.notable, "%s", data.file_data_build_fakefile.string);
- fl_color_print(data.error.to.stream, data.context.set.error, "' is missing the required '");
- fl_color_print(data.error.to.stream, data.context.set.notable, "%s", fake_make_section_main);
- fl_color_print(data.error.to.stream, data.context.set.error, "' object.%c", f_string_eol[0]);
+ fl_color_print(data.error.to.stream, data.error.context, "%sThe fakefile '", data.error.prefix);
+ fl_color_print(data.error.to.stream, data.error.notable, "%s", data.file_data_build_fakefile.string);
+ fl_color_print(data.error.to.stream, data.error.context, "' is missing the required '");
+ fl_color_print(data.error.to.stream, data.error.notable, "%s", fake_make_section_main);
+ fl_color_print(data.error.to.stream, data.error.context, "' object.%c", f_string_eol[0]);
}
*status = F_status_set_error(F_failure);
for (; j < settings.contents.array[i].used; j++) {
*status = fl_string_dynamic_partial_append_nulless(data_make->buffer, settings.contents.array[i].array[j], &name_define);
+
if (F_status_is_error(*status)) {
fll_error_print(data.error, F_status_set_fine(*status), "fl_string_dynamic_partial_append_nulless", F_true);
break;
}
*status = fl_string_dynamic_terminate_after(&name_define);
+
if (F_status_is_error(*status)) {
fll_error_print(data.error, F_status_set_fine(*status), "fl_string_dynamic_terminate_after", F_true);
break;
name_define.used++;
*status = fl_string_dynamic_append(name_define, &data_make->setting_build.environment.array[data_make->setting_build.environment.used]);
+
if (F_status_is_error(*status)) {
fll_error_print(data.error, F_status_set_fine(*status), "fl_string_dynamic_append", F_true);
break;
data_make->setting_make.parameter.array[0].value.array[0].used = 0;
for (f_array_length_t j = 1; j < settings.contents.array[i].used; j++) {
+
function_name = "fl_string_dynamic_partial_append_nulless";
*status = fl_string_dynamic_partial_append_nulless(data_make->buffer, settings.contents.array[i].array[j], &data_make->setting_make.parameter.array[0].value.array[0]);
fprintf(data.error.to.stream, "%c", f_string_eol[0]);
fl_color_print(data.error.to.stream, data.context.set.error, "ERROR: Invalid characters in the define setting name '");
- fl_color_print_code(data.error.to.stream, data.context.notable);
+ fl_color_print_code(data.error.to.stream, *data.error.notable.before);
f_print_dynamic(data.error.to.stream, define.array[i].name);
- fl_color_print_code(data.error.to.stream, data.context.reset);
+ fl_color_print_code(data.error.to.stream, *data.error.notable.after);
fl_color_print(data.error.to.stream, data.context.set.error, "', only alpha-numeric ASCII characters and underscore (without a leading digit) is %c", f_string_eol[0]);
}
#ifndef _di_fake_make_operate_
f_return_status fake_make_operate(const fake_data_t data) {
- if (fake_signal_received(*data)) {
+ if (fake_signal_received(data)) {
return F_signal;
}
- if (data->error.verbosity != f_console_verbosity_quiet) {
- fprintf(data->output.stream, "%c", f_string_eol[0]);
- fl_color_print(data->output.stream, data->context.set.important, "Making project.%c", f_string_eol[0]);
+ if (data.error.verbosity != f_console_verbosity_quiet) {
+ fprintf(data.output.stream, "%c", f_string_eol[0]);
+ fl_color_print(data.output.stream, data.context.set.important, "Making project.%c", f_string_eol[0]);
}
f_status_t status = F_none;
f_macro_string_dynamics_new(status, data_make.path.stack, f_memory_default_allocation_step);
if (F_status_is_error(status)) {
- fll_error_print(data->error, F_status_set_fine(status), "f_macro_string_dynamics_new", F_true);
+ fll_error_print(data.error, F_status_set_fine(status), "f_macro_string_dynamics_new", F_true);
return status;
}
- if (fake_signal_received(*data)) {
+ if (fake_signal_received(data)) {
fake_macro_make_data_t_delete_simple(data_make);
return F_signal;
}
status = f_path_current(F_true, &data_make.path.stack.array[0]);
if (F_status_is_error(status)) {
- fll_error_print(data->error, F_status_set_fine(status), "f_path_current", F_true);
+ fll_error_print(data.error, F_status_set_fine(status), "f_path_current", F_true);
fake_macro_make_data_t_delete_simple(data_make);
return status;
status = f_directory_open(data_make.path.stack.array[0].string, F_false, &data_make.path.top);
if (F_status_is_error(status)) {
- fll_error_print(data->error, F_status_set_fine(status), "f_directory_open", F_true);
+ fll_error_print(data.error, F_status_set_fine(status), "f_directory_open", F_true);
fake_macro_make_data_t_delete_simple(data_make);
return status;
data_make.path.stack.used = 1;
- f_macro_mode_t_set_default_umask(mode, data->umask);
+ f_macro_mode_t_set_default_umask(mode, data.umask);
- fake_make_load_parameters(*data, &data_make, &status);
+ fake_make_load_parameters(data, &data_make, &status);
- fake_make_load_fakefile(*data, &data_make, &status);
+ fake_make_load_fakefile(data, &data_make, &status);
if (F_status_is_error(status)) {
fake_macro_make_data_t_delete_simple(data_make);
}
if (data_make.setting_make.fail == fake_make_operation_fail_type_exit) {
- data_make.error.prefix = fake_make_print_error;
- data_make.error.context = data_make.context.set.error;
+ data_make.error.prefix = fll_error_print_error;
+ data_make.error.context = data.context.set.error;
+ data_make.error.notable = data.context.set.notable;
data_make.error.to.stream = f_type_error;
data_make.error.to.id = f_type_descriptor_error;
}
else if (data_make.setting_make.fail == fake_make_operation_fail_type_warn) {
- data_make.error.prefix = fake_make_print_warning;
- data_make.error.context = data_make.context.set.warning;
+ data_make.error.prefix = fll_error_print_warning;
+ data_make.error.context = data.context.set.warning;
+ data_make.error.notable = data.context.set.notable;
data_make.error.to.stream = f_type_warning;
data_make.error.to.id = f_type_descriptor_warning;
}
data_make.error.to.id = -1;
}
- fake_make_operate_section(*data, data_make.main, &data_make, §ion_stack, &status);
+ fake_make_operate_section(data, data_make.main, &data_make, §ion_stack, &status);
if (data_make.path.current > 0) {
f_file_close(&data_make.path.current);
{
f_status_t status_path = f_path_change_at(data_make.path.top);
- if (F_status_is_error(status_path) && data->error.verbosity == f_console_verbosity_verbose) {
- fprintf(data->output.stream, "%c", f_string_eol[0]);
- fl_color_print(data->output.stream, data->context.set.warning, "WARNING: Failed change back to orignal path '");
- fl_color_print(data->output.stream, data->context.set.notable, "%s", data_make.path.stack.array[0].string);
- fl_color_print(data->output.stream, data->context.set.warning, "', status code = ");
- fl_color_print(data->output.stream, data->context.set.notable, "%llu", F_status_set_fine(status_path));
- fl_color_print(data->output.stream, data->context.set.warning, ".%c", f_string_eol[0]);
+ if (F_status_is_error(status_path) && data.error.verbosity == f_console_verbosity_verbose) {
+ fprintf(data.output.stream, "%c", f_string_eol[0]);
+ fl_color_print(data.output.stream, data.context.set.warning, "WARNING: Failed change back to orignal path '");
+ fl_color_print(data.output.stream, data.context.set.notable, "%s", data_make.path.stack.array[0].string);
+ fl_color_print(data.output.stream, data.context.set.warning, "', status code = ");
+ fl_color_print(data.output.stream, data.context.set.notable, "%llu", F_status_set_fine(status_path));
+ fl_color_print(data.output.stream, data.context.set.warning, ".%c", f_string_eol[0]);
}
}
*status = fl_string_dynamics_size_increase(content.used, arguments);
if (F_status_is_error(*status) || *status == F_string_too_large) {
- fake_print_message(data, F_status_set_fine(*status), "fl_string_dynamics_size_increase", F_true, data_make->error);
+ fll_error_print(data_make->error, F_status_set_fine(*status), "fl_string_dynamics_size_increase", F_true);
return;
}
}
*status = fl_iki_read(&data_make->buffer, &range, &iki_variable, &iki_vocabulary, &iki_content);
if (F_status_is_error(*status)) {
- fake_print_message(data, F_status_set_fine(*status), "fl_iki_read", F_true, data_make->error);
+ fll_error_print(data_make->error, F_status_set_fine(*status), "fl_iki_read", F_true);
break;
}
*status = fl_string_dynamics_size_increase(f_memory_default_allocation_step, arguments);
if (F_status_is_error(*status)) {
- fake_print_message(data, F_status_set_fine(*status), "fl_string_lengths_size_increase", F_true, data_make->error);
+ fll_error_print(data_make->error, F_status_set_fine(*status), "fl_string_lengths_size_increase", F_true);
return;
}
}
*status = fl_string_dynamic_partial_append_nulless(data_make->buffer, range, &arguments->array[arguments->used]);
if (F_status_is_error(*status)) {
- fake_print_message(data, F_status_set_fine(*status), "fl_string_dynamic_partial_append_nulless", F_true, data_make->error);
+ fll_error_print(data_make->error, F_status_set_fine(*status), "fl_string_dynamic_partial_append_nulless", F_true);
break;
}
}
*status = fl_string_dynamic_partial_append_nulless(data_make->buffer, range, &arguments->array[arguments->used]);
if (F_status_is_error(*status)) {
- fake_print_message(data, F_status_set_fine(*status), "fl_string_dynamic_partial_append_nulless", F_true, data_make->error);
+ fll_error_print(data_make->error, F_status_set_fine(*status), "fl_string_dynamic_partial_append_nulless", F_true);
break;
}
}
}
if (F_status_is_error(*status)) {
- fake_print_message(data, F_status_set_fine(*status), "fl_string_dynamic_partial_compare", F_true, data_make->error);
+ fll_error_print(data_make->error, F_status_set_fine(*status), "fl_string_dynamic_partial_compare", F_true);
break;
}
*status = fl_string_dynamic_append(data_make->setting_make.parameter.array[0].value.array[0], &arguments->array[arguments->used]);
if (F_status_is_error(*status)) {
- fake_print_message(data, F_status_set_fine(*status), "fl_string_dynamic_append", F_true, data_make->error);
+ fll_error_print(data_make->error, F_status_set_fine(*status), "fl_string_dynamic_append", F_true);
break;
}
}
*status = fl_string_append("0", 1, &arguments->array[arguments->used]);
if (F_status_is_error(*status)) {
- fake_print_message(data, F_status_set_fine(*status), "fl_string_append", F_true, data_make->error);
+ fll_error_print(data_make->error, F_status_set_fine(*status), "fl_string_append", F_true);
break;
}
}
*status = fl_string_dynamics_size_increase(f_memory_default_allocation_step, arguments);
if (F_status_is_error(*status)) {
- fake_print_message(data, F_status_set_fine(*status), "fl_string_dynamics_size_increase", F_true, data_make->error);
+ fll_error_print(data_make->error, F_status_set_fine(*status), "fl_string_dynamics_size_increase", F_true);
return;
}
}
*status = fl_string_append(" ", 1, &arguments->array[arguments->used]);
if (F_status_is_error(*status)) {
- fake_print_message(data, F_status_set_fine(*status), "fl_string_append", F_true, data_make->error);
+ fll_error_print(data_make->error, F_status_set_fine(*status), "fl_string_append", F_true);
break;
}
}
*status = fl_string_dynamic_append(reserved_value[k]->array[l], &arguments->array[arguments->used]);
if (F_status_is_error(*status)) {
- fake_print_message(data, F_status_set_fine(*status), "fl_string_dynamic_append", F_true, data_make->error);
+ fll_error_print(data_make->error, F_status_set_fine(*status), "fl_string_dynamic_append", F_true);
break;
}
} // for
*status = fl_string_append(" ", 1, &arguments->array[arguments->used]);
if (F_status_is_error(*status)) {
- fake_print_message(data, F_status_set_fine(*status), "fl_string_append", F_true, data_make->error);
+ fll_error_print(data_make->error, F_status_set_fine(*status), "fl_string_append", F_true);
break;
}
}
*status = fl_string_dynamic_append_nulless(parameter->array[k].value.array[l], &arguments->array[arguments->used]);
if (F_status_is_error(*status)) {
- fake_print_message(data, F_status_set_fine(*status), "fl_string_dynamic_append_nulless", F_true, data_make->error);
+ fll_error_print(data_make->error, F_status_set_fine(*status), "fl_string_dynamic_append_nulless", F_true);
break;
}
} // for
*status = fl_string_dynamics_size_increase(f_memory_default_allocation_step, arguments);
if (F_status_is_error(*status)) {
- fake_print_message(data, F_status_set_fine(*status), "fl_string_dynamics_size_increase", F_true, data_make->error);
+ fll_error_print(data_make->error, F_status_set_fine(*status), "fl_string_dynamics_size_increase", F_true);
break;
}
}
*status = fl_string_dynamic_append_nulless(parameter->array[k].value.array[l], &arguments->array[arguments->used]);
if (F_status_is_error(*status)) {
- fake_print_message(data, F_status_set_fine(*status), "fl_string_dynamic_append_nulless", F_true, data_make->error);
+ fll_error_print(data_make->error, F_status_set_fine(*status), "fl_string_dynamic_append_nulless", F_true);
break;
}
*status = fl_string_dynamic_terminate_after(&arguments->array[arguments->used]);
if (F_status_is_error(*status)) {
- fake_print_message(data, F_status_set_fine(*status), "fl_string_terminate_after", F_true, data_make->error);
+ fll_error_print(data_make->error, F_status_set_fine(*status), "fl_string_terminate_after", F_true);
break;
}
break;
}
else if (F_status_is_error(*status)) {
- fake_print_message(data, F_status_set_fine(*status), "fl_string_dynamic_compare", F_true, data_make->error);
+ fll_error_print(data_make->error, F_status_set_fine(*status), "fl_string_dynamic_compare", F_true);
break;
}
} // for
*status = fake_make_operate_expand_build(data, quoteds.array[i], iki_content.array[j], data_make, arguments);
if (F_status_is_error(*status)) {
- fake_print_message(data, F_status_set_fine(*status), "fake_make_operate_expand_build", F_true, data_make->error);
+ fll_error_print(data_make->error, F_status_set_fine(*status), "fake_make_operate_expand_build", F_true);
break;
}
}
*status = fake_make_operate_expand_environment(data, quoteds.array[i], iki_content.array[j], data_make, arguments);
if (F_status_is_error(*status)) {
- fake_print_message(data, F_status_set_fine(*status), "fake_make_operate_expand_environment", F_true, data_make->error);
+ fll_error_print(data_make->error, F_status_set_fine(*status), "fake_make_operate_expand_environment", F_true);
break;
}
}
if (F_status_is_error_not(*status)) {
*status = fl_string_dynamic_terminate_after(&arguments->array[arguments->used - 1]);
+
if (F_status_is_error(*status)) {
- fake_print_message(data, F_status_set_fine(*status), "fl_string_terminate_after", F_true, data_make->error);
+ fll_error_print(data_make->error, F_status_set_fine(*status), "fl_string_terminate_after", F_true);
break;
}
}
}
if (F_status_is_error(*status)) {
- fake_print_message(data, F_status_set_fine(*status), "fl_string_dynamic_partial_append_nulless", F_true, data_make->error);
+ fll_error_print(data_make->error, F_status_set_fine(*status), "fl_string_dynamic_partial_append_nulless", F_true);
break;
}
}
*status = fl_string_dynamic_partial_append_nulless(data_make->buffer, content.array[i], &arguments->array[arguments->used]);
if (F_status_is_error(*status)) {
- fake_print_message(data, F_status_set_fine(*status), "fl_string_append_nulless", F_true, data_make->error);
+ fll_error_print(data_make->error, F_status_set_fine(*status), "fl_string_append_nulless", F_true);
break;
}
}
*status = fl_string_dynamic_terminate_after(&arguments->array[arguments->used]);
if (F_status_is_error(*status)) {
- fake_print_message(data, F_status_set_fine(*status), "fl_string_terminate_after", F_true, data_make->error);
+ fll_error_print(data_make->error, F_status_set_fine(*status), "fl_string_terminate_after", F_true);
break;
}
};
for (uint8_t i = 0; i < 2; i++) {
+
status = fl_string_dynamic_partial_compare_string(uint8_name[i], data_make->buffer, uint8_length[i], range_name);
if (status == F_equal_to) {
};
for (uint8_t i = 0; i < 7; i++) {
+
status = fl_string_dynamic_partial_compare_string(bool_name[i], data_make->buffer, bool_length[i], range_name);
if (status == F_equal_to) {
};
for (uint8_t i = 0; i < 17; i++) {
+
status = fl_string_dynamic_partial_compare_string(dynamic_name[i], data_make->buffer, dynamic_length[i], range_name);
if (status == F_equal_to) {
};
for (uint8_t i = 0; i < 17; i++) {
+
status = fl_string_dynamic_partial_compare_string(dynamics_name[i], data_make->buffer, dynamics_length[i], range_name);
if (status == F_equal_to) {
unmatched = F_false;
for (f_array_length_t j = 0; j < dynamics_value[i].used; j++) {
+
status = fl_string_dynamic_mash(" ", 1, dynamics_value[i].array[j], &value);
+
if (F_status_is_error(status)) {
break;
}
if (id_section > data_make->fakefile.used) {
*status = F_status_set_error(F_parameter);
- fake_print_message(data, F_parameter, "fake_make_operate_section", F_true, data_make->error);
+ fll_error_print(data_make->error, F_parameter, "fake_make_operate_section", F_true);
return;
}
*status = fl_string_lengths_size_increase(f_memory_default_allocation_step, section_stack);
if (F_status_is_error(*status)) {
- fake_print_message(data, F_status_set_fine(*status), "fl_string_lengths_size_increase", F_true, data_make->error);
+ fll_error_print(data_make->error, F_status_set_fine(*status), "fl_string_lengths_size_increase", F_true);
return;
}
}
fl_color_print(data.output.stream, data.context.set.important, "Processing Section '");
- fl_color_print_code(f_type_output, data.context.notable);
- f_print_dynamic_partial(f_type_output, data_make->buffer, section->name);
- fl_color_print_code(f_type_output, data.context.reset);
+ fl_color_print_code(data.output.stream, *data.context.set.notable.before);
+ f_print_dynamic_partial(data.output.stream, data_make->buffer, section->name);
+ fl_color_print_code(data.output.stream, *data.context.set.notable.after);
fl_color_print(data.output.stream, data.context.set.important, "'.%c", f_string_eol[0]);
}
} // for
if (!operation) {
- fake_print_message_section_operation_unknown(data, data_make->buffer, section->name, section->objects.array[i], data_make->error);
+ fake_print_message_section_operation_unknown(data, data_make->error, data_make->buffer, section->name, section->objects.array[i]);
*status = F_status_set_error(F_invalid);
}
else if (operation == fake_make_operation_type_operate) {
if (section_stack->used == fake_make_section_stack_max) {
- fake_print_message_section_operation_stack_max(data, data_make->buffer, section->name, section->objects.array[i], fake_make_section_stack_max, data_make->error);
+ fake_print_message_section_operation_stack_max(data, data_make->error, data_make->buffer, section->name, section->objects.array[i], fake_make_section_stack_max);
*status = F_status_set_error(F_recurse);
}
// break acts identical to fail when at the top of the stack.
if (F_status_set_fine(*status) == F_signal_abort && !section_stack->used) {
data_make->setting_make.fail = fake_make_operation_fail_type_exit;
- data_make->error.prefix = fake_make_print_error;
+ data_make->error.prefix = fll_error_print_error;
data_make->error.context = data.context.set.error;
- data_make->error.to = f_type_error;
+ data_make->error.notable = data.context.set.notable;
+ data_make->error.to.stream = f_type_error;
+ data_make->error.to.id = f_type_descriptor_error;
}
- fake_print_message_section_operation_failed(data, data_make->buffer, section->name, section->objects.array[i], data_make->error);
+ fake_print_message_section_operation_failed(data, data_make->error, data_make->buffer, section->name, section->objects.array[i]);
// F_signal_abort is used by the break section operation.
if (F_status_set_fine(*status) == F_signal_abort) {
type_name = fake_make_operation_else;
}
- fprintf(data.error.to.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error.to.stream, data_make->error.context, "%s: Incomplete '", data_make->error.prefix);
- fl_color_print(data.error.to.stream, data.context.set.notable, "%s", type_name);
- fl_color_print(data.error.to.stream, data_make->error.context, "' at end of section.%c", f_string_eol[0]);
+ fprintf(data_make->error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "%sIncomplete '", data_make->error.prefix);
+ fl_color_print(data_make->error.to.stream, data_make->error.notable, "%s", type_name);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "' at end of section.%c", f_string_eol[0]);
}
- fake_print_message_section_operation_failed(data, data_make->buffer, section->name, section->objects.array[section->objects.used - 1], data_make->error);
+ fake_print_message_section_operation_failed(data, data_make->error, data_make->buffer, section->name, section->objects.array[section->objects.used - 1]);
*status = F_status_set_error(F_failure);
}
int return_code = fake_execute(data, data_make->environment, data_make->setting_build.build_indexer, arguments, status);
if (F_status_is_error(*status)) {
- fake_print_message(data, F_status_set_fine(*status), "fake_execute", F_true, data_make->error);
+ fll_error_print(data_make->error, F_status_set_fine(*status), "fake_execute", F_true);
}
fake_make_operate_process_return(data, return_code, data_make, status);
}
if (data.error.verbosity == f_console_verbosity_verbose) {
- fprintf(data.output.stream, "Breaking as '%s'.", arguments.used ? arguments.array[0].string : fake_make_operation_argument_success);
+ fprintf(data.output.stream, "Breaking as '");
+ fl_color_print(data.output.stream, data.context.set.notable, "%s", arguments.used ? arguments.array[0].string : fake_make_operation_argument_success);
+ fprintf(data.output.stream, "'.%c", f_string_eol[0]);
}
return;
f_string_length_t destination_length = 0;
if (data.error.verbosity == f_console_verbosity_verbose) {
- recurse.output = f_type_descriptor_output;
+ recurse.output = data.output;
recurse.verbose = fake_verbose_print_clone;
}
status_file = f_directory_is(arguments.array[total].string);
if (F_status_is_error(status_file)) {
- fake_print_message_file(data, F_status_set_fine(status_file), "f_directory_is", arguments.array[1].string, "identify", F_false, F_true, data_make->error);
+ fake_print_message_file(data, data_make->error, F_status_set_fine(status_file), "f_directory_is", arguments.array[1].string, "identify", F_false, F_true);
*status = F_status_set_error(F_failure);
return;
}
status_file = fl_directory_clone(arguments.array[i].string, destination, arguments.array[i].used, destination_length, F_true, recurse);
if (F_status_is_error(status_file)) {
- fake_print_message_file(data, F_status_set_fine(status_file), "fl_directory_clone", arguments.array[i].string, "clone", F_false, F_true, data_make->error);
+ fake_print_message_file(data, data_make->error, F_status_set_fine(status_file), "fl_directory_clone", arguments.array[i].string, "clone", F_false, F_true);
*status = F_status_set_error(F_failure);
}
}
status_file = f_file_clone(arguments.array[i].string, destination, F_true, recurse.size_block, recurse.exclusive);
if (F_status_is_error(status_file)) {
- 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->error);
+ fake_print_message_file(data, data_make->error, F_status_set_fine(status_file), "f_file_clone", arguments.array[i].string, "clone", F_false, F_true);
*status = F_status_set_error(F_failure);
}
else if (data.error.verbosity == f_console_verbosity_verbose) {
- fprintf(data.output.stream, "Cloned '%s' to '%s'.%c", arguments.array[i].string, destination, f_string_eol[0]);
+ fprintf(data.output.stream, "Cloned '");
+ fl_color_print(data.output.stream, data.context.set.notable, "%s", arguments.array[i].string);
+ fprintf(data.output.stream, "' to '");
+ fl_color_print(data.output.stream, data.context.set.notable, "%s", destination);
+ fprintf(data.output.stream, "'.%c", f_string_eol[0]);
}
}
else if (F_status_is_error(status_file)) {
- fake_print_message_file(data, F_status_set_fine(status_file), "f_directory_is", arguments.array[i].string, "identify", F_false, F_true, data_make->error);
+ fake_print_message_file(data, data_make->error, F_status_set_fine(status_file), "f_directory_is", arguments.array[i].string, "identify", F_false, F_true);
*status = F_status_set_error(F_failure);
break;
}
int return_code = fake_execute(data, data_make->environment, data_make->setting_build.build_compiler, arguments, status);
if (F_status_is_error(*status)) {
- fake_print_message(data, F_status_set_fine(*status), "fake_execute", F_true, data_make->error);
+ fll_error_print(data_make->error, F_status_set_fine(*status), "fake_execute", F_true);
}
fake_make_operate_process_return(data, return_code, data_make, status);
f_macro_mode_t_set_default_umask(mode, data.umask);
if (data.error.verbosity == f_console_verbosity_verbose) {
- recurse.output = f_type_descriptor_output;
+ recurse.output = data.output;
recurse.verbose = fake_verbose_print_copy;
}
status_file = f_directory_is(arguments.array[total].string);
if (F_status_is_error(status_file)) {
- fake_print_message_file(data, F_status_set_fine(status_file), "f_directory_is", arguments.array[1].string, "identify", F_false, F_true, data_make->error);
+ fake_print_message_file(data, data_make->error, F_status_set_fine(status_file), "f_directory_is", arguments.array[1].string, "identify", F_false, F_true);
*status = F_status_set_error(F_failure);
return;
}
status_file = fl_directory_copy(arguments.array[i].string, destination, arguments.array[i].used, destination_length, mode, recurse);
if (F_status_is_error(status_file)) {
- fake_print_message_file(data, F_status_set_fine(status_file), "fl_directory_copy", arguments.array[i].string, "copy", F_false, F_true, data_make->error);
+ fake_print_message_file(data, data_make->error, F_status_set_fine(status_file), "fl_directory_copy", arguments.array[i].string, "copy", F_false, F_true);
*status = F_status_set_error(F_failure);
}
}
status_file = f_file_copy(arguments.array[i].string, destination, mode, recurse.size_block, recurse.exclusive);
if (F_status_is_error(status_file)) {
- 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->error);
+ fake_print_message_file(data, data_make->error, F_status_set_fine(status_file), "f_file_copy", arguments.array[i].string, "copy", F_false, F_true);
*status = F_status_set_error(F_failure);
}
else if (data.error.verbosity == f_console_verbosity_verbose) {
- fprintf(data.output.stream, "Copied '%s' to '%s'.%c", arguments.array[i].string, destination, f_string_eol[0]);
+ fprintf(data.output.stream, "Copied '");
+ fl_color_print(data.output.stream, data.context.set.notable, "%s", arguments.array[i].string);
+ fprintf(data.output.stream, "' to '");
+ fl_color_print(data.output.stream, data.context.set.notable, "%s", destination);
+ fprintf(data.output.stream, "'.%c", f_string_eol[0]);
}
}
else if (F_status_is_error(status_file)) {
- fake_print_message_file(data, F_status_set_fine(status_file), "f_directory_is", arguments.array[i].string, "identify", F_false, F_true, data_make->error);
+ fake_print_message_file(data, data_make->error, F_status_set_fine(status_file), "f_directory_is", arguments.array[i].string, "identify", F_false, F_true);
*status = F_status_set_error(F_failure);
break;
}
}
if (F_status_is_error(*status)) {
- fake_print_message(data, F_status_set_fine(*status), "f_environment_set", F_true, data_make->error);
+ fll_error_print(data_make->error, F_status_set_fine(*status), "f_environment_set", F_true);
}
else if (data.error.verbosity == f_console_verbosity_verbose) {
- fprintf(data.output.stream, "Defined environment variable '%s'.%c", arguments.array[0].string, f_string_eol[0]);
+ fprintf(data.output.stream, "Defined environment variable '");
+ fl_color_print(data.output.stream, data.context.set.notable, "%s", arguments.array[0].string);
+ fprintf(data.output.stream, "'.%c", f_string_eol[0]);
}
return;
*status = F_none;
}
else {
- fake_print_message_file(data, F_status_set_fine(*status), "f_file_stat", arguments.array[i].string, "delete", F_true, F_true, data_make->error);
+ fll_error_file_print(data_make->error, F_status_set_fine(*status), "f_file_stat", F_true, arguments.array[i].string, "delete", fll_error_file_type_file);
return;
}
}
if (F_status_set_fine(*status) == F_file_found_not) {
if (data.error.verbosity == f_console_verbosity_verbose) {
- fprintf(data.output.stream, "The directory '%s' does not exist.%c", arguments.array[i].string, f_string_eol[0]);
+ fprintf(data.output.stream, "The directory '");
+ fl_color_print(data.output.stream, data.context.set.notable, "%s", arguments.array[i].string);
+ fprintf(data.output.stream, "' does not exist.%c", f_string_eol[0]);
}
*status = F_none;
}
if (F_status_is_error(*status)) {
- fake_print_message_file(data, F_status_set_fine(*status), "f_directory_remove", arguments.array[i].string, "delete", F_false, F_true, data_make->error);
+ fll_error_file_print(data_make->error, F_status_set_fine(*status), "f_directory_remove", F_true, arguments.array[i].string, "delete", fll_error_file_type_directory);
return;
}
else if (data.error.verbosity == f_console_verbosity_verbose) {
- fprintf(data.output.stream, "Removed '%s'.%c", arguments.array[i].string, f_string_eol[0]);
+ fprintf(data.output.stream, "Removed '");
+ fl_color_print(data.output.stream, data.context.set.notable, "%s", arguments.array[i].string);
+ fprintf(data.output.stream, "'.%c", f_string_eol[0]);
}
}
else {
*status = f_file_remove(arguments.array[i].string);
+ if (F_status_set_fine(*status) == F_file_found_not) {
+ if (data.error.verbosity == f_console_verbosity_verbose) {
+ fprintf(data.output.stream, "The file '");
+ fl_color_print(data.output.stream, data.context.set.notable, "%s", arguments.array[i].string);
+ fprintf(data.output.stream, "' does not exist.%c", f_string_eol[0]);
+ }
+
+ *status = F_none;
+ }
+
if (F_status_is_error(*status)) {
- fake_print_message_file(data, F_status_set_fine(*status), "f_file_remove", arguments.array[i].string, "delete", F_true, F_true, data_make->error);
+ fll_error_file_print(data_make->error, F_status_set_fine(*status), "f_file_remove", F_true, arguments.array[i].string, "delete", fll_error_file_type_file);
return;
}
else if (data.error.verbosity == f_console_verbosity_verbose) {
- fprintf(data.output.stream, "Removed '%s'.%c", arguments.array[i].string, f_string_eol[0]);
+ fprintf(data.output.stream, "Removed '");
+ fl_color_print(data.output.stream, data.context.set.notable, "%s", arguments.array[i].string);
+ fprintf(data.output.stream, "'.%c", f_string_eol[0]);
}
}
} // for
// forcing exit forces fail mode.
data_make->setting_make.fail = fake_make_operation_fail_type_exit;
- data_make->error.prefix = fake_make_print_error;
+ data_make->error.prefix = fll_error_print_error;
data_make->error.context = data.context.set.error;
- data_make->error.to = f_type_error;
+ data_make->error.notable = data.context.set.notable;
+ data_make->error.to.stream = f_type_error;
+ data_make->error.to.id = f_type_descriptor_error;
}
else {
return;
}
if (data.error.verbosity == f_console_verbosity_verbose) {
- fprintf(data.output.stream, "Exiting as '%s'.", arguments.used ? arguments.array[0].string : fake_make_operation_argument_success);
+ fprintf(data.output.stream, "Exiting as '");
+ fl_color_print(data.output.stream, data.context.set.notable, "%s", arguments.used ? arguments.array[0].string : fake_make_operation_argument_success);
+ fprintf(data.output.stream, "'.%c", f_string_eol[0]);
}
return;
if (fl_string_dynamic_compare_string(fake_make_operation_argument_exit, arguments.array[0], fake_make_operation_argument_exit_length) == F_equal_to) {
data_make->setting_make.fail = fake_make_operation_fail_type_exit;
- data_make->error.prefix = fake_make_print_error;
+ data_make->error.prefix = fll_error_print_error;
data_make->error.context = data.context.set.error;
- data_make->error.to = f_type_error;
+ data_make->error.notable = data.context.set.notable;
+ data_make->error.to.stream = f_type_error;
+ data_make->error.to.id = f_type_descriptor_error;
}
else if (fl_string_dynamic_compare_string(fake_make_operation_argument_warn, arguments.array[0], fake_make_operation_argument_warn_length) == F_equal_to) {
data_make->setting_make.fail = fake_make_operation_fail_type_warn;
- data_make->error.prefix = fake_make_print_warning;
+ data_make->error.prefix = fll_error_print_warning;
data_make->error.context = data.context.set.warning;
- data_make->error.to = f_type_warning;
+ data_make->error.notable = data.context.set.notable;
+ data_make->error.to.stream = f_type_warning;
+ data_make->error.to.id = f_type_descriptor_warning;
}
else if (fl_string_dynamic_compare_string(fake_make_operation_argument_ignore, arguments.array[0], fake_make_operation_argument_ignore_length) == F_equal_to) {
data_make->setting_make.fail = fake_make_operation_fail_type_ignore;
- data_make->error.to = 0;
+ data_make->error.to.stream = 0;
+ data_make->error.to.id = -1;
}
if (data.error.verbosity == f_console_verbosity_verbose) {
fprintf(data.output.stream, "Set failure state to '");
if (data_make->setting_make.fail == fake_make_operation_fail_type_exit) {
- printf(fake_make_operation_argument_exit);
+ fl_color_print(data.output.stream, data.context.set.notable, "%s", fake_make_operation_argument_exit);
}
else if (data_make->setting_make.fail == fake_make_operation_fail_type_warn) {
- printf(fake_make_operation_argument_warn);
+ fl_color_print(data.output.stream, data.context.set.notable, "%s", fake_make_operation_argument_warn);
}
else if (data_make->setting_make.fail == fake_make_operation_fail_type_ignore) {
- printf(fake_make_operation_argument_ignore);
+ fl_color_print(data.output.stream, data.context.set.notable, "%s", fake_make_operation_argument_ignore);
}
fprintf(data.output.stream, "'.%c", f_string_eol[0]);
f_status_t status_file = F_none;
for (f_array_length_t i = 1; i < arguments.used; i++) {
+
status_file = fake_make_assure_inside_project(data, arguments.array[i], data_make);
if (F_status_is_error(status_file)) {
*status = status_file;
- fake_print_message_section_operation_path_outside(data, F_status_set_fine(*status), "fake_make_assure_inside_project", data_make->path_cache.used ? data_make->path_cache.string : arguments.array[i].string, data_make->error);
+ fake_print_message_section_operation_path_outside(data, data_make->error, F_status_set_fine(*status), "fake_make_assure_inside_project", data_make->path_cache.used ? data_make->path_cache.string : arguments.array[i].string);
continue;
}
if (F_status_is_error(status_file)) {
*status = status_file;
- fake_print_message_file(data, *status, "f_file_role_change", arguments.array[i].string, "change group of", F_true, F_true, data_make->error);
+ fll_error_file_print(data_make->error, F_status_set_fine(*status), "f_file_role_change", F_true, arguments.array[i].string, "change group of", fll_error_file_type_file);
}
else if (data.error.verbosity == f_console_verbosity_verbose) {
- fprintf(data.output.stream, "Changed group of '%s' to %llu.%c", arguments.array[i].string, id, f_string_eol[0]);
+ fprintf(data.output.stream, "Changed group of '");
+ fl_color_print(data.output.stream, data.context.set.notable, "%s", arguments.array[i].string);
+ fprintf(data.output.stream, "' to ");
+ fl_color_print(data.output.stream, data.context.set.notable, "%llu", id);
+ fprintf(data.output.stream, ".%c", f_string_eol[0]);
}
} // for
if (F_status_is_error(status_file)) {
*status = status_file;
- fake_print_message_section_operation_path_outside(data, F_status_set_fine(*status), "fake_make_assure_inside_project", data_make->path_cache.used ? data_make->path_cache.string : arguments.array[i].string, data_make->error);
+ fake_print_message_section_operation_path_outside(data, data_make->error, F_status_set_fine(*status), "fake_make_assure_inside_project", data_make->path_cache.used ? data_make->path_cache.string : arguments.array[i].string);
continue;
}
if (F_status_is_error(status_file)) {
*status = status_file;
- 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->error);
+ fll_error_file_print(data_make->error, F_status_set_fine(*status), "fll_file_role_change_all", F_true, arguments.array[i].string, "change group of", fll_error_file_type_file);
}
else if (data.error.verbosity == f_console_verbosity_verbose) {
- fprintf(data.output.stream, "Changed group of '%s' to %llu.%c", arguments.array[i].string, id, f_string_eol[0]);
+ fprintf(data.output.stream, "Changed group of '");
+ fl_color_print(data.output.stream, data.context.set.notable, "%s", arguments.array[i].string);
+ fprintf(data.output.stream, "' to ");
+ fl_color_print(data.output.stream, data.context.set.notable, "%llu", id);
+ fprintf(data.output.stream, ".%c", f_string_eol[0]);
}
} // for
*status = f_file_group_read(arguments.array[i].string, &id_file);
if (F_status_is_error(*status)) {
*operation_if = fake_make_operation_if_type_false_always_next;
- fake_print_message_file(data, F_status_set_fine(*status), "f_file_group_read", arguments.array[i].string, "get group of", F_true, F_true, data_make->error);
+ fll_error_file_print(data_make->error, F_status_set_fine(*status), "f_file_group_read", F_true, arguments.array[i].string, "get group of", fll_error_file_type_file);
break;
}
if (F_status_is_error(*status)) {
*operation_if = fake_make_operation_if_type_false_always_next;
- fake_print_message(data, F_status_set_fine(*status), "f_file_mode_to_mode", F_true, data_make->error);
+ fll_error_print(data_make->error, F_status_set_fine(*status), "f_file_mode_to_mode", F_true);
return;
}
}
if (F_status_is_error(*status)) {
*operation_if = fake_make_operation_if_type_false_always_next;
- fake_print_message_file(data, F_status_set_fine(*status), "f_file_mode_read", arguments.array[i].string, "get mode of", F_true, F_true, data_make->error);
+ fll_error_file_print(data_make->error, F_status_set_fine(*status), "f_file_mode_read", F_true, arguments.array[i].string, "get mode of", fll_error_file_type_file);
break;
}
for (f_array_length_t i = 2; i < arguments.used; i++, id_file = 0) {
*status = f_file_owner_read(arguments.array[i].string, &id_file);
+
if (F_status_is_error(*status)) {
*operation_if = fake_make_operation_if_type_false_always_next;
- fake_print_message_file(data, F_status_set_fine(*status), "f_file_owner_read", arguments.array[i].string, "get owner of", F_true, F_true, data_make->error);
+ fll_error_file_print(data_make->error, F_status_set_fine(*status), "f_file_owner_read", F_true, arguments.array[i].string, "get owner of", fll_error_file_type_file);
break;
}
for (; i < arguments.used; i++, mode_file = 0) {
*status = f_file_mode_read(arguments.array[i].string, &mode_file);
+
if (F_status_is_error(*status)) {
*operation_if = fake_make_operation_if_type_false_always_next;
- fake_print_message_file(data, F_status_set_fine(*status), "f_file_mode_read", arguments.array[i].string, "get mode of", F_true, F_true, data_make->error);
+ fll_error_file_print(data_make->error, F_status_set_fine(*status), "f_file_mode_read", F_true, arguments.array[i].string, "get mode of", fll_error_file_type_file);
break;
}
for (f_array_length_t i = 1; i < arguments.used; i++) {
*status = f_file_exists(arguments.array[i].string);
+
if (F_status_is_error(*status)) {
*operation_if = fake_make_operation_if_type_false_always_next;
- fake_print_message_file(data, F_status_set_fine(*status), "f_file_exists", arguments.array[i].string, "find", F_true, F_true, data_make->error);
+ fll_error_file_print(data_make->error, F_status_set_fine(*status), "f_file_exists", F_true, arguments.array[i].string, "find", fll_error_file_type_file);
break;
}
fprintf(data.output.stream, "%c", f_string_eol[0]);
if ((i == 1 && number_left > f_number_t_size_unsigned) || (i > 1 && number_right > f_number_t_size_unsigned)) {
- fl_color_print(data.error.to.stream, data_make->error.context, "%s: The number '", data_make->error.prefix);
- fl_color_print(data.error.to.stream, data.context.set.notable, "%c%s", arguments.array[i].string);
+ fl_color_print(data.error.to.stream, data_make->error.context, "%sThe number '", data_make->error.prefix);
+ fl_color_print(data.error.to.stream, data_make->error.notable, "%c%s", arguments.array[i].string);
fl_color_print(data.error.to.stream, data_make->error.context, "' may only be between the ranges -%llu to %llu.%c", f_number_t_size_unsigned, f_number_t_size_unsigned, f_string_eol[0]);
}
else {
- fl_color_print(data.error.to.stream, data_make->error.context, "%s: Invalid or unsupported number provided '", data_make->error.prefix);
- fl_color_print(data.error.to.stream, data.context.set.notable, "%s", arguments.array[i].string);
+ fl_color_print(data.error.to.stream, data_make->error.context, "%sInvalid or unsupported number provided '", data_make->error.prefix);
+ fl_color_print(data.error.to.stream, data_make->error.notable, "%s", arguments.array[i].string);
fl_color_print(data.error.to.stream, data_make->error.context, "'.%c", f_string_eol[0]);
}
}
*status = f_file_link(arguments.array[0].string, arguments.array[1].string);
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->error);
+ fll_error_file_print(data_make->error, F_status_set_fine(*status), "f_file_link", F_true, arguments.array[1].string, "create link", fll_error_file_type_file);
}
else if (data.error.verbosity == f_console_verbosity_verbose) {
- fprintf(data.output.stream, "Created symbolic link from '%s' to '%s'.%c", arguments.array[1].string, arguments.array[0].string, f_string_eol[0]);
+ fprintf(data.output.stream, "Created symbolic link from '");
+ fl_color_print(data.error.to.stream, data.context.set.notable, "%s", arguments.array[1].string);
+ fprintf(data.output.stream, "' to '");
+ fl_color_print(data.error.to.stream, data.context.set.notable, "%s", arguments.array[0].string);
+ fprintf(data.output.stream, "'.%c", f_string_eol[0]);
}
return;
*status = f_file_mode_read(arguments.array[i].string, &mode_file);
if (F_status_is_error(*status)) {
- fake_print_message_file(data, F_status_set_fine(*status), "f_file_mode_read", arguments.array[i].string, "change mode of", F_true, F_true, data_make->error);
+ fll_error_file_print(data_make->error, F_status_set_fine(*status), "f_file_mode_read", F_true, arguments.array[i].string, "change mode of", fll_error_file_type_file);
break;
}
*status = f_file_mode_determine(mode_file, mode_rule, replace, f_macro_file_type_is_directory(mode_file), &mode);
if (F_status_is_error(*status)) {
- fake_print_message_file(data, F_status_set_fine(*status), "f_file_mode_determine", arguments.array[i].string, "change mode of", F_true, F_true, data_make->error);
+ fll_error_file_print(data_make->error, F_status_set_fine(*status), "f_file_mode_determine", F_true, arguments.array[i].string, "change mode of", fll_error_file_type_file);
break;
}
*status = f_file_mode_set(arguments.array[i].string, mode);
if (F_status_is_error(*status)) {
- fake_print_message_file(data, F_status_set_fine(*status), "f_file_mode_set", arguments.array[i].string, "change mode of", F_true, F_true, data_make->error);
+ fll_error_file_print(data_make->error, F_status_set_fine(*status), "f_file_mode_set", F_true, arguments.array[i].string, "change mode of", fll_error_file_type_file);
break;
}
if (data.error.verbosity == f_console_verbosity_verbose) {
- fprintf(data.output.stream, "Changed mode of '%s' to %#o.%c", arguments.array[i].string, mode, f_string_eol[0]);
+ fprintf(data.output.stream, "Changed mode of '");
+ fl_color_print(data.error.to.stream, data.context.set.notable, "%s", arguments.array[i].string);
+ fprintf(data.output.stream, "' to ");
+ fl_color_print(data.error.to.stream, data.context.set.notable, "%#o", mode);
+ fprintf(data.output.stream, ".%c", f_string_eol[0]);
}
} // for
*status = f_file_mode_read(arguments.array[i].string, &mode_file);
if (F_status_is_error(*status)) {
- fake_print_message_file(data, F_status_set_fine(*status), "f_file_mode_read", arguments.array[i].string, "change mode of", F_true, F_true, data_make->error);
+ fll_error_file_print(data_make->error, F_status_set_fine(*status), "f_file_mode_read", F_true, arguments.array[i].string, "change mode of", fll_error_file_type_file);
break;
}
*status = f_file_mode_determine(mode_file, mode_rule, replace, f_macro_file_type_is_directory(mode_file), &mode);
if (F_status_is_error(*status)) {
- fake_print_message_file(data, F_status_set_fine(*status), "f_file_mode_determine", arguments.array[i].string, "change mode of", F_true, F_true, data_make->error);
+ fll_error_file_print(data_make->error, F_status_set_fine(*status), "f_file_mode_determine", F_true, arguments.array[i].string, "change mode of", fll_error_file_type_file);
break;
}
*status = fll_file_mode_set_all(arguments.array[i].string, mode, fake_make_operation_recursion_depth_max);
if (F_status_is_error(*status)) {
- fake_print_message_file(data, F_status_set_fine(*status), "fll_file_mode_set_all", arguments.array[i].string, "change mode of", F_true, F_true, data_make->error);
+ fll_error_file_print(data_make->error, F_status_set_fine(*status), "fll_file_mode_set_all", F_true, arguments.array[i].string, "change mode of", fll_error_file_type_file);
break;
}
if (data.error.verbosity == f_console_verbosity_verbose) {
- fprintf(data.output.stream, "Changed mode of '%s' to %#o.%c", arguments.array[i].string, mode, f_string_eol[0]);
+ fprintf(data.output.stream, "Changed mode of '");
+ fl_color_print(data.error.to.stream, data.context.set.notable, "%s", arguments.array[i].string);
+ fprintf(data.output.stream, "' to ");
+ fl_color_print(data.error.to.stream, data.context.set.notable, "%#o", mode);
+ fprintf(data.output.stream, ".%c", f_string_eol[0]);
}
} // for
f_string_length_t destination_length = 0;
if (data.error.verbosity == f_console_verbosity_verbose) {
- recurse.output = f_type_descriptor_output;
+ recurse.output = data.output;
recurse.verbose = fake_verbose_print_move;
}
status_file = f_directory_is(arguments.array[total].string);
if (F_status_is_error(status_file)) {
- fake_print_message_file(data, F_status_set_fine(status_file), "f_directory_is", arguments.array[1].string, "identify", F_false, F_true, data_make->error);
+ fll_error_file_print(data_make->error, F_status_set_fine(*status), "f_directory_is", F_true, arguments.array[1].string, "identify", fll_error_file_type_directory);
+
*status = F_status_set_error(F_failure);
return;
}
status_file = fll_file_move(arguments.array[i].string, destination, arguments.array[i].used, destination_length, recurse);
if (F_status_is_error(status_file)) {
- fake_print_message_file(data, F_status_set_fine(status_file), "fll_file_move", arguments.array[i].string, "move", F_false, F_true, data_make->error);
+ fll_error_file_print(data_make->error, F_status_set_fine(*status), "fll_file_move", F_true, arguments.array[i].string, "move", fll_error_file_type_directory);
*status = F_status_set_error(F_failure);
}
} // for
f_array_length_t id_section = 0;
for (; id_section < data_make->fakefile.used; id_section++) {
+
if (fl_string_dynamic_partial_compare_string(arguments.array[0].string, data_make->buffer, arguments.array[0].used, data_make->fakefile.array[id_section].name) == F_equal_to) {
break;
}
if (F_status_is_error(status_file)) {
*status = status_file;
- fake_print_message_section_operation_path_outside(data, F_status_set_fine(*status), "fake_make_assure_inside_project", data_make->path_cache.used ? data_make->path_cache.string : arguments.array[i].string, data_make->error);
+ fake_print_message_section_operation_path_outside(data, data_make->error, F_status_set_fine(*status), "fake_make_assure_inside_project", data_make->path_cache.used ? data_make->path_cache.string : arguments.array[i].string);
continue;
}
if (F_status_is_error(status_file)) {
*status = status_file;
- 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->error);
+ fll_error_file_print(data_make->error, F_status_set_fine(*status), "f_file_role_change", F_true, arguments.array[i].string, "change owner of", fll_error_file_type_file);
break;
}
else if (data.error.verbosity == f_console_verbosity_verbose) {
- fprintf(data.output.stream, "Changed owner of '%s' to %d.%c", arguments.array[i].string, id, f_string_eol[0]);
+ fprintf(data.output.stream, "Changed owner of '");
+ fl_color_print(data.error.to.stream, data.context.set.notable, "%s", arguments.array[i].string);
+ fprintf(data.output.stream, "' to ");
+ fl_color_print(data.error.to.stream, data.context.set.notable, "%d", id);
+ fprintf(data.output.stream, ".%c", f_string_eol[0]);
}
} // for
if (F_status_is_error(status_file)) {
*status = status_file;
- fake_print_message_section_operation_path_outside(data, F_status_set_fine(*status), "fake_make_assure_inside_project", data_make->path_cache.used ? data_make->path_cache.string : arguments.array[i].string, data_make->error);
+ fake_print_message_section_operation_path_outside(data, data_make->error, F_status_set_fine(*status), "fake_make_assure_inside_project", data_make->path_cache.used ? data_make->path_cache.string : arguments.array[i].string);
continue;
}
if (F_status_is_error(status_file)) {
*status = status_file;
- 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->error);
+ fll_error_file_print(data_make->error, F_status_set_fine(*status), "fll_file_role_change_all", F_true, arguments.array[i].string, "change owner of", fll_error_file_type_file);
}
else if (data.error.verbosity == f_console_verbosity_verbose) {
- fprintf(data.output.stream, "Changed owner of '%s' to %o.%c", arguments.array[i].string, id, f_string_eol[0]);
+ fprintf(data.output.stream, "Changed owner of '");
+ fl_color_print(data.error.to.stream, data.context.set.notable, "%s", arguments.array[i].string);
+ fprintf(data.output.stream, "' to ");
+ fl_color_print(data.error.to.stream, data.context.set.notable, "%d", id);
+ fprintf(data.output.stream, ".%c", f_string_eol[0]);
}
} // for
*status = f_path_change(data_make->path.stack.array[data_make->path.stack.used - 1].string);
if (F_status_is_error(*status)) {
- fake_print_message_section_operation_path_stack_max(data, F_status_set_fine(*status), "f_path_change", data_make->path.stack.array[data_make->path.stack.used - 1].string, data_make->error);
+ fake_print_message_section_operation_path_stack_max(data, data_make->error, F_status_set_fine(*status), "f_path_change", data_make->path.stack.array[data_make->path.stack.used - 1].string);
return;
}
if (data.error.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->error);
+ fll_error_print(data_make->error, F_status_set_fine(*status), "fake_make_path_relative", F_true);
return;
}
fprintf(data.output.stream, "Changed to project path '");
- f_print_dynamic(f_type_output, data_make->path_cache);
+ fl_color_print_code(data.output.stream, *data.context.set.notable.before);
+ f_print_dynamic(data.output.stream, data_make->path_cache);
+ fl_color_print_code(data.output.stream, *data.context.set.notable.after);
fprintf(data.output.stream, "'.%c", f_string_eol[0]);
}
}
if (operation == fake_make_operation_type_to) {
-
*status = fake_make_assure_inside_project(data, arguments.array[0], data_make);
if (F_status_is_error(*status)) {
- fake_print_message_section_operation_path_outside(data, F_status_set_fine(*status), "fake_make_assure_inside_project", data_make->path_cache.used ? data_make->path_cache.string : arguments.array[0].string, data_make->error);
+ fake_print_message_section_operation_path_outside(data, data_make->error, F_status_set_fine(*status), "fake_make_assure_inside_project", data_make->path_cache.used ? data_make->path_cache.string : arguments.array[0].string);
if (F_status_set_fine(*status) == F_false) {
*status = F_status_set_error(F_failure);
*status = f_path_change(arguments.array[0].string);
if (F_status_is_error(*status)) {
- fake_print_message_section_operation_path_stack_max(data, F_status_set_fine(*status), "f_path_change", arguments.array[0].string, data_make->error);
+ fake_print_message_section_operation_path_stack_max(data, data_make->error, F_status_set_fine(*status), "f_path_change", arguments.array[0].string);
}
else {
if (data_make->path.stack.used == data_make->path.stack.size) {
*status = fl_string_dynamics_size_increase(f_memory_default_allocation_step, &data_make->path.stack);
if (F_status_set_fine(*status) == F_buffer_too_large) {
- fake_print_message_section_operation_path_stack_max(data, F_buffer_too_large, "fl_string_lengths_size_increase", "path stack", data_make->error);
+ fake_print_message_section_operation_path_stack_max(data, data_make->error, F_buffer_too_large, "fl_string_lengths_size_increase", "path stack");
return;
}
else if (F_status_is_error(*status)) {
- fake_print_message(data, F_status_set_fine(*status), "f_macro_string_dynamics_resize", F_true, data_make->error);
+ fll_error_print(data_make->error, F_status_set_fine(*status), "f_macro_string_dynamics_resize", F_true);
return;
}
}
fl_string_dynamic_append(data_make->path_cache, &data_make->path.stack.array[data_make->path.stack.used]);
if (F_status_is_error(*status)) {
- fake_print_message(data, F_status_set_fine(*status), "fl_string_dynamic_append_nulless", F_true, data_make->error);
+ fll_error_print(data_make->error, F_status_set_fine(*status), "fl_string_dynamic_append_nulless", F_true);
return;
}
*status = fake_make_path_relative(data, data_make->path.stack.array[data_make->path.stack.used], 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->error);
+ fll_error_print(data_make->error, F_status_set_fine(*status), "fake_make_path_relative", F_true);
return;
}
fprintf(data.output.stream, "Changed to project path '");
- f_print_dynamic(f_type_output, data_make->path_cache);
+ fl_color_print_code(data.output.stream, *data.context.set.notable.before);
+ f_print_dynamic(data.output.stream, data_make->path_cache);
+ fl_color_print_code(data.output.stream, *data.context.set.notable.after);
fprintf(data.output.stream, "'.%c", f_string_eol[0]);
}
*status = f_path_change_at(data_make->path.top);
if (F_status_is_error(*status)) {
- fake_print_message_section_operation_path_stack_max(data, F_status_set_fine(*status), "f_path_change", arguments.array[0].string, data_make->error);
+ fake_print_message_section_operation_path_stack_max(data, data_make->error, F_status_set_fine(*status), "f_path_change", arguments.array[0].string);
return;
}
if (F_status_is_error(*status)) {
if (F_status_is_error_not(fll_path_canonical(arguments.array[i].string, &data_make->path_cache))) {
- fake_print_message_file(data, F_status_set_fine(*status), "f_file_touch", data_make->path_cache.string, "touch", F_true, F_true, data_make->error);
+ fll_error_file_print(data_make->error, F_status_set_fine(*status), "f_file_touch", F_true, data_make->path_cache.string, "touch", fll_error_file_type_file);
}
else {
- fake_print_message_file(data, F_status_set_fine(*status), "f_file_touch", arguments.array[i].string, "touch", F_true, F_true, data_make->error);
+ fll_error_file_print(data_make->error, F_status_set_fine(*status), "f_file_touch", F_true, arguments.array[i].string, "touch", fll_error_file_type_file);
}
break;
if (F_status_is_error(*status)) {
if (F_status_is_error_not(fll_path_canonical(arguments.array[i].string, &data_make->path_cache))) {
- fake_print_message_file(data, F_status_set_fine(*status), "f_directory_touch", data_make->path_cache.string, "touch", F_false, F_true, data_make->error);
+ fll_error_file_print(data_make->error, F_status_set_fine(*status), "f_directory_touch", F_true, data_make->path_cache.string, "touch", fll_error_file_type_directory);
}
else {
- fake_print_message_file(data, F_status_set_fine(*status), "f_directory_touch", arguments.array[i].string, "touch", F_false, F_true, data_make->error);
+ fll_error_file_print(data_make->error, F_status_set_fine(*status), "f_directory_touch", F_true, arguments.array[i].string, "touch", fll_error_file_type_directory);
}
break;
if (data.error.verbosity == f_console_verbosity_verbose) {
fprintf(data.output.stream, "Touched %s '", arguments.array[0].string);
- f_print_dynamic(f_type_output, arguments.array[i]);
+ fl_color_print_code(data.output.stream, *data.context.set.notable.before);
+ f_print_dynamic(data.output.stream, arguments.array[i]);
+ fl_color_print_code(data.output.stream, *data.context.set.notable.after);
fprintf(data.output.stream, "'.%c", f_string_eol[0]);
}
}
if (F_status_is_error(status)) {
- fake_print_message(data, F_status_set_fine(status), "f_macro_string_dynamics_resize", F_true, data_make->error);
+ fll_error_print(data_make->error, F_status_set_fine(status), "f_macro_string_dynamics_resize", F_true);
return status;
}
}
status = f_environment_get(data_make->setting_build.environment.array[i].string, &data_make->environment.values.array[data_make->environment.values.used]);
if (F_status_is_error(status)) {
- fake_print_message(data, F_status_set_fine(status), "f_environment_get", F_true, data_make->error);
+ fll_error_print(data_make->error, F_status_set_fine(status), "f_environment_get", F_true);
return status;
}
fl_string_dynamic_append(data_make->setting_build.environment.array[i], &data_make->environment.names.array[data_make->environment.names.used]);
if (F_status_is_error(status)) {
- fake_print_message(data, F_status_set_fine(status), "f_environment_get", F_true, data_make->error);
+ fll_error_print(data_make->error, F_status_set_fine(status), "f_environment_get", F_true);
return status;
}
if (F_status_set_fine(status) == F_file_found_not) {
if (data.error.verbosity != f_console_verbosity_quiet && data_make->error.to.stream) {
fprintf(data.error.to.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error.to.stream, data_make->error.context, "%s: Failed to find program '", data_make->error.prefix);
- fl_color_print(data.error.to.stream, data.context.set.notable, "%s", program.string);
+ fl_color_print(data.error.to.stream, data_make->error.context, "%sFailed to find program '", data_make->error.prefix);
+ fl_color_print(data.error.to.stream, data_make->error.notable, "%s", program.string);
fl_color_print(data.error.to.stream, data_make->error.context, "' for executing.%c", f_string_eol[0]);
}
}
else if (F_status_set_fine(status) != F_failure) {
- fake_print_message(data, F_status_set_fine(status), "fll_execute_program_environment", F_true, data_make->error);
+ fll_error_print(data_make->error, F_status_set_fine(status), "fll_execute_program_environment", F_true);
}
}
if (F_status_is_error(status2)) {
*status = status2;
- fake_print_message(data, F_status_set_fine(*status), "f_conversion_number_signed_to_string", F_true, data_make->error);
+ fll_error_print(data_make->error, F_status_set_fine(*status), "f_conversion_number_signed_to_string", F_true);
f_macro_string_dynamic_t_delete_simple(number);
return;
if (F_status_is_error(status2)) {
*status = status2;
- fake_print_message(data, F_status_set_fine(*status), "fl_string_append", F_true, data_make->error);
+ fll_error_print(data_make->error, F_status_set_fine(*status), "fl_string_append", F_true);
return;
}
if (F_status_is_error(status2)) {
*status = status2;
- fake_print_message(data, F_status_set_fine(*status), "fl_string_dynamic_terminate_after", F_true, data_make->error);
+ fll_error_print(data_make->error, F_status_set_fine(*status), "fl_string_dynamic_terminate_after", F_true);
return;
}
if (data.error.verbosity != f_console_verbosity_quiet && data_make->error.to.stream) {
fprintf(data.error.to.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error.to.stream, data_make->error.context, "%s: Failed with return code '", data_make->error.prefix);
- fl_color_print(data.error.to.stream, data.context.set.notable, "%s", data_make->setting_make.parameter.array[0].value.array[0].string);
+ fl_color_print(data.error.to.stream, data_make->error.context, "%sFailed with return code '", data_make->error.prefix);
+ fl_color_print(data.error.to.stream, data_make->error.notable, "%s", data_make->setting_make.parameter.array[0].value.array[0].string);
fl_color_print(data.error.to.stream, data_make->error.context, "'.%c", f_string_eol[0]);
}
f_macro_string_dynamics_new(status, args, arguments.used - 1);
if (F_status_is_error(status)) {
- fake_print_message(data, F_status_set_fine(status), "f_macro_string_dynamics_new", F_true, data_make->error);
+ fll_error_print(data_make->error, F_status_set_fine(status), "f_macro_string_dynamics_new", F_true);
return status;
}
status = fl_string_dynamic_append(arguments.array[i + 1], &args.array[i]);
if (F_status_is_error(status)) {
- fake_print_message(data, F_status_set_fine(status), "fl_string_dynamic_append", F_true, data_make->error);
+ fll_error_print(data_make->error, F_status_set_fine(status), "fl_string_dynamic_append", F_true);
f_macro_string_dynamics_t_delete_simple(args);
return status;
status = fl_string_dynamic_terminate(&args.array[i]);
if (F_status_is_error(status)) {
- fake_print_message(data, F_status_set_fine(status), "fl_string_dynamic_terminate", F_true, data_make->error);
+ fll_error_print(data_make->error, F_status_set_fine(status), "fl_string_dynamic_terminate", F_true);
f_macro_string_dynamics_t_delete_simple(args);
return status;
if (operation == fake_make_operation_type_index || operation == fake_make_operation_type_run || operation == fake_make_operation_type_shell) {
if (!arguments.used) {
if (data.error.verbosity != f_console_verbosity_quiet && data_make->error.to.stream) {
- fprintf(data.output.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error.to.stream, data_make->error.context, "%s: Requires more arguments.%c", data_make->error.prefix, f_string_eol[0]);
+ fprintf(data_make->error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "%sRequires more arguments.%c", data_make->error.prefix, f_string_eol[0]);
}
*status = F_status_set_error(F_failure);
if (!data_make->setting_build.build_indexer.used) {
if (data.error.verbosity != f_console_verbosity_quiet && data_make->error.to.stream) {
- fprintf(data.error.to.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error.to.stream, data_make->error.context, "%s: No indexer has been specified, cannot perform '", data_make->error.prefix);
- fl_color_print(data.error.to.stream, data.context.set.notable, fake_make_operation_index);
- fl_color_print(data.error.to.stream, data_make->error.context, "' section operation.%c", f_string_eol[0]);
+ fprintf(data_make->error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "%sNo indexer has been specified, cannot perform '", data_make->error.prefix);
+ fl_color_print(data_make->error.to.stream, data_make->error.notable, fake_make_operation_index);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "' section operation.%c", f_string_eol[0]);
}
*status = F_status_set_error(F_failure);
if (operation == fake_make_operation_type_break) {
if (arguments.used > 1) {
if (data.error.verbosity != f_console_verbosity_quiet && data_make->error.to.stream) {
- fprintf(data.output.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error.to.stream, data_make->error.context, "%s: Has too many arguments.%c", data_make->error.prefix, f_string_eol[0]);
+ fprintf(data_make->error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "%sHas too many arguments.%c", data_make->error.prefix, f_string_eol[0]);
}
*status = F_status_set_error(F_failure);
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.error.verbosity != f_console_verbosity_quiet && data_make->error.to.stream) {
- fprintf(data.output.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error.to.stream, data_make->error.context, "%s: Unsupported break type '", data_make->error.prefix);
- fl_color_print(data.error.to.stream, data.context.set.notable, "%s", arguments.array[0].string);
- fl_color_print(data.error.to.stream, data_make->error.context, "'.%c", f_string_eol[0]);
+ fprintf(data_make->error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "%sUnsupported break type '", data_make->error.prefix);
+ fl_color_print(data_make->error.to.stream, data_make->error.notable, "%s", arguments.array[0].string);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "'.%c", f_string_eol[0]);
}
*status = F_status_set_error(F_failure);
if (operation == fake_make_operation_type_build) {
if (arguments.used > 1) {
if (data.error.verbosity != f_console_verbosity_quiet && data_make->error.to.stream) {
- fprintf(data.output.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error.to.stream, data_make->error.context, "%s: Has too many arguments.%c", data_make->error.prefix, f_string_eol[0]);
+ fprintf(data_make->error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "%sHas too many arguments.%c", data_make->error.prefix, f_string_eol[0]);
}
*status = F_status_set_error(F_failure);
if (status_file == F_file_found_not) {
if (data.error.verbosity != f_console_verbosity_quiet && data_make->error.to.stream) {
- fprintf(data.output.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error.to.stream, data_make->error.context, "%s: Failed to find file '", data_make->error.prefix);
- fl_color_print(data.error.to.stream, data.context.set.notable, "%s", path_file);
- fl_color_print(data.error.to.stream, data_make->error.context, "'.%c", f_string_eol[0]);
+ fprintf(data_make->error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "%sFailed to find file '", data_make->error.prefix);
+ fl_color_print(data_make->error.to.stream, data_make->error.notable, "%s", path_file);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "'.%c", f_string_eol[0]);
}
*status = F_status_set_error(status_file);
}
else if (F_status_is_error(status_file)) {
- fake_print_message_file(data, *status, "f_file_is", path_file, "find", F_true, F_true, data_make->error);
+ fll_error_file_print(data_make->error, F_status_set_fine(status_file), "f_file_is", F_true, path_file, "find", fll_error_file_type_file);
*status = status_file;
}
else if (!status_file) {
if (data.error.verbosity != f_console_verbosity_quiet && data_make->error.to.stream) {
- fprintf(data.output.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error.to.stream, data_make->error.context, "%s: The file '", data_make->error.prefix);
- fl_color_print(data.error.to.stream, data.context.set.notable, "%s", path_file);
- fl_color_print(data.error.to.stream, data_make->error.context, "' must be a regular file.%c", f_string_eol[0]);
+ fprintf(data_make->error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "%sThe file '", data_make->error.prefix);
+ fl_color_print(data_make->error.to.stream, data_make->error.notable, "%s", path_file);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "' must be a regular file.%c", f_string_eol[0]);
}
*status = F_status_set_error(F_failure);
}
else {
if (data.error.verbosity != f_console_verbosity_quiet && data_make->error.to.stream) {
- fprintf(data.output.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error.to.stream, data_make->error.context, "%s: Filename argument must not be an empty string.%c", data_make->error.prefix, f_string_eol[0]);
+ fprintf(data_make->error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "%sFilename argument must not be an empty string.%c", data_make->error.prefix, f_string_eol[0]);
}
*status = F_status_set_error(F_failure);
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.error.verbosity != f_console_verbosity_quiet && data_make->error.to.stream) {
- fprintf(data.output.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error.to.stream, data_make->error.context, "%s: Has too many arguments.%c", data_make->error.prefix, f_string_eol[0]);
+ fprintf(data_make->error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "%sHas too many arguments.%c", data_make->error.prefix, f_string_eol[0]);
}
*status = F_status_set_error(F_failure);
if (data_make->path.stack.used == 1) {
if (data.error.verbosity != f_console_verbosity_quiet && data_make->error.to.stream) {
- fprintf(data.output.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error.to.stream, data_make->error.context, "%s: Must not attempt to pop project root off of path stack.%c", data_make->error.prefix, f_string_eol[0]);
+ fprintf(data_make->error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "%sMust not attempt to pop project root off of path stack.%c", data_make->error.prefix, f_string_eol[0]);
}
*status = F_status_set_error(F_failure);
*status = fake_make_assure_inside_project(data, arguments.array[i], data_make);
if (F_status_is_error(*status)) {
- fake_print_message_section_operation_path_outside(data, F_status_set_fine(*status), "fake_make_assure_inside_project", data_make->path_cache.used ? data_make->path_cache.string : arguments.array[i].string, data_make->error);
+ fake_print_message_section_operation_path_outside(data, data_make->error, F_status_set_fine(*status), "fake_make_assure_inside_project", data_make->path_cache.used ? data_make->path_cache.string : arguments.array[i].string);
if (F_status_set_fine(*status) == F_false) {
*status = F_status_set_error(F_failure);
if (f_file_exists(arguments.array[i].string) != F_true) {
if (data.error.verbosity != f_console_verbosity_quiet && data_make->error.to.stream) {
- fprintf(data.output.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error.to.stream, data_make->error.context, "%s: Failed to find file '", data_make->error.prefix);
- fl_color_print(data.error.to.stream, data.context.set.notable, "%s", arguments.array[i].string);
- fl_color_print(data.error.to.stream, data_make->error.context, "'.%c", f_string_eol[0]);
+ fprintf(data_make->error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "%sFailed to find file '", data_make->error.prefix);
+ fl_color_print(data_make->error.to.stream, data_make->error.notable, "%s", arguments.array[i].string);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "'.%c", f_string_eol[0]);
}
*status = F_status_set_error(F_failure);
if (status_file == F_false || status_file == F_file_found_not) {
if (data.error.verbosity != f_console_verbosity_quiet && data_make->error.to.stream) {
- fprintf(data.output.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error.to.stream, data_make->error.context, "%s: The last file '", data_make->error.prefix);
- fl_color_print(data.error.to.stream, data.context.set.notable, "%s", arguments.array[arguments.used - 1].string);
- fl_color_print(data.error.to.stream, data_make->error.context, "' must be a valid directory.%c", f_string_eol[0]);
+ fprintf(data_make->error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "%sThe last file '", data_make->error.prefix);
+ fl_color_print(data_make->error.to.stream, data_make->error.notable, "%s", arguments.array[arguments.used - 1].string);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "' must be a valid directory.%c", f_string_eol[0]);
}
*status = F_status_set_error(F_failure);
}
else if (F_status_is_error(status_file)) {
- fake_print_message_file(data, F_status_set_fine(status_file), "f_directory_is", arguments.array[arguments.used - 1].string, "find", F_false, F_true, data_make->error);
+ fake_print_message_file(data, data_make->error, F_status_set_fine(status_file), "f_directory_is", arguments.array[arguments.used - 1].string, "find", F_false, F_true);
*status = F_status_set_error(F_failure);
}
}
if (status_file == F_false) {
if (data.error.verbosity != f_console_verbosity_quiet && data_make->error.to.stream) {
- fprintf(data.output.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error.to.stream, data_make->error.context, "%s: The last file '", data_make->error.prefix);
- fl_color_print(data.error.to.stream, data.context.set.notable, "%s", arguments.array[arguments.used - 1].string);
- fl_color_print(data.error.to.stream, data_make->error.context, "' must be a valid directory.%c", f_string_eol[0]);
+ fprintf(data_make->error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "%sThe last file '", data_make->error.prefix);
+ fl_color_print(data_make->error.to.stream, data_make->error.notable, "%s", arguments.array[arguments.used - 1].string);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "' must be a valid directory.%c", f_string_eol[0]);
}
*status = F_status_set_error(F_failure);
}
else {
if (data.error.verbosity != f_console_verbosity_quiet && data_make->error.to.stream) {
- fprintf(data.output.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error.to.stream, data_make->error.context, "%s: Requires more arguments.%c", data_make->error.prefix, f_string_eol[0]);
+ fprintf(data_make->error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "%sRequires more arguments.%c", data_make->error.prefix, f_string_eol[0]);
}
*status = F_status_set_error(F_failure);
if (operation == fake_make_operation_type_compile) {
if (!arguments.used) {
if (data.error.verbosity != f_console_verbosity_quiet && data_make->error.to.stream) {
- fprintf(data.output.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error.to.stream, data_make->error.context, "%s: Requires more arguments.%c", data_make->error.prefix, f_string_eol[0]);
+ fprintf(data_make->error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "%sRequires more arguments.%c", data_make->error.prefix, f_string_eol[0]);
}
*status = F_status_set_error(F_failure);
}
else if (data_make->setting_build.build_compiler.used) {
if (data.error.verbosity != f_console_verbosity_quiet && data_make->error.to.stream) {
- fprintf(data.error.to.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error.to.stream, data_make->error.context, "%s: No compiler has been specified, cannot perform '", data_make->error.prefix);
- fl_color_print(data.error.to.stream, data.context.set.notable, fake_make_operation_compile);
- fl_color_print(data.error.to.stream, data_make->error.context, "' section operation.%c", f_string_eol[0]);
+ fprintf(data_make->error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "%sNo compiler has been specified, cannot perform '", data_make->error.prefix);
+ fl_color_print(data_make->error.to.stream, data_make->error.notable, fake_make_operation_compile);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "' section operation.%c", f_string_eol[0]);
}
*status = F_status_set_error(F_failure);
*status = fake_make_assure_inside_project(data, arguments.array[i], data_make);
if (F_status_is_error(*status)) {
- fake_print_message_section_operation_path_outside(data, F_status_set_fine(*status), "fake_make_assure_inside_project", data_make->path_cache.used ? data_make->path_cache.string : arguments.array[i].string, data_make->error);
+ fake_print_message_section_operation_path_outside(data, data_make->error, F_status_set_fine(*status), "fake_make_assure_inside_project", data_make->path_cache.used ? data_make->path_cache.string : arguments.array[i].string);
if (F_status_set_fine(*status) == F_false) {
*status = F_status_set_error(F_failure);
if (f_file_exists(arguments.array[i].string) != F_true) {
if (data.error.verbosity != f_console_verbosity_quiet && data_make->error.to.stream) {
- fprintf(data.output.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error.to.stream, data_make->error.context, "%s: Failed to find file '", data_make->error.prefix);
- fl_color_print(data.error.to.stream, data.context.set.notable, "%s", arguments.array[i].string);
- fl_color_print(data.error.to.stream, data_make->error.context, "'.%c", f_string_eol[0]);
+ fprintf(data_make->error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "%sFailed to find file '", data_make->error.prefix);
+ fl_color_print(data_make->error.to.stream, data_make->error.notable, "%s", arguments.array[i].string);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "'.%c", f_string_eol[0]);
}
*status = F_status_set_error(F_failure);
if (status_file == F_false || status_file == F_file_found_not) {
if (data.error.verbosity != f_console_verbosity_quiet && data_make->error.to.stream) {
- fprintf(data.output.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error.to.stream, data_make->error.context, "%s: The last file '", data_make->error.prefix);
- fl_color_print(data.error.to.stream, data.context.set.notable, "%s", arguments.array[arguments.used - 1].string);
- fl_color_print(data.error.to.stream, data_make->error.context, "' must be a valid directory.%c", f_string_eol[0]);
+ fprintf(data_make->error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "%sThe last file '", data_make->error.prefix);
+ fl_color_print(data_make->error.to.stream, data_make->error.notable, "%s", arguments.array[arguments.used - 1].string);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "' must be a valid directory.%c", f_string_eol[0]);
}
*status = F_status_set_error(F_failure);
}
else if (F_status_is_error(status_file)) {
- fake_print_message_file(data, F_status_set_fine(status_file), "f_directory_is", arguments.array[arguments.used - 1].string, "find", F_false, F_true, data_make->error);
+ fake_print_message_file(data, data_make->error, F_status_set_fine(status_file), "f_directory_is", arguments.array[arguments.used - 1].string, "find", F_false, F_true);
*status = F_status_set_error(F_failure);
}
}
if (status_file == F_false) {
if (data.error.verbosity != f_console_verbosity_quiet && data_make->error.to.stream) {
- fprintf(data.output.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error.to.stream, data_make->error.context, "%s: The last file '", data_make->error.prefix);
- fl_color_print(data.error.to.stream, data.context.set.notable, "%s", arguments.array[arguments.used - 1].string);
- fl_color_print(data.error.to.stream, data_make->error.context, "' must be a valid directory.%c", f_string_eol[0]);
+ fprintf(data_make->error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "%sThe last file '", data_make->error.prefix);
+ fl_color_print(data_make->error.to.stream, data_make->error.notable, "%s", arguments.array[arguments.used - 1].string);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "' must be a valid directory.%c", f_string_eol[0]);
}
*status = F_status_set_error(F_failure);
}
else {
if (data.error.verbosity != f_console_verbosity_quiet && data_make->error.to.stream) {
- fprintf(data.output.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error.to.stream, data_make->error.context, "%s: Requires more arguments.%c", data_make->error.prefix, f_string_eol[0]);
+ fprintf(data_make->error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "%sRequires more arguments.%c", data_make->error.prefix, f_string_eol[0]);
}
*status = F_status_set_error(F_failure);
*status = fake_make_assure_inside_project(data, arguments.array[i], data_make);
if (F_status_is_error(*status)) {
- fake_print_message_section_operation_path_outside(data, F_status_set_fine(*status), "fake_make_assure_inside_project", data_make->path_cache.used ? data_make->path_cache.string : arguments.array[i].string, data_make->error);
+ fake_print_message_section_operation_path_outside(data, data_make->error, F_status_set_fine(*status), "fake_make_assure_inside_project", data_make->path_cache.used ? data_make->path_cache.string : arguments.array[i].string);
if (F_status_set_fine(*status) == F_false) {
*status = F_status_set_error(F_failure);
}
else {
if (data.error.verbosity != f_console_verbosity_quiet && data_make->error.to.stream) {
- fprintf(data.output.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error.to.stream, data_make->error.context, "%s: Requires more arguments.%c", data_make->error.prefix, f_string_eol[0]);
+ fprintf(data_make->error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "%sRequires more arguments.%c", data_make->error.prefix, f_string_eol[0]);
}
*status = F_status_set_error(F_failure);
if (*status == F_none) {
if (data.error.verbosity != f_console_verbosity_quiet && data_make->error.to.stream) {
- fprintf(data.output.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error.to.stream, data_make->error.context, "%s: Define name must not be an empty string.%c", data_make->error.prefix, f_string_eol[0]);
+ fprintf(data_make->error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "%sDefine name must not be an empty string.%c", data_make->error.prefix, f_string_eol[0]);
}
*status = F_status_set_error(F_failure);
}
else if (*status == F_false) {
if (data.error.verbosity != f_console_verbosity_quiet && data_make->error.to.stream) {
- fprintf(data.error.to.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error.to.stream, data_make->error.context, "%s: Invalid characters in the define setting name '", data_make->error.prefix);
+ fprintf(data_make->error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "%sInvalid characters in the define setting name '", data_make->error.prefix);
- fl_color_print_code(data.error.to.stream, data.context.notable);
- f_print_dynamic(data.error.to.stream, arguments.array[0]);
- fl_color_print_code(data.error.to.stream, data.context.reset);
+ fl_color_print_code(data_make->error.to.stream, *data_make->error.notable.before);
+ f_print_dynamic(data_make->error.to.stream, arguments.array[0]);
+ fl_color_print_code(data_make->error.to.stream, *data_make->error.notable.after);
- fl_color_print(data.error.to.stream, data_make->error.context, "', only alpha-numeric ASCII characters and underscore (without a leading digit) is allowed.%c", f_string_eol[0]);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "', only alpha-numeric ASCII characters and underscore (without a leading digit) is allowed.%c", f_string_eol[0]);
}
*status = F_status_set_error(F_failure);
}
else {
if (data.error.verbosity != f_console_verbosity_quiet && data_make->error.to.stream) {
- fprintf(data.output.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error.to.stream, data_make->error.context, "%s: Requires more arguments.%c", data_make->error.prefix, f_string_eol[0]);
+ fprintf(data_make->error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "%sRequires more arguments.%c", data_make->error.prefix, f_string_eol[0]);
}
*status = F_status_set_error(F_failure);
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.error.verbosity != f_console_verbosity_quiet && data_make->error.to.stream) {
- fprintf(data.output.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error.to.stream, data_make->error.context, "%s: Must not be used after another '", data_make->error.prefix);
- fl_color_print(data.error.to.stream, data.context.set.notable, "else");
- fl_color_print(data.error.to.stream, data_make->error.context, "' section operation.%c", f_string_eol[0]);
+ fprintf(data_make->error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "%sMust not be used after another '", data_make->error.prefix);
+ fl_color_print(data_make->error.to.stream, data_make->error.notable, "else");
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "' section operation.%c", f_string_eol[0]);
}
*status = F_status_set_error(F_failure);
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.error.verbosity != f_console_verbosity_quiet && data_make->error.to.stream) {
- fprintf(data.output.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error.to.stream, data_make->error.context, "%s: Must not be used inside an ", data_make->error.prefix);
- fl_color_print(data.error.to.stream, data.context.set.notable, "if");
- fl_color_print(data.error.to.stream, data_make->error.context, "' section operation.%c", f_string_eol[0]);
+ fprintf(data_make->error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "%sMust not be used inside an ", data_make->error.prefix);
+ fl_color_print(data_make->error.to.stream, data_make->error.notable, "if");
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "' section operation.%c", f_string_eol[0]);
}
*status = F_status_set_error(F_failure);
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.error.verbosity != f_console_verbosity_quiet && data_make->error.to.stream) {
- fprintf(data.output.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error.to.stream, data_make->error.context, "%s: Has no preceding if condition.%c", data_make->error.prefix, f_string_eol[0]);
+ fprintf(data_make->error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "%sHas no preceding if condition.%c", data_make->error.prefix, f_string_eol[0]);
}
*status = F_status_set_error(F_failure);
if (arguments.used) {
if (data.error.verbosity != f_console_verbosity_quiet && data_make->error.to.stream) {
- fprintf(data.output.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error.to.stream, data_make->error.context, "%s: Has too many arguments.%c", data_make->error.prefix, f_string_eol[0]);
+ fprintf(data_make->error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "%sHas too many arguments.%c", data_make->error.prefix, f_string_eol[0]);
}
*status = F_status_set_error(F_failure);
if (operation == fake_make_operation_type_exit) {
if (arguments.used > 1) {
if (data.error.verbosity != f_console_verbosity_quiet && data_make->error.to.stream) {
- fprintf(data.output.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error.to.stream, data_make->error.context, "%s: Has too many arguments.%c", data_make->error.prefix, f_string_eol[0]);
+ fprintf(data_make->error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "%sHas too many arguments.%c", data_make->error.prefix, f_string_eol[0]);
}
*status = F_status_set_error(F_failure);
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.error.verbosity != f_console_verbosity_quiet && data_make->error.to.stream) {
- fprintf(data.output.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error.to.stream, data_make->error.context, "%s: Unsupported exit type '", data_make->error.prefix);
- fl_color_print(data.error.to.stream, data.context.set.notable, "%s", arguments.array[0].string);
- fl_color_print(data.error.to.stream, data_make->error.context, "'.%c", f_string_eol[0]);
+ fprintf(data_make->error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "%sUnsupported exit type '", data_make->error.prefix);
+ fl_color_print(data_make->error.to.stream, data_make->error.notable, "%s", arguments.array[0].string);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "'.%c", f_string_eol[0]);
}
*status = F_status_set_error(F_failure);
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.error.verbosity != f_console_verbosity_quiet && data_make->error.to.stream) {
- fprintf(data.output.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error.to.stream, data_make->error.context, "%s: Unsupported fail type '", data_make->error.prefix);
- fl_color_print(data.error.to.stream, data.context.set.notable, "%s", arguments.array[0].string);
- fl_color_print(data.error.to.stream, data_make->error.context, "'.%c", f_string_eol[0]);
+ fprintf(data_make->error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "%sUnsupported fail type '", data_make->error.prefix);
+ fl_color_print(data_make->error.to.stream, data_make->error.notable, "%s", arguments.array[0].string);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "'.%c", f_string_eol[0]);
}
*status = F_status_set_error(F_failure);
}
else {
if (data.error.verbosity != f_console_verbosity_quiet && data_make->error.to.stream) {
- fprintf(data.output.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error.to.stream, data_make->error.context, "%s: Requires more arguments.%c", data_make->error.prefix, f_string_eol[0]);
+ fprintf(data_make->error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "%sRequires more arguments.%c", data_make->error.prefix, f_string_eol[0]);
}
*status = F_status_set_error(F_failure);
if (status_file == F_file_found_not) {
if (data.error.verbosity != f_console_verbosity_quiet && data_make->error.to.stream) {
- fprintf(data.output.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error.to.stream, data_make->error.context, "%s: Failed to find file '", data_make->error.prefix);
- fl_color_print(data.error.to.stream, data.context.set.notable, "%s", arguments.array[i].string);
- fl_color_print(data.error.to.stream, data_make->error.context, "'.%c", f_string_eol[0]);
+ fprintf(data_make->error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "%sFailed to find file '", data_make->error.prefix);
+ fl_color_print(data_make->error.to.stream, data_make->error.notable, "%s", arguments.array[i].string);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "'.%c", f_string_eol[0]);
}
*status = F_status_set_error(status_file);
}
else if (F_status_is_error(status_file)) {
if (data.error.verbosity != f_console_verbosity_quiet && data_make->error.to.stream) {
- fake_print_message_file(data, *status, "f_file_is", arguments.array[i].string, "find", F_true, F_true, data_make->error);
+ fake_print_message_file(data, data_make->error, *status, "f_file_is", arguments.array[i].string, "find", F_true, F_true);
}
*status = status_file;
}
if (data.error.verbosity != f_console_verbosity_quiet && data_make->error.to.stream) {
- fprintf(data.output.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error.to.stream, data_make->error.context, "%s: Requires more arguments.%c", data_make->error.prefix, f_string_eol[0]);
+ fprintf(data_make->error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "%sRequires more arguments.%c", data_make->error.prefix, f_string_eol[0]);
}
*status = F_status_set_error(F_failure);
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.error.verbosity != f_console_verbosity_quiet && data_make->error.to.stream) {
- fprintf(data.output.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error.to.stream, data_make->error.context, "%s: Must not be used after another '", data_make->error.prefix);
- fl_color_print(data.error.to.stream, data.context.set.notable, "if");
- fl_color_print(data.error.to.stream, data_make->error.context, "' section operation.%c", f_string_eol[0]);
+ fprintf(data_make->error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "%sMust not be used after another '", data_make->error.prefix);
+ fl_color_print(data_make->error.to.stream, data_make->error.notable, "if");
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "' section operation.%c", f_string_eol[0]);
}
*status = F_status_set_error(F_failure);
if (i == 14) {
if (data.error.verbosity != f_console_verbosity_quiet && data_make->error.to.stream) {
- fprintf(data.output.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error.to.stream, data_make->error.context, "%s: Unsupported if type '", data_make->error.prefix);
- fl_color_print(data.error.to.stream, data.context.set.notable, "%s", arguments.array[0].string);
- fl_color_print(data.error.to.stream, data_make->error.context, "'.%c", f_string_eol[0]);
+ fprintf(data_make->error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "%sUnsupported if type '", data_make->error.prefix);
+ fl_color_print(data_make->error.to.stream, data_make->error.notable, "%s", arguments.array[0].string);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "'.%c", f_string_eol[0]);
}
*status = F_status_set_error(F_failure);
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.error.verbosity != f_console_verbosity_quiet && data_make->error.to.stream) {
- fprintf(data.output.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error.to.stream, data_make->error.context, "%s: Has too many arguments.%c", data_make->error.prefix, f_string_eol[0]);
+ fprintf(data_make->error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "%sHas too many arguments.%c", data_make->error.prefix, f_string_eol[0]);
}
*status = F_status_set_error(F_failure);
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.error.verbosity != f_console_verbosity_quiet && data_make->error.to.stream) {
- fprintf(data.output.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error.to.stream, data_make->error.context, "%s: Unsupported mode type '", data_make->error.prefix);
- fl_color_print(data.error.to.stream, data.context.set.notable, "%s", arguments.array[1].string);
- fl_color_print(data.error.to.stream, data_make->error.context, "'.%c", f_string_eol[0]);
+ fprintf(data_make->error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "%sUnsupported mode type '", data_make->error.prefix);
+ fl_color_print(data_make->error.to.stream, data_make->error.notable, "%s", arguments.array[1].string);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "'.%c", f_string_eol[0]);
}
*status = F_status_set_error(F_failure);
}
else {
if (data.error.verbosity != f_console_verbosity_quiet && data_make->error.to.stream) {
- fprintf(data.output.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error.to.stream, data_make->error.context, "%s: Unsupported file type '", data_make->error.prefix);
- fl_color_print(data.error.to.stream, data.context.set.notable, "%s", arguments.array[i].string);
- fl_color_print(data.error.to.stream, data_make->error.context, "'.%c", f_string_eol[0]);
+ fprintf(data_make->error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "%sUnsupported file type '", data_make->error.prefix);
+ fl_color_print(data_make->error.to.stream, data_make->error.notable, "%s", arguments.array[i].string);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "'.%c", f_string_eol[0]);
}
type_file |= 0x80;
status_file = fake_make_assure_inside_project(data, arguments.array[i], data_make);
if (F_status_is_error(status_file)) {
- fake_print_message_section_operation_path_outside(data, F_status_set_fine(status_file), "fake_make_assure_inside_project", data_make->path_cache.used ? data_make->path_cache.string : arguments.array[i].string, data_make->error);
+ fake_print_message_section_operation_path_outside(data, data_make->error, F_status_set_fine(status_file), "fake_make_assure_inside_project", data_make->path_cache.used ? data_make->path_cache.string : arguments.array[i].string);
*operation_if = fake_make_operation_if_type_false_always_next;
}
if (F_status_is_error(status_file)) {
- fake_print_message_file(data, F_status_set_fine(status_file), "f_file_exists", arguments.array[i].string, "find", F_true, F_true, data_make->error);
+ fll_error_file_print(data_make->error, F_status_set_fine(status_file), "f_file_exists", F_true, arguments.array[i].string, "find", fll_error_file_type_file);
*operation_if = fake_make_operation_if_type_false_always_next;
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.error.verbosity != f_console_verbosity_quiet && data_make->error.to.stream) {
- fprintf(data.output.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error.to.stream, data_make->error.context, "%s: Unsupported define type '", data_make->error.prefix);
- fl_color_print(data.error.to.stream, data.context.set.notable, "%s", arguments.array[1].string);
- fl_color_print(data.error.to.stream, data_make->error.context, "'.%c", f_string_eol[0]);
+ fprintf(data_make->error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "%sUnsupported define type '", data_make->error.prefix);
+ fl_color_print(data_make->error.to.stream, data_make->error.notable, "%s", arguments.array[1].string);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "'.%c", f_string_eol[0]);
}
*status = F_status_set_error(F_failure);
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.error.verbosity != f_console_verbosity_quiet && data_make->error.to.stream) {
- fprintf(data.output.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error.to.stream, data_make->error.context, "%s: Requires more arguments.%c", data_make->error.prefix, f_string_eol[0]);
+ fprintf(data_make->error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "%sRequires more arguments.%c", data_make->error.prefix, f_string_eol[0]);
}
*status = F_status_set_error(F_failure);
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.error.verbosity != f_console_verbosity_quiet && data_make->error.to.stream) {
- fprintf(data.output.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error.to.stream, data_make->error.context, "%s: Requires more arguments.%c", data_make->error.prefix, f_string_eol[0]);
+ fprintf(data_make->error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "%sRequires more arguments.%c", data_make->error.prefix, f_string_eol[0]);
}
*status = F_status_set_error(F_failure);
*status = F_status_set_error(F_failure);
if (data.error.verbosity != f_console_verbosity_quiet && data_make->error.to.stream) {
- fprintf(data.output.stream, "%c", f_string_eol[0]);
+ fprintf(data_make->error.to.stream, "%c", f_string_eol[0]);
if (number > f_number_t_size_unsigned) {
- fl_color_print(data.error.to.stream, data_make->error.context, "%s: The number '", data_make->error.prefix);
- fl_color_print(data.error.to.stream, data.context.set.notable, "%c%s", arguments.array[i].string);
- fl_color_print(data.error.to.stream, data_make->error.context, "' may only be between the ranges -%llu to %llu.%c", f_number_t_size_unsigned, f_number_t_size_unsigned, f_string_eol[0]);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "%sThe number '", data_make->error.prefix);
+ fl_color_print(data_make->error.to.stream, data_make->error.notable, "%c%s", arguments.array[i].string);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "' may only be between the ranges -%llu to %llu.%c", f_number_t_size_unsigned, f_number_t_size_unsigned, f_string_eol[0]);
}
else {
- fl_color_print(data.error.to.stream, data_make->error.context, "%s: Invalid or unsupported number provided '", data_make->error.prefix);
- fl_color_print(data.error.to.stream, data.context.set.notable, "%s", arguments.array[i].string);
- fl_color_print(data.error.to.stream, data_make->error.context, "'.%c", f_string_eol[0]);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "%sInvalid or unsupported number provided '", data_make->error.prefix);
+ fl_color_print(data_make->error.to.stream, data_make->error.notable, "%s", arguments.array[i].string);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "'.%c", f_string_eol[0]);
}
}
}
}
if (data.error.verbosity != f_console_verbosity_quiet && data_make->error.to.stream) {
- fprintf(data.output.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error.to.stream, data_make->error.context, "%s: Requires more arguments.%c", data_make->error.prefix, f_string_eol[0]);
+ fprintf(data_make->error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "%sRequires more arguments.%c", data_make->error.prefix, f_string_eol[0]);
}
*status = F_status_set_error(F_failure);
if (operation == fake_make_operation_type_link) {
if (arguments.used > 2) {
if (data.error.verbosity != f_console_verbosity_quiet && data_make->error.to.stream) {
- fprintf(data.output.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error.to.stream, data_make->error.context, "%s: Has too many arguments.%c", data_make->error.prefix, f_string_eol[0]);
+ fprintf(data_make->error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "%sHas too many arguments.%c", data_make->error.prefix, f_string_eol[0]);
}
*status = F_status_set_error(F_failure);
*status = fake_make_assure_inside_project(data, arguments.array[0], data_make);
if (F_status_is_error(*status)) {
- fake_print_message_section_operation_path_outside(data, F_status_set_fine(*status), "fake_make_assure_inside_project", data_make->path_cache.used ? data_make->path_cache.string : arguments.array[0].string, data_make->error);
+ fake_print_message_section_operation_path_outside(data, data_make->error, F_status_set_fine(*status), "fake_make_assure_inside_project", data_make->path_cache.used ? data_make->path_cache.string : arguments.array[0].string);
if (F_status_set_fine(*status) == F_false) {
*status = F_status_set_error(F_failure);
*status = fake_make_assure_inside_project(data, arguments.array[1], data_make);
if (F_status_is_error(*status)) {
- fake_print_message_section_operation_path_outside(data, F_status_set_fine(*status), "fake_make_assure_inside_project", data_make->path_cache.used ? data_make->path_cache.string : arguments.array[1].string, data_make->error);
+ fake_print_message_section_operation_path_outside(data, data_make->error, F_status_set_fine(*status), "fake_make_assure_inside_project", data_make->path_cache.used ? data_make->path_cache.string : arguments.array[1].string);
if (F_status_set_fine(*status) == F_false) {
*status = F_status_set_error(F_failure);
}
else {
if (data.error.verbosity != f_console_verbosity_quiet && data_make->error.to.stream) {
- fprintf(data.output.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error.to.stream, data_make->error.context, "%s: Requires more arguments.%c", data_make->error.prefix, f_string_eol[0]);
+ fprintf(data_make->error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "%sRequires more arguments.%c", data_make->error.prefix, f_string_eol[0]);
}
*status = F_status_set_error(F_failure);
*status = fake_make_assure_inside_project(data, arguments.array[i], data_make);
if (F_status_is_error(*status)) {
- fake_print_message_section_operation_path_outside(data, F_status_set_fine(*status), "fake_make_assure_inside_project", data_make->path_cache.used ? data_make->path_cache.string : arguments.array[i].string, data_make->error);
+ fake_print_message_section_operation_path_outside(data, data_make->error, F_status_set_fine(*status), "fake_make_assure_inside_project", data_make->path_cache.used ? data_make->path_cache.string : arguments.array[i].string);
if (F_status_set_fine(*status) == F_false) {
*status = F_status_set_error(F_failure);
if (f_file_exists(arguments.array[i].string) != F_true) {
if (data.error.verbosity != f_console_verbosity_quiet && data_make->error.to.stream) {
- fprintf(data.output.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error.to.stream, data_make->error.context, "%s: Failed to find file '", data_make->error.prefix);
- fl_color_print(data.error.to.stream, data.context.set.notable, "%s", arguments.array[i].string);
- fl_color_print(data.error.to.stream, data_make->error.context, "'.%c", f_string_eol[0]);
+ fprintf(data_make->error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "%sFailed to find file '", data_make->error.prefix);
+ fl_color_print(data_make->error.to.stream, data_make->error.notable, "%s", arguments.array[i].string);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "'.%c", f_string_eol[0]);
}
*status = F_status_set_error(F_failure);
if (status_file == F_false || status_file == F_file_found_not) {
if (data.error.verbosity != f_console_verbosity_quiet && data_make->error.to.stream) {
- fprintf(data.output.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error.to.stream, data_make->error.context, "%s: The last file '", data_make->error.prefix);
- fl_color_print(data.error.to.stream, data.context.set.notable, "%s", arguments.array[arguments.used - 1].string);
- fl_color_print(data.error.to.stream, data_make->error.context, "' must be a valid directory.%c", f_string_eol[0]);
+ fprintf(data_make->error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "%sThe last file '", data_make->error.prefix);
+ fl_color_print(data_make->error.to.stream, data_make->error.notable, "%s", arguments.array[arguments.used - 1].string);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "' must be a valid directory.%c", f_string_eol[0]);
}
*status = F_status_set_error(F_failure);
}
else if (F_status_is_error(status_file)) {
- fake_print_message_file(data, F_status_set_fine(status_file), "f_directory_is", arguments.array[arguments.used - 1].string, "find", F_false, F_true, data_make->error);
+ fake_print_message_file(data, data_make->error, F_status_set_fine(status_file), "f_directory_is", arguments.array[arguments.used - 1].string, "find", F_false, F_true);
*status = F_status_set_error(F_failure);
}
}
if (status_file == F_false) {
if (data.error.verbosity != f_console_verbosity_quiet && data_make->error.to.stream) {
- fprintf(data.output.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error.to.stream, data_make->error.context, "%s: The last file '", data_make->error.prefix);
- fl_color_print(data.error.to.stream, data.context.set.notable, "%s", arguments.array[arguments.used - 1].string);
- fl_color_print(data.error.to.stream, data_make->error.context, "' must be a valid directory.%c", f_string_eol[0]);
+ fprintf(data_make->error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "%sThe last file '", data_make->error.prefix);
+ fl_color_print(data_make->error.to.stream, data_make->error.notable, "%s", arguments.array[arguments.used - 1].string);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "' must be a valid directory.%c", f_string_eol[0]);
}
*status = F_status_set_error(F_failure);
}
else {
if (data.error.verbosity != f_console_verbosity_quiet && data_make->error.to.stream) {
- fprintf(data.output.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error.to.stream, data_make->error.context, "%s: Requires more arguments.%c", data_make->error.prefix, f_string_eol[0]);
+ fprintf(data_make->error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "%sRequires more arguments.%c", data_make->error.prefix, f_string_eol[0]);
}
*status = F_status_set_error(F_failure);
if (operation == fake_make_operation_type_operate) {
if (arguments.used > 1) {
if (data.error.verbosity != f_console_verbosity_quiet && data_make->error.to.stream) {
- fprintf(data.output.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error.to.stream, data_make->error.context, "%s: Has too many arguments.%c", data_make->error.prefix, f_string_eol[0]);
+ fprintf(data_make->error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "%sHas too many arguments.%c", data_make->error.prefix, f_string_eol[0]);
}
*status = F_status_set_error(F_failure);
} // for
if (id_section == data_make->fakefile.used) {
- fprintf(data.output.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error.to.stream, data_make->error.context, "%s: No operation section named '", data_make->error.prefix);
- fl_color_print(data.error.to.stream, data.context.set.notable, "%s", arguments.array[0].string);
- fl_color_print(data.error.to.stream, data_make->error.context, "' was found.%c", f_string_eol[0]);
+ fprintf(data_make->error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "%sNo operation section named '", data_make->error.prefix);
+ fl_color_print(data_make->error.to.stream, data_make->error.notable, "%s", arguments.array[0].string);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "' was found.%c", f_string_eol[0]);
}
else {
for (f_array_length_t i = 0; i < section_stack->used; i++) {
if (section_stack->array[i] == id_section) {
- fprintf(data.output.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error.to.stream, data_make->error.context, "%s: The section operation '", data_make->error.prefix);
+ fprintf(data_make->error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "%sThe section operation '", data_make->error.prefix);
- fl_color_print_code(data.error.to.stream, data.context.notable);
- f_print_dynamic_partial(data.error.to.stream, data_make->buffer, data_make->fakefile.array[id_section].name);
- fl_color_print_code(data.error.to.stream, data.context.reset);
+ fl_color_print_code(data_make->error.to.stream, *data_make->error.notable.before);
+ f_print_dynamic_partial(data_make->error.to.stream, data_make->buffer, data_make->fakefile.array[id_section].name);
+ fl_color_print_code(data_make->error.to.stream, *data_make->error.notable.after);
- fl_color_print(data.error.to.stream, data_make->error.context, "' is already in the operation stack, recursion is not allowed.%c", f_string_eol[0]);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "' is already in the operation stack, recursion is not allowed.%c", f_string_eol[0]);
*status = F_status_set_error(F_failure);
break;
}
else {
if (data.error.verbosity != f_console_verbosity_quiet && data_make->error.to.stream) {
- fprintf(data.output.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error.to.stream, data_make->error.context, "%s: Requires more arguments.%c", data_make->error.prefix, f_string_eol[0]);
+ fprintf(data_make->error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "%sRequires more arguments.%c", data_make->error.prefix, f_string_eol[0]);
}
*status = F_status_set_error(F_failure);
if (operation == fake_make_operation_type_to) {
if (arguments.used > 1) {
if (data.error.verbosity != f_console_verbosity_quiet && data_make->error.to.stream) {
- fprintf(data.output.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error.to.stream, data_make->error.context, "%s: Has too many arguments.%c", data_make->error.prefix, f_string_eol[0]);
+ fprintf(data_make->error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "%sHas too many arguments.%c", data_make->error.prefix, f_string_eol[0]);
}
*status = F_status_set_error(F_failure);
if (status_file == F_file_found_not) {
if (data.error.verbosity != f_console_verbosity_quiet && data_make->error.to.stream) {
- fprintf(data.output.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error.to.stream, data_make->error.context, "%s: Failed to find file '", data_make->error.prefix);
- fl_color_print(data.error.to.stream, data.context.set.notable, "%s", arguments.array[0].string);
- fl_color_print(data.error.to.stream, data_make->error.context, "'.%c", f_string_eol[0]);
+ fprintf(data_make->error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "%sFailed to find file '", data_make->error.prefix);
+ fl_color_print(data_make->error.to.stream, data_make->error.notable, "%s", arguments.array[0].string);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "'.%c", f_string_eol[0]);
}
*status = F_status_set_error(status_file);
}
else if (F_status_is_error(status_file)) {
if (data.error.verbosity != f_console_verbosity_quiet && data_make->error.to.stream) {
- fake_print_message_file(data, *status, "f_file_is", data.file_data_build_fakefile.string, "find", F_true, F_true, data_make->error);
+ fll_error_file_print(data_make->error, F_status_set_fine(*status), "f_file_is", F_true, data.file_data_build_fakefile.string, "find", fll_error_file_type_file);
}
*status = status_file;
}
else if (!status_file) {
if (data.error.verbosity != f_console_verbosity_quiet && data_make->error.to.stream) {
- fprintf(data.output.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error.to.stream, data_make->error.context, "%s: The file '", data_make->error.prefix);
- fl_color_print(data.error.to.stream, data.context.set.notable, "%s", arguments.array[0].string);
- fl_color_print(data.error.to.stream, data_make->error.context, "' must be a directory file.%c", f_string_eol[0]);
+ fprintf(data_make->error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "%sThe file '", data_make->error.prefix);
+ fl_color_print(data_make->error.to.stream, data_make->error.notable, "%s", arguments.array[0].string);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "' must be a directory file.%c", f_string_eol[0]);
}
*status = F_status_set_error(F_failure);
}
else {
if (data.error.verbosity != f_console_verbosity_quiet && data_make->error.to.stream) {
- fprintf(data.output.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error.to.stream, data_make->error.context, "%s: Filename argument must not be an empty string.%c", data_make->error.prefix, f_string_eol[0]);
+ fprintf(data_make->error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "%sFilename argument must not be an empty string.%c", data_make->error.prefix, f_string_eol[0]);
}
}
}
else {
if (data.error.verbosity != f_console_verbosity_quiet && data_make->error.to.stream) {
- fprintf(data.output.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error.to.stream, data_make->error.context, "%s: Requires more arguments.%c", data_make->error.prefix, f_string_eol[0]);
+ fprintf(data_make->error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "%sRequires more arguments.%c", data_make->error.prefix, f_string_eol[0]);
}
*status = F_status_set_error(F_failure);
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.error.verbosity != f_console_verbosity_quiet && data_make->error.to.stream) {
- fprintf(data.error.to.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error.to.stream, data_make->error.context, "%s: Unsupported file type '", data_make->error.prefix);
- fl_color_print(data.error.to.stream, data.context.set.notable, "%s", arguments.array[0].string);
- fl_color_print(data.error.to.stream, data_make->error.context, "'.%c", f_string_eol[0]);
+ fprintf(data_make->error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "%sUnsupported file type '", data_make->error.prefix);
+ fl_color_print(data_make->error.to.stream, data_make->error.notable, "%s", arguments.array[0].string);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "'.%c", f_string_eol[0]);
}
*status = F_status_set_error(F_failure);
*status = fake_make_assure_inside_project(data, arguments.array[i], data_make);
if (F_status_is_error(*status)) {
- fake_print_message_section_operation_path_outside(data, F_status_set_fine(*status), "fake_make_assure_inside_project", data_make->path_cache.used ? data_make->path_cache.string : arguments.array[i].string, data_make->error);
+ fake_print_message_section_operation_path_outside(data, data_make->error, F_status_set_fine(*status), "fake_make_assure_inside_project", data_make->path_cache.used ? data_make->path_cache.string : arguments.array[i].string);
if (F_status_set_fine(*status) == F_false) {
*status = F_status_set_error(F_failure);
}
else {
if (data.error.verbosity != f_console_verbosity_quiet && data_make->error.to.stream) {
- fprintf(data.output.stream, "%c", f_string_eol[0]);
- fl_color_print(data.error.to.stream, data_make->error.context, "%s: Requires more arguments.%c", data_make->error.prefix, f_string_eol[0]);
+ fprintf(data_make->error.to.stream, "%c", f_string_eol[0]);
+ fl_color_print(data_make->error.to.stream, data_make->error.context, "%sRequires more arguments.%c", data_make->error.prefix, f_string_eol[0]);
}
*status = F_status_set_error(F_failure);