this repo has no description
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

remove more unused code

-38
-9
src/lua.zig
··· 92 92 return app; 93 93 } 94 94 95 - // /// retrieves the *Loop lightuserdata from the registry index 96 - // fn getLoop(lua: *Lua) *EventLoop { 97 - // const lua_type = lua.getField(registry_index, loop_key); // [userdata] 98 - // assert(lua_type == .light_userdata); // set by comlink as a lightuserdata 99 - // const loop = lua.toUserdata(comlink.EventLoop, -1) catch unreachable; // already asserted 100 - // // as lightuserdata 101 - // return loop; 102 - // } 103 - 104 95 fn getClient(lua: *Lua) *irc.Client { 105 96 const lua_type = lua.getField(registry_index, client_key); // [userdata] 106 97 assert(lua_type == .light_userdata); // set by comlink as a lightuserdata
-28
src/main.zig
··· 11 11 12 12 pub const panic = vaxis.panic_handler; 13 13 14 - // pub const std_options: std.Options = .{ 15 - // .log_scope_levels = &.{ 16 - // .{ .scope = .vaxis, .level = .warn }, 17 - // .{ .scope = .vaxis_parser, .level = .warn }, 18 - // }, 19 - // }; 20 - 21 14 pub const version = options.version; 22 15 23 16 /// Called after receiving a terminating signal ··· 82 75 var app = try vaxis.vxfw.App.init(gpa.allocator()); 83 76 defer app.deinit(); 84 77 85 - // const lua = try Lua.init(&alloc); 86 - // defer lua.deinit(); 87 - 88 - // var app = try comlink.App.init(alloc); 89 - // defer app.deinit(); 90 - 91 78 var comlink_app: comlink.App = undefined; 92 79 try comlink_app.init(gpa.allocator(), &app.vx.unicode); 93 80 defer comlink_app.deinit(); 94 81 95 82 try app.run(comlink_app.widget(), .{}); 96 - 97 - // app.run(lua) catch |err| { 98 - // switch (err) { 99 - // // ziglua errors 100 - // error.LuaError => { 101 - // const msg = lua.toString(-1) catch ""; 102 - // const duped = alloc.dupe(u8, msg) catch ""; 103 - // app.deinit(); 104 - // defer alloc.free(duped); 105 - // log.err("{s}", .{duped}); 106 - // return err; 107 - // }, 108 - // else => return err, 109 - // } 110 - // }; 111 83 } 112 84 113 85 fn argMatch(maybe_short: ?[]const u8, maybe_long: ?[]const u8, arg: [:0]const u8) bool {
-1
src/ui.zig
··· 1 - const std = @import("std");