Rename c_void to anyopaque (ziglang/zig/#10316)

This commit is contained in:
Robin Voetter
2021-12-20 02:15:00 +01:00
parent 0fffe145ed
commit bf0d0bc43b
2 changed files with 3 additions and 3 deletions

View File

@@ -218,7 +218,7 @@ Defaults are generated for certain fields of structs:
```zig
pub const InstanceCreateInfo = extern struct {
s_type: StructureType = .instance_create_info,
p_next: ?*const c_void = null,
p_next: ?*const anyopaque = null,
flags: InstanceCreateFlags,
...
};

View File

@@ -679,7 +679,7 @@ fn Renderer(comptime WriterType: type) type {
}
if (child_is_void) {
try self.writer.writeAll("c_void");
try self.writer.writeAll("anyopaque");
} else {
try self.renderTypeInfo(pointer.child.*);
}
@@ -1028,7 +1028,7 @@ fn Renderer(comptime WriterType: type) type {
\\ }});
\\ return struct {{
\\ dispatch: Dispatch,
\\
\\
\\ const Self = @This();
, .{ name, name });