Esempio n. 1
0
static gboolean vala_tuple_real_check (ValaCodeNode* base, ValaCodeContext* context) {
	ValaTuple * self;
	gboolean result = FALSE;
	gboolean _tmp0_;
	gboolean _tmp1_;
	ValaCodeContext* _tmp4_;
	ValaProfile _tmp5_;
	ValaProfile _tmp6_;
	ValaCodeContext* _tmp9_;
	ValaNamespace* _tmp10_;
	ValaNamespace* _tmp11_;
	ValaScope* _tmp12_;
	ValaScope* _tmp13_;
	ValaSymbol* _tmp14_ = NULL;
	ValaSymbol* _tmp15_;
	ValaScope* _tmp16_;
	ValaScope* _tmp17_;
	ValaSymbol* _tmp18_ = NULL;
	ValaClass* _tmp19_;
	ValaObjectType* _tmp20_;
	ValaObjectType* _tmp21_;
	ValaDataType* _tmp22_;
	ValaDataType* _tmp23_;
	gboolean _tmp45_;
	gboolean _tmp46_;
	self = (ValaTuple*) base;
	g_return_val_if_fail (context != NULL, FALSE);
	_tmp0_ = vala_code_node_get_checked ((ValaCodeNode*) self);
	_tmp1_ = _tmp0_;
	if (_tmp1_) {
		gboolean _tmp2_;
		gboolean _tmp3_;
		_tmp2_ = vala_code_node_get_error ((ValaCodeNode*) self);
		_tmp3_ = _tmp2_;
		result = !_tmp3_;
		return result;
	}
	vala_code_node_set_checked ((ValaCodeNode*) self, TRUE);
	_tmp4_ = context;
	_tmp5_ = vala_code_context_get_profile (_tmp4_);
	_tmp6_ = _tmp5_;
	if (_tmp6_ != VALA_PROFILE_DOVA) {
		ValaSourceReference* _tmp7_;
		ValaSourceReference* _tmp8_;
		_tmp7_ = vala_code_node_get_source_reference ((ValaCodeNode*) self);
		_tmp8_ = _tmp7_;
		vala_report_error (_tmp8_, "tuples are not supported");
		vala_code_node_set_error ((ValaCodeNode*) self, TRUE);
		result = FALSE;
		return result;
	}
	_tmp9_ = context;
	_tmp10_ = vala_code_context_get_root (_tmp9_);
	_tmp11_ = _tmp10_;
	_tmp12_ = vala_symbol_get_scope ((ValaSymbol*) _tmp11_);
	_tmp13_ = _tmp12_;
	_tmp14_ = vala_scope_lookup (_tmp13_, "Dova");
	_tmp15_ = _tmp14_;
	_tmp16_ = vala_symbol_get_scope (_tmp15_);
	_tmp17_ = _tmp16_;
	_tmp18_ = vala_scope_lookup (_tmp17_, "Tuple");
	_tmp19_ = VALA_CLASS (_tmp18_);
	_tmp20_ = vala_object_type_new ((ValaObjectTypeSymbol*) _tmp19_);
	_tmp21_ = _tmp20_;
	vala_expression_set_value_type ((ValaExpression*) self, (ValaDataType*) _tmp21_);
	_vala_code_node_unref0 (_tmp21_);
	_vala_code_node_unref0 (_tmp19_);
	_vala_code_node_unref0 (_tmp15_);
	_tmp22_ = vala_expression_get_value_type ((ValaExpression*) self);
	_tmp23_ = _tmp22_;
	vala_data_type_set_value_owned (_tmp23_, TRUE);
	{
		ValaList* _tmp24_;
		ValaList* _tmp25_;
		ValaList* _expr_list;
		ValaList* _tmp26_;
		gint _tmp27_;
		gint _tmp28_;
		gint _expr_size;
		gint _expr_index;
		_tmp24_ = self->priv->expression_list;
		_tmp25_ = _vala_iterable_ref0 (_tmp24_);
		_expr_list = _tmp25_;
		_tmp26_ = _expr_list;
		_tmp27_ = vala_collection_get_size ((ValaCollection*) _tmp26_);
		_tmp28_ = _tmp27_;
		_expr_size = _tmp28_;
		_expr_index = -1;
		while (TRUE) {
			gint _tmp29_;
			gint _tmp30_;
			gint _tmp31_;
			ValaList* _tmp32_;
			gint _tmp33_;
			gpointer _tmp34_ = NULL;
			ValaExpression* expr;
			ValaExpression* _tmp35_;
			ValaCodeContext* _tmp36_;
			gboolean _tmp37_ = FALSE;
			ValaDataType* _tmp38_;
			ValaDataType* _tmp39_;
			ValaExpression* _tmp40_;
			ValaDataType* _tmp41_;
			ValaDataType* _tmp42_;
			ValaDataType* _tmp43_ = NULL;
			ValaDataType* _tmp44_;
			_tmp29_ = _expr_index;
			_expr_index = _tmp29_ + 1;
			_tmp30_ = _expr_index;
			_tmp31_ = _expr_size;
			if (!(_tmp30_ < _tmp31_)) {
				break;
			}
			_tmp32_ = _expr_list;
			_tmp33_ = _expr_index;
			_tmp34_ = vala_list_get (_tmp32_, _tmp33_);
			expr = (ValaExpression*) _tmp34_;
			_tmp35_ = expr;
			_tmp36_ = context;
			_tmp37_ = vala_code_node_check ((ValaCodeNode*) _tmp35_, _tmp36_);
			if (!_tmp37_) {
				result = FALSE;
				_vala_code_node_unref0 (expr);
				_vala_iterable_unref0 (_expr_list);
				return result;
			}
			_tmp38_ = vala_expression_get_value_type ((ValaExpression*) self);
			_tmp39_ = _tmp38_;
			_tmp40_ = expr;
			_tmp41_ = vala_expression_get_value_type (_tmp40_);
			_tmp42_ = _tmp41_;
			_tmp43_ = vala_data_type_copy (_tmp42_);
			_tmp44_ = _tmp43_;
			vala_data_type_add_type_argument (_tmp39_, _tmp44_);
			_vala_code_node_unref0 (_tmp44_);
			_vala_code_node_unref0 (expr);
		}
		_vala_iterable_unref0 (_expr_list);
	}
	_tmp45_ = vala_code_node_get_error ((ValaCodeNode*) self);
	_tmp46_ = _tmp45_;
	result = !_tmp46_;
	return result;
}
Esempio n. 2
0
void vala_ccode_compiler_compile (ValaCCodeCompiler* self, ValaCodeContext* context, const gchar* cc_command, gchar** cc_options, int cc_options_length1) {
	gboolean use_pkgconfig;
	gchar* _tmp0_;
	gchar* pc;
	ValaCodeContext* _tmp1_;
	gboolean _tmp2_;
	gboolean _tmp3_;
	ValaCodeContext* _tmp6_;
	ValaProfile _tmp7_;
	ValaProfile _tmp8_;
	gchar* _tmp34_;
	gchar* pkgflags;
	gboolean _tmp35_;
	const gchar* _tmp45_;
	const gchar* _tmp46_;
	gchar* _tmp47_;
	gchar* cmdline;
	ValaCodeContext* _tmp48_;
	gboolean _tmp49_;
	gboolean _tmp50_;
	ValaCodeContext* _tmp53_;
	gboolean _tmp54_;
	gboolean _tmp55_;
	ValaCodeContext* _tmp93_;
	ValaList* _tmp94_ = NULL;
	ValaList* source_files;
	ValaCodeContext* _tmp118_;
	ValaList* _tmp119_ = NULL;
	ValaList* c_source_files;
	const gchar* _tmp138_;
	const gchar* _tmp139_;
	gchar* _tmp140_ = NULL;
	gchar* _tmp141_;
	gchar* _tmp142_;
	gchar* _tmp143_;
	gchar* _tmp144_;
	gchar** _tmp145_;
	gint _tmp145__length1;
	ValaCodeContext* _tmp154_;
	gboolean _tmp155_;
	gboolean _tmp156_;
	GError * _inner_error_ = NULL;
	g_return_if_fail (self != NULL);
	g_return_if_fail (context != NULL);
	use_pkgconfig = FALSE;
	_tmp0_ = g_strdup ("pkg-config --cflags");
	pc = _tmp0_;
	_tmp1_ = context;
	_tmp2_ = vala_code_context_get_compile_only (_tmp1_);
	_tmp3_ = _tmp2_;
	if (!_tmp3_) {
		const gchar* _tmp4_;
		gchar* _tmp5_;
		_tmp4_ = pc;
		_tmp5_ = g_strconcat (_tmp4_, " --libs", NULL);
		_g_free0 (pc);
		pc = _tmp5_;
	}
	_tmp6_ = context;
	_tmp7_ = vala_code_context_get_profile (_tmp6_);
	_tmp8_ = _tmp7_;
	if (_tmp8_ == VALA_PROFILE_GOBJECT) {
		const gchar* _tmp9_;
		gchar* _tmp10_;
		ValaCodeContext* _tmp11_;
		gboolean _tmp12_;
		gboolean _tmp13_;
		use_pkgconfig = TRUE;
		_tmp9_ = pc;
		_tmp10_ = g_strconcat (_tmp9_, " gobject-2.0", NULL);
		_g_free0 (pc);
		pc = _tmp10_;
		_tmp11_ = context;
		_tmp12_ = vala_code_context_get_thread (_tmp11_);
		_tmp13_ = _tmp12_;
		if (_tmp13_) {
			const gchar* _tmp14_;
			gchar* _tmp15_;
			_tmp14_ = pc;
			_tmp15_ = g_strconcat (_tmp14_, " gthread-2.0", NULL);
			_g_free0 (pc);
			pc = _tmp15_;
		}
	}
	{
		ValaCodeContext* _tmp16_;
		ValaList* _tmp17_ = NULL;
		ValaList* _pkg_list;
		ValaList* _tmp18_;
		gint _tmp19_;
		gint _tmp20_;
		gint _pkg_size;
		gint _pkg_index;
		_tmp16_ = context;
		_tmp17_ = vala_code_context_get_packages (_tmp16_);
		_pkg_list = _tmp17_;
		_tmp18_ = _pkg_list;
		_tmp19_ = vala_collection_get_size ((ValaCollection*) _tmp18_);
		_tmp20_ = _tmp19_;
		_pkg_size = _tmp20_;
		_pkg_index = -1;
		while (TRUE) {
			gint _tmp21_;
			gint _tmp22_;
			gint _tmp23_;
			ValaList* _tmp24_;
			gint _tmp25_;
			gpointer _tmp26_ = NULL;
			gchar* pkg;
			const gchar* _tmp27_;
			gboolean _tmp28_ = FALSE;
			_tmp21_ = _pkg_index;
			_pkg_index = _tmp21_ + 1;
			_tmp22_ = _pkg_index;
			_tmp23_ = _pkg_size;
			if (!(_tmp22_ < _tmp23_)) {
				break;
			}
			_tmp24_ = _pkg_list;
			_tmp25_ = _pkg_index;
			_tmp26_ = vala_list_get (_tmp24_, _tmp25_);
			pkg = (gchar*) _tmp26_;
			_tmp27_ = pkg;
			_tmp28_ = vala_ccode_compiler_package_exists (_tmp27_);
			if (_tmp28_) {
				const gchar* _tmp29_;
				const gchar* _tmp30_;
				gchar* _tmp31_;
				gchar* _tmp32_;
				gchar* _tmp33_;
				use_pkgconfig = TRUE;
				_tmp29_ = pc;
				_tmp30_ = pkg;
				_tmp31_ = g_strconcat (" ", _tmp30_, NULL);
				_tmp32_ = _tmp31_;
				_tmp33_ = g_strconcat (_tmp29_, _tmp32_, NULL);
				_g_free0 (pc);
				pc = _tmp33_;
				_g_free0 (_tmp32_);
			}
			_g_free0 (pkg);
		}
		_vala_iterable_unref0 (_pkg_list);
	}
	_tmp34_ = g_strdup ("");
	pkgflags = _tmp34_;
	_tmp35_ = use_pkgconfig;
	if (_tmp35_) {
		{
			gint exit_status = 0;
			const gchar* _tmp36_;
			gchar* _tmp37_ = NULL;
			gint _tmp38_ = 0;
			gint _tmp39_;
			_tmp36_ = pc;
			g_spawn_command_line_sync (_tmp36_, &_tmp37_, NULL, &_tmp38_, &_inner_error_);
			_g_free0 (pkgflags);
			pkgflags = _tmp37_;
			exit_status = _tmp38_;
			if (_inner_error_ != NULL) {
				if (_inner_error_->domain == G_SPAWN_ERROR) {
					goto __catch2_g_spawn_error;
				}
				_g_free0 (pkgflags);
				_g_free0 (pc);
				g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
				g_clear_error (&_inner_error_);
				return;
			}
			_tmp39_ = exit_status;
			if (_tmp39_ != 0) {
				gint _tmp40_;
				gchar* _tmp41_ = NULL;
				gchar* _tmp42_;
				_tmp40_ = exit_status;
				_tmp41_ = g_strdup_printf ("pkg-config exited with status %d", _tmp40_);
				_tmp42_ = _tmp41_;
				vala_report_error (NULL, _tmp42_);
				_g_free0 (_tmp42_);
				_g_free0 (pkgflags);
				_g_free0 (pc);
				return;
			}
		}
		goto __finally2;
		__catch2_g_spawn_error:
		{
			GError* e = NULL;
			GError* _tmp43_;
			const gchar* _tmp44_;
			e = _inner_error_;
			_inner_error_ = NULL;
			_tmp43_ = e;
			_tmp44_ = _tmp43_->message;
			vala_report_error (NULL, _tmp44_);
			_g_error_free0 (e);
			_g_free0 (pkgflags);
			_g_free0 (pc);
			return;
		}
		__finally2:
		if (_inner_error_ != NULL) {
			_g_free0 (pkgflags);
			_g_free0 (pc);
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
			g_clear_error (&_inner_error_);
			return;
		}
	}
	_tmp45_ = cc_command;
	if (_tmp45_ == NULL) {
		cc_command = "cc";
	}
	_tmp46_ = cc_command;
	_tmp47_ = g_strdup (_tmp46_);
	cmdline = _tmp47_;
	_tmp48_ = context;
	_tmp49_ = vala_code_context_get_debug (_tmp48_);
	_tmp50_ = _tmp49_;
	if (_tmp50_) {
		const gchar* _tmp51_;
		gchar* _tmp52_;
		_tmp51_ = cmdline;
		_tmp52_ = g_strconcat (_tmp51_, " -g", NULL);
		_g_free0 (cmdline);
		cmdline = _tmp52_;
	}
	_tmp53_ = context;
	_tmp54_ = vala_code_context_get_compile_only (_tmp53_);
	_tmp55_ = _tmp54_;
	if (_tmp55_) {
		const gchar* _tmp56_;
		gchar* _tmp57_;
		_tmp56_ = cmdline;
		_tmp57_ = g_strconcat (_tmp56_, " -c", NULL);
		_g_free0 (cmdline);
		cmdline = _tmp57_;
	} else {
		ValaCodeContext* _tmp58_;
		const gchar* _tmp59_;
		const gchar* _tmp60_;
		_tmp58_ = context;
		_tmp59_ = vala_code_context_get_output (_tmp58_);
		_tmp60_ = _tmp59_;
		if (_tmp60_ != NULL) {
			ValaCodeContext* _tmp61_;
			const gchar* _tmp62_;
			const gchar* _tmp63_;
			gchar* _tmp64_;
			gchar* output;
			gboolean _tmp65_ = FALSE;
			gboolean _tmp66_ = FALSE;
			ValaCodeContext* _tmp67_;
			const gchar* _tmp68_;
			const gchar* _tmp69_;
			gboolean _tmp73_;
			gboolean _tmp78_;
			const gchar* _tmp86_;
			const gchar* _tmp87_;
			gchar* _tmp88_ = NULL;
			gchar* _tmp89_;
			gchar* _tmp90_;
			gchar* _tmp91_;
			gchar* _tmp92_;
			_tmp61_ = context;
			_tmp62_ = vala_code_context_get_output (_tmp61_);
			_tmp63_ = _tmp62_;
			_tmp64_ = g_strdup (_tmp63_);
			output = _tmp64_;
			_tmp67_ = context;
			_tmp68_ = vala_code_context_get_directory (_tmp67_);
			_tmp69_ = _tmp68_;
			if (_tmp69_ != NULL) {
				ValaCodeContext* _tmp70_;
				const gchar* _tmp71_;
				const gchar* _tmp72_;
				_tmp70_ = context;
				_tmp71_ = vala_code_context_get_directory (_tmp70_);
				_tmp72_ = _tmp71_;
				_tmp66_ = g_strcmp0 (_tmp72_, "") != 0;
			} else {
				_tmp66_ = FALSE;
			}
			_tmp73_ = _tmp66_;
			if (_tmp73_) {
				ValaCodeContext* _tmp74_;
				const gchar* _tmp75_;
				const gchar* _tmp76_;
				gboolean _tmp77_ = FALSE;
				_tmp74_ = context;
				_tmp75_ = vala_code_context_get_output (_tmp74_);
				_tmp76_ = _tmp75_;
				_tmp77_ = g_path_is_absolute (_tmp76_);
				_tmp65_ = !_tmp77_;
			} else {
				_tmp65_ = FALSE;
			}
			_tmp78_ = _tmp65_;
			if (_tmp78_) {
				ValaCodeContext* _tmp79_;
				const gchar* _tmp80_;
				const gchar* _tmp81_;
				ValaCodeContext* _tmp82_;
				const gchar* _tmp83_;
				const gchar* _tmp84_;
				gchar* _tmp85_ = NULL;
				_tmp79_ = context;
				_tmp80_ = vala_code_context_get_directory (_tmp79_);
				_tmp81_ = _tmp80_;
				_tmp82_ = context;
				_tmp83_ = vala_code_context_get_output (_tmp82_);
				_tmp84_ = _tmp83_;
				_tmp85_ = g_strdup_printf ("%s%c%s", _tmp81_, (gint) G_DIR_SEPARATOR, _tmp84_);
				_g_free0 (output);
				output = _tmp85_;
			}
			_tmp86_ = cmdline;
			_tmp87_ = output;
			_tmp88_ = g_shell_quote (_tmp87_);
			_tmp89_ = _tmp88_;
			_tmp90_ = g_strconcat (" -o ", _tmp89_, NULL);
			_tmp91_ = _tmp90_;
			_tmp92_ = g_strconcat (_tmp86_, _tmp91_, NULL);
			_g_free0 (cmdline);
			cmdline = _tmp92_;
			_g_free0 (_tmp91_);
			_g_free0 (_tmp89_);
			_g_free0 (output);
		}
	}
	_tmp93_ = context;
	_tmp94_ = vala_code_context_get_source_files (_tmp93_);
	source_files = _tmp94_;
	{
		ValaList* _tmp95_;
		ValaList* _tmp96_;
		ValaList* _file_list;
		ValaList* _tmp97_;
		gint _tmp98_;
		gint _tmp99_;
		gint _file_size;
		gint _file_index;
		_tmp95_ = source_files;
		_tmp96_ = _vala_iterable_ref0 (_tmp95_);
		_file_list = _tmp96_;
		_tmp97_ = _file_list;
		_tmp98_ = vala_collection_get_size ((ValaCollection*) _tmp97_);
		_tmp99_ = _tmp98_;
		_file_size = _tmp99_;
		_file_index = -1;
		while (TRUE) {
			gint _tmp100_;
			gint _tmp101_;
			gint _tmp102_;
			ValaList* _tmp103_;
			gint _tmp104_;
			gpointer _tmp105_ = NULL;
			ValaSourceFile* file;
			ValaSourceFile* _tmp106_;
			ValaSourceFileType _tmp107_;
			ValaSourceFileType _tmp108_;
			_tmp100_ = _file_index;
			_file_index = _tmp100_ + 1;
			_tmp101_ = _file_index;
			_tmp102_ = _file_size;
			if (!(_tmp101_ < _tmp102_)) {
				break;
			}
			_tmp103_ = _file_list;
			_tmp104_ = _file_index;
			_tmp105_ = vala_list_get (_tmp103_, _tmp104_);
			file = (ValaSourceFile*) _tmp105_;
			_tmp106_ = file;
			_tmp107_ = vala_source_file_get_file_type (_tmp106_);
			_tmp108_ = _tmp107_;
			if (_tmp108_ == VALA_SOURCE_FILE_TYPE_SOURCE) {
				const gchar* _tmp109_;
				ValaSourceFile* _tmp110_;
				gchar* _tmp111_ = NULL;
				gchar* _tmp112_;
				gchar* _tmp113_ = NULL;
				gchar* _tmp114_;
				gchar* _tmp115_;
				gchar* _tmp116_;
				gchar* _tmp117_;
				_tmp109_ = cmdline;
				_tmp110_ = file;
				_tmp111_ = vala_source_file_get_csource_filename (_tmp110_);
				_tmp112_ = _tmp111_;
				_tmp113_ = g_shell_quote (_tmp112_);
				_tmp114_ = _tmp113_;
				_tmp115_ = g_strconcat (" ", _tmp114_, NULL);
				_tmp116_ = _tmp115_;
				_tmp117_ = g_strconcat (_tmp109_, _tmp116_, NULL);
				_g_free0 (cmdline);
				cmdline = _tmp117_;
				_g_free0 (_tmp116_);
				_g_free0 (_tmp114_);
				_g_free0 (_tmp112_);
			}
			_vala_source_file_unref0 (file);
		}
		_vala_iterable_unref0 (_file_list);
	}
	_tmp118_ = context;
	_tmp119_ = vala_code_context_get_c_source_files (_tmp118_);
	c_source_files = _tmp119_;
	{
		ValaList* _tmp120_;
		ValaList* _tmp121_;
		ValaList* _file_list;
		ValaList* _tmp122_;
		gint _tmp123_;
		gint _tmp124_;
		gint _file_size;
		gint _file_index;
		_tmp120_ = c_source_files;
		_tmp121_ = _vala_iterable_ref0 (_tmp120_);
		_file_list = _tmp121_;
		_tmp122_ = _file_list;
		_tmp123_ = vala_collection_get_size ((ValaCollection*) _tmp122_);
		_tmp124_ = _tmp123_;
		_file_size = _tmp124_;
		_file_index = -1;
		while (TRUE) {
			gint _tmp125_;
			gint _tmp126_;
			gint _tmp127_;
			ValaList* _tmp128_;
			gint _tmp129_;
			gpointer _tmp130_ = NULL;
			gchar* file;
			const gchar* _tmp131_;
			const gchar* _tmp132_;
			gchar* _tmp133_ = NULL;
			gchar* _tmp134_;
			gchar* _tmp135_;
			gchar* _tmp136_;
			gchar* _tmp137_;
			_tmp125_ = _file_index;
			_file_index = _tmp125_ + 1;
			_tmp126_ = _file_index;
			_tmp127_ = _file_size;
			if (!(_tmp126_ < _tmp127_)) {
				break;
			}
			_tmp128_ = _file_list;
			_tmp129_ = _file_index;
			_tmp130_ = vala_list_get (_tmp128_, _tmp129_);
			file = (gchar*) _tmp130_;
			_tmp131_ = cmdline;
			_tmp132_ = file;
			_tmp133_ = g_shell_quote (_tmp132_);
			_tmp134_ = _tmp133_;
			_tmp135_ = g_strconcat (" ", _tmp134_, NULL);
			_tmp136_ = _tmp135_;
			_tmp137_ = g_strconcat (_tmp131_, _tmp136_, NULL);
			_g_free0 (cmdline);
			cmdline = _tmp137_;
			_g_free0 (_tmp136_);
			_g_free0 (_tmp134_);
			_g_free0 (file);
		}
		_vala_iterable_unref0 (_file_list);
	}
	_tmp138_ = cmdline;
	_tmp139_ = pkgflags;
	_tmp140_ = string_strip (_tmp139_);
	_tmp141_ = _tmp140_;
	_tmp142_ = g_strconcat (" ", _tmp141_, NULL);
	_tmp143_ = _tmp142_;
	_tmp144_ = g_strconcat (_tmp138_, _tmp143_, NULL);
	_g_free0 (cmdline);
	cmdline = _tmp144_;
	_g_free0 (_tmp143_);
	_g_free0 (_tmp141_);
	_tmp145_ = cc_options;
	_tmp145__length1 = cc_options_length1;
	{
		gchar** cc_option_collection = NULL;
		gint cc_option_collection_length1 = 0;
		gint _cc_option_collection_size_ = 0;
		gint cc_option_it = 0;
		cc_option_collection = _tmp145_;
		cc_option_collection_length1 = _tmp145__length1;
		for (cc_option_it = 0; cc_option_it < _tmp145__length1; cc_option_it = cc_option_it + 1) {
			gchar* _tmp146_;
			gchar* cc_option = NULL;
			_tmp146_ = g_strdup (cc_option_collection[cc_option_it]);
			cc_option = _tmp146_;
			{
				const gchar* _tmp147_;
				const gchar* _tmp148_;
				gchar* _tmp149_ = NULL;
				gchar* _tmp150_;
				gchar* _tmp151_;
				gchar* _tmp152_;
				gchar* _tmp153_;
				_tmp147_ = cmdline;
				_tmp148_ = cc_option;
				_tmp149_ = g_shell_quote (_tmp148_);
				_tmp150_ = _tmp149_;
				_tmp151_ = g_strconcat (" ", _tmp150_, NULL);
				_tmp152_ = _tmp151_;
				_tmp153_ = g_strconcat (_tmp147_, _tmp152_, NULL);
				_g_free0 (cmdline);
				cmdline = _tmp153_;
				_g_free0 (_tmp152_);
				_g_free0 (_tmp150_);
				_g_free0 (cc_option);
			}
		}
	}
	_tmp154_ = context;
	_tmp155_ = vala_code_context_get_verbose_mode (_tmp154_);
	_tmp156_ = _tmp155_;
	if (_tmp156_) {
		FILE* _tmp157_;
		const gchar* _tmp158_;
		_tmp157_ = stdout;
		_tmp158_ = cmdline;
		fprintf (_tmp157_, "%s\n", _tmp158_);
	}
	{
		gint exit_status = 0;
		const gchar* _tmp159_;
		gint _tmp160_ = 0;
		gint _tmp161_;
		_tmp159_ = cmdline;
		g_spawn_command_line_sync (_tmp159_, NULL, NULL, &_tmp160_, &_inner_error_);
		exit_status = _tmp160_;
		if (_inner_error_ != NULL) {
			if (_inner_error_->domain == G_SPAWN_ERROR) {
				goto __catch3_g_spawn_error;
			}
			_vala_iterable_unref0 (c_source_files);
			_vala_iterable_unref0 (source_files);
			_g_free0 (cmdline);
			_g_free0 (pkgflags);
			_g_free0 (pc);
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
			g_clear_error (&_inner_error_);
			return;
		}
		_tmp161_ = exit_status;
		if (_tmp161_ != 0) {
			gint _tmp162_;
			gchar* _tmp163_ = NULL;
			gchar* _tmp164_;
			_tmp162_ = exit_status;
			_tmp163_ = g_strdup_printf ("cc exited with status %d", _tmp162_);
			_tmp164_ = _tmp163_;
			vala_report_error (NULL, _tmp164_);
			_g_free0 (_tmp164_);
		}
	}
	goto __finally3;
	__catch3_g_spawn_error:
	{
		GError* e = NULL;
		GError* _tmp165_;
		const gchar* _tmp166_;
		e = _inner_error_;
		_inner_error_ = NULL;
		_tmp165_ = e;
		_tmp166_ = _tmp165_->message;
		vala_report_error (NULL, _tmp166_);
		_g_error_free0 (e);
	}
	__finally3:
	if (_inner_error_ != NULL) {
		_vala_iterable_unref0 (c_source_files);
		_vala_iterable_unref0 (source_files);
		_g_free0 (cmdline);
		_g_free0 (pkgflags);
		_g_free0 (pc);
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
		g_clear_error (&_inner_error_);
		return;
	}
	{
		ValaList* _tmp167_;
		ValaList* _tmp168_;
		ValaList* _file_list;
		ValaList* _tmp169_;
		gint _tmp170_;
		gint _tmp171_;
		gint _file_size;
		gint _file_index;
		_tmp167_ = source_files;
		_tmp168_ = _vala_iterable_ref0 (_tmp167_);
		_file_list = _tmp168_;
		_tmp169_ = _file_list;
		_tmp170_ = vala_collection_get_size ((ValaCollection*) _tmp169_);
		_tmp171_ = _tmp170_;
		_file_size = _tmp171_;
		_file_index = -1;
		while (TRUE) {
			gint _tmp172_;
			gint _tmp173_;
			gint _tmp174_;
			ValaList* _tmp175_;
			gint _tmp176_;
			gpointer _tmp177_ = NULL;
			ValaSourceFile* file;
			ValaSourceFile* _tmp178_;
			ValaSourceFileType _tmp179_;
			ValaSourceFileType _tmp180_;
			_tmp172_ = _file_index;
			_file_index = _tmp172_ + 1;
			_tmp173_ = _file_index;
			_tmp174_ = _file_size;
			if (!(_tmp173_ < _tmp174_)) {
				break;
			}
			_tmp175_ = _file_list;
			_tmp176_ = _file_index;
			_tmp177_ = vala_list_get (_tmp175_, _tmp176_);
			file = (ValaSourceFile*) _tmp177_;
			_tmp178_ = file;
			_tmp179_ = vala_source_file_get_file_type (_tmp178_);
			_tmp180_ = _tmp179_;
			if (_tmp180_ == VALA_SOURCE_FILE_TYPE_SOURCE) {
				ValaCodeContext* _tmp181_;
				gboolean _tmp182_;
				gboolean _tmp183_;
				_tmp181_ = context;
				_tmp182_ = vala_code_context_get_save_csources (_tmp181_);
				_tmp183_ = _tmp182_;
				if (!_tmp183_) {
					ValaSourceFile* _tmp184_;
					gchar* _tmp185_ = NULL;
					gchar* _tmp186_;
					_tmp184_ = file;
					_tmp185_ = vala_source_file_get_csource_filename (_tmp184_);
					_tmp186_ = _tmp185_;
					g_unlink (_tmp186_);
					_g_free0 (_tmp186_);
				}
			}
			_vala_source_file_unref0 (file);
		}
		_vala_iterable_unref0 (_file_list);
	}
	_vala_iterable_unref0 (c_source_files);
	_vala_iterable_unref0 (source_files);
	_g_free0 (cmdline);
	_g_free0 (pkgflags);
	_g_free0 (pc);
}