~ubuntu-branches/ubuntu/quantal/vala/quantal

« back to all changes in this revision

Viewing changes to codegen/valagasyncmodule.c

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2010-09-20 19:57:26 UTC
  • mfrom: (1.5.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20100920195726-cbxb3q400aj1hoqr
Tags: 0.10.0-0ubuntu1
* New upstream release
* debian/patches/90_revert_use_new_gir_version.patch:
  - don't build with new GIR

Show diffs side-by-side

added added

removed removed

Lines of Context:
345
345
        void (*generate_marshaller) (ValaCCodeBaseModule* self, ValaList* params, ValaDataType* return_type, gboolean dbus);
346
346
        char* (*get_marshaller_function) (ValaCCodeBaseModule* self, ValaList* params, ValaDataType* return_type, const char* prefix, gboolean dbus);
347
347
        char* (*get_array_length_cname) (ValaCCodeBaseModule* self, const char* array_cname, gint dim);
 
348
        char* (*get_parameter_array_length_cname) (ValaCCodeBaseModule* self, ValaFormalParameter* param, gint dim);
348
349
        ValaCCodeExpression* (*get_array_length_cexpression) (ValaCCodeBaseModule* self, ValaExpression* array_expr, gint dim);
349
350
        char* (*get_array_size_cname) (ValaCCodeBaseModule* self, const char* array_cname);
350
351
        ValaCCodeExpression* (*get_array_size_cexpression) (ValaCCodeBaseModule* self, ValaExpression* array_expr);
518
519
};
519
520
static ValaCCodeStruct* vala_gasync_module_generate_data_struct (ValaGAsyncModule* self, ValaMethod* m);
520
521
char* vala_ccode_base_module_get_variable_cname (ValaCCodeBaseModule* self, const char* name);
521
 
char* vala_ccode_base_module_get_array_length_cname (ValaCCodeBaseModule* self, const char* array_cname, gint dim);
 
522
char* vala_ccode_base_module_get_parameter_array_length_cname (ValaCCodeBaseModule* self, ValaFormalParameter* param, gint dim);
522
523
char* vala_ccode_base_module_get_delegate_target_cname (ValaCCodeBaseModule* self, const char* delegate_cname);
523
524
char* vala_ccode_base_module_get_delegate_target_destroy_notify_cname (ValaCCodeBaseModule* self, const char* delegate_cname);
 
525
char* vala_ccode_base_module_get_array_length_cname (ValaCCodeBaseModule* self, const char* array_cname, gint dim);
524
526
static ValaCCodeFunction* vala_gasync_module_generate_free_function (ValaGAsyncModule* self, ValaMethod* m);
525
527
void vala_ccode_base_module_push_context (ValaCCodeBaseModule* self, ValaCCodeBaseModuleEmitContext* emit_context);
526
528
ValaCCodeBaseModuleEmitContext* vala_ccode_base_module_emit_context_new (ValaSymbol* symbol);
635
637
                                                        _tmp11_ = TRUE;
636
638
                                                        while (TRUE) {
637
639
                                                                char* _tmp12_;
638
 
                                                                char* _tmp13_;
639
640
                                                                if (!_tmp11_) {
640
641
                                                                        dim++;
641
642
                                                                }
643
644
                                                                if (!(dim <= vala_array_type_get_rank (array_type))) {
644
645
                                                                        break;
645
646
                                                                }
646
 
                                                                vala_ccode_struct_add_field (data, "gint", _tmp13_ = vala_ccode_base_module_get_array_length_cname ((ValaCCodeBaseModule*) self, _tmp12_ = vala_ccode_base_module_get_variable_cname ((ValaCCodeBaseModule*) self, vala_symbol_get_name ((ValaSymbol*) param)), dim), NULL);
647
 
                                                                _g_free0 (_tmp13_);
 
647
                                                                vala_ccode_struct_add_field (data, "gint", _tmp12_ = vala_ccode_base_module_get_parameter_array_length_cname ((ValaCCodeBaseModule*) self, param, dim), NULL);
648
648
                                                                _g_free0 (_tmp12_);
649
649
                                                        }
