mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2024-06-01 19:11:52 +02:00
update mzte-nv to latest zig
This commit is contained in:
parent
782e8f1f35
commit
55c5c73a71
|
@ -17,5 +17,7 @@ pub fn confgenGet(comptime T: type, root_path: []const u8, alloc: std.mem.Alloca
|
|||
.init(alloc, buf_reader.reader());
|
||||
defer reader.deinit();
|
||||
|
||||
return try std.json.parseFromTokenSource(T, alloc, &reader, confgen_json_opt);
|
||||
// We just grab the value from the parse result as this data will almost certainly have been
|
||||
// allocated with the builder's arena anyways.
|
||||
return (try std.json.parseFromTokenSource(T, alloc, &reader, confgen_json_opt)).value;
|
||||
}
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
|
||||
.dependencies = .{
|
||||
.znvim = .{
|
||||
.url = "https://mzte.de/git/LordMZTE/znvim/archive/cf233fd3c6b1205232755819dd781411dfc31955.tar.gz",
|
||||
.hash = "122089cc376a4b66c4bb422d9a6ec1e3520c551ec292318a269c601b548b653defc9",
|
||||
.url = "https://mzte.de/git/LordMZTE/znvim/archive/7f3ee7246c8e45b6f9795c341bbb7c96166da87a.tar.gz",
|
||||
.hash = "12202243825f04956b325c59831b1380810cba6210a7455441a9a357013f4f7b193a",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ pub fn luaPushAny(l: *c.lua_State, x: anytype) void {
|
|||
|
||||
switch (@typeInfo(T)) {
|
||||
.Void, .Null => c.lua_pushnil(l),
|
||||
.Bool => c.lua_pushboolean(l, @intCast(c_int, @boolToInt(x))),
|
||||
.Bool => c.lua_pushboolean(l, @intCast(c_int, @intFromBool(x))),
|
||||
.Int, .ComptimeInt => c.lua_pushinteger(l, @intCast(c_int, x)),
|
||||
.Float, .ComptimeFloat => c.lua_pushnumber(l, @floatCast(c.lua_Number, x)),
|
||||
.Pointer => |P| {
|
||||
|
@ -67,7 +67,7 @@ pub fn luaPushAny(l: *c.lua_State, x: anytype) void {
|
|||
|
||||
inline for (S.fields) |Field| {
|
||||
luaPushAny(l, @field(x, Field.name));
|
||||
c.lua_setfield(l, -2, Field.name.ptr);
|
||||
c.lua_setfield(l, -2, (Field.name ++ &[_]u8{0}).ptr);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue