Support IntegerType and FloatingType attributes, patch by Emmanuele Bassi,
authorJürg Billeter <j@bitron.ch>
Sun, 10 Aug 2008 13:44:02 +0000 (13:44 +0000)
committerJürg Billeter <juergbi@src.gnome.org>
Sun, 10 Aug 2008 13:44:02 +0000 (13:44 +0000)
2008-08-10  Jürg Billeter  <j@bitron.ch>

* vala/valainterfacewriter.vala:

Support IntegerType and FloatingType attributes,
patch by Emmanuele Bassi, fixes bug 544522

svn path=/trunk/; revision=1745

ChangeLog
vala/valainterfacewriter.vala

index 1744eeb..a9a9c5c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2008-08-10  Jürg Billeter  <j@bitron.ch>
 
+       * vala/valainterfacewriter.vala:
+
+       Support IntegerType and FloatingType attributes,
+       patch by Emmanuele Bassi, fixes bug 544522
+
+2008-08-10  Jürg Billeter  <j@bitron.ch>
+
        * vapi/glib-2.0.vapi:
 
        Add GCompletion binding, patch by Abderrahim Kitouni,
index 8851189..f69ee0b 100644 (file)
@@ -243,6 +243,18 @@ public class Vala.InterfaceWriter : CodeVisitor {
                        write_newline ();
                }
 
+               if (st.is_integer_type ()) {
+                       write_indent ();
+                       write_string ("[IntegerType (rank = %d)]".printf (st.get_rank ()));
+                       write_newline ();
+               }
+
+               if (st.is_floating_type ()) {
+                       write_indent ();
+                       write_string ("[FloatingType (rank = %d)]".printf (st.get_rank ()));
+                       write_newline ();
+               }
+
                write_indent ();
                write_accessibility (st);
                write_string ("struct ");