]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
girparser: handle multiple symbol prefixes
authorEvan Nemerson <evan@coeus-group.com>
Wed, 13 Jun 2012 00:33:18 +0000 (17:33 -0700)
committerEvan Nemerson <evan@coeus-group.com>
Wed, 13 Jun 2012 00:39:23 +0000 (17:39 -0700)
vala/valagirparser.vala

index cade19e12ea8db5124f182bf5c49e7365c938d61..15a505912c48c6bc35a4a827575068f37e09c9b2 100644 (file)
@@ -1781,6 +1781,13 @@ public class Vala.GirParser : CodeVisitor {
                string gir_namespace = reader.get_attribute ("name");
                string gir_version = reader.get_attribute ("version");
 
+               if (lower_case_cprefix != null) {
+                       int idx = lower_case_cprefix.index_of (",");
+                       if (idx != -1) {
+                               lower_case_cprefix = lower_case_cprefix.substring (0, idx);
+                       }
+               }
+
                if (provided_namespaces.contains ("%s-%s".printf (gir_namespace, gir_version))) {
                        skip_element ();
                        return;