platform/upstream/vala.git
17 years agoinitialize new array elements after resizing an array, patch by Mathias
Jürg Billeter [Tue, 3 Apr 2007 13:00:25 +0000 (13:00 +0000)]
initialize new array elements after resizing an array, patch by Mathias

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

* vala/valacodegenerator.vala: initialize new array elements after
  resizing an array, patch by Mathias Hasselmann
* vala/valaproperty.vala: fix for interface properties

svn path=/trunk/; revision=275

17 years agosupport Goo namespace
Jürg Billeter [Tue, 3 Apr 2007 12:39:13 +0000 (12:39 +0000)]
support Goo namespace

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

* vapigen/valagidlparser.vala: support Goo namespace

svn path=/trunk/; revision=274

17 years agoadd manual page for valac written by Marc-André Lureau update
Jürg Billeter [Tue, 3 Apr 2007 12:21:48 +0000 (12:21 +0000)]
add manual page for valac written by Marc-André Lureau update

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

* doc/valac.1, doc/Makefile.am: add manual page for valac written by
  Marc-André Lureau
* Makefile.am, configure.ac: update

svn path=/trunk/; revision=273

17 years agosupport declaration of local arrays test local array declaration
Jürg Billeter [Tue, 3 Apr 2007 11:59:29 +0000 (11:59 +0000)]
support declaration of local arrays test local array declaration

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

* vala/scanner.l, vala/parser.y, vala/valasemanticanalyzer.vala,
  vala/valatypereference.vala: support declaration of local arrays
* tests/test-022.vala: test local array declaration

svn path=/trunk/; revision=272

17 years agosome fixes for abstract properties improve default cname
Jürg Billeter [Tue, 3 Apr 2007 11:23:40 +0000 (11:23 +0000)]
some fixes for abstract properties improve default cname

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

* vala/valasymbolbuilder.vala, vala/valacodegenerator.vala: some fixes
  for abstract properties
* vala/valamethod.vala: improve default cname

svn path=/trunk/; revision=271

17 years agoextend unicode support, add GRegex
Jürg Billeter [Tue, 3 Apr 2007 11:16:58 +0000 (11:16 +0000)]
extend unicode support, add GRegex

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

* vapi/glib-2.0.vala: extend unicode support, add GRegex

svn path=/trunk/; revision=270

17 years agodeclare HashFunc and EqualFunc as callback functions, patch by David
Raffaele Sandrini [Wed, 28 Mar 2007 12:09:46 +0000 (12:09 +0000)]
declare HashFunc and EqualFunc as callback functions, patch by David

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

* vapi/glib-2.0.vala: declare HashFunc and EqualFunc as callback
  functions, patch by David Keijser

svn path=/trunk/; revision=269

17 years agoadd vte binding update
Raffaele Sandrini [Sun, 25 Mar 2007 09:34:40 +0000 (09:34 +0000)]
add vte binding update

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

* vapi/vte.vala, vapi/vte.deps: add vte binding
* vapi/Makefile.am: update

svn path=/trunk/; revision=268

17 years agoadd vte bindings add cheader_filename to class declarations; support pid_t
Raffaele Sandrini [Sun, 25 Mar 2007 09:28:15 +0000 (09:28 +0000)]
add vte bindings add cheader_filename to class declarations; support pid_t

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

* packages/vte/vte.files, packages/vte/vte.deps,
  packages/vte/vte.namespace, packages/vte/vte.excludes,
  packages/vte/vte.patch, packages/vte/vte.gidl,
  packages/vte/vte.metadata: add vte bindings
* vapigen/valagidlparser.vala: add cheader_filename to class
  declarations; support pid_t type; support vte

svn path=/trunk/; revision=267

17 years agoassign parent_node to children of this statement; include iterator and
Raffaele Sandrini [Sat, 24 Mar 2007 20:52:41 +0000 (20:52 +0000)]
assign parent_node to children of this statement; include iterator and

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

* vala/valaforstatement.vala: assign parent_node to children of this
  statement; include iterator and initializer in replacement of a child
  node (fixes segfault using prefix increment expression in the
  iterator of a for-statement)

svn path=/trunk/; revision=266

17 years agoadd support for default values of types use default values for
Raffaele Sandrini [Thu, 22 Mar 2007 19:39:15 +0000 (19:39 +0000)]
add support for default values of types use default values for

2007-03-22  Raffaele Sandrini  <rasa@gmx.ch>
* vala/valaflags.vala, vala/valaenum.vala, vala/valadatatype.vala,
  vala/valastruct.vala: add support for default values of types
* vala/valacodegenerator.vala: use default values for initialization
* vapi/glib-2.0.vala: add default values for common types

svn path=/trunk/; revision=265

17 years agoPost-release version bump
Jürg Billeter [Thu, 22 Mar 2007 12:39:50 +0000 (12:39 +0000)]
Post-release version bump

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

* configure.ac: Post-release version bump

svn path=/trunk/; revision=264

17 years agoupdate for 0.0.8 release update VALA_0_0_8
Jürg Billeter [Thu, 22 Mar 2007 10:48:39 +0000 (10:48 +0000)]
update for 0.0.8 release update

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

* NEWS: update for 0.0.8 release
* tests/Makefile.am: update

svn path=/trunk/; revision=263

17 years agofix generation of unresolvable 'memset' for classes without strings.
Raffaele Sandrini [Thu, 22 Mar 2007 09:57:14 +0000 (09:57 +0000)]
fix generation of unresolvable 'memset' for classes without strings.

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

* vala/valacodegenerator.vala: fix generation of unresolvable 'memset'
  for classes without strings.

svn path=/trunk/; revision=262

17 years agoadd Pango.Cairo and Pango.CairoFontMap add cairo dependency update
Raffaele Sandrini [Wed, 21 Mar 2007 22:21:00 +0000 (22:21 +0000)]
add Pango.Cairo and Pango.CairoFontMap add cairo dependency update

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

* vapi/pango.vala: add Pango.Cairo and Pango.CairoFontMap
* vapi/pango.deps: add cairo dependency
* vapi/Makefile.am: update

svn path=/trunk/; revision=261

17 years agofix properties with interface types fix memory management when storing
Jürg Billeter [Wed, 21 Mar 2007 22:05:26 +0000 (22:05 +0000)]
fix properties with interface types fix memory management when storing

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

* vala/valacodegenerator.vala: fix properties with interface types
* vala/valamemorymanager.vala: fix memory management when storing array
  elements
* vala/valaconstant.vala: obey overridden cprefix in namespaces
* vapi/config.vala: override lower_case_cprefix of namespace

svn path=/trunk/; revision=260

17 years agoremove pangocairo.h add cairo dependency regenerated
Raffaele Sandrini [Wed, 21 Mar 2007 22:03:24 +0000 (22:03 +0000)]
remove pangocairo.h add cairo dependency regenerated

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

* packages/pango/pango.excludes: remove pangocairo.h
* packages/pango/pango.deps: add cairo dependency
* packages/pango/pango.gidl: regenerated

svn path=/trunk/; revision=259

17 years agoadd '_' between namespace and name of namespace constants' cname
Raffaele Sandrini [Wed, 21 Mar 2007 21:14:00 +0000 (21:14 +0000)]
add '_' between namespace and name of namespace constants' cname

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

* vala/valaconstant.vala: add '_' between namespace and name of
  namespace constants' cname

svn path=/trunk/; revision=258

17 years agodefault to reference type for boxed types, improve array and value-type
Jürg Billeter [Wed, 21 Mar 2007 20:38:20 +0000 (20:38 +0000)]
default to reference type for boxed types, improve array and value-type

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

* vapigen/valagidlparser.vala: default to reference type for boxed
  types, improve array and value-type handling
* packages/atk/atk.metadata, packages/gdk-2.0/gdk-2.0.metadata,
  packages/gtk+-2.0/gtk+-2.0.metadata, packages/pango/pango.metadata:
  add more value-types

svn path=/trunk/; revision=257

17 years agominor output enhancements improve handling of value-types and arrays
Jürg Billeter [Wed, 21 Mar 2007 20:13:01 +0000 (20:13 +0000)]
minor output enhancements improve handling of value-types and arrays

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

* vala/valainterfacewriter.vala: minor output enhancements
* vapi/atk.vala, vapi/gdk-2.0.vala, vapi/gtk+-2.0.vala, vapi/pango.vala:
  improve handling of value-types and arrays

svn path=/trunk/; revision=256

