]> git.ipfire.org Git - thirdparty/vala.git/log
thirdparty/vala.git
6 years agogirparser: Create correct output in get_default_lower_case_suffix()
Rico Tzschichholz [Wed, 27 Mar 2019 23:02:59 +0000 (00:02 +0100)] 
girparser: Create correct output in get_default_lower_case_suffix()

It must match the output of CCodeAttribute.get_default_lower_case_suffix()

Add metadata support to set lower_case_csuffix

See https://gitlab.gnome.org/GNOME/vala/issues/778

6 years agotests: Add "struct (un)boxing" variant test
Rico Tzschichholz [Sun, 24 Mar 2019 17:34:29 +0000 (18:34 +0100)] 
tests: Add "struct (un)boxing" variant test

6 years agocodegen: Move implicit GValue cast for comparison to BinaryExpression
Rico Tzschichholz [Mon, 25 Mar 2019 11:46:15 +0000 (12:46 +0100)] 
codegen: Move implicit GValue cast for comparison to BinaryExpression

Handle "==" and "!=" only as it was done before.

This generates correct c-code for boxed simple-types and will perform
value-based comparisons.

See https://bugzilla.gnome.org/show_bug.cgi?id=585063

6 years agocodegen: Resolve generics in sizeof-expression of parameter initializer
Rico Tzschichholz [Mon, 11 Mar 2019 09:31:10 +0000 (10:31 +0100)] 
codegen: Resolve generics in sizeof-expression of parameter initializer

6 years agotests: Add more invalid "assignment" tests to increase coverage
Corentin Noël [Fri, 22 Mar 2019 08:09:21 +0000 (09:09 +0100)] 
tests: Add more invalid "assignment" tests to increase coverage

6 years agotests: Add a field starting with a digit test
Corentin Noël [Thu, 21 Mar 2019 21:19:28 +0000 (22:19 +0100)] 
tests: Add a field starting with a digit test

6 years agotests: Add some invalid "array slice" tests to increase coverage
Rico Tzschichholz [Wed, 20 Mar 2019 07:27:47 +0000 (08:27 +0100)] 
tests: Add some invalid "array slice" tests to increase coverage

6 years agoglib-2.0: Don't annotate dedicated GLib.assert_*() functions with [Assert]
Rico Tzschichholz [Tue, 19 Mar 2019 08:53:45 +0000 (09:53 +0100)] 
glib-2.0: Don't annotate dedicated GLib.assert_*() functions with [Assert]

Fixes https://gitlab.gnome.org/GNOME/vala/issues/769

6 years agovala: Variadic parameters are not supported for async methods
Rico Tzschichholz [Tue, 19 Mar 2019 07:09:35 +0000 (08:09 +0100)] 
vala: Variadic parameters are not supported for async methods

6 years agolibgvc: Some additions and ownership/return-type fixes
Rico Tzschichholz [Thu, 15 Nov 2018 10:18:04 +0000 (11:18 +0100)] 
libgvc: Some additions and ownership/return-type fixes

6 years agolibvaladoc: Don't try to create a Content.ListItem when there is none
Rico Tzschichholz [Fri, 15 Mar 2019 18:18:25 +0000 (19:18 +0100)] 
libvaladoc: Don't try to create a Content.ListItem when there is none

6 years agoparser: Implicit creation method of abstract classes must be protected
Rico Tzschichholz [Tue, 12 Mar 2019 09:18:03 +0000 (10:18 +0100)] 
parser: Implicit creation method of abstract classes must be protected

6 years agovala: Allow assignment of 0U to enum types
Rico Tzschichholz [Sun, 10 Mar 2019 17:14:09 +0000 (18:14 +0100)] 
vala: Allow assignment of 0U to enum types

Don't restrict unsigned 0 literal to flags-enums though.

6 years agoccodegen: Use unsigned default value for flags-enum
Rico Tzschichholz [Sun, 10 Mar 2019 17:14:09 +0000 (18:14 +0100)] 
ccodegen: Use unsigned default value for flags-enum

6 years agotests: Add "method ccode return-type" test to increase coverage
Rico Tzschichholz [Sun, 10 Mar 2019 17:14:09 +0000 (18:14 +0100)] 
tests: Add "method ccode return-type" test to increase coverage

https://bugzilla.gnome.org/show_bug.cgi?id=699956

6 years agotests: Extend "struct with delegate" test to increase coverage
Rico Tzschichholz [Sun, 10 Mar 2019 17:14:09 +0000 (18:14 +0100)] 
tests: Extend "struct with delegate" test to increase coverage

6 years agogsignal: Move disconnect error from signal-module to semantic-analyzer pass
Rico Tzschichholz [Sun, 10 Mar 2019 17:14:09 +0000 (18:14 +0100)] 
gsignal: Move disconnect error from signal-module to semantic-analyzer pass

Add corresponding invalid test to increase coverage

6 years agogsignal: Use guint to represent flags-enum in custom GMarshalFunc
Rico Tzschichholz [Sun, 10 Mar 2019 17:14:09 +0000 (18:14 +0100)] 
gsignal: Use guint to represent flags-enum in custom GMarshalFunc

6 years agotests: Extend "detailed signal" test to increase coverage
Rico Tzschichholz [Sun, 10 Mar 2019 17:14:09 +0000 (18:14 +0100)] 
tests: Extend "detailed signal" test to increase coverage

6 years agoparser: Don't include member-initializer in src-ref of object-creation-expr
Rico Tzschichholz [Fri, 8 Mar 2019 20:57:24 +0000 (21:57 +0100)] 
parser: Don't include member-initializer in src-ref of object-creation-expr

6 years agoparser: Don't include initializer in src-ref of array-creation-expression
Rico Tzschichholz [Fri, 8 Mar 2019 18:25:03 +0000 (19:25 +0100)] 
parser: Don't include initializer in src-ref of array-creation-expression

6 years agoparser: Extend source_reference of initializer-list to cover "{ ... }"
Rico Tzschichholz [Fri, 8 Mar 2019 17:46:02 +0000 (18:46 +0100)] 
parser: Extend source_reference of initializer-list to cover "{ ... }"

6 years agoparser: Exclude trailing semicolon from source_reference of statements
Rico Tzschichholz [Fri, 8 Mar 2019 17:46:02 +0000 (18:46 +0100)] 
parser: Exclude trailing semicolon from source_reference of statements

6 years agoparser: Don't include assigned value in source_reference of constants
Rico Tzschichholz [Fri, 8 Mar 2019 17:46:02 +0000 (18:46 +0100)] 
parser: Don't include assigned value in source_reference of constants

This is how it is done for fields already.

6 years agoparser: Restrict source_reference for catch/lock expression to its header
Rico Tzschichholz [Fri, 8 Mar 2019 17:46:02 +0000 (18:46 +0100)] 
parser: Restrict source_reference for catch/lock expression to its header

6 years agotests: Add regression test for generic-type interference of static function
Rico Tzschichholz [Wed, 6 Mar 2019 16:25:05 +0000 (17:25 +0100)] 
tests: Add regression test for generic-type interference of static function

6 years agotests: Extent "post-condition" method test to increase coverage
Rico Tzschichholz [Fri, 1 Mar 2019 13:16:14 +0000 (14:16 +0100)] 
tests: Extent "post-condition" method test to increase coverage

6 years agoMark defined constructors of abstract classes as protected
Rico Tzschichholz [Tue, 12 Mar 2019 09:06:11 +0000 (10:06 +0100)] 
Mark defined constructors of abstract classes as protected

6 years agoRelease 0.42.6 0.42.6
Rico Tzschichholz [Sun, 3 Mar 2019 19:08:11 +0000 (20:08 +0100)] 
Release 0.42.6

6 years agogirwriter: Always use get_gir_name() for TypeSymbols
Rico Tzschichholz [Wed, 27 Feb 2019 14:45:13 +0000 (15:45 +0100)] 
girwriter: Always use get_gir_name() for TypeSymbols

6 years agopoppler-glib: Update to 0.74
Rico Tzschichholz [Tue, 26 Feb 2019 21:45:02 +0000 (22:45 +0100)] 
poppler-glib: Update to 0.74

6 years agotests: Extent "girwriter" test to increase coverage
Rico Tzschichholz [Tue, 26 Feb 2019 13:01:53 +0000 (14:01 +0100)] 
tests: Extent "girwriter" test to increase coverage

6 years agogirwriter: Support transfer-ownership="container" for arrays
Rico Tzschichholz [Tue, 26 Feb 2019 13:10:35 +0000 (14:10 +0100)] 
girwriter: Support transfer-ownership="container" for arrays

6 years agogobject-2.0: Add SignalHandler.disconnect_by_data()
Rico Tzschichholz [Mon, 25 Feb 2019 08:58:11 +0000 (09:58 +0100)] 
gobject-2.0: Add SignalHandler.disconnect_by_data()

6 years agocodegen: Respect array_length_cname attribute for global fields
Rico Tzschichholz [Sun, 24 Feb 2019 20:44:48 +0000 (21:44 +0100)] 
codegen: Respect array_length_cname attribute for global fields

6 years agotests: Add "custom types" struct tests to increase coverage
Rico Tzschichholz [Sat, 23 Feb 2019 19:19:31 +0000 (20:19 +0100)] 
tests: Add "custom types" struct tests to increase coverage

6 years agotests: Add "constructor chain up" generics test to increase coverage
Rico Tzschichholz [Sat, 23 Feb 2019 19:19:31 +0000 (20:19 +0100)] 
tests: Add "constructor chain up" generics test to increase coverage

6 years agotests: Add "null-terminated array" delegate test to increase coverage
Rico Tzschichholz [Sat, 23 Feb 2019 19:19:31 +0000 (20:19 +0100)] 
tests: Add "null-terminated array" delegate test to increase coverage

6 years agotests: Add "struct in array" test to increase coverage
Rico Tzschichholz [Sat, 23 Feb 2019 19:19:31 +0000 (20:19 +0100)] 
tests: Add "struct in array" test to increase coverage

6 years agotests: Add "to_string" enum test to increase coverage
Rico Tzschichholz [Sat, 23 Feb 2019 19:19:31 +0000 (20:19 +0100)] 
tests: Add "to_string" enum test to increase coverage

6 years agotests: Add regression test for modulo operation on double and float
Rico Tzschichholz [Thu, 21 Feb 2019 07:04:03 +0000 (08:04 +0100)] 
tests: Add regression test for modulo operation on double and float

https://bugzilla.gnome.org/show_bug.cgi?id=610660

6 years agogirparser: Correctly set array_length_type for delegates returning an array
Rico Tzschichholz [Wed, 20 Feb 2019 22:37:46 +0000 (23:37 +0100)] 
girparser: Correctly set array_length_type for delegates returning an array

Fixes https://gitlab.gnome.org/GNOME/vala/issues/754

6 years agoatk-1.0: Adjust for upstream revert of Implementor using G_DEFINE_INTERFACE
Rico Tzschichholz [Wed, 20 Feb 2019 15:39:37 +0000 (16:39 +0100)] 
atk-1.0: Adjust for upstream revert of Implementor using G_DEFINE_INTERFACE

See https://gitlab.gnome.org/GNOME/atk/commit/96d13ae47f6f77445483ee8a0d7d6569a95f35bf

6 years agolibvaladoc: Properly support the output of async constructors
Rico Tzschichholz [Thu, 14 Feb 2019 16:35:04 +0000 (17:35 +0100)] 
libvaladoc: Properly support the output of async constructors

Fixes https://gitlab.gnome.org/GNOME/vala/issues/753

6 years agoclutter-1.0: Drop deprecated from Actor.pick()
Rico Tzschichholz [Thu, 14 Feb 2019 11:40:36 +0000 (12:40 +0100)] 
clutter-1.0: Drop deprecated from Actor.pick()

The signal "pick" was deprecated with 1.12, but not the virtual method.

Fixes https://gitlab.gnome.org/GNOME/vala/issues/625

6 years agovaladoc: Report warning if resources for doclet could not be copied
Rico Tzschichholz [Tue, 12 Feb 2019 16:47:49 +0000 (17:47 +0100)] 
valadoc: Report warning if resources for doclet could not be copied

6 years agovapi: Drop gdk-x11-3.0 from GIDL_BINDINGS
Rico Tzschichholz [Sun, 10 Feb 2019 18:58:46 +0000 (19:58 +0100)] 
vapi: Drop gdk-x11-3.0 from GIDL_BINDINGS

6 years agogtk+-unix-print-*.0: Fix PrintJob.get_page_ranges(), Printer.get_hard_margins()
Rico Tzschichholz [Sun, 10 Feb 2019 12:12:43 +0000 (13:12 +0100)] 
gtk+-unix-print-*.0: Fix PrintJob.get_page_ranges(), Printer.get_hard_margins()

6 years agocodegen: Pass lambda expression of variable initializer to signal connect
Rico Tzschichholz [Thu, 31 Jan 2019 19:09:07 +0000 (20:09 +0100)] 
codegen: Pass lambda expression of variable initializer to signal connect

6 years agogdk-3.0: Update to 3.24.4+a0129f55
Rico Tzschichholz [Wed, 30 Jan 2019 15:47:49 +0000 (16:47 +0100)] 
gdk-3.0: Update to 3.24.4+a0129f55

6 years agog-i: Fix return value on error in start_discriminator()
Rico Tzschichholz [Tue, 29 Jan 2019 17:22:39 +0000 (18:22 +0100)] 
g-i: Fix return value on error in start_discriminator()

6 years agolibvaladoc: Don't change the size of an array in-parameter
Rico Tzschichholz [Tue, 29 Jan 2019 16:05:30 +0000 (17:05 +0100)] 
libvaladoc: Don't change the size of an array in-parameter

Avoid a possible memory issue while the resize of an array reference is
possible, the new length can't be propagated back to the caller.

Issue an warning for unexpected string lengths.

6 years agovala: Parser doesn't ensure "protected" to be applied on TypeSymbol members
Rico Tzschichholz [Sat, 26 Jan 2019 20:23:22 +0000 (21:23 +0100)] 
vala: Parser doesn't ensure "protected" to be applied on TypeSymbol members

Probably ObjectTypeSymbol should be enforced.

6 years agovala: Check inferred variable_type of LocalVariables
Rico Tzschichholz [Fri, 25 Jan 2019 19:10:48 +0000 (20:10 +0100)] 
vala: Check inferred variable_type of LocalVariables

6 years agocodegen: Properly handle and catch inner-error of finally-block
Rico Tzschichholz [Wed, 23 Jan 2019 21:39:42 +0000 (22:39 +0100)] 
codegen: Properly handle and catch inner-error of finally-block

If all inner-errors are caught there is no jump-out of the current finally-
block therefore the control-flow analyzer is happy. To make this work the
surrounding inner-error must not be used or changed here.

Fixes https://gitlab.gnome.org/GNOME/vala/issues/742

6 years agocodegen: Replace some unfortunate asserts with internal error reports
Rico Tzschichholz [Wed, 23 Jan 2019 20:36:12 +0000 (21:36 +0100)] 
codegen: Replace some unfortunate asserts with internal error reports

6 years agoRelease 0.42.5 0.42.5
Rico Tzschichholz [Tue, 22 Jan 2019 09:41:43 +0000 (10:41 +0100)] 
Release 0.42.5

6 years agocodegen: Add default_value for CType to initialize variables if needed
Rico Tzschichholz [Sun, 30 Dec 2018 17:19:44 +0000 (18:19 +0100)] 
codegen: Add default_value for CType to initialize variables if needed

Fixes https://gitlab.gnome.org/GNOME/vala/issues/724

6 years agolibvaladoc/girimporter: Skip "source-position" elements
Rico Tzschichholz [Mon, 21 Jan 2019 14:29:41 +0000 (15:29 +0100)] 
libvaladoc/girimporter: Skip "source-position" elements

See https://gitlab.gnome.org/GNOME/gobject-introspection/merge_requests/75

6 years agojavascriptcoregtk-4.0: Fix GLib.Callback parameters which can't hold target
Rico Tzschichholz [Mon, 14 Jan 2019 20:05:50 +0000 (21:05 +0100)] 
javascriptcoregtk-4.0: Fix GLib.Callback parameters which can't hold target

6 years agocodegen: Don't apply address-of operator on literals when casting to array
Rico Tzschichholz [Sun, 20 Jan 2019 18:23:43 +0000 (19:23 +0100)] 
codegen: Don't apply address-of operator on literals when casting to array

Regression of 5f316333d6a803e4240b5cccc95a6abd2294137b

https://bugzilla.gnome.org/show_bug.cgi?id=777194

6 years agolibvaladoc: Build backing Vala.SourceFile for GIRs processed by importer
Corentin Noël [Sat, 19 Jan 2019 14:05:48 +0000 (15:05 +0100)] 
libvaladoc: Build backing Vala.SourceFile for GIRs processed by importer

This fixes criticals when reporting errors and warnings

Fixes https://gitlab.gnome.org/GNOME/vala/issues/738

6 years agogirparser: Async methods don't allow out-parameters before in-parameters
Rico Tzschichholz [Sun, 21 Oct 2018 08:34:28 +0000 (10:34 +0200)] 
girparser: Async methods don't allow out-parameters before in-parameters

In vala out-parameters are always handled in the *_finish implementation
and therefore are asynchronous. Report a warning for GIR sources where
convert them to pointer-types to create usuable signatures for bindings.

See https://gitlab.gnome.org/GNOME/vala/issues/636

6 years agoclutter-1.0: Fix BindingPool.override_action()
Rico Tzschichholz [Wed, 16 Jan 2019 20:12:23 +0000 (21:12 +0100)] 
clutter-1.0: Fix BindingPool.override_action()

6 years agogtk+-4.0: Update to 3.94.0+9b15c690
Rico Tzschichholz [Wed, 16 Jan 2019 20:10:46 +0000 (21:10 +0100)] 
gtk+-4.0: Update to 3.94.0+9b15c690

6 years agogdk-3.0,gtk+-3.0: Update to 3.24.3+9c8f1478
Rico Tzschichholz [Wed, 16 Jan 2019 20:09:56 +0000 (21:09 +0100)] 
gdk-3.0,gtk+-3.0: Update to 3.24.3+9c8f1478

6 years agogstreamer: Update from 1.15+ git master
Rico Tzschichholz [Wed, 16 Jan 2019 20:08:59 +0000 (21:08 +0100)] 
gstreamer: Update from 1.15+ git master

6 years agovaladoc: Specify that the "--driver" option is deprecated
Corentin Noël [Fri, 18 Jan 2019 11:46:52 +0000 (12:46 +0100)] 
valadoc: Specify that the "--driver" option is deprecated

Fixes https://gitlab.gnome.org/GNOME/vala/issues/736

6 years agocompiler: Report deprecated command-line option "--thread"
Rico Tzschichholz [Fri, 18 Jan 2019 13:19:54 +0000 (14:19 +0100)] 
compiler: Report deprecated command-line option "--thread"

6 years agolibsoup-2.4: Fix Message.add_*_handler() by unhiding user_data parameter
Rico Tzschichholz [Sun, 13 Jan 2019 12:36:56 +0000 (13:36 +0100)] 
libsoup-2.4: Fix Message.add_*_handler() by unhiding user_data parameter

See https://gitlab.gnome.org/GNOME/vala/issues/731

6 years agocodegen: Emit struct declaration typedef before resolving its fields
Rico Tzschichholz [Thu, 10 Jan 2019 19:02:39 +0000 (20:02 +0100)] 
codegen: Emit struct declaration typedef before resolving its fields

This a regression when compiling a circular dependency of delegates with
structs.

Regression of 7adb3a45bb8d663c0cfca55af26b7e6f7292b14a

See https://gitlab.gnome.org/GNOME/vala/issues/318

6 years agocodegen: Use a parameter-map for creation of delegate declaration
Rico Tzschichholz [Thu, 10 Jan 2019 08:21:54 +0000 (09:21 +0100)] 
codegen: Use a parameter-map for creation of delegate declaration

This is required to take instance_pos into account and will allow the error
parameter to be put before the target (aka instance) in delegates.

See https://gitlab.gnome.org/GNOME/vala/issues/728

6 years agogobject-2.0: Minor syncing from GIR
Rico Tzschichholz [Sun, 6 Jan 2019 08:47:07 +0000 (09:47 +0100)] 
gobject-2.0: Minor syncing from GIR

6 years agogdbus: Cast instance and result of g_async_initable_new_finish() call
Rico Tzschichholz [Sat, 5 Jan 2019 23:49:14 +0000 (00:49 +0100)] 
gdbus: Cast instance and result of g_async_initable_new_finish() call

This will silence those incompatible-pointer-types warnings

6 years agosqlite3: Correct return C type of Statement.column_text & Value.to_text
Jiří Janoušek [Sat, 5 Jan 2019 16:46:42 +0000 (17:46 +0100)] 
sqlite3: Correct return C type of Statement.column_text & Value.to_text

6 years agogdbus: Properly set annotations field of GDBus*Info struct to NULL
Rico Tzschichholz [Sat, 5 Jan 2019 20:41:20 +0000 (21:41 +0100)] 
gdbus: Properly set annotations field of GDBus*Info struct to NULL

Found by -Werror=missing-field-initializers

6 years agotests: Extend "DBus errors" tests to increase coverage
Rico Tzschichholz [Sat, 5 Jan 2019 21:01:06 +0000 (22:01 +0100)] 
tests: Extend "DBus errors" tests to increase coverage

6 years agodocs: Add a basic CONTRIBUTING.md file that links to the relevant Wiki page
Alistair Thomas [Sat, 5 Jan 2019 20:41:00 +0000 (20:41 +0000)] 
docs: Add a basic CONTRIBUTING.md file that links to the relevant Wiki page

6 years agogtk+-4.0: Update to 3.94.0+4404afc9
Rico Tzschichholz [Sat, 5 Jan 2019 18:36:08 +0000 (19:36 +0100)] 
gtk+-4.0: Update to 3.94.0+4404afc9

6 years agogtk+-3.0: Update to 3.24.2+a8e07254
Rico Tzschichholz [Sat, 5 Jan 2019 18:35:40 +0000 (19:35 +0100)] 
gtk+-3.0: Update to 3.24.2+a8e07254

6 years agogstreamer: Update from 1.15+ git master
Rico Tzschichholz [Sat, 5 Jan 2019 18:33:49 +0000 (19:33 +0100)] 
gstreamer: Update from 1.15+ git master

6 years agocodegen: Don't check boolean values for (in)equality in GTask API
Rico Tzschichholz [Sat, 5 Jan 2019 17:11:30 +0000 (18:11 +0100)] 
codegen: Don't check boolean values for (in)equality in GTask API

This resolves any value but 0 to true as it is suppose to be.

  /* invalid */
  if (condition == TRUE)
    do_foo ();

  /* valid */
  if (another_condition)
    do_bar ();

See https://gitlab.gnome.org/GNOME/glib/issues/1636

6 years agotests: Fix try_parse() tests to not compare to already free'd memory
Rico Tzschichholz [Fri, 4 Jan 2019 19:02:18 +0000 (20:02 +0100)] 
tests: Fix try_parse() tests to not compare to already free'd memory

Found with valgrind

6 years agocodegen: Cast instance parameter for property access in object-initializer
Rico Tzschichholz [Fri, 4 Jan 2019 18:18:11 +0000 (19:18 +0100)] 
codegen: Cast instance parameter for property access in object-initializer

This will silence those incompatible-pointer-types warnings

6 years agogio-2.0: Fix File.replace_contents_bytes_async()
Jiří Janoušek [Thu, 3 Jan 2019 13:43:26 +0000 (14:43 +0100)] 
gio-2.0: Fix File.replace_contents_bytes_async()

Closes https://gitlab.gnome.org/GNOME/vala/merge_requests/37

6 years agogobject-2.0: Use correct array-length-type for returned arrays
Rico Tzschichholz [Wed, 2 Jan 2019 12:08:56 +0000 (13:08 +0100)] 
gobject-2.0: Use correct array-length-type for returned arrays

6 years agoglib-2.0: Use correct array-length-type for returned arrays
Rico Tzschichholz [Wed, 2 Jan 2019 08:33:26 +0000 (09:33 +0100)] 
glib-2.0: Use correct array-length-type for returned arrays

As usual length is returned by an implicit out-parameter where the
provided target variable must have a matching data type.

Discovered by -fstack-protector-all

See https://gitlab.gnome.org/GNOME/gitg/issues/171

6 years agovala: Report invalid instance member access to property
Rico Tzschichholz [Mon, 31 Dec 2018 13:48:08 +0000 (14:48 +0100)] 
vala: Report invalid instance member access to property

See https://gitlab.gnome.org/GNOME/vala/issues/605

6 years agobuild: Don't leak libvalaccode symbols to libvaladoc
Rico Tzschichholz [Fri, 21 Dec 2018 07:28:31 +0000 (08:28 +0100)] 
build: Don't leak libvalaccode symbols to libvaladoc

6 years agocodegen: Use temp-vars for ellipsis out-arguments to fix memory management
Rico Tzschichholz [Sun, 23 Dec 2018 22:08:31 +0000 (23:08 +0100)] 
codegen: Use temp-vars for ellipsis out-arguments to fix memory management

Fixes https://gitlab.gnome.org/GNOME/vala/issues/722

6 years agocodegen: Use temp-var for MethodCall with out/ref arguments
Rico Tzschichholz [Wed, 26 Dec 2018 19:34:39 +0000 (20:34 +0100)] 
codegen: Use temp-var for MethodCall with out/ref arguments

Checking arguments of a MethodCall expression is required for varidic
methods where checking parameters isn't sufficient. Doing this makes
looking for out/ref parameters superfluous.

Fixes https://gitlab.gnome.org/GNOME/vala/issues/722

6 years agoRelease 0.42.4 0.42.4
Rico Tzschichholz [Thu, 6 Dec 2018 10:24:36 +0000 (11:24 +0100)] 
Release 0.42.4

6 years agogtk+-4.0: Update to 3.94.0+a99bd2a4
Rico Tzschichholz [Tue, 18 Dec 2018 11:36:11 +0000 (12:36 +0100)] 
gtk+-4.0: Update to 3.94.0+a99bd2a4

6 years agogtk+-3.0: Update to 3.24.2+eb821cb8
Rico Tzschichholz [Tue, 18 Dec 2018 10:06:52 +0000 (11:06 +0100)] 
gtk+-3.0: Update to 3.24.2+eb821cb8

6 years agogstreamer: Update from 1.15+ git master
Rico Tzschichholz [Tue, 18 Dec 2018 10:06:25 +0000 (11:06 +0100)] 
gstreamer: Update from 1.15+ git master

6 years agopoppler-glib: Update to 0.71
Rico Tzschichholz [Tue, 18 Dec 2018 10:02:14 +0000 (11:02 +0100)] 
poppler-glib: Update to 0.71

6 years agogobject-introspection-1.0: Pick up version attribute fixes
Rico Tzschichholz [Tue, 11 Dec 2018 13:08:20 +0000 (14:08 +0100)] 
gobject-introspection-1.0: Pick up version attribute fixes

6 years agovapi: Regenerate GIR-based bindings to fix non-standard async methods
Rico Tzschichholz [Tue, 11 Dec 2018 08:51:51 +0000 (09:51 +0100)] 
vapi: Regenerate GIR-based bindings to fix non-standard async methods

See https://gitlab.gnome.org/GNOME/vala/issues/709

6 years agocodegen: Handle non-default AsyncResult parameter position
Rico Tzschichholz [Mon, 10 Dec 2018 15:07:46 +0000 (16:07 +0100)] 
codegen: Handle non-default AsyncResult parameter position

Unfortunately gdbus-codegen puts the AsyncResult parameter after possible
out-parameters therefore there is an "async_result_pos" attribute required
to handle this correctly.

Vala supposely follows the common practice to put the AsyncResult before
out-parameters by default.

Fixes https://gitlab.gnome.org/GNOME/vala/issues/709

6 years agocodegen: Always emit constants with initializer-list
Rico Tzschichholz [Sat, 8 Dec 2018 09:41:50 +0000 (10:41 +0100)] 
codegen: Always emit constants with initializer-list

generate_constant_declaration() handles both definition and declaration.

This is important when using --use-header where the actual definition
would never be written and we ended up with an "extern const ..." in the
header only.

Fixes https://gitlab.gnome.org/GNOME/vala/issues/81