]> git.ipfire.org Git - thirdparty/vala.git/log
thirdparty/vala.git
3 years agoparser: Split out Parser.parse_switch_section_statement()
Rico Tzschichholz [Tue, 2 Nov 2021 12:22:00 +0000 (13:22 +0100)] 
parser: Split out Parser.parse_switch_section_statement()

3 years agocodegen: Stop generating wrappers for dynamic signal connections
Rico Tzschichholz [Mon, 1 Nov 2021 13:24:09 +0000 (14:24 +0100)] 
codegen: Stop generating wrappers for dynamic signal connections

3 years agocodegen: Split out GSignalModule.emit_signal()
Rico Tzschichholz [Mon, 1 Nov 2021 13:02:04 +0000 (14:02 +0100)] 
codegen: Split out GSignalModule.emit_signal()

3 years agovala: Using SignalHandler.disconnect() is required for dynamic signals
Rico Tzschichholz [Mon, 1 Nov 2021 13:02:04 +0000 (14:02 +0100)] 
vala: Using SignalHandler.disconnect() is required for dynamic signals

3 years agotests: Extend "dynamic" signal test to increase coverage
Rico Tzschichholz [Mon, 1 Nov 2021 13:02:04 +0000 (14:02 +0100)] 
tests: Extend "dynamic" signal test to increase coverage

3 years agoalsa: Add more API and fix a few things
Nikola Hadžić [Tue, 21 Sep 2021 21:50:26 +0000 (23:50 +0200)] 
alsa: Add more API and fix a few things

3 years agotests: Add missing tests/objects/class-partial.c-expected
Rico Tzschichholz [Sat, 30 Oct 2021 12:29:15 +0000 (14:29 +0200)] 
tests: Add missing tests/objects/class-partial.c-expected

3 years agovala: Add support for nested methods (local functions)
Rico Tzschichholz [Thu, 30 Sep 2021 14:42:14 +0000 (16:42 +0200)] 
vala: Add support for nested methods (local functions)

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

3 years agoAdd support for partial classes
Simon Werbeck [Sun, 31 Mar 2013 20:30:07 +0000 (22:30 +0200)] 
Add support for partial classes

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

3 years agogstreamer-1.0: Make Gst.Uri a sealed class
Rico Tzschichholz [Sat, 30 Oct 2021 07:34:37 +0000 (09:34 +0200)] 
gstreamer-1.0: Make Gst.Uri a sealed class

3 years agogirparser: Accept "sealed" for transformed records and compact classes
Rico Tzschichholz [Sat, 30 Oct 2021 07:33:34 +0000 (09:33 +0200)] 
girparser: Accept "sealed" for transformed records and compact classes

3 years agovala: Improve error message for invalid handler of dynamic signal
Lorenz Wildberg [Fri, 29 Oct 2021 10:50:30 +0000 (11:50 +0100)] 
vala: Improve error message for invalid handler of dynamic signal

3 years agoSync NEWS from 0.54
Rico Tzschichholz [Sat, 30 Oct 2021 08:38:42 +0000 (10:38 +0200)] 
Sync NEWS from 0.54

3 years agovapi: Add webkit2gtk-5.0 bindings
Rico Tzschichholz [Mon, 25 Oct 2021 07:13:51 +0000 (09:13 +0200)] 
vapi: Add webkit2gtk-5.0 bindings

3 years agovapi: Add libsoup-3.0 binding
Rico Tzschichholz [Mon, 25 Oct 2021 07:13:51 +0000 (09:13 +0200)] 
vapi: Add libsoup-3.0 binding

Required by webkit2gtk-5.0

3 years agovapi: Update GIR-based bindings
Rico Tzschichholz [Mon, 25 Oct 2021 07:13:51 +0000 (09:13 +0200)] 
vapi: Update GIR-based bindings

3 years agogstreamer: Update from 1.19.2+ git main
Rico Tzschichholz [Mon, 25 Oct 2021 07:13:51 +0000 (09:13 +0200)] 
gstreamer: Update from 1.19.2+ git main

3 years agoRevert "Use ErrorType-based collection for CodeNode.get_error_types()"
Rico Tzschichholz [Mon, 25 Oct 2021 07:13:51 +0000 (09:13 +0200)] 
Revert "Use ErrorType-based collection for CodeNode.get_error_types()"

Unfortunately, it is causing issues with the way the GIR/GIDL parser works.

This reverts commit 0751a9e3bf46fc830d3e7ca3d0cfd3ae48846e68.

3 years agotests: Add "throws error code" tests to increase coverage
Rico Tzschichholz [Sat, 23 Oct 2021 16:27:29 +0000 (18:27 +0200)] 
tests: Add "throws error code" tests to increase coverage

3 years agoUse ErrorType-based collection for CodeNode.get_error_types()
Rico Tzschichholz [Sat, 23 Oct 2021 13:27:12 +0000 (15:27 +0200)] 
Use ErrorType-based collection for CodeNode.get_error_types()

3 years agovala: Improve CodeWriter.visit_catch_clause()
Rico Tzschichholz [Sat, 23 Oct 2021 13:27:12 +0000 (15:27 +0200)] 
vala: Improve CodeWriter.visit_catch_clause()

Properly output general catch clause

3 years agovala: Implement CodeWriter.visit_foreach_statement()
Rico Tzschichholz [Sat, 23 Oct 2021 13:27:12 +0000 (15:27 +0200)] 
vala: Implement CodeWriter.visit_foreach_statement()

3 years agoparser: Make sure ErrorCodes are accessible as needed
Rico Tzschichholz [Sat, 23 Oct 2021 13:27:12 +0000 (15:27 +0200)] 
parser: Make sure ErrorCodes are accessible as needed

3 years agocodegen: Use ErrorType.error_domain if possible
Rico Tzschichholz [Sat, 23 Oct 2021 13:27:12 +0000 (15:27 +0200)] 
codegen: Use ErrorType.error_domain if possible

3 years agovala: Report error for non ErrorType in throws
Rico Tzschichholz [Sat, 23 Oct 2021 13:27:12 +0000 (15:27 +0200)] 
vala: Report error for non ErrorType in throws

3 years agotests: Add "no error type in catch" tests to increase coverage
Rico Tzschichholz [Sat, 23 Oct 2021 13:27:12 +0000 (15:27 +0200)] 
tests: Add "no error type in catch" tests to increase coverage

3 years agovala: Replace and drop UnaryExpression.find_member_access()
Rico Tzschichholz [Sat, 23 Oct 2021 13:27:12 +0000 (15:27 +0200)] 
vala: Replace and drop UnaryExpression.find_member_access()

3 years agotests: Add invalid "unary decrement" test to increase coverage
Rico Tzschichholz [Sat, 23 Oct 2021 13:27:12 +0000 (15:27 +0200)] 
tests: Add invalid "unary decrement" test to increase coverage

3 years agotests: Add more invalid "(un)lock" tests to increase coverage
Rico Tzschichholz [Sat, 23 Oct 2021 13:27:12 +0000 (15:27 +0200)] 
tests: Add more invalid "(un)lock" tests to increase coverage

3 years agovala: Correctly output signature of callable throwing error
Rico Tzschichholz [Thu, 21 Oct 2021 15:42:37 +0000 (17:42 +0200)] 
vala: Correctly output signature of callable throwing error

3 years agovala: Really check compatiblity of error types for delegate symbol
Rico Tzschichholz [Thu, 21 Oct 2021 11:34:51 +0000 (13:34 +0200)] 
vala: Really check compatiblity of error types for delegate symbol

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

3 years agoSync NEWS from 0.54
Rico Tzschichholz [Tue, 19 Oct 2021 06:25:14 +0000 (08:25 +0200)] 
Sync NEWS from 0.54

3 years agotests: Split "Variant (de)serialization" test to trigger one error at a time
Rico Tzschichholz [Mon, 18 Oct 2021 10:23:21 +0000 (12:23 +0200)] 
tests: Split "Variant (de)serialization" test to trigger one error at a time

3 years agotests: Extend "access virtual signal of interface" test to increase coverage
Rico Tzschichholz [Mon, 18 Oct 2021 10:23:21 +0000 (12:23 +0200)] 
tests: Extend "access virtual signal of interface" test to increase coverage

3 years agotests: Add more invalid "member access" tests to increase coverage
Rico Tzschichholz [Mon, 18 Oct 2021 10:23:21 +0000 (12:23 +0200)] 
tests: Add more invalid "member access" tests to increase coverage

3 years agotests: Add missing tests/enums/bug614424.c-expected
Rico Tzschichholz [Mon, 18 Oct 2021 10:23:21 +0000 (12:23 +0200)] 
tests: Add missing tests/enums/bug614424.c-expected

3 years agotests: Add "instance access to implicit to_string() method of enum" test
Rico Tzschichholz [Mon, 18 Oct 2021 07:19:07 +0000 (09:19 +0200)] 
tests: Add "instance access to implicit to_string() method of enum" test

3 years agotests: Add invalid "target/destroy access" tests to increase coverage
Rico Tzschichholz [Mon, 18 Oct 2021 07:02:33 +0000 (09:02 +0200)] 
tests: Add invalid "target/destroy access" tests to increase coverage

3 years agovala: Set more missing source references of CodeNode instances
Rico Tzschichholz [Sun, 17 Oct 2021 07:15:58 +0000 (09:15 +0200)] 
vala: Set more missing source references of CodeNode instances

3 years agocodegen: Move some errors to semantic analyzer pass
Rico Tzschichholz [Sun, 17 Oct 2021 07:15:58 +0000 (09:15 +0200)] 
codegen: Move some errors to semantic analyzer pass

3 years agoparser: Don't bail parsing of yield expression on error
Rico Tzschichholz [Sun, 17 Oct 2021 07:15:58 +0000 (09:15 +0200)] 
parser: Don't bail parsing of yield expression on error

Reporting the error is enough to handle this properly.

3 years agotests: Avoid causing unrelated errors in invalid test cases
Rico Tzschichholz [Sun, 17 Oct 2021 07:15:58 +0000 (09:15 +0200)] 
tests: Avoid causing unrelated errors in invalid test cases

3 years agotests: Add more "type-arguments" tests to increase coverage
Rico Tzschichholz [Sun, 17 Oct 2021 07:15:58 +0000 (09:15 +0200)] 
tests: Add more "type-arguments" tests to increase coverage

3 years agotests: Rename invalid yield-return test to avoid conflict
Rico Tzschichholz [Sun, 17 Oct 2021 07:15:58 +0000 (09:15 +0200)] 
tests: Rename invalid yield-return test to avoid conflict

3 years agocodegen: Actually free data when using "remove(_all)" on GLib.Queue/(S)List
Rico Tzschichholz [Thu, 14 Oct 2021 17:44:55 +0000 (19:44 +0200)] 
codegen: Actually free data when using "remove(_all)" on GLib.Queue/(S)List

When using e.g. GLib.List.remove() there is no context/feedback whether an
item was removed or needed manual free'ing.

Replace such calls with custom wrappers where items required free'ing if
they were found.

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

3 years agovala: More thorough check of ValueType and set CodeNode.error on failure
Rico Tzschichholz [Fri, 15 Oct 2021 10:02:21 +0000 (12:02 +0200)] 
vala: More thorough check of ValueType and set CodeNode.error on failure

3 years agovala: No need to run return_type.check() twice for method
Rico Tzschichholz [Fri, 15 Oct 2021 10:02:21 +0000 (12:02 +0200)] 
vala: No need to run return_type.check() twice for method

3 years agotests: Add more "type-arguments" tests to increase coverage
Rico Tzschichholz [Fri, 15 Oct 2021 10:02:21 +0000 (12:02 +0200)] 
tests: Add more "type-arguments" tests to increase coverage

3 years agotests/girwriter: Add missing type-argument
Rico Tzschichholz [Fri, 15 Oct 2021 10:02:21 +0000 (12:02 +0200)] 
tests/girwriter: Add missing type-argument