17 years agosupport static interfaces make set_type_id public add GBoxed as interface
Jürg Billeter [Wed, 21 Mar 2007 17:05:04 +0000 (17:05 +0000)]
support static interfaces make set_type_id public add GBoxed as interface

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

* vala/parser.y, vala/valainterface.vala: support static interfaces
* vala/valastruct.vala: make set_type_id public
* vapi/glib-2.0.vala: add GBoxed as interface

svn path=/trunk/; revision=255

17 years agoadapt to current Vala SVN by using weak variables where appropriate
Jürg Billeter [Wed, 21 Mar 2007 16:27:38 +0000 (16:27 +0000)]
adapt to current Vala SVN by using weak variables where appropriate

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

* vapigen/valagidlparser.vala: adapt to current Vala SVN by using weak
  variables where appropriate

svn path=/trunk/; revision=254

17 years agouse pointer as default of type_id and marshaller_type_name for reference
Jürg Billeter [Wed, 21 Mar 2007 15:15:46 +0000 (15:15 +0000)]
use pointer as default of type_id and marshaller_type_name for reference

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

* vala/valastruct.vala: use pointer as default of type_id and
  marshaller_type_name for reference types
* vala/valapointer.vala: implement get_type_id

svn path=/trunk/; revision=253

17 years agodeep copy GLists if necessary, patch by Mathias Hasselmann fix some printf
Jürg Billeter [Wed, 21 Mar 2007 14:54:40 +0000 (14:54 +0000)]
deep copy GLists if necessary, patch by Mathias Hasselmann fix some printf

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

* vala/valacodegenerator.vala: deep copy GLists if necessary, patch by
  Mathias Hasselmann
* vapi/glib-2.0.vala: fix some printf format strings to work on ILP32
  and LP64 platforms

svn path=/trunk/; revision=252

17 years agoimprove support for numeric types, patch by Mathias Hasselmann test
Jürg Billeter [Wed, 21 Mar 2007 14:32:16 +0000 (14:32 +0000)]
improve support for numeric types, patch by Mathias Hasselmann test

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

* vapi/glib-2.0.vala: improve support for numeric types, patch by
  Mathias Hasselmann
* tests/test-030.vala, tests/test-030.out, tests/test-031.vala,
  tests/test-031.out: test numeric types
* tests/testrunner.sh: use c99 and math library
* tests/Makefile.am: update

svn path=/trunk/; revision=251

17 years agoimplement marshalling support support signals with interface parameters
Jürg Billeter [Wed, 21 Mar 2007 09:54:31 +0000 (09:54 +0000)]
implement marshalling support support signals with interface parameters

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

* vala/valainterface.vala: implement marshalling support
* vala/valacodegenerator.vala: support signals with interface parameters

svn path=/trunk/; revision=250

17 years agoadd extended runtime type support also read property modifiers in set-only
Raffaele Sandrini [Tue, 20 Mar 2007 21:08:30 +0000 (21:08 +0000)]
add extended runtime type support also read property modifiers in set-only

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

* vapi/glib-2.0.vala: add extended runtime type support
* vala/parser.y: also read property modifiers in set-only properties

svn path=/trunk/; revision=249

17 years agoadd GObject to the list of base types add ref and unref methods to GObject
Jürg Billeter [Tue, 20 Mar 2007 17:11:46 +0000 (17:11 +0000)]
add GObject to the list of base types add ref and unref methods to GObject

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

* vala/valasymbolresolver.vala: add GObject to the list of base types
* vapi/glib-2.0.vala: add ref and unref methods to GObject

svn path=/trunk/; revision=248

17 years agouse weak local variables where appropriate default local variables to
Jürg Billeter [Tue, 20 Mar 2007 15:44:43 +0000 (15:44 +0000)]
use weak local variables where appropriate default local variables to

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

* vala/valaparser.vala, vala/valasemanticanalyzer.vala,
  vala/valamemorymanager.vala, vala/valacodegenerator.vala,
  vala/valacallback.vala, vala/valainvocationexpression.vala,
  vala/valamethod.vala, vala/valaobjectcreationexpression.vala: use weak
  local variables where appropriate
* vala/parser.y, vala/valasemanticanalyzer.vala: default local variables
  to strong reference
* vala/valasemanticanalyzer.vala: don't promote local variables from
  weak to strong reference
