Rename utils.allocator to utils.gpa
it seems like `gpa` has become pretty much the universally agreed upon name for your... gpa, so we're renaming.
This commit is contained in:
parent
1df6820b1d
commit
95425aa73f
14 changed files with 89 additions and 90 deletions
|
|
@ -58,7 +58,7 @@ pub const Options = struct {
|
|||
};
|
||||
|
||||
pub fn create(options: Options) !*Context {
|
||||
const context = try utils.allocator.create(Context);
|
||||
const context = try utils.gpa.create(Context);
|
||||
errdefer context.destroy();
|
||||
|
||||
context.* = .{
|
||||
|
|
@ -88,7 +88,7 @@ pub fn destroy(context: *Context) void {
|
|||
}
|
||||
context.buffer_pool.deinit();
|
||||
|
||||
utils.allocator.destroy(context);
|
||||
utils.gpa.destroy(context);
|
||||
}
|
||||
|
||||
pub fn manage(context: *Context) void {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue