2007-04-18 Jürg Billeter <j@bitron.ch>
* vala/valacodegenerator.vala: use const types where appropriate,
fixes bug 428393
svn path=/trunk/; revision=286
2007-04-18 Jürg Billeter <j@bitron.ch>
+ * vala/valacodegenerator.vala: use const types where appropriate,
+ fixes bug 428393
+
+2007-04-18 Jürg Billeter <j@bitron.ch>
+
* vala/valacodegenerator.vala: simplify unref expression for non-null
types
* vala/valaclass.vala: don't mark fields as non-null due to
public override void visit_formal_parameter (FormalParameter! p) {
if (!p.ellipsis) {
- p.ccodenode = new CCodeFormalParameter (p.name, p.type_reference.get_cname ());
+ p.ccodenode = new CCodeFormalParameter (p.name, p.type_reference.get_cname (false, !p.type_reference.takes_ownership));
}
}
var cfrag = new CCodeFragment ();
foreach (VariableDeclarator decl in stmt.declaration.get_variable_declarators ()) {
- var cdecl = new CCodeDeclaration (decl.type_reference.get_cname ());
+ var cdecl = new CCodeDeclaration (decl.type_reference.get_cname (false, !decl.type_reference.takes_ownership));
cdecl.add_declarator ((CCodeVariableDeclarator) decl.ccodenode);