[vala] dova: Pass argc and argv to dova_init



commit 8cf864a661fcabad78645a2a07f201591820ff16
Author: Jürg Billeter <j bitron ch>
Date:   Wed Jul 14 18:23:43 2010 +0200

    dova: Pass argc and argv to dova_init

 codegen/valadovaobjectmodule.vala |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/codegen/valadovaobjectmodule.vala b/codegen/valadovaobjectmodule.vala
index 2031636..5da911c 100644
--- a/codegen/valadovaobjectmodule.vala
+++ b/codegen/valadovaobjectmodule.vala
@@ -1508,7 +1508,10 @@ internal class Vala.DovaObjectModule : DovaArrayModule {
 			cmain.add_parameter (new CCodeFormalParameter ("argv", "char **"));
 			var main_block = new CCodeBlock ();
 
-			main_block.add_statement (new CCodeExpressionStatement (new CCodeFunctionCall (new CCodeIdentifier ("dova_init"))));
+			var dova_init_call = new CCodeFunctionCall (new CCodeIdentifier ("dova_init"));
+			dova_init_call.add_argument (new CCodeIdentifier ("argc"));
+			dova_init_call.add_argument (new CCodeIdentifier ("argv"));
+			main_block.add_statement (new CCodeExpressionStatement (dova_init_call));
 
 			main_block.add_statement (module_init_fragment);
 



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