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
Jürg Billeter [Wed, 25 Oct 2006 08:56:15 +0000 (08:56 +0000)]
support dependencies on constants
2006-10-25 Jürg Billeter <j@bitron.ch>
* vala/valasourcefile.vala: support dependencies on constants
svn path=/trunk/; revision=148
Jürg Billeter [Tue, 24 Oct 2006 21:01:48 +0000 (21:01 +0000)]
don't crash when comparing value type with null
2006-10-24 Jürg Billeter <j@bitron.ch>
* vala/valasemanticanalyzer.vala: don't crash when comparing value type
with null
svn path=/trunk/; revision=147
Jürg Billeter [Tue, 24 Oct 2006 20:35:07 +0000 (20:35 +0000)]
don't crash on already resolved type references support typeof expression
2006-10-24 Jürg Billeter <j@bitron.ch>
* vala/valasymbolresolver.vala: don't crash on already resolved type
references
* vala/valasemanticanalyzer.vala: support typeof expression
* vala/valacodegenerator.vala: improve support for null-terminated
arrays
* vala/valainterfacewriter.vala: don't write type arguments for arrays
svn path=/trunk/; revision=146
Jürg Billeter [Sun, 8 Oct 2006 17:53:08 +0000 (17:53 +0000)]
support enum values
2006-10-08 Jürg Billeter <j@bitron.ch>
* vala/parser.y: support enum values
svn path=/trunk/; revision=145
Jürg Billeter [Fri, 6 Oct 2006 12:18:46 +0000 (12:18 +0000)]
update for 0.0.4 release
2006-10-06 Jürg Billeter <j@bitron.ch>
* NEWS: update for 0.0.4 release
svn path=/trunk/; revision=144
Raffaele Sandrini [Fri, 6 Oct 2006 11:16:41 +0000 (11:16 +0000)]
add get and set value support add user (arbitrary) signal support
2006-10-06 Raffaele Sandrini <rasa@gmx.ch>
* vapi/glib-2.0.vala, vala/valaflags.vala, vala/valaenum.vala,
vala/valadatatype.vala, vala/valaarray.vala, vala/valaclass.vala,
vala/valastruct.vala: add get and set value support
* vala/valacodegenerator.vala: add user (arbitrary) signal support
* vala/valadatatype.vala, vala/valamemorymanager.vala,
vala/valastruct.vala: correctly honor ref types in type arguments
* ccode/valaccodedeclaration.vala, ccode/valaccodemodifiers.vala:
support register local variables
* ccode/valaccodememberaccess.vala: make one line creation possible
* vapi/glib-2.0.vala: fix return type of Glib.List.nth_data
* tests/test-024.vala: add user signal test
* tests/Makefile.am: update
svn path=/trunk/; revision=143
Jürg Billeter [Thu, 5 Oct 2006 21:32:08 +0000 (21:32 +0000)]
complete support for prefix increment and decrement operator
2006-10-05 Jürg Billeter <j@bitron.ch>
* vala/parser.y, vala/valasemanticanalyzer.vala: complete support for
prefix increment and decrement operator
svn path=/trunk/; revision=142
Jürg Billeter [Thu, 5 Oct 2006 09:07:30 +0000 (09:07 +0000)]
transform compund assignments into simple assignments add default argument
2006-10-05 Jürg Billeter <j@bitron.ch>
* vala/valasemanticanalyzer.vala: transform compund assignments into
simple assignments
* vala/valabinaryexpression.vala: add default argument to construction
method
* tests/test-021.vala: test string += assignment
svn path=/trunk/; revision=141
Jürg Billeter [Wed, 4 Oct 2006 22:00:37 +0000 (22:00 +0000)]
correct takes_ownership in arrays add limited support for array length
2006-10-04 Jürg Billeter <j@bitron.ch>
* vala/valasymbolresolver.vala: correct takes_ownership in arrays
* vala/valacodegenerator.vala: add limited support for array length
fields, store array length from array creation expression, copy array
length in array assignments
* vala/valafield.vala: support NoArrayLength attribute
* compiler/valacompiler.vala: add NoArrayLength attribute to option
arrays
svn path=/trunk/; revision=140
Jürg Billeter [Wed, 4 Oct 2006 13:17:07 +0000 (13:17 +0000)]
specify array element type as type argument create declarations for array
2006-10-04 Jürg Billeter <j@bitron.ch>
* vala/valasymbolresolver.vala, vala/valasemanticanalyzer.vala: specify
array element type as type argument
* vala/valacodegenerator.vala: create declarations for array length
variables, iterate over arrays by index if it has known length
* vala/valacharacterliteral.vala: correct return type of get_char
* vala/valanamespace.vala: process enums and flags first
* vala/valavariabledeclarator.vala: set parent_node of initializer, add
replace method
* tests/test-023.vala: test list construction
* tests/Makefile.am: update
svn path=/trunk/; revision=139
Jürg Billeter [Tue, 3 Oct 2006 18:16:45 +0000 (18:16 +0000)]
don't use InstanceCast for callbacks
2006-10-03 Jürg Billeter <j@bitron.ch>
* vala/valacodegenerator.vala: don't use InstanceCast for callbacks
svn path=/trunk/; revision=138
Raffaele Sandrini [Thu, 28 Sep 2006 12:21:08 +0000 (12:21 +0000)]
add one dimensional array assignment support testcase for array
2006-09-28 Raffaele Sandrini <rasa@gmx.ch>
* vala/valacodegenerator.vala, vala/valasemanticanalyzer.vala,
vala/valamemorymanager.vala: add one dimensional array assignment
support
* tests/test-022.vala: testcase for array creation/assignment
* tests/Makefile.am: update
svn path=/trunk/; revision=137
Jürg Billeter [Thu, 28 Sep 2006 06:44:12 +0000 (06:44 +0000)]
add and improve various types
2006-09-28 Jürg Billeter <j@bitron.ch>
* vapi/glib-2.0.vala: add and improve various types
svn path=/trunk/; revision=136
Jürg Billeter [Wed, 27 Sep 2006 22:31:27 +0000 (22:31 +0000)]
set attributes also for non-readable properties support interface signals
2006-09-28 Jürg Billeter <j@bitron.ch>
* vala/parser.y: set attributes also for non-readable properties
* vala/valacodegenerator.vala: support interface signals
* vala/valainvocationexpression.vala,
vala/valaobjectcreationexpression.vala: fix problem when children
change while iterating over them
svn path=/trunk/; revision=135
Jürg Billeter [Wed, 27 Sep 2006 20:01:11 +0000 (20:01 +0000)]
support InstanceByReference attribute add Filename struct, fix Process
2006-09-27 Jürg Billeter <j@bitron.ch>
* vala/valacodegenerator.vala, vala/valainterfacewriter.vala,
vala/valamethod.vala: support InstanceByReference attribute
* vapi/glib-2.0.vala: add Filename struct, fix Process methods
* vapi/atk.vala, vapi/gdk-2.0.vala, vapi/gtk+-2.0.vala, vapi/pango.vala:
fix static methods without parameters, add InstanceByReference
attributes
svn path=/trunk/; revision=134
Jürg Billeter [Wed, 27 Sep 2006 19:36:15 +0000 (19:36 +0000)]
fix static modifier for methods without parameters
2006-09-27 Jürg Billeter <j@bitron.ch>
* vapigen/valagidlparser.vala: fix static modifier for methods without
parameters
svn path=/trunk/; revision=133
Jürg Billeter [Wed, 27 Sep 2006 17:49:40 +0000 (17:49 +0000)]
set instance_by_reference flag on generated methods if appropriate set
2006-09-27 Jürg Billeter <j@bitron.ch>
* vapigen/valagidlparser.vala: set instance_by_reference flag on
generated methods if appropriate
* packages/gtk+-2.0/gtk+-2.0.metadata: set ellipsis for
gtk_show_about_dialog
svn path=/trunk/; revision=132
Jürg Billeter [Wed, 27 Sep 2006 15:43:24 +0000 (15:43 +0000)]
visit interface signals obey lock keyword add interface signals
2006-09-27 Jürg Billeter <j@bitron.ch>
* vala/valainterface.vala: visit interface signals
* vala/valainterfacewriter.vala: obey lock keyword
* vapi/atk.vala, vapi/gtk+-2.0.vala: add interface signals
svn path=/trunk/; revision=131
Jürg Billeter [Wed, 27 Sep 2006 15:39:51 +0000 (15:39 +0000)]
support interface signals change some signal declarations to fix parsing
2006-09-27 Jürg Billeter <j@bitron.ch>
* vapigen/valagidlparser.vala: support interface signals
* packages/gtk+-2.0/gtk+-2.0.patch: change some signal declarations
to fix parsing
* packages/gtk+-2.0/gtk+-2.0.gidl: regenerated
* packages/gtk+-2.0/gtk+-2.0.metadata: add missing emitter methods
svn path=/trunk/; revision=130
Raffaele Sandrini [Wed, 27 Sep 2006 12:37:03 +0000 (12:37 +0000)]
add threading and assorted structures add an additional abstraction for
2006-09-27 Raffaele Sandrini <rasa@gmx.ch>
* vapi/glib-2.0.vala: add threading and assorted structures
* vala/valamember.vala: add an additional abstraction for all members
of a class
* vala/valalockstatement.vala, vala/valacodegenerator.vala,
vala/scanner.l, vala/valasemanticanalyzer.vala,
vala/valalockable.vala, vala/parser.y, vala/valacodevisitor.vala:
add lock feature to vala
* vala/valamethod.vala, vala/valafield.vala, vala/valaconstant.vala,
vala/valasignal.vala, vala/valaproperty.vala: make those members
lockable
* vala/valacodegenerator.vala: use member abstraction to simlify field
initialisation and destruction
* vala/valacodegenerator.vala: introduce new C macros VALA_FREE_CHECKED
and VALA_FREE_UNCHECKED to make safe freeing code nicer
* vala/vala.h: update and bring arraycreationexpression in order
* vala/Makefile.am: update
svn path=/trunk/; revision=129
Jürg Billeter [Wed, 27 Sep 2006 08:57:30 +0000 (08:57 +0000)]
add Process struct with spawn functions
2006-09-27 Jürg Billeter <j@bitron.ch>
* vapi/glib-2.0.vala: add Process struct with spawn functions
svn path=/trunk/; revision=128
Jürg Billeter [Wed, 27 Sep 2006 08:32:23 +0000 (08:32 +0000)]
fix global methods
2006-09-27 Jürg Billeter <j@bitron.ch>
* vapi/atk.vala, vapi/gdk-2.0.vala, vapi/gtk+-2.0.vala, vapi/pango.vala:
fix global methods
svn path=/trunk/; revision=127
Jürg Billeter [Wed, 27 Sep 2006 08:30:41 +0000 (08:30 +0000)]
move global methods from Global struct to namespace, remove leading
2006-09-27 Jürg Billeter <j@bitron.ch>
* gidlgen/gapi2xml.pl: move global methods from Global struct to
namespace, remove leading underscore in names of global methods
* vapigen/valagidlparser.vala: support namespace methods
* packages/atk/atk.gidl, packages/gdk-2.0/gdk-2.0.gidl,
packages/pango/pango.gidl, packages/gtk+-2.0/gtk+-2.0.gidl:
regenerated
* packages/gtk+-2.0/gtk+-2.0.metadata: mark GtkActionEntry as value type
svn path=/trunk/; revision=126
Jürg Billeter [Tue, 26 Sep 2006 21:09:44 +0000 (21:09 +0000)]
add string.reverse, Source.remove, Environment.get_variable,
2006-09-26 Jürg Billeter <j@bitron.ch>
* vapi/glib-2.0.vala: add string.reverse, Source.remove,
Environment.get_variable, Environment.set_variable,
Environment.get_current_dir, Path.is_absolute, Path.skip_root
svn path=/trunk/; revision=125
Jürg Billeter [Tue, 26 Sep 2006 20:35:51 +0000 (20:35 +0000)]
add missing cast
2006-09-26 Jürg Billeter <j@bitron.ch>
* vala/valaassignment.vala, vala/valabinaryexpression.vala,
vala/valacastexpression.vala, vala/valadostatement.vala,
vala/valaexpressionstatement.vala, vala/valaforeachstatement.vala,
vala/valaforstatement.vala, vala/valaifstatement.vala,
vala/valainvocationexpression.vala, vala/valamemberaccess.vala,
vala/valaparenthesizedexpression.vala, vala/valareturnstatement.vala,
vala/valaswitchstatement.vala, vala/valaunaryexpression.vala,
vala/valawhilestatement.vala: add missing cast
svn path=/trunk/; revision=124
Jürg Billeter [Sun, 3 Sep 2006 06:25:18 +0000 (06:25 +0000)]
make character_literal stricter support more method return types, support
2006-09-03 Jürg Billeter <j@bitron.ch>
* vala/scanner.l: make character_literal stricter
* vala/valacodegenerator.vala: support more method return types,
support unicode character literals
* vala/valacharacterliteral.vala: validate input, add get_char method
svn path=/trunk/; revision=123
Jürg Billeter [Sat, 2 Sep 2006 18:59:15 +0000 (18:59 +0000)]
always default type arguments to strong avoid unnecessary ref/unref pair
2006-09-02 Jürg Billeter <j@bitron.ch>
* vala/parser.y, vala/valacodecontext.vala,
vala/valasemanticanalyzer.vala, vala/valamemorymanager.vala,
vala/valacodegenerator.vala, vala/valaarraycreationexpression.vala,
vala/valablock.vala, vala/valacallback.vala, vala/valaclass.vala,
vala/valaelementaccess.vala, vala/valafield.vala,
vala/valaformalparameter.vala, vala/valaforstatement.vala,
vala/valainitializerlist.vala, vala/valainterface.vala,
vala/valainvocationexpression.vala, vala/valainvokable.vala,
vala/valalambdaexpression.vala,
vala/valalocalvariabledeclaration.vala, vala/valamemberaccess.vala,
vala/valamethod.vala, vala/valanamespace.vala,
vala/valaobjectcreationexpression.vala, vala/valasignal.vala,
vala/valasourcefile.vala, vala/valastruct.vala,
vala/valaswitchsection.vala, vala/valaswitchstatement.vala,
vala/valatypereference.vala, vala/valavariabledeclarator.vala,
ccode/valaccodefragment.vala, vapi/glib-2.0.vala: always default type
arguments to strong
* vala/valacodevisitor.vala, vala/valacodegenerator.vala,
vala/valaexpression.vala, vala/valareturnstatement.vala: avoid
unnecessary ref/unref pair in return expression
* vala/valatypereference.vala: copy type arguments in copy method, too
* vala/valasemanticanalyzer.vala: set type arguments in type_reference
of ObjectCreationExpression
* vala/valadatatype.vala: fix warning
svn path=/trunk/; revision=122
Jürg Billeter [Sat, 2 Sep 2006 16:18:35 +0000 (16:18 +0000)]
special case construction of GLib.List and GLib.SList (reported by Cayle
2006-09-02 Jürg Billeter <j@bitron.ch>
* vala/valacodegenerator.vala: special case construction of GLib.List
and GLib.SList (reported by Cayle Graumann)
svn path=/trunk/; revision=121
Jürg Billeter [Sat, 2 Sep 2006 15:49:13 +0000 (15:49 +0000)]
prepare to support protected members
2006-09-02 Jürg Billeter <j@bitron.ch>
* vala/scanner.l, vala/parser.y, vala/valasemanticanalyzer.vala,
vala/valacodegenerator.vala, vala/valainterfacewriter.vala,
vala/valamemberaccessibility.vala: prepare to support protected
members
svn path=/trunk/; revision=120
Jürg Billeter [Sat, 2 Sep 2006 15:29:55 +0000 (15:29 +0000)]
don't set parent_node in parser support string + operator set parent_node
2006-09-02 Jürg Billeter <j@bitron.ch>
* vala/parser.y: don't set parent_node in parser
* vala/valasemanticanalyzer.vala: support string + operator
* vala/valaassignment.vala, vala/valabinaryexpression.vala,
vala/valacastexpression.vala, vala/valacodenode.vala,
vala/valadostatement.vala, vala/valaexpressionstatement.vala,
vala/valaforeachstatement.vala, vala/valaforstatement.vala,
vala/valaifstatement.vala, vala/valainvocationexpression.vala,
vala/valamemberaccess.vala, vala/valaobjectcreationexpression.vala,
vala/valaparenthesizedexpression.vala, vala/valareturnstatement.vala,
vala/valaswitchstatement.vala, vala/valaunaryexpression.vala,
vala/valawhilestatement.vala: set parent_node of child nodes, add
replace method
* vala/valanullliteral.vala: add default argument to construction method
* tests/test-021.vala: test string + operator
* tests/Makefile.am: update
svn path=/trunk/; revision=119
Jürg Billeter [Sat, 2 Sep 2006 13:13:55 +0000 (13:13 +0000)]
support integer and floating point suffixes use correct type for integer
2006-09-02 Jürg Billeter <j@bitron.ch>
* vala/scanner.l: support integer and floating point suffixes
* vala/valasemanticanalyzer.vala: use correct type for integer and
floating point literals
* vala/valaintegerliteral.val, vala/valarealliteral.vala: add
get_type_name method
* vapi/glib-2.0.vala: add string to int64 conversion method
svn path=/trunk/; revision=118
Jürg Billeter [Sat, 2 Sep 2006 11:04:24 +0000 (11:04 +0000)]
use IntegerType, FloatingType, and rank attributes to analyze arithmetic
2006-09-02 Jürg Billeter <j@bitron.ch>
* vala/valasemanticanalyzer.vala: use IntegerType, FloatingType, and
rank attributes to analyze arithmetic operations
* vala/valacodegenerator.vala: generate C casts for explicit value-type
casts
* vala/valastruct.vala: add is_integer_type, is_floating_type, and
get_rank methods, add IntegerType and FloatingType attributes
* vala/valasemanticanalyzer.vala, vala/valacastexpression.vala,
vala/valainstancecast.vala, ccode/valaccodecastexpression.vala: fix
typos
* vapi/glib-2.0.vala: add int16, uint16, int32, uint32, use IntegerType
and FloatingType attributes
svn path=/trunk/; revision=117
Jürg Billeter [Sat, 2 Sep 2006 09:05:41 +0000 (09:05 +0000)]
set accessibility for constants set return type in property set accessors
2006-09-02 Jürg Billeter <j@bitron.ch>
* vala/parser.y: set accessibility for constants
* vala/valasemanticanalyzer.vala: set return type in property set
accessors to void
* vala/valacodegenerator.vala: move public constants to header file
* vala/valaclass.vala: don't create fields for properties in VAPI files
* vala/valaconstant.vala: add access member
svn path=/trunk/; revision=116
Jürg Billeter [Sat, 2 Sep 2006 08:45:28 +0000 (08:45 +0000)]
mark Matrix as reference type
2006-09-02 Jürg Billeter <j@bitron.ch>
* vapi/cairo.vala: mark Matrix as reference type
svn path=/trunk/; revision=115
Jürg Billeter [Thu, 24 Aug 2006 16:03:10 +0000 (16:03 +0000)]
mark virtual methods appropriately
2006-08-24 Jürg Billeter <j@bitron.ch>
* vapi/atk.vala, vapi/gdk-2.0.vala, vapi/gtk+-2.0.vala, vapi/pango.vala:
mark virtual methods appropriately
svn path=/trunk/; revision=114
Jürg Billeter [Thu, 24 Aug 2006 16:00:54 +0000 (16:00 +0000)]
mark virtual functions appropriately
2006-08-24 Jürg Billeter <j@bitron.ch>
* vapigen/valagidlparser.vala: mark virtual functions appropriately
svn path=/trunk/; revision=113
Jürg Billeter [Thu, 24 Aug 2006 12:55:24 +0000 (12:55 +0000)]
add possibility to change interface type struct cname, default to `Iface'
2006-08-24 Jürg Billeter <j@bitron.ch>
* vala/valaattributeprocessor.vala, vala/valacodegenerator.vala,
vala/valainterface.vala, vala/valainterfaceregisterfunction.vala: add
possibility to change interface type struct cname, default to `Iface'
suffix (reported by Dominique Würtz)
svn path=/trunk/; revision=112
Jürg Billeter [Wed, 23 Aug 2006 13:12:39 +0000 (13:12 +0000)]
support calling non-abstract interface methods add get_base_types method
2006-08-23 Jürg Billeter <j@bitron.ch>
* vala/valasemanticanalyzer.vala: support calling non-abstract interface
methods
* vala/valainterface.vala: add get_base_types method
svn path=/trunk/; revision=111
Jürg Billeter [Sun, 20 Aug 2006 20:13:49 +0000 (20:13 +0000)]
Post-release version bump, fail if flex or bison not found
2006-08-20 Jürg Billeter <j@bitron.ch>
* configure.ac: Post-release version bump, fail if flex or bison not
found
svn path=/trunk/; revision=110
Jürg Billeter [Fri, 18 Aug 2006 20:35:47 +0000 (20:35 +0000)]
update for 0.0.3 release
2006-08-18 Jürg Billeter <j@bitron.ch>
* NEWS: update for 0.0.3 release
svn path=/trunk/; revision=109
Jürg Billeter [Fri, 18 Aug 2006 16:46:56 +0000 (16:46 +0000)]
remove argc parameter
2006-08-18 Jürg Billeter <j@bitron.ch>
* vapigen/valavapigen.vala, packages/gtk+-2.0/gtk+-2.0-custom.vala:
remove argc parameter
svn path=/trunk/; revision=108
Jürg Billeter [Fri, 18 Aug 2006 16:44:43 +0000 (16:44 +0000)]
use array length functionality
2006-08-18 Jürg Billeter <j@bitron.ch>
* compiler/valacompiler.vala, vapi/glib-2.0.vala, vapi/gtk+-2.0.vala:
use array length functionality
svn path=/trunk/; revision=107