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
* vala/valainterfacewriter.vala, vala/valaformalparameter.vala,
vala/valamethod.vala: support NoArrayLength attribute
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;
[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);
}
[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 ();
}