use array length functionality
authorJürg Billeter <j@bitron.ch>
Fri, 18 Aug 2006 16:44:43 +0000 (16:44 +0000)
committerJürg Billeter <juergbi@src.gnome.org>
Fri, 18 Aug 2006 16:44:43 +0000 (16:44 +0000)
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

vala/ChangeLog
vala/compiler/valacompiler.vala
vala/vapi/glib-2.0.vala
vala/vapi/gtk+-2.0.vala

index eaef855..5e9ec85 100644 (file)
@@ -1,5 +1,10 @@
 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
index edf285b..f145c96 100644 (file)
@@ -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;
index fc18e9f..d4f3d76 100644 (file)
@@ -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);
index 544258f..791c895 100644 (file)
@@ -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 ();
 }