650
650
                                                }
656
656
                                        ValaDelegateType* deleg_type;
657
657
                                        deleg_type = _vala_code_node_ref0 (VALA_DELEGATE_TYPE (vala_variable_get_variable_type ((ValaVariable*) param)));
658
658
                                        if (vala_delegate_get_has_target (vala_delegate_type_get_delegate_symbol (deleg_type))) {
 
659
                                                char* _tmp13_;
659
660
                                                char* _tmp14_;
660
661
                                                char* _tmp15_;
661
662
                                                char* _tmp16_;
662
 
                                                char* _tmp17_;
663
 
                                                vala_ccode_struct_add_field (data, "gpointer", _tmp15_ = vala_ccode_base_module_get_delegate_target_cname ((ValaCCodeBaseModule*) self, _tmp14_ = vala_ccode_base_module_get_variable_cname ((ValaCCodeBaseModule*) self, vala_symbol_get_name ((ValaSymbol*) param))), NULL);
664
 
                                                _g_free0 (_tmp15_);
 
663
                                                vala_ccode_struct_add_field (data, "gpointer", _tmp14_ = vala_ccode_base_module_get_delegate_target_cname ((ValaCCodeBaseModule*) self, _tmp13_ = vala_ccode_base_module_get_variable_cname ((ValaCCodeBaseModule*) self, vala_symbol_get_name ((ValaSymbol*) param))), NULL);
665
664
                                                _g_free0 (_tmp14_);
666
 
                                                vala_ccode_struct_add_field (data, "GDestroyNotify", _tmp17_ = vala_ccode_base_module_get_delegate_target_destroy_notify_cname ((ValaCCodeBaseModule*) self, _tmp16_ = vala_ccode_base_module_get_variable_cname ((ValaCCodeBaseModule*) self, vala_symbol_get_name ((ValaSymbol*) param))), NULL);
667
 
                                                _g_free0 (_tmp17_);
 
665
                                                _g_free0 (_tmp13_);
 
666
                                                vala_ccode_struct_add_field (data, "GDestroyNotify", _tmp16_ = vala_ccode_base_module_get_delegate_target_destroy_notify_cname ((ValaCCodeBaseModule*) self, _tmp15_ = vala_ccode_base_module_get_variable_cname ((ValaCCodeBaseModule*) self, vala_symbol_get_name ((ValaSymbol*) param))), NULL);
668
667
                                                _g_free0 (_tmp16_);
 
668
                                                _g_free0 (_tmp15_);
669
669
                                        }
670
670
                                        _vala_code_node_unref0 (deleg_type);
671
671
                                }
676
676
                _vala_collection_object_unref0 (_param_it);
677
677
        }
678
678
        if (!VALA_IS_VOID_TYPE (vala_method_get_return_type (m))) {
679
 
                char* _tmp18_;
680
 
                vala_ccode_struct_add_field (data, _tmp18_ = vala_data_type_get_cname (vala_method_get_return_type (m)), "result", NULL);
681
 
                _g_free0 (_tmp18_);
 
679
                char* _tmp17_;
 
680
                vala_ccode_struct_add_field (data, _tmp17_ = vala_data_type_get_cname (vala_method_get_return_type (m)), "result", NULL);
 
681
                _g_free0 (_tmp17_);
682
682
                if (VALA_IS_ARRAY_TYPE (vala_method_get_return_type (m))) {
683
683
                        ValaArrayType* array_type;
684
684
                        array_type = _vala_code_node_ref0 (VALA_ARRAY_TYPE (vala_method_get_return_type (m)));
687
687
                                        gint dim;
688
688
                                        dim = 1;
689
689
                                        {
690
 
                                                gboolean _tmp19_;
691
 
                                                _tmp19_ = TRUE;
 
690
                                                gboolean _tmp18_;
 
691
                                                _tmp18_ = TRUE;
692
692
                                                while (TRUE) {
693
 
                                                        char* _tmp20_;
694
 
                                                        if (!_tmp19_) {
 
693
                                                        char* _tmp19_;
 
694
                                                        if (!_tmp18_) {
695
695
                                                                dim++;
696
696
                                                        }
697
 
                                                        _tmp19_ = FALSE;
 
697
                                                        _tmp18_ = FALSE;
698
698
                                                        if (!(dim <= vala_array_type_get_rank (array_type))) {
699
699
                                                                break;
700
700
                                                        }
701
 
                                                        vala_ccode_struct_add_field (data, "gint", _tmp20_ = vala_ccode_base_module_get_array_length_cname ((ValaCCodeBaseModule*) self, "result", dim), NULL);
702
 
                                                        _g_free0 (_tmp20_);
 
701
                                                        vala_ccode_struct_add_field (data, "gint", _tmp19_ = vala_ccode_base_module_get_array_length_cname ((ValaCCodeBaseModule*) self, "result", dim), NULL);
 
702
                                                        _g_free0 (_tmp19_);
703
703
                                                }
704
704
                                        }
705
705
                                }
710
710
                                ValaDelegateType* deleg_type;
711
711
                                deleg_type = _vala_code_node_ref0 (VALA_DELEGATE_TYPE (vala_method_get_return_type (m)));
712
712
                                if (vala_delegate_get_has_target (vala_delegate_type_get_delegate_symbol (deleg_type))) {
 
713
                                        char* _tmp20_;
713
714
                                        char* _tmp21_;
714
 
                                        char* _tmp22_;
715
 
                                        vala_ccode_struct_add_field (data, "gpointer", _tmp21_ = vala_ccode_base_module_get_delegate_target_cname ((ValaCCodeBaseModule*) self, "result"), NULL);
 
715
                                        vala_ccode_struct_add_field (data, "gpointer", _tmp20_ = vala_ccode_base_module_get_delegate_target_cname ((ValaCCodeBaseModule*) self, "result"), NULL);
 
716
                                        _g_free0 (_tmp20_);
 
717
                                        vala_ccode_struct_add_field (data, "GDestroyNotify", _tmp21_ = vala_ccode_base_module_get_delegate_target_destroy_notify_cname ((ValaCCodeBaseModule*) self, "result"), NULL);
716
718
                                        _g_free0 (_tmp21_);
717
 
                                        vala_ccode_struct_add_field (data, "GDestroyNotify", _tmp22_ = vala_ccode_base_module_get_delegate_target_destroy_notify_cname ((ValaCCodeBaseModule*) self, "result"), NULL);
718
 
                                        _g_free0 (_tmp22_);
719
719
                                }
720
720
                                _vala_code_node_unref0 (deleg_type);
721
721
                        }
924
924
        ValaCCodeIdentifier* _tmp51_;
925
925
        ValaCCodeExpressionStatement* _tmp52_;
926
926
        ValaCCodeFragment* cfrag;
927
 
        char* _tmp95_;
928
 
        char* _tmp96_;
929
 
        ValaCCodeIdentifier* _tmp97_;
930
 
        ValaCCodeFunctionCall* _tmp98_;
 
927
        char* _tmp93_;
 
928
        char* _tmp94_;
 
929
        ValaCCodeIdentifier* _tmp95_;
 
930
        ValaCCodeFunctionCall* _tmp96_;
931
931
        ValaCCodeFunctionCall* ccall;
932
 
        ValaCCodeExpressionStatement* _tmp99_;
933
 
        ValaCCodeFormalParameter* _tmp100_;
934
 
        ValaCCodeFormalParameter* _tmp101_;
935
 
        gboolean _tmp102_ = FALSE;
 
932
        ValaCCodeExpressionStatement* _tmp97_;
 
933
        ValaCCodeFormalParameter* _tmp98_;
 
934
        ValaCCodeFormalParameter* _tmp99_;
 
935
        gboolean _tmp100_ = FALSE;
936
936
        g_return_val_if_fail (self != NULL, NULL);
937
937
        g_return_val_if_fail (m != NULL, NULL);
938
938
        asyncblock = vala_ccode_block_new ();
1158
1158
                                                                _tmp70_ = TRUE;
1159
1159
                                                                while (TRUE) {
1160
1160
                                                                        char* _tmp71_;
1161
 
                                                                        char* _tmp72_;
1162
 
                                                                        ValaCCodeMemberAccess* _tmp73_;
1163
 
                                                                        char* _tmp74_;
1164
 
                                                                        char* _tmp75_;
1165
 
                                                                        ValaCCodeIdentifier* _tmp76_;
1166
 
                                                                        ValaCCodeAssignment* _tmp77_;
1167
 
                                                                        ValaCCodeExpressionStatement* _tmp78_;
 
1161
                                                                        ValaCCodeMemberAccess* _tmp72_;
 
1162
                                                                        char* _tmp73_;
 
1163
                                                                        ValaCCodeIdentifier* _tmp74_;
 
1164
                                                                        ValaCCodeAssignment* _tmp75_;
 
1165
                                                                        ValaCCodeExpressionStatement* _tmp76_;
1168
1166
                                                                        if (!_tmp70_) {
1169
1167
                                                                                dim++;
1170
1168
                                                                        }
1172
1170
                                                                        if (!(dim <= vala_array_type_get_rank (array_type))) {
1173
1171
                                                                                break;
1174
1172
                                                                        }
1175
 
                                                                        vala_ccode_block_add_statement (asyncblock, (ValaCCodeNode*) (_tmp78_ = vala_ccode_expression_statement_new ((ValaCCodeExpression*) (_tmp77_ = vala_ccode_assignment_new ((ValaCCodeExpression*) (_tmp73_ = vala_ccode_member_access_new_pointer ((ValaCCodeExpression*) data_var, _tmp72_ = vala_ccode_base_module_get_array_length_cname ((ValaCCodeBaseModule*) self, _tmp71_ = vala_ccode_base_module_get_variable_cname ((ValaCCodeBaseModule*) self, vala_symbol_get_name ((ValaSymbol*) param)), dim))), (ValaCCodeExpression*) (_tmp76_ = vala_ccode_identifier_new (_tmp75_ = vala_ccode_base_module_get_array_length_cname ((ValaCCodeBaseModule*) self, _tmp74_ = vala_ccode_base_module_get_variable_cname ((ValaCCodeBaseModule*) self, vala_symbol_get_name ((ValaSymbol*) param)), dim))), VALA_CCODE_ASSIGNMENT_OPERATOR_SIMPLE)))));
1176
 
                                                                        _vala_ccode_node_unref0 (_tmp78_);
1177
 
                                                                        _vala_ccode_node_unref0 (_tmp77_);
 
1173
                                                                        vala_ccode_block_add_statement (asyncblock, (ValaCCodeNode*) (_tmp76_ = vala_ccode_expression_statement_new ((ValaCCodeExpression*) (_tmp75_ = vala_ccode_assignment_new ((ValaCCodeExpression*) (_tmp72_ = vala_ccode_member_access_new_pointer ((ValaCCodeExpression*) data_var, _tmp71_ = vala_ccode_base_module_get_parameter_array_length_cname ((ValaCCodeBaseModule*) self, param, dim))), (ValaCCodeExpression*) (_tmp74_ = vala_ccode_identifier_new (_tmp73_ = vala_ccode_base_module_get_parameter_array_length_cname ((ValaCCodeBaseModule*) self, param, dim))), VALA_CCODE_ASSIGNMENT_OPERATOR_SIMPLE)))));
1178
1174
                                                                        _vala_ccode_node_unref0 (_tmp76_);
1179
 
                                                                        _g_free0 (_tmp75_);
1180
 
                                                                        _g_free0 (_tmp74_);
1181
 
                                                                        _vala_ccode_node_unref0 (_tmp73_);
1182
 
                                                                        _g_free0 (_tmp72_);
 
1175
                                                                        _vala_ccode_node_unref0 (_tmp75_);
 
1176
                                                                        _vala_ccode_node_unref0 (_tmp74_);
 
1177
                                                                        _g_free0 (_tmp73_);
 
1178
                                                                        _vala_ccode_node_unref0 (_tmp72_);
1183
1179
                                                                        _g_free0 (_tmp71_);
1184
1180
                                                                }
1185
1181
                                                        }
