[vala] Write parameter positions in VAPI files



commit 64a80e65a6401b0fcee0cfc34b4eb032ca6ebf7f
Author: Jürg Billeter <j bitron ch>
Date:   Sun Dec 13 17:52:24 2009 +0100

    Write parameter positions in VAPI files

 vala/valacodewriter.vala |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/vala/valacodewriter.vala b/vala/valacodewriter.vala
index 1f28ea7..10100db 100644
--- a/vala/valacodewriter.vala
+++ b/vala/valacodewriter.vala
@@ -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 = ", ";



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]