mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-17 01:06:08 +03:00
Zig 0.14 fixes
This commit is contained in:
@ -14,7 +14,7 @@
|
||||
.mach_glfw = .{
|
||||
// mitchellh/mach-glfw
|
||||
.url = "https://github.com/mitchellh/mach-glfw/archive/112fc46340f5c8527e072e442e0375004303e82b.zip",
|
||||
.hash = "12206ed982e709e565d536ce930701a8c07edfd2cfdce428683f3f2a601d37696a63",
|
||||
.hash = "12209bd47e260a481f9c1b46ecae3cf3f62750caf6b73e39610e6e127974e50bb1a9",
|
||||
.lazy = true,
|
||||
},
|
||||
.vaxis = .{
|
||||
|
@ -27,7 +27,7 @@ pub fn genConfig(writer: anytype, cli: bool) !void {
|
||||
);
|
||||
|
||||
@setEvalBranchQuota(3000);
|
||||
inline for (@typeInfo(Config).Struct.fields) |field| {
|
||||
inline for (@typeInfo(Config).@"struct".fields) |field| {
|
||||
if (field.name[0] == '_') continue;
|
||||
|
||||
try writer.writeAll("**`");
|
||||
@ -56,7 +56,7 @@ pub fn genActions(writer: anytype) !void {
|
||||
\\
|
||||
);
|
||||
|
||||
inline for (@typeInfo(Action).Enum.fields) |field| {
|
||||
inline for (@typeInfo(Action).@"enum".fields) |field| {
|
||||
const action = std.meta.stringToEnum(Action, field.name).?;
|
||||
|
||||
switch (action) {
|
||||
@ -92,9 +92,9 @@ pub fn genKeybindActions(writer: anytype) !void {
|
||||
);
|
||||
|
||||
const info = @typeInfo(KeybindAction);
|
||||
std.debug.assert(info == .Union);
|
||||
std.debug.assert(info == .@"union");
|
||||
|
||||
inline for (info.Union.fields) |field| {
|
||||
inline for (info.@"union".fields) |field| {
|
||||
if (field.name[0] == '_') continue;
|
||||
|
||||
try writer.writeAll("**`");
|
||||
|
@ -34,7 +34,7 @@ fn genConfig(alloc: std.mem.Allocator, writer: anytype) !void {
|
||||
\\
|
||||
);
|
||||
|
||||
inline for (@typeInfo(Config).Struct.fields) |field| {
|
||||
inline for (@typeInfo(Config).@"struct".fields) |field| {
|
||||
if (field.name[0] == '_') continue;
|
||||
try genConfigField(alloc, writer, ast, field.name);
|
||||
}
|
||||
@ -78,7 +78,7 @@ fn genActions(alloc: std.mem.Allocator, writer: anytype) !void {
|
||||
\\
|
||||
);
|
||||
|
||||
inline for (@typeInfo(Action).Enum.fields) |field| {
|
||||
inline for (@typeInfo(Action).@"enum".fields) |field| {
|
||||
const action_file = comptime action_file: {
|
||||
const action = @field(Action, field.name);
|
||||
break :action_file action.file();
|
||||
@ -126,7 +126,7 @@ fn genKeybindActions(alloc: std.mem.Allocator, writer: anytype) !void {
|
||||
\\
|
||||
);
|
||||
|
||||
inline for (@typeInfo(KeybindAction).Union.fields) |field| {
|
||||
inline for (@typeInfo(KeybindAction).@"union".fields) |field| {
|
||||
if (field.name[0] == '_') continue;
|
||||
try genConfigField(alloc, writer, ast, field.name);
|
||||
}
|
||||
|
Reference in New Issue
Block a user