3 years agogee: Add missing type-arguments
Rico Tzschichholz [Fri, 15 Oct 2021 10:21:48 +0000 (12:21 +0200)] 
gee: Add missing type-arguments

3 years agogirparser: Add support for "ref_/ref_sink_/unref_function" metadata for classes
Rico Tzschichholz [Tue, 5 Oct 2021 13:14:27 +0000 (15:14 +0200)] 
girparser: Add support for "ref_/ref_sink_/unref_function" metadata for classes

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

3 years agovala: Parameter following ellipsis parameter is not allowed
wxx [Thu, 14 Oct 2021 09:48:00 +0000 (17:48 +0800)] 
vala: Parameter following ellipsis parameter is not allowed

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

3 years agoglib-2.0: Add Unicode 14.0 symbols
Rico Tzschichholz [Wed, 29 Sep 2021 16:16:35 +0000 (18:16 +0200)] 
glib-2.0: Add Unicode 14.0 symbols

3 years agoSet TypeParameter as symbol of GenericType
Rico Tzschichholz [Tue, 28 Sep 2021 22:29:20 +0000 (00:29 +0200)] 
Set TypeParameter as symbol of GenericType

3 years agovala: Drop RealLiteral.get_type_name()
Rico Tzschichholz [Tue, 28 Sep 2021 15:42:47 +0000 (17:42 +0200)] 
vala: Drop RealLiteral.get_type_name()

3 years agovala: Set source references of created DataType instances in OCE
Rico Tzschichholz [Tue, 28 Sep 2021 12:13:12 +0000 (14:13 +0200)] 
vala: Set source references of created DataType instances in OCE

This improves error message for expected type arguments.

3 years agovala: Preserve the source reference when resolving data types
Rico Tzschichholz [Fri, 1 Oct 2021 07:06:39 +0000 (09:06 +0200)] 
vala: Preserve the source reference when resolving data types

3 years agovala: Add optional SourceReference parameter to DataType classes
Rico Tzschichholz [Tue, 28 Sep 2021 13:09:25 +0000 (15:09 +0200)] 
vala: Add optional SourceReference parameter to DataType classes

3 years agoBump version suffix to 0.56
Rico Tzschichholz [Tue, 28 Sep 2021 14:03:48 +0000 (16:03 +0200)] 
Bump version suffix to 0.56

3 years agoglib-2.0: Update 2.70 symbols
Rico Tzschichholz [Wed, 29 Sep 2021 16:16:53 +0000 (18:16 +0200)] 
glib-2.0: Update 2.70 symbols

3 years agogtk4: Update to 4.5.0~da5efea6
Rico Tzschichholz [Wed, 29 Sep 2021 15:38:33 +0000 (17:38 +0200)] 
gtk4: Update to 4.5.0~da5efea6

3 years agogio-2.0: Update to 2.71.0~a0d2efdc
Rico Tzschichholz [Wed, 29 Sep 2021 15:38:01 +0000 (17:38 +0200)] 
gio-2.0: Update to 2.71.0~a0d2efdc

3 years agotests: Add "integer/float literal" tests to increase coverage
Rico Tzschichholz [Tue, 28 Sep 2021 15:36:50 +0000 (17:36 +0200)] 
tests: Add "integer/float literal" tests to increase coverage

3 years agotests: Add missing generics/null-type.c-expected
Rico Tzschichholz [Wed, 29 Sep 2021 06:41:41 +0000 (08:41 +0200)] 
tests: Add missing generics/null-type.c-expected

3 years agovala: Accept NullType as generic type argument
Rico Tzschichholz [Sun, 26 Sep 2021 11:49:51 +0000 (13:49 +0200)] 
vala: Accept NullType as generic type argument

3 years agodocs: Add myself to AUTHORS
Rico Tzschichholz [Sat, 25 Sep 2021 13:52:51 +0000 (15:52 +0200)] 
docs: Add myself to AUTHORS

3 years agodocs: Bump vala version references in README.md
Rico Tzschichholz [Sat, 25 Sep 2021 13:35:42 +0000 (15:35 +0200)] 
docs: Bump vala version references in README.md