* vala/valacodegenerator.vala: warn when duplicating non-reference
  counted structs implicitly

svn path=/trunk/; revision=247

17 years agorun with /bin/bash due to bashism, patch by Mathias Hasselmann
Jürg Billeter [Tue, 20 Mar 2007 14:13:52 +0000 (14:13 +0000)]
run with /bin/bash due to bashism, patch by Mathias Hasselmann

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

* tests/testrunner.sh: run with /bin/bash due to bashism, patch by
  Mathias Hasselmann

svn path=/trunk/; revision=246

17 years agowrap functions for escaping markup strings, patch by Mathias Hasselmann
Jürg Billeter [Tue, 20 Mar 2007 14:10:39 +0000 (14:10 +0000)]
wrap functions for escaping markup strings, patch by Mathias Hasselmann

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

* vapi/glib-2.0.vala: wrap functions for escaping markup strings, patch
  by Mathias Hasselmann

svn path=/trunk/; revision=245

17 years agofree lists of interfaces correctly, patch by Mathias Hasselmann
Jürg Billeter [Tue, 20 Mar 2007 13:53:35 +0000 (13:53 +0000)]
free lists of interfaces correctly, patch by Mathias Hasselmann

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

* vala/valacodegenerator.vala: free lists of interfaces correctly, patch
  by Mathias Hasselmann

svn path=/trunk/; revision=244

17 years agoconsider install prefix when searching for packages, patch by Mathias
Jürg Billeter [Sat, 17 Mar 2007 19:34:08 +0000 (19:34 +0000)]
consider install prefix when searching for packages, patch by Mathias

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

* compiler/valacompiler.vala, compiler/Makefile.am, vapi/config.vala:
  consider install prefix when searching for packages, patch by
  Mathias Hasselmann
* configure.ac: add AM_PROG_CC_C_O
* autogen.sh, MAINTAINERS: added
* Makefile.am: dist MAINTAINERS

svn path=/trunk/; revision=243

17 years agosupport creating GTypeModule-based plug-ins with the ModuleInit attribute
Jürg Billeter [Sat, 17 Mar 2007 14:29:00 +0000 (14:29 +0000)]
support creating GTypeModule-based plug-ins with the ModuleInit attribute

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

* vala/valasemanticanalyzer.vala, vala/valacodegnerator.vala,
  vala/valaclassregisterfunction.vala,
  vala/valainterfaceregisterfunction.vala,
  vala/valatyperegisterfunction.vala, vala/valacodecontext.vala: support
  creating GTypeModule-based plug-ins with the ModuleInit attribute
* vala/parser.y, vala/valacodegenerator.vala, vala/valaclass.vala:
  support static classes
* vapi/glib-2.0.vala: add TypePlugin and TypeModule

svn path=/trunk/; revision=242

17 years agoadapt to current Vala SVN regenerated
Jürg Billeter [Sat, 17 Mar 2007 12:52:46 +0000 (12:52 +0000)]
adapt to current Vala SVN regenerated

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

* vapigen/valagidlparser.vala: adapt to current Vala SVN
* packages/atk/atk.gidl, packages/gtk+-2.0/gtk+-2.0.gidl,
  packages/pango/pango.gidl: regenerated

svn path=/trunk/; revision=241

17 years agoaccept attributes without parentheses don't write weak keyword for value
Jürg Billeter [Sat, 17 Mar 2007 12:50:24 +0000 (12:50 +0000)]
accept attributes without parentheses don't write weak keyword for value

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

* vala/parser.y: accept attributes without parentheses
* vala/valainterfacewriter.vala: don't write weak keyword for value
  types
* vapi/atk.vala, vapi/cairo.vala, vapi/gdk-2.0.vala, vapi/gtk+-2.0.vala,
  vapi/libxml-2.0.vala, vapi/pango.vala: update

svn path=/trunk/; revision=240

17 years agosupport pointer indirections support pointer-types, pointer indirections,
Jürg Billeter [Sat, 17 Mar 2007 09:52:20 +0000 (09:52 +0000)]
support pointer indirections support pointer-types, pointer indirections,

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

