[vala/0.34] 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/0.34] girparser: Deal with missing "name" attribute by falling back on "c:type"
- Date: Mon, 21 May 2018 19:16:22 +0000 (UTC)
commit 62ae4e16a6f472e6e843e4718488c2bad0c4fbc6
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 5bc4d62..bd4261c 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -2591,6 +2591,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]