]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Write parameter positions in VAPI files
authorJürg Billeter <j@bitron.ch>
Sun, 13 Dec 2009 16:52:24 +0000 (17:52 +0100)
committerJürg Billeter <j@bitron.ch>
Sun, 13 Dec 2009 16:52:24 +0000 (17:52 +0100)
vala/valacodewriter.vala

index 1f28ea7410c0c6d9c27e05ce7167253a95fb4c9e..10100db2ba635c1d33e4916665fce66dae0674c1 100644 (file)
@@ -710,6 +710,10 @@ public class Vala.CodeWriter : CodeVisitor {
                        var ccode_params = new StringBuilder ();
                        var separator = "";
 
+                       if (!float_equal (param.cparameter_position, i)) {
+                               ccode_params.append_printf ("%spos = %g", separator, param.cparameter_position);
+                               separator = ", ";
+                       }
                        if (param.ctype != null) {
                                ccode_params.append_printf ("%stype = \"%s\"", separator, param.ctype);
                                separator = ", ";