1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

cgen: format generated struct definition c codes (#10074)

This commit is contained in:
yuyi 2021-05-11 01:27:52 +08:00 committed by GitHub
parent 19b4504072
commit dcf4d73c87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5577,7 +5577,7 @@ fn (mut g Gen) write_types(types []ast.TypeSymbol) {
g.type_definitions.writeln('\t$type_name $field_name;')
}
} else {
g.type_definitions.writeln('EMPTY_STRUCT_DECLARATION;')
g.type_definitions.writeln('\tEMPTY_STRUCT_DECLARATION;')
}
// g.type_definitions.writeln('} $name;\n')
//
@ -5586,7 +5586,7 @@ fn (mut g Gen) write_types(types []ast.TypeSymbol) {
} else {
''
}
g.type_definitions.writeln('} $attrs;\n')
g.type_definitions.writeln('}$attrs;\n')
}
ast.Alias {
// ast.Alias { TODO