Juerg Billeter [Wed, 21 Nov 2007 19:07:16 +0000 (19:07 +0000)]
add some more GObject functions
2007-11-21 Juerg Billeter <j@bitron.ch>
* vapi/glib-2.0.vapi: add some more GObject functions
svn path=/trunk/; revision=693
Juerg Billeter [Wed, 21 Nov 2007 18:54:19 +0000 (18:54 +0000)]
extend GValue, fix g_object_connect
2007-11-21 Juerg Billeter <j@bitron.ch>
* vapi/glib-2.0.vapi: extend GValue, fix g_object_connect
svn path=/trunk/; revision=692
Juerg Billeter [Tue, 20 Nov 2007 22:30:21 +0000 (22:30 +0000)]
add missing cheader_filename attributes
2007-11-20 Juerg Billeter <j@bitron.ch>
* vapi/packages/gio-2.0/gio-2.0.metadata: add missing cheader_filename
attributes
* vapi/gio-2.0.vapi: regenerated
svn path=/trunk/; revision=691
Juerg Billeter [Tue, 20 Nov 2007 21:54:22 +0000 (21:54 +0000)]
updated to gio 0.1.2
2007-11-20 Juerg Billeter <j@bitron.ch>
* vapi/packages/gio-2.0/gio-2.0.gi: updated to gio 0.1.2
* vapi/gio-2.0.vapi: regenerated
svn path=/trunk/; revision=690
Juerg Billeter [Tue, 20 Nov 2007 21:24:46 +0000 (21:24 +0000)]
detect out parameters of value types, add support for array return types
2007-11-20 Juerg Billeter <j@bitron.ch>
* vapigen/valagidlparser.vala: detect out parameters of value types, add
support for array return types
* vapi/packages/gtk+-2.0/gtk+-2.0.metadata: set is_array for return
value of gtk_tree_path_get_indices
* vapi/atk.vapi, vapi/gconf-2.0.vapi, vapi/gdk-2.0.vapi,
vapi/gio-2.0.vapi, vapi/gtk+-2.0.vapi, vapi/pango.vapi: regenerated
svn path=/trunk/; revision=689
Juerg Billeter [Fri, 16 Nov 2007 15:56:24 +0000 (15:56 +0000)]
remove invalid property definitions
2007-11-16 Juerg Billeter <j@bitron.ch>
* tests/property-sample.vala: remove invalid property definitions
svn path=/trunk/; revision=688
Juerg Billeter [Tue, 13 Nov 2007 15:54:39 +0000 (15:54 +0000)]
update to use vala-gen-introspect
2007-11-13 Juerg Billeter <j@bitron.ch>
* vapi/packages/gconf-2.0/: update to use vala-gen-introspect
* vapi/gconf-2.0.vapi: regenerated
svn path=/trunk/; revision=687
Juerg Billeter [Mon, 12 Nov 2007 18:34:20 +0000 (18:34 +0000)]
add binding for g_type_qname and fix GQuark binding
2007-11-12 Juerg Billeter <j@bitron.ch>
* vapi/glib-2.0.vapi: add binding for g_type_qname and fix GQuark
binding
svn path=/trunk/; revision=686
Juerg Billeter [Sat, 10 Nov 2007 23:16:35 +0000 (23:16 +0000)]
add bindings for g_object_get_data, g_object_set_data, and g_type_query
2007-11-11 Juerg Billeter <j@bitron.ch>
* vapi/glib-2.0.vapi: add bindings for g_object_get_data,
g_object_set_data, and g_type_query
svn path=/trunk/; revision=685
Juerg Billeter [Sat, 10 Nov 2007 16:28:11 +0000 (16:28 +0000)]
fix code generation for private fields in types not based on GTypeInstance
2007-11-10 Juerg Billeter <j@bitron.ch>
* gobject/valaccodegenerator.vala,
gobject/valaccodegeneratormemberaccess.vala: fix code generation for
private fields in types not based on GTypeInstance
svn path=/trunk/; revision=684
Juerg Billeter [Tue, 6 Nov 2007 18:14:22 +0000 (18:14 +0000)]
updated to gio 0.1.1
2007-11-06 Juerg Billeter <j@bitron.ch>
* vapi/packages/gio-2.0/gio-2.0.gi, vapi/gio-2.0.vapi: updated to gio
0.1.1
svn path=/trunk/; revision=683
Juerg Billeter [Sun, 4 Nov 2007 13:48:56 +0000 (13:48 +0000)]
mark gtk_object_destroy as emitter function
2007-11-04 Juerg Billeter <j@bitron.ch>
* vapi/packages/gtk+-2.0/gtk+-2.0.metadata: mark gtk_object_destroy as
emitter function
* vapi/gtk+-2.0.vapi: regenerated
svn path=/trunk/; revision=682
Juerg Billeter [Sun, 4 Nov 2007 10:49:59 +0000 (10:49 +0000)]
fix signedness mismatch
2007-11-04 Juerg Billeter <j@bitron.ch>
* compiler/valacompiler.vala: fix signedness mismatch
svn path=/trunk/; revision=681
Juerg Billeter [Sun, 4 Nov 2007 10:48:15 +0000 (10:48 +0000)]
cast generic copy function to GBoxedCopyFunc
2007-11-04 Juerg Billeter <j@bitron.ch>
* gobject/valaccodegenerator.vala: cast generic copy function to
GBoxedCopyFunc
svn path=/trunk/; revision=680
Juerg Billeter [Sun, 4 Nov 2007 10:47:21 +0000 (10:47 +0000)]
add PrintfFormat attribute to GString printf methods
2007-11-04 Juerg Billeter <j@bitron.ch>
* vapi/glib-2.0.vapi: add PrintfFormat attribute to GString printf
methods
svn path=/trunk/; revision=679
Juerg Billeter [Sun, 4 Nov 2007 10:36:14 +0000 (10:36 +0000)]
use gconstpointer where appropriate for generics
2007-11-04 Juerg Billeter <j@bitron.ch>
* vala/valatypereference.vala, gobject/valaccodegenerator.vala: use
gconstpointer where appropriate for generics
svn path=/trunk/; revision=678
Juerg Billeter [Sat, 3 Nov 2007 22:42:43 +0000 (22:42 +0000)]
use defines for public constants
2007-11-03 Juerg Billeter <j@bitron.ch>
* gobject/valaccodegenerator.vala, ccode/valaccodemacroreplacement.vala:
use defines for public constants
svn path=/trunk/; revision=677
Juerg Billeter [Sat, 3 Nov 2007 22:00:11 +0000 (22:00 +0000)]
avoid void pointer arithmetic in _vala_array_move
2007-11-03 Juerg Billeter <j@bitron.ch>
* gobject/valaccodegeneratorsourcefile.vala: avoid void pointer
arithmetic in _vala_array_move
svn path=/trunk/; revision=676
Juerg Billeter [Sat, 3 Nov 2007 15:28:20 +0000 (15:28 +0000)]
fix generated properties, from gobject-introspection git
2007-11-03 Juerg Billeter <j@bitron.ch>
* gobject-introspection/gen-introspect.c: fix generated properties, from
gobject-introspection git
* vapi/packages/atk/atk.gi, vapi/packages/gdk-2.0/gdk-2.0.gi,
vapi/packages/gio-2.0/gio-2.0.gi, vapi/packages/gtk+-2.0/gtk+-2.0.gi,
vapi/packages/pango/pango.gi: regenerated
* vapi/atk.vapi, vapi/gdk-2.0.vapi, vapi/gio-2.0.vapi,
vapi/gtk+-2.0.vapi, vapi/pango.vapi: regenerated
svn path=/trunk/; revision=675
Juerg Billeter [Sat, 3 Nov 2007 13:52:35 +0000 (13:52 +0000)]
add pangocairo bindings
2007-11-03 Juerg Billeter <j@bitron.ch>
* vapi/packages/pango/, vapi/packages/pangocairo/, vapi/pangocairo.deps,
vapi/pangocairo.vapi, vapi/Makefile.am: add pangocairo bindings
* vapi/packages/gdk-2.0/gdk-2.0.deps, vapi/gdk-2.0.deps: add pangocairo
as dependency
svn path=/trunk/; revision=674
Jürg Billeter [Thu, 1 Nov 2007 12:32:33 +0000 (12:32 +0000)]
mark Report class as static, fixes bug 492107
2007-11-01 Jürg Billeter <j@bitron.ch>
* vala/valareport.vala: mark Report class as static, fixes bug 492107
svn path=/trunk/; revision=673
Juerg Billeter [Sun, 28 Oct 2007 20:49:32 +0000 (20:49 +0000)]
add support for `in' operator for enums, fixes bug 473820
2007-10-28 Juerg Billeter <j@bitron.ch>
* vala/parser.y, vala/valabinaryexpression.vala,
vala/valasemanticanalyzer.vala, gobject/valaccodegenerator.vala:
add support for `in' operator for enums, fixes bug 473820
svn path=/trunk/; revision=672
Juerg Billeter [Sun, 28 Oct 2007 19:38:41 +0000 (19:38 +0000)]
add get_values method
2007-10-28 Juerg Billeter <j@bitron.ch>
* vala/valaenum.vala: add get_values method
svn path=/trunk/; revision=671
Juerg Billeter [Sat, 27 Oct 2007 19:47:50 +0000 (19:47 +0000)]
use pointer indirection to access length variable of out array parameters,
2007-10-27 Juerg Billeter <j@bitron.ch>
* gobject/valaccodegenerator.vala: use pointer indirection to access
length variable of out array parameters, fixes bug 480019
svn path=/trunk/; revision=670
Juerg Billeter [Sat, 27 Oct 2007 19:35:22 +0000 (19:35 +0000)]
support arbitrary expressions as enum values, fixes bug 488387
2007-10-27 Juerg Billeter <j@bitron.ch>
* ccode/Makefile.am, ccode/valaccodeenum.vala,
ccode/valaccodeenumvalue.vala, gobject/valaccodegenerator.vala,
gobject/valaccodegeneratorclass.vala: support arbitrary expressions as
enum values, fixes bug 488387
svn path=/trunk/; revision=669
Juerg Billeter [Sat, 27 Oct 2007 19:04:59 +0000 (19:04 +0000)]
never write typedefs for static or declaration-only classes and
2007-10-27 Juerg Billeter <j@bitron.ch>
* gobject/valaccodegeneratorsourcefile.vala: never write typedefs for
static or declaration-only classes and interfaces, fixes bug 479106
svn path=/trunk/; revision=668
Juerg Billeter [Sat, 27 Oct 2007 18:55:30 +0000 (18:55 +0000)]
display line number when reporting type error in conditional expression,
2007-10-27 Juerg Billeter <j@bitron.ch>
* vala/valasemanticanalyzer.vala: display line number when reporting
type error in conditional expression, fixes bug 478392
svn path=/trunk/; revision=667
Juerg Billeter [Sat, 27 Oct 2007 18:50:02 +0000 (18:50 +0000)]
ensure that new arrays own their elements, fixes bug 488326
2007-10-27 Juerg Billeter <j@bitron.ch>
* vala/valasemanticanalyzer.vala: ensure that new arrays own their
elements, fixes bug 488326
svn path=/trunk/; revision=666
Juerg Billeter [Sat, 27 Oct 2007 10:08:06 +0000 (10:08 +0000)]
Update svn:ignore property.
2007-10-27 Juerg Billeter <j@bitron.ch>
Update svn:ignore property.
svn path=/trunk/; revision=665
Juerg Billeter [Sat, 27 Oct 2007 09:34:29 +0000 (09:34 +0000)]
update to use vala-gen-introspect
2007-10-27 Juerg Billeter <j@bitron.ch>
* vapi/packages/atk/, vapi/packages/gdk-2.0/, vapi/packages/gio-2.0/,
vapi/packages/gtk+-2.0/, vapi/packages/pango/: update to use
vala-gen-introspect
* vapi/atk.vapi, vapi/gdk-2.0.vapi, vapi/gio-2.0.vapi,
vapi/gtk+-2.0.vapi, vapi/pango.vapi: regenerated
svn path=/trunk/; revision=664
Juerg Billeter [Sat, 27 Oct 2007 09:25:11 +0000 (09:25 +0000)]
fix .deps file handling
2007-10-27 Juerg Billeter <j@bitron.ch>
* vapigen/valavapigen.vala: fix .deps file handling
svn path=/trunk/; revision=663
Juerg Billeter [Sat, 27 Oct 2007 07:32:48 +0000 (07:32 +0000)]
rename gidlgen subdirectory to vala-gen-introspect
2007-10-27 Juerg Billeter <j@bitron.ch>
* configure.ac, vapigen/Makefile.am, vapigen/gidlgen/Makefile.am,
vapigen/gidlgen/vala-gen-introspect.in, vapigen/vala-gen-introspect/:
rename gidlgen subdirectory to vala-gen-introspect
svn path=/trunk/; revision=662
Juerg Billeter [Fri, 26 Oct 2007 21:30:39 +0000 (21:30 +0000)]
replace perl scripts by gen-introspect, rename gidlgen to
2007-10-26 Juerg Billeter <j@bitron.ch>
* configure.ac, doc/Makefile.am, doc/gidlgen.1,
doc/vala-gen-introspect.1, doc/vapigen.1, vapigen/gidlgen/Makefile.am,
vapigen/gidlgen/gapi2xml.pl, vapigen/gidlgen/gapi_pp.pl,
vapigen/gidlgen/gidlgen.in, vapigen/gidlgen/vala-gen-introspect.in,
vapigen/valagidlparser.vala: replace perl scripts by gen-introspect,
rename gidlgen to vala-gen-introspect
svn path=/trunk/; revision=661
Juerg Billeter [Fri, 26 Oct 2007 20:59:25 +0000 (20:59 +0000)]
add gen-introspect from gobject-introspection git
2007-10-26 Juerg Billeter <j@bitron.ch>
* configure.ac, gobject-introspection/Makefile.am,
gobject-introspection/clexer.l, gobject-introspection/cparser.y,
gobject-introspection/gen-introspect.c,
gobject-introspection/gen-introspect.h: add gen-introspect from
gobject-introspection git
svn path=/trunk/; revision=660
Juerg Billeter [Fri, 19 Oct 2007 15:47:02 +0000 (15:47 +0000)]
update from gobject-introspection SVN
2007-10-19 Juerg Billeter <j@bitron.ch>
* gobject-introspection/gidlnode.c, gobject-introspection/gidlparser.c:
update from gobject-introspection SVN
svn path=/trunk/; revision=659
Juerg Billeter [Fri, 19 Oct 2007 15:12:44 +0000 (15:12 +0000)]
add stub for GData
2007-10-19 Juerg Billeter <j@bitron.ch>
* vapi/glib-2.0.vapi: add stub for GData
svn path=/trunk/; revision=658
Juerg Billeter [Fri, 19 Oct 2007 14:05:37 +0000 (14:05 +0000)]
fix state changes in `requires' elements support flags and use name
2007-10-19 Juerg Billeter <j@bitron.ch>
* gobject-introspection/gidlparser.c: fix state changes in `requires'
elements
* vapigen/valagidlparser.vala: support flags and use name attribute
of object elements
svn path=/trunk/; revision=657
Juerg Billeter [Fri, 19 Oct 2007 13:29:18 +0000 (13:29 +0000)]
support Flags attribute support Flags and ErrorDomain attributes for enums
2007-10-19 Juerg Billeter <j@bitron.ch>
* vala/valaenum.vala: support Flags attribute
* vala/valainterfacewriter.vala: support Flags and ErrorDomain
attributes for enums and add `break' to keyword list
svn path=/trunk/; revision=656
Juerg Billeter [Fri, 19 Oct 2007 11:14:06 +0000 (11:14 +0000)]
add ellipsis attribute for some functions, patch by Andrea Del Signore
2007-10-19 Juerg Billeter <j@bitron.ch>
* vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata: add ellipsis
attribute for some functions, patch by Andrea Del Signore
* vapi/gstreamer-0.10.vapi: regenerated
svn path=/trunk/; revision=655
Juerg Billeter [Fri, 19 Oct 2007 09:56:39 +0000 (09:56 +0000)]
Add '-no-undefined' for Cygwin and MinGW. Change order of link command to
2007-10-19 Juerg Billeter <j@bitron.ch>
* gobject/Makefile.am (libvala_la_LDFLAGS): Add '-no-undefined' for
Cygwin and MinGW.
* tests/testrunner.sh: Change order of link command to fix linking on
Cygwin, MinGW, and on Linux with -Wl,--as-needed.
* vapigen/Makefile.am (INCLUDES): Fix VPATH build.
Patch by Yaakov Selkowitz, fixes bug 486124
svn path=/trunk/; revision=654
Juerg Billeter [Tue, 16 Oct 2007 11:13:30 +0000 (11:13 +0000)]
regenerated for poppler 0.6.1, patch by Alberto Ruiz
2007-10-16 Juerg Billeter <j@bitron.ch>
* vapi/packages/poppler-glib/poppler-glib.gidl, vapi/poppler-glib.vapi:
regenerated for poppler 0.6.1, patch by Alberto Ruiz
svn path=/trunk/; revision=653
Juerg Billeter [Fri, 12 Oct 2007 19:09:57 +0000 (19:09 +0000)]
add g_strnfill binding
2007-10-12 Juerg Billeter <j@bitron.ch>
* vapi/glib-2.0.vapi: add g_strnfill binding
svn path=/trunk/; revision=652
Juerg Billeter [Wed, 10 Oct 2007 07:50:32 +0000 (07:50 +0000)]
fix some issues with the low-level API
2007-10-10 Juerg Billeter <j@bitron.ch>
* vapi/dbus-glib-1.vapi: fix some issues with the low-level API
svn path=/trunk/; revision=651
Juerg Billeter [Tue, 9 Oct 2007 20:35:58 +0000 (20:35 +0000)]
Post-release version bump
2007-10-09 Juerg Billeter <j@bitron.ch>
* configure.ac: Post-release version bump
svn path=/trunk/; revision=650
Juerg Billeter [Tue, 9 Oct 2007 20:31:50 +0000 (20:31 +0000)]
update for 0.1.4 release
2007-10-09 Juerg Billeter <j@bitron.ch>
* NEWS: update for 0.1.4 release
svn path=/trunk/; revision=648
Juerg Billeter [Tue, 9 Oct 2007 20:01:49 +0000 (20:01 +0000)]
Use --basedir in build system and rename all VAPI files to .vapi, requires
2007-10-09 Juerg Billeter <j@bitron.ch>
Use --basedir in build system and rename all VAPI files to .vapi,
requires r646 to build
svn path=/trunk/; revision=647
Juerg Billeter [Tue, 9 Oct 2007 19:30:17 +0000 (19:30 +0000)]
add --basedir option, fixes bug 483843
2007-10-09 Juerg Billeter <j@bitron.ch>
* vala/valacodecontext.vala, vala/valasourcefile.vala,
gobject/valaccodecompiler.vala,
gobject/valaccodegeneratorsourcefile.vala, compiler/valacompiler.vala,
tests/testrunner.sh: add --basedir option, fixes bug 483843
svn path=/trunk/; revision=646
Juerg Billeter [Tue, 9 Oct 2007 16:36:43 +0000 (16:36 +0000)]
fix support for static methods as GObject signal handlers
2007-10-09 Juerg Billeter <j@bitron.ch>
* gobject/valaccodeassignmentbinding.vala: fix support for static
methods as GObject signal handlers
svn path=/trunk/; revision=645
Juerg Billeter [Tue, 9 Oct 2007 08:54:13 +0000 (08:54 +0000)]
use .vapi as file extension for generated bindings
2007-10-09 Juerg Billeter <j@bitron.ch>
* vapigen/valavapigen.vala: use .vapi as file extension for generated
bindings
svn path=/trunk/; revision=644
Juerg Billeter [Tue, 9 Oct 2007 08:49:27 +0000 (08:49 +0000)]
renamed from gio-standalone and updated to current svn trunk regenerated
2007-10-09 Juerg Billeter <j@bitron.ch>
* vapi/packages/gio-2.0/: renamed from gio-standalone and updated to
current svn trunk
* vapi/gio-2.0.vala: regenerated
* vapi/Makefile.am: updated
svn path=/trunk/; revision=643
Juerg Billeter [Mon, 8 Oct 2007 19:25:27 +0000 (19:25 +0000)]
use .vapi as file extension for bindings, fixes bug 483840
2007-10-08 Juerg Billeter <j@bitron.ch>
* vala/valaparser.vala, compiler/valacompiler.vala: use .vapi as file
extension for bindings, fixes bug 483840
svn path=/trunk/; revision=642
Juerg Billeter [Mon, 8 Oct 2007 12:15:21 +0000 (12:15 +0000)]
fix ref array parameters
2007-10-08 Juerg Billeter <j@bitron.ch>
* gobject/valaccodegenerator.vala: fix ref array parameters
svn path=/trunk/; revision=641
Juerg Billeter [Fri, 5 Oct 2007 20:33:43 +0000 (20:33 +0000)]
support static methods as D-Bus signal handlers, fixes bug 483127
2007-10-05 Juerg Billeter <j@bitron.ch>
* gobject/valaccodeassignmentbinding.vala: support static methods as
D-Bus signal handlers, fixes bug 483127
svn path=/trunk/; revision=640
Juerg Billeter [Fri, 5 Oct 2007 20:07:48 +0000 (20:07 +0000)]
report error for invalid assignments, fixes bug 482997
2007-10-05 Juerg Billeter <j@bitron.ch>
* vala/valasemanticanalyzer.vala: report error for invalid assignments,
fixes bug 482997
svn path=/trunk/; revision=639
Juerg Billeter [Tue, 2 Oct 2007 09:39:36 +0000 (09:39 +0000)]
small additions
2007-10-02 Juerg Billeter <j@bitron.ch>
* vapi/libxml-2.0.vala: small additions
svn path=/trunk/; revision=638
Juerg Billeter [Mon, 1 Oct 2007 09:24:55 +0000 (09:24 +0000)]
add experimental support for registering new fundamental classed types
2007-10-01 Juerg Billeter <j@bitron.ch>
* gobject/valaccodegenerator.valam gobject/valaccodegeneratorclass.vala,
gobject/valaccodegeneratormethod.vala,
gobject/valatyperegisterfunction.vala: add experimental support for
registering new fundamental classed types
svn path=/trunk/; revision=637
Juerg Billeter [Thu, 27 Sep 2007 20:49:44 +0000 (20:49 +0000)]
replace dummy property nick and blurb by property name
2007-09-27 Juerg Billeter <j@bitron.ch>
* gobject/valaccodegeneratorinterface.vala: replace dummy property nick
and blurb by property name
svn path=/trunk/; revision=636
Juerg Billeter [Thu, 27 Sep 2007 18:25:25 +0000 (18:25 +0000)]
improve fix_type_name, based on patch by Andrea Del Signore
2007-09-27 Juerg Billeter <j@bitron.ch>
* vapigen/valagidlparser.vala: improve fix_type_name,
based on patch by Andrea Del Signore
svn path=/trunk/; revision=635
Juerg Billeter [Thu, 27 Sep 2007 12:55:56 +0000 (12:55 +0000)]
add CCodeElementAccessBinding class and move relevant code from
2007-09-27 Juerg Billeter <j@bitron.ch>
* gobject/Makefile.am, gobject/valaccodeelementaccessbinding.vala,
gobject/valaccodegenerator.vala: add CCodeElementAccessBinding class
and move relevant code from CCodeGenerator to
CCodeElementAccessBinding
svn path=/trunk/; revision=634
Juerg Billeter [Thu, 27 Sep 2007 12:17:16 +0000 (12:17 +0000)]
add CCodeArrayCreationExpressionBinding class and move relevant code from
2007-09-27 Juerg Billeter <j@bitron.ch>
* gobject/Makefile.am,
gobject/valaccodearraycreationexpressionbinding.vala,
gobject/valaccodegenerator.vala: add
CCodeArrayCreationExpressionBinding class and move relevant code from
CCodeGenerator to CCodeArrayCreationExpressionBinding
svn path=/trunk/; revision=633
Juerg Billeter [Thu, 27 Sep 2007 12:08:41 +0000 (12:08 +0000)]
refactor emit method
2007-09-27 Juerg Billeter <j@bitron.ch>
* gobject/valaccodeassignmentbinding.vala: refactor emit method
svn path=/trunk/; revision=632
Juerg Billeter [Thu, 27 Sep 2007 11:59:26 +0000 (11:59 +0000)]
add CCodeExpressionBinding and CCodeAssignmentBinding classes and move
2007-09-27 Juerg Billeter <j@bitron.ch>
* vala/valacodebinding.vala, vala/valasemanticanalyzer.vala,
gobject/Makefile.am, gobject/valaccodeassignmentbinding.vala,
gobject/valaccodeexpressionbinding.vala,
gobject/valaccodegenerator.vala,
gobject/valaccodegeneratorassignment.vala,
gobject/valaccodegeneratorclass.vala,
gobject/valaccodegeneratorsignal.vala: add CCodeExpressionBinding and
CCodeAssignmentBinding classes and move relevant code from
CCodeGenerator to CCodeAssignmentBinding
svn path=/trunk/; revision=631
Juerg Billeter [Wed, 26 Sep 2007 20:39:11 +0000 (20:39 +0000)]
support # comment lines in .metadata files, based on patch by Andrea Del
2007-09-26 Juerg Billeter <j@bitron.ch>
* vapigen/valagidlparser.vala: support # comment lines in .metadata
files, based on patch by Andrea Del Signore
svn path=/trunk/; revision=630
Juerg Billeter [Wed, 26 Sep 2007 20:35:28 +0000 (20:35 +0000)]
fix crash when using libvala without a code generator
2007-09-26 Juerg Billeter <j@bitron.ch>
* vala/valacodecontext.vala, vala/valacodegenerator.vala: fix crash
when using libvala without a code generator
svn path=/trunk/; revision=629
Juerg Billeter [Wed, 26 Sep 2007 20:26:10 +0000 (20:26 +0000)]
support custom cname for classes, based on patch by Andrea Del Signore
2007-09-26 Juerg Billeter <j@bitron.ch>
* vala/valaclass.vala, vala/valainterfacewriter.vala: support custom
cname for classes, based on patch by Andrea Del Signore
svn path=/trunk/; revision=628
Juerg Billeter [Fri, 21 Sep 2007 13:03:35 +0000 (13:03 +0000)]
prepare support for classes based on GTypeInstance but not on GObject add
2007-09-21 Juerg Billeter <j@bitron.ch>
* gobject/valaccodegeneratorclass.vala: prepare support for classes
based on GTypeInstance but not on GObject
* tests/classes.exp, tests/classes.vala: add simple test cases for
GTypeInstance-based classes
svn path=/trunk/; revision=627
Juerg Billeter [Fri, 21 Sep 2007 08:44:31 +0000 (08:44 +0000)]
add missing parent field for derived non-GObject classes
2007-09-21 Juerg Billeter <j@bitron.ch>
* gobject/valaccodegeneratorclass.vala: add missing parent field for
derived non-GObject classes
svn path=/trunk/; revision=626
Raffaele Sandrini [Thu, 20 Sep 2007 21:23:19 +0000 (21:23 +0000)]
Fix memory leak with non reference counting reference types in property
2007-09-20 Raffaele Sandrini <raffaele@sandrini.ch>
* vala/valasemanticanalyzer.vala, gobject/valaccodegenerator.vala:
Fix memory leak with non reference counting reference types in
property getters, now we enforce an explicit ownership transfer in
such a case, fixes bug 472904
svn path=/trunk/; revision=625
Juerg Billeter [Thu, 20 Sep 2007 20:42:55 +0000 (20:42 +0000)]
create code nodes with factory methods to support backend-specific code
2007-09-20 Juerg Billeter <j@bitron.ch>
* vala/parser.y, vala/vala.h, vala/valacodecontext.vala,
vala/valacodegenerator.vala, gobject/Makefile.am,
gobject/valaccodebinding.vala, gobject/valaccodegenerator.vala,
gobject/valadbusbindingprovider.vala: create code nodes with factory
methods to support backend-specific code bindings
svn path=/trunk/; revision=624
Raffaele Sandrini [Thu, 20 Sep 2007 13:02:59 +0000 (13:02 +0000)]
Add support for ownership transfer with properties using the HASH (#)
2007-09-20 Raffaele Sandrini <raffaele@sandrini.ch>
* vala/parser.y: Add support for ownership transfer with properties
using the HASH (#) modifier e.g. public string!# foo { get; set; }
svn path=/trunk/; revision=623
Raffaele Sandrini [Thu, 20 Sep 2007 09:37:49 +0000 (09:37 +0000)]
add G.HashTable.size ()
2007-09-20 Raffaele Sandrini <raffaele@sandrini.ch>
* vapi/glib-2.0.vala: add G.HashTable.size ()
svn path=/trunk/; revision=622
Juerg Billeter [Thu, 20 Sep 2007 09:21:32 +0000 (09:21 +0000)]
support notify attribute for properties
2007-09-20 Juerg Billeter <j@bitron.ch>
* vala/valaproperty.vala, gobject/valaccodegenerator.vala: support
notify attribute for properties
svn path=/trunk/; revision=621
Alberto Ruiz [Tue, 18 Sep 2007 22:18:03 +0000 (22:18 +0000)]
add vapigen variable, fixes bug 477111
2007-09-19 Alberto Ruiz <aruiz@gnome.org>
* vala-1.0.pc.in: add vapigen variable,
fixes bug 477111
svn path=/trunk/; revision=620
Juerg Billeter [Tue, 18 Sep 2007 21:06:31 +0000 (21:06 +0000)]
fix public static fields, fixes bug 477207
2007-09-18 Juerg Billeter <j@bitron.ch>
* gobject/valaccodegenerator.vala: fix public static fields,
fixes bug 477207
svn path=/trunk/; revision=619
Juerg Billeter [Tue, 18 Sep 2007 20:59:01 +0000 (20:59 +0000)]
support mapping interface methods to abstract and virtual methods, fixes
2007-09-18 Juerg Billeter <j@bitron.ch>
* gobject/valaccodegeneratorclass.vala,
gobject/valaccodegeneratormethod.vala: support mapping interface
methods to abstract and virtual methods, fixes bug 477206
svn path=/trunk/; revision=618
Juerg Billeter [Mon, 17 Sep 2007 21:01:20 +0000 (21:01 +0000)]
rename CodeGenerator to CCodeGenerator, add abstract CodeGenerator and
2007-09-17 Juerg Billeter <j@bitron.ch>
* vala/Makefile.am, vala/valacodebinding.vala,
vala/valacodecontext.vala, vala/valacodegenerator.vala,
vala/valacodenode.vala, gobject/Makefile.am,
gobject/valaccodegenerator.vala, compiler/valacompiler.vala: rename
CodeGenerator to CCodeGenerator, add abstract CodeGenerator and
CodeBinding classes
svn path=/trunk/; revision=617
Juerg Billeter [Mon, 17 Sep 2007 19:05:34 +0000 (19:05 +0000)]
switch lambda expression to external visitor
2007-09-17 Juerg Billeter <j@bitron.ch>
* vala/valacodevisitor.vala, vala/valalambdaexpression.vala,
vala/valamemorymanager.vala, vala/valasemanticanalyzer.vala,
vala/valasymbolresolver.vala, gobject/valacodegenerator.vala: switch
lambda expression to external visitor
svn path=/trunk/; revision=616
Juerg Billeter [Mon, 17 Sep 2007 18:42:27 +0000 (18:42 +0000)]
switch object creation expression to external visitor
2007-09-17 Juerg Billeter <j@bitron.ch>
* vala/valacodevisitor.vala, vala/valamemorymanager.vala,
vala/valaobjectcreationexpression.vala,
vala/valasemanticanalyzer.vala, vala/valasymbolresolver.vala,
gobject/valacodegenerator.vala: switch object creation expression to
external visitor
svn path=/trunk/; revision=615
Juerg Billeter [Mon, 17 Sep 2007 18:35:50 +0000 (18:35 +0000)]
switch invocation expression to external visitor
2007-09-17 Juerg Billeter <j@bitron.ch>
* vala/valacodevisitor.vala, vala/valainvocationexpression.vala,
vala/valamemorymanager.vala, vala/valasemanticanalyzer.vala,
vala/valasymbolresolver.vala,
gobject/valacodegeneratorinvocationexpression.vala: switch invocation
expression to external visitor
svn path=/trunk/; revision=614
Juerg Billeter [Mon, 17 Sep 2007 18:28:38 +0000 (18:28 +0000)]
switch return statement to external visitor
2007-09-17 Juerg Billeter <j@bitron.ch>
* vala/valacodevisitor.vala, vala/valamemorymanager.vala,
vala/valareturnstatement.vala, vala/valasemanticanalyzer.vala,
vala/valasymbolresolver.vala, gobject/valacodegenerator.vala: switch
return statement to external visitor
svn path=/trunk/; revision=613
Juerg Billeter [Mon, 17 Sep 2007 18:22:42 +0000 (18:22 +0000)]
switch block to external visitor
2007-09-17 Juerg Billeter <j@bitron.ch>
* vala/valablock.vala, vala/valacodevisitor.vala,
vala/valaforeachstatement.vala, vala/valamemorymanager.vala,
vala/valasemanticanalyzer.vala, vala/valaswitchsection.vala,
vala/valasymbolresolver.vala, gobject/valacodegenerator.vala: switch
block to external visitor
svn path=/trunk/; revision=612
Juerg Billeter [Mon, 17 Sep 2007 16:20:44 +0000 (16:20 +0000)]
switch assignment to external visitor
2007-09-17 Juerg Billeter <j@bitron.ch>
* vala/valaassignment.vala, vala/valacodevisitor.vala,
vala/valamemorymanager.vala, vala/valasemanticanalyzer.vala,
vala/valasymbolresolver.vala,
gobject/valacodegeneratorassignment.vala: switch assignment to
external visitor
svn path=/trunk/; revision=611
Juerg Billeter [Sun, 16 Sep 2007 16:43:20 +0000 (16:43 +0000)]
fix memory management when using lambda expressions
2007-09-16 Juerg Billeter <j@bitron.ch>
* vala/valamemorymanager.vala: fix memory management when using lambda
expressions
svn path=/trunk/; revision=610
Juerg Billeter [Sat, 15 Sep 2007 21:43:43 +0000 (21:43 +0000)]
add support for object initializers
2007-09-15 Juerg Billeter <j@bitron.ch>
* vala/Makefile.am, vala/parser.y, vala/valamemberinitializer.vala,
vala/valaobjectcreationexpression.vala,
vala/valasemanticanalyzer.vala, gobject/valacodegenerator.vala: add
support for object initializers
* tests/classes.exp, tests/classes.vala, tests/structs.exp,
tests/structs.vala: test object initializers with classes and structs
svn path=/trunk/; revision=609
Juerg Billeter [Sat, 15 Sep 2007 19:44:20 +0000 (19:44 +0000)]
support creation methods in structs, replace InstanceByReference method
2007-09-15 Juerg Billeter <j@bitron.ch>
* vala/valainterfacewriter.vala, vala/valamethod.vala,
vala/valasemanticanalyzer.vala, vala/valastruct.vala,
gobject/valacodegenerator.vala,
gobject/valacodegeneratorinvocationexpression.vala,
gobject/valacodegeneratormethod.vala, vapigen/valagidlparser.vala,
vapi/glib-2.0.vala: support creation methods in structs, replace
InstanceByReference method attribute by SimpleType type attribute
(inverse effect)
* tests/Makefile.am, tests/structs.exp, tests/structs.vala: add struct
declaration test
* vapi/gdk-2.0.vala, vapi/gtk+-2.0.vala, vapi/pango.vala: regenerated
svn path=/trunk/; revision=608
Juerg Billeter [Sat, 15 Sep 2007 08:57:16 +0000 (08:57 +0000)]
support real literals with exponent
2007-09-15 Juerg Billeter <j@bitron.ch>
* vala/scanner.l: support real literals with exponent
svn path=/trunk/; revision=607
Juerg Billeter [Fri, 14 Sep 2007 21:15:59 +0000 (21:15 +0000)]
deny assignment to instance members from static methods
2007-09-14 Juerg Billeter <j@bitron.ch>
* vala/valasemanticanalyzer.vala: deny assignment to instance members
from static methods
svn path=/trunk/; revision=606
Juerg Billeter [Fri, 14 Sep 2007 21:00:12 +0000 (21:00 +0000)]
fix Gst.version_string method
2007-09-14 Juerg Billeter <j@bitron.ch>
* vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata: fix
Gst.version_string method
* vapi/gstreamer-0.10.vala: regenerated
svn path=/trunk/; revision=605
Juerg Billeter [Fri, 14 Sep 2007 20:45:31 +0000 (20:45 +0000)]
simplify dispose function, fixes bug 476700
2007-09-14 Juerg Billeter <j@bitron.ch>
* gobject/valacodegeneratorclass.vala: simplify dispose function,
fixes bug 476700
svn path=/trunk/; revision=604
Juerg Billeter [Fri, 14 Sep 2007 20:19:28 +0000 (20:19 +0000)]
fix late bound methods and signals, fixes bug 476953
2007-09-14 Juerg Billeter <j@bitron.ch>
* gobject/valacodegeneratorinvocationexpression.vala,
gobject/valacodegeneratorsignal.vala: fix late bound methods and
signals, fixes bug 476953
svn path=/trunk/; revision=603
Juerg Billeter [Thu, 13 Sep 2007 18:40:55 +0000 (18:40 +0000)]
generate C code comment for abstract methods
2007-09-13 Juerg Billeter <j@bitron.ch>
* gobject/valacodegeneratormethod.vala: generate C code comment for
abstract methods
svn path=/trunk/; revision=602
Juerg Billeter [Thu, 13 Sep 2007 18:34:17 +0000 (18:34 +0000)]
don't remove first parameter of creation methods
2007-09-13 Juerg Billeter <j@bitron.ch>
* vapigen/valagidlparser.vala: don't remove first parameter of creation
methods
* vapi/gdk-2.0.vala, vapi/gstreamer-0.10.vala, vapi/gtk+-2.0.vala,
vapi/gtksourceview-2.0.vala, vapi/libsoup-2.2.vala, vapi/pango.vala:
regenerated
svn path=/trunk/; revision=601
Juerg Billeter [Mon, 10 Sep 2007 12:37:36 +0000 (12:37 +0000)]
document struct declarations
2007-09-10 Juerg Billeter <j@bitron.ch>
* doc/vala/structs.xml: document struct declarations
svn path=/trunk/; revision=600
Juerg Billeter [Sun, 9 Sep 2007 18:34:07 +0000 (18:34 +0000)]
detect interface prerequisite cycle
2007-09-09 Juerg Billeter <j@bitron.ch>
* vala/valasymbolresolver.vala: detect interface prerequisite cycle
svn path=/trunk/; revision=599
Juerg Billeter [Sun, 9 Sep 2007 18:27:42 +0000 (18:27 +0000)]
detect base class cycle
2007-09-09 Juerg Billeter <j@bitron.ch>
* vala/valaclass.vala, vala/valainterface.vala,
vala/valasymbolresolver.vala: detect base class cycle
svn path=/trunk/; revision=598
Juerg Billeter [Sun, 9 Sep 2007 15:26:44 +0000 (15:26 +0000)]
support typeof expressions for arrays
2007-09-09 Juerg Billeter <j@bitron.ch>
* vala/parser.y: support typeof expressions for arrays
svn path=/trunk/; revision=597
Juerg Billeter [Sun, 9 Sep 2007 15:24:12 +0000 (15:24 +0000)]
add GLib.Type.INVALID constant
2007-09-09 Juerg Billeter <j@bitron.ch>
* vapi/glib-2.0.vala: add GLib.Type.INVALID constant
svn path=/trunk/; revision=596
Juerg Billeter [Sun, 9 Sep 2007 14:36:49 +0000 (14:36 +0000)]
support static classes
2007-09-09 Juerg Billeter <j@bitron.ch>
* vala/valainterfacewriter.vala: support static classes
svn path=/trunk/; revision=595
Juerg Billeter [Sat, 8 Sep 2007 16:07:38 +0000 (16:07 +0000)]
add class declaration test
2007-09-08 Juerg Billeter <j@bitron.ch>
* tests/classes.exp, tests/classes.vala: add class declaration test
* tests/Makefile.am: update
svn path=/trunk/; revision=594
Juerg Billeter [Sat, 8 Sep 2007 15:55:19 +0000 (15:55 +0000)]
fix support for static classes
2007-09-08 Juerg Billeter <j@bitron.ch>
* gobject/valacodegeneratorclass.vala: fix support for static classes
svn path=/trunk/; revision=593