* ccode/valaccodeunaryexpression.vala: support pointer indirections
* vala/parser.y, vala/valacodevisitor.vala,
  vala/valasymbolresolver.vala, vala/valasemanticanalyzer.vala,
  vala/valamemorymanager.vala, vala/valacodegenerator.vala,
  vala/valaaddressofexpression.vala, vala/valadatatype.vala,
  vala/valapointer.vala, vala/valapointerindirection.vala,
  vala/valatypereference.vala: support pointer-types, pointer
  indirections, and address-of expressions
* vala/vala.h, vala/Makefile.am: update

svn path=/trunk/; revision=239

17 years agosupport weak keyword in local variable declarations improve GError support
Jürg Billeter [Fri, 16 Mar 2007 22:42:57 +0000 (22:42 +0000)]
support weak keyword in local variable declarations improve GError support

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

* vala/parser.y: support weak keyword in local variable declarations
* vapi/glib-2.0.vala: improve GError support

svn path=/trunk/; revision=238

17 years agosupport disconnecting signals, based on patch by Alexandre Moreira test
Jürg Billeter [Fri, 16 Mar 2007 22:13:48 +0000 (22:13 +0000)]
support disconnecting signals, based on patch by Alexandre Moreira test

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

* vala/valacodegenerator.vala: support disconnecting signals, based on
  patch by Alexandre Moreira
* tests/test-018.vala, tests/test-018.out: test disconnecting signals

svn path=/trunk/; revision=237

17 years agofix null pointer dereference when emitting signals
Jürg Billeter [Fri, 16 Mar 2007 21:26:41 +0000 (21:26 +0000)]
fix null pointer dereference when emitting signals

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

* vala/valacodegenerator.vala: fix null pointer dereference when
  emitting signals

svn path=/trunk/; revision=236

17 years agodefault to strong references for method return types reset
Jürg Billeter [Fri, 16 Mar 2007 21:23:27 +0000 (21:23 +0000)]
default to strong references for method return types reset

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

* vala/parser.y: default to strong references for method return types
* vala/valasymbolresolver.vala: reset TypeReference.transfers_ownership
  for value-types
* vala/valasourcefile.vala: assume ownership of include filenames
* vala/valainterfacewriter.vala: use weak keyword for return types
* vala/valacodecontext.vala, vala/valasourcefile.vala,
  vala/valasymbolbuilder.vala, vapi/glib-2.0.vala: add weak to return
  types

svn path=/trunk/; revision=235

17 years agoresolve generic return values fix check for generic method parameters to
Jürg Billeter [Sun, 11 Mar 2007 22:17:06 +0000 (22:17 +0000)]
resolve generic return values fix check for generic method parameters to

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

* vala/valasemanticanalyzer.vala: resolve generic return values
* vala/valamemorymanager.vala: fix check for generic method parameters
  to support derived types
* vala/valainterface.vala: implement get_type_parameter_index
* vala/valamemberaccess.vala: visit type arguments
* vala/valaclassregisterfunction.vala,
  vala/valainterfaceregisterfunction.vala,
  vala/valatyperegisterfunction.vala: pass base_init function pointer
  for interfaces
* vala/valacodegenerator.vala: fix initialization check in interface
  base_init function
* vala/valasemanticanalyzer.vala: fix prerequisite check to also accept
  derived types of prerequisites

svn path=/trunk/; revision=234

17 years agocorrect bracketing in cast expressions
Jürg Billeter [Sat, 10 Mar 2007 22:30:15 +0000 (22:30 +0000)]
correct bracketing in cast expressions

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

* ccode/valaccodecastexpression.vala: correct bracketing in cast
  expressions

svn path=/trunk/; revision=233

17 years agosupport interface properties and signals, improve support for generics
Jürg Billeter [Sat, 10 Mar 2007 22:22:03 +0000 (22:22 +0000)]
support interface properties and signals, improve support for generics

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

* vala/valacodegenerator.vala: support interface properties and signals,
  improve support for generics

svn path=/trunk/; revision=232

17 years agosupport abstract, virtual, and override modifiers for properties support
Jürg Billeter [Sat, 10 Mar 2007 22:08:11 +0000 (22:08 +0000)]
support abstract, virtual, and override modifiers for properties support

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

* vala/parser.y, vala/valasymbolbuilder.vala,
  vala/valasemanticanalyzer.vala, vala/valaproperty.vala: support
  abstract, virtual, and override modifiers for properties
* vala/parser.y: support get and set as identifiers

svn path=/trunk/; revision=231

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