platform/upstream/vala.git
16 years agoAdd byte order and number format constants, patch by Ali Sabil
Jürg Billeter [Tue, 3 Jun 2008 20:24:02 +0000 (20:24 +0000)]
Add byte order and number format constants, patch by Ali Sabil

2008-06-03  Jürg Billeter  <j@bitron.ch>

* vapi/glib-2.0.vapi:

Add byte order and number format constants, patch by Ali Sabil

svn path=/trunk/; revision=1557

16 years agoNullable fixes, patch by Nicolas Joseph, fixes bug 536478
Jürg Billeter [Tue, 3 Jun 2008 20:15:09 +0000 (20:15 +0000)]
Nullable fixes, patch by Nicolas Joseph, fixes bug 536478

2008-06-03  Jürg Billeter  <j@bitron.ch>

* vapi/packages/gtk+-2.0/:

Nullable fixes, patch by Nicolas Joseph, fixes bug 536478

* vapi/gtk+-2.0.vapi: regenerated

svn path=/trunk/; revision=1556

16 years agoDocument delegate syntax, based on patch by Phil Housley
Jürg Billeter [Tue, 3 Jun 2008 19:47:08 +0000 (19:47 +0000)]
Document delegate syntax, based on patch by Phil Housley

2008-06-03  Jürg Billeter  <j@bitron.ch>

* doc/vala/delegates.xml:

Document delegate syntax, based on patch by Phil Housley

svn path=/trunk/; revision=1555

16 years agoDocument signal syntax, based on patch by Phil Housley
Jürg Billeter [Tue, 3 Jun 2008 19:41:59 +0000 (19:41 +0000)]
Document signal syntax, based on patch by Phil Housley

2008-06-03  Jürg Billeter  <j@bitron.ch>

* doc/vala/classes.xml:

Document signal syntax, based on patch by Phil Housley

svn path=/trunk/; revision=1554

16 years agoDocument property syntax, based on patch by Phil Housley
Jürg Billeter [Tue, 3 Jun 2008 19:35:40 +0000 (19:35 +0000)]
Document property syntax, based on patch by Phil Housley

2008-06-03  Jürg Billeter  <j@bitron.ch>

* doc/vala/classes.xml:

Document property syntax, based on patch by Phil Housley

svn path=/trunk/; revision=1553

16 years agoDocument enum syntax, based on patch by Phil Housley
Jürg Billeter [Tue, 3 Jun 2008 19:14:22 +0000 (19:14 +0000)]
Document enum syntax, based on patch by Phil Housley

2008-06-03  Jürg Billeter  <j@bitron.ch>

* doc/vala/enums.xml:

Document enum syntax, based on patch by Phil Housley

svn path=/trunk/; revision=1552

16 years agoDocument method syntax, based on patch by Phil Housley
Jürg Billeter [Tue, 3 Jun 2008 18:37:33 +0000 (18:37 +0000)]
Document method syntax, based on patch by Phil Housley

2008-06-03  Jürg Billeter  <j@bitron.ch>

* doc/vala/methods.xml:

Document method syntax, based on patch by Phil Housley

svn path=/trunk/; revision=1551

16 years agoFix gst_adapter_take_buffer and gst_collect_pads_take_buffer bindings, add
Jürg Billeter [Tue, 3 Jun 2008 17:49:46 +0000 (17:49 +0000)]
Fix gst_adapter_take_buffer and gst_collect_pads_take_buffer bindings, add

2008-06-03  Jürg Billeter  <j@bitron.ch>

* vapi/packages/gstreamer-base-0.10/:

Fix gst_adapter_take_buffer and gst_collect_pads_take_buffer
bindings, add gst_base_sink_wait_clock binding, patch by Ali Sabil

* vapi/gstreamer-base-0.10.vapi: regenerated

svn path=/trunk/; revision=1550

16 years agoVarious fixes, patch by Phil Housley
Jürg Billeter [Tue, 3 Jun 2008 15:03:48 +0000 (15:03 +0000)]
Various fixes, patch by Phil Housley

2008-06-03  Jürg Billeter  <j@bitron.ch>

* vapi/packages/gtk+-2.0/:

Various fixes, patch by Phil Housley

* vapi/gtk+-2.0.vapi: regenerated

svn path=/trunk/; revision=1549

16 years agovarious fixes, patch by Christian Meyer
Jürg Billeter [Tue, 3 Jun 2008 13:57:39 +0000 (13:57 +0000)]
various fixes, patch by Christian Meyer

2008-06-03  Jürg Billeter  <j@bitron.ch>

* vapi/tiff.vapi: various fixes, patch by Christian Meyer

svn path=/trunk/; revision=1548

16 years agodistribute and install libepc-1.0.vapi
Jürg Billeter [Tue, 3 Jun 2008 10:48:43 +0000 (10:48 +0000)]
distribute and install libepc-1.0.vapi

2008-06-03  Jürg Billeter  <j@bitron.ch>

* vapi/Makefile.am: distribute and install libepc-1.0.vapi

svn path=/trunk/; revision=1547

16 years agoFix invalid C code when using deprecated static classes
Jürg Billeter [Mon, 2 Jun 2008 19:49:16 +0000 (19:49 +0000)]
Fix invalid C code when using deprecated static classes

2008-06-02  Jürg Billeter  <j@bitron.ch>

* gobject/valaccodeclassbinding.vala:

Fix invalid C code when using deprecated static classes

svn path=/trunk/; revision=1546

16 years agoFix gst_bus_add_watch_full binding
Jürg Billeter [Mon, 2 Jun 2008 19:26:35 +0000 (19:26 +0000)]
Fix gst_bus_add_watch_full binding

2008-06-02  Jürg Billeter  <j@bitron.ch>

* vapi/packages/gstreamer-0.10/:

Fix gst_bus_add_watch_full binding

* vapi/gstreamer-0.10.vapi: regenerated

svn path=/trunk/; revision=1545

16 years agoAdd basic support for owned delegates, fixes bug 533484
Jürg Billeter [Mon, 2 Jun 2008 19:23:34 +0000 (19:23 +0000)]
Add basic support for owned delegates, fixes bug 533484

2008-06-02  Jürg Billeter  <j@bitron.ch>

* gobject/valaccodegenerator.vala:
* gobject/valaccodeinvocationexpressionbinding.vala:
* gobject/valaccodemethodbinding.vala:

Add basic support for owned delegates, fixes bug 533484

svn path=/trunk/; revision=1544

16 years agoUse [Compact] attribute, patch by Phil Housley
Jürg Billeter [Mon, 2 Jun 2008 14:19:49 +0000 (14:19 +0000)]
Use [Compact] attribute, patch by Phil Housley

2008-06-02  Jürg Billeter  <j@bitron.ch>

* vapi/gmodule-2.0.vapi:
* vapi/sdl-gfx.vapi:
* vapi/sdl-mixer.vapi:
* vapi/sdl-ttf.vapi:
* vapi/sdl.vapi:

Use [Compact] attribute, patch by Phil Housley

svn path=/trunk/; revision=1543

16 years agoFix g_hash_table_foreach binding
Jürg Billeter [Mon, 2 Jun 2008 13:06:28 +0000 (13:06 +0000)]
Fix g_hash_table_foreach binding

