]>
git.ipfire.org Git - thirdparty/vala.git/log
Rico Tzschichholz [Mon, 11 Jan 2021 09:42:00 +0000 (10:42 +0100)]
Release 0.40.25
Rico Tzschichholz [Wed, 6 Jan 2021 11:19:10 +0000 (12:19 +0100)]
codegen: Fix assignment of casted struct value to property
Usage of address-of operator requires lvalue access. Therefore use a
temporary variable to be passed to property setter.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1126
Rico Tzschichholz [Sun, 3 Jan 2021 15:32:22 +0000 (16:32 +0100)]
tests: Add "gtktemplate" test to increase coverage
Backported from 0.48
Rico Tzschichholz [Sun, 3 Jan 2021 13:53:23 +0000 (14:53 +0100)]
tests: Add "fast-vapi" test to increase coverage
Backported from 0.48
Rico Tzschichholz [Sun, 3 Jan 2021 09:54:31 +0000 (10:54 +0100)]
gio-2.0: Fix DBusSubtreeIntrospectFunc binding
Rico Tzschichholz [Sat, 2 Jan 2021 13:12:11 +0000 (14:12 +0100)]
tests: Add "string switch" test to increase coverage
Rico Tzschichholz [Fri, 1 Jan 2021 16:56:16 +0000 (17:56 +0100)]
tests: Add more "array field initializer" tests to increase coverage
Rico Tzschichholz [Fri, 1 Jan 2021 10:10:41 +0000 (11:10 +0100)]
codegen: Don't leak memory on internal value comparison of property setter
Rico Tzschichholz [Thu, 31 Dec 2020 08:55:16 +0000 (09:55 +0100)]
codegen: Don't leak memory of already assigned out-parameter on error
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1123
Rico Tzschichholz [Wed, 30 Dec 2020 13:50:05 +0000 (14:50 +0100)]
codegen: Use CCodeInvalidExpression instead of place holders
Rico Tzschichholz [Wed, 30 Dec 2020 13:50:05 +0000 (14:50 +0100)]
tests: Add "array creation" tests to increase coverage
Rico Tzschichholz [Mon, 28 Dec 2020 17:09:04 +0000 (18:09 +0100)]
vala: Ownership transfer of inline-allocated array is not allowed
Fixes https://gitlab.gnome.org/GNOME/vala/issues/931
Ulrich Küttler [Tue, 22 Dec 2020 07:59:16 +0000 (08:59 +0100)]
vala: SliceExpression need to return heap-allocated or unowned references
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1120
Rico Tzschichholz [Mon, 21 Dec 2020 12:52:54 +0000 (13:52 +0100)]
vala: value_type of PointerIndirection expressions must not be owned
A member-access making the wrong assumption of a previous copy resulted
in a double free.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1118
Rico Tzschichholz [Mon, 21 Dec 2020 12:52:54 +0000 (13:52 +0100)]
vala: Add missing TraverseVisitor.visit_addressof_expression()
Rico Tzschichholz [Fri, 11 Dec 2020 16:50:28 +0000 (17:50 +0100)]
webkit2gtk-4.0: Update to 2.30.3
Chris White [Wed, 23 Dec 2020 16:14:51 +0000 (11:14 -0500)]
gstreamer-1.0: Fix direction of Gst.Iterator.fold() ret parameter
See https://gitlab.gnome.org/GNOME/vala/issues/1014
Chris White [Thu, 10 Dec 2020 17:40:30 +0000 (12:40 -0500)]
gstreamer-1.0: Fix direction of GLib.Value typed parameters
Use `out` for functions that take an uninitialized GLib.Value.
Use `ref` for functions that take a GLib.Value initialized with
a particular type.
Remove unused Gst.ControlBindingConvert
Note that the destination is nullable, but not expressly marked as such,
in gst_value_intersect, gst_value_subtract and
gst_message_parse_property_notify.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1014
Rico Tzschichholz [Thu, 3 Dec 2020 18:44:06 +0000 (19:44 +0100)]
vala: Report an error if gio-2.0 is missing for DBus support
Rico Tzschichholz [Thu, 19 Nov 2020 13:35:23 +0000 (14:35 +0100)]
manual: Update from wiki.gnome.org
Rico Tzschichholz [Sat, 14 Nov 2020 20:31:03 +0000 (21:31 +0100)]
tests: Add "translated string constant" test to increase coverage
Rico Tzschichholz [Sat, 14 Nov 2020 20:31:03 +0000 (21:31 +0100)]
tests: Add "constructor with inner error" test to increase coverage
Rico Tzschichholz [Sat, 14 Nov 2020 20:31:03 +0000 (21:31 +0100)]
tests: Add more "delegate" tests to increase coverage
Arne Hoch [Fri, 13 Nov 2020 12:15:29 +0000 (12:15 +0000)]
linux: Add missing struct in cname for Spi.IocTransfer
There is no typedef, so "struct spi_ioc_transfer" needs to be used.
Rico Tzschichholz [Wed, 11 Nov 2020 16:04:32 +0000 (17:04 +0100)]
vapigen: Avoid superfluous cast
Reuben Thomas [Mon, 2 Nov 2020 22:04:56 +0000 (22:04 +0000)]
posix: Add freopen binding, as FILE.reopen()
Rico Tzschichholz [Mon, 9 Nov 2020 14:23:51 +0000 (15:23 +0100)]
glib-2.0: Improve GenericArray.length property
Corentin Noël [Mon, 9 Nov 2020 12:52:53 +0000 (13:52 +0100)]
codegen: Report internal error for unsupported collection type in foreach
Corentin Noël [Tue, 3 Nov 2020 16:22:48 +0000 (17:22 +0100)]
glib-2.0: Add GenericArray.find_custom() as variant of find_with_equal_func()
This allows the needle to be a different type as the actual element type.
The implementation of ArraySearchFunc<G,T> is more customizable this way.
Rico Tzschichholz [Sun, 1 Nov 2020 20:16:49 +0000 (21:16 +0100)]
vala: Use DataType.compatible() to check for string concatenation
Make the checks match the ones performed by the code-generator to prevent
invalid c-code to be created.
See https://gitlab.gnome.org/GNOME/vala/issues/1100
Rico Tzschichholz [Tue, 27 Oct 2020 06:56:47 +0000 (07:56 +0100)]
libvaladoc/girimporter: Skip "docsection" elements in <namespace>
See https://gitlab.gnome.org/GNOME/gobject-introspection/-/merge_requests/226
Rico Tzschichholz [Sun, 25 Oct 2020 18:24:11 +0000 (19:24 +0100)]
curses: Correctly use [PrintfFormat] attribute
Rico Tzschichholz [Sat, 24 Oct 2020 12:11:43 +0000 (14:11 +0200)]
vala: CodeNode.source_reference is optional, so let the API respect that
Rico Tzschichholz [Thu, 22 Oct 2020 19:22:15 +0000 (21:22 +0200)]
codegen: Update outdated array _size_ variable of captured local-variable
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1090
Reuben Thomas [Wed, 21 Oct 2020 19:59:41 +0000 (21:59 +0200)]
glib-2.0: Add return codes to FileStream.putc/puts(), like posix
The corresponding C functions return a status code; make the GLib types
the same as the Posix types.
This gives these functions the correct type signature for use where a
putc-like function is required.
Rico Tzschichholz [Wed, 21 Oct 2020 15:04:31 +0000 (17:04 +0200)]
alsa: Fix PcmDevice.set_poll_descriptors_revents() binding
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1092
Rico Tzschichholz [Tue, 20 Oct 2020 22:00:53 +0000 (00:00 +0200)]
vala: Allow markup-reader to accept spaces around '=' of attribute assignment
Rico Tzschichholz [Tue, 20 Oct 2020 11:38:05 +0000 (13:38 +0200)]
gio-2.0: Fix binding of Resolver.lookup_service*()
Rico Tzschichholz [Sun, 18 Oct 2020 19:08:46 +0000 (21:08 +0200)]
codegen: Don't use inferred type for temp-value to access generic property
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1088
Rico Tzschichholz [Mon, 19 Oct 2020 11:51:58 +0000 (13:51 +0200)]
libvaladoc: Don't filter-out generic type-parameters of delegates
Reuben Thomas [Thu, 15 Oct 2020 20:28:20 +0000 (21:28 +0100)]
doc/vala-gen-introspect.1: fix a typo
Rico Tzschichholz [Thu, 15 Oct 2020 07:12:28 +0000 (09:12 +0200)]
posix: Declare fstat, stat, lstat and fstatat as public
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1086
Rico Tzschichholz [Mon, 12 Oct 2020 16:13:32 +0000 (18:13 +0200)]
rest-0.7: Fix ParamsIter.next() binding
Thanks to Rasmus Thomsen
Rico Tzschichholz [Tue, 29 Sep 2020 12:47:48 +0000 (14:47 +0200)]
vala: Issue an error on void initializer for local-variable
Rico Tzschichholz [Tue, 29 Sep 2020 16:39:45 +0000 (18:39 +0200)]
Don't use broken and unsupported cast expression as statement
Rico Tzschichholz [Tue, 6 Oct 2020 07:10:36 +0000 (09:10 +0200)]
Release 0.40.24
Rico Tzschichholz [Sun, 27 Sep 2020 08:38:41 +0000 (10:38 +0200)]
tests: Add "async constructor argument check" test to increase coverage
Rico Tzschichholz [Mon, 28 Sep 2020 10:44:12 +0000 (12:44 +0200)]
libvaladoc: Fix a couple of C compiler warnings
Rico Tzschichholz [Mon, 28 Sep 2020 10:44:12 +0000 (12:44 +0200)]
g-i: Fix a couple of C compiler warnings
Rico Tzschichholz [Sun, 27 Sep 2020 21:45:27 +0000 (23:45 +0200)]
testrunner: Filter external -0X flags to preserve current default -O0
Rico Tzschichholz [Sun, 27 Sep 2020 12:30:39 +0000 (14:30 +0200)]
testrunner: Pass --enable-checking to increase coverage
Rico Tzschichholz [Sun, 27 Sep 2020 17:21:37 +0000 (19:21 +0200)]
codegen: Don't pass CCodeFunctionCall to NULL-aware free macro
This resulted in invalid C code:
error: lvalue required as left operand of assignment
Rico Tzschichholz [Tue, 22 Sep 2020 13:56:15 +0000 (15:56 +0200)]
webkit2gtk-4.0: Update to 2.30.1
Rico Tzschichholz [Wed, 2 Sep 2020 13:13:29 +0000 (15:13 +0200)]
Don't use locale dependent string functions on syntax strings
Replace usage of string.down() with string.ascii_down(),
and string.up() with string.ascii_up()
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1067
Rico Tzschichholz [Thu, 27 Aug 2020 08:41:47 +0000 (10:41 +0200)]
libvaladoc/gtkdoc-importer: Don't let parse_block_taglet() return null
This caused criticals like:
valadoc_taglets_param_set_is_c_self_param: assertion 'self != NULL' failed
Rico Tzschichholz [Thu, 27 Aug 2020 08:02:19 +0000 (10:02 +0200)]
libvaladoc/gtkdoc-importer: Correctly retrieve "url" from "ulink" elements
This caused criticals like:
g_uri_parse_scheme: assertion 'uri != NULL' failed
Rico Tzschichholz [Thu, 27 Aug 2020 08:02:19 +0000 (10:02 +0200)]
libvaladoc/girimporter: Fallback to "name" for callback
This caused criticals like:
valadoc_importer_gir_documentation_importer_attach_comment: assertion 'cname != NULL' failed
Rico Tzschichholz [Mon, 24 Aug 2020 15:36:05 +0000 (17:36 +0200)]
girparser: Additionally fallback to "glib:type-name" to retrieve the cname
Rico Tzschichholz [Mon, 24 Aug 2020 15:03:43 +0000 (17:03 +0200)]
libvaladoc/girimporter: Fallback to "glib:type-name" for class, interface and record
This caused criticals like:
valadoc_importer_gir_documentation_importer_attach_comment: assertion 'cname != NULL' failed
Rico Tzschichholz [Mon, 24 Aug 2020 11:14:09 +0000 (13:14 +0200)]
libvaladoc/girimporter: Improve parse_symbol_doc() and don't use parse_doc()
Rico Tzschichholz [Sun, 23 Aug 2020 15:50:14 +0000 (17:50 +0200)]
libvaladoc/girimporter: Skip "attribute" elements
This is the same patch as in commit
6ea19c61015d0dd6cacb581397c8fe37ace9df4a
Rico Tzschichholz [Wed, 19 Aug 2020 06:35:52 +0000 (08:35 +0200)]
manual: Update from wiki.gnome.org
Alistair Thomas [Tue, 27 Oct 2015 18:23:09 +0000 (18:23 +0000)]
codegen: Always include base_struct declaration if available
This fixes inheritance of structs across source files while not using
a header file.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/464
Rico Tzschichholz [Mon, 17 Aug 2020 14:37:59 +0000 (16:37 +0200)]
codegen: Don't append unreachable clean-up section of Block
Found by -Werror=unreachable-code
Improvements for https://gitlab.gnome.org/GNOME/vala/issues/838
Fixes https://gitlab.gnome.org/GNOME/vala/issues/169
Rico Tzschichholz [Mon, 17 Aug 2020 14:33:44 +0000 (16:33 +0200)]
Revert "codegen: Don't append unreachable clean-up section of Block"
This reverts commit
8f3a0a0b64e0c7fbcc9231c3058247920dd6eeda .
Rico Tzschichholz [Sat, 15 Aug 2020 18:31:41 +0000 (20:31 +0200)]
doc: Update AUTHORS in manpages
Rico Tzschichholz [Sat, 15 Aug 2020 10:38:11 +0000 (12:38 +0200)]
webkit2gtk-4.0: Update to 2.29.91
Rico Tzschichholz [Thu, 13 Aug 2020 21:00:44 +0000 (23:00 +0200)]
vala: Set parent_node for child nodes of lambda-expression
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1062
Rico Tzschichholz [Thu, 13 Aug 2020 17:05:49 +0000 (19:05 +0200)]
tests: Add "pre-post-increment with side effect" tests to increase coverage
See https://gitlab.gnome.org/GNOME/vala/issues/1061
Rico Tzschichholz [Thu, 13 Aug 2020 17:05:49 +0000 (19:05 +0200)]
Force usage of temporary variables for "tainted" member accesses
This is required to handle the side effect of postfix- and unary-
increment/decrement expressions.
Regression of
32ffc862417be39d42a1b8eeb3d0748b3e138aff
and
b9035aaf17a9a97a070812a8ee83251fd3893b1e
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1061
Rico Tzschichholz [Thu, 13 Aug 2020 17:05:49 +0000 (19:05 +0200)]
vala: Move transformation of unary increment/decrement to codegen
In preparation for https://gitlab.gnome.org/GNOME/vala/issues/1061
Rico Tzschichholz [Fri, 26 Oct 2018 12:08:59 +0000 (14:08 +0200)]
Add TraverseVisitor for traversing the tree with a callback
This will allow cleaning up virtual methods of code nodes
and more stateful to stateless code conversion.
Rico Tzschichholz [Tue, 11 Aug 2020 08:03:14 +0000 (10:03 +0200)]
tests: Don't rely on undefined use-after-free behaviour of glibc
Makes this check work with musl >= 1.2.1
https://bugzilla.gnome.org/show_bug.cgi?id=736774
Rico Tzschichholz [Mon, 10 Aug 2020 11:18:08 +0000 (13:18 +0200)]
tests: Add "nested namespace" girwriter test to increase coverage
See https://gitlab.gnome.org/GNOME/vala/issues/1059
Rico Tzschichholz [Mon, 10 Aug 2020 09:56:47 +0000 (11:56 +0200)]
tests: Add "constant and union" gir test to increase coverage
Rico Tzschichholz [Mon, 10 Aug 2020 09:56:47 +0000 (11:56 +0200)]
tests: Add "property accessor with try statement" test to increase coverage
Rico Tzschichholz [Mon, 10 Aug 2020 09:56:47 +0000 (11:56 +0200)]
tests: Add more "invalid" tests to increase coverage
Rico Tzschichholz [Mon, 10 Aug 2020 11:43:49 +0000 (13:43 +0200)]
Revert "girwriter: Use appropriate get_ccode_* functions"
This reverts commit
7b0498d4f4fcaa3bd9e04d65560324847136f0ac .
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1059
Rico Tzschichholz [Mon, 20 Jul 2020 08:37:53 +0000 (10:37 +0200)]
tests: Add "signal error marshalling" test to increase coverage
Jeremy Philippe [Sun, 9 Aug 2020 12:10:37 +0000 (14:10 +0200)]
posix: Declare WRDE_APPEND constant as public
Rico Tzschichholz [Thu, 6 Aug 2020 20:03:43 +0000 (22:03 +0200)]
tests: Add "return in construct/destructor" tests to increase coverage
Rico Tzschichholz [Thu, 6 Aug 2020 20:29:35 +0000 (22:29 +0200)]
tests: Add "enum typed property" tests to increase coverage
Rico Tzschichholz [Wed, 5 Aug 2020 15:45:39 +0000 (17:45 +0200)]
vala: Mark tranformed member-access as qualified
Regression of
866258f688d781f3536892b8f93abdd3112198ec
See https://gitlab.gnome.org/GNOME/vala/issues/57
Rico Tzschichholz [Wed, 5 Aug 2020 06:21:14 +0000 (08:21 +0200)]
gio-2.0: Include "gio/gsettingsbackend.h" for GLib.SettingsBackend members
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1054
Rico Tzschichholz [Wed, 5 Aug 2020 06:21:14 +0000 (08:21 +0200)]
girparser: Add support for string "feature_test_macro" metadata
Rico Tzschichholz [Wed, 5 Aug 2020 05:27:53 +0000 (07:27 +0200)]
codegen: Include header for base-symbols when connecting vfuncs
This eases the handling of types which are split over different headers.
Rico Tzschichholz [Sun, 2 Aug 2020 10:35:42 +0000 (12:35 +0200)]
gio-unix-2.0: Fix "g_unix_mount_for" binding
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1052
Rico Tzschichholz [Wed, 29 Jul 2020 13:14:07 +0000 (15:14 +0200)]
tests: Add "girwriter" tests to increase coverage
Backported from 0.46 branch
Fixes https://gitlab.gnome.org/GNOME/vala/issues/158
Rico Tzschichholz [Wed, 29 Jul 2020 10:31:40 +0000 (12:31 +0200)]
webkit2gtk-4.0: Update to 2.29.4
Rico Tzschichholz [Tue, 28 Jul 2020 11:53:29 +0000 (13:53 +0200)]
girwriter: Use appropriate get_ccode_* functions
This will pick up possible CCode.*name attributes
Rico Tzschichholz [Mon, 27 Jul 2020 16:10:38 +0000 (18:10 +0200)]
girwriter: Don't include symbols outside of a namespace
Additionally report a warning for symbols which doesn't fulfill this rule.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/241
Rico Tzschichholz [Mon, 27 Jul 2020 11:36:56 +0000 (13:36 +0200)]
codegen: Properly destroy elements of an inline struct array
Fixes https://gitlab.gnome.org/GNOME/vala/issues/365
Rico Tzschichholz [Sat, 25 Jul 2020 13:05:24 +0000 (15:05 +0200)]
gtk+-3.0: Update to 3.24.21+
ffe2df7b
Rico Tzschichholz [Thu, 23 Jul 2020 06:24:15 +0000 (08:24 +0200)]
girparser: Skip 'docsection' elements in <namespace>
See https://gitlab.gnome.org/GNOME/gobject-introspection/-/merge_requests/226
Rico Tzschichholz [Wed, 22 Jul 2020 13:04:04 +0000 (15:04 +0200)]
vala: Check error-type accessibility of creation methods and delegates
Rico Tzschichholz [Wed, 22 Jul 2020 08:16:39 +0000 (10:16 +0200)]
codegen: Check param for null before using it
Regression of
5490b0b21a4089d803d51c91311430d60d266f7b
This caused criticals like:
vala_get_ccode_array_length: assertion 'node != NULL' failed
See https://gitlab.gnome.org/GNOME/vala/issues/929
Rico Tzschichholz [Mon, 20 Jul 2020 18:11:13 +0000 (20:11 +0200)]
vala: Allow prototype access to signal with emitter
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1040
Rico Tzschichholz [Mon, 20 Jul 2020 18:11:13 +0000 (20:11 +0200)]
tests: Add "access vfunc pointer" test to increase coverage
Jean Pierre Dudey [Sun, 19 Jul 2020 21:48:12 +0000 (16:48 -0500)]
girwriter: Write c:symbol-prefix on supported elements
This specifies the symbol prefix, e.g.: window in gtk_window_new
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1038
Jean Pierre Dudey [Sun, 19 Jul 2020 23:34:36 +0000 (18:34 -0500)]
girwriter: Write c:type="void" when name="none"
This is to match g-ir-scanner behaviour of using the c:type to
identify void return value.