From d779510616a5d92bf005fe9addd1313c3197fdcd Mon Sep 17 00:00:00 2001 From: joe-conigliaro Date: Sun, 6 Dec 2020 15:16:45 +1100 Subject: [PATCH] cgen: remove debugging comments added in a05408b --- vlib/v/gen/cgen.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vlib/v/gen/cgen.v b/vlib/v/gen/cgen.v index 70291e7481..bccb0620c5 100644 --- a/vlib/v/gen/cgen.v +++ b/vlib/v/gen/cgen.v @@ -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 {