[vala/switch-to-gir: 33/34] girparser: Use array_length_pos argument for parameters
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/switch-to-gir: 33/34] girparser: Use array_length_pos argument for parameters
- Date: Sun, 29 Aug 2010 22:25:37 +0000 (UTC)
commit 821a262dbcbd7bc75000585c67f437bccbd4259a
Author: Luca Bruno <lucabru src gnome org>
Date: Sun Aug 29 15:47:15 2010 +0200
girparser: Use array_length_pos argument for parameters
vala/valagirparser.vala | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index c4049e6..f0262e7 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -1577,6 +1577,10 @@ public class Vala.GirParser : CodeVisitor {
ctype = null;
}
+ if (type is ArrayType && metadata.has_argument (ArgumentType.ARRAY_LENGTH_POS)) {
+ array_length_idx = metadata.get_integer (ArgumentType.ARRAY_LENGTH_POS);
+ }
+
if (transfer == "full" || transfer == "container" || destroy != null) {
type.value_owned = true;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]