]>
git.ipfire.org Git - thirdparty/vala.git/log
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
Rico Tzschichholz [Wed, 23 Jan 2019 20:36:12 +0000 (21:36 +0100)]
codegen: Replace some unfortunate asserts with internal error reports
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
Rico Tzschichholz [Mon, 21 Jan 2019 18:45:09 +0000 (19:45 +0100)]
Release 0.43.6
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
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
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
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
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
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
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
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
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
Rico Tzschichholz [Sat, 19 Jan 2019 16:17:53 +0000 (17:17 +0100)]
Release 0.43.5
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
Rico Tzschichholz [Fri, 18 Jan 2019 13:19:54 +0000 (14:19 +0100)]
compiler: Report deprecated command-line option "--thread"
Rico Tzschichholz [Thu, 17 Jan 2019 13:19:48 +0000 (14:19 +0100)]
glib-2.0: Add Queue.clear_full() since 2.60
Rico Tzschichholz [Wed, 16 Jan 2019 20:12:23 +0000 (21:12 +0100)]
vapi: Update GIR-based bindings
Rico Tzschichholz [Wed, 16 Jan 2019 20:10:46 +0000 (21:10 +0100)]
gtk+-4.0: Update to 3.94.0+
9b15c690
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
Rico Tzschichholz [Wed, 16 Jan 2019 20:08:59 +0000 (21:08 +0100)]
gstreamer: Update from 1.15+ git master
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
Rico Tzschichholz [Mon, 14 Jan 2019 13:14:20 +0000 (14:14 +0100)]
codegen: Use get_ccode_*name/get_parameter_cexpression() for Parameters
Rico Tzschichholz [Tue, 15 Jan 2019 15:00:30 +0000 (16:00 +0100)]
codegen: Remove CCodeBaseModule.get_result_cexpression()
Rico Tzschichholz [Tue, 15 Jan 2019 14:29:01 +0000 (15:29 +0100)]
codegen: Simplify get_*_cexpression() and split out get_cexpression()
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
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.
Rico Tzschichholz [Mon, 14 Jan 2019 16:20:55 +0000 (17:20 +0100)]
codegen: Don't evaluate "pos" CCode attribute early
Rico Tzschichholz [Mon, 14 Jan 2019 14:30:36 +0000 (15:30 +0100)]
codegen: Simplify some code around get_ccode_delegate_target() invocations
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.
Rico Tzschichholz [Mon, 14 Jan 2019 15:40:42 +0000 (16:40 +0100)]
codegen: Rely on get_ccode_delegate_target() for delegate variables only
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 (...))
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()
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.
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
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
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
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
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
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
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
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
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
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
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
Rico Tzschichholz [Wed, 9 Jan 2019 15:37:51 +0000 (16:37 +0100)]
atspi-2: Drop superfluous Atspi-2.0-custom.vala
Rico Tzschichholz [Wed, 9 Jan 2019 15:28:59 +0000 (16:28 +0100)]
atk: Drop superfluous metadata
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
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
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
Rico Tzschichholz [Tue, 8 Jan 2019 14:31:25 +0000 (15:31 +0100)]
gio-2.0: Drop superfluous metadata
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()
Rico Tzschichholz [Tue, 8 Jan 2019 12:27:34 +0000 (13:27 +0100)]
gio-2.0: Use metadata for SocketConnection.factory_create_connection()
Rico Tzschichholz [Tue, 8 Jan 2019 12:20:38 +0000 (13:20 +0100)]
gio-2.0: Add CancellableSource ctor and update PollableSource ctors
Rico Tzschichholz [Mon, 7 Jan 2019 16:47:49 +0000 (17:47 +0100)]
vala: Use dedicated error message for assignments to literals
Rico Tzschichholz [Sun, 6 Jan 2019 16:32:05 +0000 (17:32 +0100)]
Release 0.43.4
Rico Tzschichholz [Sun, 6 Jan 2019 16:22:41 +0000 (17:22 +0100)]
glib-2.0: Add RecMutexLocker since 2.60
Rico Tzschichholz [Wed, 2 Jan 2019 22:32:26 +0000 (23:32 +0100)]
valadoc: Update API tests
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
Rico Tzschichholz [Sun, 6 Jan 2019 08:47:07 +0000 (09:47 +0100)]
gobject-2.0: Minor syncing from GIR
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
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
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
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
Rico Tzschichholz [Sat, 5 Jan 2019 21:01:06 +0000 (22:01 +0100)]
tests: Extend "DBus errors" tests to increase coverage
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
Rico Tzschichholz [Sat, 5 Jan 2019 18:36:08 +0000 (19:36 +0100)]
gtk+-4.0: Update to 3.94.0+
4404afc9
Rico Tzschichholz [Sat, 5 Jan 2019 18:35:40 +0000 (19:35 +0100)]
gtk+-3.0: Update to 3.24.2+
a8e07254
Rico Tzschichholz [Sat, 5 Jan 2019 18:34:32 +0000 (19:34 +0100)]
vapi: Update GIR-based bindings
Rico Tzschichholz [Sat, 5 Jan 2019 18:33:49 +0000 (19:33 +0100)]
gstreamer: Update from 1.15+ git master
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
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
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
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
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
Rico Tzschichholz [Wed, 2 Jan 2019 13:25:47 +0000 (14:25 +0100)]
vala: Drop unused Enum.remove_all_values()
Rico Tzschichholz [Wed, 2 Jan 2019 12:32:04 +0000 (13:32 +0100)]
libvaladoc: Skip empty Version.replacement attribute to avoid critical
Rico Tzschichholz [Wed, 2 Jan 2019 12:08:56 +0000 (13:08 +0100)]
gobject-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
Rico Tzschichholz [Tue, 1 Jan 2019 20:15:17 +0000 (21:15 +0100)]
codegen: Always use ccode attribute for ref/unref/free function names
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
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
Rico Tzschichholz [Fri, 21 Dec 2018 07:28:31 +0000 (08:28 +0100)]
build: Don't leak libvalaccode symbols to libvaladoc
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
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
Rico Tzschichholz [Sat, 1 Dec 2018 14:27:08 +0000 (15:27 +0100)]
vala: Allow explicit interface methods to be virtual
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
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
Rico Tzschichholz [Wed, 19 Dec 2018 07:21:21 +0000 (08:21 +0100)]
vala: No need to look further if an implementations was found
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
Rico Tzschichholz [Tue, 18 Dec 2018 20:19:35 +0000 (21:19 +0100)]
vala: Add Method.compatible_no_error()
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.
Rico Tzschichholz [Wed, 5 Dec 2018 15:01:13 +0000 (16:01 +0100)]
vala: Add GenericType.get_actual_type()
Rico Tzschichholz [Tue, 18 Dec 2018 10:07:57 +0000 (11:07 +0100)]
vapi: Update GIR-based bindings
Rico Tzschichholz [Tue, 18 Dec 2018 11:36:11 +0000 (12:36 +0100)]
gtk+-4.0: Update to 3.94.0+
a99bd2a4
Rico Tzschichholz [Tue, 18 Dec 2018 10:06:52 +0000 (11:06 +0100)]
gtk+-3.0: Update to 3.24.2+
eb821cb8
Rico Tzschichholz [Tue, 18 Dec 2018 10:06:25 +0000 (11:06 +0100)]
gstreamer: Update from 1.15+ git master
Rico Tzschichholz [Tue, 18 Dec 2018 10:05:04 +0000 (11:05 +0100)]
webkitgtk-4.0: Update to 2.23.1
Rico Tzschichholz [Tue, 18 Dec 2018 10:02:14 +0000 (11:02 +0100)]
poppler-glib: Update to 0.71
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