]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
girparser: obey zero-terminated="0"
authorEvan Nemerson <evan@coeus-group.com>
Thu, 8 Sep 2011 08:40:10 +0000 (01:40 -0700)
committerEvan Nemerson <evan@coeus-group.com>
Sun, 11 Sep 2011 04:54:22 +0000 (21:54 -0700)
vala/valagirparser.vala

index 3ef980deefac1cbeb08984356aa3cb1ad7d9db01..966e6d19c9eff326cad1ed8b7db85e56ee6727f4 100644 (file)
@@ -2163,6 +2163,9 @@ public class Vala.GirParser : CodeVisitor {
                                        no_array_length = true;
                                        array_null_terminated = true;
                                }
+                               if (reader.get_attribute ("zero-terminated") != null) {
+                                       array_null_terminated = int.parse (reader.get_attribute ("zero-terminated")) != 0;
+                               }
                                next ();
                                var element_type = parse_type ();
                                end_element ("array");