[vala/switch-to-gir: 34/36] girparser: fix array length parsing
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/switch-to-gir: 34/36] girparser: fix array length parsing
- Date: Sat, 6 Nov 2010 11:51:14 +0000 (UTC)
commit 0c5214a48e0ad3d3e4aca59bde2857ab2b51a4a7
Author: Evan Nemerson <evan coeus-group com>
Date: Mon Nov 1 00:32:14 2010 -0700
girparser: fix array length parsing
vala/valagirparser.vala | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index 583b2e4..baa951a 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -1687,6 +1687,10 @@ public class Vala.GirParser : CodeVisitor {
bool is_array = false;
string type_name = reader.get_attribute ("name");
+ if (&array_length_index != null) {
+ array_length_index = -1;
+ }
+
if (reader.name == "array") {
is_array = true;
start_element ("array");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]