]>
git.ipfire.org Git - thirdparty/vala.git/log
Rico Tzschichholz [Sun, 22 Aug 2021 15:50:40 +0000 (17:50 +0200)]
Release 0.50.10
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
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 [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
Rico Tzschichholz [Fri, 25 Jun 2021 06:58:12 +0000 (08:58 +0200)]
girwriter: Respect GIR.name for constants, errordomains and delegates
See https://gitlab.gnome.org/GNOME/vala/issues/1196
Rico Tzschichholz [Fri, 25 Jun 2021 07:07:16 +0000 (09:07 +0200)]
tests/girwriter: Add missing [Flags] annotation
Rico Tzschichholz [Wed, 23 Jun 2021 08:56:01 +0000 (10:56 +0200)]
codegen: Fix variadic constructors for compact classes and structs
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1195
Rico Tzschichholz [Wed, 26 May 2021 16:39:20 +0000 (18:39 +0200)]
codegen: Implementing GLib.Source.prepare/check is optional since 2.36
Rico Tzschichholz [Sun, 6 Jun 2021 16:11:02 +0000 (18:11 +0200)]
codegen: Allow null to initialize non-null struct inside initializer list
Fixes https://gitlab.gnome.org/GNOME/vala/issues/594
Rico Tzschichholz [Fri, 4 Jun 2021 07:13:19 +0000 (09:13 +0200)]
Release 0.50.9
Rico Tzschichholz [Wed, 26 May 2021 16:21:31 +0000 (18:21 +0200)]
glib-2.0: Add missing has_typedef attributes on SourceFuncs delegates
Rico Tzschichholz [Wed, 26 May 2021 15:17:03 +0000 (17:17 +0200)]
pango: Mark language parameter of AttrIterator.get_font() as out
Rico Tzschichholz [Wed, 26 May 2021 07:02:52 +0000 (09:02 +0200)]
vala: Parameter following params-array parameter is not allowed
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1183
Rico Tzschichholz [Thu, 20 May 2021 19:24:38 +0000 (21:24 +0200)]
codegen/vala: Improve check for GLib.Source derived classes
Rico Tzschichholz [Fri, 7 May 2021 11:46:28 +0000 (13:46 +0200)]
tests: Extend "generics reference transfer" test to increase coverage
Rico Tzschichholz [Mon, 17 May 2021 16:56:12 +0000 (18:56 +0200)]
tests: Add "no-reply" DBus test to increase coverage
Rico Tzschichholz [Sun, 9 May 2021 19:28:25 +0000 (21:28 +0200)]
codegen: Mark entry point method implementation "_vala_main" as static
Thanks to Al Thomas
Alistair Thomas [Sat, 8 May 2021 11:43:43 +0000 (12:43 +0100)]
doc: Update man page to include more information on profiles
Rico Tzschichholz [Mon, 3 May 2021 19:12:38 +0000 (21:12 +0200)]
codegen: Replace wrongly hard coded usage of G_OBJECT_GET_CLASS
This is used by plain GTypeInstance classes as well.
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