2008-06-02  Jürg Billeter  <j@bitron.ch>

* vapi/glib-2.0.vapi:

Fix g_hash_table_foreach binding

svn path=/trunk/; revision=1542

16 years agoadd .bzrignore for bzr-svn, patch by Jaap A. Haitsma, fixes bug 535451
Jürg Billeter [Mon, 2 Jun 2008 12:44:51 +0000 (12:44 +0000)]
add .bzrignore for bzr-svn, patch by Jaap A. Haitsma, fixes bug 535451

2008-06-02  Jürg Billeter  <j@bitron.ch>

* .bzrignore: add .bzrignore for bzr-svn,
patch by Jaap A. Haitsma, fixes bug 535451

svn path=/trunk/; revision=1541

16 years agoEnsure that classes implement abstract properties of interfaces and
Jürg Billeter [Mon, 2 Jun 2008 12:36:07 +0000 (12:36 +0000)]
Ensure that classes implement abstract properties of interfaces and

2008-06-02  Jürg Billeter  <j@bitron.ch>

* vala/valasemanticanalyzer.vala:

Ensure that classes implement abstract properties of interfaces
and abstract base classes, fixes bug 535270

svn path=/trunk/; revision=1540

16 years agoFix gdk_event_get_* bindings, fixes bug 533933
Jürg Billeter [Mon, 2 Jun 2008 12:21:42 +0000 (12:21 +0000)]
Fix gdk_event_get_* bindings, fixes bug 533933

2008-06-02  Jürg Billeter  <j@bitron.ch>

* vapi/packages/gdk-2.0/:

Fix gdk_event_get_* bindings, fixes bug 533933

* vapi/gdk-2.0.vapi: regenerated

svn path=/trunk/; revision=1539

16 years agoAdd libepc-1.0 bindings, patch by Ali Sabil, fixes bug 533113
Jürg Billeter [Mon, 2 Jun 2008 12:17:05 +0000 (12:17 +0000)]
Add libepc-1.0 bindings, patch by Ali Sabil, fixes bug 533113

2008-06-02  Jürg Billeter  <j@bitron.ch>

* vapi/libepc-1.0.vapi:
* vapi/packages/libepc-1.0/:

Add libepc-1.0 bindings, patch by Ali Sabil, fixes bug 533113

svn path=/trunk/; revision=1538

16 years agoFix g_file_enumerator_next_files_finish binding, fixes bug 524904
Jürg Billeter [Sun, 1 Jun 2008 22:11:50 +0000 (22:11 +0000)]
Fix g_file_enumerator_next_files_finish binding, fixes bug 524904

2008-06-02  Jürg Billeter  <j@bitron.ch>

* vapi/packages/gio-2.0/:

Fix g_file_enumerator_next_files_finish binding, fixes bug 524904

* vapi/gio-2.0.vapi: regenerated

svn path=/trunk/; revision=1537

16 years agoFix derived generic classes, fixes bug 524426
Jürg Billeter [Sun, 1 Jun 2008 21:57:43 +0000 (21:57 +0000)]
Fix derived generic classes, fixes bug 524426

2008-06-01  Jürg Billeter  <j@bitron.ch>

* vala/valasemanticanalyzer.vala:

Fix derived generic classes, fixes bug 524426

svn path=/trunk/; revision=1536

16 years agoFix gmenu_tree_directory_get_contents binding, fixes bug 522745
Jürg Billeter [Sun, 1 Jun 2008 20:55:12 +0000 (20:55 +0000)]
Fix gmenu_tree_directory_get_contents binding, fixes bug 522745

2008-06-01  Jürg Billeter  <j@bitron.ch>

* vapi/packages/libgnome-menu/:

Fix gmenu_tree_directory_get_contents binding, fixes bug 522745

* vapi/libgnome-menu.vapi: regenerated

svn path=/trunk/; revision=1535

16 years agoFix foreach when used with methods returning arrays
Jürg Billeter [Sun, 1 Jun 2008 20:34:28 +0000 (20:34 +0000)]
Fix foreach when used with methods returning arrays

2008-06-01  Jürg Billeter  <j@bitron.ch>

* gobject/valaccodegenerator.vala:

Fix foreach when used with methods returning arrays

svn path=/trunk/; revision=1534

16 years agoSmall change to make code a bit clearer. Fixes bug #535942
Jaap A. Haitsma [Sun, 1 Jun 2008 16:58:25 +0000 (16:58 +0000)]
Small change to make code a bit clearer. Fixes bug #535942

2008-06-01  Jaap A. Haitsma  <jaap@haitsma.org>

* vala/valasemanticanalyzer.vala:
Small change to make code a bit clearer. Fixes bug #535942

svn path=/trunk/; revision=1533

16 years agoGst.structure.get_value should return Gst.value. Fixes bug #535965
Jaap A. Haitsma [Sun, 1 Jun 2008 16:50:06 +0000 (16:50 +0000)]
Gst.structure.get_value should return Gst.value. Fixes bug #535965

2008-06-01  Jaap A. Haitsma  <jaap@haitsma.org>

* vapi/gstreamer-0.10.vapi:
* vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata:
Gst.structure.get_value should return Gst.value. Fixes bug #535965

svn path=/trunk/; revision=1532

16 years agoFix gdk_window_get_geometry binding, patch by Thijs Vermeir, fixes bug
Jürg Billeter [Sun, 1 Jun 2008 16:12:28 +0000 (16:12 +0000)]
Fix gdk_window_get_geometry binding, patch by Thijs Vermeir, fixes bug

2008-06-01  Jürg Billeter  <j@bitron.ch>

* vapi/packages/gdk-2.0/:

Fix gdk_window_get_geometry binding,
patch by Thijs Vermeir, fixes bug 536062

* vapi/gdk-2.0.vapi: regenerated

svn path=/trunk/; revision=1531

16 years agoImprove error message for incompatible signal handlers, fixes bug 535953
Jürg Billeter [Sun, 1 Jun 2008 15:44:30 +0000 (15:44 +0000)]
Improve error message for incompatible signal handlers, fixes bug 535953

2008-06-01  Jürg Billeter  <j@bitron.ch>

* vala/valadelegate.vala:
* vala/valasemanticanalyzer.vala:

Improve error message for incompatible signal handlers,
fixes bug 535953

svn path=/trunk/; revision=1530

16 years agoFix GtkTreeView bindings, patch by Daniel Svensson
Jürg Billeter [Sun, 1 Jun 2008 14:44:59 +0000 (14:44 +0000)]
Fix GtkTreeView bindings, patch by Daniel Svensson

2008-06-01  Jürg Billeter  <j@bitron.ch>

* vapi/packages/gtk+-2.0/:

Fix GtkTreeView bindings, patch by Daniel Svensson

* vapi/gtk+-2.0.vapi: regenerated

svn path=/trunk/; revision=1529

16 years agoReport error when trying to use unowned element variable in foreach
Jürg Billeter [Sun, 1 Jun 2008 14:01:33 +0000 (14:01 +0000)]
Report error when trying to use unowned element variable in foreach

2008-06-01  Jürg Billeter  <j@bitron.ch>

* vala/valasemanticanalyzer.vala:

Report error when trying to use unowned element variable in
foreach statement using iterators

svn path=/trunk/; revision=1528

16 years agoFix memory management when using owned variables as argument for unowned
Jürg Billeter [Sun, 1 Jun 2008 13:10:39 +0000 (13:10 +0000)]
Fix memory management when using owned variables as argument for unowned

2008-06-01  Jürg Billeter  <j@bitron.ch>

* gobject/valaccodeinvocationexpressionbinding.vala:

Fix memory management when using owned variables as argument
for unowned reference and output parameters

* tests/classes-methods.vala:

Test owned and unowned variables as argument for reference and
output parameters

svn path=/trunk/; revision=1527

16 years agoReport error when trying to use unowned variables as argument for owned
Jürg Billeter [Sun, 1 Jun 2008 11:31:44 +0000 (11:31 +0000)]
Report error when trying to use unowned variables as argument for owned

2008-06-01  Jürg Billeter  <j@bitron.ch>

* vala/valasemanticanalyzer.vala:

Report error when trying to use unowned variables as argument
for owned reference and output parameters

svn path=/trunk/; revision=1526

16 years agoReport internal error for missing type argument
Jürg Billeter [Sun, 1 Jun 2008 09:45:59 +0000 (09:45 +0000)]
Report internal error for missing type argument

2008-06-01  Jürg Billeter  <j@bitron.ch>

* vala/valasemanticanalyzer.vala:

Report internal error for missing type argument

svn path=/trunk/; revision=1525

16 years agoFix handling of ref array arguments
Jürg Billeter [Sat, 31 May 2008 21:34:50 +0000 (21:34 +0000)]
Fix handling of ref array arguments

2008-05-31  Jürg Billeter  <j@bitron.ch>

* vala/valasemanticanalyzer.vala:
* vapigen/valavapigen.vala:

Fix handling of ref array arguments

svn path=/trunk/; revision=1524

16 years agoFix memory management for ref and out arguments
Jürg Billeter [Sat, 31 May 2008 21:02:18 +0000 (21:02 +0000)]
Fix memory management for ref and out arguments

2008-05-31  Jürg Billeter  <j@bitron.ch>

* vala/valasemanticanalyzer.vala:
* vala/valasymbolresolver.vala:
* vala/valaunaryexpression.vala:
* gobject/valaccodegenerator.vala:
* gobject/valaccodeinvocationexpressionbinding.vala:
* compiler/valacompiler.vala:

Fix memory management for ref and out arguments

svn path=/trunk/; revision=1523

16 years agoDon't complain about incompatible signal handlers when using signals in
Jürg Billeter [Sat, 31 May 2008 19:10:14 +0000 (19:10 +0000)]
Don't complain about incompatible signal handlers when using signals in

2008-05-31  Jürg Billeter  <j@bitron.ch>

* vala/valadatatype.vala:

Don't complain about incompatible signal handlers when using
signals in generic types

svn path=/trunk/; revision=1522

16 years agoFix gst_value_get_buffer and gst_value_get_structure bindings, patch by
Jürg Billeter [Sat, 31 May 2008 18:55:25 +0000 (18:55 +0000)]
Fix gst_value_get_buffer and gst_value_get_structure bindings, patch by

2008-05-31  Jürg Billeter  <j@bitron.ch>

* vapi/packages/gstreamer-0.10/:

Fix gst_value_get_buffer and gst_value_get_structure bindings,
patch by Ali Sabil

* vapi/gstreamer-0.10.vapi: regenerated

svn path=/trunk/; revision=1521

16 years agoAdd support for structs in D-Bus service and client methods, fixes bug
Jürg Billeter [Sat, 31 May 2008 18:49:17 +0000 (18:49 +0000)]
Add support for structs in D-Bus service and client methods, fixes bug

2008-05-31  Jürg Billeter  <j@bitron.ch>

* vala/valastruct.vala:
* gobject/valaccodedynamicmethodbinding.vala:
* gobject/valaccodegeneratorsignal.vala:
* gobject/valaccodeobjecttypesymbolbinding.vala:

Add support for structs in D-Bus service and client methods,
fixes bug 534548 and bug 534549

svn path=/trunk/; revision=1520

16 years agoFix gst_value_list_get_value binding
Jürg Billeter [Sat, 31 May 2008 13:46:01 +0000 (13:46 +0000)]
Fix gst_value_list_get_value binding

2008-05-31  Jürg Billeter  <j@bitron.ch>

* vapi/packages/gstreamer-0.10/:

Fix gst_value_list_get_value binding

* vapi/gstreamer-0.10.vapi: regenerated

svn path=/trunk/; revision=1519

16 years agohide gtk_menu_item_select and gtk_menu_item_deselect, already available in
Jürg Billeter [Sat, 31 May 2008 12:40:43 +0000 (12:40 +0000)]
hide gtk_menu_item_select and gtk_menu_item_deselect, already available in

2008-05-31  Jürg Billeter  <j@bitron.ch>

* vapi/packages/gtk+-2.0/: hide gtk_menu_item_select and
gtk_menu_item_deselect, already available in base class

* vapi/gtk+-2.0.vapi: regenerated

svn path=/trunk/; revision=1518

16 years agoNullable and `out' fixes, based on patch by Nicolas Joseph, fixes bug
Jürg Billeter [Sat, 31 May 2008 11:44:25 +0000 (11:44 +0000)]
Nullable and `out' fixes, based on patch by Nicolas Joseph, fixes bug

2008-05-31  Jürg Billeter  <j@bitron.ch>

* vapi/packages/gtk+-2.0/:
* vapi/packages/gtksourceview-2.0/:

Nullable and `out' fixes,
based on patch by Nicolas Joseph, fixes bug 535618

* vapi/gtk+-2.0.vapi:
* vapi/gtksourceview-2.0.vapi:

Regenerated

svn path=/trunk/; revision=1517

16 years agoConvert to instance_pos attribute syntax, patch by Nicolas Joseph, fixes
Jürg Billeter [Sat, 31 May 2008 11:38:55 +0000 (11:38 +0000)]
Convert to instance_pos attribute syntax, patch by Nicolas Joseph, fixes

2008-05-31  Jürg Billeter  <j@bitron.ch>

* vapi/libxml-2.0.vapi:

Convert to instance_pos attribute syntax,
patch by Nicolas Joseph, fixes bug 535617

svn path=/trunk/; revision=1516

16 years agoNullable fixes, patch by Nicolas Joseph, fixes bug 535616
Jürg Billeter [Sat, 31 May 2008 11:36:56 +0000 (11:36 +0000)]
Nullable fixes, patch by Nicolas Joseph, fixes bug 535616

2008-05-31  Jürg Billeter  <j@bitron.ch>

* vapi/packages/gtksourceview-2.0/:

Nullable fixes, patch by Nicolas Joseph, fixes bug 535616

* vapi/gtksourceview-2.0.vapi: regenerated

svn path=/trunk/; revision=1515

16 years agoEmit nested enums before structs, based on patch by Jaap A. Haitsma, fixes
Jürg Billeter [Sat, 31 May 2008 11:29:54 +0000 (11:29 +0000)]
Emit nested enums before structs, based on patch by Jaap A. Haitsma, fixes

2008-05-31  Jürg Billeter  <j@bitron.ch>

* vala/valaclass.vala:
* vala/valainterface.vala:

Emit nested enums before structs,
based on patch by Jaap A. Haitsma, fixes bug 530063

svn path=/trunk/; revision=1514

16 years agoAllow non-null sender parameter in signal handlers
Jürg Billeter [Sat, 31 May 2008 11:21:26 +0000 (11:21 +0000)]
Allow non-null sender parameter in signal handlers

2008-05-31  Jürg Billeter  <j@bitron.ch>

* vala/valasignal.vala:

Allow non-null sender parameter in signal handlers

svn path=/trunk/; revision=1513

16 years agoFix ownership for constant arrays of structs, fixes bug 535560
Jürg Billeter [Sat, 31 May 2008 11:10:42 +0000 (11:10 +0000)]
Fix ownership for constant arrays of structs, fixes bug 535560

2008-05-31  Jürg Billeter  <j@bitron.ch>

* vala/valasemanticanalyzer.vala:

Fix ownership for constant arrays of structs, fixes bug 535560

svn path=/trunk/; revision=1512

16 years agoFix delegates with array parameters, fixes bug 519928
Jürg Billeter [Sat, 31 May 2008 09:26:58 +0000 (09:26 +0000)]
Fix delegates with array parameters, fixes bug 519928

2008-05-31  Jürg Billeter  <j@bitron.ch>

* gobject/valaccodegenerator.vala:

Fix delegates with array parameters, fixes bug 519928

svn path=/trunk/; revision=1511

16 years agoFix gst_structure_get_value binding, fixes bug 530817
Jürg Billeter [Sat, 31 May 2008 08:25:31 +0000 (08:25 +0000)]
Fix gst_structure_get_value binding, fixes bug 530817

2008-05-31  Jürg Billeter  <j@bitron.ch>

* vapi/packages/gstreamer-0.10/:

Fix gst_structure_get_value binding, fixes bug 530817

* vapi/gstreamer-0.10.vapi: regenerated

svn path=/trunk/; revision=1510

16 years agoSupport nullable return types
Jürg Billeter [Sat, 31 May 2008 08:22:38 +0000 (08:22 +0000)]
Support nullable return types

2008-05-31  Jürg Billeter  <j@bitron.ch>

* vala/valainterfacewriter.vala:
* vapigen/valagidlparser.vala:

Support nullable return types

svn path=/trunk/; revision=1509

16 years agoFix memory leak when boxing unowned values
Jürg Billeter [Sat, 31 May 2008 08:12:02 +0000 (08:12 +0000)]
Fix memory leak when boxing unowned values

2008-05-31  Jürg Billeter  <j@bitron.ch>

* gobject/valaccodegenerator.vala:

Fix memory leak when boxing unowned values

svn path=/trunk/; revision=1508

16 years agoFree boxed value when unboxing
Jürg Billeter [Sat, 31 May 2008 08:04:41 +0000 (08:04 +0000)]
Free boxed value when unboxing

2008-05-31  Jürg Billeter  <j@bitron.ch>

* gobject/valaccodegenerator.vala:

Free boxed value when unboxing

svn path=/trunk/; revision=1507

16 years agoFix dynamic signals for D-Bus objects
Jürg Billeter [Sat, 31 May 2008 08:00:32 +0000 (08:00 +0000)]
Fix dynamic signals for D-Bus objects

2008-05-31  Jürg Billeter  <j@bitron.ch>

* gobject/valaccodedynamicsignalbinding.vala:

Fix dynamic signals for D-Bus objects

svn path=/trunk/; revision=1506

16 years agoSupport dynamic properties and signals also for GObject subtypes
Jürg Billeter [Fri, 30 May 2008 23:48:58 +0000 (23:48 +0000)]
Support dynamic properties and signals also for GObject subtypes

2008-05-31  Jürg Billeter  <j@bitron.ch>

* gobject/valaccodedynamicpropertybinding.vala:
* gobject/valaccodedynamicsignalbinding.vala:

Support dynamic properties and signals also for GObject subtypes

svn path=/trunk/; revision=1505

16 years agoFix copying nullable structs
Jürg Billeter [Fri, 30 May 2008 23:36:51 +0000 (23:36 +0000)]
Fix copying nullable structs

2008-05-31  Jürg Billeter  <j@bitron.ch>

* gobject/valaccodegenerator.vala:

Fix copying nullable structs

svn path=/trunk/; revision=1504

16 years agoImprovements to nullable struct support
Jürg Billeter [Fri, 30 May 2008 23:10:31 +0000 (23:10 +0000)]
Improvements to nullable struct support

2008-05-31  Jürg Billeter  <j@bitron.ch>

* ccode/valaccodeunaryexpression.vala:
* gobject/valaccodegenerator.vala:
* gobject/valaccodeinvocationexpressionbinding.vala:

Improvements to nullable struct support

svn path=/trunk/; revision=1503

16 years agoAdd basic support for nullable structs
Juerg Billeter [Fri, 30 May 2008 22:48:14 +0000 (22:48 +0000)]
Add basic support for nullable structs

2008-05-31  Juerg Billeter  <j@bitron.ch>

* gobject/valaccodegenerator.vala:
* gobject/valaccodeinvocationexpressionbinding.vala:
* gobject/valaccodememberaccessbinding.vala:

Add basic support for nullable structs

* tests/structs.vala:

Test nullable struct parameters

svn path=/trunk/; revision=1502

16 years agoremove obsolete code
Jürg Billeter [Fri, 30 May 2008 21:05:02 +0000 (21:05 +0000)]
remove obsolete code

2008-05-30  Jürg Billeter  <j@bitron.ch>

* vala/valadatatype.vala: remove obsolete code

svn path=/trunk/; revision=1501

16 years agofix g_value_copy and g_value_transform bindings, fixes bug 523767
Jürg Billeter [Fri, 30 May 2008 20:59:16 +0000 (20:59 +0000)]
fix g_value_copy and g_value_transform bindings, fixes bug 523767

2008-05-30  Jürg Billeter  <j@bitron.ch>

* vapi/glib-2.0.vapi: fix g_value_copy and g_value_transform
bindings, fixes bug 523767

svn path=/trunk/; revision=1500

16 years agoCheck return type and parameters of signal handlers
Jürg Billeter [Fri, 30 May 2008 20:44:41 +0000 (20:44 +0000)]
Check return type and parameters of signal handlers

2008-05-30  Jürg Billeter  <j@bitron.ch>

* vala/valaobjecttype.vala:
* vala/valasemanticanalyzer.vala:
* vala/valasignal.vala:

Check return type and parameters of signal handlers

svn path=/trunk/; revision=1499

16 years agoUse lazy initialization for type_argument_list in DataType class to
Juerg Billeter [Fri, 30 May 2008 16:56:15 +0000 (16:56 +0000)]
Use lazy initialization for type_argument_list in DataType class to

2008-05-30  Juerg Billeter  <j@bitron.ch>

* vala/valadatatype.vala:

Use lazy initialization for type_argument_list in DataType class
to improve performance

svn path=/trunk/; revision=1498

16 years agoAdd support for dynamic properties of GObjects
Juerg Billeter [Fri, 30 May 2008 14:59:31 +0000 (14:59 +0000)]
Add support for dynamic properties of GObjects

2008-05-30  Juerg Billeter  <j@bitron.ch>

* vala/valadynamicmethod.vala:
* vala/valadynamicproperty.vala:
* vala/valasymbol.vala:
* gobject/valaccodedynamicpropertybinding.vala:

Add support for dynamic properties of GObjects

svn path=/trunk/; revision=1497

16 years agoAdd support for dynamic signals of GObjects
Juerg Billeter [Fri, 30 May 2008 14:29:39 +0000 (14:29 +0000)]
Add support for dynamic signals of GObjects

2008-05-30  Juerg Billeter  <j@bitron.ch>

* gobject/valaccodedynamicsignalbinding.vala:

Add support for dynamic signals of GObjects

svn path=/trunk/; revision=1496

16 years agofix Gst.Pad.push_event ownership transfer
Ali Sabil [Fri, 30 May 2008 11:34:07 +0000 (11:34 +0000)]
fix Gst.Pad.push_event ownership transfer

2008-05-30  Ali Sabil  <ali.sabil@gmail.com>

* vapi/packages/gstreamer-0.10/: fix Gst.Pad.push_event
ownership transfer

* vapi/gstreamer-0.10.vapi: regenerated

svn path=/trunk/; revision=1495

16 years agoUse lazy initialization for error_types list in CodeNode class to improve
Juerg Billeter [Thu, 29 May 2008 22:17:16 +0000 (22:17 +0000)]
Use lazy initialization for error_types list in CodeNode class to improve

2008-05-30  Juerg Billeter  <j@bitron.ch>

* vala/valacodenode.vala:

Use lazy initialization for error_types list in CodeNode class
to improve performance

svn path=/trunk/; revision=1494

16 years agoUse Gee.List instead of Gee.Collection to improve iteration performance
Juerg Billeter [Thu, 29 May 2008 21:48:51 +0000 (21:48 +0000)]
Use Gee.List instead of Gee.Collection to improve iteration performance

2008-05-29  Juerg Billeter  <j@bitron.ch>

* vala/valablock.vala:
* vala/valaclass.vala:
* vala/valacodecontext.vala:
* vala/valacodenode.vala:
* vala/valadatatype.vala:
* vala/valadelegatetype.vala:
* vala/valadynamicmethod.vala:
* vala/valadynamicproperty.vala:
* vala/valaenum.vala:
* vala/valaerrordomain.vala:
* vala/valaforstatement.vala:
* vala/valainitializerlist.vala:
* vala/valainterface.vala:
* vala/valainterfacewriter.vala:
* vala/valainvocationexpression.vala:
* vala/valalambdaexpression.vala:
* vala/valamember.vala:
* vala/valamemberaccess.vala:
* vala/valamethod.vala:
* vala/valamethodtype.vala:
* vala/valanamespace.vala:
* vala/valaobjectcreationexpression.vala:
* vala/valaobjecttypesymbol.vala:
* vala/valapointertype.vala:
* vala/valasemanticanalyzer.vala:
* vala/valasignaltype.vala:
* vala/valasourcefile.vala:
* vala/valastruct.vala:
* vala/valaswitchsection.vala:
* vala/valaswitchstatement.vala:
* vala/valasymbol.vala:
* vala/valasymbolresolver.vala:
* vala/valatypesymbol.vala:
* ccode/valaccodecommaexpression.vala:
* ccode/valaccodefragment.vala:
* gobject/valaccodeassignmentbinding.vala:
* gobject/valaccodeelementaccessbinding.vala:
* gobject/valaccodegenerator.vala:
* gobject/valaccodegeneratorsignal.vala:
* gobject/valaccodeinvocationexpressionbinding.vala:
* gobject/valagidlwriter.vala:

Use Gee.List instead of Gee.Collection to improve iteration
performance

svn path=/trunk/; revision=1493

16 years agoDon't use iterator objects for lists to improve performance
Juerg Billeter [Thu, 29 May 2008 21:40:49 +0000 (21:40 +0000)]
Don't use iterator objects for lists to improve performance

2008-05-29  Juerg Billeter  <j@bitron.ch>

* vala/valasemanticanalyzer.vala:
* gobject/valaccodegenerator.vala:

Don't use iterator objects for lists to improve performance

svn path=/trunk/; revision=1492

16 years agoUse verbose error messages by default, display relative filenames in error
Juerg Billeter [Thu, 29 May 2008 21:03:38 +0000 (21:03 +0000)]
Use verbose error messages by default, display relative filenames in error

2008-05-29  Juerg Billeter  <j@bitron.ch>

* vala/valasourcefile.vala:
* vala/valasourcereference.vala:
* compiler/valacompiler.vala:

Use verbose error messages by default, display relative filenames
in error messages, fixes bug 535480

svn path=/trunk/; revision=1491

16 years agofix Gst.Pad.push ownership transfer
Ali Sabil [Thu, 29 May 2008 20:41:55 +0000 (20:41 +0000)]
fix Gst.Pad.push ownership transfer

2008-05-29  Ali Sabil  <ali.sabil@gmail.com>

* vapi/packages/gstreamer-0.10/: fix Gst.Pad.push
ownership transfer

* vapi/gstreamer-0.10.vapi: regenerated

svn path=/trunk/; revision=1490

16 years agofix Gst.Element.add_pad ownership transfer
Ali Sabil [Thu, 29 May 2008 20:39:34 +0000 (20:39 +0000)]
fix Gst.Element.add_pad ownership transfer

2008-05-29  Ali Sabil  <ali.sabil@gmail.com>

* vapi/packages/gstreamer-0.10/: fix Gst.Element.add_pad
ownership transfer

* vapi/gstreamer-0.10.vapi: regenerated

svn path=/trunk/; revision=1489

16 years agofixed VideoCaps.YUV to return a weak string
Ali Sabil [Thu, 29 May 2008 20:36:25 +0000 (20:36 +0000)]
fixed VideoCaps.YUV to return a weak string

2008-05-29  Ali Sabil  <ali.sabil@gmail.com>

* vapi/packages/gstreamer-video-0.10/: fixed VideoCaps.YUV
to return a weak string

* vapi/gstreamer-video-0.10.vapi: regenerated

svn path=/trunk/; revision=1488

16 years agohide private fields from GstAdapter, and specify the type argument for
Ali Sabil [Thu, 29 May 2008 20:33:51 +0000 (20:33 +0000)]
hide private fields from GstAdapter, and specify the type argument for

2008-05-29  Ali Sabil  <ali.sabil@gmail.com>

* vapi/packages/gstreamer-base-0.10/: hide private fields from
GstAdapter, and specify the type argument for GstCollectPads.data

* vapi/gstreamer-base-0.10.vapi: regenerated

svn path=/trunk/; revision=1487

16 years agoOutput cheader filenames for namespace fields and constants
Juerg Billeter [Thu, 29 May 2008 20:26:37 +0000 (20:26 +0000)]
Output cheader filenames for namespace fields and constants

2008-05-29  Juerg Billeter  <j@bitron.ch>

* vala/valainterfacewriter.vala:

Output cheader filenames for namespace fields and constants

* vapi/gdk-2.0.vapi:
* vapi/gdk-pixbuf-2.0.vapi:
* vapi/gio-2.0.vapi:
* vapi/gio-unix-2.0.vapi:
* vapi/gnet-2.0.vapi:
* vapi/gnome-desktop-2.0.vapi:
* vapi/gnome-keyring-1.vapi:
* vapi/gnome-vfs-2.0.vapi:
* vapi/goocanvas.vapi:
* vapi/gstreamer-0.10.vapi:
* vapi/gstreamer-audio-0.10.vapi:
* vapi/gstreamer-dataprotocol-0.10.vapi:
* vapi/gstreamer-net-0.10.vapi:
* vapi/gstreamer-riff-0.10.vapi:
* vapi/gstreamer-rtp-0.10.vapi:
* vapi/gstreamer-rtsp-0.10.vapi:
* vapi/gstreamer-sdp-0.10.vapi:
* vapi/gstreamer-tag-0.10.vapi:
* vapi/gstreamer-video-0.10.vapi:
* vapi/gtk+-2.0.vapi:
* vapi/hildon-1.vapi:
* vapi/json-glib-1.0.vapi:
* vapi/libglade-2.0.vapi:
* vapi/libgnome-2.0.vapi:
* vapi/libgnomeui-2.0.vapi:
* vapi/libnotify.vapi:
* vapi/libsoup-2.2.vapi:
* vapi/libsoup-2.4.vapi:
* vapi/pango.vapi:
* vapi/poppler-glib.vapi:

Regenerated

svn path=/trunk/; revision=1486

16 years agoAdd support for non-GObject classes with generic type parameters
Juerg Billeter [Thu, 29 May 2008 17:42:25 +0000 (17:42 +0000)]
Add support for non-GObject classes with generic type parameters

2008-05-29  Juerg Billeter  <j@bitron.ch>

* vala/valainterface.vala:
* gobject/valaccodeclassbinding.vala:
* gobject/valaccodegenerator.vala:
* gobject/valaccodeinterfacebinding.vala:
* gobject/valaccodemethodbinding.vala:

Add support for non-GObject classes with generic type parameters

svn path=/trunk/; revision=1485

16 years agoSupport `hidden' attribute for boxed types and `type_arguments' attribute
Juerg Billeter [Thu, 29 May 2008 15:09:39 +0000 (15:09 +0000)]
Support `hidden' attribute for boxed types and `type_arguments' attribute

2008-05-29  Juerg Billeter  <j@bitron.ch>

* vapigen/valagidlparser.vala:

Support `hidden' attribute for boxed types and `type_arguments'
attribute for fields and properties, patch by Ali Sabil

svn path=/trunk/; revision=1484

16 years agoFix reference counting for non-GObject interfaces
Juerg Billeter [Thu, 29 May 2008 15:01:47 +0000 (15:01 +0000)]
Fix reference counting for non-GObject interfaces

2008-05-29  Juerg Billeter  <j@bitron.ch>

* vala/valainterface.vala:

Fix reference counting for non-GObject interfaces

svn path=/trunk/; revision=1483

16 years agoSimplify generated _new functions for non-GObject classes
Juerg Billeter [Thu, 29 May 2008 10:52:34 +0000 (10:52 +0000)]
Simplify generated _new functions for non-GObject classes

2008-05-29  Juerg Billeter  <j@bitron.ch>

* gobject/valaccodeclassbinding.vala:
* gobject/valaccodegenerator.vala:
* gobject/valaccodemethodbinding.vala:
* gobject/valaclassregisterfunction.vala:

Simplify generated _new functions for non-GObject classes

svn path=/trunk/; revision=1482

16 years agoAdd some more tests. Fixes bug #535430
Jaap A. Haitsma [Thu, 29 May 2008 10:10:33 +0000 (10:10 +0000)]
Add some more tests. Fixes bug #535430

2008-05-29  Jaap A. Haitsma  <jaap@haitsma.org>

* tests/strings.vala:
Add some more tests. Fixes bug #535430

svn path=/trunk/; revision=1481

16 years agoFix Gst.init () binding. Fixes bug #535411
Jaap A. Haitsma [Thu, 29 May 2008 09:43:40 +0000 (09:43 +0000)]
Fix Gst.init () binding. Fixes bug #535411

2008-05-29  Jaap A. Haitsma  <jaap@haitsma.org>

* vapi/gstreamer-0.10.vapi:
* vapi/packages/gstreamer-0.10/gstreamer-0.10-custom.vala:
Fix Gst.init () binding. Fixes bug #535411

svn path=/trunk/; revision=1480

16 years agoPrint errors on stdout. Fixes #535417
Jaap A. Haitsma [Thu, 29 May 2008 09:41:05 +0000 (09:41 +0000)]
Print errors on stdout. Fixes #535417

2008-05-29  Jaap A. Haitsma  <jaap@haitsma.org>

* tests/testrunner.sh:
Print errors on stdout. Fixes #535417

svn path=/trunk/; revision=1479

16 years agoTest compilation of constant string arrays
Juerg Billeter [Thu, 29 May 2008 08:35:00 +0000 (08:35 +0000)]
Test compilation of constant string arrays

2008-05-29  Juerg Billeter  <j@bitron.ch>

* tests/arrays.vala:

Test compilation of constant string arrays

svn path=/trunk/; revision=1478

16 years agoConstant arrays don't own their elements, fixes bug 535415
Juerg Billeter [Thu, 29 May 2008 08:30:06 +0000 (08:30 +0000)]
Constant arrays don't own their elements, fixes bug 535415

2008-05-29  Juerg Billeter  <j@bitron.ch>

* vala/valaparser.vala:

Constant arrays don't own their elements, fixes bug 535415

svn path=/trunk/; revision=1477

16 years agoRevamped array syntax
Jamie McCracken [Thu, 29 May 2008 02:55:18 +0000 (02:55 +0000)]
Revamped array syntax

2008-05-29  Jamie McCracken  <jamiemcc@gnome.org>

* vala/valagenietokentype.vala:
* vala/valageniescanner.vala:
* vala/valagenieparser.vala:

Revamped array syntax

svn path=/trunk/; revision=1476

16 years agoMark signals as virtual to make it possible to override default method
Juerg Billeter [Wed, 28 May 2008 23:41:04 +0000 (23:41 +0000)]
Mark signals as virtual to make it possible to override default method

2008-05-29  Juerg Billeter  <j@bitron.ch>

* vala/valainterfacewriter.vala:
* vapigen/valagidlparser.vala:

Mark signals as virtual to make it possible to override default
method handlers

* vapi/atk.vapi:
* vapi/gconf-2.0.vapi:
* vapi/gdk-2.0.vapi:
* vapi/gdk-pixbuf-2.0.vapi:
* vapi/gio-2.0.vapi:
* vapi/gio-unix-2.0.vapi:
* vapi/gnome-desktop-2.0.vapi:
* vapi/gnome-vfs-2.0.vapi:
* vapi/goocanvas.vapi:
* vapi/gstreamer-0.10.vapi:
* vapi/gstreamer-base-0.10.vapi:
* vapi/gstreamer-interfaces-0.10.vapi:
* vapi/gstreamer-rtsp-0.10.vapi:
* vapi/gtk+-2.0.vapi:
* vapi/gtksourceview-2.0.vapi:
* vapi/hildon-1.vapi:
* vapi/hildon-fm-2.vapi:
* vapi/json-glib-1.0.vapi:
* vapi/libgnomeui-2.0.vapi:
* vapi/libnotify.vapi:
* vapi/liboobs-1.vapi:
* vapi/libsexy.vapi:
* vapi/libsoup-2.2.vapi:
* vapi/libsoup-2.4.vapi:
* vapi/libwnck-1.0.vapi:
* vapi/packages/gtk+-2.0/gtk+-2.0.metadata:
* vapi/vte.vapi:
* vapi/webkit-1.0.vapi:

Regenerated

svn path=/trunk/; revision=1475

16 years agoAdd support for overriding default method handlers of signals that have
Juerg Billeter [Wed, 28 May 2008 23:30:19 +0000 (23:30 +0000)]
Add support for overriding default method handlers of signals that have

2008-05-29  Juerg Billeter  <j@bitron.ch>

* vala/valamethod.vala:
* vala/valaparser.vala:
* vala/valasignal.vala:

