]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
GIR parser: Add support for unions and boxed types 70818c4048a61a9dc650a07ff64fe577a0b7b689
authorJürg Billeter <j@bitron.ch>
Fri, 27 Feb 2009 21:55:48 +0000 (22:55 +0100)
committerJürg Billeter <j@bitron.ch>
Fri, 27 Feb 2009 21:55:48 +0000 (22:55 +0100)
Based on patch by Didier Villevalois, fixes part of bug 559704

vapigen/valagirparser.vala

index 0f8e4372f5dee16442c7f3aa6cd8dab1eda74321..17b37bbb4442491cc1deb295082d0c56645abf08 100644 (file)
@@ -210,9 +210,9 @@ public class Vala.GirParser : CodeVisitor {
                        } else if (reader.name == "interface") {
                                sym = parse_interface ();
                        } else if (reader.name == "glib:boxed") {
-                               parse_boxed ();
+                               sym = parse_boxed ();
                        } else if (reader.name == "union") {
-                               parse_union ();
+                               sym = parse_union ();
                        } else if (reader.name == "constant") {
                                sym = parse_constant ();
                        } else {