3 years agobuild: At least valac 0.16.1 is required
Rico Tzschichholz [Sat, 25 Sep 2021 13:31:28 +0000 (15:31 +0200)] 
build: At least valac 0.16.1 is required

3 years agovala: Multi-dimensional params-array not allowed
Rico Tzschichholz [Wed, 22 Sep 2021 11:44:35 +0000 (13:44 +0200)] 
vala: Multi-dimensional params-array not allowed

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

3 years agoRelease 0.54.1 0.54.1
Rico Tzschichholz [Tue, 21 Sep 2021 10:51:51 +0000 (12:51 +0200)] 
Release 0.54.1

3 years agogtk4: Update to 4.5.0~3e20ecd6
Rico Tzschichholz [Tue, 21 Sep 2021 06:00:11 +0000 (08:00 +0200)] 
gtk4: Update to 4.5.0~3e20ecd6

3 years agogstreamer: Update from 1.19.0+ git master
Rico Tzschichholz [Tue, 21 Sep 2021 05:59:50 +0000 (07:59 +0200)] 
gstreamer: Update from 1.19.0+ git master

3 years agocodegen: Sealed class in external package is not special
Rico Tzschichholz [Mon, 20 Sep 2021 19:57:27 +0000 (21:57 +0200)] 
codegen: Sealed class in external package is not special

Don't falsely generate macros and typedefs leading to conflicts

Regression of 7ebb25ffa2226a8a098b8b1ea2cef64d1015b4de

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

3 years agocodegen: Add type declaration for implicit temporary local variable
Rico Tzschichholz [Sat, 18 Sep 2021 21:30:31 +0000 (23:30 +0200)] 
codegen: Add type declaration for implicit temporary local variable

3 years agoRelease 0.54.0 0.54.0
Rico Tzschichholz [Fri, 17 Sep 2021 06:27:57 +0000 (08:27 +0200)] 
Release 0.54.0

3 years agovala: Don't restrict element type of GLib.Array
Rico Tzschichholz [Wed, 15 Sep 2021 12:38:19 +0000 (14:38 +0200)] 
vala: Don't restrict element type of GLib.Array

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

3 years agovaladoc: Correctly format background of inline @link's
Gustav Hartvigsson [Tue, 14 Sep 2021 17:48:03 +0000 (19:48 +0200)] 
valadoc: Correctly format background of inline @link's

Tested in Firefox, Chromium and Gnome Web.

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

3 years agotests: Add missing cast-void-not-allowed.c-expected
Rico Tzschichholz [Tue, 14 Sep 2021 21:28:43 +0000 (23:28 +0200)] 
tests: Add missing cast-void-not-allowed.c-expected

3 years agovala: Warn about unsupported cast to void and drop it
Rico Tzschichholz [Tue, 14 Sep 2021 21:28:43 +0000 (23:28 +0200)] 
vala: Warn about unsupported cast to void and drop it

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

3 years agogio-2.0: Unhide a few usable symbols which are marked not introspectable
Rico Tzschichholz [Tue, 7 Sep 2021 07:51:06 +0000 (09:51 +0200)] 
gio-2.0: Unhide a few usable symbols which are marked not introspectable

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

3 years agoRelease 0.53.2 0.53.2
Rico Tzschichholz [Sat, 4 Sep 2021 17:55:41 +0000 (19:55 +0200)] 
Release 0.53.2

3 years agovapi: Update GIR-based bindings
Rico Tzschichholz [Fri, 3 Sep 2021 13:16:40 +0000 (15:16 +0200)] 
vapi: Update GIR-based bindings

3 years agogtk4: Update to 4.5.0~e681fdd9
Rico Tzschichholz [Fri, 3 Sep 2021 13:15:59 +0000 (15:15 +0200)] 
gtk4: Update to 4.5.0~e681fdd9

3 years agogstreamer: Update from 1.19.0+ git master
Rico Tzschichholz [Fri, 3 Sep 2021 13:15:25 +0000 (15:15 +0200)] 
gstreamer: Update from 1.19.0+ git master

