Field defaults, make types optional by default

This commit is contained in:
Robin Voetter
2020-06-16 14:15:18 +02:00
parent 1631265a1c
commit 10d0b3bfcf
2 changed files with 22 additions and 5 deletions

View File

@@ -449,7 +449,7 @@ fn parsePointers(allocator: *Allocator, xctok: *XmlCTokenizer, inner_const: bool
type_info = .{
.pointer = .{
.is_const = is_const or first_const,
.is_optional = false, // set elsewhere
.is_optional = true, // set elsewhere
.size = .one, // set elsewhere
.child = child,
},