tools: fix some bitrot
This commit is contained in:
@@ -635,7 +635,7 @@ pub fn main() anyerror!void {
|
||||
const args = try std.process.argsAlloc(allocator);
|
||||
|
||||
var stdout_buffer: [4000]u8 = undefined;
|
||||
var stdout_writer = fs.stdout().writerStreaming(&stdout_buffer);
|
||||
var stdout_writer = fs.File.stdout().writerStreaming(&stdout_buffer);
|
||||
const stdout = &stdout_writer.interface;
|
||||
|
||||
if (args.len <= 1) printUsageAndExit(args[0]);
|
||||
@@ -767,7 +767,7 @@ pub fn main() anyerror!void {
|
||||
try stdout.print(
|
||||
\\.{{
|
||||
\\ .name = "{s}",
|
||||
\\ .syntax = {s},
|
||||
\\ .syntax = {f},
|
||||
\\ .zig_equivalent = .{s},
|
||||
\\ .pd1 = {},
|
||||
\\ .pd2 = {},
|
||||
@@ -797,7 +797,7 @@ pub fn main() anyerror!void {
|
||||
try stdout.print(
|
||||
\\.{{
|
||||
\\ .name = "{s}",
|
||||
\\ .syntax = {s},
|
||||
\\ .syntax = {f},
|
||||
\\ .zig_equivalent = .other,
|
||||
\\ .pd1 = {},
|
||||
\\ .pd2 = {},
|
||||
@@ -845,14 +845,10 @@ const Syntax = union(enum) {
|
||||
|
||||
pub fn format(
|
||||
self: Syntax,
|
||||
comptime fmt: []const u8,
|
||||
options: std.fmt.FormatOptions,
|
||||
out_stream: anytype,
|
||||
) !void {
|
||||
_ = fmt;
|
||||
_ = options;
|
||||
out_stream: *std.Io.Writer,
|
||||
) std.Io.Writer.Error!void {
|
||||
switch (self) {
|
||||
.multi_arg => |n| return out_stream.print(".{{.{s}={}}}", .{ @tagName(self), n }),
|
||||
.multi_arg => |n| return out_stream.print(".{{.{t}={d}}}", .{ self, n }),
|
||||
else => return out_stream.print(".{s}", .{@tagName(self)}),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user