]> Kevux Git Server - fll/commitdiff
Progress: Continue eki_read program by extending iki_read.
authorKevin Day <Kevin@kevux.org>
Sat, 7 Dec 2024 02:35:37 +0000 (20:35 -0600)
committerKevin Day <Kevin@kevux.org>
Sat, 7 Dec 2024 02:35:37 +0000 (20:35 -0600)
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

index 6c13da5ef0a15e9d35a9aa6d38d6ff626e6f2617..042b376dabd60f2ba32b3e4a1aacbf2523f0eacd 100644 (file)
@@ -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;