[vala] girparser: handle multiple symbol prefixes
- From: Evan Nemerson <evann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] girparser: handle multiple symbol prefixes
- Date: Wed, 13 Jun 2012 02:52:48 +0000 (UTC)
commit d01d6da7584e1c8836cbc175d4e2c9b6be67aea6
Author: Evan Nemerson <evan coeus-group com>
Date: Tue Jun 12 17:33:18 2012 -0700
girparser: handle multiple symbol prefixes
vala/valagirparser.vala | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index cade19e..15a5059 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]