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
|
|
@ -17,7 +17,7 @@ outputs: wl.list.Head(Output, .link),
|
|||
orphan_windows: wl.list.Head(Window, .link),
|
||||
|
||||
pub fn create(context: *Context, window_manager_v1: *river.WindowManagerV1) !*WindowManager {
|
||||
const wm = try utils.allocator.create(WindowManager);
|
||||
const wm = try utils.gpa.create(WindowManager);
|
||||
errdefer wm.destroy();
|
||||
|
||||
wm.* = .{
|
||||
|
|
@ -53,7 +53,7 @@ pub fn destroy(wm: *WindowManager) void {
|
|||
}
|
||||
}
|
||||
|
||||
utils.allocator.destroy(wm);
|
||||
utils.gpa.destroy(wm);
|
||||
}
|
||||
|
||||
/// Get the next output in the list, wrapping to first if at end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue