]>
git.ipfire.org Git - thirdparty/vala.git/log
Rico Tzschichholz [Mon, 18 Nov 2019 08:35:16 +0000 (09:35 +0100)]
Release 0.44.11
Rico Tzschichholz [Sat, 16 Nov 2019 11:51:08 +0000 (12:51 +0100)]
tests: Add "invalid address-of" test to increase coverage
Rico Tzschichholz [Thu, 14 Nov 2019 20:04:42 +0000 (21:04 +0100)]
vala: Don't require constant initializer in fast-vapi
Regression of
984c034256de3830d6daa0ab6f5eff108dea09bb
Extend --fast-vapi test by using --use-fast-vapi
See https://github.com/dino/dino/issues/646
and https://gitlab.gnome.org/GNOME/vala/issues/461
Rico Tzschichholz [Thu, 14 Nov 2019 16:28:08 +0000 (17:28 +0100)]
codegen: Fix vfunc signature of delegate-typed property in interface
Rico Tzschichholz [Thu, 14 Nov 2019 13:53:04 +0000 (14:53 +0100)]
vala: Report error for async creation expression without yield
Rico Tzschichholz [Thu, 14 Nov 2019 11:32:15 +0000 (12:32 +0100)]
codegen: Fix support of dynamic DBus methods
Rico Tzschichholz [Tue, 12 Nov 2019 22:49:35 +0000 (23:49 +0100)]
test: Add "GLib.Closure parameter" test to increase coverage
Rico Tzschichholz [Tue, 12 Nov 2019 13:20:07 +0000 (14:20 +0100)]
test: Add "GLib.Log constants" tests to increase coverage
Rico Tzschichholz [Sat, 9 Nov 2019 14:20:11 +0000 (15:20 +0100)]
glib-2.0: Add "has_typedef = false" to custom MarkupParser*Func delegates
Rico Tzschichholz [Mon, 11 Nov 2019 08:10:33 +0000 (09:10 +0100)]
Release 0.44.10
Rico Tzschichholz [Thu, 7 Nov 2019 11:15:27 +0000 (12:15 +0100)]
gio-2.0: Sync metadata from 0.46
Rico Tzschichholz [Tue, 5 Nov 2019 14:53:14 +0000 (15:53 +0100)]
gtk4,gtk4-unix-print: Update to 3.96.0+
ab407ba5
Rico Tzschichholz [Thu, 7 Nov 2019 07:36:17 +0000 (08:36 +0100)]
gtk+-3.0: Skip _MountOperationHandler* symbols
Rico Tzschichholz [Wed, 6 Nov 2019 20:03:51 +0000 (21:03 +0100)]
vala: Restore DestroysInstance behaviour for non-compact classes
Although this attribute is not meant to be applied on methods of reference
counted classes, the original behaviour should not be changed silently.
Regression of
3d83f31a659bd179e8a867dd054126ac6f22e82b
Fixes https://gitlab.gnome.org/GNOME/vala/issues/873
Ole André Vadla Ravnås [Sun, 29 Jul 2018 18:54:24 +0000 (20:54 +0200)]
vala: Add missing gmodule-2.0 to Requires.private of pkg-config file
Rico Tzschichholz [Wed, 6 Nov 2019 08:25:53 +0000 (09:25 +0100)]
libvaladoc: Move gmodule-2.0 to Requires.private of pkg-config file
It is not required by the public API
Rico Tzschichholz [Sun, 27 Aug 2017 18:28:39 +0000 (20:28 +0200)]
g-i: Ignore flags like -mfpmath=sse, -msse or -msse2
Rico Tzschichholz [Tue, 5 Nov 2019 14:34:52 +0000 (15:34 +0100)]
g-i: Avoid use of uninitialized "markup" warning
Rico Tzschichholz [Tue, 5 Nov 2019 14:33:43 +0000 (15:33 +0100)]
g-i: Calculate size correctly, avoid use-after-free
Rico Tzschichholz [Tue, 5 Nov 2019 09:07:49 +0000 (10:07 +0100)]
vala: Write value of constants/enums in fast-vapi if they are constant only
Introduced by
89a1243a4f066cc9652b26f86eb94fd038874982
Fixes https://gitlab.gnome.org/GNOME/vala/issues/461
Rico Tzschichholz [Sat, 2 Nov 2019 06:37:33 +0000 (07:37 +0100)]
codegen: Make type-parameter properties readable
Those are immutable while being construct-only properties.
See https://gitlab.gnome.org/GNOME/vala/issues/190
Rico Tzschichholz [Sun, 3 Nov 2019 19:07:40 +0000 (20:07 +0100)]
tests: Add invalid "multiple base classes" tests to increase coverage
Rico Tzschichholz [Sun, 3 Nov 2019 19:03:20 +0000 (20:03 +0100)]
vala: Improve error reporting for invalid interface prerequisites
Fixes https://gitlab.gnome.org/GNOME/vala/issues/437
Rico Tzschichholz [Fri, 1 Nov 2019 15:50:12 +0000 (16:50 +0100)]
girwriter: Add readable="0"/private="1" attribute to type-specific fields
Rico Tzschichholz [Thu, 31 Oct 2019 09:39:44 +0000 (10:39 +0100)]
codegen: Fix setting of generic-type properties for gobject style chain up
Correctly refer to their canonical names.
See https://bugzilla.gnome.org/show_bug.cgi?id=654702
Florian Brosch [Tue, 2 Sep 2014 23:37:31 +0000 (01:37 +0200)]
vala: Improve error message for arrays as type arguments
Florian Brosch [Wed, 17 Sep 2014 12:45:52 +0000 (14:45 +0200)]
vala: Do not allow to change .length of arrays with fixed length
This would result in invalid C code.
Florian Brosch [Wed, 17 Sep 2014 12:49:00 +0000 (14:49 +0200)]
vala: Do not allow to .resize() on arrays with fixed length
Florian Brosch [Thu, 18 Sep 2014 03:09:03 +0000 (05:09 +0200)]
vala: Infer array length of inline allocated arrays for fields
Don't allow non-arrays as initializer for inline allocated arrays
Same as
0f0bca7e0519af13d9217fbca2c20ce67cd3baba
See https://bugzilla.gnome.org/show_bug.cgi?id=644046
Florian Brosch [Tue, 16 Sep 2014 22:17:01 +0000 (00:17 +0200)]
vala: Do not allow += for arrays with fixed length
Rico Tzschichholz [Thu, 24 Oct 2019 12:15:56 +0000 (14:15 +0200)]
vala: Don't falsely resolve binary-expression to bool
Fixes https://gitlab.gnome.org/GNOME/vala/issues/869
Rico Tzschichholz [Wed, 23 Oct 2019 20:50:22 +0000 (22:50 +0200)]
linux: Add memfd_create(2)
Rico Tzschichholz [Wed, 23 Oct 2019 13:30:40 +0000 (15:30 +0200)]
tests: Add invalid "silent cast of array" test to increase coverage
Rico Tzschichholz [Wed, 23 Oct 2019 12:21:49 +0000 (14:21 +0200)]
tests: Add "typeof" tests for fundamental GLib.Type
Rico Tzschichholz [Wed, 23 Oct 2019 12:21:49 +0000 (14:21 +0200)]
vala: Issue warning when passing arrays to typeof(), except for "string[]"
Passing arrays resolve to G_TYPE_INVALID, and "string[]" to G_TYPE_STRV
See https://gitlab.gnome.org/GNOME/vala/issues/868
Rico Tzschichholz [Tue, 22 Oct 2019 16:42:16 +0000 (18:42 +0200)]
girparser: Detect and replace "-" in parameter names
... to avoid generating bindings with invalid syntax.
Rico Tzschichholz [Mon, 21 Oct 2019 13:35:07 +0000 (15:35 +0200)]
libuse-1.0: Remove unused private "malloc" binding
Rico Tzschichholz [Mon, 21 Oct 2019 13:19:09 +0000 (15:19 +0200)]
posix: Bind some essential memory allocation functions
Rico Tzschichholz [Sun, 20 Oct 2019 06:58:45 +0000 (08:58 +0200)]
libusb-1.0: Don't depend on glib-2.0
Rico Tzschichholz [Fri, 18 Oct 2019 06:17:33 +0000 (08:17 +0200)]
tests: Extend "property base-access" interface test to increase coverage
Rico Tzschichholz [Fri, 18 Oct 2019 13:41:30 +0000 (15:41 +0200)]
codegen: Reduce code duplications when generation base-access
Rico Tzschichholz [Thu, 17 Oct 2019 12:04:15 +0000 (14:04 +0200)]
codegen: Use G_TYPE_INSTANCE_GET_INTERFACE to get vtable for base-access
Usage of the pre-assigned *_parent_iface field is only possible in classes
which explicitly implement an interface.
Rico Tzschichholz [Thu, 17 Oct 2019 11:00:15 +0000 (13:00 +0200)]
tests: Add "default-handler with base-access" signal test to increase coverage
Rico Tzschichholz [Thu, 17 Oct 2019 07:51:21 +0000 (09:51 +0200)]
tests: Extent "post-condition" virtual method test to increase coverage
Rico Tzschichholz [Thu, 17 Oct 2019 06:50:14 +0000 (08:50 +0200)]
codegen: Drop unreachable and misplaced code
Dropped with
8aa6299ea7a39e7a652ce3896324aaa47af99a18 and falsely
reintroduced with
7a429688cdf0fd16cc1503a7666681792e309da8
Rico Tzschichholz [Wed, 16 Oct 2019 17:16:20 +0000 (19:16 +0200)]
tests: Extent "girwriter" test to increase coverage
Rico Tzschichholz [Tue, 15 Oct 2019 11:59:19 +0000 (13:59 +0200)]
tests: Add "wrongly named constructor" tests
Rico Tzschichholz [Tue, 15 Oct 2019 08:21:06 +0000 (10:21 +0200)]
codegen: ErrorType is not a Symbol
Rico Tzschichholz [Fri, 11 Oct 2019 14:48:29 +0000 (16:48 +0200)]
parser: `owned` is not allowed on Constants
This avoids criticals and broken c-code.
Rico Tzschichholz [Thu, 10 Oct 2019 18:42:00 +0000 (20:42 +0200)]
glib-2.0: Guard against passing null source to GLib.Memory.copy()
Found by -fsanitize=undefined
Rico Tzschichholz [Thu, 10 Oct 2019 16:01:22 +0000 (18:01 +0200)]
libvaladoc: Drop unused code
Rico Tzschichholz [Fri, 11 Oct 2019 14:19:19 +0000 (16:19 +0200)]
libvaladoc: Fix ownership declarations of Constants
Rico Tzschichholz [Thu, 10 Oct 2019 15:40:44 +0000 (17:40 +0200)]
libvaladoc: Fix parameter and property ownership declarations
Rico Tzschichholz [Thu, 10 Oct 2019 09:13:08 +0000 (11:13 +0200)]
valadoc/tests: Use type for property which is compatible with owned getter
Rico Tzschichholz [Wed, 9 Oct 2019 11:05:41 +0000 (13:05 +0200)]
Release 0.44.9
Rico Tzschichholz [Sun, 15 Sep 2019 06:41:03 +0000 (08:41 +0200)]
gtk+-3.0: Fix ownership mismatch of ColorButton.rgba property-accessor
Regression of
9a5cc9e58e160d8bb5308fe5bfc8b433d8c269f5 in combination with
our gtk+-3.0 metadata:
// Keep properties non-abstract as before
*#interface.*#property abstract=false
Fixes https://gitlab.gnome.org/GNOME/vala/issues/844
Rico Tzschichholz [Thu, 16 May 2019 17:43:41 +0000 (19:43 +0200)]
Regenerate GIDL-based bindings to fix getter ownership of struct properties
Rico Tzschichholz [Thu, 9 May 2019 17:06:11 +0000 (19:06 +0200)]
Regenerate GIR-based bindings to fix getter ownership of struct properties
Rico Tzschichholz [Thu, 16 May 2019 15:24:05 +0000 (17:24 +0200)]
vala: Trust "value_owned" when writing property getter
Rico Tzschichholz [Tue, 8 Oct 2019 12:05:17 +0000 (14:05 +0200)]
Regenerate GIR-based bindings to pick up copy/free attributes
Fixes https://gitlab.gnome.org/GNOME/vala/issues/863
Rico Tzschichholz [Tue, 8 Oct 2019 13:07:58 +0000 (15:07 +0200)]
codegen: Use gtype-boxed API for structs with "g_boxed_free" attribute
See https://gitlab.gnome.org/GNOME/vala/issues/863
Rico Tzschichholz [Tue, 8 Oct 2019 12:04:35 +0000 (14:04 +0200)]
girparser: Add required copy/free attributes for gtype-boxed structs
See https://gitlab.gnome.org/GNOME/vala/issues/863
Rico Tzschichholz [Sat, 5 Oct 2019 09:15:04 +0000 (11:15 +0200)]
vapi: Perform syntax and semantic check for all bindings on "make check"
Rico Tzschichholz [Sat, 5 Oct 2019 10:18:19 +0000 (12:18 +0200)]
vala: Don't issue a warning for non-public struct fields in bindings
Rico Tzschichholz [Sat, 5 Oct 2019 10:17:39 +0000 (12:17 +0200)]
tokyocabinet: Fix deprecation warnings
Rico Tzschichholz [Sat, 5 Oct 2019 08:35:20 +0000 (10:35 +0200)]
gnutls: Fix "use of possibly unassigned parameter" warnings
Rico Tzschichholz [Sat, 5 Oct 2019 08:34:52 +0000 (10:34 +0200)]
avahi-client: Fix "use of possibly unassigned parameter" warnings
Rico Tzschichholz [Sat, 5 Oct 2019 08:26:09 +0000 (10:26 +0200)]
xcb: Fix "missing return statement at end of subroutine body" errors
Rico Tzschichholz [Fri, 4 Oct 2019 12:12:46 +0000 (14:12 +0200)]
vala: Fix compatible/disposable check between structs and their subtypes
This fixes memory leaks due to missing copy/destroy and improperly created
dup functions and allows direct assignment between structs and their
subtypes.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/861
Rico Tzschichholz [Thu, 3 Oct 2019 11:34:52 +0000 (13:34 +0200)]
tests: Add dedicated "delegate without target through varargs" test
Rico Tzschichholz [Wed, 2 Oct 2019 13:07:32 +0000 (15:07 +0200)]
codegen: Silence warning about copying if delegate doesn't carry its target
Rico Tzschichholz [Wed, 2 Oct 2019 16:19:53 +0000 (18:19 +0200)]
codegen: Initialize delegate temp-var which is assigned by property getter
Found by -Werror=maybe-uninitialized
Rico Tzschichholz [Wed, 2 Oct 2019 21:23:12 +0000 (23:23 +0200)]
codegen: Preserve full access to delegate variables and its target/destroy cvalues
Don't unconditionally set delegate_target_destroy_notify_cvalue to NULL for any
variable access.
Rico Tzschichholz [Wed, 2 Oct 2019 16:08:18 +0000 (18:08 +0200)]
glib-2.0: Set default_value attribute for GLib.pointer
Rico Tzschichholz [Wed, 2 Oct 2019 17:48:32 +0000 (19:48 +0200)]
docs: Mention requirement of autoconf-archive as build-dependency
Rico Tzschichholz [Tue, 1 Oct 2019 14:21:21 +0000 (16:21 +0200)]
ccode: Implicitly register declaration for added CCodeFunction
This will prevent the user's vala source to override implicitly defined
functions of vala's boilerblate for a type.
Rico Tzschichholz [Tue, 1 Oct 2019 14:21:21 +0000 (16:21 +0200)]
codegen: Accept children after generating type specific declarations
Rico Tzschichholz [Mon, 15 Jul 2019 13:22:40 +0000 (15:22 +0200)]
gtk4: Constructors of Gtk.MediaFile needs to be static functions
Rico Tzschichholz [Mon, 30 Sep 2019 06:50:36 +0000 (08:50 +0200)]
gtk4: Update to 3.96.0+
bcea9652
Rico Tzschichholz [Thu, 26 Sep 2019 09:08:31 +0000 (11:08 +0200)]
vala: Allow to override virtual interface implementations
Fixes https://gitlab.gnome.org/GNOME/vala/issues/852
Rico Tzschichholz [Fri, 13 Sep 2019 11:58:00 +0000 (13:58 +0200)]
vala: Output "params" qualifier of parameters
Rico Tzschichholz [Fri, 13 Sep 2019 11:54:53 +0000 (13:54 +0200)]
vala: Report dedicated error message for params-array parameter mismatch
Rico Tzschichholz [Tue, 24 Sep 2019 11:21:44 +0000 (13:21 +0200)]
tests: Add more "invalid expression" tests to increase coverage
Rico Tzschichholz [Tue, 24 Sep 2019 10:28:44 +0000 (12:28 +0200)]
tests: Add "main block" parser test to increase coverage
Rico Tzschichholz [Tue, 24 Sep 2019 10:18:00 +0000 (12:18 +0200)]
tests: Extent "post-condition" creation method test to increase coverage
Rico Tzschichholz [Mon, 23 Sep 2019 17:06:50 +0000 (19:06 +0200)]
tests: Add invalid "parser" tests to increase coverage
Rico Tzschichholz [Mon, 23 Sep 2019 15:38:44 +0000 (17:38 +0200)]
tests: Add "qualified member/symbol access" tests to increase coverage
Rico Tzschichholz [Sun, 22 Sep 2019 20:14:18 +0000 (22:14 +0200)]
gio-unix-2.0: Fix DesktopAppInfo.get_string(), UnixFDMessage.steal_fds()
... and DesktopAppInfoLookup.get_default_for_uri_scheme()
Additionally adjust some header references.
Rico Tzschichholz [Sun, 22 Sep 2019 16:29:43 +0000 (18:29 +0200)]
Directly use "memmove()" while g_memmove() is deprecated since 2.40
Rico Tzschichholz [Sat, 21 Sep 2019 08:49:20 +0000 (10:49 +0200)]
gobject-2.0: Some cherry-picking from GIR generated binding
Rico Tzschichholz [Sun, 22 Sep 2019 15:29:52 +0000 (17:29 +0200)]
valadoc: Explicitly pass --pkg libgvc
... to deal with a race with valadoc@PACKAGE_SUFFIX@.deps generation
Rico Tzschichholz [Thu, 19 Sep 2019 17:39:44 +0000 (19:39 +0200)]
Release 0.44.8
Rico Tzschichholz [Thu, 19 Sep 2019 17:48:06 +0000 (19:48 +0200)]
webkit2gtk-4.0: Update to 2.26.0
Rico Tzschichholz [Thu, 19 Sep 2019 17:39:10 +0000 (19:39 +0200)]
gtk4: Sync from 0.46 branch
Arnaud Bonatti [Wed, 18 Sep 2019 00:24:21 +0000 (02:24 +0200)]
glib-2.0: DateTime.from_iso8601() can take a null TimeZone
Rico Tzschichholz [Mon, 16 Sep 2019 08:46:17 +0000 (10:46 +0200)]
sqlite3: Fix use of possibly unassigned parameter `errmsg'
Rico Tzschichholz [Sun, 15 Sep 2019 16:10:06 +0000 (18:10 +0200)]
gio-unix-2.0: Add UnixMountEntry.get_root_path() since 2.60
Rico Tzschichholz [Sat, 14 Sep 2019 17:22:36 +0000 (19:22 +0200)]
vala: Run FlowAnalyzer on all given source-files
This is a regression triggered by
8f3a0a0b64e0c7fbcc9231c3058247920dd6eeda
where we rely on information gathered by it and its changes to the AST.
Silence "never used" warnings for external-package symbols.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/843
Rico Tzschichholz [Mon, 9 Sep 2019 11:22:09 +0000 (13:22 +0200)]
valadoc: Explicitly pass --pkg libvala@PACKAGE_SUFFIX@ as for doclets/tests
Christian Kellner [Tue, 16 Jul 2019 15:54:29 +0000 (17:54 +0200)]
posix: add *at() calls and related constants
Add missing calls from the *at() call family that was added in
POSIX.1-2008, and related constants.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/823