3 years agoglib-2.0: Add RefString since 2.58
Rico Tzschichholz [Thu, 1 Nov 2018 17:38:02 +0000 (18:38 +0100)] 
glib-2.0: Add RefString since 2.58

Thanks to Jiří Janoušek

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

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

3 years agocodegen: Add missing cast to access base-class members in class/static ctor
Rico Tzschichholz [Tue, 31 Aug 2021 14:28:05 +0000 (16:28 +0200)] 
codegen: Add missing cast to access base-class members in class/static ctor

Regression of 9cbd53b8d79aa4c394ddf49e766f2c15fc476906

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

3 years agoglib-2.0: Current constants in GLib.Math are part of glib.h
Rico Tzschichholz [Mon, 30 Aug 2021 07:55:32 +0000 (09:55 +0200)] 
glib-2.0: Current constants in GLib.Math are part of glib.h

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

3 years agocodegen: Fix property access inside opaque compact class
Princeton Ferro [Mon, 30 Aug 2021 02:02:26 +0000 (22:02 -0400)] 
codegen: Fix property access inside opaque compact class

Avoid using "priv" when accessing a private or internal field backing a
property of a compact class.

3 years agogtk4: Update to 4.5.0~2db8d7f6
Rico Tzschichholz [Sat, 28 Aug 2021 17:41:09 +0000 (19:41 +0200)] 
gtk4: Update to 4.5.0~2db8d7f6

3 years agopango: Update to 1.49.0+54e1aed0
Rico Tzschichholz [Sat, 28 Aug 2021 17:40:13 +0000 (19:40 +0200)] 
pango: Update to 1.49.0+54e1aed0

3 years agogstreamer: Update from 1.19.0+ git master
Rico Tzschichholz [Sat, 28 Aug 2021 17:39:56 +0000 (19:39 +0200)] 
gstreamer: Update from 1.19.0+ git master

3 years agoRelease 0.53.1 0.53.1
Rico Tzschichholz [Fri, 20 Aug 2021 12:18:38 +0000 (14:18 +0200)] 
Release 0.53.1

3 years agogirwriter: Improve struct creation method binding
Princeton Ferro [Thu, 15 Jul 2021 06:32:00 +0000 (02:32 -0400)] 
girwriter: Improve struct creation method binding

Struct creation methods are supposed to have `void` return type and take
an implicit `self` as the first instance parameter.

3 years agowebkit2gtk-4.0: Update to 2.33.3
Rico Tzschichholz [Wed, 18 Aug 2021 10:36:04 +0000 (12:36 +0200)] 
webkit2gtk-4.0: Update to 2.33.3

3 years agotests: Add more "null-safe access" tests to increase coverage
Rico Tzschichholz [Tue, 17 Aug 2021 11:26:40 +0000 (13:26 +0200)] 
tests: Add more "null-safe access" tests to increase coverage

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

3 years agoSync NEWS from 0.52
Rico Tzschichholz [Tue, 17 Aug 2021 06:42:15 +0000 (08:42 +0200)] 
Sync NEWS from 0.52

3 years agovala: Disallow resize() for constant arrays
wxx [Tue, 3 Aug 2021 15:07:49 +0000 (23:07 +0800)] 
vala: Disallow resize() for constant arrays

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

3 years agogobject-2.0: Fix the Closure.invoke() signature
Ole André Vadla Ravnås [Thu, 8 Jul 2021 23:59:07 +0000 (01:59 +0200)] 
gobject-2.0: Fix the Closure.invoke() signature

The return value must be initialized by the caller, as is clear from
GLib's internal callers, and e.g. dummy_closure_marshal() on the callee
side. So it appears the GLib type annotation is incorrect, as it
specifies `out` but should be `inout`.

4 years agovapi: Update GIR-based bindings
Rico Tzschichholz [Tue, 10 Aug 2021 15:09:06 +0000 (17:09 +0200)] 
vapi: Update GIR-based bindings

4 years agogstreamer: Update from 1.19.0+ git master
Rico Tzschichholz [Tue, 10 Aug 2021 15:08:51 +0000 (17:08 +0200)] 
gstreamer: Update from 1.19.0+ git master