It seems that I completely forgot to actually save the parent location.
Without this there is no way to map one nested item to its parent.
if (F_status_is_error(status)) break;
}
- // only assign object positions for nested objects.
- if (depth > 0) {
+ if (depth) {
+ found->depth[depth].array[position].parent = found->depth[depth - 1].used;
+
+ // only assign object positions for nested objects.
found->depth[depth].array[position].object.start = objects.array[depth].start;
found->depth[depth].array[position].object.stop = objects.array[depth].stop;
}