}
#endif // _di_f_print_string_
-#ifndef _di_f_print_string_dynamic_
- f_return_status f_print_string_dynamic(FILE *output, const f_string_static buffer) {
+#ifndef _di_f_print_string_static_
+ f_return_status f_print_string_static(FILE *output, const f_string_static buffer) {
#ifndef _di_level_0_parameter_checking_
if (buffer.used <= 0) return f_status_set_error(f_invalid_parameter);
#endif // _di_level_0_parameter_checking_
return f_none;
}
-#endif // _di_f_print_string_dynamic_
+#endif // _di_f_print_string_static_
-#ifndef _di_f_print_string_dynamic_partial_
- f_return_status f_print_string_dynamic_partial(FILE *output, const f_string_static buffer, const f_string_range range) {
+#ifndef _di_f_print_string_static_partial_
+ f_return_status f_print_string_static_partial(FILE *output, const f_string_static buffer, const f_string_range range) {
#ifndef _di_level_0_parameter_checking_
if (range.start < 0) return f_status_set_error(f_invalid_parameter);
if (range.stop < range.start) return f_status_set_error(f_invalid_parameter);
return f_none;
}
-#endif // _di_f_print_string_dynamic_partial_
+#endif // _di_f_print_string_static_partial_
#ifdef __cplusplus
} // extern "C"
* f_error_output (with error bit) on failure.
* f_invalid_parameter (with error bit) if a parameter is invalid.
*/
-#ifndef _di_f_print_string_dynamic_
- extern f_return_status f_print_string_dynamic(FILE *output, const f_string_static buffer);
-#endif // _di_f_print_string_dynamic_
+#ifndef _di_f_print_string_static_
+ extern f_return_status f_print_string_static(FILE *output, const f_string_static buffer);
+#endif // _di_f_print_string_static_
/**
* Similar to a c-library printf, except that this will only print a specific range.
* f_error_output (with error bit) on failure.
* f_invalid_parameter (with error bit) if a parameter is invalid.
*/
-#ifndef _di_f_print_string_dynamic_partial_
- extern f_return_status f_print_string_dynamic_partial(FILE *output, const f_string_static buffer, const f_string_range range);
-#endif // _di_f_print_string_dynamic_partial_
+#ifndef _di_f_print_string_static_partial_
+ extern f_return_status f_print_string_static_partial(FILE *output, const f_string_static buffer, const f_string_range range);
+#endif // _di_f_print_string_static_partial_
#ifdef __cplusplus
} // extern "C"
#endif // _di_level_1_parameter_checking_
if (start_color.used != 0) {
- f_status status = f_print_string_dynamic(file, start_color);
+ f_status status = f_print_string_static(file, start_color);
if (f_status_is_error(status)) return status;
}
va_end(ap);
if (end_color.used != 0) {
- f_status status = f_print_string_dynamic(file, end_color);
+ f_status status = f_print_string_static(file, end_color);
if (f_status_is_error(status)) return status;
}
#endif // _di_level_1_parameter_checking_
if (start_color.used != 0) {
- f_status status = f_print_string_dynamic(file, start_color);
+ f_status status = f_print_string_static(file, start_color);
if (f_status_is_error(status)) return status;
- status = f_print_string_dynamic(file, extra_color);
+ status = f_print_string_static(file, extra_color);
if (f_status_is_error(status)) return status;
}
va_end(ap);
if (end_color.used != 0) {
- f_status status = f_print_string_dynamic(file, end_color);
+ f_status status = f_print_string_static(file, end_color);
if (f_status_is_error(status)) return status;
}
#endif // _di_level_1_parameter_checking_
if (start_color.used != 0) {
- f_status status = f_print_string_dynamic(file, start_color);
+ f_status status = f_print_string_static(file, start_color);
if (f_status_is_error(status)) return status;
}
va_end(ap);
if (end_color.used != 0) {
- f_status status = f_print_string_dynamic(file, end_color);
+ f_status status = f_print_string_static(file, end_color);
if (f_status_is_error(status)) return status;
}
#endif // _di_level_1_parameter_checking_
if (start_color.used != 0) {
- f_status status = f_print_string_dynamic(file, start_color);
+ f_status status = f_print_string_static(file, start_color);
if (f_status_is_error(status)) return status;
- status = f_print_string_dynamic(file, extra_color);
+ status = f_print_string_static(file, extra_color);
if (f_status_is_error(status)) return status;
}
va_end(ap);
if (end_color.used != 0) {
- f_status status = f_print_string_dynamic(file, end_color);
+ f_status status = f_print_string_static(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 color) {
if (color.used != 0) {
- f_status status = f_print_string_dynamic(file, color);
+ f_status status = f_print_string_static(file, color);
if (f_status_is_error(status)) return status;
}
}
else if (data.mode == byte_dump_mode_duodecimal) {
if (invalid[character_current]) {
- f_print_string_dynamic(f_standard_output, data.context.error);
+ f_print_string_static(f_standard_output, data.context.error);
}
printf(" %01d", byte / 144);
}
if (invalid[character_current]) {
- f_print_string_dynamic(f_standard_output, data.context.reset);
+ f_print_string_static(f_standard_output, data.context.reset);
}
}
else if (data.mode == byte_dump_mode_octal) {
return f_none;
}
- f_return_status (*print_object)(FILE *, const f_string_static, const f_string_range) = &f_print_string_dynamic_partial;
+ f_return_status (*print_object)(FILE *, const f_string_static, const f_string_range) = &f_print_string_static_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_standard_output, data->buffer, data->contents.array[i].array[0]);
+ f_print_string_static_partial(f_standard_output, data->buffer, data->contents.array[i].array[0]);
}
else if (include_empty) {
fprintf(f_standard_output, "%c", f_string_eol);
continue;
}
- f_print_string_dynamic_partial(f_standard_output, data->buffer, data->contents.array[i].array[0]);
+ f_print_string_static_partial(f_standard_output, data->buffer, data->contents.array[i].array[0]);
} // for
return f_none;
}
}
else {
- f_print_string_dynamic(f_standard_output, buffer);
+ f_print_string_static(f_standard_output, buffer);
}
}
return f_none;
}
- f_return_status (*print_object)(FILE *, const f_string_static, const f_string_range) = &f_print_string_dynamic_partial;
+ f_return_status (*print_object)(FILE *, const f_string_static, const f_string_range) = &f_print_string_static_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_standard_output, data->buffer, data->contents.array[i].array[0]);
+ f_print_string_static_partial(f_standard_output, data->buffer, data->contents.array[i].array[0]);
fprintf(f_standard_output, "%c", f_string_eol);
}
else if (include_empty) {
}
else {
if (data->contents.array[i].used > 0) {
- f_print_string_dynamic_partial(f_standard_output, data->buffer, data->contents.array[i].array[0]);
+ f_print_string_static_partial(f_standard_output, data->buffer, data->contents.array[i].array[0]);
fprintf(f_standard_output, "%c", f_string_eol);
}
else if (include_empty) {
}
if (line_current == line) {
- f_print_string_dynamic_partial(f_standard_output, data->buffer, data->contents.array[i].array[0]);
+ f_print_string_static_partial(f_standard_output, data->buffer, data->contents.array[i].array[0]);
fprintf(f_standard_output, "%c", f_string_eol);
break;
continue;
}
- f_print_string_dynamic_partial(f_standard_output, data->buffer, data->contents.array[i].array[0]);
+ f_print_string_static_partial(f_standard_output, data->buffer, data->contents.array[i].array[0]);
fprintf(f_standard_output, "%c", f_string_eol);
} // for
}
}
else {
- f_print_string_dynamic(f_standard_output, buffer);
+ f_print_string_static(f_standard_output, buffer);
}
}
return f_none;
}
- f_return_status (*print_object)(FILE *, const f_string_static, const f_string_range) = &f_print_string_dynamic_partial;
+ f_return_status (*print_object)(FILE *, const f_string_static, const f_string_range) = &f_print_string_static_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_standard_output, data->buffer, items->array[i].content.array[0]);
+ f_print_string_static_partial(f_standard_output, data->buffer, items->array[i].content.array[0]);
}
else if (include_empty) {
fprintf(f_standard_output, "%c", f_string_eol);
continue;
}
- f_print_string_dynamic_partial(f_standard_output, data->buffer, items->array[i].content.array[0]);
+ f_print_string_static_partial(f_standard_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, const f_string_range) = &f_print_string_dynamic_partial;
+ f_return_status (*print_object)(FILE *, const f_string_static, const f_string_range) = &f_print_string_static_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_standard_output, data->buffer, data->contents.array[i].array[select]);
+ f_print_string_static_partial(f_standard_output, data->buffer, data->contents.array[i].array[select]);
fprintf(f_standard_output, "%c", f_string_eol);
}
}
else {
for (j = 0; j < data->contents.array[i].used; j++) {
- f_print_string_dynamic_partial(f_standard_output, data->buffer, data->contents.array[i].array[j]);
+ f_print_string_static_partial(f_standard_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_standard_output, data->buffer, data->contents.array[i].array[select]);
+ f_print_string_static_partial(f_standard_output, data->buffer, data->contents.array[i].array[select]);
fprintf(f_standard_output, "%c", f_string_eol);
}
}
else {
for (j = 0; j < data->contents.array[i].used; j++) {
- f_print_string_dynamic_partial(f_standard_output, data->buffer, data->contents.array[i].array[j]);
+ f_print_string_static_partial(f_standard_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_standard_output, data->buffer, data->contents.array[i].array[select]);
+ f_print_string_static_partial(f_standard_output, data->buffer, data->contents.array[i].array[select]);
fprintf(f_standard_output, "%c", f_string_eol);
}
}
else {
for (j = 0; j < data->contents.array[i].used; j++) {
- f_print_string_dynamic_partial(f_standard_output, data->buffer, data->contents.array[i].array[j]);
+ f_print_string_static_partial(f_standard_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_standard_output, data->buffer, data->contents.array[i].array[select]);
+ f_print_string_static_partial(f_standard_output, data->buffer, data->contents.array[i].array[select]);
fprintf(f_standard_output, "%c", f_string_eol);
}
}
else {
for (j = 0; j < data->contents.array[i].used; j++) {
- f_print_string_dynamic_partial(f_standard_output, data->buffer, data->contents.array[i].array[j]);
+ f_print_string_static_partial(f_standard_output, data->buffer, data->contents.array[i].array[j]);
if (j + 1 < data->contents.array[i].used) {
printf(" ");
}
}
else {
- f_print_string_dynamic(f_standard_output, buffer);
+ f_print_string_static(f_standard_output, buffer);
}
}