[vala] girparser: Use array_length_pos argument for parameters
- From: Evan Nemerson <evann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] girparser: Use array_length_pos argument for parameters
- Date: Mon, 8 Nov 2010 10:03:55 +0000 (UTC)
commit 1a1569b951eae50fa2243d9a349f39529a28d2c3
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 87e9c83..f383985 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -1584,6 +1584,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]