Commit 0898bc7a authored by Jürg Billeter's avatar Jürg Billeter Committed by Jürg Billeter

use array length functionality

2006-08-18  Jürg Billeter  <j@bitron.ch>

	* compiler/valacompiler.vala, vapi/glib-2.0.vala, vapi/gtk+-2.0.vala:
	  use array length functionality

svn path=/trunk/; revision=107
parent db23cad6
2006-08-18 Jürg Billeter <j@bitron.ch>
* compiler/valacompiler.vala, vapi/glib-2.0.vala, vapi/gtk+-2.0.vala:
use array length functionality
2006-08-18 Jürg Billeter <j@bitron.ch>
* vala/valacodegenerator.vala: support implicit array length parameter
......
......@@ -209,14 +209,13 @@ class Vala.Compiler {
return quit ();
}
[NoArrayLength ()]
static int main (int argc, string[] argv) {
static int main (string[] args) {
Error err = null;
var opt_context = new OptionContext ("- Vala Compiler");
opt_context.set_help_enabled (true);
opt_context.add_main_entries (options, null);
opt_context.parse (ref argc, out argv, out err);
opt_context.parse (out args, out err);
if (err != null) {
return 1;
......
......@@ -460,8 +460,7 @@ namespace GLib {
[ReferenceType (free_function = "g_option_context_free")]
public struct OptionContext {
public construct (string parameter_string);
[NoArrayLength ()]
public bool parse (ref int argc, out string[] argv, out Error error);
public bool parse (out string[] argv, out Error error);
public void set_help_enabled (bool help_enabled);
[NoArrayLength ()]
public void add_main_entries (OptionEntry[] entries, string translation_domain);
......
......@@ -8393,8 +8393,7 @@ namespace Gtk {
}
[CCode (cheader_filename = "gtk/gtk.h")]
namespace Gtk {
[NoArrayLength ()]
public static void init (ref int argc, out string[] argv);
public static void init (out string[] args);
public static void main ();
public static void main_quit ();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment