Commit 18c627d4 authored by Jürg Billeter's avatar Jürg Billeter Committed by Jürg Billeter
Browse files

append the generated free function to the right file fragment

2007-09-08  Juerg Billeter  <j@bitron.ch>

	* gobject/valacodegeneratorclass.vala: append the generated free
	  function to the right file fragment

svn path=/trunk/; revision=591
parent 10a98161
2007-09-08 Jürg Billeter <j@bitron.ch>
* gobject/valacodegeneratorclass.vala: append the generated free
function to the right file fragment
2007-09-08 Jürg Billeter <j@bitron.ch>
* gobject/valacodegeneratorsignal.vala: report an error when trying to
......
......@@ -169,7 +169,11 @@ public class Vala.CodeGenerator {
function.add_parameter (new CCodeFormalParameter ("self", cl.get_cname () + "*"));
decl_frag.append (function.copy ());
if (cl.access != SymbolAccessibility.PRIVATE) {
header_type_member_declaration.append (function.copy ());
} else {
source_type_member_declaration.append (function.copy ());
}
var cblock = new CCodeBlock ();
......@@ -182,7 +186,7 @@ public class Vala.CodeGenerator {
function.block = cblock;
def_frag.append (function);
source_type_member_definition.append (function);
}
current_type_symbol = old_type_symbol;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment