~ubuntu-branches/ubuntu/vivid/vala/vivid

« back to all changes in this revision

Viewing changes to codegen/valaccodecontrolflowmodule.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2010-07-28 07:58:01 UTC
  • mfrom: (1.5.5 upstream) (7.3.14 experimental)
  • Revision ID: james.westby@ubuntu.com-20100728075801-18u9cg5hv5oety6m
Tags: 0.9.4-1
New upstream development release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
130
130
        void (*visit_enum) (ValaCCodeModule* self, ValaEnum* en);
131
131
        void (*visit_error_domain) (ValaCCodeModule* self, ValaErrorDomain* edomain);
132
132
        void (*visit_delegate) (ValaCCodeModule* self, ValaDelegate* d);
133
 
        void (*visit_member) (ValaCCodeModule* self, ValaMember* m);
 
133
        void (*visit_member) (ValaCCodeModule* self, ValaSymbol* m);
134
134
        void (*visit_constant) (ValaCCodeModule* self, ValaConstant* c);
135
135
        void (*visit_field) (ValaCCodeModule* self, ValaField* f);
136
136
        void (*visit_method) (ValaCCodeModule* self, ValaMethod* m);
927
927
        vala_ccode_base_module_append_temp_decl ((ValaCCodeBaseModule*) self, cfrag, (ValaList*) vala_foreach_statement_get_collection (stmt)->temp_vars);
928
928
        vala_ccode_block_add_statement (cblock, (ValaCCodeNode*) cfrag);
929
929
        collection_backup = _vala_code_node_ref0 (vala_foreach_statement_get_collection_variable (stmt));
930
 
        collection_type = vala_data_type_copy (vala_local_variable_get_variable_type (collection_backup));
 
930
        collection_type = vala_data_type_copy (vala_variable_get_variable_type ((ValaVariable*) collection_backup));
931
931
        array_type = _vala_code_node_ref0 ((_tmp0_ = collection_type, VALA_IS_ARRAY_TYPE (_tmp0_) ? ((ValaArrayType*) _tmp0_) : NULL));
932
932
        if (array_type != NULL) {
933
933
                vala_array_type_set_fixed_length (array_type, FALSE);
1426
1426
                                break;
1427
1427
                        }
1428
1428
                        local = (ValaLocalVariable*) vala_iterator_get (_local_it);
1429
 
                        if (vala_ccode_base_module_requires_destroy ((ValaCCodeBaseModule*) self, vala_local_variable_get_variable_type (local))) {
 
1429
                        if (vala_ccode_base_module_requires_destroy ((ValaCCodeBaseModule*) self, vala_variable_get_variable_type ((ValaVariable*) local))) {
1430
1430
                                ValaMemberAccess* ma;
1431
1431
                                ValaCCodeExpression* _tmp125_;
1432
1432
                                ValaCCodeExpression* _tmp124_;
1434
1434
                                ValaCCodeExpressionStatement* cunref;
1435
1435
                                ma = vala_member_access_new_simple (vala_symbol_get_name ((ValaSymbol*) local), NULL);
1436
1436
                                vala_expression_set_symbol_reference ((ValaExpression*) ma, (ValaSymbol*) local);
1437
 
                                cunref = (_tmp126_ = vala_ccode_expression_statement_new (_tmp125_ = vala_ccode_base_module_get_unref_expression ((ValaCCodeBaseModule*) self, _tmp124_ = vala_ccode_base_module_get_variable_cexpression ((ValaCCodeBaseModule*) self, vala_symbol_get_name ((ValaSymbol*) local)), vala_local_variable_get_variable_type (local), (ValaExpression*) ma, FALSE)), _vala_ccode_node_unref0 (_tmp125_), _vala_ccode_node_unref0 (_tmp124_), _tmp126_);
 
1437
                                cunref = (_tmp126_ = vala_ccode_expression_statement_new (_tmp125_ = vala_ccode_base_module_get_unref_expression ((ValaCCodeBaseModule*) self, _tmp124_ = vala_ccode_base_module_get_variable_cexpression ((ValaCCodeBaseModule*) self, vala_symbol_get_name ((ValaSymbol*) local)), vala_variable_get_variable_type ((ValaVariable*) local), (ValaExpression*) ma, FALSE)), _vala_ccode_node_unref0 (_tmp125_), _vala_ccode_node_unref0 (_tmp124_), _tmp126_);
1438
1438
                                vala_ccode_node_set_line ((ValaCCodeNode*) cunref, vala_ccode_node_get_line ((ValaCCodeNode*) cblock));
1439
1439
                                vala_ccode_block_add_statement (cblock, (ValaCCodeNode*) cunref);
1440
1440
                                _vala_ccode_node_unref0 (cunref);