]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
glib-2.0: Fix time_t binding
authorJürg Billeter <j@bitron.ch>
Tue, 26 May 2009 17:54:26 +0000 (19:54 +0200)
committerJürg Billeter <j@bitron.ch>
Tue, 26 May 2009 17:54:26 +0000 (19:54 +0200)
Fixes bug 583177.

vala/valastruct.vala
vapi/glib-2.0.vapi

index 573aa9705a19f7c55219cc1c465d73d44b9c2c95..684425a4cd9f077943eaa8f1349c47a6405196ae 100644 (file)
@@ -592,6 +592,10 @@ public class Vala.Struct : TypeSymbol {
                                return true;
                        }
                }
+               if (get_attribute ("ByRef") != null) {
+                       // used by time_t
+                       return false;
+               }
                return (boolean_type || integer_type || floating_type
                        || get_attribute ("SimpleType") != null);
        }
index 008c028b5b0f4c31733ae42a7862bc82ae3ef048..37c1d3ef7d959d4e746c87abdff774f313c59ca5 100644 (file)
@@ -665,6 +665,7 @@ public struct double {
 }
 
 [CCode (cheader_filename = "time.h")]
+[ByRef]
 [IntegerType (rank = 8)]
 public struct time_t {
        [CCode (cname = "time")]