vala r2247 - in trunk: . gobject
- From: juergbi svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r2247 - in trunk: . gobject
- Date: Tue, 30 Dec 2008 20:16:01 +0000 (UTC)
Author: juergbi
Date: Tue Dec 30 20:16:01 2008
New Revision: 2247
URL: http://svn.gnome.org/viewvc/vala?rev=2247&view=rev
Log:
2008-12-30 JÃrg Billeter <j bitron ch>
* gobject/valaccodearraymodule.vala:
More closure fixes for array variables
Modified:
trunk/ChangeLog
trunk/gobject/valaccodearraymodule.vala
Modified: trunk/gobject/valaccodearraymodule.vala
==============================================================================
--- trunk/gobject/valaccodearraymodule.vala (original)
+++ trunk/gobject/valaccodearraymodule.vala Tue Dec 30 20:16:01 2008
@@ -144,7 +144,7 @@
if (array_expr.symbol_reference is FormalParameter) {
var param = (FormalParameter) array_expr.symbol_reference;
if (!param.no_array_length) {
- CCodeExpression length_expr = new CCodeIdentifier (get_array_length_cname (param.name, dim));
+ CCodeExpression length_expr = get_variable_cexpression (get_array_length_cname (param.name, dim));
if (param.direction != ParameterDirection.IN) {
// accessing argument of out/ref param
length_expr = new CCodeUnaryExpression (CCodeUnaryOperator.POINTER_INDIRECTION, length_expr);
@@ -158,7 +158,7 @@
}
} else if (array_expr.symbol_reference is LocalVariable) {
var local = (LocalVariable) array_expr.symbol_reference;
- var length_expr = new CCodeIdentifier (get_array_length_cname (get_variable_cname (local.name), dim));
+ var length_expr = get_variable_cexpression (get_array_length_cname (get_variable_cname (local.name), dim));
if (is_out) {
return new CCodeUnaryExpression (CCodeUnaryOperator.ADDRESS_OF, length_expr);
} else {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]