1191
1187
                                                ValaDelegateType* deleg_type;
1192
1188
                                                deleg_type = _vala_code_node_ref0 (VALA_DELEGATE_TYPE (vala_variable_get_variable_type ((ValaVariable*) param)));
1193
1189
                                                if (vala_delegate_get_has_target (vala_delegate_type_get_delegate_symbol (deleg_type))) {
1194
 
                                                        char* _tmp79_;
 
1190
                                                        char* _tmp77_;
 
1191
                                                        char* _tmp78_;
 
1192
                                                        ValaCCodeMemberAccess* _tmp79_;
1195
1193
                                                        char* _tmp80_;
1196
 
                                                        ValaCCodeMemberAccess* _tmp81_;
1197
 
                                                        char* _tmp82_;
1198
 
                                                        char* _tmp83_;
1199
 
                                                        ValaCCodeIdentifier* _tmp84_;
1200
 
                                                        ValaCCodeAssignment* _tmp85_;
1201
 
                                                        ValaCCodeExpressionStatement* _tmp86_;
1202
 
                                                        vala_ccode_block_add_statement (asyncblock, (ValaCCodeNode*) (_tmp86_ = vala_ccode_expression_statement_new ((ValaCCodeExpression*) (_tmp85_ = vala_ccode_assignment_new ((ValaCCodeExpression*) (_tmp81_ = vala_ccode_member_access_new_pointer ((ValaCCodeExpression*) data_var, _tmp80_ = vala_ccode_base_module_get_delegate_target_cname ((ValaCCodeBaseModule*) self, _tmp79_ = vala_ccode_base_module_get_variable_cname ((ValaCCodeBaseModule*) self, vala_symbol_get_name ((ValaSymbol*) param))))), (ValaCCodeExpression*) (_tmp84_ = vala_ccode_identifier_new (_tmp83_ = vala_ccode_base_module_get_delegate_target_cname ((ValaCCodeBaseModule*) self, _tmp82_ = vala_ccode_base_module_get_variable_cname ((ValaCCodeBaseModule*) self, vala_symbol_get_name ((ValaSymbol*) param))))), VALA_CCODE_ASSIGNMENT_OPERATOR_SIMPLE)))));
1203
 
                                                        _vala_ccode_node_unref0 (_tmp86_);
1204
 
                                                        _vala_ccode_node_unref0 (_tmp85_);
 
1194
                                                        char* _tmp81_;
 
1195
                                                        ValaCCodeIdentifier* _tmp82_;
 
1196
                                                        ValaCCodeAssignment* _tmp83_;
 
1197
                                                        ValaCCodeExpressionStatement* _tmp84_;
 
1198
                                                        vala_ccode_block_add_statement (asyncblock, (ValaCCodeNode*) (_tmp84_ = vala_ccode_expression_statement_new ((ValaCCodeExpression*) (_tmp83_ = vala_ccode_assignment_new ((ValaCCodeExpression*) (_tmp79_ = vala_ccode_member_access_new_pointer ((ValaCCodeExpression*) data_var, _tmp78_ = vala_ccode_base_module_get_delegate_target_cname ((ValaCCodeBaseModule*) self, _tmp77_ = vala_ccode_base_module_get_variable_cname ((ValaCCodeBaseModule*) self, vala_symbol_get_name ((ValaSymbol*) param))))), (ValaCCodeExpression*) (_tmp82_ = vala_ccode_identifier_new (_tmp81_ = vala_ccode_base_module_get_delegate_target_cname ((ValaCCodeBaseModule*) self, _tmp80_ = vala_ccode_base_module_get_variable_cname ((ValaCCodeBaseModule*) self, vala_symbol_get_name ((ValaSymbol*) param))))), VALA_CCODE_ASSIGNMENT_OPERATOR_SIMPLE)))));
1205
1199
                                                        _vala_ccode_node_unref0 (_tmp84_);
1206
 
                                                        _g_free0 (_tmp83_);
1207
 
                                                        _g_free0 (_tmp82_);
1208
 
                                                        _vala_ccode_node_unref0 (_tmp81_);
 
1200
                                                        _vala_ccode_node_unref0 (_tmp83_);
 
1201
                                                        _vala_ccode_node_unref0 (_tmp82_);
 
1202
                                                        _g_free0 (_tmp81_);
1209
1203
                                                        _g_free0 (_tmp80_);
1210
 
                                                        _g_free0 (_tmp79_);
 
1204
                                                        _vala_ccode_node_unref0 (_tmp79_);
 
1205
                                                        _g_free0 (_tmp78_);
 
1206
                                                        _g_free0 (_tmp77_);
1211
1207
                                                        if (vala_data_type_get_value_owned ((ValaDataType*) deleg_type)) {
1212
 
                                                                char* _tmp87_;
 
1208
                                                                char* _tmp85_;
 
1209
                                                                char* _tmp86_;
 
1210
                                                                ValaCCodeMemberAccess* _tmp87_;
1213
1211
                                                                char* _tmp88_;
1214
 
                                                                ValaCCodeMemberAccess* _tmp89_;
1215
 
                                                                char* _tmp90_;
1216
 
                                                                char* _tmp91_;
1217
 
                                                                ValaCCodeIdentifier* _tmp92_;
1218
 
                                                                ValaCCodeAssignment* _tmp93_;
1219
 
                                                                ValaCCodeExpressionStatement* _tmp94_;
1220
 
                                                                vala_ccode_block_add_statement (asyncblock, (ValaCCodeNode*) (_tmp94_ = vala_ccode_expression_statement_new ((ValaCCodeExpression*) (_tmp93_ = vala_ccode_assignment_new ((ValaCCodeExpression*) (_tmp89_ = vala_ccode_member_access_new_pointer ((ValaCCodeExpression*) data_var, _tmp88_ = vala_ccode_base_module_get_delegate_target_destroy_notify_cname ((ValaCCodeBaseModule*) self, _tmp87_ = vala_ccode_base_module_get_variable_cname ((ValaCCodeBaseModule*) self, vala_symbol_get_name ((ValaSymbol*) param))))), (ValaCCodeExpression*) (_tmp92_ = vala_ccode_identifier_new (_tmp91_ = vala_ccode_base_module_get_delegate_target_destroy_notify_cname ((ValaCCodeBaseModule*) self, _tmp90_ = vala_ccode_base_module_get_variable_cname ((ValaCCodeBaseModule*) self, vala_symbol_get_name ((ValaSymbol*) param))))), VALA_CCODE_ASSIGNMENT_OPERATOR_SIMPLE)))));
1221
 
                                                                _vala_ccode_node_unref0 (_tmp94_);
1222
 
                                                                _vala_ccode_node_unref0 (_tmp93_);
 
1212
                                                                char* _tmp89_;
 
1213
                                                                ValaCCodeIdentifier* _tmp90_;
 
1214
                                                                ValaCCodeAssignment* _tmp91_;
 
1215
                                                                ValaCCodeExpressionStatement* _tmp92_;
 
1216
                                                                vala_ccode_block_add_statement (asyncblock, (ValaCCodeNode*) (_tmp92_ = vala_ccode_expression_statement_new ((ValaCCodeExpression*) (_tmp91_ = vala_ccode_assignment_new ((ValaCCodeExpression*) (_tmp87_ = vala_ccode_member_access_new_pointer ((ValaCCodeExpression*) data_var, _tmp86_ = vala_ccode_base_module_get_delegate_target_destroy_notify_cname ((ValaCCodeBaseModule*) self, _tmp85_ = vala_ccode_base_module_get_variable_cname ((ValaCCodeBaseModule*) self, vala_symbol_get_name ((ValaSymbol*) param))))), (ValaCCodeExpression*) (_tmp90_ = vala_ccode_identifier_new (_tmp89_ = vala_ccode_base_module_get_delegate_target_destroy_notify_cname ((ValaCCodeBaseModule*) self, _tmp88_ = vala_ccode_base_module_get_variable_cname ((ValaCCodeBaseModule*) self, vala_symbol_get_name ((ValaSymbol*) param))))), VALA_CCODE_ASSIGNMENT_OPERATOR_SIMPLE)))));
1223
1217
                                                                _vala_ccode_node_unref0 (_tmp92_);
1224
 
                                                                _g_free0 (_tmp91_);
1225
 
                                                                _g_free0 (_tmp90_);
1226
 
                                                                _vala_ccode_node_unref0 (_tmp89_);
 
1218
                                                                _vala_ccode_node_unref0 (_tmp91_);
 
1219
                                                                _vala_ccode_node_unref0 (_tmp90_);
 
1220
                                                                _g_free0 (_tmp89_);
1227
1221
                                                                _g_free0 (_tmp88_);
1228
 
                                                                _g_free0 (_tmp87_);
 
1222
                                                                _vala_ccode_node_unref0 (_tmp87_);
 
1223
                                                                _g_free0 (_tmp86_);
 
1224
                                                                _g_free0 (_tmp85_);
1229
1225
                                                        }
1230
1226
                                                }
