]>
git.ipfire.org Git - thirdparty/vala.git/log
Rico Tzschichholz [Mon, 3 May 2021 19:12:38 +0000 (21:12 +0200)]
tests: Refactor "fields" test to increase coverage
Rico Tzschichholz [Mon, 3 May 2021 07:34:13 +0000 (09:34 +0200)]
tests: Add "ThreadPool" test to increase coverage
Rico Tzschichholz [Mon, 3 May 2021 07:01:04 +0000 (09:01 +0200)]
codegen: GArray, GByteArray and GPtrArray are reference counted
Rico Tzschichholz [Wed, 28 Apr 2021 19:33:10 +0000 (21:33 +0200)]
tests: Add "properties in structs" test to increase coverage
Rico Tzschichholz [Wed, 28 Apr 2021 19:33:10 +0000 (21:33 +0200)]
tests: Extend "array field intializer" test to increase coverage
Rico Tzschichholz [Wed, 28 Apr 2021 19:33:10 +0000 (21:33 +0200)]
tests: Add "generic array" test to increase coverage
Rico Tzschichholz [Wed, 28 Apr 2021 19:33:10 +0000 (21:33 +0200)]
tests: Add "delete" test to increase coverage
Rico Tzschichholz [Sat, 1 May 2021 20:51:16 +0000 (22:51 +0200)]
Release 0.50.8
Rico Tzschichholz [Tue, 27 Apr 2021 08:24:55 +0000 (10:24 +0200)]
codegen: Don't use G_GNUC_INTERNAL on implicit type specific fields
The actual field was never handled that way, so don't apply it at all
when --hide-internal is passed.
Introduced by
970f58989a2863faca11e30fdbcf4da1273a6acd which claimed to
apply it to methods only.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1178
Rico Tzschichholz [Sat, 24 Apr 2021 07:11:27 +0000 (09:11 +0200)]
vala: Report a warning for unhandled errors in destructors
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1176
Rico Tzschichholz [Sat, 24 Apr 2021 07:11:27 +0000 (09:11 +0200)]
codegen: Add missing "_return" label and "_inner_error*_" declaration in dtors
Rico Tzschichholz [Mon, 19 Apr 2021 17:15:17 +0000 (19:15 +0200)]
tests: Add more "DBus" tests to increase coverage
Rico Tzschichholz [Sun, 18 Apr 2021 20:33:26 +0000 (22:33 +0200)]
tests: Add "generics reference transfer" test to increase coverage
Rico Tzschichholz [Sun, 18 Apr 2021 19:02:21 +0000 (21:02 +0200)]
tests: Extend "finally block execution" test to increase coverage
In addition to
9f21d0b182edad861f93a91674787b8b3b4fc2c5
See https://bugzilla.gnome.org/show_bug.cgi?id=579101
Rico Tzschichholz [Sun, 18 Apr 2021 19:02:21 +0000 (21:02 +0200)]
codegen: Use if-clause for is_in_destructor() condition to be more clear
Rico Tzschichholz [Sun, 18 Apr 2021 19:02:21 +0000 (21:02 +0200)]
codegen: Fix access to captured generics in async method of interfaces (2)
See https://gitlab.gnome.org/GNOME/vala/issues/537
Rico Tzschichholz [Sun, 18 Apr 2021 19:02:21 +0000 (21:02 +0200)]
codegen: Apply gconstpointer to gpointer cast to GenericType only
Rico Tzschichholz [Thu, 15 Apr 2021 14:49:14 +0000 (16:49 +0200)]
vala: length-type of arrays must not be nullable
Rico Tzschichholz [Thu, 15 Apr 2021 14:49:14 +0000 (16:49 +0200)]
parser: Include INTERR token in source_reference of parsed types
Rico Tzschichholz [Thu, 15 Apr 2021 14:49:14 +0000 (16:49 +0200)]
parser: Allow empty member-initializer and accept trailing comma
Rico Tzschichholz [Thu, 15 Apr 2021 14:49:14 +0000 (16:49 +0200)]
parser: Minor semantic checks to improve error messages
Rico Tzschichholz [Mon, 12 Apr 2021 11:24:49 +0000 (13:24 +0200)]
Release 0.50.7
Nahuel Gomez Castro [Mon, 12 Apr 2021 10:32:12 +0000 (12:32 +0200)]
glib-2.0: Add simple_generics attribute to GenericArray.find_custom()
Rico Tzschichholz [Mon, 12 Apr 2021 07:21:48 +0000 (09:21 +0200)]
codegen: Don't free unowned heap allocated struct
Regression of
63551acaf0d83fac8b50904c2759c1098fbfaa71
Rico Tzschichholz [Sun, 11 Apr 2021 16:05:08 +0000 (18:05 +0200)]
codegen: Don't free temp-var for element-access to array with boxed structs
Regression of
63551acaf0d83fac8b50904c2759c1098fbfaa71
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1174
Rico Tzschichholz [Sun, 11 Apr 2021 18:45:59 +0000 (20:45 +0200)]
tests: Extend "GArray" tests to increase coverage
Rico Tzschichholz [Thu, 8 Apr 2021 09:09:12 +0000 (11:09 +0200)]
Release 0.50.6
Rico Tzschichholz [Wed, 31 Mar 2021 13:03:57 +0000 (15:03 +0200)]
rest-0.7: Fix OAuthProxyAuthCallback binding
Rico Tzschichholz [Wed, 7 Apr 2021 16:14:16 +0000 (18:14 +0200)]
codegen: Don't call *_instance_init() in compact class chainup
Found by -fsanitize=address
Rico Tzschichholz [Tue, 6 Apr 2021 19:40:58 +0000 (21:40 +0200)]
libusb: Fix some bindings errors
Rico Tzschichholz [Tue, 6 Apr 2021 19:40:58 +0000 (21:40 +0200)]
libusb-1.0: Fix some bindings errors
Rico Tzschichholz [Tue, 6 Apr 2021 19:40:58 +0000 (21:40 +0200)]
x11: Fix some bindings errors
Rico Tzschichholz [Tue, 6 Apr 2021 19:40:58 +0000 (21:40 +0200)]
zlib: Fix some bindings errors
Rico Tzschichholz [Tue, 6 Apr 2021 19:40:58 +0000 (21:40 +0200)]
pixman-1: Fix some bindings errors
Rico Tzschichholz [Tue, 6 Apr 2021 11:00:16 +0000 (13:00 +0200)]
codegen: Don't override valid target/destroy of previous lambda argument
This does not enable proper support for delegates sharing a data argument,
but allows this special case.
See https://gitlab.gnome.org/GNOME/vala/issues/59
Rico Tzschichholz [Tue, 6 Apr 2021 11:00:16 +0000 (13:00 +0200)]
codegen: Always use CCodeConstant for NULL
Rico Tzschichholz [Tue, 6 Apr 2021 11:00:16 +0000 (13:00 +0200)]
codegen: Fix default value of get_ccode_destroy_notify_pos() and make use of it
Rico Tzschichholz [Mon, 5 Apr 2021 17:06:40 +0000 (19:06 +0200)]
javascriptcoregtk-4.0,webkit2gtk-web-extension-4.0: Fix some binding errors
Rico Tzschichholz [Mon, 5 Apr 2021 17:06:40 +0000 (19:06 +0200)]
girwriter: Don't use instance-parameter inside callback (2)
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1167
Rico Tzschichholz [Thu, 1 Apr 2021 13:33:43 +0000 (15:33 +0200)]
girwriter: Don't use instance-parameter inside callback
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1167
Rico Tzschichholz [Thu, 1 Apr 2021 13:33:43 +0000 (15:33 +0200)]
tests/girwriter: Add tests for implicit parameters in virtual-method/callback
Rico Tzschichholz [Thu, 1 Apr 2021 13:33:43 +0000 (15:33 +0200)]
codegen: Improve handling of ellipsis parameter in get_ccode_name()
Rico Tzschichholz [Wed, 31 Mar 2021 13:03:57 +0000 (15:03 +0200)]
girwriter: namespace expects "c:symbol-prefixes" attribute
In addition to
ef9c592dac6ee3a6db39e924de423e23e5f4a4ef
See https://gitlab.gnome.org/GNOME/vala/issues/1038
Rico Tzschichholz [Wed, 31 Mar 2021 13:03:57 +0000 (15:03 +0200)]
gio-2.0: Fix TlsPassword.get_value() binding
Rico Tzschichholz [Wed, 31 Mar 2021 13:03:57 +0000 (15:03 +0200)]
gtk+-3.0: Fix ModuleInitFunc binding
Rico Tzschichholz [Sat, 20 Mar 2021 21:52:57 +0000 (22:52 +0100)]
vala: Mark tranformed static member-access as qualified
Regression of
1084348f3a6d1113dfc09b3bb5ca6b94a0d812e9
See https://gitlab.gnome.org/GNOME/vala/issues/270
Rico Tzschichholz [Sat, 20 Mar 2021 15:19:35 +0000 (16:19 +0100)]
libvaladoc/girimporter: parse_constant() use "c:identifier" attribute first
Rico Tzschichholz [Sat, 20 Mar 2021 15:19:35 +0000 (16:19 +0100)]
libvaladoc/girimporter: Don't guess length of xml header, iterate forward to <repository>
If e.g. the xml header is missing, it resulted in errors like:
error: expected start element of `repository'
error: unsupported GIR version (null) (supported: 1.2)
Rico Tzschichholz [Fri, 19 Mar 2021 15:00:49 +0000 (16:00 +0100)]
girparser: Don't guess length of xml header, iterate forward to <repository>
If e.g. the xml header is missing, it resulted in errors like:
error: expected start element of `repository'
error: unsupported GIR version (null) (supported: 1.2)
Rico Tzschichholz [Thu, 18 Mar 2021 16:01:39 +0000 (17:01 +0100)]
Release 0.50.5
Rico Tzschichholz [Thu, 18 Mar 2021 13:02:07 +0000 (14:02 +0100)]
webkit2gtk-4.0: Update to 2.31.91
Rico Tzschichholz [Tue, 16 Mar 2021 16:10:52 +0000 (17:10 +0100)]
vapi: Fix a couple of attribute typos
Rico Tzschichholz [Tue, 16 Mar 2021 14:34:02 +0000 (15:34 +0100)]
gio-2.0: Add some missing NoWrapper and CCode.has_typedef attributes
Rico Tzschichholz [Tue, 16 Mar 2021 14:34:02 +0000 (15:34 +0100)]
girparser: Add support for NoWrapper metadata for methods
Rico Tzschichholz [Tue, 16 Mar 2021 11:41:24 +0000 (12:41 +0100)]
codegen: Include "glib.h" for deprecated symbols (GOBJECT)
It is required for G_GNUC_DEPRECATED in declarations of
enums, delegates, methods, property accessors and structs.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1155
Rico Tzschichholz [Mon, 15 Mar 2021 15:02:29 +0000 (16:02 +0100)]
gtk4-unix-print: Switch to gir
Use a temporary symlink to Gtk-4.0.gir which includes the required
symbol defintions.
Rico Tzschichholz [Mon, 15 Mar 2021 15:02:29 +0000 (16:02 +0100)]
girparser: Handle empty "<type/>" element and report an error
Rico Tzschichholz [Mon, 15 Mar 2021 15:02:29 +0000 (16:02 +0100)]
gtk4: Update to 4.1.2
Rico Tzschichholz [Sun, 14 Mar 2021 12:16:58 +0000 (13:16 +0100)]
linux: Provide Input.Event.input_event_sec/input_event_usec fields
Mark Input.Event.time as deprecated
See https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit?id=
152194fe9c3f
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1152
Rico Tzschichholz [Sun, 14 Mar 2021 11:38:16 +0000 (12:38 +0100)]
vala: Improve error for incompatible expressions in conditional expression
Rico Tzschichholz [Sun, 14 Mar 2021 07:26:42 +0000 (08:26 +0100)]
girparser: Allow overriding of "Compact" attribute for classes
Rico Tzschichholz [Sun, 14 Mar 2021 07:06:22 +0000 (08:06 +0100)]
gtk4: Add Gtk.INVALID_LIST_POSITION
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1151
Rico Tzschichholz [Fri, 12 Mar 2021 09:15:03 +0000 (10:15 +0100)]
gsl: Fix some binding errors
Rico Tzschichholz [Fri, 12 Mar 2021 09:15:03 +0000 (10:15 +0100)]
gnutls: Fix some binding errors
Rico Tzschichholz [Sat, 13 Mar 2021 20:45:40 +0000 (21:45 +0100)]
gtk4: Update to 4.1.1+
fe45f283
Rico Tzschichholz [Wed, 10 Mar 2021 17:51:52 +0000 (18:51 +0100)]
libwnck-3.0: Update to 3.36.0
Rico Tzschichholz [Wed, 10 Mar 2021 11:12:06 +0000 (12:12 +0100)]
vala: Replace all type parameter occurances in parameters for signal delegate
Improves
36999b5ffd63cc56a8648791b02bf07e7da88077
Rico Tzschichholz [Wed, 10 Mar 2021 11:12:06 +0000 (12:12 +0100)]
codegen: Drop inner casts before converting between generics and integers
Found by -Wpointer-to-int-cast
Rico Tzschichholz [Tue, 9 Mar 2021 14:52:30 +0000 (15:52 +0100)]
codegen: Don't add generics arguments/parameters to async finish method
Rico Tzschichholz [Tue, 9 Mar 2021 14:52:30 +0000 (15:52 +0100)]
codegen: Don't ever create null-aware free macro for GenericType
Rico Tzschichholz [Tue, 9 Mar 2021 14:52:30 +0000 (15:52 +0100)]
tests: Add "string concat" test for POSIX to increase coverage
Rico Tzschichholz [Tue, 9 Mar 2021 08:51:21 +0000 (09:51 +0100)]
codegen: Fix access to captured generics in async method of interfaces
Fixes https://gitlab.gnome.org/GNOME/vala/issues/537
Rico Tzschichholz [Tue, 9 Mar 2021 06:59:25 +0000 (07:59 +0100)]
codegen: Use the one available source_reference for internal error
This will at least provide some pointer to where things are going wrong.
In addition to
837d593e00d1a3ca8a6f2d13fb1514bed7672965
See https://gitlab.gnome.org/GNOME/vala/issues/436
Rico Tzschichholz [Tue, 9 Mar 2021 06:24:48 +0000 (07:24 +0100)]
codegen: Free intermediate temp-variables of postcondition expression
and not clearing "temp_ref_values" caused invalid references later.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/80
Rico Tzschichholz [Sun, 7 Mar 2021 16:19:01 +0000 (17:19 +0100)]
codegen: Report error for missing type-arguments of HashTable (de)serialization
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1147
Rico Tzschichholz [Sun, 7 Mar 2021 12:42:16 +0000 (13:42 +0100)]
vala: Check (optional) type-arguments of array creation expression
Rico Tzschichholz [Sun, 7 Mar 2021 13:20:43 +0000 (14:20 +0100)]
vala: Check array type of declarations for errornous type-arguments
Rico Tzschichholz [Sun, 7 Mar 2021 12:42:16 +0000 (13:42 +0100)]
vala: Move type-argument/-parameter count check to DataType.check_type_arguments()
Rico Tzschichholz [Sun, 7 Mar 2021 12:42:16 +0000 (13:42 +0100)]
gio-2.0: Add some missing type-arguments
Rico Tzschichholz [Sun, 7 Mar 2021 12:42:16 +0000 (13:42 +0100)]
glib-2.0: Add some missing type-arguments
Rico Tzschichholz [Sun, 7 Mar 2021 12:42:16 +0000 (13:42 +0100)]
vala: Add missing null-check in DataType.get_type_signature()
If an instance struct field can not be resolved to a valid
type-signature then bail.
This fixes criticals like:
g_string_insert_len: assertion 'len == 0 || val != NULL' failed
Rico Tzschichholz [Sat, 6 Mar 2021 13:06:10 +0000 (14:06 +0100)]
gdbus: Don't leak memory of deserialized arguments on error in wrapper method
Found by -fsanitize=address
Rico Tzschichholz [Sat, 6 Mar 2021 11:38:01 +0000 (12:38 +0100)]
gtk4: Update to 4.1.1+
f8f90d85
Rico Tzschichholz [Sat, 6 Mar 2021 08:46:32 +0000 (09:46 +0100)]
vala: Fix ownership inheritance of "unowned var" in foreach statement
Rico Tzschichholz [Fri, 5 Mar 2021 18:32:38 +0000 (19:32 +0100)]
tests: Add more "gir" tests to increase coverage
Rico Tzschichholz [Fri, 5 Mar 2021 18:32:38 +0000 (19:32 +0100)]
testrunner: Include Gio-2.0/gio-2.0 for GIR tests too
Rico Tzschichholz [Fri, 5 Mar 2021 12:47:28 +0000 (13:47 +0100)]
codegen: Inherit GType from base struct of SimpleType structs
GValue functions and marshaller type are inherited from base structs
already.
This avoids invalid C code which referenced an unavailable GType.
Rico Tzschichholz [Thu, 4 Mar 2021 18:12:15 +0000 (19:12 +0100)]
tests: Add more "gir" tests to increase coverage
Rico Tzschichholz [Thu, 4 Mar 2021 18:12:15 +0000 (19:12 +0100)]
Regenerate GIR-based bindings to pick up missing class methods
Rico Tzschichholz [Thu, 4 Mar 2021 18:12:15 +0000 (19:12 +0100)]
girparser: Evaluate "glib:type-struct" twice to pick up reparented structs
Rico Tzschichholz [Tue, 2 Mar 2021 16:55:25 +0000 (17:55 +0100)]
codegen: "_first_array" parameter for params-array is variadic too
Not following this resulted in mismatching signature assumptions between
caller and callee if the callable throws an error.
Rico Tzschichholz [Wed, 3 Mar 2021 16:59:54 +0000 (17:59 +0100)]
tests: Extend "pre-post increment" test to increase coverage
Rico Tzschichholz [Wed, 3 Mar 2021 15:06:34 +0000 (16:06 +0100)]
tests: Add some tests to increase coverage
Rico Tzschichholz [Wed, 3 Mar 2021 16:37:04 +0000 (17:37 +0100)]
vala: Fix build with valac < 0.44
Rico Tzschichholz [Wed, 3 Mar 2021 16:01:41 +0000 (17:01 +0100)]
vala: Report warning if --target-glib=auto was not evaluated successfully
and don't try to process the valid "auto" string any further.
Rico Tzschichholz [Wed, 3 Mar 2021 09:05:00 +0000 (10:05 +0100)]
codegen: More use of get_ccode_type_name()
Rico Tzschichholz [Wed, 3 Mar 2021 09:05:00 +0000 (10:05 +0100)]
Regenerate GIR-based bindings to pick up missing type_cname attributes
Rico Tzschichholz [Wed, 3 Mar 2021 09:05:00 +0000 (10:05 +0100)]
girparser: Reuse populated Node.gtype_struct_for instead of resolving again
This fixes the discovery of non-default type_cname for re-parented symbols.
Rico Tzschichholz [Sat, 13 Mar 2021 20:19:09 +0000 (21:19 +0100)]
Correct Bindings NEWS for 0.50.4
Rico Tzschichholz [Sun, 28 Feb 2021 08:22:05 +0000 (09:22 +0100)]
Release 0.50.4