Commit 8e439714 authored by Jürg Billeter's avatar Jürg Billeter Committed by Jürg Billeter

fix public static fields, fixes bug 477207

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

	* gobject/valaccodegenerator.vala: fix public static fields,
	  fixes bug 477207

svn path=/trunk/; revision=619
parent fc1e051c
2007-09-18 Jürg Billeter <j@bitron.ch>
* gobject/valaccodegenerator.vala: fix public static fields,
fixes bug 477207
2007-09-18 Jürg Billeter <j@bitron.ch>
* gobject/valaccodegeneratorclass.vala,
......
......@@ -419,18 +419,6 @@ public class Vala.CCodeGenerator : CodeGenerator {
cdecl.add_declarator (new CCodeVariableDeclarator (f.get_cname ()));
header_type_member_declaration.append (cdecl);
cdecl = new CCodeDeclaration (f.type_reference.get_cname ());
var var_decl = new CCodeVariableDeclarator (f.get_cname ());
if (f.initializer != null) {
var init = (CCodeExpression) f.initializer.ccodenode;
if (is_constant_ccode_expression (init)) {
var_decl.initializer = init;
}
}
cdecl.add_declarator (var_decl);
cdecl.modifiers = CCodeModifiers.EXTERN;
source_type_member_declaration.append (cdecl);
lhs = new CCodeIdentifier (f.get_cname ());
}
} else if (f.access == SymbolAccessibility.PRIVATE) {
......
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