continue;
}
- else if (entry->items.used) {
- at = entry->items.used++;
- }
else {
+ if (entry->items.used) {
+ status = controller_entry_items_increase_by(controller_common_allocation_small_d, &entry->items);
+
+ if (F_status_is_error(status)) {
+ controller_entry_print_error(is_entry, global.main->error, cache->action, F_status_set_fine(status), "controller_entry_items_increase_by", F_true, global.thread);
+
+ break;
+ }
- // skip position 0, which is reserved for "main".
- entry->items.array[0].name.used = 0;
+ at = entry->items.used++;
+ }
+ else {
+ if (entry->items.size < 2) {
+ status = controller_entry_items_increase_by(2, &entry->items);
- at = 1;
- entry->items.used = 2;
+ if (F_status_is_error(status)) {
+ controller_entry_print_error(is_entry, global.main->error, cache->action, F_status_set_fine(status), "controller_entry_items_increase_by", F_true, global.thread);
+
+ break;
+ }
+ }
+
+ // skip position 0, which is reserved for "main".
+ entry->items.array[0].name.used = 0;
+
+ at = 1;
+ entry->items.used = 2;
+ }
}
entry->items.array[at].line = cache->action.line_item;