xo-reader2: adopt DSchematikaParser as gc-aware object

Use as virtual GC root.
This commit is contained in:
Roland Conybeare 2026-03-24 22:15:08 -04:00
commit 3686c3420d
9 changed files with 570 additions and 268 deletions

View file

@ -89,6 +89,18 @@ namespace xo {
return false;
}
void
ParserStack::forward_children(obj<ACollector> gc) noexcept
{
for (ParserStack * target = this; target; target = target->parent_) {
// ParserStack::ckp: skip, POD
if (target->ssm_)
target->ssm_.forward_children(gc);
}
}
} /*namespace scm*/
} /*namespace xo*/