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

@ -78,7 +78,7 @@ rotation_current: ?u32 = null,
link: wl.list.Link,
pub fn create(context: *Context, river_libinput_device_v1: *river.LibinputDeviceV1) !*LibinputDevice {
const libinput_device = try utils.allocator.create(LibinputDevice);
const libinput_device = try utils.gpa.create(LibinputDevice);
errdefer libinput_device.destroy();
libinput_device.* = .{
@ -101,7 +101,7 @@ pub fn destroy(libinput_device: *LibinputDevice) void {
input_device.libinput_device = null;
}
libinput_device.link.remove();
utils.allocator.destroy(libinput_device);
utils.gpa.destroy(libinput_device);
}
fn riverLibinputDeviceV1Listener(river_libinput_device_v1: *river.LibinputDeviceV1, event: river.LibinputDeviceV1.Event, libinput_device: *LibinputDevice) void {