There are programs that do not use the fll_program_data_t structure.
These now define the signal_check in their main.
Such cases will go away as soon as they are converted into using fll_program_data_t.
* warning: The output file for warning printing.
* signal: The process signal management structure.
* context: The color context.
- *
- * @todo
*/
#ifndef _di_byte_dump_main_t_
typedef struct {
f_console_parameters_t parameters;
+ uint16_t signal_check;
bool process_pipe;
fl_print_t output;
#define byte_dump_main_t_initialize \
{ \
f_console_parameters_t_initialize, \
+ 0, \
F_false, \
fl_print_t_initialize, \
macro_fl_print_t_initialize_error(), \
memset(&invalid, 0, sizeof(f_char_t) * main->width);
if (byte_get >= 0) {
- for (uint16_t signal_check = 0; ; ) {
+ for (;;) {
- if (!((++signal_check) % byte_dump_signal_check_d)) {
+ if (!((++main->signal_check) % byte_dump_signal_check_d)) {
if (byte_dump_signal_received(main)) {
return F_status_set_error(F_interrupt);
}
- signal_check = 0;
+ main->signal_check = 0;
}
byte_get = getc(file.stream);
typedef struct {
f_console_parameters_t parameters;
+ uint16_t signal_check;
bool process_pipe;
int child;
#define firewall_main_t_initialize \
{ \
f_console_parameters_t_initialize, \
+ 0, \
F_false, \
0, \
fl_print_t_initialize, \
chain = firewall_chain_custom_id_e;
}
- for (uint16_t signal_check = 0; F_status_is_error_not(status) && i < local.rule_objects.used; ++i) {
+ for (; F_status_is_error_not(status) && i < local.rule_objects.used; ++i) {
- if (!((++signal_check) % firewall_signal_check_d)) {
+ if (!((++main->signal_check) % firewall_signal_check_d)) {
if (firewall_signal_received(main)) {
f_string_dynamic_resize(0, &ip_list);
f_string_dynamics_resize(0, &arguments);
return F_status_set_error(F_interrupt);
}
- signal_check = 0;
+ main->signal_check = 0;
}
length = macro_firewall_structure_size(local.rule_objects, i);
reserved->has_stop = F_false;
reserved->has_main = F_false;
- for (uint16_t signal_check = 0; i < local->chain_objects.used; ++i) {
+ for (; i < local->chain_objects.used; ++i) {
new_chain = F_true;
j = 0;
- if (!((++signal_check) % firewall_signal_check_d)) {
+ if (!((++main->signal_check) % firewall_signal_check_d)) {
if (firewall_signal_received(main)) break;
}
if (F_status_is_error_not(status) && main->parameters.array[fss_basic_list_read_parameter_delimit_e].result == f_console_result_additional_e) {
f_array_length_t index = 0;
f_array_length_t length = 0;
- uint16_t signal_check = 0;
// Set the value to 0 to allow for detecting mode based on what is provided.
data.delimit_mode = 0;
for (f_array_length_t i = 0; i < main->parameters.array[fss_basic_list_read_parameter_delimit_e].values.used; ++i) {
- if (!((++signal_check) % fss_basic_list_read_signal_check_d)) {
+ if (!((++main->signal_check) % fss_basic_list_read_signal_check_d)) {
if (fss_basic_list_read_signal_received(main)) {
status = F_status_set_error(F_interrupt);
break;
}
- signal_check = 0;
+ main->signal_check = 0;
}
index = main->parameters.array[fss_basic_list_read_parameter_delimit_e].values.array[i];
if (F_status_is_error_not(status) && main->parameters.remaining.used) {
f_file_t file = f_file_t_initialize;
f_array_length_t size_file = 0;
- uint16_t signal_check = 0;
for (f_array_length_t i = 0; i < main->parameters.remaining.used; ++i) {
- if (!((++signal_check) % fss_basic_list_read_signal_check_d)) {
+ if (!((++main->signal_check) % fss_basic_list_read_signal_check_d)) {
if (fss_basic_list_read_signal_received(main)) {
status = F_status_set_error(F_interrupt);
break;
}
- signal_check = 0;
+ main->signal_check = 0;
}
data.files.array[data.files.used].name = data.argv[main->parameters.remaining.array[i]];
f_array_length_t position_depth = 0;
f_array_length_t position_at = 0;
f_array_length_t position_name = 0;
- uint16_t signal_check = 0;
for (f_array_length_t i = 0; i < data->depths.used; ++i) {
- if (!((++signal_check) % fss_basic_list_read_signal_check_d)) {
+ if (!((++main->signal_check) % fss_basic_list_read_signal_check_d)) {
if (fss_basic_list_read_signal_received(main)) {
return F_status_set_error(F_interrupt);
}
- signal_check = 0;
+ main->signal_check = 0;
}
data->depths.array[i].depth = 0;
for (f_array_length_t j = i + 1; j < data->depths.used; ++j) {
- if (!((++signal_check) % fss_basic_list_read_signal_check_d)) {
+ if (!((++main->signal_check) % fss_basic_list_read_signal_check_d)) {
if (fss_basic_list_read_signal_received(main)) {
return F_status_set_error(F_interrupt);
}
- signal_check = 0;
+ main->signal_check = 0;
}
if (data->depths.array[i].depth == data->depths.array[j].depth) {
f_array_lengths_t except_none = f_array_lengths_t_initialize;
f_array_lengths_t *delimits_object = fss_basic_list_read_delimit_object_is(data, 0) ? &data->delimits_object : &except_none;
f_array_lengths_t *delimits_content = fss_basic_list_read_delimit_content_is(data, 0) ? &data->delimits_content : &except_none;
- uint16_t signal_check = 0;
if (data->option & fss_basic_list_read_data_option_raw_d) {
delimits_object = &except_none;
if (!names[i]) continue;
- if (!((++signal_check) % fss_basic_list_read_signal_check_d)) {
+ if (!((++main->signal_check) % fss_basic_list_read_signal_check_d)) {
if (fss_basic_list_read_signal_received(main)) {
return F_status_set_error(F_interrupt);
}
- signal_check = 0;
+ main->signal_check = 0;
}
fss_basic_list_read_print_at(main, i, *delimits_object, *delimits_content, data);
f_array_length_t at = 0;
f_status_t status = F_none;
- uint16_t signal_check = 0;
for (f_array_length_t i = 0; i < data->objects.used; ++i) {
if (!names[i]) continue;
- if (!((++signal_check) % fss_basic_list_read_signal_check_d)) {
+ if (!((++main->signal_check) % fss_basic_list_read_signal_check_d)) {
if (fss_basic_list_read_signal_received(main)) {
return F_status_set_error(F_interrupt);
}
- signal_check = 0;
+ main->signal_check = 0;
}
if (at == data->depths.array[0].value_at) {
f_string_range_t range = data->contents.array[at].array[0];
f_array_length_t i = 0;
- uint16_t signal_check = 0;
// This content has no data, do not even check "include empty" because it cannot be counted as a line.
if (range.start > range.stop) {
for (i = range.start; i <= range.stop; ++i) {
- if (!((++signal_check) % fss_basic_list_read_signal_check_d)) {
+ if (!((++main->signal_check) % fss_basic_list_read_signal_check_d)) {
if (fss_basic_list_read_signal_received(main)) {
return F_status_set_error(F_interrupt);
}
- signal_check = 0;
+ main->signal_check = 0;
}
if (data->buffer.string[i] == f_string_eol_s.string[0]) {
}
f_array_length_t max = 0;
- uint16_t signal_check = 0;
for (f_array_length_t i = 0; i < data->contents.used; ++i) {
if (!names[i]) continue;
- if (!((++signal_check) % fss_basic_list_read_signal_check_d)) {
+ if (!((++main->signal_check) % fss_basic_list_read_signal_check_d)) {
if (fss_basic_list_read_signal_received(main)) {
return F_status_set_error(F_interrupt);
}
- signal_check = 0;
+ main->signal_check = 0;
}
if (data->contents.array[i].used > max) {
f_array_length_t line = 0;
f_status_t status = F_none;
- uint16_t signal_check = 0;
for (f_array_length_t i = 0; i < data->contents.used; ++i) {
if (!names[i]) continue;
- if (!((++signal_check) % fss_basic_list_read_signal_check_d)) {
+ if (!((++main->signal_check) % fss_basic_list_read_signal_check_d)) {
if (fss_basic_list_read_signal_received(main)) {
return F_status_set_error(F_interrupt);
}
- signal_check = 0;
+ main->signal_check = 0;
}
status = fss_basic_list_read_process_at_line(main, data, i, *delimits_object, *delimits_content, &line);
f_array_length_t total = 0;
f_string_range_t range = f_string_range_t_initialize;
f_array_length_t i = 0;
- uint16_t signal_check = 0;
for (f_array_length_t at = 0; at < data->contents.used; ++at) {
if (!names[at]) continue;
- if (!((++signal_check) % fss_basic_list_read_signal_check_d)) {
+ if (!((++main->signal_check) % fss_basic_list_read_signal_check_d)) {
if (fss_basic_list_read_signal_received(main)) {
return F_status_set_error(F_interrupt);
}
- signal_check = 0;
+ main->signal_check = 0;
}
if (data->option & fss_basic_list_read_data_option_object_d) {
for (f_array_length_t i = 0; i < main->parameters.array[fss_basic_read_parameter_delimit_e].values.used; ++i) {
- if (fss_basic_read_signal_received(main)) {
- status = F_status_set_error(F_interrupt);
+ if (!((++main->signal_check) % fss_basic_read_signal_check_d)) {
+ if (fss_basic_read_signal_received(main)) {
+ status = F_status_set_error(F_interrupt);
- break;
+ break;
+ }
+
+ main->signal_check = 0;
}
index = main->parameters.array[fss_basic_read_parameter_delimit_e].values.array[i];
for (f_array_length_t i = 0; i < main->parameters.remaining.used; ++i) {
- if (fss_basic_read_signal_received(main)) {
- status = F_status_set_error(F_signal);
+ if (!((++main->signal_check) % fss_basic_read_signal_check_d)) {
+ if (fss_basic_read_signal_received(main)) {
+ status = F_status_set_error(F_signal);
- break;
+ break;
+ }
+
+ main->signal_check = 0;
}
data.files.array[data.files.used].range.start = data.buffer.used;
for (f_array_length_t i = 0; i < data->depths.used; ++i) {
- if (fss_basic_read_signal_received(main)) {
- return F_status_set_error(F_interrupt);
+ if (!((++main->signal_check) % fss_basic_read_signal_check_d)) {
+ if (fss_basic_read_signal_received(main)) {
+ return F_status_set_error(F_interrupt);
+ }
+
+ main->signal_check = 0;
}
data->depths.array[i].depth = 0;
for (f_array_length_t j = i + 1; j < data->depths.used; ++j) {
- if (fss_basic_read_signal_received(main)) {
- return F_status_set_error(F_interrupt);
+ if (!((++main->signal_check) % fss_basic_read_signal_check_d)) {
+ if (fss_basic_read_signal_received(main)) {
+ return F_status_set_error(F_interrupt);
+ }
+
+ main->signal_check = 0;
}
if (data->depths.array[i].depth == data->depths.array[j].depth) {
if (!names[i]) continue;
- if (fss_basic_read_signal_received(main)) {
- return F_status_set_error(F_interrupt);
+ if (!((++main->signal_check) % fss_basic_read_signal_check_d)) {
+ if (fss_basic_read_signal_received(main)) {
+ return F_status_set_error(F_interrupt);
+ }
+
+ main->signal_check = 0;
}
if (at == data->depths.array[0].value_at) {
if (!names[at]) continue;
- if (fss_basic_read_signal_received(main)) {
- return F_status_set_error(F_interrupt);
+ if (!((++main->signal_check) % fss_basic_read_signal_check_d)) {
+ if (fss_basic_read_signal_received(main)) {
+ return F_status_set_error(F_interrupt);
+ }
+
+ main->signal_check = 0;
}
if (data->contents.array[at].used > max) {
if (!names[i]) continue;
- if (fss_basic_read_signal_received(main)) {
- return F_status_set_error(F_interrupt);
+ if (!((++main->signal_check) % fss_basic_read_signal_check_d)) {
+ if (fss_basic_read_signal_received(main)) {
+ return F_status_set_error(F_interrupt);
+ }
+
+ main->signal_check = 0;
}
if (!(data->option & fss_basic_read_data_option_object_d) && (data->option & fss_basic_read_data_option_content_d)) {
if (!names[i]) continue;
- if (fss_basic_read_signal_received(main)) {
- return F_status_set_error(F_interrupt);
+ if (!((++main->signal_check) % fss_basic_read_signal_check_d)) {
+ if (fss_basic_read_signal_received(main)) {
+ return F_status_set_error(F_interrupt);
+ }
+
+ main->signal_check = 0;
}
if (!(data->option & fss_basic_read_data_option_object_d) && data->option & fss_basic_read_data_option_content_d) {
typedef struct {
f_console_parameters_t parameters;
+ uint16_t signal_check;
f_array_lengths_t remaining;
bool process_pipe;
#define fss_embedded_list_read_main_t_initialize \
{ \
f_console_parameters_t_initialize, \
+ 0, \
f_array_lengths_t_initialize, \
F_false, \
fl_print_t_initialize, \
if (F_status_is_error_not(status) && main->parameters.remaining.used > 0) {
for (f_array_length_t i = 0; i < main->parameters.remaining.used; ++i) {
- if (fss_embedded_list_read_signal_received(main)) {
- status = F_status_set_error(F_interrupt);
+ if (!((++main->signal_check) % fss_embedded_list_read_signal_check_d)) {
+ if (fss_embedded_list_read_signal_received(main)) {
+ status = F_status_set_error(F_interrupt);
- break;
+ break;
+ }
+
+ main->signal_check = 0;
}
f_file_t file = f_file_t_initialize;
for (i = 0; i < values_total; ++i) {
- if (fss_embedded_list_read_signal_received(main)) {
- return F_status_set_error(F_interrupt);
+ if (!((++main->signal_check) % fss_embedded_list_read_signal_check_d)) {
+ if (fss_embedded_list_read_signal_received(main)) {
+ return F_status_set_error(F_interrupt);
+ }
+
+ main->signal_check = 0;
}
if (values_type[i] == fss_embedded_list_read_parameter_depth_e || values_type[i] == fss_embedded_list_read_parameter_at_e) {
if (skip[i]) continue;
- if (fss_embedded_list_read_signal_received(main)) {
- return F_status_set_error(F_interrupt);
+ if (!((++main->signal_check) % fss_embedded_list_read_signal_check_d)) {
+ if (fss_embedded_list_read_signal_received(main)) {
+ return F_status_set_error(F_interrupt);
+ }
+
+ main->signal_check = 0;
}
if (!items->array[i].content.used) {
for (f_array_length_t i = 0; i < main->parameters.array[fss_extended_list_read_parameter_delimit_e].values.used; ++i) {
- if (fss_extended_list_read_signal_received(main)) {
- status = F_status_set_error(F_interrupt);
+ if (!((++main->signal_check) % fss_extended_list_read_signal_check_d)) {
+ if (fss_extended_list_read_signal_received(main)) {
+ status = F_status_set_error(F_interrupt);
- break;
+ break;
+ }
+
+ main->signal_check = 0;
}
index = main->parameters.array[fss_extended_list_read_parameter_delimit_e].values.array[i];
for (f_array_length_t i = 0; i < main->parameters.remaining.used; ++i) {
- if (fss_extended_list_read_signal_received(main)) {
- status = F_status_set_error(F_interrupt);
+ if (!((++main->signal_check) % fss_extended_list_read_signal_check_d)) {
+ if (fss_extended_list_read_signal_received(main)) {
+ status = F_status_set_error(F_interrupt);
- break;
+ break;
+ }
+
+ main->signal_check = 0;
}
data.files.array[data.files.used].range.start = data.buffer.used;
for (f_array_length_t i = 0; i < data->depths.used; ++i) {
- if (fss_extended_list_read_signal_received(main)) {
- return F_status_set_error(F_interrupt);
+ if (!((++main->signal_check) % fss_extended_list_read_signal_check_d)) {
+ if (fss_extended_list_read_signal_received(main)) {
+ return F_status_set_error(F_interrupt);
+ }
+
+ main->signal_check = 0;
}
data->depths.array[i].depth = 0;
for (f_array_length_t j = i + 1; j < data->depths.used; ++j) {
- if (fss_extended_list_read_signal_received(main)) {
- return F_status_set_error(F_interrupt);
+ if (!((++main->signal_check) % fss_extended_list_read_signal_check_d)) {
+ if (fss_extended_list_read_signal_received(main)) {
+ return F_status_set_error(F_interrupt);
+ }
+
+ main->signal_check = 0;
}
if (data->depths.array[i].depth == data->depths.array[j].depth) {
if (F_status_is_error_not(status) && main->parameters.array[fss_extended_read_parameter_delimit_e].result == f_console_result_additional_e) {
f_array_length_t index = 0;
f_array_length_t length = 0;
- uint16_t signal_check = 0;
// Set the value to 0 to allow for detecting mode based on what is provided.
data.delimit_mode = 0;
for (f_array_length_t i = 0; i < main->parameters.array[fss_extended_read_parameter_delimit_e].values.used; ++i) {
- if (!((++signal_check) % fss_extended_read_signal_check_d)) {
+ if (!((++main->signal_check) % fss_extended_read_signal_check_d)) {
if (fss_extended_read_signal_received(main)) {
status = F_status_set_error(F_signal);
break;
}
- signal_check = 0;
+ main->signal_check = 0;
}
index = main->parameters.array[fss_extended_read_parameter_delimit_e].values.array[i];
if (F_status_is_error_not(status) && main->parameters.remaining.used > 0) {
f_file_t file = f_file_t_initialize;
f_array_length_t size_file = 0;
- uint16_t signal_check = 0;
for (f_array_length_t i = 0; i < main->parameters.remaining.used; ++i) {
- if (!((++signal_check) % fss_extended_read_signal_check_d)) {
+ if (!((++main->signal_check) % fss_extended_read_signal_check_d)) {
if (fss_extended_read_signal_received(main)) {
status = F_status_set_error(F_signal);
+
break;
}
- signal_check = 0;
+ main->signal_check = 0;
}
data.files.array[data.files.used].range.start = data.buffer.used;
f_array_length_t position_depth = 0;
f_array_length_t position_at = 0;
f_array_length_t position_name = 0;
- uint16_t signal_check = 0;
for (f_array_length_t i = 0; i < data->depths.used; ++i) {
- if (!((++signal_check) % fss_extended_read_signal_check_d)) {
+ if (!((++main->signal_check) % fss_extended_read_signal_check_d)) {
if (fss_extended_read_signal_received(main)) {
return F_status_set_error(F_interrupt);
}
- signal_check = 0;
+ main->signal_check = 0;
}
data->depths.array[i].depth = 0;
for (f_array_length_t j = i + 1; j < data->depths.used; ++j) {
- if (!((++signal_check) % fss_extended_read_signal_check_d)) {
+ if (!((++main->signal_check) % fss_extended_read_signal_check_d)) {
if (fss_extended_read_signal_received(main)) {
return F_status_set_error(F_interrupt);
}
- signal_check = 0;
+ main->signal_check = 0;
}
if (data->depths.array[i].depth == data->depths.array[j].depth) {
if (main->parameters.array[fss_extended_write_parameter_object_e].result == f_console_result_additional_e) {
contents.used = 0;
- uint16_t signal_check = 0;
-
for (f_array_length_t i = 0; i < main->parameters.array[fss_extended_write_parameter_object_e].values.used; ++i) {
- if (!((++signal_check) % fss_extended_write_signal_check_d)) {
+ if (!((++main->signal_check) % fss_extended_write_signal_check_d)) {
if (fss_extended_write_signal_received(main)) {
status = F_status_set_error(F_interrupt);
break;
}
- signal_check = 0;
+ main->signal_check = 0;
}
status = fss_extended_write_process(main, output, quote, &argv[main->parameters.array[fss_extended_write_parameter_object_e].values.array[i]], 0, &buffer);
f_array_length_t object_next = 0;
f_array_length_t content_current = 0;
- for (uint16_t signal_check = 0; i < main->parameters.array[fss_extended_write_parameter_object_e].values.used; ++i) {
+ for (; i < main->parameters.array[fss_extended_write_parameter_object_e].values.used; ++i) {
- if (!((++signal_check) % fss_extended_write_signal_check_d)) {
+ if (!((++main->signal_check) % fss_extended_write_signal_check_d)) {
if (fss_extended_write_signal_received(main)) {
status = F_status_set_error(F_interrupt);
break;
}
- signal_check = 0;
+ main->signal_check = 0;
}
object_current = main->parameters.array[fss_extended_write_parameter_object_e].locations.array[i];
// 0x0 = start new object/content set, 0x1 = processing object, 0x2 = new individual content, 0x3 = processing content, 0x4 = end object/content set.
uint8_t state = 0;
- for (uint16_t signal_check = 0; ; ) {
+ for (;;) {
- if (!((++signal_check) % fss_extended_write_signal_check_d)) {
+ if (!((++main->signal_check) % fss_extended_write_signal_check_d)) {
if (fss_extended_write_signal_received(main)) {
return F_status_set_error(F_interrupt);
}
- signal_check = 0;
+ main->signal_check = 0;
}
if (range.start > range.stop) {
}
if (F_status_is_error_not(status)) {
- uint16_t signal_check = 0;
-
for (f_array_length_t i = 0; i < main->parameters.remaining.used; ++i) {
- if (!((++signal_check) % fss_identify_signal_check_d)) {
+ if (!((++main->signal_check) % fss_identify_signal_check_d)) {
if (fss_identify_signal_received(main)) {
status = F_status_set_error(F_interrupt);
break;
}
- signal_check = 0;
+ main->signal_check = 0;
}
if (main->parameters.array[fss_identify_parameter_line_e].result == f_console_result_additional_e) {
f_status_t fss_identify_load_line(fll_program_data_t * const main, const f_file_t file, const f_string_static_t file_name, f_string_static_t *buffer, f_string_range_t *range) {
f_status_t status = F_none;
- uint16_t signal_check = 0;
buffer->used = 0;
range->stop = 0;
do {
- if (!((++signal_check) % fss_identify_signal_check_d)) {
+ if (!((++main->signal_check) % fss_identify_signal_check_d)) {
if (fss_identify_signal_received(main)) {
status = F_status_set_error(F_interrupt);
break;
}
- signal_check = 0;
+ main->signal_check = 0;
}
if (buffer->used + file.size_read > buffer->size) {
if (F_status_is_error_not(status) && main->parameters.array[fss_payload_read_parameter_delimit_e].result == f_console_result_additional_e) {
f_array_length_t index = 0;
f_array_length_t length = 0;
- uint16_t signal_check = 0;
// Set the value to 0 to allow for detecting mode based on what is provided.
data.delimit_mode = 0;
for (f_array_length_t i = 0; i < main->parameters.array[fss_payload_read_parameter_delimit_e].values.used; ++i) {
- if (!((++signal_check) % fss_payload_read_signal_check_d)) {
+ if (!((++main->signal_check) % fss_payload_read_signal_check_d)) {
if (fss_payload_read_signal_received(main)) {
status = F_status_set_error(F_interrupt);
break;
}
- signal_check = 0;
+ main->signal_check = 0;
}
index = main->parameters.array[fss_payload_read_parameter_delimit_e].values.array[i];
f_file_t file = f_file_t_initialize;
f_array_length_t size_file = 0;
const f_array_length_t buffer_used = data.buffer.used;
- uint16_t signal_check = 0;
for (f_array_length_t i = 0; i < main->parameters.remaining.used; ++i) {
- if (!((++signal_check) % fss_payload_read_signal_check_d)) {
+ if (!((++main->signal_check) % fss_payload_read_signal_check_d)) {
if (fss_payload_read_signal_received(main)) {
status = F_status_set_error(F_interrupt);
break;
}
- signal_check = 0;
+ main->signal_check = 0;
}
data.files.array[data.files.used].range.start = data.buffer.used;
f_array_length_t position_depth = 0;
f_array_length_t position_at = 0;
f_array_length_t position_name = 0;
- uint16_t signal_check = 0;
for (f_array_length_t i = 0; i < data->depths.used; ++i) {
- if (!((++signal_check) % fss_payload_read_signal_check_d)) {
+ if (!((++main->signal_check) % fss_payload_read_signal_check_d)) {
if (fss_payload_read_signal_received(main)) {
return F_status_set_error(F_interrupt);
}
- signal_check = 0;
+ main->signal_check = 0;
}
data->depths.array[i].depth = 0;
for (f_array_length_t j = i + 1; j < data->depths.used; ++j) {
- if (!((++signal_check) % fss_payload_read_signal_check_d)) {
+ if (!((++main->signal_check) % fss_payload_read_signal_check_d)) {
if (fss_payload_read_signal_received(main)) {
return F_status_set_error(F_interrupt);
}
- signal_check = 0;
+ main->signal_check = 0;
}
if (data->depths.array[i].depth == data->depths.array[j].depth) {
f_array_lengths_t except_none = f_array_lengths_t_initialize;
f_array_lengths_t *delimits_object = fss_payload_read_delimit_object_is(data, 0) ? &data->delimits_object : &except_none;
f_array_lengths_t *delimits_content = fss_payload_read_delimit_content_is(data, 0) ? &data->delimits_content : &except_none;
- uint16_t signal_check = 0;
bool is_payload = F_false;
if (data->option & fss_payload_read_data_option_raw_d) {
if (!names[i]) continue;
- if (!((++signal_check) % fss_payload_read_signal_check_d)) {
+ if (!((++main->signal_check) % fss_payload_read_signal_check_d)) {
if (fss_payload_read_signal_received(main)) {
return F_status_set_error(F_interrupt);
}
- signal_check = 0;
+ main->signal_check = 0;
}
is_payload = fl_string_dynamic_partial_compare_string(f_fss_string_payload_s.string, data->buffer, f_fss_string_payload_s.used, data->objects.array[i]) == F_equal_to;
f_array_length_t at = 0;
f_status_t status = F_none;
- uint16_t signal_check = 0;
bool is_payload = F_false;
for (f_array_length_t i = 0; i < data->objects.used; ++i) {
if (!names[i]) continue;
- if (!((++signal_check) % fss_payload_read_signal_check_d)) {
+ if (!((++main->signal_check) % fss_payload_read_signal_check_d)) {
if (fss_payload_read_signal_received(main)) {
return F_status_set_error(F_interrupt);
}
- signal_check = 0;
+ main->signal_check = 0;
}
if (at == data->depths.array[0].value_at) {
f_string_range_t range = f_string_range_t_initialize;
f_array_length_t i = 0;
- uint16_t signal_check = 0;
range.start = data->contents.array[at].array[0].start;
range.stop = data->contents.array[at].array[0].stop;
for (i = range.start; i <= range.stop; ++i) {
- if (!((++signal_check) % fss_payload_read_signal_check_d)) {
+ if (!((++main->signal_check) % fss_payload_read_signal_check_d)) {
if (fss_payload_read_signal_received(main)) {
return F_status_set_error(F_interrupt);
}
- signal_check = 0;
+ main->signal_check = 0;
}
if (data->buffer.string[i] == f_string_eol_s.string[0]) {
}
f_array_length_t max = 0;
- uint16_t signal_check = 0;
for (f_array_length_t at = 0; at < data->contents.used; ++at) {
if (!names[at]) continue;
- if (!((++signal_check) % fss_payload_read_signal_check_d)) {
+ if (!((++main->signal_check) % fss_payload_read_signal_check_d)) {
if (fss_payload_read_signal_received(main)) {
return F_status_set_error(F_interrupt);
}
- signal_check = 0;
+ main->signal_check = 0;
}
if (data->contents.array[at].used > max) {
f_array_length_t line = 0;
f_status_t status = F_none;
- uint16_t signal_check = 0;
for (f_array_length_t i = 0; i < data->contents.used; ++i) {
if (!names[i]) continue;
- if (!((++signal_check) % fss_payload_read_signal_check_d)) {
+ if (!((++main->signal_check) % fss_payload_read_signal_check_d)) {
if (fss_payload_read_signal_received(main)) {
return F_status_set_error(F_interrupt);
}
- signal_check = 0;
+ main->signal_check = 0;
}
status = fss_payload_read_process_at_line(main, data, i, *delimits_object, *delimits_content, &line);
f_array_length_t total = 0;
f_string_range_t range = f_string_range_t_initialize;
f_array_length_t i = 0;
- uint16_t signal_check = 0;
for (f_array_length_t at = 0; at < data->contents.used; ++at) {
if (!names[at]) continue;
- if (!((++signal_check) % fss_payload_read_signal_check_d)) {
+ if (!((++main->signal_check) % fss_payload_read_signal_check_d)) {
if (fss_payload_read_signal_received(main)) {
return F_status_set_error(F_interrupt);
}
- signal_check = 0;
+ main->signal_check = 0;
}
if (data->option & fss_payload_read_data_option_object_d) {
}
if (main->parameters.remaining.used > 0) {
- uint16_t signal_check = 0;
-
flockfile(main->output.to.stream);
for (f_array_length_t i = 0; i < main->parameters.remaining.used; ++i) {
- if (!((++signal_check) % fss_status_code_signal_check_d)) {
+ if (!((++main->signal_check) % fss_status_code_signal_check_d)) {
if (fss_status_code_signal_received(main)) {
status = F_status_set_error(F_interrupt);
break;
}
- signal_check = 0;
+ main->signal_check = 0;
}
status2 = fss_status_code_process_check(main, argv[main->parameters.remaining.array[i]]);
}
if (main->parameters.remaining.used > 0) {
- uint16_t signal_check = 0;
-
flockfile(main->output.to.stream);
for (f_array_length_t i = 0; i < main->parameters.remaining.used; ++i) {
- if (!((++signal_check) % fss_status_code_signal_check_d)) {
+ if (!((++main->signal_check) % fss_status_code_signal_check_d)) {
if (fss_status_code_signal_received(main)) {
status = F_status_set_error(F_interrupt);
break;
}
- signal_check = 0;
+ main->signal_check = 0;
}
status2 = fss_status_code_process_number(main, argv[main->parameters.remaining.array[i]]);
}
if (main->parameters.remaining.used > 0) {
- uint16_t signal_check = 0;
-
flockfile(main->output.to.stream);
for (f_array_length_t i = 0; i < main->parameters.remaining.used; ++i) {
- if (!((++signal_check) % fss_status_code_signal_check_d)) {
+ if (!((++main->signal_check) % fss_status_code_signal_check_d)) {
if (fss_status_code_signal_received(main)) {
status = F_status_set_error(F_interrupt);
break;
}
- signal_check = 0;
+ main->signal_check = 0;
}
status2 = fss_status_code_process_normal(main, argv[main->parameters.remaining.array[i]]);
typedef struct {
f_console_parameters_t parameters;
+ uint16_t signal_check;
bool process_pipe;
fl_print_t output;
#define iki_read_main_t_initialize \
{ \
f_console_parameters_t_initialize, \
+ 0, \
F_false, \
fl_print_t_initialize, \
macro_fl_print_t_initialize_error(), \
}
if (F_status_is_fine(status) && main->parameters.remaining.used > 0) {
- uint16_t signal_check = 0;
f_file_t file = f_file_t_initialize;
for (f_array_length_t i = 0; i < main->parameters.remaining.used; ++i) {
- if (!((++signal_check) % iki_read_signal_check_d)) {
+ if (!((++main->signal_check) % iki_read_signal_check_d)) {
if (iki_read_signal_received(main)) {
status = F_status_set_error(F_interrupt);
break;
}
- signal_check = 0;
+ main->signal_check = 0;
}
macro_f_file_t_reset(file);
range.start = 0;
- for (uint16_t signal_check = 0; i < main->parameters.array[iki_read_parameter_name_e].values.used; ++i) {
+ for (; i < main->parameters.array[iki_read_parameter_name_e].values.used; ++i) {
- if (!((++signal_check) % iki_read_signal_check_d)) {
+ if (!((++main->signal_check) % iki_read_signal_check_d)) {
if (iki_read_signal_received(main)) {
f_string_dynamic_resize(0, &name);
return F_status_set_error(F_interrupt);
}
- signal_check = 0;
+ main->signal_check = 0;
}
index = main->parameters.array[iki_read_parameter_name_e].values.array[i];
* warning: The output file for warning printing.
* signal: The process signal management structure.
* context: The color context.
- *
- * @todo
*/
#ifndef _di_iki_write_main_t_
typedef struct {
f_console_parameters_t parameters;
+ uint16_t signal_check;
bool process_pipe;
fl_print_t output;
#define iki_write_main_t_initialize \
{ \
f_console_parameters_t_initialize, \
+ 0, \
F_false, \
fl_print_t_initialize, \
macro_fl_print_t_initialize_error(), \
f_array_length_t previous = 0;
f_string_range_t range = f_string_range_t_initialize;
- uint16_t signal_check = 0;
range.start = 0;
for (f_status_t status_pipe = F_none; ; ) {
- if (!((++signal_check) % iki_write_signal_check_d)) {
+ if (!((++main->signal_check) % iki_write_signal_check_d)) {
if (iki_write_signal_received(main)) {
status = F_status_set_error(F_interrupt);
break;
}
- signal_check = 0;
+ main->signal_check = 0;
}
if (status_pipe != F_none_eof) {
}
if (F_status_is_error_not(status)) {
- uint16_t signal_check = 0;
-
for (f_array_length_t i = 0; i < main->parameters.array[iki_write_parameter_object_e].values.used; ++i) {
- if (!((++signal_check) % iki_write_signal_check_d)) {
+ if (!((++main->signal_check) % iki_write_signal_check_d)) {
if (iki_write_signal_received(main)) {
status = F_status_set_error(F_interrupt);
break;
}
- signal_check = 0;
+ main->signal_check = 0;
}
status = iki_write_process(main, file, argv[main->parameters.array[iki_write_parameter_object_e].values.array[i]], argv[main->parameters.array[iki_write_parameter_content_e].values.array[i]], &escaped);
}
if (main->parameters.remaining.used > 0) {
- uint16_t signal_check = 0;
-
flockfile(main->output.to.stream);
for (f_array_length_t i = 0; i < main->parameters.remaining.used; ++i) {
- if (!((++signal_check) % status_code_signal_check_d)) {
+ if (!((++main->signal_check) % status_code_signal_check_d)) {
if (status_code_signal_received(main)) {
status = F_status_set_error(F_signal);
break;
}
- signal_check = 0;
+ main->signal_check = 0;
}
status2 = status_code_process_check(main, argv[main->parameters.remaining.array[i]]);
}
if (main->parameters.remaining.used > 0) {
- uint16_t signal_check = 0;
-
flockfile(main->output.to.stream);
for (f_array_length_t i = 0; i < main->parameters.remaining.used; ++i) {
- if (!((++signal_check) % status_code_signal_check_d)) {
+ if (!((++main->signal_check) % status_code_signal_check_d)) {
if (status_code_signal_received(main)) {
status = F_status_set_error(F_signal);
break;
}
- signal_check = 0;
+ main->signal_check = 0;
}
status2 = status_code_process_number(main, argv[main->parameters.remaining.array[i]]);
}
if (main->parameters.remaining.used > 0) {
- uint16_t signal_check = 0;
-
flockfile(main->output.to.stream);
for (f_array_length_t i = 0; i < main->parameters.remaining.used; ++i) {
- if (!((++signal_check) % status_code_signal_check_d)) {
+ if (!((++main->signal_check) % status_code_signal_check_d)) {
if (status_code_signal_received(main)) {
status = F_status_set_error(F_signal);
break;
}
- signal_check = 0;
+ main->signal_check = 0;
}
status2 = status_code_process_normal(main, argv[main->parameters.remaining.array[i]]);
flockfile(data->file.stream);
- for (uint16_t signal_check = 0; text.string[0] && F_status_is_error_not(status); ) {
+ for (; text.string[0] && F_status_is_error_not(status); ) {
- if (!((++signal_check) % utf8_signal_check_d)) {
+ if (!((++data->main->signal_check) % utf8_signal_check_d)) {
if (utf8_signal_received(data)) {
utf8_print_signal_received(data, status);
break;
}
+
+ data->main->signal_check = 0;
}
status = F_none;
bool valid = F_true;
bool next = F_true;
uint8_t mode_codepoint = utf8_codepoint_mode_ready_e;
- uint16_t signal_check = 0;
f_array_length_t i = 0;
f_array_length_t j = 0;
for (i = 0; F_status_is_fine(status) && i < data->buffer.used; ) {
- if (!((++signal_check) % utf8_signal_check_d)) {
+ if (!((++data->main->signal_check) % utf8_signal_check_d)) {
if (utf8_signal_received(data)) {
utf8_print_signal_received(data, status);
break;
}
+
+ data->main->signal_check = 0;
}
status = F_none;
bool valid = F_true;
bool next = F_true;
uint8_t mode_codepoint = utf8_codepoint_mode_ready_e;
- uint16_t signal_check = 0;
f_array_length_t i = 0;
f_array_length_t j = 0;
for (i = 0; F_status_is_fine(status) && i < data->buffer.used; ) {
- if (!((++signal_check) % utf8_signal_check_d)) {
+ if (!((++data->main->signal_check) % utf8_signal_check_d)) {
if (utf8_signal_received(data)) {
utf8_print_signal_received(data, status);
status = F_signal;
+
break;
}
+
+ data->main->signal_check = 0;
}
status = F_none;
f_file_t file = macro_f_file_t_initialize(0, -1, F_file_flag_read_only_d, 32768, F_file_default_write_size_d);
- for (uint16_t signal_check = 0; i < main->parameters.array[utf8_parameter_from_file_e].values.used && status != F_signal; ++i) {
+ for (; i < main->parameters.array[utf8_parameter_from_file_e].values.used && status != F_signal; ++i) {
- if (!((++signal_check) % utf8_signal_check_d)) {
+ if (!((++main->signal_check) % utf8_signal_check_d)) {
if (utf8_signal_received(&data)) {
status = F_status_set_error(F_signal);
break;
}
- signal_check = 0;
+ main->signal_check = 0;
}
index = main->parameters.array[utf8_parameter_from_file_e].values.array[i];
}
if (F_status_is_error_not(status) && status != F_signal && main->parameters.remaining.used) {
- uint16_t signal_check = 0;
-
for (f_array_length_t i = 0; F_status_is_error_not(status) && i < main->parameters.remaining.used; ++i) {
- if (!((++signal_check) % utf8_signal_check_d)) {
+ if (!((++main->signal_check) % utf8_signal_check_d)) {
if (utf8_signal_received(&data)) {
status = F_status_set_error(F_signal);
break;
}
- signal_check = 0;
+ main->signal_check = 0;
}
utf8_print_section_header_parameter(&data, main->parameters.remaining.array[i]);