Jürg Billeter [Wed, 18 Apr 2007 08:49:10 +0000 (08:49 +0000)]
simplify unref expression for non-null types don't mark fields as non-null
2007-04-18 Jürg Billeter <j@bitron.ch>
* vala/valacodegenerator.vala: simplify unref expression for non-null
types
* vala/valaclass.vala: don't mark fields as non-null due to
initialization issue
svn path=/trunk/; revision=285
Jürg Billeter [Thu, 12 Apr 2007 15:11:57 +0000 (15:11 +0000)]
add is_null property fix type analysis in conditional and parenthesized
2007-04-12 Jürg Billeter <j@bitron.ch>
* vala/valatypereference.vala: add is_null property
* vala/valasemanticanalyzer.vala: fix type analysis in conditional and
parenthesized expressions, fixes bug 428368
* vapi/glib-2.0.vala: don't mark GLib.Object and GLib.InitiallyUnowned
as abstract
svn path=/trunk/; revision=284
Jürg Billeter [Thu, 12 Apr 2007 09:49:33 +0000 (09:49 +0000)]
fix warning when using interface properties
2007-04-12 Jürg Billeter <j@bitron.ch>
* vala/valacodegenerator.vala: fix warning when using interface
properties
svn path=/trunk/; revision=283
Jürg Billeter [Fri, 6 Apr 2007 14:27:28 +0000 (14:27 +0000)]
use yyleng instead of strlen don't write unnecessary attributes to reduce
2007-04-06 Jürg Billeter <j@bitron.ch>
* vala/scanner.l: use yyleng instead of strlen
* vala/valainterfacewriter.vala: don't write unnecessary attributes to
reduce parse time
* vapi/atk.vala, vapi/gdk-2.0.vala, vapi/gtk+-2.0.vala, vapi/pango.vala:
remove unnecessary attributes to reduce parse time
svn path=/trunk/; revision=282
Jürg Billeter [Thu, 5 Apr 2007 11:49:49 +0000 (11:49 +0000)]
support temporary variables in initializers and iterators of for
2007-04-05 Jürg Billeter <j@bitron.ch>
* vala/valacodegenerator.vala, vala/valaforstatement.vala: support
temporary variables in initializers and iterators of for statements
* vala/valacodegenerator.vala: support freeing generic types
* vala/parser.y, vala/valacodevisitor.vala,
vala/valasemanticanalyzer.vala, vala/valacodegenerator.vala,
vala/valareferencetransferexpression.vala: add reference transfer
expressions, e.g. `#var'
* vala/vala.h, vala/Makefile.am: update
svn path=/trunk/; revision=281
Jürg Billeter [Thu, 5 Apr 2007 09:50:40 +0000 (09:50 +0000)]
generate properties for destroy function pointers in generic types
2007-04-05 Jürg Billeter <j@bitron.ch>
* vala/valacodegenerator.vala: generate properties for destroy function
pointers in generic types
svn path=/trunk/; revision=280
Jürg Billeter [Thu, 5 Apr 2007 09:03:37 +0000 (09:03 +0000)]
pass destroy function pointer when creating instances of generic types add
2007-04-05 Jürg Billeter <j@bitron.ch>
* vala/valacodegenerator.vala: pass destroy function pointer when
creating instances of generic types
* vala/valaclass.vala: add get_type_parameters method
svn path=/trunk/; revision=279
Jürg Billeter [Wed, 4 Apr 2007 20:52:30 +0000 (20:52 +0000)]
improve cast support fix ownership handling of local arrays skip code
2007-04-04 Jürg Billeter <j@bitron.ch>
* vala/scanner.l: improve cast support
* vala/valasemanticanalyzer.vala: fix ownership handling of local arrays
* vala/valacodegenerator.vala: skip code generation for static
interfaces, downgrade generic management support message to warning
* vala/valacallback.vala: support callbacks as property type
svn path=/trunk/; revision=278
Jürg Billeter [Wed, 4 Apr 2007 12:24:42 +0000 (12:24 +0000)]
support casts to generic types support arrays of generic types don't take
2007-04-04 Jürg Billeter <j@bitron.ch>
* vala/scanner.l: support casts to generic types
* vala/valasymbolresolver.vala, vala/valatypereference.vala: support
arrays of generic types
* vala/valasymbolresolver.vala: don't take ownership of elements of weak
arrays
* vala/valasemanticanalyzer.vala: accept uint as index value
* vala/valasemanticanalyzer.vala, vala/valacodegenerator.vala,
vala/valastatement.vala: minor cleanup of creation methods
* vala/valacodegenerator.vala: support creation methods for structs, fix
pointer as return type
* vapi/glib-2.0.vala: add CLAMP and g_spaced_primes_closest
svn path=/trunk/; revision=277
Jürg Billeter [Tue, 3 Apr 2007 14:25:53 +0000 (14:25 +0000)]
add mathematical functions, patch by Mathias Hasselmann update
2007-04-03 Jürg Billeter <j@bitron.ch>
* vapi/math.vala: add mathematical functions, patch by
Mathias Hasselmann
* vapi/Makefile.am: update
svn path=/trunk/; revision=276
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Raffaele Sandrini [Thu, 22 Feb 2007 14:31:53 +0000 (14:31 +0000)]
update Changelog also
* update Changelog also
svn path=/trunk/; revision=193
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
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
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
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
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
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
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