[vala/emit-let: 1/2] codegen: Port ccode comma expressions to use ccode (initializers)
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/emit-let: 1/2] codegen: Port ccode comma expressions to use ccode (initializers)
- Date: Tue, 15 Feb 2011 13:00:42 +0000 (UTC)
commit 8f50f0b2241397217df7c75dee5d62e236fc3c43
Author: Luca Bruno <lucabru src gnome org>
Date: Tue Feb 15 12:48:34 2011 +0100
codegen: Port ccode comma expressions to use ccode (initializers)
codegen/valaccodebasemodule.vala | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala
index c0adf2a..1087139 100644
--- a/codegen/valaccodebasemodule.vala
+++ b/codegen/valaccodebasemodule.vala
@@ -2162,8 +2162,6 @@ public abstract class Vala.CCodeBaseModule : CodeGenerator {
var instance = get_variable_cexpression (get_variable_cname (temp_decl.name));
- var ccomma = new CCodeCommaExpression ();
-
var field_it = st.get_fields ().iterator ();
foreach (Expression expr in list.get_initializers ()) {
Field field = null;
@@ -2184,11 +2182,10 @@ public abstract class Vala.CCodeBaseModule : CodeGenerator {
}
var lhs = new CCodeMemberAccess (instance, field.get_cname ());;
- ccomma.append_expression (new CCodeAssignment (lhs, cexpr));
+ ccode.add_assignment (lhs, cexpr);
}
- ccomma.append_expression (instance);
- set_cvalue (list, ccomma);
+ set_cvalue (list, instance);
}
} else {
var clist = new CCodeInitializerList ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]