Add support for overriding default method handlers of signals
that have been declared with the `virtual' modifier

svn path=/trunk/; revision=1474

16 years agoMark non-GObject classes as compact, fix metadata patterns, fixes bug
Juerg Billeter [Wed, 28 May 2008 21:25:28 +0000 (21:25 +0000)]
Mark non-GObject classes as compact, fix metadata patterns, fixes bug

2008-05-28  Juerg Billeter  <j@bitron.ch>

* vapigen/valagidlparser.vala:

Mark non-GObject classes as compact, fix metadata patterns,
fixes bug 535206

* vapi/cairo.vapi:

Use [Compact] attribute

* vapi/packages/gstreamer-audio-0.10/:
* vapi/packages/gstreamer-check-0.10/:
* vapi/packages/gstreamer-controller-0.10/:
* vapi/packages/gstreamer-dataprotocol-0.10/:
* vapi/packages/gstreamer-fft-0.10/:
* vapi/packages/gstreamer-interfaces-0.10/:
* vapi/packages/gstreamer-net-0.10/:
* vapi/packages/gstreamer-netbuffer-0.10/:
* vapi/packages/gstreamer-pbutils-0.10/:
* vapi/packages/gstreamer-riff-0.10/:
* vapi/packages/gstreamer-rtp-0.10/:
* vapi/packages/gstreamer-rtsp-0.10/:
* vapi/packages/gstreamer-sdp-0.10/:
* vapi/packages/gstreamer-tag-0.10/:

Add missing dependency on gmodule-2.0

* vapi/atk.vapi:
* vapi/gconf-2.0.vapi:
* vapi/gdk-2.0.vapi:
* vapi/gdk-pixbuf-2.0.vapi:
* vapi/gio-2.0.vapi:
* vapi/gio-unix-2.0.vapi:
* vapi/gnet-2.0.vapi:
* vapi/gnome-desktop-2.0.vapi:
* vapi/gnome-keyring-1.vapi:
* vapi/gnome-vfs-2.0.vapi:
* vapi/goocanvas.vapi:
* vapi/gstreamer-0.10.vapi:
* vapi/gstreamer-audio-0.10.vapi:
* vapi/gstreamer-base-0.10.vapi:
* vapi/gstreamer-check-0.10.vapi:
* vapi/gstreamer-controller-0.10.vapi:
* vapi/gstreamer-dataprotocol-0.10.vapi:
* vapi/gstreamer-fft-0.10.vapi:
* vapi/gstreamer-interfaces-0.10.vapi:
* vapi/gstreamer-net-0.10.vapi:
* vapi/gstreamer-netbuffer-0.10.vapi:
* vapi/gstreamer-pbutils-0.10.vapi:
* vapi/gstreamer-riff-0.10.vapi:
* vapi/gstreamer-rtp-0.10.vapi:
* vapi/gstreamer-rtsp-0.10.vapi:
* vapi/gstreamer-sdp-0.10.vapi:
* vapi/gstreamer-video-0.10.vapi:
* vapi/gtk+-2.0.vapi:
* vapi/gtksourceview-2.0.vapi:
* vapi/hildon-1.vapi:
* vapi/hildon-fm-2.vapi:
* vapi/json-glib-1.0.vapi:
* vapi/libglade-2.0.vapi:
* vapi/libgnome-2.0.vapi:
* vapi/libgnome-menu.vapi:
* vapi/libgnomeui-2.0.vapi:
* vapi/libnotify.vapi:
* vapi/liboobs-1.vapi:
* vapi/libsoup-2.2.vapi:
* vapi/libsoup-2.4.vapi:
* vapi/libwnck-1.0.vapi:
* vapi/pango.vapi:
* vapi/pangocairo.vapi:
* vapi/poppler-glib.vapi:
* vapi/vte.vapi:
* vapi/webkit-1.0.vapi:

Regenerated

svn path=/trunk/; revision=1473

16 years agoFix SAX parser bindings, patch by Travis Watkins
Juerg Billeter [Wed, 28 May 2008 20:41:47 +0000 (20:41 +0000)]
Fix SAX parser bindings, patch by Travis Watkins

2008-05-28  Juerg Billeter  <j@bitron.ch>

* vapi/libxml-2.0.vapi:

Fix SAX parser bindings, patch by Travis Watkins

svn path=/trunk/; revision=1472

16 years agoAllow short-hand form to initialize arrays, fixes bug 515407
Juerg Billeter [Wed, 28 May 2008 20:20:04 +0000 (20:20 +0000)]
Allow short-hand form to initialize arrays, fixes bug 515407

2008-05-28  Juerg Billeter  <j@bitron.ch>

* vala/valaparser.vala:

Allow short-hand form to initialize arrays, fixes bug 515407

svn path=/trunk/; revision=1471

16 years agoDon't generate default creation method for abstract classes, patch by
Juerg Billeter [Wed, 28 May 2008 20:07:46 +0000 (20:07 +0000)]
Don't generate default creation method for abstract classes, patch by

2008-05-28  Juerg Billeter  <j@bitron.ch>

* vala/valaparser.vala:

Don't generate default creation method for abstract classes,
patch by Marc-André Lureau, fixes bug 531190

svn path=/trunk/; revision=1470

16 years agoReport error when using invalid modifiers for methods and fields, based on
Juerg Billeter [Wed, 28 May 2008 19:47:10 +0000 (19:47 +0000)]
Report error when using invalid modifiers for methods and fields, based on

2008-05-28  Juerg Billeter  <j@bitron.ch>

* vala/valanamespace.vala:
* vala/valaparser.vala:

Report error when using invalid modifiers for methods and fields,
based on patch by Jared Moore, fixes bug 534018

svn path=/trunk/; revision=1469

16 years agoEnsure to not generate empty C structs, patch by Jared Moore, fixes bug
Juerg Billeter [Wed, 28 May 2008 19:35:06 +0000 (19:35 +0000)]
Ensure to not generate empty C structs, patch by Jared Moore, fixes bug

2008-05-28  Juerg Billeter  <j@bitron.ch>

* gobject/valaccodeclassbinding.vala:

Ensure to not generate empty C structs,
patch by Jared Moore, fixes bug 533977

svn path=/trunk/; revision=1468

16 years agoFix crash when using concatenated strings as constant or field
Juerg Billeter [Wed, 28 May 2008 19:23:57 +0000 (19:23 +0000)]
Fix crash when using concatenated strings as constant or field

2008-05-28  Juerg Billeter  <j@bitron.ch>

* vala/valaconstant.vala:
* vala/valafield.vala:

Fix crash when using concatenated strings as constant or field
initializer, patch by Jared Moore, fixes bug 533723

svn path=/trunk/; revision=1467

16 years agoMove memory management into CCodeGenerator.transform_expression as
Juerg Billeter [Wed, 28 May 2008 19:01:45 +0000 (19:01 +0000)]
Move memory management into CCodeGenerator.transform_expression as

2008-05-28  Juerg Billeter  <j@bitron.ch>

* vala/Makefile.am:
* vala/valaaddressofexpression.vala:
* vala/valaarraycreationexpression.vala:
* vala/valaassignment.vala:
* vala/valabaseaccess.vala:
* vala/valabinaryexpression.vala:
* vala/valabooleanliteral.vala:
* vala/valacastexpression.vala:
* vala/valacharacterliteral.vala:
* vala/valacodevisitor.vala:
* vala/valaconditionalexpression.vala:
* vala/valadatatype.vala:
* vala/valaelementaccess.vala:
* vala/valaexpression.vala:
* vala/valaintegerliteral.vala:
* vala/valaintegertype.vala:
* vala/valainvocationexpression.vala:
* vala/valalambdaexpression.vala:
* vala/valamemberaccess.vala:
* vala/valanullchecker.vala:
* vala/valanullliteral.vala:
* vala/valanulltype.vala:
* vala/valaobjectcreationexpression.vala:
* vala/valaparenthesizedexpression.vala:
* vala/valapointerindirection.vala:
* vala/valapostfixexpression.vala:
* vala/valarealliteral.vala:
* vala/valareferencetransferexpression.vala:
* vala/valasemanticanalyzer.vala:
* vala/valasignal.vala:
* vala/valasizeofexpression.vala:
* vala/valastringliteral.vala:
* vala/valatypecheck.vala:
* vala/valatypeofexpression.vala:
* vala/valaunaryexpression.vala:
* vala/valaunresolvedtype.vala:
* vala/valavaluetype.vala:
* gobject/valaccodeassignmentbinding.vala:
* gobject/valaccodeelementaccessbinding.vala:
* gobject/valaccodegenerator.vala:
* gobject/valaccodeinvocationexpressionbinding.vala:
* gobject/valaccodememberaccessbinding.vala:
* gobject/valaccodemethodbinding.vala:
* compiler/valacompiler.vala:

Move memory management into CCodeGenerator.transform_expression
as preparation to properly support nullable structs, fixes memory
leak in internal substring method, fixes bug 527775

svn path=/trunk/; revision=1466

16 years agoImprove handling of dynamic signal parameters
Juerg Billeter [Wed, 28 May 2008 17:41:50 +0000 (17:41 +0000)]
Improve handling of dynamic signal parameters

2008-05-28  Juerg Billeter  <j@bitron.ch>

* vala/valasemanticanalyzer.vala:
* vala/valasignal.vala:
* gobject/valaccodeassignmentbinding.vala:
* gobject/valaccodedynamicsignalbinding.vala:

Improve handling of dynamic signal parameters

svn path=/trunk/; revision=1465

16 years agoAdd dynamic symbols to scope instead of code context
Juerg Billeter [Wed, 28 May 2008 17:05:40 +0000 (17:05 +0000)]
Add dynamic symbols to scope instead of code context

2008-05-28  Juerg Billeter  <j@bitron.ch>

* vala/valacodecontext.vala:
* vala/valascope.vala:
* vala/valasemanticanalyzer.vala:

Add dynamic symbols to scope instead of code context

svn path=/trunk/; revision=1464

16 years agoReport error when declaring a compact class implementing an interface,
Juerg Billeter [Wed, 28 May 2008 16:25:28 +0000 (16:25 +0000)]
Report error when declaring a compact class implementing an interface,

2008-05-28  Juerg Billeter  <j@bitron.ch>

* vala/valasemanticanalyzer.vala:

Report error when declaring a compact class implementing an
interface, patch by Phil Housley

svn path=/trunk/; revision=1463

16 years agofix GTypeModule binding
Juerg Billeter [Wed, 28 May 2008 16:14:12 +0000 (16:14 +0000)]
fix GTypeModule binding

2008-05-28  Juerg Billeter  <j@bitron.ch>

* vapi/glib-2.0.vapi: fix GTypeModule binding

svn path=/trunk/; revision=1462

16 years agoRename Expression.expected_type to Expression.target_type
Juerg Billeter [Wed, 28 May 2008 16:11:59 +0000 (16:11 +0000)]
Rename Expression.expected_type to Expression.target_type

2008-05-28  Juerg Billeter  <j@bitron.ch>

* vala/valaexpression.vala:
* vala/valasemanticanalyzer.vala:
* gobject/valaccodegenerator.vala:

Rename Expression.expected_type to Expression.target_type

svn path=/trunk/; revision=1461

16 years agoCompute Method.base_method and Property.base_property when needed so that
Juerg Billeter [Wed, 28 May 2008 16:07:50 +0000 (16:07 +0000)]
Compute Method.base_method and Property.base_property when needed so that

2008-05-28  Juerg Billeter  <j@bitron.ch>

* vala/valainterfacewriter.vala:
* vala/valamethod.vala:
* vala/valaproperty.vala:
* vala/valasemanticanalyzer.vala:
* gobject/valagidlwriter.vala:

Compute Method.base_method and Property.base_property when needed
so that we can already use them in the semantic analyzer

svn path=/trunk/; revision=1460

16 years agoUse parentheses to ensure that the full expression is cast
Juerg Billeter [Wed, 28 May 2008 11:32:31 +0000 (11:32 +0000)]
Use parentheses to ensure that the full expression is cast

2008-05-28  Juerg Billeter  <j@bitron.ch>

* ccode/valaccodecastexpression.vala:

Use parentheses to ensure that the full expression is cast

svn path=/trunk/; revision=1459

16 years agoFix temporary variable handling for throw statements
Juerg Billeter [Tue, 27 May 2008 21:50:15 +0000 (21:50 +0000)]
Fix temporary variable handling for throw statements

2008-05-27  Juerg Billeter  <j@bitron.ch>

* vala/valasemanticanalyzer.vala:
* vala/valathrowstatement.vala:
* gobject/valaccodegenerator.vala:

Fix temporary variable handling for throw statements

svn path=/trunk/; revision=1458