1231
1227
                                                _vala_code_node_unref0 (deleg_type);
1242
1238
        vala_ccode_base_module_append_temp_decl ((ValaCCodeBaseModule*) self, cfrag, (ValaList*) vala_ccode_base_module_get_temp_vars ((ValaCCodeBaseModule*) self));
1243
1239
        vala_collection_clear ((ValaCollection*) vala_ccode_base_module_get_temp_vars ((ValaCCodeBaseModule*) self));
1244
1240
        vala_ccode_block_add_statement (asyncblock, (ValaCCodeNode*) cfrag);
1245
 
        ccall = (_tmp98_ = vala_ccode_function_call_new ((ValaCCodeExpression*) (_tmp97_ = vala_ccode_identifier_new (_tmp96_ = g_strconcat (_tmp95_ = vala_method_get_real_cname (m), "_co", NULL)))), _vala_ccode_node_unref0 (_tmp97_), _g_free0 (_tmp96_), _g_free0 (_tmp95_), _tmp98_);
 
1241
        ccall = (_tmp96_ = vala_ccode_function_call_new ((ValaCCodeExpression*) (_tmp95_ = vala_ccode_identifier_new (_tmp94_ = g_strconcat (_tmp93_ = vala_method_get_real_cname (m), "_co", NULL)))), _vala_ccode_node_unref0 (_tmp95_), _g_free0 (_tmp94_), _g_free0 (_tmp93_), _tmp96_);
