[vala/0.40] 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.40] girparser: Deal with missing "name" attribute by falling back on "c:type"
- Date: Tue, 1 May 2018 17:48:00 +0000 (UTC)
commit 4ead4cf40e3814abb9618e2a49b029c0ce8945ef
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 a6fffd7..f07efaf 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]