[vala] Add support for Array parameters with no array_legth (fixes #589446)
- From: Alberto Ruiz <aruiz src gnome org>
- To: svn-commits-list gnome org
- Subject: [vala] Add support for Array parameters with no array_legth (fixes #589446)
- Date: Thu, 23 Jul 2009 12:01:05 +0000 (UTC)
commit 239978c46c3ccd2e75f9561e41ebdcf3494f039e
Author: Alberto Ruiz <aruiz codethink co uk>
Date: Thu Jul 23 12:58:39 2009 +0100
Add support for Array parameters with no array_legth (fixes #589446)
vapigen/valagirparser.vala | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/vapigen/valagirparser.vala b/vapigen/valagirparser.vala
index 968a5da..650c414 100644
--- a/vapigen/valagirparser.vala
+++ b/vapigen/valagirparser.vala
@@ -938,6 +938,9 @@ public class Vala.GirParser : CodeVisitor {
}
info.param.carray_length_parameter_position = parameters[info.array_length_idx-add].vala_idx;
}
+ if (info.param.parameter_type is ArrayType && info.array_length_idx == -1) {
+ info.param.no_array_length = true;
+ }
if (info.closure_idx != -1) {
if ((info.closure_idx - add) >= parameters.size) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]