]>
git.ipfire.org Git - thirdparty/vala.git/log
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, 30 Oct 2021 08:21:43 +0000 (10:21 +0200)]
Release 0.52.7
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 [Mon, 4 Oct 2021 09:43:20 +0000 (11:43 +0200)]
Release 0.52.6
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 [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 [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
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 [Mon, 16 Aug 2021 10:49:45 +0000 (12:49 +0200)]
Release 0.52.5
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:08:51 +0000 (17:08 +0200)]
gstreamer: Update from 1.19.0+ git master
Rico Tzschichholz [Tue, 10 Aug 2021 15:08:07 +0000 (17:08 +0200)]
gtk4: Update to 4.3.2+
04f3c805
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 [Mon, 9 Aug 2021 06:11:04 +0000 (08:11 +0200)]
Partly revert "gstreamer: Update from 1.19.0+ git master"
This partly reverts commit
e1f0316ba4fba6e47f91fbe447ab8e6db038a54b .
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1210
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
Princeton Ferro [Thu, 15 Jul 2021 03:52:59 +0000 (23:52 -0400)]
girwriter: Add explicit writable attribute to all field elements
This addresses issues with bindings to Vala structs.
Rico Tzschichholz [Sat, 17 Jul 2021 06:35:06 +0000 (08:35 +0200)]
vala: Rely on DataType.to_qualified_string() implementation for error-types
DataType.type_symbol is properly initialized and can be used.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1206
satmandu [Thu, 15 Jul 2021 14:55:22 +0000 (14:55 +0000)]
docs: Update bootstrap instructions in README.md
Rico Tzschichholz [Thu, 15 Jul 2021 10:35:41 +0000 (12:35 +0200)]
codegen: Fix params-array in constructor for struct
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1202
Princeton Ferro [Thu, 15 Jul 2021 07:08:11 +0000 (07:08 +0000)]
glib-2.0: Add Uri.to_string/to_string_partial() (since 2.66)
Rico Tzschichholz [Mon, 12 Jul 2021 05:43:32 +0000 (07:43 +0200)]
codegen: Use detroy_value() for delete statement
It is required to deal with special free functions here.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1201
Rico Tzschichholz [Fri, 9 Jul 2021 12:21:37 +0000 (14:21 +0200)]
vapi: Update GIR-based bindings
Rico Tzschichholz [Fri, 9 Jul 2021 12:20:07 +0000 (14:20 +0200)]
gtk4: Update to 4.3.1+
6818eee8
Rico Tzschichholz [Fri, 9 Jul 2021 12:19:02 +0000 (14:19 +0200)]
gstreamer: Update from 1.19.0+ git master
Princeton Ferro [Wed, 7 Jul 2021 16:51:42 +0000 (16:51 +0000)]
glib-2.0: expected_type and return value of VariantDict.lookup_value() is nullable
Dr. Michael Lauer [Wed, 30 Jun 2021 11:32:10 +0000 (13:32 +0200)]
linux: Fix i2c-dev constants
This commit enables basic i2c operations (open/read/write/close) from userland.
Further i2c / smbus transfer modes are on the way.
Rico Tzschichholz [Tue, 6 Apr 2021 19:37:31 +0000 (21:37 +0200)]
linux: Fix some bindings errors
Dr. Michael Lauer [Mon, 24 May 2021 14:50:24 +0000 (16:50 +0200)]
linux: Substitute linux/if.h with net/if.h
There is an age-old conflict between linux/if.h (the kernel header) and
net/if.h (the userland header) that leads to compile errors due to
redeclaration of certain network-related structures, see e.g. the following links:
- https://bugs.launchpad.net/ubuntu/+source/eglibc/+bug/673073
- https://lists.debian.org/debian-kernel/2017/06/msg00003.html
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=824442
FWIW, it still seems to be a very current problem which I just stumbled over _again_.
By now all the relevant structures should have counterparts in net/if.h, so let's try
to just not include the kernel header, but use the userland header instead.
Rico Tzschichholz [Mon, 28 Jun 2021 18:39:09 +0000 (20:39 +0200)]
Recognize multiple valid CCode.gir_namespace/_version attributes in VAPI files
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1189
Rico Tzschichholz [Mon, 28 Jun 2021 18:39:09 +0000 (20:39 +0200)]
testrunner: Add support for girwriter tests