Have most of the help printing functions that might be used as `fl_print_call_t` be consistent with that prototype structure.
Fix some issues where `data.callback` is still used and should now instead be `data.call`.
#endif
#ifndef _di_fss_read_print_message_help_
- void fss_read_print_message_help(fl_print_t * const print) {
+ f_status_t fss_read_print_message_help(fl_print_t * const print) {
- if (!print) return;
+ if (!print) return F_status_set_error(F_output_not);
fll_program_print_help_option_standard(print);
fll_program_print_help_option(print, fss_read_short_select_s, fss_read_long_select_s, f_console_symbol_short_normal_s, f_console_symbol_long_normal_s, " Select sub-Content at this index.");
fll_program_print_help_option(print, fss_read_short_total_s, fss_read_long_total_s, f_console_symbol_short_normal_s, f_console_symbol_long_normal_s, " Print the total number of lines.");
fll_program_print_help_option(print, fss_read_short_trim_s, fss_read_long_trim_s, f_console_symbol_short_normal_s, f_console_symbol_long_normal_s, " Trim Object names on select or print.");
+
+ return F_okay;
}
#endif // _di_fss_read_print_message_help_
* The print.custom is expected to be of type fss_read_main_t.
*
* This does not alter print.custom.setting.state.status.
+ *
+ * @return
+ * F_okay on success.
+ * F_output_not on success, but no printing is performed.
+ *
+ * F_output_not (with error bit) if a parameter is NULL.
*/
#ifndef _di_fss_read_print_message_help_
- extern void fss_read_print_message_help(fl_print_t * const print);
+ extern f_status_t fss_read_print_message_help(fl_print_t * const print);
#endif // _di_fss_read_print_message_help_
/**
#endif
#ifndef _di_fss_write_print_message_help_
- void fss_write_print_message_help(fl_print_t * const print) {
+ f_status_t fss_write_print_message_help(fl_print_t * const print) {
- if (!print) return;
+ if (!print) return F_status_set_error(F_output_not);
fll_program_print_help_option_standard(print);
fll_program_print_help_option(print, fss_write_short_prepend_s, fss_write_long_prepend_s, f_console_symbol_short_normal_s, f_console_symbol_long_normal_s, " Prepend the given white space characters to the start of each multi-line Content.");
fll_program_print_help_option(print, fss_write_short_single_s, fss_write_long_single_s, f_console_symbol_short_normal_s, f_console_symbol_long_normal_s, " Use single quotes.");
fll_program_print_help_option(print, fss_write_short_trim_s, fss_write_long_trim_s, f_console_symbol_short_normal_s, f_console_symbol_long_normal_s, " Trim Object names.");
+
+ return F_okay;
}
#endif // _di_fss_write_print_message_help_
* The print.custom is expected to be of type fss_read_main_t.
*
* This does not alter print.custom.setting.state.status.
+ *
+ * @return
+ * F_okay on success.
+ * F_output_not on success, but no printing is performed.
+ *
+ * F_output_not (with error bit) if a parameter is NULL.
*/
#ifndef _di_fss_write_print_message_help_
- extern void fss_write_print_message_help(fl_print_t * const print);
+ extern f_status_t fss_write_print_message_help(fl_print_t * const print);
#endif // _di_fss_write_print_message_help_
/**
data.setting.state.custom = (void *) &data;
data.setting.state.handle = &fll_program_standard_signal_handle;
- data.callback.identify_alteration = &iki_read_eki_identify_alteration;
- data.callback.print_data = &iki_read_eki_print_data;
- data.callback.print_help = &iki_read_eki_print_message_help;
- data.callback.process_buffer_ranges = &iki_read_eki_process_buffer_ranges;
- data.callback.process_buffer_ranges_whole = &iki_read_eki_process_buffer_ranges_whole;
- data.callback.process_buffer_total = &iki_read_eki_process_buffer_total;
- data.callback.delete_data = &iki_read_eki_delete_data;
+ data.call.identify_alteration = &iki_read_eki_identify_alteration;
+ data.call.print_data = &iki_read_eki_print_data;
+ data.call.print_help = &iki_read_eki_print_message_help;
+ data.call.process_buffer_ranges = &iki_read_eki_process_buffer_ranges;
+ data.call.process_buffer_ranges_whole = &iki_read_eki_process_buffer_ranges_whole;
+ data.call.process_buffer_total = &iki_read_eki_process_buffer_total;
+ data.call.delete_data = &iki_read_eki_delete_data;
f_console_parameter_t parameters[] = iki_read_console_parameter_t_initialize;
data.program.parameters.array = parameters;
#endif // _di_iki_read_eki_print_data_
#ifndef _di_iki_read_eki_print_message_help_
- void iki_read_eki_print_message_help(fl_print_t * const print) {
+ f_status_t iki_read_eki_print_message_help(fl_print_t * const print) {
- if (!print) return;
+ if (!print || !print->custom) return F_status_set_error(F_output_not);
f_file_stream_lock(print->to);
f_file_stream_flush(print->to);
f_file_stream_unlock(print->to);
+
+ return F_okay;
}
#endif // _di_iki_read_eki_print_message_help_
* The output structure to print to.
*
* This does not alter print.custom.setting.state.status.
+ *
+ * @return
+ * F_okay on success.
+ * F_output_not on success, but no printing is performed.
+ *
+ * F_output_not (with error bit) if a parameter is NULL.
*/
#ifndef _di_iki_read_eki_print_message_help_
- extern void iki_read_eki_print_message_help(fl_print_t * const print);
+ extern f_status_t iki_read_eki_print_message_help(fl_print_t * const print);
#endif // _di_iki_read_eki_print_message_help_
#ifdef __cplusplus
else {
f_file_stream_lock(main->program.output.to);
- if (main->callback.print_data) {
- main->callback.print_data(&main->program.output, i);
+ if (main->call.print_data) {
+ main->call.print_data(&main->program.output, i);
}
f_print_dynamic_raw(f_string_eol_s, main->program.output.to);
else {
f_file_stream_lock(main->program.output.to);
- if (main->callback.print_data) {
- main->callback.print_data(&main->program.output, main->setting.at);
+ if (main->call.print_data) {
+ main->call.print_data(&main->program.output, main->setting.at);
}
f_print_dynamic_raw(f_string_eol_s, main->program.output.to);
if (iki_read_signal_check(main)) return;
- if (main->callback.print_data) {
- main->callback.print_data(&main->program.output, i);
+ if (main->call.print_data) {
+ main->call.print_data(&main->program.output, i);
}
f_print_dynamic_raw(f_string_eol_s, main->program.output.to);
main->cache.buffer.string[data->delimits.array[i]] = f_iki_syntax_placeholder_s.string[0];
} // for
- if (main->callback.identify_alteration) {
- main->callback.identify_alteration(main);
+ if (main->call.identify_alteration) {
+ main->call.identify_alteration(main);
}
}
#endif // _di_iki_read_eki_process_buffer_ranges_prepare_
if (k < main->setting.names.used) {
if (main->setting.flag & iki_read_main_flag_at_d) {
if (at++ == main->setting.at) {
- if (main->callback.print_data) {
- main->callback.print_data(&main->program.output, j);
+ if (main->call.print_data) {
+ main->call.print_data(&main->program.output, j);
}
}
else {
f_print_dynamic_partial(main->cache.buffer, data->variable.array[j], main->program.output.to);
}
}
- else if (main->callback.print_data) {
- main->callback.print_data(&main->program.output, j);
+ else if (main->call.print_data) {
+ main->call.print_data(&main->program.output, j);
}
}
else {
}
else if (main->setting.flag & iki_read_main_flag_at_d) {
if (at++ == main->setting.at) {
- if (main->callback.print_data) {
- main->callback.print_data(&main->program.output, j);
+ if (main->call.print_data) {
+ main->call.print_data(&main->program.output, j);
}
}
else {
}
}
else {
- if (main->callback.print_data) {
- main->callback.print_data(&main->program.output, j);
+ if (main->call.print_data) {
+ main->call.print_data(&main->program.output, j);
}
}
data.setting.state.custom = (void *) &data;
data.setting.state.handle = &fll_program_standard_signal_handle;
- data.callback.identify_alteration = &iki_read_iki_identify_alteration;
- data.callback.print_data = &iki_read_iki_print_data;
- data.callback.print_help = &iki_read_iki_print_message_help;
- data.callback.process_buffer_ranges = &iki_read_iki_process_buffer_ranges;
- data.callback.process_buffer_ranges_whole = &iki_read_iki_process_buffer_ranges_whole;
- data.callback.process_buffer_total = &iki_read_iki_process_buffer_total;
- data.callback.delete_data = &iki_read_iki_delete_data;
+ data.call.identify_alteration = &iki_read_iki_identify_alteration;
+ data.call.print_data = &iki_read_iki_print_data;
+ data.call.print_help = &iki_read_iki_print_message_help;
+ data.call.process_buffer_ranges = &iki_read_iki_process_buffer_ranges;
+ data.call.process_buffer_ranges_whole = &iki_read_iki_process_buffer_ranges_whole;
+ data.call.process_buffer_total = &iki_read_iki_process_buffer_total;
+ data.call.delete_data = &iki_read_iki_delete_data;
f_console_parameter_t parameters[] = iki_read_console_parameter_t_initialize;
data.program.parameters.array = parameters;
#endif // _di_iki_read_iki_print_data_
#ifndef _di_iki_read_iki_print_message_help_
- void iki_read_iki_print_message_help(fl_print_t * const print) {
+ f_status_t iki_read_iki_print_message_help(fl_print_t * const print) {
- if (!print) return;
+ if (!print || !print->custom) return F_status_set_error(F_output_not);
f_file_stream_lock(print->to);
f_file_stream_flush(print->to);
f_file_stream_unlock(print->to);
+
+ return F_okay;
}
#endif // _di_iki_read_iki_print_message_help_
* The output structure to print to.
*
* This does not alter print.custom.setting.state.status.
+ *
+ * @return
+ * F_okay on success.
+ * F_output_not on success, but no printing is performed.
+ *
+ * F_output_not (with error bit) if a parameter is NULL.
*/
#ifndef _di_iki_read_iki_print_message_help_
- extern void iki_read_iki_print_message_help(fl_print_t * const print);
+ extern f_status_t iki_read_iki_print_message_help(fl_print_t * const print);
#endif // _di_iki_read_iki_print_message_help_
#ifdef __cplusplus
else {
f_file_stream_lock(main->program.output.to);
- if (main->callback.print_data) {
- main->callback.print_data(&main->program.output, i);
+ if (main->call.print_data) {
+ main->call.print_data(&main->program.output, i);
}
f_print_dynamic_raw(f_string_eol_s, main->program.output.to);
else {
f_file_stream_lock(main->program.output.to);
- if (main->callback.print_data) {
- main->callback.print_data(&main->program.output, main->setting.at);
+ if (main->call.print_data) {
+ main->call.print_data(&main->program.output, main->setting.at);
}
f_print_dynamic_raw(f_string_eol_s, main->program.output.to);
if (iki_read_signal_check(main)) return;
- if (main->callback.print_data) {
- main->callback.print_data(&main->program.output, i);
+ if (main->call.print_data) {
+ main->call.print_data(&main->program.output, i);
}
f_print_dynamic_raw(f_string_eol_s, main->program.output.to);
main->cache.buffer.string[data->delimits.array[i]] = f_iki_syntax_placeholder_s.string[0];
} // for
- if (main->callback.identify_alteration) {
- main->callback.identify_alteration(main);
+ if (main->call.identify_alteration) {
+ main->call.identify_alteration(main);
}
}
#endif // _di_iki_read_iki_process_buffer_ranges_prepare_
if (k < main->setting.names.used) {
if (main->setting.flag & iki_read_main_flag_at_d) {
if (at++ == main->setting.at) {
- if (main->callback.print_data) {
- main->callback.print_data(&main->program.output, j);
+ if (main->call.print_data) {
+ main->call.print_data(&main->program.output, j);
}
}
else {
f_print_dynamic_partial(main->cache.buffer, data->variable.array[j], main->program.output.to);
}
}
- else if (main->callback.print_data) {
- main->callback.print_data(&main->program.output, j);
+ else if (main->call.print_data) {
+ main->call.print_data(&main->program.output, j);
}
}
else {
}
else if (main->setting.flag & iki_read_main_flag_at_d) {
if (at++ == main->setting.at) {
- if (main->callback.print_data) {
- main->callback.print_data(&main->program.output, j);
+ if (main->call.print_data) {
+ main->call.print_data(&main->program.output, j);
}
}
else {
}
}
else {
- if (main->callback.print_data) {
- main->callback.print_data(&main->program.output, j);
+ if (main->call.print_data) {
+ main->call.print_data(&main->program.output, j);
}
}
#endif
#ifndef _di_iki_write_print_message_help_
- void iki_write_print_message_help(fl_print_t * const print) {
+ f_status_t iki_write_print_message_help(fl_print_t * const print) {
- if (!print) return;
+ if (!print || !print->custom) return F_status_set_error(F_output_not);
fll_program_print_help_option(print, f_console_standard_short_help_s, f_console_standard_long_help_s, f_console_symbol_short_normal_s, f_console_symbol_long_normal_s, " Print this help message.");
fll_program_print_help_option(print, f_console_standard_short_dark_s, f_console_standard_long_dark_s, f_console_symbol_short_inverse_s, f_console_symbol_long_inverse_s, " Output using colors that show up better on dark backgrounds.");
fll_program_print_help_option(print, iki_write_short_object_s, iki_write_long_object_s, f_console_symbol_short_normal_s, f_console_symbol_long_normal_s, " The Object to write.");
fll_program_print_help_option(print, iki_write_short_single_s, iki_write_long_single_s, f_console_symbol_short_normal_s, f_console_symbol_long_normal_s, " Use single quotes (U+0027).");
fll_program_print_help_option(print, iki_write_short_wrap_s, iki_write_long_wrap_s, f_console_symbol_short_normal_s, f_console_symbol_long_normal_s, " Wrap the vocabulary name.");
+
+ return F_okay;
}
#endif // _di_iki_write_print_message_help_
* The print.custom is expected to be of type iki_write_main_t.
*
* This does not alter print.custom.setting.state.status.
+ *
+ * @return
+ * F_okay on success.
+ * F_output_not on success, but no printing is performed.
+ *
+ * F_output_not (with error bit) if a parameter is NULL.
*/
#ifndef _di_iki_write_print_message_help_
- extern void iki_write_print_message_help(fl_print_t * const print);
+ extern f_status_t iki_write_print_message_help(fl_print_t * const print);
#endif // _di_iki_write_print_message_help_
/**