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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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