summaryrefslogtreecommitdiff
path: root/codegen/valagdbusclientmodule.vala
diff options
context:
space:
mode:
authorLuca Bruno <lucabru@src.gnome.org>2011-06-28 10:06:44 +0200
committerLuca Bruno <lucabru@src.gnome.org>2011-06-28 10:06:44 +0200
commitf03035d391316bdb3be82cc29d18ebeaeb2907e3 (patch)
tree7ba097133cdca0e8908e64dcd32a359f0d9572dd /codegen/valagdbusclientmodule.vala
parent186d8f63d8e11975b334e26e13f8924e4e16454b (diff)
downloadvala-f03035d391316bdb3be82cc29d18ebeaeb2907e3.tar.gz
codegen: Rename coroutine data variable to _data_
Diffstat (limited to 'codegen/valagdbusclientmodule.vala')
-rw-r--r--codegen/valagdbusclientmodule.vala8
1 files changed, 4 insertions, 4 deletions
diff --git a/codegen/valagdbusclientmodule.vala b/codegen/valagdbusclientmodule.vala
index c8ee1938a..4f48750a5 100644
--- a/codegen/valagdbusclientmodule.vala
+++ b/codegen/valagdbusclientmodule.vala
@@ -319,7 +319,7 @@ public class Vala.GDBusClientModule : GDBusModule {
if (expr.is_yield_expression) {
// asynchronous call
ccall.add_argument (new CCodeIdentifier (generate_ready_function (current_method)));
- ccall.add_argument (new CCodeIdentifier ("data"));
+ ccall.add_argument (new CCodeIdentifier ("_data_"));
} else {
// begin
Expression callback = args.get (base_arg_index + 4);
@@ -356,15 +356,15 @@ public class Vala.GDBusClientModule : GDBusModule {
if (expr.is_yield_expression) {
int state = next_coroutine_state++;
- ccode.add_assignment (new CCodeMemberAccess.pointer (new CCodeIdentifier ("data"), "_state_"), new CCodeConstant (state.to_string ()));
+ ccode.add_assignment (new CCodeMemberAccess.pointer (new CCodeIdentifier ("_data_"), "_state_"), new CCodeConstant (state.to_string ()));
ccode.add_expression (ccall);
ccode.add_return (new CCodeConstant ("FALSE"));
ccode.add_label ("_state_%d".printf (state));
ccall = new CCodeFunctionCall (new CCodeIdentifier ("g_async_initable_new_finish"));
- ccall.add_argument (new CCodeMemberAccess.pointer (new CCodeIdentifier ("data"), "_source_object_"));
+ ccall.add_argument (new CCodeMemberAccess.pointer (new CCodeIdentifier ("_data_"), "_source_object_"));
// pass GAsyncResult stored in closure to finish function
- ccall.add_argument (new CCodeMemberAccess.pointer (new CCodeIdentifier ("data"), "_res_"));
+ ccall.add_argument (new CCodeMemberAccess.pointer (new CCodeIdentifier ("_data_"), "_res_"));
ccall.add_argument (new CCodeUnaryExpression (CCodeUnaryOperator.ADDRESS_OF, get_variable_cexpression ("_inner_error_")));
} else {
// begin