]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Use BOXED as marshaller name for structs with type id
authorJürg Billeter <j@bitron.ch>
Mon, 22 Dec 2008 14:16:00 +0000 (14:16 +0000)
committerJürg Billeter <juergbi@src.gnome.org>
Mon, 22 Dec 2008 14:16:00 +0000 (14:16 +0000)
2008-12-22  Jürg Billeter  <j@bitron.ch>

* vala/valastruct.vala:

Use BOXED as marshaller name for structs with type id

svn path=/trunk/; revision=2236

ChangeLog
vala/valastruct.vala

index ff281151a849689a43eb534ab01fe65ea8b8c977..d1f5f4e7dc77a8a5a7f687ccbe5bdd008b46394b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-12-22  Jürg Billeter  <j@bitron.ch>
+
+       * vala/valastruct.vala:
+
+       Use BOXED as marshaller name for structs with type id
+
 2008-12-21  Jürg Billeter  <j@bitron.ch>
 
        * vala/valastruct.vala:
index 48a99e713bb4608d0eda77149af542e75f8d6182..7cf5ad7df9cca0eda1e8eb44f76f707b103ae56b 100644 (file)
@@ -415,6 +415,8 @@ public class Vala.Struct : TypeSymbol {
                        }
                        if (is_simple_type ()) {
                                Report.error (source_reference, "The type `%s` doesn't declare a marshaller type name".printf (get_full_name ()));
+                       } else if (has_type_id) {
+                               return "BOXED";
                        } else {
                                return "POINTER";
                        }