platform/upstream/vala.git
17 years agocorrect cname of generic type parameters
Jürg Billeter [Sat, 10 Mar 2007 21:56:50 +0000 (21:56 +0000)]
correct cname of generic type parameters

2007-03-10  Jürg Billeter  <j@bitron.ch>

* vala/valatypereference.vala: correct cname of generic type parameters

svn path=/trunk/; revision=230

17 years agofix overriding cname of creation methods
Jürg Billeter [Sat, 10 Mar 2007 21:52:59 +0000 (21:52 +0000)]
fix overriding cname of creation methods

2007-03-10  Jürg Billeter  <j@bitron.ch>

* vala/valacreationmethod.vala, vala/valamethod.vala: fix overriding
  cname of creation methods

svn path=/trunk/; revision=229

17 years agocheck whether a class implements all abstract methods of base classes fix
Jürg Billeter [Wed, 7 Mar 2007 21:20:05 +0000 (21:20 +0000)]
check whether a class implements all abstract methods of base classes fix

2007-03-07  Jürg Billeter  <j@bitron.ch>

* vala/valasemanticanalyzer.vala: check whether a class implements all
  abstract methods of base classes
* vala/valacodenode.vala, vala/valadatatype.vala,
  vala/valaexpression.vala, vala/valaliteral.vala: fix build with added
  checks

svn path=/trunk/; revision=228

17 years agoimplement get_type_parameter_index
Jürg Billeter [Wed, 7 Mar 2007 18:32:45 +0000 (18:32 +0000)]
implement get_type_parameter_index

2007-03-07  Jürg Billeter  <j@bitron.ch>

* vala/valaclass.vala: implement get_type_parameter_index

svn path=/trunk/; revision=227

17 years agocheck whether a class implements all methods required by its super
Raffaele Sandrini [Wed, 7 Mar 2007 08:26:55 +0000 (08:26 +0000)]
check whether a class implements all methods required by its super

2007-03-07  Raffaele Sandrini  <rasa@gmx.ch>

* vala/valasemanticanalyzer.vala: check whether a class implements all
  methods required by its super interfaces

svn path=/trunk/; revision=226

17 years agoadd exception handling support to the parser update
Jürg Billeter [Mon, 5 Mar 2007 21:23:00 +0000 (21:23 +0000)]
add exception handling support to the parser update

2007-03-05  Jürg Billeter  <j@bitron.ch>

* vala/scanner.l, vala/parser.y, vala/valacatchclause.vala,
  vala/valathrowstatement.vala, vala/valatrystatement.vala,
  vala/valacodevisitor.vala: add exception handling support to the
  parser
* vala/vala.h, vala/Makefile.am: update

svn path=/trunk/; revision=225

17 years agoadd `g_type_interface_add_prerequisite' calls during interface type
Raffaele Sandrini [Mon, 5 Mar 2007 13:10:00 +0000 (13:10 +0000)]
add `g_type_interface_add_prerequisite' calls during interface type

2007-03-05  Raffaele Sandrini  <rasa@gmx.ch>

