[vala/staging] girparser: Deal with missing "name" attribute by falling back on "c:type"
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] girparser: Deal with missing "name" attribute by falling back on "c:type"
- Date: Sun, 22 Apr 2018 13:35:55 +0000 (UTC)
commit fea923b6dc1154949771bf9529169a1911cbd582
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Sun Apr 22 14:54:41 2018 +0200
girparser: Deal with missing "name" attribute by falling back on "c:type"
This is simply a last resort to report a meaningfull error.
vala/valagirparser.vala | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index 33bbfd1..94a8721 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -2607,6 +2607,10 @@ public class Vala.GirParser : CodeVisitor {
type_name = "GLib.GenericArray";
}
+ if (type_name == null) {
+ type_name = ctype;
+ }
+
DataType type = parse_type_from_gir_name (type_name, out no_array_length, out
array_null_terminated, ctype);
// type arguments / element types
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]