]> git.ipfire.org Git - thirdparty/vala.git/log
thirdparty/vala.git
6 years agocodegen: Properly handle and catch inner-error of finally-block 2e5682fd195f5109862eabc18144032175799104 47/head
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 a617f41413dec4da1891bfd5a1d4553465370017
Rico Tzschichholz [Wed, 23 Jan 2019 20:36:12 +0000 (21:36 +0100)] 
codegen: Replace some unfortunate asserts with internal error reports

6 years agovala: Both arguments of NC_() must be constant for this call to be constant
Rico Tzschichholz [Wed, 23 Jan 2019 16:35:09 +0000 (17:35 +0100)] 
vala: Both arguments of NC_() must be constant for this call to be constant

6 years agoRelease 0.43.6 0.43.6
Rico Tzschichholz [Mon, 21 Jan 2019 18:45:09 +0000 (19:45 +0100)] 
Release 0.43.6

6 years agovala: Don't tweak closure on static lambdas
Rico Tzschichholz [Mon, 21 Jan 2019 16:31:07 +0000 (17:31 +0100)] 
vala: Don't tweak closure on static lambdas

Regression of 92ba4e178723b1aa6404da556c79b08abe5eaf05

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

6 years agogst-editing-services-1.0: Fix some construtors and (un)hide symbols 345f6251c6102854a2a55ae9885a8ec89fe9bfb8 46/head
Corentin Noël [Mon, 21 Jan 2019 13:19:56 +0000 (14:19 +0100)] 
gst-editing-services-1.0: Fix some construtors and (un)hide symbols

6 years agotests: Add asynchronous "catch-error-scope" regression test 1dd63caaa083c8d2f298a763d515badf8f34524c
Rico Tzschichholz [Mon, 21 Jan 2019 15:13:45 +0000 (16:13 +0100)] 
tests: Add asynchronous "catch-error-scope" regression test

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

6 years agoRevert "codegen: Use copies of error_variable of catch-clauses for nested usage"
Rico Tzschichholz [Mon, 21 Jan 2019 15:03:14 +0000 (16:03 +0100)] 
Revert "codegen: Use copies of error_variable of catch-clauses for nested usage"

This reverts commit 765c39c73c3096dd1de984db023763ec13448ef5.

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

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 agogenie: Support `protected` accessibility and allow explicit `public` 005acf76fcf5b466196b85bff29bdf66df9480fc
Michal Proszek [Sun, 20 Jan 2019 19:56:39 +0000 (19:56 +0000)] 
genie: Support `protected` accessibility and allow explicit `public`

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

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 2b86cba8c92226f3b0b6b6d504217952732a0d3a
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 agoRelease 0.43.5 0.43.5
Rico Tzschichholz [Sat, 19 Jan 2019 16:17:53 +0000 (17:17 +0100)] 
Release 0.43.5

6 years agovaladoc: Specify that the "--driver" option is deprecated f7525b7ca1d9933e2da3681b63a2f60f329c6e54 43/head
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" d8e810680f370fac7e9a5e80f8d94316707625c2
Rico Tzschichholz [Fri, 18 Jan 2019 13:19:54 +0000 (14:19 +0100)] 
compiler: Report deprecated command-line option "--thread"

6 years agoglib-2.0: Add Queue.clear_full() since 2.60 3f530cdf71d1a7709a1786eddf8fbe34ca963e64
Rico Tzschichholz [Thu, 17 Jan 2019 13:19:48 +0000 (14:19 +0100)] 
glib-2.0: Add Queue.clear_full() since 2.60

6 years agovapi: Update GIR-based bindings 3d35558906a373b09b83e0a5f7041ffe5de0e57b
Rico Tzschichholz [Wed, 16 Jan 2019 20:12:23 +0000 (21:12 +0100)] 
vapi: Update GIR-based bindings

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 agovala: Multiple lamdba arguments in method call should all use closure scope 92ba4e178723b1aa6404da556c79b08abe5eaf05
Rico Tzschichholz [Tue, 15 Jan 2019 09:44:12 +0000 (10:44 +0100)] 
vala: Multiple lamdba arguments in method call should all use closure scope

This does not enable proper support for delegates sharing a data argument,
but allows this special case.

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

6 years agocodegen: Use get_ccode_*name/get_parameter_cexpression() for Parameters
Rico Tzschichholz [Mon, 14 Jan 2019 13:14:20 +0000 (14:14 +0100)] 
codegen: Use get_ccode_*name/get_parameter_cexpression() for Parameters

6 years agocodegen: Remove CCodeBaseModule.get_result_cexpression()
Rico Tzschichholz [Tue, 15 Jan 2019 15:00:30 +0000 (16:00 +0100)] 
codegen: Remove CCodeBaseModule.get_result_cexpression()

6 years agocodegen: Simplify get_*_cexpression() and split out get_cexpression()
Rico Tzschichholz [Tue, 15 Jan 2019 14:29:01 +0000 (15:29 +0100)] 
codegen: Simplify get_*_cexpression() and split out get_cexpression()

6 years agocodegen: Check reserved_identifiers in CCodeAttribute.get_default_name()
Rico Tzschichholz [Tue, 15 Jan 2019 12:35:52 +0000 (13:35 +0100)] 
codegen: Check reserved_identifiers in CCodeAttribute.get_default_name()

This is a step for wider usage of get_ccode_name() on variables

6 years agocodegen: Only set "sentinel" CCode attribute for node if requested
Rico Tzschichholz [Mon, 14 Jan 2019 16:27:52 +0000 (17:27 +0100)] 
codegen: Only set "sentinel" CCode attribute for node if requested

This should restrict this being set only on Method nodes.

6 years agocodegen: Don't evaluate "pos" CCode attribute early
Rico Tzschichholz [Mon, 14 Jan 2019 16:20:55 +0000 (17:20 +0100)] 
codegen: Don't evaluate "pos" CCode attribute early

6 years agocodegen: Simplify some code around get_ccode_delegate_target() invocations
Rico Tzschichholz [Mon, 14 Jan 2019 14:30:36 +0000 (15:30 +0100)] 
codegen: Simplify some code around get_ccode_delegate_target() invocations

6 years agocodegen: Handle "delegate_target" as proper CCode attribute
Rico Tzschichholz [Mon, 14 Jan 2019 14:13:25 +0000 (15:13 +0100)] 
codegen: Handle "delegate_target" as proper CCode attribute

Check if the given variable actually denotes to a delegate type which
accepts a target parameter.

6 years agocodegen: Rely on get_ccode_delegate_target() for delegate variables only
Rico Tzschichholz [Mon, 14 Jan 2019 15:40:42 +0000 (16:40 +0100)] 
codegen: Rely on get_ccode_delegate_target() for delegate variables only

6 years agocodegen: Use get_ccode_delegate_target_name() for fields
Rico Tzschichholz [Wed, 6 Jun 2018 15:22:40 +0000 (17:22 +0200)] 
codegen: Use get_ccode_delegate_target_name() for fields

Replace get_delegate_target_destroy_notify_cname (get_ccode_name (...))

6 years agocodegen: Add "destroy_notify_cname" CCode attribute
Rico Tzschichholz [Wed, 6 Jun 2018 15:14:03 +0000 (17:14 +0200)] 
codegen: Add "destroy_notify_cname" CCode attribute

and the corresponding helper get_delegate_target_destroy_notify_cname()

6 years agocodegen: Use copies of error_variable of catch-clauses for nested usage 765c39c73c3096dd1de984db023763ec13448ef5
Rico Tzschichholz [Wed, 6 Jun 2018 21:22:41 +0000 (23:22 +0200)] 
codegen: Use copies of error_variable of catch-clauses for nested usage

Calling visit_local_variable() multiple times on the same instance of a
LocalVariable causes issues.

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: Don't add data parameter for "instance_init" of compact classes 28984f31f4e18aedb85d8bfa4f72552fccf83a1a
Rico Tzschichholz [Sun, 13 Jan 2019 09:08:30 +0000 (10:08 +0100)] 
codegen: Don't add data parameter for "instance_init" of compact classes

