xo-alloc + xo-allocutil: refactor to shrink dep surface area

This commit is contained in:
Roland Conybeare 2025-12-01 01:20:49 -05:00
commit 540b43d971
34 changed files with 479 additions and 323 deletions

View file

@ -21,7 +21,7 @@ namespace xo {
List::nil = new List(nullptr, nullptr);
gp<List>
List::from(gp<Object> x) {
List::from(gp<IObject> x) {
return dynamic_cast<List *>(x.ptr());
}
@ -99,7 +99,7 @@ namespace xo {
return sizeof(List);
}
Object *
IObject *
List::_shallow_copy(gc::IAlloc * gc) const
{
assert(!(this->is_nil()));