Compare commits

...

3 commits

2 changed files with 7 additions and 7 deletions

View file

@ -18,8 +18,8 @@
.hash = "dizzy-1.0.0-q40X4YCRAAAGYO9QOZiYYSOwiiFlqZlecMuQcxPiBcXM",
},
.thespian = .{
.url = "git+https://github.com/neurocyte/thespian?ref=master#d9c93e9783546f2fb040ffcff84576fe46d6495b",
.hash = "thespian-0.0.1-owFOjjQbBgAxIs7QYErDVaESLxgLdNQcoTIgU-QoNqlt",
.url = "git+https://github.com/neurocyte/thespian?ref=master#e9629548ee015d80b5016503a44ada3667d6db98",
.hash = "thespian-0.0.1-owFOji8bBgCadcbBQrlLXg4jVd0KXvVYQpBD08bi4ff5",
},
.themes = .{
.url = "https://github.com/neurocyte/flow-themes/releases/download/master-952f9f630ea9544088fd30293666ee0650b7a690/flow-themes.tar.gz",
@ -30,8 +30,8 @@
.hash = "fuzzig-0.1.1-Ji0xivxIAQBD0g8O_NV_0foqoPf3elsg9Sc3pNfdVH4D",
},
.vaxis = .{
.url = "git+https://github.com/neurocyte/libvaxis?ref=zig-0.15#851427cce25664626f5005322903c7398ecce781",
.hash = "vaxis-0.5.1-BWNV_B8YCQCzszczPof3gSnh1UJYBkGUouqR1m_NKbL3",
.url = "git+https://github.com/neurocyte/libvaxis?ref=zig-0.15#52d9193a3bbaf529bdde0a4fe1bf7fa793392856",
.hash = "vaxis-0.5.1-BWNV_FcYCQCTHIK-wrMmgBpU3TppdGXHmbrbdM-RyWrw",
},
.zeit = .{
.url = "git+https://github.com/rockorager/zeit?ref=zig-0.15#ed2ca60db118414bda2b12df2039e33bad3b0b88",

View file

@ -147,18 +147,18 @@ pub const List = struct {
pub fn init(allocator: Allocator) List {
return .{
.allocator = allocator,
.list = ArrayList(EventHandler).init(allocator),
.list = .empty,
};
}
pub fn deinit(self: *List) void {
for (self.list.items) |*i|
i.deinit();
self.list.deinit();
self.list.deinit(self.allocator);
}
pub fn add(self: *List, h: EventHandler) !void {
(try self.list.addOne()).* = h;
(try self.list.addOne(self.allocator)).* = h;
}
pub fn remove(self: *List, h: EventHandler) !void {