add void to function declarations without parameters as required by C89
authorJuerg Billeter <j@bitron.ch>
Wed, 25 Jul 2007 13:25:25 +0000 (13:25 +0000)
committerJürg Billeter <juergbi@src.gnome.org>
Wed, 25 Jul 2007 13:25:25 +0000 (13:25 +0000)
2007-07-25  Juerg Billeter  <j@bitron.ch>

* ccode/valaccodefunction.vala: add void to function declarations
  without parameters as required by C89

svn path=/trunk/; revision=384

ChangeLog
ccode/valaccodefunction.vala

index 4e2ab7a..9541aa2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-07-25  Jürg Billeter  <j@bitron.ch>
+
+       * ccode/valaccodefunction.vala: add void to function declarations
+         without parameters as required by C89
+
 2007-07-24  Jürg Billeter  <j@bitron.ch>
 
        * vala/valasemanticanalyzer.vala, gobject/valacodegenerator.vala:
index 722cf97..eee58c2 100644 (file)
@@ -101,6 +101,9 @@ public class Vala.CCodeFunction : CCodeNode {
                        }
                        param.write (writer);
                }
+               if (first) {
+                       writer.write_string ("void");
+               }
                
                writer.write_string (")");
                if (block == null) {