vala r834 - in trunk: . gobject
- From: juergbi svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r834 - in trunk: . gobject
- Date: Sat, 12 Jan 2008 13:16:09 +0000 (GMT)
Author: juergbi
Date: Sat Jan 12 13:16:09 2008
New Revision: 834
URL: http://svn.gnome.org/viewvc/vala?rev=834&view=rev
Log:
2008-01-12 Juerg Billeter <j bitron ch>
* gobject/valaccodegenerator.vala: use separate temp_vars list for
lambda expressions to prevent mixup in the C code
Modified:
trunk/ChangeLog
trunk/gobject/valaccodegenerator.vala
Modified: trunk/gobject/valaccodegenerator.vala
==============================================================================
--- trunk/gobject/valaccodegenerator.vala (original)
+++ trunk/gobject/valaccodegenerator.vala Sat Jan 12 13:16:09 2008
@@ -2670,8 +2670,16 @@
}
public override void visit_lambda_expression (LambdaExpression! l) {
+ var old_temp_vars = temp_vars;
+ var old_temp_ref_vars = temp_ref_vars;
+ temp_vars = new ArrayList<VariableDeclarator> ();
+ temp_ref_vars = new ArrayList<VariableDeclarator> ();
+
l.accept_children (this);
+ temp_vars = old_temp_vars;
+ temp_ref_vars = old_temp_ref_vars;
+
l.ccodenode = new CCodeIdentifier (l.method.get_cname ());
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]