1246
1242
        vala_ccode_function_call_add_argument (ccall, (ValaCCodeExpression*) data_var);
1247
 
        vala_ccode_block_add_statement (asyncblock, (ValaCCodeNode*) (_tmp99_ = vala_ccode_expression_statement_new ((ValaCCodeExpression*) ccall)));
 
1243
        vala_ccode_block_add_statement (asyncblock, (ValaCCodeNode*) (_tmp97_ = vala_ccode_expression_statement_new ((ValaCCodeExpression*) ccall)));
 
1244
        _vala_ccode_node_unref0 (_tmp97_);
 
1245
        vala_map_set ((ValaMap*) cparam_map, GINT_TO_POINTER (vala_ccode_base_module_get_param_pos ((ValaCCodeBaseModule*) self, (double) (-1), FALSE)), _tmp98_ = vala_ccode_formal_parameter_new ("_callback_", "GAsyncReadyCallback"));
 
1246
        _vala_ccode_node_unref0 (_tmp98_);
 
1247
        vala_map_set ((ValaMap*) cparam_map, GINT_TO_POINTER (vala_ccode_base_module_get_param_pos ((ValaCCodeBaseModule*) self, -0.9, FALSE)), _tmp99_ = vala_ccode_formal_parameter_new ("_user_data_", "gpointer"));