* vala/valainterfaceregisterfunction.vala: add
  `g_type_interface_add_prerequisite' calls during interface type
  creation
* vala/valasemanticanalyzer.vala: add checks for consistent interface
  prerequisites and whether classes are obeying them

svn path=/trunk/; revision=224

17 years agoPost-release version bump
Jürg Billeter [Sun, 4 Mar 2007 23:45:42 +0000 (23:45 +0000)]
Post-release version bump

2007-03-04  Jürg Billeter  <j@bitron.ch>

* configure.ac: Post-release version bump

svn path=/trunk/; revision=223

17 years agoupdate for 0.0.7 release VALA_0_0_7
Jürg Billeter [Sun, 4 Mar 2007 21:49:19 +0000 (21:49 +0000)]
update for 0.0.7 release

2007-03-04  Jürg Billeter  <j@bitron.ch>

* NEWS: update for 0.0.7 release

svn path=/trunk/; revision=222

17 years agopack all embedded stataments in blocks update
Jürg Billeter [Sun, 4 Mar 2007 20:56:12 +0000 (20:56 +0000)]
pack all embedded stataments in blocks update

2007-03-04  Jürg Billeter  <j@bitron.ch>

* vala/parser.y: pack all embedded stataments in blocks
* vala/vala.h: update

svn path=/trunk/; revision=221

17 years agocheck for inherited properties in construct formal parameters
Jürg Billeter [Sun, 4 Mar 2007 19:00:49 +0000 (19:00 +0000)]
check for inherited properties in construct formal parameters

2007-03-04  Jürg Billeter  <j@bitron.ch>

* vala/valasemanticanalyzer.vala: check for inherited properties in
  construct formal parameters

svn path=/trunk/; revision=220

17 years agodon't allow interface implementations to specify override remove override
Jürg Billeter [Sun, 4 Mar 2007 18:50:47 +0000 (18:50 +0000)]
don't allow interface implementations to specify override remove override

2007-03-04  Jürg Billeter  <j@bitron.ch>

* vala/valasemanticanalyzer.vala: don't allow interface implementations
  to specify override
* vala/valaconstant.vala, vala/valafield.vala,
  vala/valaformalparameter.vala, vala/valamethod.vala,
  vala/valaproperty.vala, vala/valasignal.vala,
  vala/valavariabledeclarator.vala: remove override from interface
  implementations

svn path=/trunk/; revision=219

17 years agorename base_types of interfaces to prerequisites to follow GObject
Jürg Billeter [Sun, 4 Mar 2007 18:45:02 +0000 (18:45 +0000)]
rename base_types of interfaces to prerequisites to follow GObject

2007-03-04  Jürg Billeter  <j@bitron.ch>

* vala/parser.y, vala/valainterface.vala,
  vala/valasemanticanalyzer.vala: rename base_types of interfaces to
  prerequisites to follow GObject terminology
* vala/valamethod.vala, vala/valasemanticanalyzer.vala,
  vala/valacodegenerator.vala: move interface usage part from
  base_method to base_interface_method property
* vala/valasemanticanalyzer.vala: don't require interface
  implementations to specify override
* vala/valacodegenerator.vala: support base access in interface
  implementations
* tests/test-017.vala: remove override in method declaration

svn path=/trunk/; revision=218

17 years agosupport lambda expressions in constructors remove extra printf argument
Jürg Billeter [Sun, 4 Mar 2007 18:16:16 +0000 (18:16 +0000)]
support lambda expressions in constructors remove extra printf argument

2007-03-04  Jürg Billeter  <j@bitron.ch>

* vala/valasemanticanalyzer.vala: support lambda expressions in
  constructors
* tests/test-029.vala: remove extra printf argument

svn path=/trunk/; revision=217

17 years agoadd support for construct formal creation method parameters add testcase
Raffaele Sandrini [Sun, 4 Mar 2007 15:22:33 +0000 (15:22 +0000)]
add support for construct formal creation method parameters add testcase

2007-03-04  Raffaele Sandrini  <rasa@gmx.ch>

* vala/valasemanticanalyzer.vala, vala/parser.y,
  vala/valaformalparameter.vala: add support for construct formal
  creation method parameters
* tests/test-029.vala, tests/test-029.out: add testcase for construct
  formal parameters
* tests/Makefile.am: update

svn path=/trunk/; revision=216

17 years agoupdate/fix copyright notice
Raffaele Sandrini [Sun, 4 Mar 2007 08:24:30 +0000 (08:24 +0000)]
update/fix copyright notice

2007-03-04  Raffaele Sandrini  <rasa@gmx.ch>

* vala/valaattributeprocessor.vala, vala/valacharacterliteral.vala,
  vala/valamethod.vala, vala/valasymbolbuilder.vala,
  vala/valacodevisitor.vala, vala/valainterfacewriter.vala,
  vala/valamemorymanager.vala: update/fix copyright notice

svn path=/trunk/; revision=215

17 years agoadd CreationMethod type; restrict creation methods bodys to contain only
Raffaele Sandrini [Sat, 3 Mar 2007 22:07:17 +0000 (22:07 +0000)]
add CreationMethod type; restrict creation methods bodys to contain only

2007-03-03  Raffaele Sandrini  <rasa@gmx.ch>

* vala/valaattributeprocessor.vala, vala/valamethod.vala,
  vala/valacodegenerator.vala, vala/valacreationmethod.vala,
  vala/valasymbolbuilder.vala, vala/valasemanticanalyzer.vala,
  vala/parser.y, vala/valacodevisitor.vala,
  vala/valainterfacewriter.vala, vala/valamemorymanager.vala:
  add CreationMethod type; restrict creation methods bodys to contain
  only property assignment statements
* vala/valacharacterliteral.vala, vala/valacodegenerator.vala,
  vala/valaarray.vala: fix the compiler to obey the new creation
  method rules
* vala/Makefile.am: update

svn path=/trunk/; revision=214

17 years agoswitch to new construction syntax
Jürg Billeter [Sat, 3 Mar 2007 16:29:54 +0000 (16:29 +0000)]
switch to new construction syntax

2007-03-03  Jürg Billeter  <j@bitron.ch>

* vapi/atk.vala, vapi/cairo.vala, vapi/gdk-2.0.vala, vapi/gtk+-2.0.vala,
  vapi/pango.vala: switch to new construction syntax

svn path=/trunk/; revision=213

17 years agoremove support of old construction syntax
Jürg Billeter [Sat, 3 Mar 2007 16:15:33 +0000 (16:15 +0000)]
remove support of old construction syntax

2007-03-03  Jürg Billeter  <j@bitron.ch>

* vala/parser.y: remove support of old construction syntax

svn path=/trunk/; revision=212

17 years agoSwitch to new construction syntax
Jürg Billeter [Sat, 3 Mar 2007 16:12:34 +0000 (16:12 +0000)]
Switch to new construction syntax

2007-03-03  Jürg Billeter  <j@bitron.ch>

* Switch to new construction syntax

svn path=/trunk/; revision=211

17 years agosupport new construction syntax write interface with new construction
Jürg Billeter [Sat, 3 Mar 2007 16:08:05 +0000 (16:08 +0000)]
support new construction syntax write interface with new construction

2007-03-03  Jürg Billeter  <j@bitron.ch>

* vala/parser.y: support new construction syntax
* vala/valainterfacewriter.vala: write interface with new construction
  syntax

svn path=/trunk/; revision=210

17 years agoimprove equality check add type parameter equality check add symbol
Jürg Billeter [Thu, 1 Mar 2007 22:02:22 +0000 (22:02 +0000)]
improve equality check add type parameter equality check add symbol

2007-03-01  Jürg Billeter  <j@bitron.ch>

* vala/valatypereference.vala: improve equality check
* vala/valatypeparameter.vala: add type parameter equality check
* vala/valasemanticanalyzer.vala: add symbol dependencies for
  interfaces, support overriding methods of interfaces with
  prerequisites

svn path=/trunk/; revision=209

17 years agoPost-release version bump
Jürg Billeter [Wed, 28 Feb 2007 23:13:22 +0000 (23:13 +0000)]
Post-release version bump

2007-02-28  Jürg Billeter  <j@bitron.ch>

* configure.ac: Post-release version bump

svn path=/trunk/; revision=208

17 years agoupdate for 0.0.6 release correctly distribute test sources VALA_0_0_6
Jürg Billeter [Wed, 28 Feb 2007 22:39:18 +0000 (22:39 +0000)]
update for 0.0.6 release correctly distribute test sources

2007-02-28  Jürg Billeter  <j@bitron.ch>

* NEWS: update for 0.0.6 release
* tests/Makefile.am: correctly distribute test sources

svn path=/trunk/; revision=207

17 years agoupdates and fixes
Jürg Billeter [Wed, 28 Feb 2007 20:51:38 +0000 (20:51 +0000)]
updates and fixes

2007-02-28  Jürg Billeter  <j@bitron.ch>

* vapi/atk.vala, vapi/gdk-2.0.vala, vapi/gtk+-2.0.vala, vapi/pango.vala:
  updates and fixes

svn path=/trunk/; revision=206

17 years agosupport uchar[] regenerated set cheader_filename fix GdkCursor and
Jürg Billeter [Wed, 28 Feb 2007 20:47:42 +0000 (20:47 +0000)]
support uchar[] regenerated set cheader_filename fix GdkCursor and

2007-02-28  Jürg Billeter  <j@bitron.ch>

* vapigen/valagidlparser.vala: support uchar[]
* packages/atk/atk.gidl, packages/gtk+-2.0/gtk+-2.0.gidl,
  packages/pango/pango.gidl: regenerated
* packages/atk/atk.metadata: set cheader_filename
* packages/gdk-2.0/gdk-2.0.metadata: fix GdkCursor and GdkWindowAttr

svn path=/trunk/; revision=205

17 years agotest Array.resize method and Array.length field update length when
Jürg Billeter [Wed, 28 Feb 2007 19:39:00 +0000 (19:39 +0000)]
test Array.resize method and Array.length field update length when

2007-02-28  Jürg Billeter  <j@bitron.ch>

* tests/test-022.vala, tests/test-022.out: test Array.resize method and
  Array.length field
* vala/valacodegenerator.vala: update length when resizing arrays

svn path=/trunk/; revision=204

17 years agomark source_reference as construction property to allow access in Array
Jürg Billeter [Tue, 27 Feb 2007 22:42:50 +0000 (22:42 +0000)]
mark source_reference as construction property to allow access in Array

2007-02-27  Jürg Billeter  <j@bitron.ch>

* vala/valacodenode.vala: mark source_reference as construction property
  to allow access in Array constructor
* vala/valaarraylengthfield.vala: the Array.length field
* vala/valaarrayresizemethod.vala: the Array.resize method
* vala/valaarray.vala: support arrays of generic type parameters, add
  length field, add resize method
* vala/valatypereference.vala: make source reference optional
* vala/valatypeparameter.vala, vala/valasymbolresolver.vala,
  vala/valasemanticanalyzer.vala: support arrays of generic type
  parameters
* vala/valadatatype.vala, vala/valacodegenerator.vala: support
  Array.length field and Array.resize method
* vala/Makefile.am: update

svn path=/trunk/; revision=203

17 years agoaccept interfaces with base types
Jürg Billeter [Tue, 27 Feb 2007 18:50:16 +0000 (18:50 +0000)]
accept interfaces with base types

2007-02-27  Jürg Billeter  <j@bitron.ch>

* vala/parser.y: accept interfaces with base types

svn path=/trunk/; revision=202

17 years agofix error handling with unknown namespaces
Jürg Billeter [Mon, 26 Feb 2007 22:41:02 +0000 (22:41 +0000)]
fix error handling with unknown namespaces

2007-02-26  Jürg Billeter  <j@bitron.ch>

* vala/valasymbolresolver.vala: fix error handling with unknown
  namespaces

svn path=/trunk/; revision=201

17 years agotest enums update
Jürg Billeter [Mon, 26 Feb 2007 22:27:22 +0000 (22:27 +0000)]
test enums update

2007-02-26  Jürg Billeter  <j@bitron.ch>

* tests/test-028.vala, tests/test-028.out: test enums
* tests/Makefile.am: update

svn path=/trunk/; revision=200

17 years agotest postfix and prefix expressions update support prefix and postfix
Jürg Billeter [Mon, 26 Feb 2007 22:18:58 +0000 (22:18 +0000)]
test postfix and prefix expressions update support prefix and postfix

2007-02-26  Jürg Billeter  <j@bitron.ch>

* tests/test-027.vala, tests/test-027.out: test postfix and prefix
  expressions
* tests/Makefile.am: update
* vala/valasemanticanalyzer.vala, vala/valacodegenerator.vala: support
  prefix and postfix expressions for properties and parenthesized
  expressions

svn path=/trunk/; revision=199

17 years agoimprove subtyping suport for structs
Jürg Billeter [Sun, 25 Feb 2007 20:21:50 +0000 (20:21 +0000)]
improve subtyping suport for structs

2007-02-25  Jürg Billeter  <j@bitron.ch>

* vala/valasemanticanalyzer.vala, vala/valacodegenerator.vala: improve
  subtyping suport for structs

svn path=/trunk/; revision=198

17 years agotest hidden base method access update correct symbol_reference for base
Jürg Billeter [Sun, 25 Feb 2007 19:58:27 +0000 (19:58 +0000)]
test hidden base method access update correct symbol_reference for base

2007-02-25  Jürg Billeter  <j@bitron.ch>

* tests/test-026.vala, tests/test-026.out: test hidden base method
  access
* tests/Makefile.am: update
* vala/valasemanticanalyzer.vala: correct symbol_reference for base
  access, add current_struct field

svn path=/trunk/; revision=197

17 years agoenhance assignment test correct bracketing in compound assignments
Jürg Billeter [Sun, 25 Feb 2007 19:15:33 +0000 (19:15 +0000)]
enhance assignment test correct bracketing in compound assignments

2007-02-25  Jürg Billeter  <j@bitron.ch>

* tests/test-010.vala, tests/test-010.out: enhance assignment test
* vala/valasemanticanalyzer.vala: correct bracketing in compound
  assignments

svn path=/trunk/; revision=196

17 years agoadd to_string method
Jürg Billeter [Sun, 25 Feb 2007 17:43:38 +0000 (17:43 +0000)]
add to_string method

2007-02-25  Jürg Billeter  <j@bitron.ch>

* vala/valacodenode.vala: add to_string method

svn path=/trunk/; revision=195

17 years agoimprove GSource support
Jürg Billeter [Sun, 25 Feb 2007 17:19:49 +0000 (17:19 +0000)]
improve GSource support

2007-02-25  Jürg Billeter  <j@bitron.ch>

* vapi/glib-2.0.vala: improve GSource support

svn path=/trunk/; revision=194

17 years agoupdate Changelog also
Raffaele Sandrini [Thu, 22 Feb 2007 14:31:53 +0000 (14:31 +0000)]
update Changelog also

* update Changelog also

svn path=/trunk/; revision=193

17 years agodon't allow NULL terminated arrays of value-type structs and remove the
Raffaele Sandrini [Thu, 22 Feb 2007 14:01:32 +0000 (14:01 +0000)]
don't allow NULL terminated arrays of value-type structs and remove the

2007-02-22  Raffaele Sandrini  <rasa@gmx.ch>

* vala/valacodegenerator.vala: don't allow NULL terminated arrays of
  value-type structs and remove the check on such arrays in a freach
  statement

svn path=/trunk/; revision=192

17 years agosupport using instance methods as static callbacks
Jürg Billeter [Wed, 21 Feb 2007 22:07:39 +0000 (22:07 +0000)]
support using instance methods as static callbacks

2007-02-21  Jürg Billeter  <j@bitron.ch>

* vala/valacallback.vala: support using instance methods as static
  callbacks

svn path=/trunk/; revision=191

17 years agomore string functions (patch by Cayle Graumann)
Jürg Billeter [Mon, 19 Feb 2007 21:15:07 +0000 (21:15 +0000)]
more string functions (patch by Cayle Graumann)

2007-02-19  Jürg Billeter  <j@bitron.ch>

* vapi/glib-2.0.vala: more string functions (patch by Cayle Graumann)

svn path=/trunk/; revision=190

17 years agofix indentation for class definitions
Raffaele Sandrini [Sun, 18 Feb 2007 09:08:46 +0000 (09:08 +0000)]
fix indentation for class definitions

2007-02-18  Raffaele Sandrini  <rasa@gmy.ch>

        * vala/valainterfacewriter.vala: fix indentation for class definitions

svn path=/trunk/; revision=189

17 years agoadd GLib.Queue
Jürg Billeter [Sun, 4 Feb 2007 17:42:35 +0000 (17:42 +0000)]
add GLib.Queue

2007-02-04  Jürg Billeter  <j@bitron.ch>

* vapi/glib-2.0.vala: add GLib.Queue

svn path=/trunk/; revision=188

17 years agofix global constants add NoArrayLength attribute to Process functions
Jürg Billeter [Sun, 4 Feb 2007 14:07:40 +0000 (14:07 +0000)]
fix global constants add NoArrayLength attribute to Process functions

2007-02-04  Jürg Billeter  <j@bitron.ch>

* vala/valaconstant.vala: fix global constants
* vapi/glib-2.0.vala: add NoArrayLength attribute to Process functions

svn path=/trunk/; revision=187

17 years agouse correct type cname in array creation expression, don't assume that all
Jürg Billeter [Sun, 4 Feb 2007 13:00:08 +0000 (13:00 +0000)]
use correct type cname in array creation expression, don't assume that all

2007-02-04  Jürg Billeter  <j@bitron.ch>

* vala/valacodegenerator.vala: use correct type cname in array creation
  expression, don't assume that all string arrays own their content

svn path=/trunk/; revision=186

17 years agofix crash when parsing array creation expression
Jürg Billeter [Sun, 4 Feb 2007 12:36:09 +0000 (12:36 +0000)]
fix crash when parsing array creation expression

2007-02-04  Jürg Billeter  <j@bitron.ch>

* vala/parser.y: fix crash when parsing array creation expression

svn path=/trunk/; revision=185

17 years agoadd get_bool method for boolean values print message when detecting option
Jürg Billeter [Sat, 23 Dec 2006 20:24:38 +0000 (20:24 +0000)]
add get_bool method for boolean values print message when detecting option

2006-12-23  Jürg Billeter  <j@bitron.ch>

* vala/valaattribute.vala: add get_bool method for boolean values
* compiler/valacompiler.vala: print message when detecting option errors

svn path=/trunk/; revision=184

17 years agoadd message logging functions support enum to int conversions and
Jürg Billeter [Sun, 10 Dec 2006 10:11:19 +0000 (10:11 +0000)]
add message logging functions support enum to int conversions and

2006-12-10  Jürg Billeter  <j@bitron.ch>

* vapi/glib-2.0.vala: add message logging functions
* vala/valasemanticanalyzer.vala: support enum to int conversions and
  diagnostic methods
* vala/valacodegenerator.vala: support do statements

svn path=/trunk/; revision=183

17 years agofix generating switch statements
Jürg Billeter [Fri, 24 Nov 2006 09:40:19 +0000 (09:40 +0000)]
fix generating switch statements

2006-11-24  Jürg Billeter  <j@bitron.ch>

* vala/valacodegenerator.vala: fix generating switch statements

svn path=/trunk/; revision=182

17 years agoallow main methods without parameters and main methods returning void,
Jürg Billeter [Thu, 23 Nov 2006 20:48:25 +0000 (20:48 +0000)]
allow main methods without parameters and main methods returning void,

2006-11-23  Jürg Billeter  <j@bitron.ch>

* vala/valacodegenerator.vala: allow main methods without parameters and
  main methods returning void, check complete signature of main method

svn path=/trunk/; revision=181

17 years agosupport enum members with values
Jürg Billeter [Wed, 22 Nov 2006 10:07:38 +0000 (10:07 +0000)]
support enum members with values

2006-11-22  Jürg Billeter  <j@bitron.ch>

* vala/parser.y, vala/valacodegenerator.vala: support enum members with
  values

svn path=/trunk/; revision=180

17 years agoadd direct_hash and direct_equal distribute reference output
Jürg Billeter [Wed, 22 Nov 2006 07:30:46 +0000 (07:30 +0000)]
add direct_hash and direct_equal distribute reference output

2006-11-22  Jürg Billeter  <j@bitron.ch>

* vapi/glib-2.0.vala: add direct_hash and direct_equal
* tests/Makefile.am: distribute reference output

svn path=/trunk/; revision=179

17 years agouse new attribute functionality
Jürg Billeter [Tue, 21 Nov 2006 11:36:33 +0000 (11:36 +0000)]
use new attribute functionality

2006-11-21  Jürg Billeter  <j@bitron.ch>

* vala/valaclass.vala, vala/valaenum.vala, vala/valafield.vala,
  vala/valainterface.vala, vala/valanamespace.vala,
  vala/valastruct.vala: use new attribute functionality

svn path=/trunk/; revision=178

17 years agoadd has_argument, get_string, and get_integer methods add get_attribute
Jürg Billeter [Tue, 21 Nov 2006 10:58:08 +0000 (10:58 +0000)]
add has_argument, get_string, and get_integer methods add get_attribute

2006-11-21  Jürg Billeter  <j@bitron.ch>

* vala/valaattribute.vala: add has_argument, get_string, and get_integer
  methods
* vala/valacodenode.vala: add get_attribute method
* vala/valamethod.vala: use new attribute functionality

svn path=/trunk/; revision=177

17 years agodon't require GLib namespace at runtime in symbol resolver and semantic
Jürg Billeter [Tue, 21 Nov 2006 10:29:36 +0000 (10:29 +0000)]
don't require GLib namespace at runtime in symbol resolver and semantic

2006-11-21  Jürg Billeter  <j@bitron.ch>

* vala/valasymbolresolver.vala, vala/valasemanticanalyzer.vala: don't
  require GLib namespace at runtime in symbol resolver and semantic
  analyzer

svn path=/trunk/; revision=176

17 years agoadd test script add reference output for test cases add test environment
Jürg Billeter [Tue, 21 Nov 2006 10:25:55 +0000 (10:25 +0000)]
add test script add reference output for test cases add test environment

2006-11-21  Jürg Billeter  <j@bitron.ch>

* tests/testrunner.sh: add test script
* tests/*.out: add reference output for test cases
* tests/Makefile.am: add test environment

svn path=/trunk/; revision=175

17 years agofix code generation for structs
Jürg Billeter [Mon, 20 Nov 2006 12:20:01 +0000 (12:20 +0000)]
fix code generation for structs

2006-11-20  Jürg Billeter  <j@bitron.ch>

* vala/valacodegenerator.vala: fix code generation for structs

svn path=/trunk/; revision=174

18 years agoremove AM_MAINTAINER_MODE to always rebuild scanner and parser if changed
Jürg Billeter [Sat, 11 Nov 2006 21:10:25 +0000 (21:10 +0000)]
remove AM_MAINTAINER_MODE to always rebuild scanner and parser if changed

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

* configure.ac: remove AM_MAINTAINER_MODE to always rebuild scanner and
  parser if changed

svn path=/trunk/; revision=173

18 years agoadd GArray and GTree structures write header files attributes for classes
Raffaele Sandrini [Thu, 9 Nov 2006 14:00:36 +0000 (14:00 +0000)]
add GArray and GTree structures write header files attributes for classes

2006-11-09  Raffaele Sandrini  <rasa@gmx.ch>

* vapi/glib-2.0.vala: add GArray and GTree structures
* vala/valainterfacewriter.vala: write header files attributes for
  classes

svn path=/trunk/; revision=172

18 years agosome fixes and additions
Jürg Billeter [Thu, 9 Nov 2006 09:21:51 +0000 (09:21 +0000)]
some fixes and additions

2006-11-09  Jürg Billeter  <j@bitron.ch>

* vapi/libxml-2.0.vala: some fixes and additions

svn path=/trunk/; revision=171

18 years agosupport interfaces in header cycles add get_interfaces method
Jürg Billeter [Wed, 8 Nov 2006 07:04:54 +0000 (07:04 +0000)]
support interfaces in header cycles add get_interfaces method

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

* vala/valacodegenerator.vala: support interfaces in header cycles
* vala/valanamespace.vala: add get_interfaces method

svn path=/trunk/; revision=170

18 years agosupport unary ~ operator
Jürg Billeter [Mon, 6 Nov 2006 19:55:21 +0000 (19:55 +0000)]
support unary ~ operator

2006-11-06  Jürg Billeter  <j@bitron.ch>

* vala/parser.y: support unary ~ operator

svn path=/trunk/; revision=169

18 years agouse g_value_set_object for interfaces implement get_type_id
Jürg Billeter [Mon, 6 Nov 2006 17:03:06 +0000 (17:03 +0000)]
use g_value_set_object for interfaces implement get_type_id

2006-11-06  Jürg Billeter  <j@bitron.ch>

* vala/valacodegenerator.vala: use g_value_set_object for interfaces
* vala/valainterface.vala: implement get_type_id

svn path=/trunk/; revision=168

18 years agoPost-release version bump
Jürg Billeter [Thu, 2 Nov 2006 17:40:24 +0000 (17:40 +0000)]
Post-release version bump

2006-11-02  Jürg Billeter  <j@bitron.ch>

* configure.ac: Post-release version bump

svn path=/trunk/; revision=167

18 years agoupdate for 0.0.5 release VALA_0_0_5
Jürg Billeter [Thu, 2 Nov 2006 17:37:28 +0000 (17:37 +0000)]
update for 0.0.5 release

2006-11-02  Jürg Billeter  <j@bitron.ch>

* NEWS: update for 0.0.5 release

svn path=/trunk/; revision=166

18 years agodon't ignore Gtk.Allocation, set cname of methods add Gtk.Allocation
Jürg Billeter [Thu, 2 Nov 2006 16:23:29 +0000 (16:23 +0000)]
don't ignore Gtk.Allocation, set cname of methods add Gtk.Allocation

2006-11-02  Jürg Billeter  <j@bitron.ch>

* vapigen/valagidlparser.vala: don't ignore Gtk.Allocation, set cname
  of methods
* packages/gtk+-2.0/gtk+-2.0-custom.vala: add Gtk.Allocation struct

svn path=/trunk/; revision=165

18 years agowrite CCode.cname attribute for methods use CCode.cname attribute
Jürg Billeter [Thu, 2 Nov 2006 16:22:19 +0000 (16:22 +0000)]
write CCode.cname attribute for methods use CCode.cname attribute

2006-11-02  Jürg Billeter  <j@bitron.ch>

* vala/valainterfacewriter.vala: write CCode.cname attribute for methods
* vapi/atk.vala, vapi/gdk-2.0.vala, vapi/gtk+-2.0.vala, vapi/pango.vala:
  use CCode.cname attribute

svn path=/trunk/; revision=164

18 years agocommit missing ChangeLog entry
Raffaele Sandrini [Thu, 2 Nov 2006 16:11:58 +0000 (16:11 +0000)]
commit missing ChangeLog entry

* commit missing ChangeLog entry

svn path=/trunk/; revision=163

18 years agofix memory leak caused when container expression transferns ownership to
Raffaele Sandrini [Thu, 2 Nov 2006 16:09:42 +0000 (16:09 +0000)]
fix memory leak caused when container expression transferns ownership to

2006-11-02  Raffaele Sandrini  <rasa@gmx.ch>

* vala/valacodegenerator.vala: fix memory leak caused when container
  expression transferns ownership to the foreach statement

svn path=/trunk/; revision=162

18 years agodon't use weak for value types make set_cname public add Gtk.Allocation,
Jürg Billeter [Thu, 2 Nov 2006 15:56:44 +0000 (15:56 +0000)]
don't use weak for value types make set_cname public add Gtk.Allocation,

2006-11-02  Jürg Billeter  <j@bitron.ch>

* vala/valainterfacewriter.vala: don't use weak for value types
* vala/valamethod.vala: make set_cname public
* vapi/atk.vala, vapi/gdk-2.0.vala, vapi/gtk+-2.0.vala, vapi/pango.vala:
  add Gtk.Allocation, don't use weak for value types

svn path=/trunk/; revision=161

18 years agodon't add NULL to end of variable argument list for printf-style functions
Jürg Billeter [Tue, 31 Oct 2006 21:41:12 +0000 (21:41 +0000)]
don't add NULL to end of variable argument list for printf-style functions

2006-10-31  Jürg Billeter  <j@bitron.ch>

* vala/valacodegenerator.vala: don't add NULL to end of variable
  argument list for printf-style functions to reduce the number of
  warnings during C compilation
* vala/valamethod.vala: support PrintfFormat attribute
* vala/vala.h: include valareport.h
* vapi/glib-2.0.vala: use PrintfFormat attribute

svn path=/trunk/; revision=160

18 years agomiscellaneous fixes
Jürg Billeter [Fri, 27 Oct 2006 18:18:52 +0000 (18:18 +0000)]
miscellaneous fixes

2006-10-27  Jürg Billeter  <j@bitron.ch>

* vapi/atk.vala, vapi/gdk-2.0.vala, vapi/gtk+-2.0.vala, vapi/pango.vala:
  miscellaneous fixes

svn path=/trunk/; revision=159

18 years agodetect some array types in return types support is_value_ype and fields in
Jürg Billeter [Fri, 27 Oct 2006 12:59:04 +0000 (12:59 +0000)]
detect some array types in return types support is_value_ype and fields in

2006-10-27  Jürg Billeter  <j@bitron.ch>

* gidlgen/gapi2xml.pl: detect some array types in return types
* vapigen/valagidlparser.vala: support is_value_ype and fields in boxed
  types
* vapigen/valavapigen.vala: add NoArrayLength attributes
* packages/atk/atk.gidl, packages/gtk+-2.0/gtk+-2.0.gidl: regenerated
* packages/gtk+-2.0/gtk+-2.0.metadata: fixes in GtkListStore,
  GtkTreePath, and GtkTreeView

svn path=/trunk/; revision=158

18 years agomake foreach iterator only visible to the foreach body. update
Raffaele Sandrini [Thu, 26 Oct 2006 20:36:43 +0000 (20:36 +0000)]
make foreach iterator only visible to the foreach body. update

2006-10-26  Raffaele Sandrini  <rasa@gmx.ch>

* vala/valasemanticanalyzer.vala: make foreach iterator only visible to the
  foreach body.
* INSTALL: update

svn path=/trunk/; revision=157

18 years agodon't create empty dispose functions, support virtual methods with
Jürg Billeter [Thu, 26 Oct 2006 12:05:44 +0000 (12:05 +0000)]
don't create empty dispose functions, support virtual methods with

2006-10-26  Jürg Billeter  <j@bitron.ch>

* vala/valacodegenerator.vala: don't create empty dispose functions,
  support virtual methods with non-void return type
* vapi/glib-2.0.vala: include glib/gstdio.h for GLib file functions

svn path=/trunk/; revision=156

18 years agoexplicitly cast callbacks to reduce the number of warnings during C
Jürg Billeter [Thu, 26 Oct 2006 10:54:56 +0000 (10:54 +0000)]
explicitly cast callbacks to reduce the number of warnings during C

2006-10-26  Jürg Billeter  <j@bitron.ch>

* vala/valacodegenerator.vala: explicitly cast callbacks to reduce the
  number of warnings during C compilation

svn path=/trunk/; revision=155

18 years agoconvert integer to pointer for generic parameters to reduce the number of
Jürg Billeter [Thu, 26 Oct 2006 09:49:25 +0000 (09:49 +0000)]
convert integer to pointer for generic parameters to reduce the number of

2006-10-26  Jürg Billeter  <j@bitron.ch>

* vala/valacodegenerator.vala: convert integer to pointer for generic
  parameters to reduce the number of warnings during C compilation

svn path=/trunk/; revision=154

18 years agocast object instances in return statements to reduce the number of
Jürg Billeter [Thu, 26 Oct 2006 08:34:39 +0000 (08:34 +0000)]
cast object instances in return statements to reduce the number of

2006-10-26  Jürg Billeter  <j@bitron.ch>

* vala/valacodegenerator.vala: cast object instances in return
  statements to reduce the number of warnings during C compilation

svn path=/trunk/; revision=153

18 years agocast object instances in comparisons to reduce the number of warnings
Jürg Billeter [Wed, 25 Oct 2006 21:19:14 +0000 (21:19 +0000)]
cast object instances in comparisons to reduce the number of warnings

2006-10-25  Jürg Billeter  <j@bitron.ch>

* vala/valacodegenerator.vala: cast object instances in comparisons to
  reduce the number of warnings during C compilation

svn path=/trunk/; revision=152

18 years agostart to use const specifier for strings to reduce number of warnings
Jürg Billeter [Wed, 25 Oct 2006 20:12:20 +0000 (20:12 +0000)]
start to use const specifier for strings to reduce number of warnings

2006-10-25  Jürg Billeter  <j@bitron.ch>

* vala/valacodegenerator.vala, vala/valaarray.vala,
  vala/valacallback.vala, vala/valaclass.vala, vala/valadatatype.vala,
  vala/valaenum.vala, vala/valaflags.vala, vala/valainterface.vala,
  vala/valastruct.vala, vala/valatypereference.vala, vapi/glib-2.0.vala:
  start to use const specifier for strings to reduce number of warnings
  during C compilation

svn path=/trunk/; revision=151

18 years agosupport base access update test base access update
Jürg Billeter [Wed, 25 Oct 2006 18:03:27 +0000 (18:03 +0000)]
support base access update test base access update

2006-10-25  Jürg Billeter  <j@bitron.ch>

* vala/parser.y, vala/valacodevisitor.vala,
  vala/valasemanticanalyzer.vala, vala/valacodegenerator.vala,
  vala/valabaseaccess.vala: support base access
* vala/vala.h, vala/Makefile.am: update
* tests/test-025.vala: test base access
* tests/Makefile.am: update

svn path=/trunk/; revision=150

18 years agoPost-release version bump --version support always include config.h to
Jürg Billeter [Wed, 25 Oct 2006 09:44:08 +0000 (09:44 +0000)]
Post-release version bump --version support always include config.h to

2006-10-25  Jürg Billeter  <j@bitron.ch>

* configure.ac: Post-release version bump
* compiler/valacompiler.vala: --version support
* compiler/Makefile.am: always include config.h to keep compatibility
* vapi/config.vala: add binding for config.h
* vapi/Makefile.am: update

svn path=/trunk/; revision=149

18 years agosupport dependencies on constants
Jürg Billeter [Wed, 25 Oct 2006 08:56:15 +0000 (08:56 +0000)]
support dependencies on constants

2006-10-25  Jürg Billeter  <j@bitron.ch>

* vala/valasourcefile.vala: support dependencies on constants

svn path=/trunk/; revision=148

18 years agodon't crash when comparing value type with null
Jürg Billeter [Tue, 24 Oct 2006 21:01:48 +0000 (21:01 +0000)]
don't crash when comparing value type with null

2006-10-24  Jürg Billeter  <j@bitron.ch>

* vala/valasemanticanalyzer.vala: don't crash when comparing value type
  with null

svn path=/trunk/; revision=147

18 years agodon't crash on already resolved type references support typeof expression
Jürg Billeter [Tue, 24 Oct 2006 20:35:07 +0000 (20:35 +0000)]
don't crash on already resolved type references support typeof expression

2006-10-24  Jürg Billeter  <j@bitron.ch>

* vala/valasymbolresolver.vala: don't crash on already resolved type
  references
* vala/valasemanticanalyzer.vala: support typeof expression
* vala/valacodegenerator.vala: improve support for null-terminated
  arrays
* vala/valainterfacewriter.vala: don't write type arguments for arrays

svn path=/trunk/; revision=146

18 years agosupport enum values
Jürg Billeter [Sun, 8 Oct 2006 17:53:08 +0000 (17:53 +0000)]
support enum values

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

* vala/parser.y: support enum values

svn path=/trunk/; revision=145

18 years agoupdate for 0.0.4 release VALA_0_0_4
Jürg Billeter [Fri, 6 Oct 2006 12:18:46 +0000 (12:18 +0000)]
update for 0.0.4 release

2006-10-06  Jürg Billeter  <j@bitron.ch>

* NEWS: update for 0.0.4 release

svn path=/trunk/; revision=144

18 years agoadd get and set value support add user (arbitrary) signal support
Raffaele Sandrini [Fri, 6 Oct 2006 11:16:41 +0000 (11:16 +0000)]
add get and set value support add user (arbitrary) signal support

2006-10-06  Raffaele Sandrini  <rasa@gmx.ch>

* vapi/glib-2.0.vala, vala/valaflags.vala, vala/valaenum.vala,
  vala/valadatatype.vala, vala/valaarray.vala, vala/valaclass.vala,
  vala/valastruct.vala: add get and set value support
* vala/valacodegenerator.vala: add user (arbitrary) signal support
* vala/valadatatype.vala, vala/valamemorymanager.vala,
  vala/valastruct.vala: correctly honor ref types in type arguments
* ccode/valaccodedeclaration.vala, ccode/valaccodemodifiers.vala:
  support register local variables
* ccode/valaccodememberaccess.vala: make one line creation possible
* vapi/glib-2.0.vala: fix return type of Glib.List.nth_data
* tests/test-024.vala: add user signal test
* tests/Makefile.am: update

svn path=/trunk/; revision=143

18 years agocomplete support for prefix increment and decrement operator
Jürg Billeter [Thu, 5 Oct 2006 21:32:08 +0000 (21:32 +0000)]
complete support for prefix increment and decrement operator

2006-10-05  Jürg Billeter  <j@bitron.ch>

* vala/parser.y, vala/valasemanticanalyzer.vala: complete support for
  prefix increment and decrement operator

svn path=/trunk/; revision=142

18 years agotransform compund assignments into simple assignments add default argument
Jürg Billeter [Thu, 5 Oct 2006 09:07:30 +0000 (09:07 +0000)]
transform compund assignments into simple assignments add default argument

2006-10-05  Jürg Billeter  <j@bitron.ch>

* vala/valasemanticanalyzer.vala: transform compund assignments into
  simple assignments
* vala/valabinaryexpression.vala: add default argument to construction
  method
* tests/test-021.vala: test string += assignment

svn path=/trunk/; revision=141

18 years agocorrect takes_ownership in arrays add limited support for array length
Jürg Billeter [Wed, 4 Oct 2006 22:00:37 +0000 (22:00 +0000)]
correct takes_ownership in arrays add limited support for array length

2006-10-04  Jürg Billeter  <j@bitron.ch>

* vala/valasymbolresolver.vala: correct takes_ownership in arrays
* vala/valacodegenerator.vala: add limited support for array length
  fields, store array length from array creation expression, copy array
  length in array assignments
* vala/valafield.vala: support NoArrayLength attribute
* compiler/valacompiler.vala: add NoArrayLength attribute to option
  arrays

svn path=/trunk/; revision=140

18 years agospecify array element type as type argument create declarations for array
Jürg Billeter [Wed, 4 Oct 2006 13:17:07 +0000 (13:17 +0000)]
specify array element type as type argument create declarations for array

2006-10-04  Jürg Billeter  <j@bitron.ch>

* vala/valasymbolresolver.vala, vala/valasemanticanalyzer.vala: specify
  array element type as type argument
* vala/valacodegenerator.vala: create declarations for array length
  variables, iterate over arrays by index if it has known length
* vala/valacharacterliteral.vala: correct return type of get_char
* vala/valanamespace.vala: process enums and flags first
* vala/valavariabledeclarator.vala: set parent_node of initializer, add
  replace method
* tests/test-023.vala: test list construction
* tests/Makefile.am: update

svn path=/trunk/; revision=139

18 years agodon't use InstanceCast for callbacks
Jürg Billeter [Tue, 3 Oct 2006 18:16:45 +0000 (18:16 +0000)]
don't use InstanceCast for callbacks

2006-10-03  Jürg Billeter  <j@bitron.ch>

* vala/valacodegenerator.vala: don't use InstanceCast for callbacks

svn path=/trunk/; revision=138

18 years agoadd one dimensional array assignment support testcase for array
Raffaele Sandrini [Thu, 28 Sep 2006 12:21:08 +0000 (12:21 +0000)]
add one dimensional array assignment support testcase for array

2006-09-28  Raffaele Sandrini <rasa@gmx.ch>
* vala/valacodegenerator.vala, vala/valasemanticanalyzer.vala,
  vala/valamemorymanager.vala: add one dimensional array assignment
  support
* tests/test-022.vala: testcase for array creation/assignment
* tests/Makefile.am: update

svn path=/trunk/; revision=137

18 years agoadd and improve various types
Jürg Billeter [Thu, 28 Sep 2006 06:44:12 +0000 (06:44 +0000)]
add and improve various types

2006-09-28  Jürg Billeter  <j@bitron.ch>

* vapi/glib-2.0.vala: add and improve various types

svn path=/trunk/; revision=136

18 years agoset attributes also for non-readable properties support interface signals
Jürg Billeter [Wed, 27 Sep 2006 22:31:27 +0000 (22:31 +0000)]
set attributes also for non-readable properties support interface signals

2006-09-28  Jürg Billeter  <j@bitron.ch>

* vala/parser.y: set attributes also for non-readable properties
* vala/valacodegenerator.vala: support interface signals
* vala/valainvocationexpression.vala,
  vala/valaobjectcreationexpression.vala: fix problem when children
  change while iterating over them

svn path=/trunk/; revision=135

18 years agosupport InstanceByReference attribute add Filename struct, fix Process
Jürg Billeter [Wed, 27 Sep 2006 20:01:11 +0000 (20:01 +0000)]
support InstanceByReference attribute add Filename struct, fix Process

2006-09-27  Jürg Billeter  <j@bitron.ch>

* vala/valacodegenerator.vala, vala/valainterfacewriter.vala,
  vala/valamethod.vala: support InstanceByReference attribute
* vapi/glib-2.0.vala: add Filename struct, fix Process methods
* vapi/atk.vala, vapi/gdk-2.0.vala, vapi/gtk+-2.0.vala, vapi/pango.vala:
  fix static methods without parameters, add InstanceByReference
  attributes

svn path=/trunk/; revision=134

18 years agofix static modifier for methods without parameters
Jürg Billeter [Wed, 27 Sep 2006 19:36:15 +0000 (19:36 +0000)]
fix static modifier for methods without parameters

2006-09-27  Jürg Billeter  <j@bitron.ch>

* vapigen/valagidlparser.vala: fix static modifier for methods without
  parameters

svn path=/trunk/; revision=133

18 years agoset instance_by_reference flag on generated methods if appropriate set
Jürg Billeter [Wed, 27 Sep 2006 17:49:40 +0000 (17:49 +0000)]
set instance_by_reference flag on generated methods if appropriate set

2006-09-27  Jürg Billeter  <j@bitron.ch>

* vapigen/valagidlparser.vala: set instance_by_reference flag on
  generated methods if appropriate
* packages/gtk+-2.0/gtk+-2.0.metadata: set ellipsis for
  gtk_show_about_dialog

svn path=/trunk/; revision=132

18 years agovisit interface signals obey lock keyword add interface signals
Jürg Billeter [Wed, 27 Sep 2006 15:43:24 +0000 (15:43 +0000)]
visit interface signals obey lock keyword add interface signals

2006-09-27  Jürg Billeter  <j@bitron.ch>

* vala/valainterface.vala: visit interface signals
* vala/valainterfacewriter.vala: obey lock keyword
* vapi/atk.vala, vapi/gtk+-2.0.vala: add interface signals

svn path=/trunk/; revision=131