cgen: remove debugging comments added in a05408b

pull/7162/head
joe-conigliaro 2020-12-06 15:16:45 +11:00
parent cb5f75c7bf
commit d779510616
No known key found for this signature in database
GPG Key ID: C12F7136C08206F1
1 changed files with 2 additions and 2 deletions

View File

@ -627,7 +627,7 @@ pub fn (mut g Gen) write_fn_typesymbol_declaration(sym table.TypeSymbol) {
}
if !info.has_decl && (not_anon || is_fn_sig) {
fn_name := sym.cname
g.type_definitions.write('/* HERE */typedef ${g.typ(func.return_type)} /* HERE2 */(*$fn_name)(')
g.type_definitions.write('typedef ${g.typ(func.return_type)} (*$fn_name)(')
for i, param in func.params {
g.type_definitions.write(g.typ(param.typ))
if i < func.params.len - 1 {
@ -5340,7 +5340,7 @@ fn (mut g Gen) type_default(typ_ table.Type) string {
}
// Always set pointers to 0
if typ.is_ptr() {
return '0'
return '
}
sym := g.table.get_type_symbol(typ)
if sym.kind == .array {