diff options
author | Juerg Billeter <j@bitron.ch> | 2007-07-25 13:25:25 +0000 |
---|---|---|
committer | Jürg Billeter <juergbi@src.gnome.org> | 2007-07-25 13:25:25 +0000 |
commit | 625a5e7134c2405c17693c8e8f9d24ba47ca6d0e (patch) | |
tree | 213a44df9150ba0d0810a685f1af89f25e0d6af1 /ccode/valaccodefunction.vala | |
parent | 5df444cbae6a21d541ababb4436a66c86f1ba32d (diff) | |
download | vala-625a5e7134c2405c17693c8e8f9d24ba47ca6d0e.tar.gz |
add void to function declarations without parameters as required by C89
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
Diffstat (limited to 'ccode/valaccodefunction.vala')
-rw-r--r-- | ccode/valaccodefunction.vala | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ccode/valaccodefunction.vala b/ccode/valaccodefunction.vala index 722cf9709..eee58c277 100644 --- a/ccode/valaccodefunction.vala +++ b/ccode/valaccodefunction.vala @@ -101,6 +101,9 @@ public class Vala.CCodeFunction : CCodeNode { } param.write (writer); } + if (first) { + writer.write_string ("void"); + } writer.write_string (")"); if (block == null) { |