cache->delimits.used = 0;
f_array_length_t i = 0;
- f_array_length_t line = 0;
controller_entry_t *entry = is_entry ? &global.setting->entry : &global.setting->exit;
f_state_t state = f_state_t_initialize;
for (; i < cache->object_actions.used; ++i) {
+ cache->action.line_action = 0;
+
status = f_fss_count_lines(state, cache->buffer_file, cache->object_actions.array[i].start, &cache->action.line_action);
if (F_status_is_error(status)) {
break;
}
- line = ++cache->action.line_action;
+ ++cache->action.line_action;
cache->action.name_action.used = 0;
status = fl_string_dynamic_partial_rip_nulless(cache->buffer_file, cache->object_actions.array[i], &cache->action.name_action);
}
else if (fl_string_dynamic_compare(controller_define_s, cache->action.name_action) == F_equal_to) {
if (cache->content_actions.array[i].used != 2) {
- controller_entry_settings_read_print_setting_requires_exactly(global, is_entry, *cache, 1);
+ controller_entry_settings_read_print_setting_requires_exactly(global, is_entry, *cache, 2);
continue;
}
}
else if (fl_string_dynamic_compare(controller_parameter_s, cache->action.name_action) == F_equal_to) {
if (cache->content_actions.array[i].used != 2) {
- controller_entry_settings_read_print_setting_requires_exactly(global, is_entry, *cache, 1);
+ controller_entry_settings_read_print_setting_requires_exactly(global, is_entry, *cache, 2);
continue;
}
controller_lock_print(global.main->error.to, global.thread);
- fl_print_format("%r%[%QThe %s item setting '%]", global.main->error.to.stream, f_string_eol_s, global.main->error.context, global.main->error.prefix, is_entry ? controller_entry_s : controller_exit_s, global.main->error.context);
+ fl_print_format("%r%[%QThe %Q item setting '%]", global.main->error.to.stream, f_string_eol_s, global.main->error.context, global.main->error.prefix, is_entry ? controller_entry_s : controller_exit_s, global.main->error.context);
fl_print_format("%[%Q%]", global.main->error.to.stream, global.main->error.notable, cache.action.name_action, global.main->error.notable);
fl_print_format("%[' requires exactly %]", global.main->error.to.stream, global.main->error.context, global.main->error.context);
fl_print_format("%[%un%]", global.main->error.to.stream, global.main->error.notable, total, global.main->error.notable);
- fl_print_format("%[' %r.%]%r", global.main->error.to.stream, global.main->error.context, total > 1 ? controller_parameters_s : controller_parameter_s, global.main->error.context, f_string_eol_s);
+ fl_print_format("%[ Content.%]%r", global.main->error.to.stream, global.main->error.context, global.main->error.context, f_string_eol_s);
controller_entry_print_error_cache(is_entry, global.main->error, cache.action);