1248
1248
        _vala_ccode_node_unref0 (_tmp99_);
1249
 
        vala_map_set ((ValaMap*) cparam_map, GINT_TO_POINTER (vala_ccode_base_module_get_param_pos ((ValaCCodeBaseModule*) self, (double) (-1), FALSE)), _tmp100_ = vala_ccode_formal_parameter_new ("_callback_", "GAsyncReadyCallback"));
1250
 
        _vala_ccode_node_unref0 (_tmp100_);
1251
 
        vala_map_set ((ValaMap*) cparam_map, GINT_TO_POINTER (vala_ccode_base_module_get_param_pos ((ValaCCodeBaseModule*) self, -0.9, FALSE)), _tmp101_ = vala_ccode_formal_parameter_new ("_user_data_", "gpointer"));
1252
 
        _vala_ccode_node_unref0 (_tmp101_);
1253
1249
        vala_ccode_base_module_generate_cparameters ((ValaCCodeBaseModule*) self, m, ((ValaCCodeBaseModule*) self)->source_declarations, (ValaMap*) cparam_map, asyncfunc, NULL, NULL, NULL, 1);
1254
1250
        if (vala_method_get_base_method (m) != NULL) {
1255
 
                _tmp102_ = TRUE;
 
1251
                _tmp100_ = TRUE;
1256
1252
        } else {
1257
 
                _tmp102_ = vala_method_get_base_interface_method (m) != NULL;
 
1253
                _tmp100_ = vala_method_get_base_interface_method (m) != NULL;
1258
1254
        }
