This shortens the name.
The "_string" part is not needed as this should be considered the default behavior/interpretation.
extern "C" {
#endif
-#ifndef _di_f_print_string_
- f_return_status f_print_string(FILE *output, const f_string_t string, const f_string_length_t length) {
+#ifndef _di_f_print_
+ f_return_status f_print(FILE *output, const f_string_t string, const f_string_length_t length) {
#ifndef _di_level_0_parameter_checking_
if (output == 0) return F_status_set_error(F_parameter);
if (string == 0) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- return private_f_print_string(output, string, length);
+ return private_f_print(output, string, length);
}
-#endif // _di_f_print_string_
+#endif // _di_f_print_
-#ifndef _di_f_print_string_dynamic_
- f_return_status f_print_string_dynamic(FILE *output, const f_string_static_t buffer) {
+#ifndef _di_f_print_dynamic_
+ f_return_status f_print_dynamic(FILE *output, const f_string_static_t buffer) {
#ifndef _di_level_0_parameter_checking_
if (output == 0) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- return private_f_print_string(output, buffer.string, buffer.used);
+ return private_f_print(output, buffer.string, buffer.used);
}
-#endif // _di_f_print_string_dynamic_
+#endif // _di_f_print_dynamic_
-#ifndef _di_f_print_string_dynamic_partial_
- f_return_status f_print_string_dynamic_partial(FILE *output, const f_string_static_t buffer, const f_string_range_t range) {
+#ifndef _di_f_print_dynamic_partial_
+ f_return_status f_print_dynamic_partial(FILE *output, const f_string_static_t buffer, const f_string_range_t range) {
#ifndef _di_level_0_parameter_checking_
if (output == 0) return F_status_set_error(F_parameter);
if (range.start < 0) return F_status_set_error(F_parameter);
const f_string_length_t length = (range.stop - range.start) + 1;
- return private_f_print_string(output, buffer.string + range.start, length);
+ return private_f_print(output, buffer.string + range.start, length);
}
-#endif // _di_f_print_string_dynamic_partial_
+#endif // _di_f_print_dynamic_partial_
#ifndef _di_f_print_to_
f_return_status f_print_to(const int id, const f_string_t string, const f_string_length_t length) {
*
* @see fputc()
*/
-#ifndef _di_f_print_string_
- extern f_return_status f_print_string(FILE *output, const f_string_t string, const f_string_length_t length);
-#endif // _di_f_print_string_
+#ifndef _di_f_print_
+ extern f_return_status f_print(FILE *output, const f_string_t string, const f_string_length_t length);
+#endif // _di_f_print_
/**
* Similar to a c-library printf, except that this prints a given dynamic string.
*
* @see fputc()
*/
-#ifndef _di_f_print_string_dynamic_
- extern f_return_status f_print_string_dynamic(FILE *output, const f_string_static_t buffer);
-#endif // _di_f_print_string_dynamic_
+#ifndef _di_f_print_dynamic_
+ extern f_return_status f_print_dynamic(FILE *output, const f_string_static_t buffer);
+#endif // _di_f_print_dynamic_
/**
* Similar to a c-library printf, except that this will only print a specific range in a given dynamic string.
*
* @see fputc()
*/
-#ifndef _di_f_print_string_dynamic_partial_
- extern f_return_status f_print_string_dynamic_partial(FILE *output, const f_string_static_t buffer, const f_string_range_t range);
-#endif // _di_f_print_string_dynamic_partial_
+#ifndef _di_f_print_dynamic_partial_
+ extern f_return_status f_print_dynamic_partial(FILE *output, const f_string_static_t buffer, const f_string_range_t range);
+#endif // _di_f_print_dynamic_partial_
/**
* Similar to a c-library dprintf, except that this will only print a specific range.
extern "C" {
#endif
-#if !defined(_di_f_print_string_) || !defined(_di_f_print_string_dynamic_) || !defined(_di_f_print_string_dynamic_partial_)
- f_return_status private_f_print_string(FILE *output, const f_string_t string, const f_string_length_t length) {
+#if !defined(_di_f_print_) || !defined(_di_f_print_dynamic_) || !defined(_di_f_print_dynamic_partial_)
+ f_return_status private_f_print(FILE *output, const f_string_t string, const f_string_length_t length) {
if (length == 0) return F_data_not;
return F_none;
}
-#endif // !defined(_di_f_print_string_) || !defined(_di_f_print_string_dynamic_) || !defined(_di_f_print_string_dynamic_partial_)
+#endif // !defined(_di_f_print_) || !defined(_di_f_print_dynamic_) || !defined(_di_f_print_dynamic_partial_)
#if !defined(_di_f_print_to_) || !defined(_di_f_print_dynamic_to_) || !defined(_di_f_print_dynamic_partial_to_)
f_return_status private_f_print_to(const int id, const f_string_t string, const f_string_length_t length) {
#endif
/**
- * Private implementation of f_print_string().
+ * Private implementation of f_print().
*
* Intended to be shared to each of the different implementation variations.
*
* F_output (with error bit) on failure.
* F_parameter (with error bit) if a parameter is invalid.
*
- * @see f_print_string()
- * @see f_print_string_dynamic()
- * @see f_print_string_dynamic_partial()
+ * @see f_print()
+ * @see f_print_dynamic()
+ * @see f_print_dynamic_partial()
*/
-#if !defined(_di_f_print_string_) || !defined(_di_f_print_string_dynamic_) || !defined(_di_f_print_string_dynamic_partial_)
- extern f_return_status private_f_print_string(FILE *output, const f_string_t string, const f_string_length_t length) f_gcc_attribute_visibility_internal;
-#endif // !defined(_di_f_print_string_) || !defined(_di_f_print_string_dynamic_) || !defined(_di_f_print_string_dynamic_partial_)
+#if !defined(_di_f_print_) || !defined(_di_f_print_dynamic_) || !defined(_di_f_print_dynamic_partial_)
+ extern f_return_status private_f_print(FILE *output, const f_string_t string, const f_string_length_t length) f_gcc_attribute_visibility_internal;
+#endif // !defined(_di_f_print_) || !defined(_di_f_print_dynamic_) || !defined(_di_f_print_dynamic_partial_)
/**
* Private implementation of f_print_to().
#endif // _di_level_1_parameter_checking_
if (start_color.used) {
- f_status_t status = f_print_string_dynamic(file, start_color);
+ f_status_t status = f_print_dynamic(file, start_color);
if (F_status_is_error(status)) return status;
}
va_end(ap);
if (end_color.used) {
- f_status_t status = f_print_string_dynamic(file, end_color);
+ f_status_t status = f_print_dynamic(file, end_color);
if (F_status_is_error(status)) return status;
}
#endif // _di_level_1_parameter_checking_
if (start_color.used) {
- f_status_t status = f_print_string_dynamic(file, start_color);
+ f_status_t status = f_print_dynamic(file, start_color);
if (F_status_is_error(status)) return status;
- status = f_print_string_dynamic(file, extra_color);
+ status = f_print_dynamic(file, extra_color);
if (F_status_is_error(status)) return status;
}
va_end(ap);
if (end_color.used) {
- f_status_t status = f_print_string_dynamic(file, end_color);
+ f_status_t status = f_print_dynamic(file, end_color);
if (F_status_is_error(status)) return status;
}
#endif // _di_level_1_parameter_checking_
if (start_color.used) {
- f_status_t status = f_print_string_dynamic(file, start_color);
+ f_status_t status = f_print_dynamic(file, start_color);
if (F_status_is_error(status)) return status;
}
va_end(ap);
if (end_color.used) {
- f_status_t status = f_print_string_dynamic(file, end_color);
+ f_status_t status = f_print_dynamic(file, end_color);
if (F_status_is_error(status)) return status;
}
#endif // _di_level_1_parameter_checking_
if (start_color.used) {
- f_status_t status = f_print_string_dynamic(file, start_color);
+ f_status_t status = f_print_dynamic(file, start_color);
if (F_status_is_error(status)) return status;
- status = f_print_string_dynamic(file, extra_color);
+ status = f_print_dynamic(file, extra_color);
if (F_status_is_error(status)) return status;
}
va_end(ap);
if (end_color.used) {
- f_status_t status = f_print_string_dynamic(file, end_color);
+ f_status_t status = f_print_dynamic(file, end_color);
if (F_status_is_error(status)) return status;
}
#ifndef _di_fl_color_print_code_
f_return_status fl_color_print_code(FILE *file, const f_string_static_t color) {
if (color.used) {
- f_status_t status = f_print_string_dynamic(file, color);
+ f_status_t status = f_print_dynamic(file, color);
if (F_status_is_error(status)) return status;
}
* F_none on success.
* F_parameter (with error bit) if a parameter is invalid.
*
- * Errors from (with error bit): f_print_string_dynamic().
+ * Errors from (with error bit): f_print_dynamic().
*/
#ifndef _di_fl_color_print_
extern f_return_status fl_color_print(FILE *file, const f_string_static_t start_color, const f_string_static_t end_color, const f_string_t string, ...);
* F_none on success.
* F_parameter (with error bit) if a parameter is invalid.
*
- * Errors from (with error bit): f_print_string_dynamic().
+ * Errors from (with error bit): f_print_dynamic().
*/
#ifndef _di_fl_color_print2_
extern f_return_status fl_color_print2(FILE *file, const f_string_static_t start_color, const f_string_static_t extra_color, const f_string_static_t end_color, const f_string_t string, ...);
* F_none on success.
* F_parameter (with error bit) if a parameter is invalid.
*
- * Errors from (with error bit): f_print_string_dynamic().
+ * Errors from (with error bit): f_print_dynamic().
*/
#ifndef _di_fl_color_print_line_
extern f_return_status fl_color_print_line(FILE *file, const f_string_static_t start_color, const f_string_static_t end_color, const f_string_t string, ...);
* F_none on success.
* F_parameter (with error bit) if a parameter is invalid.
*
- * Errors from (with error bit): f_print_string_dynamic().
+ * Errors from (with error bit): f_print_dynamic().
*/
#ifndef _di_fl_color_print2_line_
extern f_return_status fl_color_print2_line(FILE *file, const f_string_static_t start_color, const f_string_static_t extra_color, const f_string_static_t end_color, const f_string_t string, ...);
* F_none on success.
* F_parameter (with error bit) if a parameter is invalid.
*
- * Errors from (with error bit): f_print_string_dynamic().
+ * Errors from (with error bit): f_print_dynamic().
*/
#ifndef _di_fl_color_print_code_
extern f_return_status fl_color_print_code(FILE *file, const f_string_static_t color);
}
else if (data.mode == byte_dump_mode_duodecimal) {
if (invalid[character_current]) {
- f_print_string_dynamic(f_type_output, data.context.error);
+ f_print_dynamic(f_type_output, data.context.error);
}
printf(" %01d", byte / 144);
}
if (invalid[character_current]) {
- f_print_string_dynamic(f_type_output, data.context.reset);
+ f_print_dynamic(f_type_output, data.context.reset);
}
}
else if (data.mode == byte_dump_mode_octal) {
if (data_build.setting.project_name.used) {
fl_color_print_code(f_type_output, data.context.notable);
- f_print_string_dynamic(f_type_output, data_build.setting.project_name);
+ f_print_dynamic(f_type_output, data_build.setting.project_name);
fl_color_print_code(f_type_output, data.context.reset);
}
fl_color_print(f_type_error, data.context.error, data.context.reset, "ERROR: Invalid characters in the define setting name '");
fl_color_print_code(f_type_error, data.context.notable);
- f_print_string_dynamic(f_type_error, define.array[i].name);
+ f_print_dynamic(f_type_error, define.array[i].name);
fl_color_print_code(f_type_error, data.context.reset);
fl_color_print_line(f_type_error, data.context.error, data.context.reset, "', only alpha-numeric ASCII characters and underscore (without a leading digit) is allowed.");
fl_color_print(f_type_output, data.context.important, data.context.reset, "Processing Section '");
fl_color_print_code(f_type_output, data.context.notable);
- f_print_string_dynamic_partial(f_type_output, data_make->buffer, section->name);
+ 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_line(f_type_output, data.context.important, data.context.reset, "'.");
}
printf("Changed to project path '");
- f_print_string_dynamic(f_type_output, data_make->path_cache);
+ f_print_dynamic(f_type_output, data_make->path_cache);
printf("'.%c", f_string_eol[0]);
}
if (operation == fake_make_operation_type_print) {
for (f_array_length_t i = 0; i < arguments.used; i++) {
- f_print_string_dynamic(f_type_output, arguments.array[i]);
+ f_print_dynamic(f_type_output, arguments.array[i]);
if (i + 1 < arguments.used) {
printf(" ");
}
printf("Changed to project path '");
- f_print_string_dynamic(f_type_output, data_make->path_cache);
+ f_print_dynamic(f_type_output, data_make->path_cache);
printf("'.%c", f_string_eol[0]);
}
if (data.verbosity == fake_verbosity_verbose) {
printf("Touched %s '", arguments.array[0].string);
- f_print_string_dynamic(f_type_output, arguments.array[i]);
+ f_print_dynamic(f_type_output, arguments.array[i]);
printf("'.%c", f_string_eol[0]);
}
fl_color_print(data_make->print.to, data_make->print.context, data.context.reset, "%s: Invalid characters in the define setting name '", data_make->print.prefix);
fl_color_print_code(data_make->print.to, data.context.notable);
- f_print_string_dynamic(data_make->print.to, arguments.array[0]);
+ f_print_dynamic(data_make->print.to, arguments.array[0]);
fl_color_print_code(data_make->print.to, data.context.reset);
fl_color_print_line(data_make->print.to, data_make->print.context, data.context.reset, "', only alpha-numeric ASCII characters and underscore (without a leading digit) is allowed.");
fl_color_print(data_make->print.to, data_make->print.context, data.context.reset, "%s: The section operation '", data_make->print.prefix);
fl_color_print_code(data_make->print.to, data.context.notable);
- f_print_string_dynamic_partial(data_make->print.to, data_make->buffer, data_make->fakefile.array[id_section].name);
+ f_print_dynamic_partial(data_make->print.to, data_make->buffer, data_make->fakefile.array[id_section].name);
fl_color_print_code(data_make->print.to, data.context.reset);
fl_color_print_line(data_make->print.to, data_make->print.context, data.context.reset, "' is already in the operation stack, recursion is not allowed.");
fl_color_print(print.to, print.context, data.context.reset, "%s: The section operation '", print.prefix);
fl_color_print_code(print.to, data.context.notable);
- f_print_string_dynamic_partial(print.to, buffer, operation_name);
+ f_print_dynamic_partial(print.to, buffer, operation_name);
fl_color_print_code(print.to, data.context.reset);
fl_color_print(print.to, print.context, data.context.reset, "' from section '");
fl_color_print_code(print.to, data.context.notable);
- f_print_string_dynamic_partial(print.to, buffer, section_name);
+ f_print_dynamic_partial(print.to, buffer, section_name);
fl_color_print_code(print.to, data.context.reset);
fl_color_print(print.to, print.context, data.context.reset, "' on line ");
fl_color_print(print.to, print.context, data.context.reset, "%s: The section operation '", print.prefix);
fl_color_print_code(print.to, data.context.notable);
- f_print_string_dynamic_partial(print.to, buffer, operation_name);
+ f_print_dynamic_partial(print.to, buffer, operation_name);
fl_color_print_code(print.to, data.context.reset);
fl_color_print(print.to, print.context, data.context.reset, "' from section '");
fl_color_print_code(print.to, data.context.notable);
- f_print_string_dynamic_partial(print.to, buffer, section_name);
+ f_print_dynamic_partial(print.to, buffer, section_name);
fl_color_print_code(print.to, data.context.reset);
fl_color_print(print.to, print.context, data.context.reset, "' on line ");
fl_color_print(print.to, print.context, data.context.reset, "%s: The section operation '", print.prefix);
fl_color_print_code(print.to, data.context.notable);
- f_print_string_dynamic_partial(print.to, buffer, operation_name);
+ f_print_dynamic_partial(print.to, buffer, operation_name);
fl_color_print_code(print.to, data.context.reset);
fl_color_print(print.to, print.context, data.context.reset, "' from section '");
fl_color_print_code(print.to, data.context.notable);
- f_print_string_dynamic_partial(print.to, buffer, section_name);
+ f_print_dynamic_partial(print.to, buffer, section_name);
fl_color_print_code(print.to, data.context.reset);
fl_color_print(print.to, print.context, data.context.reset, "' on line ");
fl_color_print(f_type_warning, data.context.warning, data.context.reset, "' object '");
fl_color_print_code(f_type_warning, data.context.notable);
- f_print_string_dynamic_partial(f_type_warning, buffer, range_object);
+ f_print_dynamic_partial(f_type_warning, buffer, range_object);
fl_color_print_code(f_type_warning, data.context.reset);
fl_color_print_line(f_type_warning, data.context.warning, data.context.reset, "'.");
fl_color_print(f_type_warning, data.context.warning, data.context.reset, "' has an invalid content '");
fl_color_print_code(f_type_warning, data.context.notable);
- f_print_string_dynamic_partial(f_type_warning, buffer, range_content);
+ f_print_dynamic_partial(f_type_warning, buffer, range_content);
fl_color_print_code(f_type_warning, data.context.reset);
fl_color_print(f_type_warning, data.context.warning, data.context.reset, "' for the '");
fl_color_print(f_type_warning, data.context.warning, data.context.reset, "' object '");
fl_color_print_code(f_type_warning, data.context.notable);
- f_print_string_dynamic_partial(f_type_warning, buffer, range_object);
+ f_print_dynamic_partial(f_type_warning, buffer, range_object);
fl_color_print_code(f_type_warning, data.context.reset);
fl_color_print_line(f_type_warning, data.context.warning, data.context.reset, "'.");
if (length > 0) {
fl_color_print_code(f_type_warning, data.context.warning);
fprintf(f_type_warning, "WARNING: At line %i, the object '", i);
- f_print_string(f_type_warning, local.buffer.string + local.rule_objects.array[i].start, length);
+ f_print(f_type_warning, local.buffer.string + local.rule_objects.array[i].start, length);
fprintf(f_type_warning, "' is invalid");
fl_color_print_code(f_type_warning, data.context.reset);
}
if (length > 0) {
fl_color_print_code(f_type_warning, data.context.warning);
fprintf(f_type_warning, "WARNING: At line %i, the object '", i);
- f_print_string(f_type_warning, local.buffer.string + local.rule_objects.array[i].start, length);
+ f_print(f_type_warning, local.buffer.string + local.rule_objects.array[i].start, length);
fprintf(f_type_warning, "' has invalid content '");
- f_print_string(f_type_warning, local.buffer.string + local.rule_contents.array[i].array[0].start, firewall_macro_structure_size(local.rule_contents.array[i], 0));
+ f_print(f_type_warning, local.buffer.string + local.rule_contents.array[i].array[0].start, firewall_macro_structure_size(local.rule_contents.array[i], 0));
fprintf(f_type_warning, "'");
fl_color_print_code(f_type_warning, data.context.reset);
fprintf(f_type_warning, "\n");
fl_color_print_code(f_type_warning, data.context.warning);
fprintf(f_type_warning, "WARNING: At line %i, the object '", i);
- f_print_string(f_type_warning, local.buffer.string + local.rule_objects.array[i].start, length);
+ f_print(f_type_warning, local.buffer.string + local.rule_objects.array[i].start, length);
fprintf(f_type_warning, "' has no content");
fl_color_print_code(f_type_warning, data.context.reset);
fprintf(f_type_warning, "\n");
return F_none;
}
- f_return_status (*print_object)(FILE *, const f_string_static_t, const f_string_range_t) = &f_print_string_dynamic_partial;
+ f_return_status (*print_object)(FILE *, const f_string_static_t, const f_string_range_t) = &f_print_dynamic_partial;
if (data->parameters[fss_basic_list_read_parameter_trim].result == f_console_result_found) {
print_object = &fl_print_trim_string_dynamic_partial;
}
if (data->contents.array[i].used > 0) {
- f_print_string_dynamic_partial(f_type_output, data->buffer, data->contents.array[i].array[0]);
+ f_print_dynamic_partial(f_type_output, data->buffer, data->contents.array[i].array[0]);
}
else if (include_empty) {
fprintf(f_type_output, "%c", f_string_eol[0]);
continue;
}
- f_print_string_dynamic_partial(f_type_output, data->buffer, data->contents.array[i].array[0]);
+ f_print_dynamic_partial(f_type_output, data->buffer, data->contents.array[i].array[0]);
} // for
return F_none;
}
}
else {
- f_print_string_dynamic(f_type_output, buffer);
+ f_print_dynamic(f_type_output, buffer);
}
f_macro_string_dynamic_t_delete_simple(buffer);
return F_none;
}
- f_return_status (*print_object)(FILE *, const f_string_static_t, const f_string_range_t) = &f_print_string_dynamic_partial;
+ f_return_status (*print_object)(FILE *, const f_string_static_t, const f_string_range_t) = &f_print_dynamic_partial;
if (data->parameters[fss_basic_read_parameter_trim].result == f_console_result_found) {
print_object = &fl_print_trim_string_dynamic_partial;
}
else if (data->parameters[fss_basic_read_parameter_line].result == f_console_result_additional) {
if (data->contents.array[i].used > 0) {
- f_print_string_dynamic_partial(f_type_output, data->buffer, data->contents.array[i].array[0]);
+ f_print_dynamic_partial(f_type_output, data->buffer, data->contents.array[i].array[0]);
fprintf(f_type_output, "%c", f_string_eol[0]);
}
else if (include_empty) {
}
else {
if (data->contents.array[i].used > 0) {
- f_print_string_dynamic_partial(f_type_output, data->buffer, data->contents.array[i].array[0]);
+ f_print_dynamic_partial(f_type_output, data->buffer, data->contents.array[i].array[0]);
fprintf(f_type_output, "%c", f_string_eol[0]);
}
else if (include_empty) {
}
if (line_current == line) {
- f_print_string_dynamic_partial(f_type_output, data->buffer, data->contents.array[i].array[0]);
+ f_print_dynamic_partial(f_type_output, data->buffer, data->contents.array[i].array[0]);
fprintf(f_type_output, "%c", f_string_eol[0]);
break;
continue;
}
- f_print_string_dynamic_partial(f_type_output, data->buffer, data->contents.array[i].array[0]);
+ f_print_dynamic_partial(f_type_output, data->buffer, data->contents.array[i].array[0]);
fprintf(f_type_output, "%c", f_string_eol[0]);
} // for
}
}
else {
- f_print_string_dynamic(f_type_output, buffer);
+ f_print_dynamic(f_type_output, buffer);
}
f_macro_string_dynamic_t_delete_simple(buffer);
return F_none;
}
- f_return_status (*print_object)(FILE *, const f_string_static_t, const f_string_range_t) = &f_print_string_dynamic_partial;
+ f_return_status (*print_object)(FILE *, const f_string_static_t, const f_string_range_t) = &f_print_dynamic_partial;
if (data->parameters[fss_extended_list_read_parameter_trim].result == f_console_result_found) {
print_object = &fl_print_trim_string_dynamic_partial;
}
if (items->array[i].content.used > 0) {
- f_print_string_dynamic_partial(f_type_output, data->buffer, items->array[i].content.array[0]);
+ f_print_dynamic_partial(f_type_output, data->buffer, items->array[i].content.array[0]);
}
else if (include_empty) {
fprintf(f_type_output, "%c", f_string_eol[0]);
continue;
}
- f_print_string_dynamic_partial(f_type_output, data->buffer, items->array[i].content.array[0]);
+ f_print_dynamic_partial(f_type_output, data->buffer, items->array[i].content.array[0]);
} // for
return F_none;
return F_none;
}
- f_return_status (*print_object)(FILE *, const f_string_static_t, const f_string_range_t) = &f_print_string_dynamic_partial;
+ f_return_status (*print_object)(FILE *, const f_string_static_t, const f_string_range_t) = &f_print_dynamic_partial;
if (data->parameters[fss_extended_read_parameter_trim].result == f_console_result_found) {
print_object = &fl_print_trim_string_dynamic_partial;
if (data->parameters[fss_extended_read_parameter_select].result == f_console_result_additional) {
if (select < data->contents.array[i].used) {
- f_print_string_dynamic_partial(f_type_output, data->buffer, data->contents.array[i].array[select]);
+ f_print_dynamic_partial(f_type_output, data->buffer, data->contents.array[i].array[select]);
fprintf(f_type_output, "%c", f_string_eol[0]);
}
}
else {
for (j = 0; j < data->contents.array[i].used; j++) {
- f_print_string_dynamic_partial(f_type_output, data->buffer, data->contents.array[i].array[j]);
+ f_print_dynamic_partial(f_type_output, data->buffer, data->contents.array[i].array[j]);
if (j + 1 < data->contents.array[i].used) {
printf(" ");
if (data->parameters[fss_extended_read_parameter_select].result == f_console_result_additional) {
if (select < data->contents.array[i].used) {
- f_print_string_dynamic_partial(f_type_output, data->buffer, data->contents.array[i].array[select]);
+ f_print_dynamic_partial(f_type_output, data->buffer, data->contents.array[i].array[select]);
fprintf(f_type_output, "%c", f_string_eol[0]);
}
}
else {
for (j = 0; j < data->contents.array[i].used; j++) {
- f_print_string_dynamic_partial(f_type_output, data->buffer, data->contents.array[i].array[j]);
+ f_print_dynamic_partial(f_type_output, data->buffer, data->contents.array[i].array[j]);
if (j + 1 < data->contents.array[i].used) {
printf(" ");
if (line_current == line) {
if (data->parameters[fss_extended_read_parameter_select].result == f_console_result_additional) {
if (select < data->contents.array[i].used) {
- f_print_string_dynamic_partial(f_type_output, data->buffer, data->contents.array[i].array[select]);
+ f_print_dynamic_partial(f_type_output, data->buffer, data->contents.array[i].array[select]);
fprintf(f_type_output, "%c", f_string_eol[0]);
}
}
else {
for (j = 0; j < data->contents.array[i].used; j++) {
- f_print_string_dynamic_partial(f_type_output, data->buffer, data->contents.array[i].array[j]);
+ f_print_dynamic_partial(f_type_output, data->buffer, data->contents.array[i].array[j]);
if (j + 1 < data->contents.array[i].used) {
printf(" ");
if (data->parameters[fss_extended_read_parameter_select].result == f_console_result_additional) {
if (select < data->contents.array[i].used) {
- f_print_string_dynamic_partial(f_type_output, data->buffer, data->contents.array[i].array[select]);
+ f_print_dynamic_partial(f_type_output, data->buffer, data->contents.array[i].array[select]);
fprintf(f_type_output, "%c", f_string_eol[0]);
}
}
else {
for (j = 0; j < data->contents.array[i].used; j++) {
- f_print_string_dynamic_partial(f_type_output, data->buffer, data->contents.array[i].array[j]);
+ f_print_dynamic_partial(f_type_output, data->buffer, data->contents.array[i].array[j]);
if (j + 1 < data->contents.array[i].used) {
printf(" ");
}
}
else {
- f_print_string_dynamic(f_type_output, buffer);
+ f_print_dynamic(f_type_output, buffer);
}
f_macro_string_dynamic_t_delete_simple(buffer);
iki_read_substitutions_print(*data, *variable, *content, *ranges, substitutionss[j], j, content_only);
}
else {
- f_print_string_dynamic_partial(f_type_output, data->buffer, ranges->array[j]);
+ f_print_dynamic_partial(f_type_output, data->buffer, ranges->array[j]);
}
printf("%c", f_string_eol[0]);
iki_read_substitutions_print(*data, *variable, *content, *ranges, substitutionss[i], i, content_only);
}
else {
- f_print_string_dynamic_partial(f_type_output, data->buffer, ranges->array[i]);
+ f_print_dynamic_partial(f_type_output, data->buffer, ranges->array[i]);
}
printf("%c", f_string_eol[0]);
}
if (!variable->used) {
- f_print_string_dynamic_partial(f_type_output, data->buffer, buffer_range);
+ f_print_dynamic_partial(f_type_output, data->buffer, buffer_range);
return F_none;
}
range.start = i;
range.stop = variable->array[j].start - 1;
- f_print_string_dynamic_partial(f_type_output, data->buffer, range);
+ f_print_dynamic_partial(f_type_output, data->buffer, range);
range.start = variable->array[j].stop + 1;
range.stop = buffer_range.stop;
iki_read_substitutions_print(*data, *variable, *content, *variable, substitutionss[j], j, F_false);
}
else {
- f_print_string_dynamic_partial(f_type_output, data->buffer, variable->array[j]);
+ f_print_dynamic_partial(f_type_output, data->buffer, variable->array[j]);
}
}
else {
iki_read_substitutions_print(*data, *variable, *content, *ranges, substitutionss[j], j, content_only);
}
else {
- f_print_string_dynamic_partial(f_type_output, data->buffer, ranges->array[j]);
+ f_print_dynamic_partial(f_type_output, data->buffer, ranges->array[j]);
}
}
}
iki_read_substitutions_print(*data, *variable, *content, *ranges, substitutionss[j], j, content_only);
}
else {
- f_print_string_dynamic_partial(f_type_output, data->buffer, ranges->array[j]);
+ f_print_dynamic_partial(f_type_output, data->buffer, ranges->array[j]);
}
}
if (i <= buffer_range.stop) {
range.start = i;
- f_print_string_dynamic_partial(f_type_output, data->buffer, range);
+ f_print_dynamic_partial(f_type_output, data->buffer, range);
}
}
if (status == F_equal_to) {
if (content_only) {
- f_print_string_dynamic(f_type_output, substitutions.array[i].with);
+ f_print_dynamic(f_type_output, substitutions.array[i].with);
}
else {
range.start = variable.array[index].start;
range.stop = content.array[index].start - 1;
- f_print_string_dynamic_partial(f_type_output, data.buffer, range);
+ f_print_dynamic_partial(f_type_output, data.buffer, range);
- f_print_string_dynamic(f_type_output, substitutions.array[i].with);
+ f_print_dynamic(f_type_output, substitutions.array[i].with);
range.start = content.array[index].stop + 1;
range.stop = variable.array[index].stop;
- f_print_string_dynamic_partial(f_type_output, data.buffer, range);
+ f_print_dynamic_partial(f_type_output, data.buffer, range);
}
}
else {
- f_print_string_dynamic_partial(f_type_output, data.buffer, ranges.array[index]);
+ f_print_dynamic_partial(f_type_output, data.buffer, ranges.array[index]);
}
}
#endif // _di_iki_read_substitutions_print_
fl_color_print(f_type_error, data.context.error, data.context.reset, "ERROR: The object '");
fl_color_print_code(f_type_error, data.context.notable);
- f_print_string_dynamic(f_type_error, object);
+ f_print_dynamic(f_type_error, object);
fl_color_print_code(f_type_error, data.context.reset);
fl_color_print_line(f_type_error, data.context.error, data.context.reset, "' is not a valid IKI object.");