xo-alloc + xo-allocutil: refactor to shrink dep surface area
This commit is contained in:
parent
8d4649c6cf
commit
540b43d971
34 changed files with 479 additions and 323 deletions
|
|
@ -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()));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue