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:
Ben Buhse 2026-02-12 13:40:57 -06:00
commit 95425aa73f
No known key found for this signature in database
GPG key ID: 7916ACFCD38FD0B4
14 changed files with 89 additions and 90 deletions

View file

@ -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