From c8be2169ac9fc6c34235b57b73d1177a507e7597 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Fri, 6 Dec 2024 20:35:37 -0600 Subject: [PATCH] Progress: Continue eki_read program by extending iki_read. IKI/EKI Vocabularies (Objects) may not have spaces. This means that I can safely print the list of Objects with a space between. All Objects on a single line in `--object` mode will represent the objects assigned to that particular IKI/EKI variable. --- level_3/iki_read/c/eki/print.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/level_3/iki_read/c/eki/print.c b/level_3/iki_read/c/eki/print.c index 6c13da5..042b376 100644 --- a/level_3/iki_read/c/eki/print.c +++ b/level_3/iki_read/c/eki/print.c @@ -130,7 +130,14 @@ extern "C" { iki_read_print_data_wrap_append(&main->program.output, index); } else if (main->setting.flag & iki_read_main_flag_object_d) { - f_print_dynamic_partial(main->cache.buffer, data->vocabularys.array[index].array[0], main->program.output.to); + for (at = 0; at < data->vocabularys.array[index].used; ) { + + f_print_dynamic_partial(main->cache.buffer, data->vocabularys.array[index].array[at], main->program.output.to); + + if (++at < data->vocabularys.array[index].used) { + f_print_dynamic_raw(f_string_space_s, print->to); + } + } // for } else { range.start = data->variable.array[index].start; -- 1.8.3.1