1259
 
        if (_tmp102_) {
1260
 
                ValaCCodeFunction* _tmp103_;
 
1255
        if (_tmp100_) {
 
1256
                ValaCCodeFunction* _tmp101_;
1261
1257
                vala_ccode_function_set_modifiers (asyncfunc, vala_ccode_function_get_modifiers (asyncfunc) | VALA_CCODE_MODIFIERS_STATIC);
1262
 
                vala_ccode_declaration_space_add_type_member_declaration (((ValaCCodeBaseModule*) self)->source_declarations, (ValaCCodeNode*) (_tmp103_ = vala_ccode_function_copy (asyncfunc)));
1263
 
                _vala_ccode_node_unref0 (_tmp103_);
 
1258
                vala_ccode_declaration_space_add_type_member_declaration (((ValaCCodeBaseModule*) self)->source_declarations, (ValaCCodeNode*) (_tmp101_ = vala_ccode_function_copy (asyncfunc)));
 
1259
                _vala_ccode_node_unref0 (_tmp101_);
1264
1260
        } else {
1265
1261
                if (vala_symbol_is_private_symbol ((ValaSymbol*) m)) {
1266
1262
                        vala_ccode_function_set_modifiers (asyncfunc, vala_ccode_function_get_modifiers (asyncfunc) | VALA_CCODE_MODIFIERS_STATIC);