]>
git.ipfire.org Git - thirdparty/vala.git/log
Rico Tzschichholz [Sat, 8 Jan 2022 18:53:28 +0000 (19:53 +0100)]
Release 0.48.21
Rico Tzschichholz [Wed, 5 Jan 2022 19:45:10 +0000 (20:45 +0100)]
codegen: Clear existing length values when revisiting a slice expression
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1274
Rico Tzschichholz [Wed, 5 Jan 2022 07:25:19 +0000 (08:25 +0100)]
tests: Add "async signal handler" test to increase coverage
Rico Tzschichholz [Mon, 3 Jan 2022 12:59:36 +0000 (13:59 +0100)]
codegen: Cast given default-value of struct with possible member initializer
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1272
Rico Tzschichholz [Mon, 3 Jan 2022 08:07:00 +0000 (09:07 +0100)]
codegen: Allow boxing of non-external SimpleType structs
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1273
Rico Tzschichholz [Tue, 28 Dec 2021 12:18:46 +0000 (13:18 +0100)]
gio-2.0: Add custom MemoryOutputStream.with_*data() wrappers
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1271
Rico Tzschichholz [Mon, 20 Dec 2021 19:40:30 +0000 (20:40 +0100)]
vala: Correctly replace "in" expression in pre-/postconditions of method
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1269
Rico Tzschichholz [Thu, 16 Dec 2021 14:31:47 +0000 (15:31 +0100)]
vala: Non nullable enum types are simple types
Fixes a regression of
5b6345a6386b05aaf3f11cb3572940413eb878a8
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1268
Rico Tzschichholz [Thu, 16 Dec 2021 14:31:47 +0000 (15:31 +0100)]
vala: Allow unsafe assignment of integer to enum while reporting a notice
Rico Tzschichholz [Thu, 2 Dec 2021 13:38:09 +0000 (14:38 +0100)]
Release 0.48.20
Rico Tzschichholz [Mon, 29 Nov 2021 14:51:49 +0000 (15:51 +0100)]
tests: Add missing methods/parameter-ccode-type.vala
In addition to
0e097710e37b671b17ed1da330dd83b9e2340602
Rico Tzschichholz [Mon, 29 Nov 2021 10:28:06 +0000 (11:28 +0100)]
pango: Cherry-pick bindings fixes from 0.56
Rico Tzschichholz [Mon, 29 Nov 2021 10:27:33 +0000 (11:27 +0100)]
gstreamer: Cherry-pick bindings fixes from 0.56
Lorenz Wildberg [Sat, 27 Nov 2021 21:10:40 +0000 (21:10 +0000)]
tests: Rename colliding test case to avoid conflict
Rico Tzschichholz [Sun, 28 Nov 2021 11:45:25 +0000 (12:45 +0100)]
gnome-desktop-3.0: Some parameter fixes
Rico Tzschichholz [Sat, 27 Nov 2021 18:26:35 +0000 (19:26 +0100)]
codegen: Accept CCode.type attribute on parameters
Fixes https://gitlab.gnome.org/GNOME/vala/issues/876
Rico Tzschichholz [Sat, 27 Nov 2021 18:26:35 +0000 (19:26 +0100)]
codegen: Drop inconsistent space for ObjectType parameters
Rico Tzschichholz [Fri, 26 Nov 2021 22:03:37 +0000 (23:03 +0100)]
tests: Rename colliding test cases to avoid conflicts
Rico Tzschichholz [Fri, 26 Nov 2021 14:34:40 +0000 (15:34 +0100)]
vala: Fix signals with generic return
In addition to
36999b5ffd63cc56a8648791b02bf07e7da88077
Rico Tzschichholz [Thu, 25 Nov 2021 19:22:00 +0000 (20:22 +0100)]
vala: Report error on missing gio-2.0 package for async constructors
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1256
Rico Tzschichholz [Thu, 25 Nov 2021 19:22:00 +0000 (20:22 +0100)]
tests: Add runtime checks to signals tests and increase coverage
Rico Tzschichholz [Wed, 24 Nov 2021 22:12:54 +0000 (23:12 +0100)]
tests/girwriter: Increase coverage
Rico Tzschichholz [Wed, 24 Nov 2021 20:26:03 +0000 (21:26 +0100)]
tests: Add [Profile] method test to increase coverage
Rico Tzschichholz [Wed, 24 Nov 2021 20:26:03 +0000 (21:26 +0100)]
vala: Add [Profile] as known attribute for methods
Rico Tzschichholz [Wed, 24 Nov 2021 20:26:03 +0000 (21:26 +0100)]
ccode: Fix CCodeUnaryExpression.write() for PREFIX_INCREMENT/PREFIX_DECREMENT
Regression of
0f65d306f5a2eca7ea798e5c835cf66b6e327c8e
Rico Tzschichholz [Tue, 23 Nov 2021 13:19:02 +0000 (14:19 +0100)]
genie: Accept accessibility and async modifiers on "construct" creation methods
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1235
Rico Tzschichholz [Tue, 23 Nov 2021 10:06:36 +0000 (11:06 +0100)]
gstreamer-base-1.0: Some parameter fixes
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1255
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, 20 Nov 2021 16:29:22 +0000 (17:29 +0100)]
codegen: Add missing check while overriding virtual async interface methods
This fixes a couple of criticals and possibly faulty C code.
In addition to
fc246aa7f8cbc6cb176724246a0187e19fe91198
See https://gitlab.gnome.org/GNOME/vala/issues/852
Rico Tzschichholz [Wed, 17 Nov 2021 20:26:39 +0000 (21:26 +0100)]
codegen: Check required length of enum type name for GType support
Add corresponding tests for types which have support for GType
Rico Tzschichholz [Wed, 17 Nov 2021 17:46:22 +0000 (18:46 +0100)]
vala: Check for unavailable value-type of variable initializer
Regression of
6690ea0e3c6f0d81d849e13548efc8c0809149cc
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1253
Rico Tzschichholz [Mon, 15 Nov 2021 19:43:19 +0000 (20:43 +0100)]
codegen: Add and use CCodeConstantIdentifier for accessing constants
If an address to a constant value is required then its identifier needs
to be used instead of referring to a temporary copy.
Fixes a regression of
f1a8f2a4c6771124abd61fd0ebfa991c846575fe
Found by -fsanitize=address
Rico Tzschichholz [Sat, 6 Nov 2021 17:55:38 +0000 (18:55 +0100)]
codegen: Use CCodeConstant for member access of constant symbol
This broke assumptions in CCodeBaseModule.is_constant_ccode_expression()
Rico Tzschichholz [Sat, 6 Nov 2021 17:55:37 +0000 (18:55 +0100)]
tests: Fix mixed up naming of base-type tests for classes
Rico Tzschichholz [Sat, 6 Nov 2021 14:35:12 +0000 (15:35 +0100)]
tests: Add more "statement" tests for genie to increase coverage
Yotam Nachum [Sat, 6 Nov 2021 12:33:07 +0000 (14:33 +0200)]
gtkmodule: Improve error message for invalid signal element in ui-file
Rico Tzschichholz [Fri, 5 Nov 2021 10:08:23 +0000 (11:08 +0100)]
tests: Add more "declaration" tests for genie to increase coverage
Rico Tzschichholz [Thu, 11 Nov 2021 14:51:31 +0000 (15:51 +0100)]
genie: "exception" is the expected string for TokenType.ERRORDOMAIN
Rico Tzschichholz [Thu, 4 Nov 2021 21:34:47 +0000 (22:34 +0100)]
genie: Properly handle plain "get" or "set" property accessors
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1248
Rico Tzschichholz [Wed, 3 Nov 2021 17:47:31 +0000 (18:47 +0100)]
genie: Accept INTERR token before type arguments when parsing type
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1245
Alistair Thomas [Sat, 25 Apr 2015 17:55:33 +0000 (18:55 +0100)]
genie: Amend text of indent and dedent for error messages
Fixes https://gitlab.gnome.org/GNOME/vala/issues/497
Rico Tzschichholz [Tue, 2 Nov 2021 12:22:00 +0000 (13:22 +0100)]
parser: Better handling of misplaced switch sections
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1246
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: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
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, 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)]
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 [Sun, 17 Oct 2021 07:15:58 +0000 (09:15 +0200)]
vala: Set more missing source references of CodeNode instances
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 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)]
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 [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 [Wed, 29 Sep 2021 15:38:33 +0000 (17:38 +0200)]
gtk4: Backport fixes from 0.54.2
Rico Tzschichholz [Wed, 29 Sep 2021 15:38:01 +0000 (17:38 +0200)]
gio-2.0: Backport fixes from 0.54.2
Rico Tzschichholz [Tue, 28 Sep 2021 15:36:50 +0000 (17:36 +0200)]
tests: Add "integer/float literal" tests to increase coverage
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 [Sat, 18 Sep 2021 21:30:31 +0000 (23:30 +0200)]
codegen: Add type declaration for implicit temporary local variable
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)]
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 [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)]
tests: Extend "field access" tests to increase coverage
See 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
Rico Tzschichholz [Sun, 22 Aug 2021 15:38:50 +0000 (17:38 +0200)]
Release 0.48.19
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 12:03:08 +0000 (14:03 +0200)]
girwriter: Write missing c:type attribute of compact class record
Thanks to Niels De Graef
Rico Tzschichholz [Fri, 6 Aug 2021 06:40:31 +0000 (08:40 +0200)]
Slightly improve source_reference for get_dup_func_expression()
Rico Tzschichholz [Tue, 27 Jul 2021 12:34:39 +0000 (14:34 +0200)]
girparser: Add support for "final" class attribute
Rico Tzschichholz [Thu, 5 Aug 2021 15:14:48 +0000 (17:14 +0200)]
girwriter: Fix position of "result" parameter for struct constructor
Thanks to Princeton Ferro