[vala] D-Bus: Fix marshalling arrays of structs
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Subject: [vala] D-Bus: Fix marshalling arrays of structs
- Date: Sat, 7 Mar 2009 17:43:12 -0500 (EST)
commit 4b9c86790bca8c8b8fb2e10732f6476e1cf39971
Author: Jürg Billeter <j bitron ch>
Date: Sat Mar 7 23:32:49 2009 +0100
D-Bus: Fix marshalling arrays of structs
---
gobject/valadbusmodule.vala | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/gobject/valadbusmodule.vala b/gobject/valadbusmodule.vala
index 3a83793..d6f2b3c 100644
--- a/gobject/valadbusmodule.vala
+++ b/gobject/valadbusmodule.vala
@@ -458,9 +458,11 @@ internal class Vala.DBusModule : GAsyncModule {
if (dim < array_type.rank) {
write_array_dim (cforfragment, array_type, dim + 1, new CCodeIdentifier (subiter_name), array_expr, array_iter_expr);
} else {
- var array_iter_incr = new CCodeUnaryExpression (CCodeUnaryOperator.POSTFIX_INCREMENT, array_iter_expr);
- var element_expr = new CCodeUnaryExpression (CCodeUnaryOperator.POINTER_INDIRECTION, array_iter_incr);
+ var element_expr = new CCodeUnaryExpression (CCodeUnaryOperator.POINTER_INDIRECTION, array_iter_expr);
write_expression (cforfragment, array_type.element_type, new CCodeIdentifier (subiter_name), element_expr);
+
+ var array_iter_incr = new CCodeUnaryExpression (CCodeUnaryOperator.POSTFIX_INCREMENT, array_iter_expr);
+ cforfragment.append (new CCodeExpressionStatement (array_iter_incr));
}
fragment.append (cfor);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]