zig stage 2 compatibility

This commit is contained in:
Robin Voetter
2022-08-20 00:30:17 +02:00
parent 2bd9927cfe
commit 5af6ffe864
4 changed files with 7 additions and 7 deletions

View File

@@ -109,8 +109,8 @@ pub const Command = struct {
params: []Param,
return_type: *TypeInfo,
success_codes: [][]const u8,
error_codes: [][]const u8,
success_codes: []const []const u8,
error_codes: []const []const u8,
};
pub const Pointer = struct {

View File

@@ -547,7 +547,7 @@ fn Renderer(comptime WriterType: type) type {
if (optional) {
try self.writer.writeByte('?');
}
try self.writer.writeAll("fn(");
try self.writer.writeAll("*const fn(");
for (command_ptr.params) |param| {
try self.writeIdentifierWithCase(.snake, param.name);
try self.writer.writeAll(": ");