In the back of my mind I keep reading f_string_eol as a string.
It is not.
Instead, it is a character.
To prevent this potential confusion, just make it a string and require the use of f_string_eol[0].
Make the same kind of change to f_string_placeholder as well.
#define f_fss_delimit_slash '\\'
#define f_fss_delimit_single_quote '\''
#define f_fss_delimit_double_quote '"'
- #define f_fss_delimit_placeholder f_string_placeholder
+ #define f_fss_delimit_placeholder f_string_placeholder[0]
#endif //_di_f_fss_delimiters_
/**
* FLL forbids '\r' and '\r\n' as end of line characters, \r will be silently ignored.
*/
#ifndef _di_f_string_has_eol_
- #define f_string_eol '\n'
+ #define f_string_eol "\n"
#endif // _di_f_string_has_eol_
#ifndef _di_f_string_has_placeholder_
- #define f_string_placeholder '\0'
+ #define f_string_placeholder "\0"
#endif // _di_f_string_has_placeholder_
#ifndef _di_string_format_pointers_
}
// now print the trailing newline, this is done _after_ ending the colors to avoid color wrapping issues that can happen when a color code follows a newline
- fprintf(file, "%c", f_string_eol);
+ fprintf(file, "%c", f_string_eol[0]);
return F_none;
}
}
// now print the trailing newline, this is done _after_ ending the colors to avoid color wrapping issues that can happen when a color code follows a newline
- fprintf(file, "%c", f_string_eol);
+ fprintf(file, "%c", f_string_eol[0]);
return F_none;
}
}
if (verbose) {
- fprintf(verbose, "Cloned '%s' to '%s'.%c", source, destination, f_string_eol);
+ fprintf(verbose, "Cloned '%s' to '%s'.%c", source, destination, f_string_eol[0]);
}
f_string_static static_source = { source, source_length, source_length };
}
if (verbose) {
- fprintf(verbose, "Copied '%s' to '%s'.%c", source, destination, f_string_eol);
+ fprintf(verbose, "Copied '%s' to '%s'.%c", source, destination, f_string_eol[0]);
}
f_string_static static_source = { source, source_length, source_length };
}
if (verbose) {
- fprintf(verbose, "Cloned '%s' to '%s'.%c", source.string, destination.string, f_string_eol);
+ fprintf(verbose, "Cloned '%s' to '%s'.%c", source.string, destination.string, f_string_eol[0]);
}
return F_none;
}
if (verbose) {
- fprintf(verbose, "Copied '%s' to '%s'.%c", source.string, destination.string, f_string_eol);
+ fprintf(verbose, "Copied '%s' to '%s'.%c", source.string, destination.string, f_string_eol[0]);
}
return F_none;
}
for (;;) {
- if (buffer.string[range->start] != f_string_placeholder) {
+ if (buffer.string[range->start] != f_fss_delimit_placeholder) {
status = f_utf_is_whitespace(buffer.string + range->start, width_max);
if (status == F_false) {
else if (F_status_is_error(status)) return status;
}
- if (buffer.string[range->start] == f_string_eol) return F_none_eol;
+ if (buffer.string[range->start] == f_string_eol[0]) return F_none_eol;
width = f_macro_utf_byte_width_is(buffer.string[range->start]);
}
for (;;) {
- if (buffer.string[range->start] != f_string_placeholder) {
+ if (buffer.string[range->start] != f_fss_delimit_placeholder) {
status = f_utf_is_graph(buffer.string + range->start, width_max);
if (status == F_true) {
fl_macro_fss_apply_delimit_placeholders((*buffer), delimits);
- if (buffer->string[location->start] == f_string_eol) {
+ if (buffer->string[location->start] == f_string_eol[0]) {
location->start++;
return FL_fss_found_object_content_not;
}
fl_macro_fss_object_delimited_return_on_overflow((*buffer), (*location), (*found), delimits, F_none_eos, F_none_stop)
if ((status = fl_fss_is_graph(*buffer, *location)) == F_true) {
- while (location->start < buffer->used && location->start <= location->stop && buffer->string[location->start] != f_string_eol) {
+ while (location->start < buffer->used && location->start <= location->stop && buffer->string[location->start] != f_string_eol[0]) {
status = fl_fss_increment_buffer(*buffer, location, 1);
if (F_status_is_error(status)) return status;
} // while
return status;
}
- else if (buffer->string[location->start] == f_string_eol) {
+ else if (buffer->string[location->start] == f_string_eol[0]) {
fl_macro_fss_apply_delimit_placeholders((*buffer), delimits);
found->stop = length - 1;
if (F_status_is_error(status)) return status;
while (location->start <= location->stop && location->start < buffer->used) {
- if (buffer->string[location->start] == f_string_eol) {
+ if (buffer->string[location->start] == f_string_eol[0]) {
fl_macro_fss_apply_delimit_placeholders((*buffer), delimits);
location->start++;
return status;
}
else if (buffer->string[location->start] != f_fss_delimit_placeholder) {
- while (location->start < buffer->used && location->start <= location->stop && buffer->string[location->start] != f_string_eol) {
+ while (location->start < buffer->used && location->start <= location->stop && buffer->string[location->start] != f_string_eol[0]) {
status = fl_fss_increment_buffer(*buffer, location, 1);
if (F_status_is_error(status)) return status;
fl_macro_fss_object_delimited_return_on_overflow((*buffer), (*location), (*found), delimits, F_none_eos, F_none_stop)
}
- else if (buffer->string[location->start] == f_string_eol) {
+ else if (buffer->string[location->start] == f_string_eol[0]) {
f_macro_string_lengths_delete_simple(delimits);
location->start++;
}
// seek to the end of the line when no valid object is found
- while (location->start < buffer->used && location->start <= location->stop && buffer->string[location->start] != f_string_eol) {
+ while (location->start < buffer->used && location->start <= location->stop && buffer->string[location->start] != f_string_eol[0]) {
status = fl_fss_increment_buffer(*buffer, location, 1);
if (F_status_is_error(status)) return status;
} // while
fl_macro_fss_content_return_on_overflow((*buffer), (*location), (*found), delimits, F_none_eos, F_none_stop)
// return found nothing if this line only contains whitespace and delimit placeholders
- if (buffer->string[location->start] == f_string_eol) {
+ if (buffer->string[location->start] == f_string_eol[0]) {
location->start++;
return FL_fss_found_content_not;
}
continue;
}
- else if (object.string[location->start] == f_string_eol) {
+ else if (object.string[location->start] == f_string_eol[0]) {
if (quoted) {
buffer->string[buffer_position.stop] = f_fss_delimit_double_quote;
buffer_position.stop++;
continue;
}
- else if (object.string[location->start] == f_string_eol) {
+ else if (object.string[location->start] == f_string_eol[0]) {
buffer->string[buffer_position.stop] = f_fss_delimit_double_quote;
buffer_position.stop++;
}
while (location->start <= location->stop && location->start < content.used) {
- if (content.string[location->start] == f_string_eol) {
- buffer->string[buffer_position.stop] = f_string_eol;
+ if (content.string[location->start] == f_string_eol[0]) {
+ buffer->string[buffer_position.stop] = f_string_eol[0];
buffer->used = buffer_position.stop + 1;
return F_none_eos;
}
if (F_status_is_error(status)) return status;
} // while
- buffer->string[buffer_position.stop] = f_string_eol;
+ buffer->string[buffer_position.stop] = f_string_eol[0];
buffer->used = buffer_position.stop + 1;
if (location->start > location->stop) {
fl_macro_fss_object_return_on_overflow((*buffer), (*location), (*found), delimits, F_data_not_eos, F_data_not_stop)
// return found nothing if this line only contains whitespace and delimit placeholders.
- if (buffer->string[location->start] == f_string_eol) {
+ if (buffer->string[location->start] == f_string_eol[0]) {
location->start++;
return FL_fss_found_object_not;
}
}
// identify where the object ends.
- while (location->start < buffer->used && location->start <= location->stop && buffer->string[location->start] != f_string_eol) {
+ while (location->start < buffer->used && location->start <= location->stop && buffer->string[location->start] != f_string_eol[0]) {
if (buffer->string[location->start] == f_fss_delimit_slash) {
f_string_length first_slash = location->start;
f_string_length slash_count = 1;
if (F_status_is_error(status)) return status;
while (location->start < buffer->used && location->start <= location->stop) {
- if (buffer->string[location->start] == f_string_eol || (status = fl_fss_is_graph(*buffer, *location)) == F_true) {
+ if (buffer->string[location->start] == f_string_eol[0] || (status = fl_fss_is_graph(*buffer, *location)) == F_true) {
break;
}
fl_macro_fss_object_return_on_overflow((*buffer), (*location), (*found), delimits, F_data_not_eos, F_data_not_stop)
- if (buffer->string[location->start] == f_string_eol) {
+ if (buffer->string[location->start] == f_string_eol[0]) {
f_string_length start = location->start;
location->start = first_slash;
if (F_status_is_error(status)) return status;
while (location->start < buffer->used && location->start <= location->stop) {
- if (buffer->string[location->start] == f_string_eol || (status = fl_fss_is_graph(*buffer, *location)) == F_true) {
+ if (buffer->string[location->start] == f_string_eol[0] || (status = fl_fss_is_graph(*buffer, *location)) == F_true) {
break;
}
fl_macro_fss_object_delimited_return_on_overflow((*buffer), (*location), (*found), delimits, F_none_eos, F_none_stop)
- if (buffer->string[location->start] == f_string_eol) {
+ if (buffer->string[location->start] == f_string_eol[0]) {
fl_macro_fss_apply_delimit_placeholders((*buffer), delimits);
found->stop = stop_point;
} // while
// seek to the end of the line when no valid object is found.
- while (location->start < buffer->used && location->start <= location->stop && buffer->string[location->start] != f_string_eol) {
+ while (location->start < buffer->used && location->start <= location->stop && buffer->string[location->start] != f_string_eol[0]) {
status = fl_fss_increment_buffer(*buffer, location, 1);
if (F_status_is_error(status)) return status;
} // while
// identify where the content ends.
while (location->start < buffer->used && location->start <= location->stop) {
- if (buffer->string[location->start] == f_string_eol) {
+ if (buffer->string[location->start] == f_string_eol[0]) {
found_newline = F_true;
last_newline = location->start;
if (F_status_is_error(status)) return status;
while (location->start < buffer->used && location->start <= location->stop) {
- if (buffer->string[location->start] == f_string_eol || (status = fl_fss_is_graph(*buffer, *location)) == F_true) {
+ if (buffer->string[location->start] == f_string_eol[0] || (status = fl_fss_is_graph(*buffer, *location)) == F_true) {
break;
}
fl_macro_fss_content_return_on_overflow((*buffer), (*location), (*found), delimits, F_data_not_eos, F_data_not_stop)
}
- if (buffer->string[location->start] == f_string_eol) {
+ if (buffer->string[location->start] == f_string_eol[0]) {
f_string_length start = location->start;
location->start = first_slash;
if (F_status_is_error(status)) return status;
while (location->start < buffer->used && location->start <= location->stop) {
- if (buffer->string[location->start] == f_string_eol || (status = fl_fss_is_graph(*buffer, *location)) == F_true) {
+ if (buffer->string[location->start] == f_string_eol[0] || (status = fl_fss_is_graph(*buffer, *location)) == F_true) {
break;
}
fl_macro_fss_content_return_on_overflow((*buffer), (*location), (*found), delimits, F_data_not_eos, F_data_not_stop)
}
- if (buffer->string[location->start] == f_string_eol) {
+ if (buffer->string[location->start] == f_string_eol[0]) {
if (found_newline) {
fl_macro_fss_apply_delimit_placeholders((*buffer), delimits);
break;
}
}
- else if (object.string[location->start] == f_string_eol) {
+ else if (object.string[location->start] == f_string_eol[0]) {
if (buffer_position.stop == buffer_position.start) {
return F_data_not_eol;
}
} // while
buffer->string[buffer_position.stop] = f_fss_basic_list_open;
- buffer->string[buffer_position.stop + 1] = f_string_eol;
+ buffer->string[buffer_position.stop + 1] = f_string_eol[0];
buffer->used = buffer_position.stop + 2;
if (location->start > location->stop) {
if (F_status_is_error(status)) return status;
while (location->start < content.used && location->start <= location->stop) {
- if (content.string[location->start] == f_string_eol || (status = fl_fss_is_graph(content, *location)) == F_true) {
+ if (content.string[location->start] == f_string_eol[0] || (status = fl_fss_is_graph(content, *location)) == F_true) {
break;
}
if (F_status_is_error(status)) return status;
} // while
- if (content.string[location->start] == f_string_eol || location->start >= content.used || location->start > location->stop) {
+ if (content.string[location->start] == f_string_eol[0] || location->start >= content.used || location->start > location->stop) {
pre_allocate_size += slash_count + 1;
if (pre_allocate_size > buffer->size) {
if (F_status_is_error(status)) return status;
while (location->start < content.used && location->start <= location->stop) {
- if (content.string[location->start] == f_string_eol || (status = fl_fss_is_graph(content, *location)) == F_true) {
+ if (content.string[location->start] == f_string_eol[0] || (status = fl_fss_is_graph(content, *location)) == F_true) {
break;
}
if (F_status_is_error(status)) return status;
} // while
- if (content.string[location->start] == f_string_eol || location->start >= content.used || location->start > location->stop) {
+ if (content.string[location->start] == f_string_eol[0] || location->start >= content.used || location->start > location->stop) {
pre_allocate_size++;
if (pre_allocate_size > buffer->size) {
else if (content.string[location->start] == f_fss_comment && !has_graph) {
is_comment = F_true;
}
- else if (content.string[location->start] == f_string_eol) {
+ else if (content.string[location->start] == f_string_eol[0]) {
has_graph = F_false;
is_comment = F_false;
}
if (F_status_is_error(status)) return status;
} // while
- buffer->string[buffer_position.stop] = f_string_eol;
+ buffer->string[buffer_position.stop] = f_string_eol[0];
buffer->used = buffer_position.stop + 1;
if (location->start > location->stop) {
fl_macro_fss_apply_delimit_placeholders((*buffer), delimits);
- if (buffer->string[location->start] == f_string_eol) {
+ if (buffer->string[location->start] == f_string_eol[0]) {
location->start++;
return FL_fss_found_object_content_not;
}
fl_macro_fss_object_return_on_overflow((*buffer), (*location), (*found), delimits, F_status_is_warning(F_unterminated_group_eos), F_status_is_warning(F_unterminated_group_stop))
if ((status = fl_fss_is_graph(*buffer, *location)) == F_true) {
- while (location->start < buffer->used && location->start <= location->stop && buffer->string[location->start] != f_string_eol) {
+ while (location->start < buffer->used && location->start <= location->stop && buffer->string[location->start] != f_string_eol[0]) {
status = fl_fss_increment_buffer(*buffer, location, 1);
if (F_status_is_error(status)) return status;
} // while
return status;
}
- else if (buffer->string[location->start] == f_string_eol) {
+ else if (buffer->string[location->start] == f_string_eol[0]) {
fl_macro_fss_apply_delimit_placeholders((*buffer), delimits);
found->stop = length - 1;
if (F_status_is_error(status)) return status;
while (location->start <= location->stop && location->start < buffer->used) {
- if (buffer->string[location->start] == f_string_eol) {
+ if (buffer->string[location->start] == f_string_eol[0]) {
fl_macro_fss_apply_delimit_placeholders((*buffer), delimits);
location->start++;
return status;
}
else if (buffer->string[location->start] != f_fss_delimit_placeholder) {
- while (location->start < buffer->used && location->start <= location->stop && buffer->string[location->start] != f_string_eol) {
+ while (location->start < buffer->used && location->start <= location->stop && buffer->string[location->start] != f_string_eol[0]) {
status = fl_fss_increment_buffer(*buffer, location, 1);
if (F_status_is_error(status)) return status;
} // while
fl_macro_fss_object_delimited_return_on_overflow((*buffer), (*location), (*found), delimits, F_none_eos, F_none_stop)
}
- else if (buffer->string[location->start] == f_string_eol) {
+ else if (buffer->string[location->start] == f_string_eol[0]) {
location->start++;
return FL_fss_found_object_not;
}
}
// seek to the end of the line when no valid object is found
- while (location->start < buffer->used && location->start <= location->stop && buffer->string[location->start] != f_string_eol) {
+ while (location->start < buffer->used && location->start <= location->stop && buffer->string[location->start] != f_string_eol[0]) {
status = fl_fss_increment_buffer(*buffer, location, 1);
if (F_status_is_error(status)) return status;
} // while
found->used++;
- if (buffer->string[location->start] == f_string_eol) {
+ if (buffer->string[location->start] == f_string_eol[0]) {
fl_macro_fss_apply_delimit_placeholders((*buffer), delimits);
return FL_fss_found_content;
found->array[found->used].stop = location->start - 1;
found->used++;
- if (buffer->string[location->start] == f_string_eol) {
+ if (buffer->string[location->start] == f_string_eol[0]) {
fl_macro_fss_apply_delimit_placeholders((*buffer), delimits);
location->start++;
fl_macro_fss_content_delimited_return_on_overflow((*buffer), (*location), (*found), delimits, F_none_eos, F_none_stop)
if ((status = fl_fss_is_graph(*buffer, *location)) == F_true) {
- while (location->start < buffer->used && location->start <= location->stop && buffer->string[location->start] != f_string_eol) {
+ while (location->start < buffer->used && location->start <= location->stop && buffer->string[location->start] != f_string_eol[0]) {
status = fl_fss_increment_buffer(*buffer, location, 1);
if (F_status_is_error(status)) return status;
} // while
return status;
}
- else if (buffer->string[location->start] == f_string_eol) {
+ else if (buffer->string[location->start] == f_string_eol[0]) {
fl_macro_fss_apply_delimit_placeholders((*buffer), delimits);
found->array[found->used].stop = length - 1;
while (location->start <= location->stop && location->start < buffer->used) {
- if (buffer->string[location->start] == f_string_eol) {
+ if (buffer->string[location->start] == f_string_eol[0]) {
fl_macro_fss_apply_delimit_placeholders((*buffer), delimits);
location->start++;
return status;
}
else if (buffer->string[location->start] != f_fss_delimit_placeholder) {
- while (location->start < buffer->used && location->start <= location->stop && buffer->string[location->start] != f_string_eol) {
+ while (location->start < buffer->used && location->start <= location->stop && buffer->string[location->start] != f_string_eol[0]) {
status = fl_fss_increment_buffer(*buffer, location, 1);
if (F_status_is_error(status)) return status;
} // while
fl_macro_fss_content_delimited_return_on_overflow((*buffer), (*location), (*found), delimits, F_none_eos, F_none_stop)
}
- else if (buffer->string[location->start] == f_string_eol) {
+ else if (buffer->string[location->start] == f_string_eol[0]) {
if (found->used == already_used) {
location->start++;
fl_macro_fss_content_delimited_return_on_overflow((*buffer), (*location), (*found), delimits, F_none_eos, F_none_stop)
// seek to the end of the line when no valid content is found
- while (location->start < buffer->used && location->start <= location->stop && buffer->string[location->start] != f_string_eol) {
+ while (location->start < buffer->used && location->start <= location->stop && buffer->string[location->start] != f_string_eol[0]) {
status = fl_fss_increment_buffer(*buffer, location, 1);
if (F_status_is_error(status)) return status;
} // while
continue;
}
- else if (object.string[location->start] == f_string_eol) {
+ else if (object.string[location->start] == f_string_eol[0]) {
if (quoted) {
buffer->string[buffer_position.stop] = f_fss_delimit_double_quote;
buffer_position.stop++;
continue;
}
- else if (object.string[location->start] == f_string_eol) {
+ else if (object.string[location->start] == f_string_eol[0]) {
buffer->string[buffer_position.stop] = f_fss_delimit_double_quote;
buffer_position.stop++;
}
while (location->start <= location->stop && location->start < content.used) {
- if (content.string[location->start] == f_string_eol) {
+ if (content.string[location->start] == f_string_eol[0]) {
buffer->string[buffer_position.stop] = ' ';
buffer->used = buffer_position.stop + 1;
return F_none_eol;
buffer->string[buffer_position.stop + 1] = quoted;
buffer_position.stop += 2;
}
- else if (content.string[location->start] == f_string_eol) {
+ else if (content.string[location->start] == f_string_eol[0]) {
buffer->string[buffer_position.stop] = quoted;
buffer->string[buffer_position.stop + 1] = ' ';
buffer->used = buffer_position.stop + 2;
fl_macro_fss_object_return_on_overflow((*buffer), (*location), (*found), delimits, F_data_not_eos, F_data_not_stop)
// return found nothing if this line only contains whitespace and delimit placeholders.
- if (buffer->string[location->start] == f_string_eol) {
+ if (buffer->string[location->start] == f_string_eol[0]) {
status = fl_fss_increment_buffer(*buffer, location, 1);
if (F_status_is_error(status)) return status;
}
// identify where the object ends.
- while (location->start < buffer->used && location->start <= location->stop && buffer->string[location->start] != f_string_eol) {
+ while (location->start < buffer->used && location->start <= location->stop && buffer->string[location->start] != f_string_eol[0]) {
if (buffer->string[location->start] == f_fss_delimit_slash) {
f_string_length first_slash = location->start;
f_string_length slash_count = 1;
if (F_status_is_error(status)) return status;
while (location->start < buffer->used && location->start <= location->stop) {
- if (buffer->string[location->start] == f_string_eol || (status = fl_fss_is_graph(*buffer, *location)) == F_true) {
+ if (buffer->string[location->start] == f_string_eol[0] || (status = fl_fss_is_graph(*buffer, *location)) == F_true) {
break;
}
fl_macro_fss_object_return_on_overflow((*buffer), (*location), (*found), delimits, F_data_not_eos, F_data_not_stop)
- if (buffer->string[location->start] == f_string_eol) {
+ if (buffer->string[location->start] == f_string_eol[0]) {
f_string_length start = location->start;
location->start = first_slash;
if (F_status_is_error(status)) return status;
while (location->start < buffer->used && location->start <= location->stop) {
- if (buffer->string[location->start] == f_string_eol || (status = fl_fss_is_graph(*buffer, *location)) == F_true) {
+ if (buffer->string[location->start] == f_string_eol[0] || (status = fl_fss_is_graph(*buffer, *location)) == F_true) {
break;
}
fl_macro_fss_object_delimited_return_on_overflow((*buffer), (*location), (*found), delimits, F_none_eos, F_none_stop)
- if (buffer->string[location->start] == f_string_eol) {
+ if (buffer->string[location->start] == f_string_eol[0]) {
fl_macro_fss_apply_delimit_placeholders((*buffer), delimits);
found->stop = stop_point;
} // while
// seek to the end of the line when no valid object is found.
- while (location->start < buffer->used && location->start <= location->stop && buffer->string[location->start] != f_string_eol) {
+ while (location->start < buffer->used && location->start <= location->stop && buffer->string[location->start] != f_string_eol[0]) {
status = fl_fss_increment_buffer(*buffer, location, 1);
if (F_status_is_error(status)) return status;
} // while
positions_start.used = 1;
while (location->start < buffer->used && location->start <= location->stop) {
- if (buffer->string[location->start] == f_string_eol) {
+ if (buffer->string[location->start] == f_string_eol[0]) {
last_newline = location->start;
position_previous = location->start;
location->start++;
// Only the first slash before a close is delimited, all others are maintained.
// for example '}' = valid close, '\}' represents '}', '\\}' represents '\}', '\\\}' represents '\\}', '\\\\}' represents '\\\}', and so on..
// When slash is odd and a (delimited) valid open/close is found, then save delimited positions and continue.
- if (buffer->string[location->start] == f_string_eol) {
+ if (buffer->string[location->start] == f_string_eol[0]) {
last_newline = location->start;
position_previous = location->start;
location->start++;
location->start++;
while (location->start < buffer->used && location->start <= location->stop) {
- if (buffer->string[location->start] == f_string_eol) {
+ if (buffer->string[location->start] == f_string_eol[0]) {
last_newline = location->start;
line_start = location->start + 1;
break;
}
// this is a valid object open/close that has been delimited, save the slash delimit positions.
- if (buffer->string[location->start] == f_string_eol) {
+ if (buffer->string[location->start] == f_string_eol[0]) {
last_newline = location->start;
line_start = location->start + 1;
while (location->start < buffer->used && location->start <= location->stop) {
- if (buffer->string[location->start] == f_string_eol) {
+ if (buffer->string[location->start] == f_string_eol[0]) {
break;
}
fl_macro_fss_nest_return_on_overflow((*buffer), (*location), (*found), delimits, positions_start, objects, F_data_not_eos, F_data_not_stop)
}
- if (buffer->string[location->start] == f_string_eol) {
+ if (buffer->string[location->start] == f_string_eol[0]) {
depth++;
if (depth >= positions_start.size) {
// No valid object open found, seek until EOL.
else {
while (location->start < buffer->used && location->start <= location->stop) {
- if (buffer->string[location->start] == f_string_eol) {
+ if (buffer->string[location->start] == f_string_eol[0]) {
last_newline = location->start;
line_start = location->start + 1;
break;
return status;
}
- if (buffer->string[location->start] == f_string_eol) {
+ if (buffer->string[location->start] == f_string_eol[0]) {
break;
}
fl_macro_fss_nest_return_on_overflow((*buffer), (*location), (*found), delimits, positions_start, objects, F_data_not_eos, F_data_not_stop)
}
- if (buffer->string[location->start] == f_string_eol) {
+ if (buffer->string[location->start] == f_string_eol[0]) {
if (depth + 1 >= found->size) {
f_macro_fss_nest_resize(status, (*found), found->size + f_fss_default_allocation_step);
// No valid object close found, seek until EOL.
else {
while (location->start < buffer->used && location->start <= location->stop) {
- if (buffer->string[location->start] == f_string_eol) {
+ if (buffer->string[location->start] == f_string_eol[0]) {
last_newline = location->start;
line_start = location->start + 1;
break;
}
}
}
- else if (buffer->string[location->start] != f_string_eol) {
+ else if (buffer->string[location->start] != f_string_eol[0]) {
position_previous = location->start;
status = fl_fss_increment_buffer(*buffer, location, 1);
if (F_status_is_error(status)) {
break;
}
}
- else if (object.string[location->start] == f_string_eol) {
+ else if (object.string[location->start] == f_string_eol[0]) {
if (buffer_position.stop == buffer_position.start) {
return F_data_not_eol;
}
} // while
buffer->string[buffer_position.stop] = f_fss_extended_list_open;
- buffer->string[buffer_position.stop + 1] = f_string_eol;
+ buffer->string[buffer_position.stop + 1] = f_string_eol[0];
buffer->used = buffer_position.stop + 2;
if (location->start > location->stop) {
if (F_status_is_error(status)) return status;
while (location->start < content.used && location->start <= location->stop) {
- if (content.string[location->start] == f_string_eol || (status = fl_fss_is_graph(content, *location)) == F_true) {
+ if (content.string[location->start] == f_string_eol[0] || (status = fl_fss_is_graph(content, *location)) == F_true) {
break;
}
if (F_status_is_error(status)) return status;
} // while
- if (content.string[location->start] == f_string_eol || location->start >= content.used || location->start > location->stop) {
+ if (content.string[location->start] == f_string_eol[0] || location->start >= content.used || location->start > location->stop) {
pre_allocate_size += slash_count + 1;
if (pre_allocate_size > buffer->size) {
if (F_status_is_error(status)) return status;
while (location->start < content.used && location->start <= location->stop) {
- if (content.string[location->start] == f_string_eol || (status = fl_fss_is_graph(content, *location)) == F_true) {
+ if (content.string[location->start] == f_string_eol[0] || (status = fl_fss_is_graph(content, *location)) == F_true) {
break;
}
if (F_status_is_error(status)) return status;
} // while
- if (content.string[location->start] == f_string_eol || location->start >= content.used || location->start > location->stop) {
+ if (content.string[location->start] == f_string_eol[0] || location->start >= content.used || location->start > location->stop) {
pre_allocate_size++;
if (pre_allocate_size > buffer->size) {
else if (content.string[location->start] == f_fss_comment && !has_graph) {
is_comment = F_true;
}
- else if (content.string[location->start] == f_string_eol) {
+ else if (content.string[location->start] == f_string_eol[0]) {
has_graph = F_false;
is_comment = F_false;
}
if (F_status_is_error(status)) return status;
} // while
- buffer->string[buffer_position.stop] = f_string_eol;
+ buffer->string[buffer_position.stop] = f_string_eol[0];
buffer->used = buffer_position.stop + 1;
if (location->start > location->stop) {
#ifndef _di_fl_macro_fss_object_seek_till_newline_
#define fl_macro_fss_object_seek_till_newline(buffer, location, delimits, eos_status, stop_status) \
- while (buffer.string[location.start] != f_string_eol) { \
+ while (buffer.string[location.start] != f_string_eol[0]) { \
location.start++; \
if (location.start >= buffer.used) { \
f_status macro_allocation_status = F_none; \
#ifndef _di_fl_macro_fss_object_delimited_seek_till_newline_
#define fl_macro_fss_object_delimited_seek_till_newline(buffer, location, delimits, eos_status, stop_status) \
- while (buffer.string[location.start] != f_string_eol) { \
+ while (buffer.string[location.start] != f_string_eol[0]) { \
location.start++; \
if (location.start >= buffer.used) { \
f_status macro_allocation_status = F_none; \
#ifndef _di_fl_macro_fss_content_seek_till_newline_
#define fl_macro_fss_content_seek_till_newline(buffer, location, found, delimits, eos_status, stop_status) \
- while (buffer.string[location.start] != f_string_eol) { \
+ while (buffer.string[location.start] != f_string_eol[0]) { \
location.start++; \
if (location.start >= buffer.used) { \
f_status macro_allocation_status = F_none; \
#ifndef _di_fl_macro_fss_content_delimited_seek_till_newline_
#define fl_macro_fss_content_delimited_seek_till_newline(buffer, location, found, delimits, eos_status, stop_status) \
- while (buffer.string[location.start] != f_string_eol) { \
+ while (buffer.string[location.start] != f_string_eol[0]) { \
location.start++; \
if (location.start >= buffer.used) { \
f_status macro_allocation_status = F_none; \
if (range->start > range->stop) return F_none_stop;
while (buffer.string[range->start] != seek_to_this) {
- if (buffer.string[range->start] == f_string_eol) return F_none_eol;
+ if (buffer.string[range->start] == f_string_eol[0]) return F_none_eol;
range->start++;
if (width == 0) {
width = 1;
- if (buffer.string[range->start] == f_string_eol) return F_none_eol;
+ if (buffer.string[range->start] == f_string_eol[0]) return F_none_eol;
if (seek_width == width) {
if (buffer.string[range->start] == seek_to_this) return F_none;
while (buffer.string[range->start] == placeholder || (status = f_utf_is_graph(buffer.string + range->start, width_max)) == F_false) {
if (F_status_is_error(status)) return status;
- if (buffer.string[range->start] == f_string_eol) return F_none_eol;
+ if (buffer.string[range->start] == f_string_eol[0]) return F_none_eol;
width = f_macro_utf_byte_width_is(buffer.string[range->start]);
while (buffer.string[range->start] == placeholder || (status = f_utf_is_whitespace(buffer.string + range->start, width_max)) == F_false) {
if (F_status_is_error(status)) return status;
- if (buffer.string[range->start] == f_string_eol) return F_none_eol;
+ if (buffer.string[range->start] == f_string_eol[0]) return F_none_eol;
width = f_macro_utf_byte_width_is(buffer.string[range->start]);
if (range->start > range->stop) return F_none_stop;
while (string[range->start] != seek_to_this) {
- if (string[range->start] == f_string_eol) return F_none_eol;
+ if (string[range->start] == f_string_eol[0]) return F_none_eol;
range->start++;
if (width == 0) {
width = 1;
- if (string[range->start] == f_string_eol) return F_none_eol;
+ if (string[range->start] == f_string_eol[0]) return F_none_eol;
if (seek_width == width) {
if (string[range->start] == seek_to_this) return F_none;
while (string[range->start] == placeholder || (status = f_utf_is_graph(string + range->start, width_max)) == F_false) {
if (F_status_is_error(status)) return status;
- if (string[range->start] == f_string_eol) return F_none_eol;
+ if (string[range->start] == f_string_eol[0]) return F_none_eol;
width = f_macro_utf_byte_width_is(string[range->start]);
return status;
}
- if (string[range->start] == f_string_eol) return F_none_eol;
+ if (string[range->start] == f_string_eol[0]) return F_none_eol;
width = f_macro_utf_byte_width_is(string[range->start]);
if (F_status_is_error(status)) return status;
}
- buffer->string[buffer->used] = f_string_eol;
+ buffer->string[buffer->used] = f_string_eol[0];
buffer->used++;
}
}
if (F_status_is_error(status)) return status;
}
- buffer->string[buffer->used] = f_string_eol;
+ buffer->string[buffer->used] = f_string_eol[0];
buffer->used++;
}
}
} // while
// extended always ends each call with a space, and so the last position should be replaced with an eol.
- buffer->string[buffer->used - 1] = f_string_eol;
+ buffer->string[buffer->used - 1] = f_string_eol[0];
}
return F_none;
if (F_status_is_error(status)) return status;
}
- buffer->string[buffer->used] = f_string_eol;
+ buffer->string[buffer->used] = f_string_eol[0];
buffer->used++;
}
}
#ifndef _di_fll_program_print_help_header_
f_return_status fll_program_print_help_header(const fl_color_context context, const f_string name, const f_string version) {
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
fl_color_print(f_type_output, context.title, context.reset, " %s", name);
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
fl_color_print(f_type_output, context.notable, context.reset, " Version %s", version);
- printf("%c%c", f_string_eol, f_string_eol);
+ printf("%c%c", f_string_eol[0], f_string_eol[0]);
fl_color_print(f_type_output, context.important, context.reset, " Available Options: ");
return F_none;
#ifndef _di_fll_program_print_help_option_
f_return_status fll_program_print_help_option(const fl_color_context context, const f_string option_short, const f_string option_long, const f_string symbol_short, const f_string symbol_long, const f_string description) {
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
printf(" %s", symbol_short);
fl_color_print(f_type_output, context.standout, context.reset, option_short);
#ifndef _di_fll_program_print_help_option_long_
f_return_status fll_program_print_help_option_long(const fl_color_context context, const f_string option_long, const f_string symbol_long, const f_string description) {
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
printf(" %s", symbol_long);
fl_color_print(f_type_output, context.standout, context.reset, option_long);
printf(" %s", description);
#ifndef _di_fll_program_print_help_option_other_
f_return_status fll_program_print_help_option_other(const fl_color_context context, const f_string option_other, const f_string description) {
- printf("%c ", f_string_eol);
+ printf("%c ", f_string_eol[0]);
fl_color_print(f_type_output, context.standout, context.reset, option_other);
printf(" %s", description);
#ifndef _di_fll_program_print_help_usage_
f_return_status fll_program_print_help_usage(const fl_color_context context, const f_string name, const f_string parameters) {
- printf("%c%c", f_string_eol, f_string_eol);
+ printf("%c%c", f_string_eol[0], f_string_eol[0]);
fl_color_print(f_type_output, context.important, context.reset, " Usage:");
- printf("%c ", f_string_eol);
+ printf("%c ", f_string_eol[0]);
fl_color_print(f_type_output, context.standout, context.reset, name);
printf(" ");
fl_color_print(f_type_output, context.notable, context.reset, "]");
}
- printf("%c%c", f_string_eol, f_string_eol);
+ printf("%c%c", f_string_eol[0], f_string_eol[0]);
}
#endif // _di_fll_program_print_help_usage_
#ifndef _di_fll_program_print_version_
f_return_status fll_program_print_version(const f_string version) {
- printf("%s%c", version, f_string_eol);
+ printf("%s%c", version, f_string_eol[0]);
return F_none;
}
fll_program_print_help_option(context, f_console_standard_short_no_color, f_console_standard_long_no_color, f_console_symbol_short_disable, f_console_symbol_long_disable, " Do not output in color.");
fll_program_print_help_option(context, f_console_standard_short_version, f_console_standard_long_version, f_console_symbol_short_disable, f_console_symbol_long_disable, " Print only the version number.");
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
fll_program_print_help_option(context, byte_dump_short_binary, byte_dump_long_binary, f_console_symbol_short_enable, f_console_symbol_long_enable, " Display binary representation.");
fll_program_print_help_option(context, byte_dump_short_decimal, byte_dump_long_decimal, f_console_symbol_short_enable, f_console_symbol_long_enable, " Display decimal representation.");
fll_program_print_help_option(context, byte_dump_short_hexidecimal, byte_dump_long_hexidecimal, f_console_symbol_short_enable, f_console_symbol_long_enable, "Display hexadecimal representation.");
fll_program_print_help_option(context, byte_dump_short_octal, byte_dump_long_octal, f_console_symbol_short_enable, f_console_symbol_long_enable, " Display octal representation.");
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
fll_program_print_help_option(context, byte_dump_short_first, byte_dump_long_first, f_console_symbol_short_enable, f_console_symbol_long_enable, " Start reading at this byte offset.");
fll_program_print_help_option(context, byte_dump_short_last, byte_dump_long_last, f_console_symbol_short_enable, f_console_symbol_long_enable, " Stop reading at this (inclusive) byte offset.");
fll_program_print_help_option(context, byte_dump_short_width, byte_dump_long_width, f_console_symbol_short_enable, f_console_symbol_long_enable, " Set number of columns of Bytes to display.");
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
fll_program_print_help_option(context, byte_dump_short_text, byte_dump_long_text, f_console_symbol_short_enable, f_console_symbol_long_enable, " Include a column of text when displaying the bytes.");
fll_program_print_help_option(context, byte_dump_short_placeholder, byte_dump_long_placeholder, f_console_symbol_short_enable, f_console_symbol_long_enable, "Use a placeholder character instead of a space for placeholders.");
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
fll_program_print_help_option_long(context, byte_dump_long_normal, f_console_symbol_long_enable, " Display UTF-8 symbols for ASCII control codes.");
fll_program_print_help_option_long(context, byte_dump_long_simple, f_console_symbol_long_enable, " Display spaces for ASCII control codes.");
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, byte_dump_long_text);
printf(" option, some UTF-8 characters may be replaced by your instance and cause display alignment issues.");
- printf("%c%c", f_string_eol, f_string_eol);
+ printf("%c%c", f_string_eol[0], f_string_eol[0]);
printf(" Special UTF-8 characters and non-spacing UTF-8 characters may be replaced with a space (or a placeholder when the ");
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, byte_dump_long_placeholder);
printf(" option is used).");
- printf("%c%c", f_string_eol, f_string_eol);
+ printf("%c%c", f_string_eol[0], f_string_eol[0]);
printf(" UTF-8 \"Combining\" characters might have a space appended to allow a proper display but this may cause copy and paste issues.");
- printf("%c%c", f_string_eol, f_string_eol);
+ printf("%c%c", f_string_eol[0], f_string_eol[0]);
printf(" When ");
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, byte_dump_long_last);
printf(" is used, any UTF-8 sequences will still be printed in full should any part is found within the requested range.");
- printf("%c%c", f_string_eol, f_string_eol);
+ printf("%c%c", f_string_eol[0], f_string_eol[0]);
return F_none;
}
file.id = f_type_descriptor_input;
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
fl_color_print(f_type_output, data->context.title, data->context.reset, "Piped Byte Dump: (in ");
if (data->mode == byte_dump_mode_hexidecimal) {
return status;
}
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
fl_color_print(f_type_output, data->context.title, data->context.reset, "Byte Dump of: ");
fl_color_print(f_type_output, data->context.notable, data->context.reset, "%s", arguments.argv[data->remaining.array[counter]]);
fl_color_print(f_type_output, data->context.title, data->context.reset, " (in ");
byte_dump_print_text(data, characters, invalid, &previous, &offset);
}
else {
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
}
}
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
// make sure to flush standard out to help prevent standard error from causing poblems.
fflush(f_type_output);
fl_color_print(f_type_error, data.context.error, data.context.reset, "Invalid UTF-8 codes were detected for file '");
fl_color_print(f_type_error, data.context.notable, data.context.reset, "%s", file_name);
fl_color_print_line(f_type_error, data.context.error, data.context.reset, "'.");
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
}
if (size < 0) {
fl_color_print(f_type_error, data.context.error, data.context.reset, "ERROR: read() failed for '");
fl_color_print(f_type_error, data.context.notable, data.context.reset, "%s", file_name);
fl_color_print_line(f_type_error, data.context.error, data.context.reset, "'.");
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
status = F_status_set_error(F_failure);
}
byte_dump_print_text(data, characters, invalid, previous, offset);
}
else {
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
}
cell->column = 0;
}
fl_color_print(f_type_output, data.context.notable, data.context.reset, " |");
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
}
#endif // _di_byte_dump_file_
fll_program_print_help_option(context, f_console_standard_short_verbose, f_console_standard_long_verbose, f_console_symbol_short_disable, f_console_symbol_long_disable, " Increase verbosity beyond normal output.");
fll_program_print_help_option(context, f_console_standard_short_version, f_console_standard_long_version, f_console_symbol_short_disable, f_console_symbol_long_disable, " Print only the version number.");
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
fll_program_print_help_option(context, fake_short_defines, fake_long_defines, f_console_symbol_short_enable, f_console_symbol_long_enable, " Override custom defines with these defines.");
fll_program_print_help_option(context, fake_short_mode, fake_long_mode, f_console_symbol_short_enable, f_console_symbol_long_enable, " Use this mode when processing the build settings.");
fll_program_print_help_option(context, fake_short_process, fake_long_process, f_console_symbol_short_enable, f_console_symbol_long_enable, " Process name for storing build states.");
fll_program_print_help_option(context, fake_short_settings, fake_long_settings, f_console_symbol_short_enable, f_console_symbol_long_enable, "Use this settings file, from within the source settings directory.");
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
fll_program_print_help_option(context, fake_short_path_build, fake_long_path_build, f_console_symbol_short_enable, f_console_symbol_long_enable, " Specify a custom build directory.");
fll_program_print_help_option(context, fake_short_path_data, fake_long_path_data, f_console_symbol_short_enable, f_console_symbol_long_enable, " Specify a custom path to the data files.");
fll_program_print_help_option(context, fake_short_path_sources, fake_long_path_sources, f_console_symbol_short_enable, f_console_symbol_long_enable, " Specify a custom path to the source files.");
fll_program_print_help_option(context, fake_short_path_work, fake_long_path_work, f_console_symbol_short_enable, f_console_symbol_long_enable, " Use includes/libraries/programs from this directory instead of system.");
- printf("%c%c", f_string_eol, f_string_eol);
+ printf("%c%c", f_string_eol[0], f_string_eol[0]);
fl_color_print(f_type_output, context.important, context.reset, " Special Options: ");
fll_program_print_help_option_long(context, fake_long_static_disabled, f_console_symbol_long_enable, "Forcibly do not build static files.");
fll_program_print_help_option_long(context, fake_long_static_enabled, f_console_symbol_long_enable, " Forcibly do build static files.");
- printf("%c%c", f_string_eol, f_string_eol);
+ printf("%c%c", f_string_eol[0], f_string_eol[0]);
fl_color_print(f_type_output, context.important, context.reset, " Operations: ");
printf(" operation, the ");
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, fake_long_mode);
printf(" parameter specifies a name (limited to alpha-numeric, underscore, and dash) to be used in addition to the global.");
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
printf(" For example, when a ");
fl_color_print(f_type_output, context.notable, context.reset, "%s", fake_long_mode);
printf(" of 'fll_monolithic' is specified, build libaries from both 'build_libraries' and 'build_libraries-fll_monolithic' are used (but not 'build_libraries-fll_level').");
- printf("%c%c", f_string_eol, f_string_eol);
+ printf("%c%c", f_string_eol[0], f_string_eol[0]);
return F_none;
}
}
if (data->verbosity != fake_verbosity_quiet) {
- fprintf(f_type_error, "%c", f_string_eol);
+ fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data->context.error, data->context.reset, "ERROR: the operation '");
fl_color_print(f_type_error, data->context.notable, data->context.reset, "%s", fake_other_operation_make);
fl_color_print_line(f_type_error, data->context.error, data->context.reset, "' is not yet implemented.");
if (F_status_is_error(status)) {
if (data->verbosity != fake_verbosity_quiet) {
- fprintf(f_type_error, "%c", f_string_eol);
+ fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data->context.error, data->context.reset, "ERROR: the operation '");
fl_color_print(f_type_error, data->context.notable, data->context.reset, "%s", operations_name[i]);
fl_color_print_line(f_type_error, data->context.error, data->context.reset, "' failed.");
// ensure a newline is always put at the end of the program execution, unless in quite mode.
if (data->verbosity != fake_verbosity_quiet) {
if (F_status_is_error(status)) {
- fprintf(f_type_error, "%c", f_string_eol);
+ fprintf(f_type_error, "%c", f_string_eol[0]);
}
else {
- fprintf(f_type_output, "%cAll operations complete.%c%c", f_string_eol, f_string_eol, f_string_eol);
+ fprintf(f_type_output, "%cAll operations complete.%c%c", f_string_eol[0], f_string_eol[0], f_string_eol[0]);
}
}
}
else {
if (data->verbosity != fake_verbosity_quiet) {
- fprintf(f_type_error, "%c", f_string_eol);
+ fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print_line(f_type_error, data->context.error, data->context.reset, "ERROR: you failed to specify an operation.");
- fprintf(f_type_error, "%c", f_string_eol);
+ fprintf(f_type_error, "%c", f_string_eol[0]);
}
status = F_status_set_error(F_parameter);
f_string_dynamic path_source = f_string_dynamic_initialize;
if (data.verbosity != fake_verbosity_quiet) {
- printf("%cCopying source settings.%c", f_string_eol, f_string_eol);
+ printf("%cCopying source settings.%c", f_string_eol[0], f_string_eol[0]);
}
f_macro_string_dynamic_new(status, path_source, data.path_data_settings.used);
};
if (data.verbosity != fake_verbosity_quiet) {
- printf("%cCreating base build directories.%c", f_string_eol, f_string_eol);
+ printf("%cCreating base build directories.%c", f_string_eol[0], f_string_eol[0]);
}
for (uint8_t i = 0; i < 14; i++) {
}
if (data.verbosity == fake_verbosity_verbose) {
- printf("Created directory '%s'%c", directorys[i]->string, f_string_eol);
+ printf("Created directory '%s'%c", directorys[i]->string, f_string_eol[0]);
}
} // for
if (names.used + settings.environment.used > names.size) {
if (names.used + settings.environment.used > f_array_length_size) {
if (data.verbosity != fake_verbosity_quiet) {
- fprintf(f_type_error, "%c", f_string_eol);
+ fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data.context.error, data.context.reset, "ERROR: The values for the settings '");
fl_color_print(f_type_error, data.context.notable, data.context.reset, "%s", fake_build_settings_name_environment);
fl_color_print(f_type_error, data.context.error, data.context.reset, "' of settings file '");
if (F_status_is_error(status)) {
if (F_status_set_fine(status) == F_failure) {
if (data.verbosity != fake_verbosity_quiet) {
- fprintf(f_type_error, "%c", f_string_eol);
+ fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data.context.error, data.context.reset, "ERROR: Failed to execute script: ");
fl_color_print(f_type_error, data.context.notable, data.context.reset, "%s", path.string);
fl_color_print_line(f_type_error, data.context.error, data.context.reset, ".");
#ifndef _di_fake_build_operate_
f_return_status fake_build_operate(const fake_data data) {
if (data.verbosity != fake_verbosity_quiet) {
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
fl_color_print_line(f_type_output, data.context.important, data.context.reset, "Building project.");
}
if (status == F_status_set_error(F_incomplete_utf_stop)) {
if (data.verbosity != fake_verbosity_quiet) {
- fprintf(f_type_error, "%c", f_string_eol);
+ fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data.context.error, data.context.reset, "ENCODING ERROR: error occurred on invalid UTF-8 character at stop position (at ");
fl_color_print(f_type_error, data.context.notable, data.context.reset, "%d", range.start);
fl_color_print(f_type_error, data.context.error, data.context.reset, " of settings file '");
}
else if (status == F_status_set_error(F_incomplete_utf_stop)) {
if (data.verbosity != fake_verbosity_quiet) {
- fprintf(f_type_error, "%c", f_string_eol);
+ fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data.context.error, data.context.reset, "ENCODING ERROR: error occurred on invalid UTF-8 character at end of string (at ");
fl_color_print(f_type_error, data.context.notable, data.context.reset, "%d", range.start);
fl_color_print(f_type_error, data.context.error, data.context.reset, " of settings file '");
if (found == F_false) {
if (data.verbosity != fake_verbosity_quiet) {
- fprintf(f_type_error, "%c", f_string_eol);
+ fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data.context.error, data.context.reset, "ERROR: the specified mode '");
fl_color_print(f_type_error, data.context.notable, data.context.reset, "%s", modes->array[i].string);
fl_color_print(f_type_error, data.context.error, data.context.reset, "' is not a valid mode, according to '");
if (status == F_status_set_error(F_string_too_large)) {
if (data.verbosity != fake_verbosity_quiet) {
// @todo update FSS functions to return which setting index the problem happened on.
- fprintf(f_type_error, "%c", f_string_eol);
+ fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data.context.error, data.context.reset, "ERROR: a setting in the build settings file '");
fl_color_print(f_type_error, data.context.notable, data.context.reset, "%s", data.file_data_build_settings.string);
fl_color_print_line(f_type_error, data.context.error, data.context.reset, "' is too long.");
if (settings_single_source[i]->used > 1) {
if (data.verbosity != fake_verbosity_quiet) {
- fprintf(f_type_warning, "%c", f_string_eol);
+ fprintf(f_type_warning, "%c", f_string_eol[0]);
fl_color_print(f_type_warning, data.context.warning, data.context.reset, "WARNING: the setting '");
fl_color_print(f_type_warning, data.context.notable, data.context.reset, "%s", settings_single_name[i]);
fl_color_print(f_type_warning, data.context.warning, data.context.reset, "' in the file '");
*settings_single_bool[i] = F_true;
if (data.verbosity != fake_verbosity_quiet) {
- fprintf(f_type_warning, "%c", f_string_eol);
+ fprintf(f_type_warning, "%c", f_string_eol[0]);
fl_color_print(f_type_warning, data.context.warning, data.context.reset, "WARNING: the setting '");
fl_color_print(f_type_warning, data.context.notable, data.context.reset, "%s", settings_single_name[i]);
fl_color_print(f_type_warning, data.context.warning, data.context.reset, "' in the file '");
f_status status = F_none;
if (data.verbosity != fake_verbosity_quiet) {
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
fl_color_print(f_type_output, data.context.important, data.context.reset, "Deleting all files within build directory '");
fl_color_print(f_type_output, data.context.notable, data.context.reset, "%s", data.path_build.string);
fl_color_print_line(f_type_output, data.context.important, data.context.reset, "'.");
int result = remove(path);
if (result == 0) {
- printf("Removed '%s'.%c", path, f_string_eol);
+ printf("Removed '%s'.%c", path, f_string_eol[0]);
}
return result;
for (uint8_t i = 0; i < 4; i++) {
if (data->parameters[parameters_id[i]].total > 1) {
if (data->verbosity != fake_verbosity_quiet) {
- fprintf(f_type_error, "%c", f_string_eol);
+ fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data->context.error, data->context.reset, "ERROR: the operation '");
fl_color_print(f_type_error, data->context.notable, data->context.reset, "%s", parameters_name[i]);
fl_color_print_line(f_type_error, data->context.error, data->context.reset, "' specified too many times.");
if (F_status_is_error(status)) {
if (status == F_status_set_error(F_string_too_large)) {
if (data->verbosity != fake_verbosity_quiet) {
- fprintf(f_type_error, "%c", f_string_eol);
+ fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data->context.error, data->context.reset, "ERROR: the parameter '");
fl_color_print(f_type_error, data->context.notable, data->context.reset, "%s%s", f_console_symbol_long_enable, parameters_name[i]);
fl_color_print_line(f_type_error, data->context.error, data->context.reset, "' is too long.");
if (length == 0 || status == F_data_not) {
if (data->verbosity != fake_verbosity_quiet) {
- fprintf(f_type_error, "%c", f_string_eol);
+ fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data->context.error, data->context.reset, "ERROR: the parameter '");
fl_color_print(f_type_error, data->context.notable, data->context.reset, "%s%s", f_console_symbol_long_enable, parameters_name[i]);
fl_color_print_line(f_type_error, data->context.error, data->context.reset, "' must not be empty and must not contain only whitespace.");
if (F_status_is_error(status)) {
if (fake_print_error(data->context, data->verbosity, F_status_set_fine(status), "fl_console_parameter_to_string_dynamic_directory", F_false) == F_unknown && data->verbosity != fake_verbosity_quiet) {
- fprintf(f_type_error, "%c", f_string_eol);
+ fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data->context.error, data->context.reset, "ERROR: failed to process parameter '");
fl_color_print(f_type_error, data->context.notable, data->context.reset, "%s%s", f_console_symbol_long_enable, parameters_name[i]);
fl_color_print_line(f_type_error, data->context.error, data->context.reset, "'.");
if (F_status_is_error(status)) {
if (fake_print_error(data->context, data->verbosity, F_status_set_fine(status), "f_macro_string_dynamic_new", F_false) == F_unknown && data->verbosity != fake_verbosity_quiet) {
- fprintf(f_type_error, "%c", f_string_eol);
+ fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data->context.error, data->context.reset, "ERROR: failed to load default for the parameter '");
fl_color_print(f_type_error, data->context.notable, data->context.reset, "%s%s", f_console_symbol_long_enable, parameters_name[i]);
fl_color_print_line(f_type_error, data->context.error, data->context.reset, "'.");
if (F_status_is_error(status)) {
if (status == F_status_set_error(F_string_too_large)) {
if (data->verbosity != fake_verbosity_quiet) {
- fprintf(f_type_error, "%c", f_string_eol);
+ fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data->context.error, data->context.reset, "ERROR: the (combined) parameter '");
fl_color_print(f_type_error, data->context.notable, data->context.reset, "%s%s", f_console_symbol_long_enable, fake_long_defines);
fl_color_print_line(f_type_error, data->context.error, data->context.reset, "' is too long.");
if (F_status_is_error(status)) {
if (fake_print_error(data->context, data->verbosity, F_status_set_fine(status), "fll_program_parameter_additional_rip", F_false) == F_unknown && data->verbosity != fake_verbosity_quiet) {
- fprintf(f_type_error, "%c", f_string_eol);
+ fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data->context.error, data->context.reset, "ERROR: failed to process the parameter '");
fl_color_print(f_type_error, data->context.notable, data->context.reset, "%s%s", f_console_symbol_long_enable, fake_long_mode);
fl_color_print_line(f_type_error, data->context.error, data->context.reset, "'.");
if (F_status_is_error(status)) {
if (fake_print_error(data->context, data->verbosity, F_status_set_fine(status), "f_utf_is_word_dash_plus", F_false) == F_unknown && data->verbosity != fake_verbosity_quiet) {
- fprintf(f_type_error, "%c", f_string_eol);
+ fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data->context.error, data->context.reset, "ERROR: failed to process the parameter '");
fl_color_print(f_type_error, data->context.notable, data->context.reset, "%s%s", f_console_symbol_long_enable, fake_long_mode);
fl_color_print_line(f_type_error, data->context.error, data->context.reset, "'.");
if (status == F_false) {
if (data->verbosity != fake_verbosity_quiet) {
- fprintf(f_type_error, "%c", f_string_eol);
+ fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data->context.error, data->context.reset, "ERROR: the '");
fl_color_print(f_type_error, data->context.notable, data->context.reset, "%s%s", f_console_symbol_long_enable, fake_long_mode);
fl_color_print(f_type_error, data->context.error, data->context.reset, "' parameters value '");
}
}
else if (parameters_required[i]) {
- fprintf(f_type_error, "%c", f_string_eol);
+ fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data.context.error, data.context.reset, "ERROR: No valid path for the (required) directory parameter '");
fl_color_print(f_type_error, data.context.notable, data.context.reset, "%s%s", f_console_symbol_long_enable, parameters_name[i]);
fl_color_print_line(f_type_error, data.context.error, data.context.reset, "' was found.");
if (status == F_parameter) {
if (verbosity != fake_verbosity_quiet) {
- fprintf(f_type_error, "%c", f_string_eol);
+ fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.error, context.reset, "ERROR: Invalid parameter when calling function ");
fl_color_print(f_type_error, context.notable, context.reset, "%s", function);
fl_color_print_line(f_type_error, context.error, context.reset, "().");
if (status == F_memory_allocation || status == F_memory_reallocation) {
if (verbosity != fake_verbosity_quiet) {
- fprintf(f_type_error, "%c", f_string_eol);
+ fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.error, context.reset, "ERROR: Unable to allocate memory in function ");
fl_color_print(f_type_error, context.notable, context.reset, "%s", function);
fl_color_print_line(f_type_error, context.error, context.reset, "().");
}
if (fallback && verbosity != fake_verbosity_quiet) {
- fprintf(f_type_error, "%c", f_string_eol);
+ fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.error, context.reset, "UNKNOWN ERROR: (");
fl_color_print(f_type_error, context.notable, context.reset, "%d", status);
fl_color_print(f_type_error, context.error, context.reset, ") in function ");
if (status == F_file_found_not) {
if (verbosity != fake_verbosity_quiet) {
- fprintf(f_type_error, "%c", f_string_eol);
+ fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.error, context.reset, "ERROR: failed to find %s '", file_or_directory);
fl_color_print(f_type_error, context.notable, context.reset, "%s", name);
fl_color_print_line(f_type_error, context.error, context.reset, "'.");
if (status == F_parameter) {
if (verbosity != fake_verbosity_quiet) {
- fprintf(f_type_error, "%c", f_string_eol);
+ fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.error, context.reset, "INTERNAL ERROR: Invalid parameter when calling ");
fl_color_print(f_type_error, context.notable, context.reset, "%s", function);
fl_color_print(f_type_error, context.error, context.reset, "() for the %s '", file_or_directory);
if (status == F_name) {
if (verbosity != fake_verbosity_quiet) {
- fprintf(f_type_error, "%c", f_string_eol);
+ fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.error, context.reset, "ERROR: Invalid %s name '", file_or_directory);
fl_color_print(f_type_error, context.notable, context.reset, "%s", name);
fl_color_print_line(f_type_error, context.error, context.reset, "'.");
if (status == F_memory_out) {
if (verbosity != fake_verbosity_quiet) {
- fprintf(f_type_error, "%c", f_string_eol);
+ fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.error, context.reset, "CRITICAL ERROR: Unable to allocate memory, while trying to %s %s '", operation, file_or_directory);
fl_color_print(f_type_error, context.notable, context.reset, "%s", name);
fl_color_print_line(f_type_error, context.error, context.reset, "'.");
if (status == F_number_overflow) {
if (verbosity != fake_verbosity_quiet) {
- fprintf(f_type_error, "%c", f_string_eol);
+ fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.error, context.reset, "ERROR: Overflow while trying to %s %s '", operation, file_or_directory);
fl_color_print(f_type_error, context.notable, context.reset, "%s", name);
fl_color_print_line(f_type_error, context.error, context.reset, "'.");
if (status == F_directory) {
if (verbosity != fake_verbosity_quiet) {
- fprintf(f_type_error, "%c", f_string_eol);
+ fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.error, context.reset, "ERROR: Invalid directory while trying to %s %s '", operation, file_or_directory);
fl_color_print(f_type_error, context.notable, context.reset, "%s", name);
fl_color_print_line(f_type_error, context.error, context.reset, "'.");
if (status == F_access_denied) {
if (verbosity != fake_verbosity_quiet) {
- fprintf(f_type_error, "%c", f_string_eol);
+ fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.error, context.reset, "ERROR: Access denied while trying to %s %s '", operation, file_or_directory);
fl_color_print(f_type_error, context.notable, context.reset, "%s", name);
fl_color_print_line(f_type_error, context.error, context.reset, "'.");
if (status == F_loop) {
if (verbosity != fake_verbosity_quiet) {
- fprintf(f_type_error, "%c", f_string_eol);
+ fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.error, context.reset, "ERROR: Loop while trying to %s %s '", operation, file_or_directory);
fl_color_print(f_type_error, context.notable, context.reset, "%s", name);
fl_color_print_line(f_type_error, context.error, context.reset, "'.");
if (status == F_prohibited) {
if (verbosity != fake_verbosity_quiet) {
- fprintf(f_type_error, "%c", f_string_eol);
+ fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.error, context.reset, "ERROR: Prohibited by system while trying to %s %s '", operation, file_or_directory);
fl_color_print(f_type_error, context.notable, context.reset, "%s", name);
fl_color_print_line(f_type_error, context.error, context.reset, "'.");
if (is_file) {
if (status == F_directory_found_not) {
if (verbosity != fake_verbosity_quiet) {
- fprintf(f_type_error, "%c", f_string_eol);
+ fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.error, context.reset, "ERROR: failed to %s %s '", operation, file_or_directory);
fl_color_print(f_type_error, context.notable, context.reset, "%s", name);
fl_color_print_line(f_type_error, context.error, context.reset, "' due to an invalid directory in the path.");
else {
if (status == F_directory_found_not) {
if (verbosity != fake_verbosity_quiet) {
- fprintf(f_type_error, "%c", f_string_eol);
+ fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.error, context.reset, "ERROR: failed to %s %s '", operation, file_or_directory);
fl_color_print(f_type_error, context.notable, context.reset, "%s", name);
fl_color_print_line(f_type_error, context.error, context.reset, "' due to an invalid directory in the path.");
if (status == F_failure) {
if (verbosity != fake_verbosity_quiet) {
- fprintf(f_type_error, "%c", f_string_eol);
+ fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.error, context.reset, "ERROR: failed to %s %s '", operation, file_or_directory);
fl_color_print(f_type_error, context.notable, context.reset, "%s", name);
fl_color_print_line(f_type_error, context.error, context.reset, "'.");
}
if (fake_print_error(context, verbosity, status, function, F_false) == F_unknown && fallback && verbosity != fake_verbosity_quiet) {
- fprintf(f_type_error, "%c", f_string_eol);
+ fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.error, context.reset, "UNKNOWN ERROR: (");
fl_color_print(f_type_error, context.notable, context.reset, "%d", status);
fl_color_print(f_type_error, context.error, context.reset, ") occurred while trying to %s %s '", operation, file_or_directory);
if (status == F_file_found_not) {
if (verbosity != fake_verbosity_quiet) {
- fprintf(f_type_error, "%c", f_string_eol);
+ fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.error, context.reset, "ERROR: Failed to find '");
if (f_file_exists(source) == F_true) {
if (status == F_parameter) {
if (verbosity != fake_verbosity_quiet) {
- fprintf(f_type_error, "%c", f_string_eol);
+ fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.error, context.reset, "INTERNAL ERROR: Invalid parameter when calling ");
fl_color_print(f_type_error, context.notable, context.reset, "%s", function);
fl_color_print(f_type_error, context.error, context.reset, "() to %s '", operation);
if (status == F_name) {
if (verbosity != fake_verbosity_quiet) {
- fprintf(f_type_error, "%c", f_string_eol);
+ fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.error, context.reset, "ERROR: Invalid name for '");
fl_color_print(f_type_error, context.notable, context.reset, "%s", source);
if (status == F_memory_out) {
if (verbosity != fake_verbosity_quiet) {
- fprintf(f_type_error, "%c", f_string_eol);
+ fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.error, context.reset, "CRITICAL ERROR: Unable to allocate memory, while trying to %s '", operation);
fl_color_print(f_type_error, context.notable, context.reset, "%s", source);
if (status == F_number_overflow) {
if (verbosity != fake_verbosity_quiet) {
- fprintf(f_type_error, "%c", f_string_eol);
+ fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.error, context.reset, "ERROR: Overflow while trying to %s '", operation);
fl_color_print(f_type_error, context.notable, context.reset, "%s", source);
if (status == F_directory) {
if (verbosity != fake_verbosity_quiet) {
- fprintf(f_type_error, "%c", f_string_eol);
+ fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.error, context.reset, "ERROR: Invalid directory while trying to %s '", operation);
fl_color_print(f_type_error, context.notable, context.reset, "%s", source);
if (status == F_access_denied) {
if (verbosity != fake_verbosity_quiet) {
- fprintf(f_type_error, "%c", f_string_eol);
+ fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.error, context.reset, "ERROR: Access denied while trying to %s '", operation);
fl_color_print(f_type_error, context.notable, context.reset, "%s", source);
if (status == F_loop) {
if (verbosity != fake_verbosity_quiet) {
- fprintf(f_type_error, "%c", f_string_eol);
+ fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.error, context.reset, "ERROR: Loop while trying to %s '", operation);
fl_color_print(f_type_error, context.notable, context.reset, "%s", source);
if (status == F_prohibited) {
if (verbosity != fake_verbosity_quiet) {
- fprintf(f_type_error, "%c", f_string_eol);
+ fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.error, context.reset, "ERROR: Prohibited by system while trying to %s '", operation);
fl_color_print(f_type_error, context.notable, context.reset, "%s", source);
if (status == F_directory_found_not) {
if (verbosity != fake_verbosity_quiet) {
- fprintf(f_type_error, "%c", f_string_eol);
+ fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.error, context.reset, "ERROR: Failed to %s '", operation);
fl_color_print(f_type_error, context.notable, context.reset, "%s", source);
if (status == F_failure) {
if (verbosity != fake_verbosity_quiet) {
- fprintf(f_type_error, "%c", f_string_eol);
+ fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.error, context.reset, "ERROR: Failed to %s '", operation);
fl_color_print(f_type_error, context.notable, context.reset, "%s", source);
}
if (fake_print_error(context, verbosity, status, function, F_false) == F_unknown && fallback && verbosity != fake_verbosity_quiet) {
- fprintf(f_type_error, "%c", f_string_eol);
+ fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.error, context.reset, "UNKNOWN ERROR: (");
fl_color_print(f_type_error, context.notable, context.reset, "%d", status);
fl_color_print(f_type_error, context.error, context.reset, ") occurred while trying to %s '", operation);
#ifndef _di_fake_print_error_parameter_missing_value_
void fake_print_error_parameter_missing_value(const fl_color_context context, const uint8_t verbosity, const f_string parameter) {
if (verbosity != fake_verbosity_quiet) {
- fprintf(f_type_error, "%c", f_string_eol);
+ fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.error, context.reset, "ERROR: The parameter '");
fl_color_print(f_type_error, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, parameter);
fl_color_print_line(f_type_error, context.error, context.reset, "' was specified, but no value was given.");
#ifndef _di_fake_print_error_parameter_too_many_
void fake_print_error_parameter_too_many(const fl_color_context context, const uint8_t verbosity, const f_string parameter) {
if (verbosity != fake_verbosity_quiet) {
- fprintf(f_type_error, "%c", f_string_eol);
+ fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, context.error, context.reset, "ERROR: the parameter '");
fl_color_print(f_type_error, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, parameter);
fl_color_print_line(f_type_error, context.error, context.reset, "' specified too many times.");
f_status status = F_none;
if (data.verbosity != fake_verbosity_quiet) {
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
fl_color_print_line(f_type_output, data.context.important, data.context.reset, "Generating skeleton structure.");
}
status = f_directory_exists(path.string);
if (status == F_true) {
if (data.verbosity == fake_verbosity_verbose) {
- printf("Directory '%s' already exists.%c", path.string, f_string_eol);
+ printf("Directory '%s' already exists.%c", path.string, f_string_eol[0]);
}
return F_none;
if (status == F_false) {
if (data.verbosity != fake_verbosity_quiet) {
- fprintf(f_type_error, "%c", f_string_eol);
+ fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data.context.error, data.context.reset, "ERROR: The path '");
fl_color_print(f_type_error, data.context.notable, data.context.reset, "%s", path.string);
fl_color_print_line(f_type_error, data.context.error, data.context.reset, "' exists but is not a directory.");
if (F_status_is_error(status)) {
if (F_status_set_fine(status) == F_file_found_not) {
- fprintf(f_type_error, "%c", f_string_eol);
+ fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data.context.error, data.context.reset, "ERROR: The path '");
fl_color_print(f_type_error, data.context.notable, data.context.reset, "%s", path.string);
fl_color_print_line(f_type_error, data.context.error, data.context.reset, "' could not be created, a parent directory does not exist.");
}
if (data.verbosity == fake_verbosity_verbose) {
- printf("Directory '%s' created.%c", path.string, f_string_eol);
+ printf("Directory '%s' created.%c", path.string, f_string_eol[0]);
}
}
else if (F_status_is_error(status)) {
status = f_file_is(path.string, f_file_type_regular);
if (status == F_true) {
if (data.verbosity == fake_verbosity_verbose) {
- printf("File '%s' already exists.%c", path.string, f_string_eol);
+ printf("File '%s' already exists.%c", path.string, f_string_eol[0]);
}
return F_none;
if (status == F_true) {
if (data.verbosity == fake_verbosity_verbose) {
- printf("File '%s' already exists (as a symbolic link).%c", path.string, f_string_eol);
+ printf("File '%s' already exists (as a symbolic link).%c", path.string, f_string_eol[0]);
}
return F_none;
if (status == F_false) {
if (data.verbosity == fake_verbosity_verbose) {
- printf("File '%s' already exists but is not a regular file (or symbolic link).%c", path.string, f_string_eol);
+ printf("File '%s' already exists but is not a regular file (or symbolic link).%c", path.string, f_string_eol[0]);
}
return F_status_set_warning(F_none);
if (F_status_is_error(status)) {
if (F_status_set_fine(status) == F_file_found_not) {
- fprintf(f_type_error, "%c", f_string_eol);
+ fprintf(f_type_error, "%c", f_string_eol[0]);
fl_color_print(f_type_error, data.context.error, data.context.reset, "ERROR: The file '");
fl_color_print(f_type_error, data.context.notable, data.context.reset, "%s", path.string);
fl_color_print_line(f_type_error, data.context.error, data.context.reset, "' could not be created, a parent directory does not exist.");
}
if (data.verbosity == fake_verbosity_verbose) {
- printf("File '%s' created.%c", path.string, f_string_eol);
+ printf("File '%s' created.%c", path.string, f_string_eol[0]);
}
}
else if (F_status_is_error(status)) {
fll_program_print_help_option(context, f_console_standard_short_debug, f_console_standard_long_debug, f_console_symbol_short_disable, f_console_symbol_long_disable, " Enable debugging.");
#endif // _en_firewall_debug_
- printf("%c%c", f_string_eol, f_string_eol);
+ printf("%c%c", f_string_eol[0], f_string_eol[0]);
fl_color_print(f_type_output, context.important, context.reset, " Available Commands: ");
- printf("%c ", f_string_eol);
+ printf("%c ", f_string_eol[0]);
fl_color_print(f_type_output, context.standout, context.reset, firewall_command_start);
printf(" Turn on the firewall");
- printf("%c ", f_string_eol);
+ printf("%c ", f_string_eol[0]);
fl_color_print(f_type_output, context.standout, context.reset, firewall_command_stop);
printf(" Turn off the firewall");
- printf("%c ", f_string_eol);
+ printf("%c ", f_string_eol[0]);
fl_color_print(f_type_output, context.standout, context.reset, firewall_command_restart);
printf(" Turn off and then turn on the firewall");
- printf("%c ", f_string_eol);
+ printf("%c ", f_string_eol[0]);
fl_color_print(f_type_output, context.standout, context.reset, firewall_command_lock);
printf(" Prevent all communication");
- printf("%c ", f_string_eol);
+ printf("%c ", f_string_eol[0]);
fl_color_print(f_type_output, context.standout, context.reset, firewall_command_show);
printf(" Show active firewall settings");
fll_program_print_help_option(context, f_console_standard_short_no_color, f_console_standard_long_no_color, f_console_symbol_short_disable, f_console_symbol_long_disable, "Do not output in color.");
fll_program_print_help_option(context, f_console_standard_short_version, f_console_standard_long_version, f_console_symbol_short_disable, f_console_symbol_long_disable, " Print only the version number.");
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
fll_program_print_help_option(context, fss_basic_list_read_short_at, fss_basic_list_read_long_at, f_console_symbol_short_enable, f_console_symbol_long_enable, " Select object at this numeric index.");
fll_program_print_help_option(context, fss_basic_list_read_short_depth, fss_basic_list_read_long_depth, f_console_symbol_short_enable, f_console_symbol_long_enable, " Select object at this numeric depth.");
fl_color_print(f_type_output, context.important, context.reset, " Notes:");
- printf("%c", f_string_eol, f_string_eol);
+ printf("%c", f_string_eol[0], f_string_eol[0]);
- printf(" This program will print the content associated with the given object and content data based on the FSS-0002 Basic List standard.%c", f_string_eol);
+ printf(" This program will print the content associated with the given object and content data based on the FSS-0002 Basic List standard.%c", f_string_eol[0]);
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
printf(" When using the ");
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, fss_basic_list_read_long_depth);
- printf(" option, an order of operations is enforced on the parameters.%c", f_string_eol);
+ printf(" option, an order of operations is enforced on the parameters.%c", f_string_eol[0]);
- printf(" When this order of operations is in effect, parameters to the right of a depth parameter are influenced by that depth parameter:%c", f_string_eol);
+ printf(" When this order of operations is in effect, parameters to the right of a depth parameter are influenced by that depth parameter:%c", f_string_eol[0]);
printf(" ");
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, fss_basic_list_read_long_at);
- printf(": An object index at the specified depth.%c", f_string_eol);
+ printf(": An object index at the specified depth.%c", f_string_eol[0]);
printf(" ");
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, fss_basic_list_read_long_depth);
- printf(": A new depth within the specified depth, indexed from the root.%c", f_string_eol);
+ printf(": A new depth within the specified depth, indexed from the root.%c", f_string_eol[0]);
printf(" ");
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, fss_basic_list_read_long_name);
- printf(": An object name at the specified depth.%c", f_string_eol);
+ printf(": An object name at the specified depth.%c", f_string_eol[0]);
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
printf(" The parameter ");
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, fss_basic_list_read_long_depth);
- printf(" must be in numeric order, but values in between may be skipped.%c", f_string_eol);
- printf(" ('-d 0 -a 1 -d 2 -a 2' would specify index 1 at depth 0, any index at depth 1, and index 2 at depth 2.)%c", f_string_eol);
- printf(" ('-d 2 -a 1 -d 0 -a 2' would be invalid because depth 2 is before depth 1.)%c", f_string_eol);
+ printf(" must be in numeric order, but values in between may be skipped.%c", f_string_eol[0]);
+ printf(" ('-d 0 -a 1 -d 2 -a 2' would specify index 1 at depth 0, any index at depth 1, and index 2 at depth 2.)%c", f_string_eol[0]);
+ printf(" ('-d 2 -a 1 -d 0 -a 2' would be invalid because depth 2 is before depth 1.)%c", f_string_eol[0]);
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
printf(" The parameter ");
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, fss_basic_list_read_long_select);
- printf(" selects a content index at a given depth.%c", f_string_eol);
- printf(" (This parameter is not synonymous with the depth parameter and does not relate to nested content).%c", f_string_eol);
+ printf(" selects a content index at a given depth.%c", f_string_eol[0]);
+ printf(" (This parameter is not synonymous with the depth parameter and does not relate to nested content).%c", f_string_eol[0]);
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
printf(" Specify both ");
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, fss_basic_list_read_long_object);
printf(" and the ");
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, fss_basic_list_read_long_total);
- printf(" parameters to get the total objects.%c", f_string_eol);
+ printf(" parameters to get the total objects.%c", f_string_eol[0]);
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
printf(" When both ");
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, fss_basic_list_read_long_at);
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, fss_basic_list_read_long_at);
printf(" parameter value will be treated as a position relative to the specified ");
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, fss_basic_list_read_long_name);
- printf(" parameter value.%c", f_string_eol);
+ printf(" parameter value.%c", f_string_eol[0]);
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
printf(" This program may support parameters, such as ");
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, fss_basic_list_read_long_depth);
printf(" or ");
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, fss_basic_list_read_long_select);
- printf(", even if not supported by the standard.%c", f_string_eol);
- printf(" This is done to help ensure consistency for scripting.%c", f_string_eol);
+ printf(", even if not supported by the standard.%c", f_string_eol[0]);
+ printf(" This is done to help ensure consistency for scripting.%c", f_string_eol[0]);
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
printf(" For parameters like ");
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, fss_basic_list_read_long_depth);
- printf(", if the standard doesn't support nested content, then only a depth of 0 would be valid.%c", f_string_eol);
+ printf(", if the standard doesn't support nested content, then only a depth of 0 would be valid.%c", f_string_eol[0]);
printf(" For parameters like ");
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, fss_basic_list_read_long_select);
- printf(", if the standard doesn't support multiple content groups, then only a select of 0 would be valid.%c", f_string_eol);
+ printf(", if the standard doesn't support multiple content groups, then only a select of 0 would be valid.%c", f_string_eol[0]);
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
printf(" The parameter ");
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, fss_basic_list_read_long_trim);
- printf(" will remove leading and trailing whitespaces when selecting objects or when printing objects.%c", f_string_eol);
+ printf(" will remove leading and trailing whitespaces when selecting objects or when printing objects.%c", f_string_eol[0]);
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
return F_none;
}
macro_fss_basic_list_read_depths_delete_simple(depths);
if (data->parameters[fss_basic_list_read_parameter_total].result == f_console_result_found) {
- fprintf(f_type_output, "0%c", f_string_eol);
+ fprintf(f_type_output, "0%c", f_string_eol[0]);
fss_basic_list_read_delete_data(data);
return F_none;
if (data->parameters[fss_basic_list_read_parameter_total].result == f_console_result_found) {
if (depths.array[0].index_at > 0) {
if (depths.array[0].value_at < data->objects.used && names[depths.array[0].value_at]) {
- fprintf(f_type_output, "1%c", f_string_eol);
+ fprintf(f_type_output, "1%c", f_string_eol[0]);
}
else {
- fprintf(f_type_output, "0%c", f_string_eol);
+ fprintf(f_type_output, "0%c", f_string_eol[0]);
}
}
else if (depths.array[0].index_name > 0) {
total++;
} // for
- fprintf(f_type_output, "%llu%c", total, f_string_eol);
+ fprintf(f_type_output, "%llu%c", total, f_string_eol[0]);
}
else {
- fprintf(f_type_output, "%llu%c", data->objects.used, f_string_eol);
+ fprintf(f_type_output, "%llu%c", data->objects.used, f_string_eol[0]);
}
return F_none;
if (names[i]) {
if (at == depths.array[0].value_at) {
print_object(f_type_output, data->buffer, data->objects.array[i]);
- fprintf(f_type_output, "%c", f_string_eol);
+ fprintf(f_type_output, "%c", f_string_eol[0]);
break;
}
if (names[i] == 0) continue;
print_object(f_type_output, data->buffer, data->objects.array[i]);
- fprintf(f_type_output, "%c", f_string_eol);
+ fprintf(f_type_output, "%c", f_string_eol[0]);
} // for
return F_none;
if (depths.array[0].index_at > 0) {
if (depths.array[0].value_at >= data->objects.used) {
if (names[depths.array[0].value_at] && data->parameters[fss_basic_list_read_parameter_total].result == f_console_result_found) {
- fprintf(f_type_output, "0%c", f_string_eol);
+ fprintf(f_type_output, "0%c", f_string_eol[0]);
}
return F_none;
if (at == depths.array[0].value_at) {
if (data->parameters[fss_basic_list_read_parameter_total].result == f_console_result_found) {
if (data->contents.array[i].used == 0) {
- fprintf(f_type_output, "0%c", f_string_eol);
+ fprintf(f_type_output, "0%c", f_string_eol[0]);
}
else {
f_string_length total = 1;
for (f_string_length j = data->contents.array[i].array[0].start; j <= data->contents.array[i].array[0].stop; j++) {
if (data->buffer.string[j] == 0) continue;
- if (data->buffer.string[j] == f_string_eol) {
+ if (data->buffer.string[j] == f_string_eol[0]) {
total++;
}
} // for
- fprintf(f_type_output, "%llu%c", total, f_string_eol);
+ fprintf(f_type_output, "%llu%c", total, f_string_eol[0]);
}
return F_none;
if (data->parameters[fss_basic_list_read_parameter_line].result == f_console_result_additional) {
if (data->contents.array[i].used == 0) {
if (include_empty && line == 0) {
- fprintf(f_type_output, "%c", f_string_eol);
+ fprintf(f_type_output, "%c", f_string_eol[0]);
}
}
else {
if (line == 0) {
for (; i <= data->contents.array[i].array[0].stop; i++) {
if (data->buffer.string[i] == 0) continue;
- if (data->buffer.string[i] == f_string_eol) {
- fprintf(f_type_output, "%c", f_string_eol);
+ if (data->buffer.string[i] == f_string_eol[0]) {
+ fprintf(f_type_output, "%c", f_string_eol[0]);
break;
}
for (; i <= data->contents.array[i].array[0].stop; i++) {
if (data->buffer.string[i] == 0) continue;
- if (data->buffer.string[i] == f_string_eol) {
+ if (data->buffer.string[i] == f_string_eol[0]) {
line_current++;
if (line_current == line) {
for (; i <= data->contents.array[i].array[0].stop; i++) {
if (data->buffer.string[i] == 0) continue;
- if (data->buffer.string[i] == f_string_eol) {
- fprintf(f_type_output, "%c", f_string_eol);
+ if (data->buffer.string[i] == f_string_eol[0]) {
+ fprintf(f_type_output, "%c", f_string_eol[0]);
break;
}
f_print_string_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);
+ fprintf(f_type_output, "%c", f_string_eol[0]);
}
break;
for (f_string_length j = data->contents.array[i].array[0].start; j <= data->contents.array[i].array[0].stop; j++) {
if (data->buffer.string[j] == 0) continue;
- if (data->buffer.string[j] == f_string_eol) {
+ if (data->buffer.string[j] == f_string_eol[0]) {
total++;
}
} // for
} // for
- fprintf(f_type_output, "%llu%c", total, f_string_eol);
+ fprintf(f_type_output, "%llu%c", total, f_string_eol[0]);
return F_none;
}
if (data->contents.array[i].used == 0) {
if (include_empty) {
if (line_current == line) {
- fprintf(f_type_output, "%c", f_string_eol);
+ fprintf(f_type_output, "%c", f_string_eol[0]);
break;
}
if (line_current != line) {
for (; j <= data->contents.array[i].array[0].stop; j++) {
- if (data->buffer.string[j] == f_string_eol) {
+ if (data->buffer.string[j] == f_string_eol[0]) {
line_current++;
if (line_current == line) {
for (; j <= data->contents.array[i].array[0].stop; j++) {
if (data->buffer.string[j] == 0) continue;
- if (data->buffer.string[j] == f_string_eol) {
- fprintf(f_type_output, "%c", f_string_eol);
+ if (data->buffer.string[j] == f_string_eol[0]) {
+ fprintf(f_type_output, "%c", f_string_eol[0]);
break;
}
if (data->contents.array[i].used == 0) {
if (include_empty) {
- fprintf(f_type_output, "%c", f_string_eol);
+ fprintf(f_type_output, "%c", f_string_eol[0]);
}
continue;
fll_program_print_help_option(context, f_console_standard_short_no_color, f_console_standard_long_no_color, f_console_symbol_short_disable, f_console_symbol_long_disable, "Do not output in color.");
fll_program_print_help_option(context, f_console_standard_short_version, f_console_standard_long_version, f_console_symbol_short_disable, f_console_symbol_long_disable, " Print only the version number.");
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
fll_program_print_help_option(context, fss_basic_list_write_short_object, fss_basic_list_write_long_object, f_console_symbol_short_enable, f_console_symbol_long_enable, " Write an object instead of content.");
fll_program_print_help_option(context, fss_basic_list_write_short_file, fss_basic_list_write_long_file, f_console_symbol_short_enable, f_console_symbol_long_enable, " Specify a file to send output to.");
fll_program_print_help_option(context, f_console_standard_short_no_color, f_console_standard_long_no_color, f_console_symbol_short_disable, f_console_symbol_long_disable, "Do not output in color.");
fll_program_print_help_option(context, f_console_standard_short_version, f_console_standard_long_version, f_console_symbol_short_disable, f_console_symbol_long_disable, " Print only the version number.");
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
fll_program_print_help_option(context, fss_basic_read_short_at, fss_basic_read_long_at, f_console_symbol_short_enable, f_console_symbol_long_enable, " Select object at this numeric index.");
fll_program_print_help_option(context, fss_basic_read_short_depth, fss_basic_read_long_depth, f_console_symbol_short_enable, f_console_symbol_long_enable, " Select object at this numeric depth.");
fl_color_print(f_type_output, context.important, context.reset, " Notes:");
- printf("%c", f_string_eol, f_string_eol);
+ printf("%c", f_string_eol[0], f_string_eol[0]);
- printf(" This program will print the content associated with the given object and content data based on the FSS-0000 Basic standard.%c", f_string_eol);
+ printf(" This program will print the content associated with the given object and content data based on the FSS-0000 Basic standard.%c", f_string_eol[0]);
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
printf(" When using the ");
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, fss_basic_read_long_depth);
- printf(" option, an order of operations is enforced on the parameters.%c", f_string_eol);
+ printf(" option, an order of operations is enforced on the parameters.%c", f_string_eol[0]);
- printf(" When this order of operations is in effect, parameters to the right of a depth parameter are influenced by that depth parameter:%c", f_string_eol);
+ printf(" When this order of operations is in effect, parameters to the right of a depth parameter are influenced by that depth parameter:%c", f_string_eol[0]);
printf(" ");
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, fss_basic_read_long_at);
- printf(": An object index at the specified depth.%c", f_string_eol);
+ printf(": An object index at the specified depth.%c", f_string_eol[0]);
printf(" ");
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, fss_basic_read_long_depth);
- printf(": A new depth within the specified depth, indexed from the root.%c", f_string_eol);
+ printf(": A new depth within the specified depth, indexed from the root.%c", f_string_eol[0]);
printf(" ");
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, fss_basic_read_long_name);
- printf(": An object name at the specified depth.%c", f_string_eol);
+ printf(": An object name at the specified depth.%c", f_string_eol[0]);
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
printf(" The parameter ");
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, fss_basic_read_long_depth);
- printf(" must be in numeric order, but values in between may be skipped.%c", f_string_eol);
- printf(" ('-d 0 -a 1 -d 2 -a 2' would specify index 1 at depth 0, any index at depth 1, and index 2 at depth 2.)%c", f_string_eol);
- printf(" ('-d 2 -a 1 -d 0 -a 2' would be invalid because depth 2 is before depth 1.)%c", f_string_eol);
+ printf(" must be in numeric order, but values in between may be skipped.%c", f_string_eol[0]);
+ printf(" ('-d 0 -a 1 -d 2 -a 2' would specify index 1 at depth 0, any index at depth 1, and index 2 at depth 2.)%c", f_string_eol[0]);
+ printf(" ('-d 2 -a 1 -d 0 -a 2' would be invalid because depth 2 is before depth 1.)%c", f_string_eol[0]);
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
printf(" The parameter ");
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, fss_basic_read_long_select);
- printf(" selects a content index at a given depth.%c", f_string_eol);
- printf(" (This parameter is not synonymous with the depth parameter and does not relate to nested content).%c", f_string_eol);
+ printf(" selects a content index at a given depth.%c", f_string_eol[0]);
+ printf(" (This parameter is not synonymous with the depth parameter and does not relate to nested content).%c", f_string_eol[0]);
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
printf(" Specify both ");
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, fss_basic_read_long_object);
printf(" and the ");
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, fss_basic_read_long_total);
- printf(" parameters to get the total objects.%c", f_string_eol);
+ printf(" parameters to get the total objects.%c", f_string_eol[0]);
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
printf(" When both ");
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, fss_basic_read_long_at);
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, fss_basic_read_long_at);
printf(" parameter value will be treated as a position relative to the specified ");
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, fss_basic_read_long_name);
- printf(" parameter value.%c", f_string_eol);
+ printf(" parameter value.%c", f_string_eol[0]);
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
printf(" This program may support parameters, such as ");
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, fss_basic_read_long_depth);
printf(" or ");
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, fss_basic_read_long_select);
- printf(", even if not supported by the standard.%c", f_string_eol);
- printf(" This is done to help ensure consistency for scripting.%c", f_string_eol);
+ printf(", even if not supported by the standard.%c", f_string_eol[0]);
+ printf(" This is done to help ensure consistency for scripting.%c", f_string_eol[0]);
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
printf(" For parameters like ");
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, fss_basic_read_long_depth);
- printf(", if the standard doesn't support nested content, then only a depth of 0 would be valid.%c", f_string_eol);
+ printf(", if the standard doesn't support nested content, then only a depth of 0 would be valid.%c", f_string_eol[0]);
printf(" For parameters like ");
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, fss_basic_read_long_select);
- printf(", if the standard doesn't support multiple content groups, then only a select of 0 would be valid.%c", f_string_eol);
+ printf(", if the standard doesn't support multiple content groups, then only a select of 0 would be valid.%c", f_string_eol[0]);
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
printf(" The parameter ");
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, fss_basic_read_long_trim);
- printf(" will remove leading and trailing whitespaces when selecting objects or when printing objects.%c", f_string_eol);
+ printf(" will remove leading and trailing whitespaces when selecting objects or when printing objects.%c", f_string_eol[0]);
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
return F_none;
}
macro_fss_basic_read_depths_delete_simple(depths);
if (data->parameters[fss_basic_read_parameter_total].result == f_console_result_found) {
- fprintf(f_type_output, "0%c", f_string_eol);
+ fprintf(f_type_output, "0%c", f_string_eol[0]);
fss_basic_read_delete_data(data);
return F_none;
if (data->parameters[fss_basic_read_parameter_total].result == f_console_result_found) {
if (depths.array[0].index_at > 0) {
if (depths.array[0].value_at < data->objects.used && names[depths.array[0].value_at]) {
- fprintf(f_type_output, "1%c", f_string_eol);
+ fprintf(f_type_output, "1%c", f_string_eol[0]);
}
else {
- fprintf(f_type_output, "0%c", f_string_eol);
+ fprintf(f_type_output, "0%c", f_string_eol[0]);
}
}
else if (depths.array[0].index_name > 0) {
total++;
} // for
- fprintf(f_type_output, "%llu%c", total, f_string_eol);
+ fprintf(f_type_output, "%llu%c", total, f_string_eol[0]);
}
else {
- fprintf(f_type_output, "%llu%c", data->objects.used, f_string_eol);
+ fprintf(f_type_output, "%llu%c", data->objects.used, f_string_eol[0]);
}
return F_none;
if (names[i]) {
if (at == depths.array[0].value_at) {
print_object(f_type_output, data->buffer, data->objects.array[i]);
- fprintf(f_type_output, "%c", f_string_eol);
+ fprintf(f_type_output, "%c", f_string_eol[0]);
break;
}
if (names[i] == 0) continue;
print_object(f_type_output, data->buffer, data->objects.array[i]);
- fprintf(f_type_output, "%c", f_string_eol);
+ fprintf(f_type_output, "%c", f_string_eol[0]);
} // for
return F_none;
if (depths.array[0].index_at > 0) {
if (depths.array[0].value_at >= data->objects.used) {
if (names[depths.array[0].value_at] && data->parameters[fss_basic_read_parameter_total].result == f_console_result_found) {
- fprintf(f_type_output, "0%c", f_string_eol);
+ fprintf(f_type_output, "0%c", f_string_eol[0]);
}
return F_none;
if (at == depths.array[0].value_at) {
if (data->parameters[fss_basic_read_parameter_total].result == f_console_result_found) {
if (data->contents.array[i].used == 0) {
- fprintf(f_type_output, "0%c", f_string_eol);
+ fprintf(f_type_output, "0%c", f_string_eol[0]);
}
else {
- fprintf(f_type_output, "1%c", f_string_eol);
+ fprintf(f_type_output, "1%c", f_string_eol[0]);
}
}
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]);
- fprintf(f_type_output, "%c", f_string_eol);
+ fprintf(f_type_output, "%c", f_string_eol[0]);
}
else if (include_empty) {
- fprintf(f_type_output, "%c", f_string_eol);
+ fprintf(f_type_output, "%c", f_string_eol[0]);
}
}
else {
if (data->contents.array[i].used > 0) {
f_print_string_dynamic_partial(f_type_output, data->buffer, data->contents.array[i].array[0]);
- fprintf(f_type_output, "%c", f_string_eol);
+ fprintf(f_type_output, "%c", f_string_eol[0]);
}
else if (include_empty) {
- fprintf(f_type_output, "%c", f_string_eol);
+ fprintf(f_type_output, "%c", f_string_eol[0]);
}
}
total++;
} // for
- fprintf(f_type_output, "%llu%c", total, f_string_eol);
+ fprintf(f_type_output, "%llu%c", total, f_string_eol[0]);
return F_none;
}
if (data->contents.array[i].used == 0) {
if (include_empty) {
if (line_current == line) {
- fprintf(f_type_output, "%c", f_string_eol);
+ fprintf(f_type_output, "%c", f_string_eol[0]);
break;
}
if (line_current == line) {
f_print_string_dynamic_partial(f_type_output, data->buffer, data->contents.array[i].array[0]);
- fprintf(f_type_output, "%c", f_string_eol);
+ fprintf(f_type_output, "%c", f_string_eol[0]);
break;
}
if (data->contents.array[i].used == 0) {
if (include_empty) {
- fprintf(f_type_output, "%c", f_string_eol);
+ 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]);
- fprintf(f_type_output, "%c", f_string_eol);
+ fprintf(f_type_output, "%c", f_string_eol[0]);
} // for
return F_none;
fll_program_print_help_option(context, f_console_standard_short_no_color, f_console_standard_long_no_color, f_console_symbol_short_disable, f_console_symbol_long_disable, "Do not output in color.");
fll_program_print_help_option(context, f_console_standard_short_version, f_console_standard_long_version, f_console_symbol_short_disable, f_console_symbol_long_disable, " Print only the version number.");
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
fll_program_print_help_option(context, fss_basic_write_short_object, fss_basic_write_long_object, f_console_symbol_short_enable, f_console_symbol_long_enable, " Write an object instead of content.");
fll_program_print_help_option(context, fss_basic_write_short_file, fss_basic_write_long_file, f_console_symbol_short_enable, f_console_symbol_long_enable, " Specify a file to send output to.");
fll_program_print_help_option(context, f_console_standard_short_no_color, f_console_standard_long_no_color, f_console_symbol_short_disable, f_console_symbol_long_disable, "Do not output in color.");
fll_program_print_help_option(context, f_console_standard_short_version, f_console_standard_long_version, f_console_symbol_short_disable, f_console_symbol_long_disable, " Print only the version number.");
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
fll_program_print_help_option(context, fss_extended_list_read_short_at, fss_extended_list_read_long_at, f_console_symbol_short_enable, f_console_symbol_long_enable, " Select object at this numeric index.");
fll_program_print_help_option(context, fss_extended_list_read_short_depth, fss_extended_list_read_long_depth, f_console_symbol_short_enable, f_console_symbol_long_enable, " Select object at this numeric depth.");
fl_color_print(f_type_output, context.important, context.reset, " Notes:");
- printf("%c", f_string_eol, f_string_eol);
+ printf("%c", f_string_eol[0], f_string_eol[0]);
- printf(" This program will print the content associated with the given object and content data based on the FSS-0002 Basic List standard.%c", f_string_eol);
+ printf(" This program will print the content associated with the given object and content data based on the FSS-0002 Basic List standard.%c", f_string_eol[0]);
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
printf(" When using the ");
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, fss_extended_list_read_long_depth);
- printf(" option, an order of operations is enforced on the parameters.%c", f_string_eol);
+ printf(" option, an order of operations is enforced on the parameters.%c", f_string_eol[0]);
- printf(" When this order of operations is in effect, parameters to the right of a depth parameter are influenced by that depth parameter:%c", f_string_eol);
+ printf(" When this order of operations is in effect, parameters to the right of a depth parameter are influenced by that depth parameter:%c", f_string_eol[0]);
printf(" ");
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, fss_extended_list_read_long_at);
- printf(": An object index at the specified depth.%c", f_string_eol);
+ printf(": An object index at the specified depth.%c", f_string_eol[0]);
printf(" ");
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, fss_extended_list_read_long_depth);
- printf(": A new depth within the specified depth, indexed from the root.%c", f_string_eol);
+ printf(": A new depth within the specified depth, indexed from the root.%c", f_string_eol[0]);
printf(" ");
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, fss_extended_list_read_long_name);
- printf(": An object name at the specified depth.%c", f_string_eol);
+ printf(": An object name at the specified depth.%c", f_string_eol[0]);
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
printf(" The parameter ");
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, fss_extended_list_read_long_depth);
- printf(" must be in numeric order, but values in between may be skipped.%c", f_string_eol);
- printf(" ('-d 0 -a 1 -d 2 -a 2' would specify index 1 at depth 0, any index at depth 1, and index 2 at depth 2.)%c", f_string_eol);
- printf(" ('-d 2 -a 1 -d 0 -a 2' would be invalid because depth 2 is before depth 1.)%c", f_string_eol);
+ printf(" must be in numeric order, but values in between may be skipped.%c", f_string_eol[0]);
+ printf(" ('-d 0 -a 1 -d 2 -a 2' would specify index 1 at depth 0, any index at depth 1, and index 2 at depth 2.)%c", f_string_eol[0]);
+ printf(" ('-d 2 -a 1 -d 0 -a 2' would be invalid because depth 2 is before depth 1.)%c", f_string_eol[0]);
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
printf(" The parameter ");
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, fss_extended_list_read_long_select);
- printf(" selects a content index at a given depth.%c", f_string_eol);
- printf(" (This parameter is not synonymous with the depth parameter and does not relate to nested content).%c", f_string_eol);
+ printf(" selects a content index at a given depth.%c", f_string_eol[0]);
+ printf(" (This parameter is not synonymous with the depth parameter and does not relate to nested content).%c", f_string_eol[0]);
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
printf(" Specify both ");
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, fss_extended_list_read_long_object);
printf(" and the ");
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, fss_extended_list_read_long_total);
- printf(" parameters to get the total objects.%c", f_string_eol);
+ printf(" parameters to get the total objects.%c", f_string_eol[0]);
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
printf(" When both ");
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, fss_extended_list_read_long_at);
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, fss_extended_list_read_long_at);
printf(" parameter value will be treated as a position relative to the specified ");
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, fss_extended_list_read_long_name);
- printf(" parameter value.%c", f_string_eol);
+ printf(" parameter value.%c", f_string_eol[0]);
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
printf(" This program may support parameters, such as ");
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, fss_extended_list_read_long_depth);
printf(" or ");
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, fss_extended_list_read_long_select);
- printf(", even if not supported by the standard.%c", f_string_eol);
- printf(" This is done to help ensure consistency for scripting.%c", f_string_eol);
+ printf(", even if not supported by the standard.%c", f_string_eol[0]);
+ printf(" This is done to help ensure consistency for scripting.%c", f_string_eol[0]);
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
printf(" For parameters like ");
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, fss_extended_list_read_long_depth);
- printf(", if the standard doesn't support nested content, then only a depth of 0 would be valid.%c", f_string_eol);
+ printf(", if the standard doesn't support nested content, then only a depth of 0 would be valid.%c", f_string_eol[0]);
printf(" For parameters like ");
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, fss_extended_list_read_long_select);
- printf(", if the standard doesn't support multiple content groups, then only a select of 0 would be valid.%c", f_string_eol);
+ printf(", if the standard doesn't support multiple content groups, then only a select of 0 would be valid.%c", f_string_eol[0]);
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
printf(" The parameter ");
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, fss_extended_list_read_long_trim);
- printf(" will remove leading and trailing whitespaces when selecting objects or when printing objects.%c", f_string_eol);
+ printf(" will remove leading and trailing whitespaces when selecting objects or when printing objects.%c", f_string_eol[0]);
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
return F_none;
}
// Requested depths cannot be greater than contents depth.
if (depths.used > data->nest.used) {
if (data->parameters[fss_extended_list_read_parameter_total].result == f_console_result_found) {
- fprintf(f_type_output, "0%c", f_string_eol);
+ fprintf(f_type_output, "0%c", f_string_eol[0]);
return F_none;
}
if (depth_setting.index_at > 0) {
if (depth_setting.value_at < items->used && names[depth_setting.value_at]) {
- fprintf(f_type_output, "1%c", f_string_eol);
+ fprintf(f_type_output, "1%c", f_string_eol[0]);
}
else {
- fprintf(f_type_output, "0%c", f_string_eol);
+ fprintf(f_type_output, "0%c", f_string_eol[0]);
}
return F_none;
total++;
} // for
- fprintf(f_type_output, "%llu%c", total, f_string_eol);
+ fprintf(f_type_output, "%llu%c", total, f_string_eol[0]);
return F_none;
}
- fprintf(f_type_output, "%llu%c", items->used, f_string_eol);
+ fprintf(f_type_output, "%llu%c", items->used, f_string_eol[0]);
return F_none;
}
if (depth_setting.index_at > 0) {
if (depth_setting.value_at < items->used && names[depth_setting.value_at]) {
print_object(f_type_output, data->buffer, items->array[depth_setting.value_at].object);
- fprintf(f_type_output, "%c", f_string_eol);
+ fprintf(f_type_output, "%c", f_string_eol[0]);
}
return F_none;
for (f_array_length i = 0; i < items->used; i++) {
if (names[i]) {
print_object(f_type_output, data->buffer, items->array[i].object);
- fprintf(f_type_output, "%c", f_string_eol);
+ fprintf(f_type_output, "%c", f_string_eol[0]);
}
} // for
if (depth_setting.index_at > 0) {
if (depth_setting.value_at >= items->used) {
if (names[depth_setting.value_at] && data->parameters[fss_extended_list_read_parameter_total].result == f_console_result_found) {
- fprintf(f_type_output, "0%c", f_string_eol);
+ fprintf(f_type_output, "0%c", f_string_eol[0]);
}
return F_none;
if (at == depth_setting.value_at) {
if (data->parameters[fss_extended_list_read_parameter_total].result == f_console_result_found) {
if (items->array[i].content.used == 0) {
- fprintf(f_type_output, "0%c", f_string_eol);
+ fprintf(f_type_output, "0%c", f_string_eol[0]);
}
else {
f_string_length total = 1;
for (f_string_length j = items->array[i].content.array[0].start; j <= items->array[i].content.array[0].stop; j++) {
if (data->buffer.string[j] == 0) continue;
- if (data->buffer.string[j] == f_string_eol) {
+ if (data->buffer.string[j] == f_string_eol[0]) {
total++;
}
} // for
- fprintf(f_type_output, "%llu%c", total, f_string_eol);
+ fprintf(f_type_output, "%llu%c", total, f_string_eol[0]);
}
return F_none;
if (data->parameters[fss_extended_list_read_parameter_line].result == f_console_result_additional) {
if (items->array[i].content.used == 0) {
if (include_empty && line == 0) {
- fprintf(f_type_output, "%c", f_string_eol);
+ fprintf(f_type_output, "%c", f_string_eol[0]);
}
}
else {
if (line == 0) {
for (; i <= items->array[i].content.array[0].stop; i++) {
if (data->buffer.string[i] == 0) continue;
- if (data->buffer.string[i] == f_string_eol) {
- fprintf(f_type_output, "%c", f_string_eol);
+ if (data->buffer.string[i] == f_string_eol[0]) {
+ fprintf(f_type_output, "%c", f_string_eol[0]);
break;
}
for (; i <= items->array[i].content.array[0].stop; i++) {
if (data->buffer.string[i] == 0) continue;
- if (data->buffer.string[i] == f_string_eol) {
+ if (data->buffer.string[i] == f_string_eol[0]) {
line_current++;
if (line_current == line) {
for (; i <= items->array[i].content.array[0].stop; i++) {
if (data->buffer.string[i] == 0) continue;
- if (data->buffer.string[i] == f_string_eol) {
- fprintf(f_type_output, "%c", f_string_eol);
+ if (data->buffer.string[i] == f_string_eol[0]) {
+ fprintf(f_type_output, "%c", f_string_eol[0]);
break;
}
f_print_string_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);
+ fprintf(f_type_output, "%c", f_string_eol[0]);
}
break;
for (f_string_length j = items->array[i].content.array[0].start; j <= items->array[i].content.array[0].stop; j++) {
if (data->buffer.string[j] == 0) continue;
- if (data->buffer.string[j] == f_string_eol) {
+ if (data->buffer.string[j] == f_string_eol[0]) {
total++;
}
} // for
} // for
- fprintf(f_type_output, "%llu%c", total, f_string_eol);
+ fprintf(f_type_output, "%llu%c", total, f_string_eol[0]);
return F_none;
}
if (items->array[i].content.used == 0) {
if (include_empty) {
if (line_current == line) {
- fprintf(f_type_output, "%c", f_string_eol);
+ fprintf(f_type_output, "%c", f_string_eol[0]);
break;
}
if (line_current != line) {
for (; j <= items->array[i].content.array[0].stop; j++) {
- if (data->buffer.string[j] == f_string_eol) {
+ if (data->buffer.string[j] == f_string_eol[0]) {
line_current++;
if (line_current == line) {
for (; j <= items->array[i].content.array[0].stop; j++) {
if (data->buffer.string[j] == 0) continue;
- if (data->buffer.string[j] == f_string_eol) {
- fprintf(f_type_output, "%c", f_string_eol);
+ if (data->buffer.string[j] == f_string_eol[0]) {
+ fprintf(f_type_output, "%c", f_string_eol[0]);
break;
}
if (items->array[i].content.used == 0) {
if (include_empty) {
- fprintf(f_type_output, "%c", f_string_eol);
+ fprintf(f_type_output, "%c", f_string_eol[0]);
}
continue;
fll_program_print_help_option(context, f_console_standard_short_no_color, f_console_standard_long_no_color, f_console_symbol_short_disable, f_console_symbol_long_disable, "Do not output in color.");
fll_program_print_help_option(context, f_console_standard_short_version, f_console_standard_long_version, f_console_symbol_short_disable, f_console_symbol_long_disable, " Print only the version number.");
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
fll_program_print_help_option(context, fss_extended_read_short_at, fss_extended_read_long_at, f_console_symbol_short_enable, f_console_symbol_long_enable, " Select object at this numeric index.");
fll_program_print_help_option(context, fss_extended_read_short_depth, fss_extended_read_long_depth, f_console_symbol_short_enable, f_console_symbol_long_enable, " Select object at this numeric depth.");
fl_color_print(f_type_output, context.important, context.reset, " Notes:");
- printf("%c", f_string_eol, f_string_eol);
+ printf("%c", f_string_eol[0], f_string_eol[0]);
- printf(" This program will print the content associated with the given object and content data based on the FSS-0001 Extended standard.%c", f_string_eol);
+ printf(" This program will print the content associated with the given object and content data based on the FSS-0001 Extended standard.%c", f_string_eol[0]);
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
printf(" When using the ");
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, fss_extended_read_long_depth);
- printf(" option, an order of operations is enforced on the parameters.%c", f_string_eol);
+ printf(" option, an order of operations is enforced on the parameters.%c", f_string_eol[0]);
- printf(" When this order of operations is in effect, parameters to the right of a depth parameter are influenced by that depth parameter:%c", f_string_eol);
+ printf(" When this order of operations is in effect, parameters to the right of a depth parameter are influenced by that depth parameter:%c", f_string_eol[0]);
printf(" ");
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, fss_extended_read_long_at);
- printf(": An object index at the specified depth.%c", f_string_eol);
+ printf(": An object index at the specified depth.%c", f_string_eol[0]);
printf(" ");
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, fss_extended_read_long_depth);
- printf(": A new depth within the specified depth, indexed from the root.%c", f_string_eol);
+ printf(": A new depth within the specified depth, indexed from the root.%c", f_string_eol[0]);
printf(" ");
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, fss_extended_read_long_name);
- printf(": An object name at the specified depth.%c", f_string_eol);
+ printf(": An object name at the specified depth.%c", f_string_eol[0]);
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
printf(" The parameter ");
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, fss_extended_read_long_depth);
- printf(" must be in numeric order, but values in between may be skipped.%c", f_string_eol);
- printf(" ('-d 0 -a 1 -d 2 -a 2' would specify index 1 at depth 0, any index at depth 1, and index 2 at depth 2.)%c", f_string_eol);
- printf(" ('-d 2 -a 1 -d 0 -a 2' would be invalid because depth 2 is before depth 1.)%c", f_string_eol);
+ printf(" must be in numeric order, but values in between may be skipped.%c", f_string_eol[0]);
+ printf(" ('-d 0 -a 1 -d 2 -a 2' would specify index 1 at depth 0, any index at depth 1, and index 2 at depth 2.)%c", f_string_eol[0]);
+ printf(" ('-d 2 -a 1 -d 0 -a 2' would be invalid because depth 2 is before depth 1.)%c", f_string_eol[0]);
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
printf(" The parameter ");
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, fss_extended_read_long_select);
- printf(" selects a content index at a given depth.%c", f_string_eol);
- printf(" (This parameter is not synonymous with the depth parameter and does not relate to nested content).%c", f_string_eol);
+ printf(" selects a content index at a given depth.%c", f_string_eol[0]);
+ printf(" (This parameter is not synonymous with the depth parameter and does not relate to nested content).%c", f_string_eol[0]);
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
printf(" Specify both ");
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, fss_extended_read_long_object);
printf(" and the ");
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, fss_extended_read_long_total);
- printf(" parameters to get the total objects.%c", f_string_eol);
+ printf(" parameters to get the total objects.%c", f_string_eol[0]);
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
printf(" When both ");
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, fss_extended_read_long_at);
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, fss_extended_read_long_at);
printf(" parameter value will be treated as a position relative to the specified ");
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, fss_extended_read_long_name);
- printf(" parameter value.%c", f_string_eol);
+ printf(" parameter value.%c", f_string_eol[0]);
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
printf(" This program may support parameters, such as ");
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, fss_extended_read_long_depth);
printf(" or ");
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, fss_extended_read_long_select);
- printf(", even if not supported by the standard.%c", f_string_eol);
- printf(" This is done to help ensure consistency for scripting.%c", f_string_eol);
+ printf(", even if not supported by the standard.%c", f_string_eol[0]);
+ printf(" This is done to help ensure consistency for scripting.%c", f_string_eol[0]);
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
printf(" For parameters like ");
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, fss_extended_read_long_depth);
- printf(", if the standard doesn't support nested content, then only a depth of 0 would be valid.%c", f_string_eol);
+ printf(", if the standard doesn't support nested content, then only a depth of 0 would be valid.%c", f_string_eol[0]);
printf(" For parameters like ");
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, fss_extended_read_long_select);
- printf(", if the standard doesn't support multiple content groups, then only a select of 0 would be valid.%c", f_string_eol);
+ printf(", if the standard doesn't support multiple content groups, then only a select of 0 would be valid.%c", f_string_eol[0]);
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
printf(" The parameter ");
fl_color_print(f_type_output, context.notable, context.reset, "%s%s", f_console_symbol_long_enable, fss_extended_read_long_trim);
- printf(" will remove leading and trailing whitespaces when selecting objects or when printing objects.%c", f_string_eol);
+ printf(" will remove leading and trailing whitespaces when selecting objects or when printing objects.%c", f_string_eol[0]);
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
return F_none;
}
macro_fss_extended_read_depths_delete_simple(depths);
if (data->parameters[fss_extended_read_parameter_total].result == f_console_result_found) {
- fprintf(f_type_output, "0%c", f_string_eol);
+ fprintf(f_type_output, "0%c", f_string_eol[0]);
fss_extended_read_delete_data(data);
return F_none;
if (data->parameters[fss_extended_read_parameter_total].result == f_console_result_found) {
if (depths.array[0].index_at > 0) {
if (depths.array[0].value_at < data->objects.used && names[depths.array[0].value_at]) {
- fprintf(f_type_output, "1%c", f_string_eol);
+ fprintf(f_type_output, "1%c", f_string_eol[0]);
}
else {
- fprintf(f_type_output, "0%c", f_string_eol);
+ fprintf(f_type_output, "0%c", f_string_eol[0]);
}
}
else if (depths.array[0].index_name > 0) {
total++;
} // for
- fprintf(f_type_output, "%llu%c", total, f_string_eol);
+ fprintf(f_type_output, "%llu%c", total, f_string_eol[0]);
}
else {
- fprintf(f_type_output, "%llu%c", data->objects.used, f_string_eol);
+ fprintf(f_type_output, "%llu%c", data->objects.used, f_string_eol[0]);
}
return F_none;
if (names[i]) {
if (at == depths.array[0].value_at) {
print_object(f_type_output, data->buffer, data->objects.array[i]);
- fprintf(f_type_output, "%c", f_string_eol);
+ fprintf(f_type_output, "%c", f_string_eol[0]);
break;
}
if (names[i] == 0) continue;
print_object(f_type_output, data->buffer, data->objects.array[i]);
- fprintf(f_type_output, "%c", f_string_eol);
+ fprintf(f_type_output, "%c", f_string_eol[0]);
} // for
return F_none;
if (depths.array[0].index_at > 0) {
if (depths.array[0].value_at >= data->objects.used) {
if (names[depths.array[0].value_at] && data->parameters[fss_extended_read_parameter_total].result == f_console_result_found) {
- fprintf(f_type_output, "0%c", f_string_eol);
+ fprintf(f_type_output, "0%c", f_string_eol[0]);
}
return F_none;
if (at == depths.array[0].value_at) {
if (data->parameters[fss_extended_read_parameter_total].result == f_console_result_found) {
if (data->contents.array[i].used == 0) {
- fprintf(f_type_output, "0%c", f_string_eol);
+ fprintf(f_type_output, "0%c", f_string_eol[0]);
}
else {
- fprintf(f_type_output, "1%c", f_string_eol);
+ fprintf(f_type_output, "1%c", f_string_eol[0]);
}
return F_none;
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]);
- fprintf(f_type_output, "%c", f_string_eol);
+ fprintf(f_type_output, "%c", f_string_eol[0]);
}
}
else {
}
} // for
- fprintf(f_type_output, "%c", f_string_eol);
+ fprintf(f_type_output, "%c", f_string_eol[0]);
}
}
else if (include_empty) {
if (data->parameters[fss_extended_read_parameter_select].result == f_console_result_additional) {
if (select == 0) {
- fprintf(f_type_output, "%c", f_string_eol);
+ fprintf(f_type_output, "%c", f_string_eol[0]);
}
}
else {
- fprintf(f_type_output, "%c", f_string_eol);
+ fprintf(f_type_output, "%c", f_string_eol[0]);
}
}
}
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]);
- fprintf(f_type_output, "%c", f_string_eol);
+ fprintf(f_type_output, "%c", f_string_eol[0]);
}
}
else {
}
} // for
- fprintf(f_type_output, "%c", f_string_eol);
+ fprintf(f_type_output, "%c", f_string_eol[0]);
}
}
else if (include_empty) {
if (data->parameters[fss_extended_read_parameter_select].result == f_console_result_additional) {
if (select == 0) {
- fprintf(f_type_output, "%c", f_string_eol);
+ fprintf(f_type_output, "%c", f_string_eol[0]);
}
}
else {
- fprintf(f_type_output, "%c", f_string_eol);
+ fprintf(f_type_output, "%c", f_string_eol[0]);
}
}
total++;
} // for
- fprintf(f_type_output, "%llu%c", total, f_string_eol);
+ fprintf(f_type_output, "%llu%c", total, f_string_eol[0]);
return F_none;
}
if (data->contents.array[i].used == 0) {
if (include_empty) {
if (line_current == line) {
- fprintf(f_type_output, "%c", f_string_eol);
+ fprintf(f_type_output, "%c", f_string_eol[0]);
break;
}
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]);
- fprintf(f_type_output, "%c", f_string_eol);
+ fprintf(f_type_output, "%c", f_string_eol[0]);
}
}
else {
}
} // for
- fprintf(f_type_output, "%c", f_string_eol);
+ fprintf(f_type_output, "%c", f_string_eol[0]);
}
break;
if (data->contents.array[i].used == 0) {
if (include_empty && select == 0) {
- fprintf(f_type_output, "%c", f_string_eol);
+ fprintf(f_type_output, "%c", f_string_eol[0]);
}
continue;
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]);
- fprintf(f_type_output, "%c", f_string_eol);
+ fprintf(f_type_output, "%c", f_string_eol[0]);
}
}
else {
}
} // for
- fprintf(f_type_output, "%c", f_string_eol);
+ fprintf(f_type_output, "%c", f_string_eol[0]);
}
} // for
fll_program_print_help_option(context, f_console_standard_short_no_color, f_console_standard_long_no_color, f_console_symbol_short_disable, f_console_symbol_long_disable, "Do not output in color.");
fll_program_print_help_option(context, f_console_standard_short_version, f_console_standard_long_version, f_console_symbol_short_disable, f_console_symbol_long_disable, " Print only the version number.");
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
fll_program_print_help_option(context, fss_extended_write_short_object, fss_extended_write_long_object, f_console_symbol_short_enable, f_console_symbol_long_enable, " Write an object instead of content.");
fll_program_print_help_option(context, fss_extended_write_short_file, fss_extended_write_long_file, f_console_symbol_short_enable, f_console_symbol_long_enable, " Specify a file to send output to.");
fll_program_print_help_option(context, f_console_standard_short_no_color, f_console_standard_long_no_color, f_console_symbol_short_disable, f_console_symbol_long_disable, "Do not output in color.");
fll_program_print_help_option(context, f_console_standard_short_version, f_console_standard_long_version, f_console_symbol_short_disable, f_console_symbol_long_disable, " Print only the version number.");
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
fll_program_print_help_option(context, fss_status_code_short_is_fine, fss_status_code_long_is_fine, f_console_symbol_short_enable, f_console_symbol_long_enable, " Print F_true if the error code is not an error, F_false otherwise.");
fll_program_print_help_option(context, fss_status_code_short_is_warning, fss_status_code_long_is_warning, f_console_symbol_short_enable, f_console_symbol_long_enable, "Print F_true if the error code is a warning, F_false otherwise.");
fll_program_print_help_option(context, f_console_standard_short_version, f_console_standard_long_version, f_console_symbol_short_disable, f_console_symbol_long_disable, " Print only the version number.");
fll_program_print_help_option(context, f_console_standard_short_debug, f_console_standard_long_debug, f_console_symbol_short_disable, f_console_symbol_long_disable, " Enable debugging.");
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
fll_program_print_help_option(context, init_parameter_no_prepare_short_name, init_parameter_no_prepare_long_name, f_console_symbol_short_enable, f_console_symbol_long_enable, " Do not attempt to process kernel command line or perform any boot-time specific preparations.");
fll_program_print_help_option(context, init_parameter_runlevel_short_name, init_parameter_runlevel_long_name, f_console_symbol_short_enable, f_console_symbol_long_enable, " Specify a custom run level, ignoring the kernel command line runlevel argument.");
fll_program_print_help_option(context, f_console_standard_short_no_color, f_console_standard_long_no_color, f_console_symbol_short_disable, f_console_symbol_long_disable, "Do not output in color.");
fll_program_print_help_option(context, f_console_standard_short_version, f_console_standard_long_version, f_console_symbol_short_disable, f_console_symbol_long_disable, " Print only the version number.");
- printf("%c", f_string_eol);
+ printf("%c", f_string_eol[0]);
fll_program_print_help_option(context, status_code_short_is_fine, status_code_long_is_fine, f_console_symbol_short_enable, f_console_symbol_long_enable, " Print F_true if the error code is not an error, F_false otherwise.");
fll_program_print_help_option(context, status_code_short_is_warning, status_code_long_is_warning, f_console_symbol_short_enable, f_console_symbol_long_enable, "Print F_true if the error code is a warning, F_false otherwise.");