Commit db23cad6 authored by Jürg Billeter's avatar Jürg Billeter Committed by Jürg Billeter
Browse files

support implicit array length parameter support NoArrayLength attribute

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
	* compiler/valacompiler.vala, vapi/atk.vala, vapi/cairo.vala,
	  vapi/gdk-2.0.vala, vapi/glib-2.0.vala, vapi/gtk+-2.0.vala,
	  vapi/pango.vala: add NoArrayLength attributes
	* tests/test-001.vala, tests/test-002.vala, tests/test-003.vala,
	  tests/test-004.vala, tests/test-005.vala, tests/test-006.vala,
	  tests/test-007.vala, tests/test-008.vala, tests/test-009.vala,
	  tests/test-010.vala, tests/test-011.vala, tests/test-012.vala,
	  tests/test-013.vala, tests/test-014.vala, tests/test-015.vala,
	  tests/test-016.vala, tests/test-017.vala, tests/test-018.vala,
	  tests/test-019.vala, tests/test-020.vala: remove argc parameter

svn path=/trunk/; revision=106
parent 4463002f
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
* compiler/valacompiler.vala, vapi/atk.vala, vapi/cairo.vala,
vapi/gdk-2.0.vala, vapi/glib-2.0.vala, vapi/gtk+-2.0.vala,
vapi/pango.vala: add NoArrayLength attributes
* tests/test-001.vala, tests/test-002.vala, tests/test-003.vala,
tests/test-004.vala, tests/test-005.vala, tests/test-006.vala,
tests/test-007.vala, tests/test-008.vala, tests/test-009.vala,
tests/test-010.vala, tests/test-011.vala, tests/test-012.vala,
tests/test-013.vala, tests/test-014.vala, tests/test-015.vala,
tests/test-016.vala, tests/test-017.vala, tests/test-018.vala,
tests/test-019.vala, tests/test-020.vala: remove argc parameter
2006-08-18 Jürg Billeter <j@bitron.ch>
* vala/parser.y: remove read/write tokens
......
......@@ -209,6 +209,7 @@ class Vala.Compiler {
return quit ();
}
[NoArrayLength ()]
static int main (int argc, string[] argv) {
Error err = null;
......
using GLib;
namespace Maman {
static int main (int argc, string[] argv) {
static int main (string[] args) {
stdout.printf ("Namespace Test\n");
return 0;
}
......
......@@ -2,7 +2,7 @@ using GLib;
namespace Maman {
class Bar {
static int main (int argc, string[] argv) {
static int main (string[] args) {
stdout.printf ("Class in Namespace Test\n");
return 0;
}
......
......@@ -4,7 +4,7 @@ class Maman.Bar {
}
class Maman.SubBar : Bar {
static int main (int argc, string[] argv) {
static int main (string[] args) {
stdout.printf ("Subtype Test\n");
return 0;
}
......
......@@ -7,7 +7,7 @@ class Maman.Bar {
}
class Maman.SubBar : Bar {
static int main (int argc, string[] argv) {
static int main (string[] args) {
stdout.printf ("Inheritance Test: 1");
var bar = new SubBar ();
......
......@@ -7,7 +7,7 @@ class Maman.Bar {
}
class Maman.SubBar : Bar {
static int main (int argc, string[] argv) {
static int main (string[] args) {
stdout.printf ("Static Inheritance Test: 1");
do_action ();
......
using GLib;
class Maman.Bar {
static int main (int argc, string[] argv) {
static int main (string[] args) {
stdout.printf ("For Test: 1");
int i;
......
......@@ -11,7 +11,7 @@ class Maman.SubBar : Bar {
stdout.printf (" 2");
}
static int main (int argc, string[] argv) {
static int main (string[] args) {
stdout.printf ("Virtual Method Test: 1");
Bar bar = new SubBar ();
......
......@@ -20,7 +20,7 @@ class Maman.Bar : Foo {
private_field, private_static_field);
}
static int main (int argc, string[] argv) {
static int main (string[] args) {
stdout.printf ("Field Test: 1");
var bar = new Bar ();
......
......@@ -30,7 +30,7 @@ class Maman.Bar : Foo {
stdout.printf (" %d %d", public_base_property, public_property);
}
static int main (int argc, string[] argv) {
static int main (string[] args) {
stdout.printf ("Property Test: 1");
var bar = new Bar ();
......
using GLib;
class Maman.Bar {
static int main (int argc, string[] argv) {
static int main (string[] args) {
stdout.printf ("Assignment Test: 1");
int i;
......
using GLib;
class Maman.Bar {
static int main (int argc, string[] argv) {
static int main (string[] args) {
stdout.printf ("Binary Expression Test: 1");
stdout.printf (" %d", 1 + 1);
......
using GLib;
class Maman.Bar {
static int main (int argc, string[] argv) {
static int main (string[] args) {
stdout.printf ("Block Test: 1");
{
......
using GLib;
class Maman.Bar {
static int main (int argc, string[] argv) {
static int main (string[] args) {
stdout.printf ("Break Test: 1");
int i;
......
......@@ -7,7 +7,7 @@ class Maman.Bar {
return 2;
}
static int main (int argc, string[] argv) {
static int main (string[] args) {
stdout.printf ("Callback Test: 1");
ActionCallback cb = do_action;
......
......@@ -7,7 +7,7 @@ class Maman.Bar {
return cb (1);
}
static int main (int argc, string[] argv) {
static int main (string[] args) {
stdout.printf ("Lambda Test: 1");
stdout.printf (" %d", do_action (i => i * 2));
......
using GLib;
class Maman.Bar {
static int main (int argc, string[] argv) {
static int main (string[] args) {
stdout.printf ("Conditional Expression Test: 1");
stdout.printf (" %d", false ? -1 : 2);
......
......@@ -9,7 +9,7 @@ class Maman.Baz : Ibaz {
stdout.printf (" 2");
}
static int main (int argc, string[] argv) {
static int main (string[] args) {
stdout.printf ("Interface Test: 1");
Ibaz ibaz = new Baz ();
......
......@@ -39,7 +39,7 @@ class Maman.Bar {
stdout.printf (" 6");
}
static int main (int argc, string[] argv) {
static int main (string[] args) {
stdout.printf ("Signal Test: 1");
var bar = new Bar ();
......
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