See b5260359255637d77ebc367d26c853ac6459f67d

6 years agovala: Allow direct access to the integer constants of an error-domain f48208b4cab9f5a7da469067c4cae096082c39ba
Rico Tzschichholz [Sat, 12 Jan 2019 14:20:34 +0000 (15:20 +0100)] 
vala: Allow direct access to the integer constants of an error-domain

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

6 years agocodegen: Include "stddef.h" in CCodeBaseModule.destroy_value() (POSIX) 0d4d498261b1662d9bfa9ba6e8a97b2236ff243e
Rico Tzschichholz [Fri, 11 Jan 2019 22:28:00 +0000 (23:28 +0100)] 
codegen: Include "stddef.h" in CCodeBaseModule.destroy_value() (POSIX)

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

6 years agocodegen: Set owner for ValaDestroyNotify (POSIX)
Rico Tzschichholz [Fri, 11 Jan 2019 22:05:44 +0000 (23:05 +0100)] 
codegen: Set owner for ValaDestroyNotify (POSIX)

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

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 agovapi: Regenerate GIR-based bindings to fix non-standard error position
Rico Tzschichholz [Thu, 10 Jan 2019 10:32:13 +0000 (11:32 +0100)] 
vapi: Regenerate GIR-based bindings to fix non-standard error position

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

6 years agogirparser: Recognize error parameter before delegate target parameter
Rico Tzschichholz [Thu, 10 Jan 2019 10:24:36 +0000 (11:24 +0100)] 
girparser: Recognize error parameter before delegate target parameter

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

6 years agocodegen: Add "error_pos" CCode attribute and use it as needed
Rico Tzschichholz [Thu, 10 Jan 2019 08:55:11 +0000 (09:55 +0100)] 
codegen: Add "error_pos" CCode attribute and use it as needed

This makes it possible to use non-standard error parameter positions
within the vala source.

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

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 agogdk-pixbuf-2.0: Make PixbufSaveFunc usable
Rico Tzschichholz [Wed, 9 Jan 2019 17:35:39 +0000 (18:35 +0100)] 
gdk-pixbuf-2.0: Make PixbufSaveFunc usable

This delegates does place its target at the end, where vala expects
the error parameter. Vala does not support that at this point.

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

6 years agoatspi-2: Drop superfluous Atspi-2.0-custom.vala
Rico Tzschichholz [Wed, 9 Jan 2019 15:37:51 +0000 (16:37 +0100)] 
atspi-2: Drop superfluous Atspi-2.0-custom.vala

6 years agoatk: Drop superfluous metadata
Rico Tzschichholz [Wed, 9 Jan 2019 15:28:59 +0000 (16:28 +0100)] 
atk: Drop superfluous metadata

6 years agoatk: Don't use a custom SignalEmissionHook while it is part of gobject-2.0
Rico Tzschichholz [Wed, 9 Jan 2019 15:18:20 +0000 (16:18 +0100)] 
atk: Don't use a custom SignalEmissionHook while it is part of gobject-2.0

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

out-parameters are always handled in the *_finish implementation and
therefore are asynchronous. Report an error for occurances in source
and a warning for GIR sources where convert them to pointer-types to
create a usuable signature for bindings.

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

6 years agogio-2.0: Make DBusInterface[GS]etPropertyFunc usable
Rico Tzschichholz [Tue, 8 Jan 2019 13:23:24 +0000 (14:23 +0100)] 
gio-2.0: Make DBusInterface[GS]etPropertyFunc usable

These delegates don't place their target at the end, but their error
parameter. Vala does not support that at this point.

Introduced with 1df2c050ba29c84026a14e7ee23fa6bcd00b1044

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

6 years agogio-2.0: Drop superfluous metadata
Rico Tzschichholz [Tue, 8 Jan 2019 14:31:25 +0000 (15:31 +0100)] 
gio-2.0: Drop superfluous metadata

6 years agogio-2.0: Use only metadata for DBusConnection.send_message_with_reply()
Rico Tzschichholz [Tue, 8 Jan 2019 14:07:52 +0000 (15:07 +0100)] 
gio-2.0: Use only metadata for DBusConnection.send_message_with_reply()

6 years agogio-2.0: Use metadata for SocketConnection.factory_create_connection()
Rico Tzschichholz [Tue, 8 Jan 2019 12:27:34 +0000 (13:27 +0100)] 
gio-2.0: Use metadata for SocketConnection.factory_create_connection()

6 years agogio-2.0: Add CancellableSource ctor and update PollableSource ctors
Rico Tzschichholz [Tue, 8 Jan 2019 12:20:38 +0000 (13:20 +0100)] 
gio-2.0: Add CancellableSource ctor and update PollableSource ctors

6 years agovala: Use dedicated error message for assignments to literals
Rico Tzschichholz [Mon, 7 Jan 2019 16:47:49 +0000 (17:47 +0100)] 
vala: Use dedicated error message for assignments to literals

6 years agoRelease 0.43.4 0.43.4
Rico Tzschichholz [Sun, 6 Jan 2019 16:32:05 +0000 (17:32 +0100)] 
Release 0.43.4

6 years agoglib-2.0: Add RecMutexLocker since 2.60
Rico Tzschichholz [Sun, 6 Jan 2019 16:22:41 +0000 (17:22 +0100)] 
glib-2.0: Add RecMutexLocker since 2.60

6 years agovaladoc: Update API tests 881333fe7a8ecf64de21633c165b0db0db2e41ff
Rico Tzschichholz [Wed, 2 Jan 2019 22:32:26 +0000 (23:32 +0100)] 
valadoc: Update API tests

6 years agovaladoc: Drop duplicated code to add source files and use CodeContext API 54ba304eddd05264cbb9eacd734914938f50c7e4
Rico Tzschichholz [Wed, 2 Jan 2019 21:49:36 +0000 (22:49 +0100)] 
valadoc: Drop duplicated code to add source files and use CodeContext API

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 0adcacc401d419dff1e4b5db1fe5896327527257
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 85bfb584076d0c71053d9ef6dae729615f9ba514 38/head
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 agocodegen: Add missing data parameter to GTypeInfo callbacks b5260359255637d77ebc367d26c853ac6459f67d
Rico Tzschichholz [Sun, 25 Nov 2018 21:13:01 +0000 (22:13 +0100)] 
codegen: Add missing data parameter to GTypeInfo callbacks

Found by -Werror=cast-function-type

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 8e4a0f7e1370f97195b1ed4553059a5864bd3c56 39/head
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 3d1cc6fd62af79b8128596db6d37eeaf45001d85
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 agovapi: Update GIR-based bindings
Rico Tzschichholz [Sat, 5 Jan 2019 18:34:32 +0000 (19:34 +0100)] 
vapi: Update GIR-based bindings

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 ba7baed0ad5d30bbacf830daca6c5e843fecdaef
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 agoDrop leftover deprecated syntax support of += and -= for dynamic signals b9b6f398f625d0fac9f89eab28834c611e5d429d
Rico Tzschichholz [Wed, 2 Jan 2019 17:41:37 +0000 (18:41 +0100)] 
Drop leftover deprecated syntax support of += and -= for dynamic signals

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

6 years agovala: Drop unused Enum.remove_all_values()
Rico Tzschichholz [Wed, 2 Jan 2019 13:25:47 +0000 (14:25 +0100)] 
vala: Drop unused Enum.remove_all_values()

6 years agolibvaladoc: Skip empty Version.replacement attribute to avoid critical
Rico Tzschichholz [Wed, 2 Jan 2019 12:32:04 +0000 (13:32 +0100)] 
libvaladoc: Skip empty Version.replacement attribute to avoid critical

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 7ad06bcacd78ca355103267a718316df3f2b798f
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 agocodegen: Always use ccode attribute for ref/unref/free function names
Rico Tzschichholz [Tue, 1 Jan 2019 20:15:17 +0000 (21:15 +0100)] 
codegen: Always use ccode attribute for ref/unref/free function names

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 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 agobuild: Don't leak libvalaccode symbols to libvaladoc e7308eaba01ec6c478bb37e1c912a1b6d750bc2c
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 912b0332b885d4e1a74802a0e6615dbc01a896c5 35/head
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 agovala: Allow explicit interface methods to be virtual 2cea36afee72d395784b9f178beac5808edb7b5b
Rico Tzschichholz [Sat, 1 Dec 2018 14:27:08 +0000 (15:27 +0100)] 
vala: Allow explicit interface methods to be virtual

6 years agocodegen: Use properly checked implicit interface implementations
Rico Tzschichholz [Fri, 30 Nov 2018 20:26:15 +0000 (21:26 +0100)] 
codegen: Use properly checked implicit interface implementations

Collect implicit interface implementations in AST and avoid doing the same
checks twice.

This caused double vfunc assignments if an implementation is provided while
a method with the same name is available in prerequisite class.

See https://bugzilla.gnome.org/show_bug.cgi?id=536863
and https://bugzilla.gnome.org/show_bug.cgi?id=652098

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

6 years agovala: Search in all interfaces for an implementation match and don't bail early
Rico Tzschichholz [Thu, 29 Nov 2018 17:44:28 +0000 (18:44 +0100)] 
vala: Search in all interfaces for an implementation match and don't bail early

The first imcompatible method match doesn't mean there is no match for another
interface. This might mean an implementation is missing which will be covered
by the semantic check of the parent class.

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

6 years agovala: No need to look further if an implementations was found
Rico Tzschichholz [Wed, 19 Dec 2018 07:21:21 +0000 (08:21 +0100)] 
vala: No need to look further if an implementations was found

6 years agovala: Don't just guess and check for a matching base_interface_method too
Rico Tzschichholz [Thu, 29 Nov 2018 16:59:01 +0000 (17:59 +0100)] 
vala: Don't just guess and check for a matching base_interface_method too

This fixes class with multiple interfaces which require implementations of
methods with conflicting naming while the explicit interface-type reference
is not present yet.

Extend the present test-case for runtime checking. This will still silently
connect matching base-class methods as before as introduced in
e1a3ff9470763e7c6ff5a887036390bd418f4e46

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

6 years agovala: Add Method.compatible_no_error()
Rico Tzschichholz [Tue, 18 Dec 2018 20:19:35 +0000 (21:19 +0100)] 
vala: Add Method.compatible_no_error()

6 years agovala: Allow get_actual_type() to be used for expected failures
Rico Tzschichholz [Sat, 1 Dec 2018 13:13:31 +0000 (14:13 +0100)] 
vala: Allow get_actual_type() to be used for expected failures

If the passed node_reference is null there won't be any error reporting.
The resovled DataType will be an InvalidType on errors as usual.

6 years agovala: Add GenericType.get_actual_type()
Rico Tzschichholz [Wed, 5 Dec 2018 15:01:13 +0000 (16:01 +0100)] 
vala: Add GenericType.get_actual_type()

6 years agovapi: Update GIR-based bindings
Rico Tzschichholz [Tue, 18 Dec 2018 10:07:57 +0000 (11:07 +0100)] 
vapi: Update GIR-based bindings

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 agowebkitgtk-4.0: Update to 2.23.1
Rico Tzschichholz [Tue, 18 Dec 2018 10:05:04 +0000 (11:05 +0100)] 
webkitgtk-4.0: Update to 2.23.1

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 agovala: Array with fixed length don't require explicit instantiation 0554ed7ad9cefe0f56e53dc00be88488dfa788bf
Rico Tzschichholz [Sun, 16 Dec 2018 19:01:19 +0000 (20:01 +0100)] 
vala: Array with fixed length don't require explicit instantiation

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