]>
git.ipfire.org Git - thirdparty/vala.git/log
Rico Tzschichholz [Tue, 2 Nov 2021 12:22:00 +0000 (13:22 +0100)]
parser: Split out Parser.parse_switch_section_statement()
Rico Tzschichholz [Mon, 1 Nov 2021 13:24:09 +0000 (14:24 +0100)]
codegen: Stop generating wrappers for dynamic signal connections
Rico Tzschichholz [Mon, 1 Nov 2021 13:02:04 +0000 (14:02 +0100)]
codegen: Split out GSignalModule.emit_signal()
Rico Tzschichholz [Mon, 1 Nov 2021 13:02:04 +0000 (14:02 +0100)]
vala: Using SignalHandler.disconnect() is required for dynamic signals
Rico Tzschichholz [Mon, 1 Nov 2021 13:02:04 +0000 (14:02 +0100)]
tests: Extend "dynamic" signal test to increase coverage
Nikola Hadžić [Tue, 21 Sep 2021 21:50:26 +0000 (23:50 +0200)]
alsa: Add more API and fix a few things
Rico Tzschichholz [Sat, 30 Oct 2021 12:29:15 +0000 (14:29 +0200)]
tests: Add missing tests/objects/class-partial.c-expected
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
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
Rico Tzschichholz [Sat, 30 Oct 2021 07:34:37 +0000 (09:34 +0200)]
gstreamer-1.0: Make Gst.Uri a sealed class
Rico Tzschichholz [Sat, 30 Oct 2021 07:33:34 +0000 (09:33 +0200)]
girparser: Accept "sealed" for transformed records and compact classes
Lorenz Wildberg [Fri, 29 Oct 2021 10:50:30 +0000 (11:50 +0100)]
vala: Improve error message for invalid handler of dynamic signal
Rico Tzschichholz [Sat, 30 Oct 2021 08:38:42 +0000 (10:38 +0200)]
Sync NEWS from 0.54
Rico Tzschichholz [Mon, 25 Oct 2021 07:13:51 +0000 (09:13 +0200)]
vapi: Add webkit2gtk-5.0 bindings
Rico Tzschichholz [Mon, 25 Oct 2021 07:13:51 +0000 (09:13 +0200)]
vapi: Add libsoup-3.0 binding
Required by webkit2gtk-5.0
Rico Tzschichholz [Mon, 25 Oct 2021 07:13:51 +0000 (09:13 +0200)]
vapi: Update GIR-based bindings
Rico Tzschichholz [Mon, 25 Oct 2021 07:13:51 +0000 (09:13 +0200)]
gstreamer: Update from 1.19.2+ git main
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 .
Rico Tzschichholz [Sat, 23 Oct 2021 16:27:29 +0000 (18:27 +0200)]
tests: Add "throws error code" tests to increase coverage
Rico Tzschichholz [Sat, 23 Oct 2021 13:27:12 +0000 (15:27 +0200)]
Use ErrorType-based collection for CodeNode.get_error_types()
Rico Tzschichholz [Sat, 23 Oct 2021 13:27:12 +0000 (15:27 +0200)]
vala: Improve CodeWriter.visit_catch_clause()
Properly output general catch clause
Rico Tzschichholz [Sat, 23 Oct 2021 13:27:12 +0000 (15:27 +0200)]
vala: Implement CodeWriter.visit_foreach_statement()
Rico Tzschichholz [Sat, 23 Oct 2021 13:27:12 +0000 (15:27 +0200)]
parser: Make sure ErrorCodes are accessible as needed
Rico Tzschichholz [Sat, 23 Oct 2021 13:27:12 +0000 (15:27 +0200)]
codegen: Use ErrorType.error_domain if possible
Rico Tzschichholz [Sat, 23 Oct 2021 13:27:12 +0000 (15:27 +0200)]
vala: Report error for non ErrorType in throws
Rico Tzschichholz [Sat, 23 Oct 2021 13:27:12 +0000 (15:27 +0200)]
tests: Add "no error type in catch" tests to increase coverage
Rico Tzschichholz [Sat, 23 Oct 2021 13:27:12 +0000 (15:27 +0200)]
vala: Replace and drop UnaryExpression.find_member_access()
Rico Tzschichholz [Sat, 23 Oct 2021 13:27:12 +0000 (15:27 +0200)]
tests: Add invalid "unary decrement" test 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
Rico Tzschichholz [Thu, 21 Oct 2021 15:42:37 +0000 (17:42 +0200)]
vala: Correctly output signature of callable throwing error
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
Rico Tzschichholz [Tue, 19 Oct 2021 06:25:14 +0000 (08:25 +0200)]
Sync NEWS from 0.54
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
Rico Tzschichholz [Mon, 18 Oct 2021 10:23:21 +0000 (12:23 +0200)]
tests: Extend "access virtual signal of interface" test 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
Rico Tzschichholz [Mon, 18 Oct 2021 10:23:21 +0000 (12:23 +0200)]
tests: Add missing tests/enums/bug614424.c-expected
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
Rico Tzschichholz [Mon, 18 Oct 2021 07:02:33 +0000 (09:02 +0200)]
tests: Add invalid "target/destroy access" tests to increase coverage
Rico Tzschichholz [Sun, 17 Oct 2021 07:15:58 +0000 (09:15 +0200)]
vala: Set more missing source references of CodeNode instances
Rico Tzschichholz [Sun, 17 Oct 2021 07:15:58 +0000 (09:15 +0200)]
codegen: Move some errors to semantic analyzer pass
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.
Rico Tzschichholz [Sun, 17 Oct 2021 07:15:58 +0000 (09:15 +0200)]
tests: Avoid causing unrelated errors in invalid test cases
Rico Tzschichholz [Sun, 17 Oct 2021 07:15:58 +0000 (09:15 +0200)]
tests: Add more "type-arguments" tests to increase coverage
Rico Tzschichholz [Sun, 17 Oct 2021 07:15:58 +0000 (09:15 +0200)]
tests: Rename invalid yield-return test to avoid conflict
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
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
Rico Tzschichholz [Fri, 15 Oct 2021 10:02:21 +0000 (12:02 +0200)]
vala: No need to run return_type.check() twice for method
Rico Tzschichholz [Fri, 15 Oct 2021 10:02:21 +0000 (12:02 +0200)]
tests: Add more "type-arguments" tests to increase coverage
Rico Tzschichholz [Fri, 15 Oct 2021 10:02:21 +0000 (12:02 +0200)]
tests/girwriter: Add missing type-argument
Rico Tzschichholz [Fri, 15 Oct 2021 10:21:48 +0000 (12:21 +0200)]
gee: Add missing type-arguments
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
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
Rico Tzschichholz [Wed, 29 Sep 2021 16:16:35 +0000 (18:16 +0200)]
glib-2.0: Add Unicode 14.0 symbols
Rico Tzschichholz [Tue, 28 Sep 2021 22:29:20 +0000 (00:29 +0200)]
Set TypeParameter as symbol of GenericType
Rico Tzschichholz [Tue, 28 Sep 2021 15:42:47 +0000 (17:42 +0200)]
vala: Drop RealLiteral.get_type_name()
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.
Rico Tzschichholz [Fri, 1 Oct 2021 07:06:39 +0000 (09:06 +0200)]
vala: Preserve the source reference when resolving data types
Rico Tzschichholz [Tue, 28 Sep 2021 13:09:25 +0000 (15:09 +0200)]
vala: Add optional SourceReference parameter to DataType classes
Rico Tzschichholz [Tue, 28 Sep 2021 14:03:48 +0000 (16:03 +0200)]
Bump version suffix to 0.56
Rico Tzschichholz [Wed, 29 Sep 2021 16:16:53 +0000 (18:16 +0200)]
glib-2.0: Update 2.70 symbols
Rico Tzschichholz [Wed, 29 Sep 2021 15:38:33 +0000 (17:38 +0200)]
gtk4: Update to 4.5.0~
da5efea6
Rico Tzschichholz [Wed, 29 Sep 2021 15:38:01 +0000 (17:38 +0200)]
gio-2.0: Update to 2.71.0~
a0d2efdc
Rico Tzschichholz [Tue, 28 Sep 2021 15:36:50 +0000 (17:36 +0200)]
tests: Add "integer/float literal" tests to increase coverage
Rico Tzschichholz [Wed, 29 Sep 2021 06:41:41 +0000 (08:41 +0200)]
tests: Add missing generics/null-type.c-expected
Rico Tzschichholz [Sun, 26 Sep 2021 11:49:51 +0000 (13:49 +0200)]
vala: Accept NullType as generic type argument
Rico Tzschichholz [Sat, 25 Sep 2021 13:52:51 +0000 (15:52 +0200)]
docs: Add myself to AUTHORS
Rico Tzschichholz [Sat, 25 Sep 2021 13:35:42 +0000 (15:35 +0200)]
docs: Bump vala version references in README.md
Rico Tzschichholz [Sat, 25 Sep 2021 13:31:28 +0000 (15:31 +0200)]
build: At least valac 0.16.1 is required
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
Rico Tzschichholz [Tue, 21 Sep 2021 10:51:51 +0000 (12:51 +0200)]
Release 0.54.1
Rico Tzschichholz [Tue, 21 Sep 2021 06:00:11 +0000 (08:00 +0200)]
gtk4: Update to 4.5.0~
3e20ecd6
Rico Tzschichholz [Tue, 21 Sep 2021 05:59:50 +0000 (07:59 +0200)]
gstreamer: Update from 1.19.0+ git master
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
Rico Tzschichholz [Sat, 18 Sep 2021 21:30:31 +0000 (23:30 +0200)]
codegen: Add type declaration for implicit temporary local variable
Rico Tzschichholz [Fri, 17 Sep 2021 06:27:57 +0000 (08:27 +0200)]
Release 0.54.0
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
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
Rico Tzschichholz [Tue, 14 Sep 2021 21:28:43 +0000 (23:28 +0200)]
tests: Add missing cast-void-not-allowed.c-expected
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
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
Rico Tzschichholz [Sat, 4 Sep 2021 17:55:41 +0000 (19:55 +0200)]
Release 0.53.2
Rico Tzschichholz [Fri, 3 Sep 2021 13:16:40 +0000 (15:16 +0200)]
vapi: Update GIR-based bindings
Rico Tzschichholz [Fri, 3 Sep 2021 13:15:59 +0000 (15:15 +0200)]
gtk4: Update to 4.5.0~
e681fdd9
Rico Tzschichholz [Fri, 3 Sep 2021 13:15:25 +0000 (15:15 +0200)]
gstreamer: Update from 1.19.0+ git master
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
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
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
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.
Rico Tzschichholz [Sat, 28 Aug 2021 17:41:09 +0000 (19:41 +0200)]
gtk4: Update to 4.5.0~
2db8d7f6
Rico Tzschichholz [Sat, 28 Aug 2021 17:40:13 +0000 (19:40 +0200)]
pango: Update to 1.49.0+
54e1aed0
Rico Tzschichholz [Sat, 28 Aug 2021 17:39:56 +0000 (19:39 +0200)]
gstreamer: Update from 1.19.0+ git master
Rico Tzschichholz [Fri, 20 Aug 2021 12:18:38 +0000 (14:18 +0200)]
Release 0.53.1
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.
Rico Tzschichholz [Wed, 18 Aug 2021 10:36:04 +0000 (12:36 +0200)]
webkit2gtk-4.0: Update to 2.33.3
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
Rico Tzschichholz [Tue, 17 Aug 2021 06:42:15 +0000 (08:42 +0200)]
Sync NEWS from 0.52
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
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`.
Rico Tzschichholz [Tue, 10 Aug 2021 15:09:06 +0000 (17:09 +0200)]
vapi: Update GIR-based bindings
Rico Tzschichholz [Tue, 10 Aug 2021 15:08:51 +0000 (17:08 +0200)]
gstreamer: Update from 1.19.0+ git master