]>
git.ipfire.org Git - thirdparty/vala.git/log
Rico Tzschichholz [Sun, 9 Feb 2020 13:44:43 +0000 (14:44 +0100)]
Release 0.46.6
Rico Tzschichholz [Wed, 5 Feb 2020 07:32:53 +0000 (08:32 +0100)]
testrunner: Invalid tests and therefore expected failures must return 1
Rico Tzschichholz [Wed, 5 Feb 2020 07:32:53 +0000 (08:32 +0100)]
vala: Don't ignore errors in Parameter and acknowledge them further
This avoids useless subsequent errors and possible criticals while
operating on broken AST.
Rico Tzschichholz [Tue, 4 Feb 2020 15:58:52 +0000 (16:58 +0100)]
vala: Fix base-access check for compact classes (2)
See
84de99560ee96afa8cb80db3b342d584a72188cd
Rico Tzschichholz [Tue, 4 Feb 2020 09:05:04 +0000 (10:05 +0100)]
Correct a few spelling errors in user visible strings
Rico Tzschichholz [Mon, 3 Feb 2020 10:02:47 +0000 (11:02 +0100)]
gtk4: Update to 3.96.0+
4ab12ab7
Rico Tzschichholz [Sat, 1 Feb 2020 15:37:36 +0000 (16:37 +0100)]
codegen: Explicitly include <glib.h> as needed for null-literal
Rico Tzschichholz [Sat, 1 Feb 2020 15:29:59 +0000 (16:29 +0100)]
codegen: Explicitly include header for length-type of arrays
Rico Tzschichholz [Sat, 1 Feb 2020 13:47:00 +0000 (14:47 +0100)]
vala: Inline allocated arrays require length or initializer
Fixes https://gitlab.gnome.org/GNOME/vala/issues/903
Rico Tzschichholz [Thu, 30 Jan 2020 12:42:43 +0000 (13:42 +0100)]
tests: Add more "parser" tests to increase coverage
Princeton Ferro [Wed, 29 Jan 2020 04:14:42 +0000 (23:14 -0500)]
vala: Improve detection of recursive struct declarations
Introduced with
da2d58c95f39fd142dc845f5df9cdcd55be32476
Fixes https://gitlab.gnome.org/GNOME/vala/issues/902
Rico Tzschichholz [Fri, 24 Jan 2020 21:48:06 +0000 (22:48 +0100)]
codegen: Handle different type-symbols in visit_base_access()
It is required to distinguish between classes, compact classes, structs
and simple-type structs.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/901
Rico Tzschichholz [Fri, 24 Jan 2020 22:29:01 +0000 (23:29 +0100)]
codegen: Skip StructRegisterFunction for boolean/integer/floating types
Fixes https://gitlab.gnome.org/GNOME/vala/issues/901
Rico Tzschichholz [Sat, 25 Jan 2020 17:33:13 +0000 (18:33 +0100)]
vala: Fix base-access check for compact classes
See
84de99560ee96afa8cb80db3b342d584a72188cd
Rico Tzschichholz [Wed, 22 Jan 2020 10:15:04 +0000 (11:15 +0100)]
gtk+-3.0: Update to 3.24.13+
3822ac74
Rico Tzschichholz [Thu, 21 Nov 2019 13:37:54 +0000 (14:37 +0100)]
gstreamer: Update from 1.17.0+ git master
Rico Tzschichholz [Thu, 21 Nov 2019 13:38:06 +0000 (14:38 +0100)]
gtk4: Update to 3.96.0+
7e2e92a8
Rico Tzschichholz [Mon, 20 Jan 2020 19:03:57 +0000 (20:03 +0100)]
webkit2gtk-4.0: Update to 2.27.4
Rico Tzschichholz [Wed, 27 Nov 2019 12:55:35 +0000 (13:55 +0100)]
webkit2gtk-4.0: Update to 2.27.3
Rico Tzschichholz [Sat, 18 Jan 2020 17:00:28 +0000 (18:00 +0100)]
Regenerate for GIR-based bindings to apply explicit ctype attributes
Rico Tzschichholz [Sat, 18 Jan 2020 16:58:42 +0000 (17:58 +0100)]
girparser: Apply explicitly given ctype metadata attributes on callables
Rico Tzschichholz [Mon, 20 Jan 2020 11:45:03 +0000 (12:45 +0100)]
girparser: Improve source_reference of parameters
Rico Tzschichholz [Tue, 21 Jan 2020 16:56:28 +0000 (17:56 +0100)]
codegen: Cast instance parameter in member-initializer for base-properties
This fixes warnings issued with -Wincompatible-pointer-types
Fixes https://gitlab.gnome.org/GNOME/vala/issues/899
Princeton Ferro [Sat, 18 Jan 2020 19:03:37 +0000 (20:03 +0100)]
vala: Always bail if there are semantic errors
Previously introduced by
1430c461d4a45026331663989113feb195588255
Rico Tzschichholz [Tue, 14 Jan 2020 07:36:26 +0000 (08:36 +0100)]
codegen: Use result value of assignment rather than its computation
An inline assignment of an array-length, like
int j = --i.length;
resulted in a faulty tranformation
i_length1 = i_length1 - 1;
j = i_length1 - 1;
Regression of
80d4bf61e0c3100c839f3fdbcb5218996b6afd5f
Fixes https://gitlab.gnome.org/GNOME/vala/issues/895
Princeton Ferro [Sun, 12 Jan 2020 03:33:05 +0000 (22:33 -0500)]
parser: Extend source_reference of parenthesized expr to cover "( ... )"
Rico Tzschichholz [Tue, 7 Jan 2020 16:20:25 +0000 (17:20 +0100)]
codegen: Don't set implemenation of interface property to its own
A base-class is allowed to provide interface implementations for methods
and properties. If those exist without an explicit implementation in the
sub-class we then we end up finding the interface property itself. Using
that is obviously wrong and causes a cyclic call stack.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/891
Jeremy Philippe [Sat, 21 Dec 2019 19:55:53 +0000 (20:55 +0100)]
genie: Fix parser's inner state when a struct is declared after a class
If the struct is declared after a class and has a default creation
method, the parser will raise a "missing return type in method ..."
error.
The cause of the bug is that the global 'class_name' variable is not
updated when the parser encounters a struct, so the previous value
is used, and if a class has been parsed before, this value will be the
name of the class instead of the struct.
Jeremy Philippe [Sat, 21 Dec 2019 10:54:30 +0000 (11:54 +0100)]
vala: Allow to override base interface properties explicitly
Rico Tzschichholz [Mon, 9 Dec 2019 11:15:44 +0000 (12:15 +0100)]
vala: Check before accessing "name" of parent_symbol which might be null
Rico Tzschichholz [Thu, 5 Dec 2019 17:03:13 +0000 (18:03 +0100)]
glib-2.0: Add to_string() for GLib.PollFd and GLib.Pid
Rico Tzschichholz [Tue, 3 Dec 2019 12:02:13 +0000 (13:02 +0100)]
vala: Don't allow "va_list" as return-type or type of fields
Fixes https://gitlab.gnome.org/GNOME/vala/issues/884
Rico Tzschichholz [Mon, 2 Dec 2019 11:06:41 +0000 (12:06 +0100)]
vala: Improve error message for unsupported inner types and declarations
Rico Tzschichholz [Tue, 26 Nov 2019 13:31:20 +0000 (14:31 +0100)]
test: Add some "method-call" tests to increase coverage
Rico Tzschichholz [Wed, 27 Nov 2019 12:38:47 +0000 (13:38 +0100)]
vala: Don't report further errors if MemberInitializer.check() failed
Rico Tzschichholz [Wed, 27 Nov 2019 10:42:55 +0000 (11:42 +0100)]
vala: Don't ignore inner errors in Block and acknowledge them further
This avoids useless subsequent errors and possible criticals while
operating on broken AST.
Rico Tzschichholz [Tue, 26 Nov 2019 10:06:45 +0000 (11:06 +0100)]
codegen: Fix precondition in creation method of structs
Rico Tzschichholz [Sun, 24 Nov 2019 21:42:18 +0000 (22:42 +0100)]
parser: Implicit "main" method of main-block is public and static
Rico Tzschichholz [Sun, 24 Nov 2019 17:23:58 +0000 (18:23 +0100)]
tests: Add "member-access" tests to increase coverage
Rico Tzschichholz [Sun, 24 Nov 2019 17:23:58 +0000 (18:23 +0100)]
tests: Add "scanner" tests to increase coverage
Rico Tzschichholz [Sun, 24 Nov 2019 17:23:58 +0000 (18:23 +0100)]
tests: Extend "float and integer" tests to increase coverage
Rico Tzschichholz [Thu, 21 Nov 2019 07:37:32 +0000 (08:37 +0100)]
vala: Add a basic parameter check for [Print] methods
and add tests to increase coverage
Introdruced with
ea8cd97480a7a560cfd8ae3f060f63638b7d9de4
Rico Tzschichholz [Tue, 19 Nov 2019 08:34:50 +0000 (09:34 +0100)]
tests: Fix and make fast-vapi test actually fatal
Rico Tzschichholz [Tue, 19 Nov 2019 08:11:39 +0000 (09:11 +0100)]
vala: Keep formal_target_type when transforming method-call/object-creation
Fixes https://gitlab.gnome.org/GNOME/vala/issues/835
Rico Tzschichholz [Mon, 18 Nov 2019 12:02:28 +0000 (13:02 +0100)]
vala: VoidType is actually compatible with itself
See https://gitlab.gnome.org/GNOME/vala/issues/878
Rico Tzschichholz [Mon, 18 Nov 2019 08:01:44 +0000 (09:01 +0100)]
Release 0.46.5
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 07:48:06 +0000 (08:48 +0100)]
Release 0.46.4
Rico Tzschichholz [Thu, 7 Nov 2019 07:36:17 +0000 (08:36 +0100)]
gtk+-3.0: Skip _MountOperationHandler* symbols
Rico Tzschichholz [Tue, 22 Oct 2019 15:56:45 +0000 (17:56 +0200)]
webkit2gtk-4.0: Update to 2.27.2
Rico Tzschichholz [Wed, 16 Oct 2019 15:28:35 +0000 (17:28 +0200)]
webkit2gtk-4.0: Update to 2.27.1
Rico Tzschichholz [Tue, 5 Nov 2019 12:22:46 +0000 (13:22 +0100)]
gio-2.0: Use custom TaskReadyCallback delegate in Task.report*_error()
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 [Wed, 6 Nov 2019 12:23:06 +0000 (13:23 +0100)]
gstreamer: Update from 1.17.0+ git master
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 [Fri, 18 Oct 2019 13:41:30 +0000 (15:41 +0200)]
codegen: Reduce code duplications when generation base-access
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 [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