mem: rename Allocator primitives to alloc_bytes/dealloc_bytes (Phase 4 naming pulled forward, Agra-approved)
This commit is contained in:
@@ -18,7 +18,7 @@ Box :: struct {
|
||||
init :: (parent_alloc: Allocator, size: s64) -> *Box {
|
||||
self : *Box = xx malloc(size_of(Box));
|
||||
self.parent = parent_alloc;
|
||||
self.first_ptr = self.parent.alloc(size);
|
||||
self.first_ptr = self.parent.alloc_bytes(size);
|
||||
self
|
||||
}
|
||||
}
|
||||
@@ -26,7 +26,7 @@ Box :: struct {
|
||||
make_box :: (parent_alloc: Allocator, size: s64) -> *Box {
|
||||
self : *Box = xx malloc(size_of(Box));
|
||||
self.parent = parent_alloc;
|
||||
self.first_ptr = self.parent.alloc(size);
|
||||
self.first_ptr = self.parent.alloc_bytes(size);
|
||||
self
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user