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

pull/10078/head
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
1 changed files with 2 additions and 2 deletions

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