1
0
forked from mirror/vulkan-zig

Rename TypeInfo members in snake case

This commit is contained in:
Robin Voetter
2020-06-10 13:48:07 +02:00
parent 20a81f35fb
commit b295649176
3 changed files with 22 additions and 22 deletions

View File

@@ -241,7 +241,7 @@ pub fn parseDeclaration(allocator: *Allocator, xctok: *XmlCTokenizer) !registry.
if (tok.id != .type_name) return error.InvalidSyntax;
const type_name = tok.text;
var type_info = registry.TypeInfo{.Alias = type_name};
var type_info = registry.TypeInfo{.alias = type_name};
// Parse pointers
type_info = try parsePointers(allocator, xctok, inner_is_const, type_info);
@@ -260,7 +260,7 @@ pub fn parseDeclaration(allocator: *Allocator, xctok: *XmlCTokenizer) !registry.
const child = try allocator.create(registry.TypeInfo);
child.* = type_info;
type_info = .{
.Array = .{
.array = .{
.size = array_size,
.child = child,
}
@@ -305,7 +305,7 @@ fn parsePointers(
child.* = type_info;
type_info = .{
.Pointer = .{
.pointer = .{
.size = .one, // set elsewhere
.is_const = is_const or (first_const),
.child = child,