]>
git.ipfire.org Git - thirdparty/vala.git/log
Rico Tzschichholz [Thu, 19 Dec 2019 09:18:30 +0000 (10:18 +0100)]
Add test case
Jeremy Philippe [Wed, 18 Dec 2019 15:54:05 +0000 (16:54 +0100)]
vala: Add conditional member access.
This implements support for the "null-conditional" operator of C#
(also called "safe navigation" operator).
It supports both plain member access and method calls (including void
method calls, which are simply bypassed if the inner expression is
null).
Rico Tzschichholz [Mon, 9 Dec 2019 12:50:55 +0000 (13:50 +0100)]
vapi: Update GIR-based bindings
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:47:51 +0000 (18:47 +0100)]
glib-2.0: Add new symbols from 2.64
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 [Fri, 6 Dec 2019 08:27:15 +0000 (09:27 +0100)]
codegen: Don't attribute *_get_type_once() with G_GNUC_CONST
Follow up on
6b03920e39bc3900148d02ea5c2ddc13d6e91091
Rico Tzschichholz [Thu, 5 Dec 2019 13:08:36 +0000 (14:08 +0100)]
codegen: Improve *_get_type() fast path (requires glib >= 2.58)
Uses G_GNUC_NO_INLINE if glib >= 2.58 is targetted otherwise the
compiler is free to inline the separate *_get_type_once() function.
Follows the changes introduced in glib by
https://gitlab.gnome.org/GNOME/glib/commit/
e924f777369710221c3e0a9d7bf40392a27d1fa4
See https://gitlab.gnome.org/GNOME/glib/issues/541
and https://gitlab.gnome.org/GNOME/vala/issues/879
Rico Tzschichholz [Thu, 5 Dec 2019 13:08:36 +0000 (14:08 +0100)]
codegen: Remove unreachable code in TypeRegisterFunction.init_from_type()
Not used since
79b1a3e39a3d2bac9fbe40c99336b3b89e374571
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 [Wed, 27 Nov 2019 12:57:21 +0000 (13:57 +0100)]
gstreamer: Update from 1.17.0+ git master
Rico Tzschichholz [Wed, 27 Nov 2019 12:56:26 +0000 (13:56 +0100)]
gtk4: Update to 3.96.0+
9f69c7f3
Rico Tzschichholz [Wed, 27 Nov 2019 12:55:35 +0000 (13:55 +0100)]
webkit2gtk-4.0: Update to 2.27.3
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 [Tue, 26 Nov 2019 09:47:56 +0000 (10:47 +0100)]
vala: Include type_name to default implementation of CCode.to_string()
Rico Tzschichholz [Mon, 25 Nov 2019 21:04:33 +0000 (22:04 +0100)]
scanner: Improve check of "\u" escape sequence
Rico Tzschichholz [Mon, 25 Nov 2019 08:35:53 +0000 (09:35 +0100)]
scanner: "\x" requires two hex digits at most and ignore leading zero #2
Rico Tzschichholz [Mon, 25 Nov 2019 07:30:43 +0000 (08:30 +0100)]
vala: Drop Namespace.remove_struct()
Rico Tzschichholz [Sun, 24 Nov 2019 21:42:18 +0000 (22:42 +0100)]
vala: Let the parser have set namespace members as static
... and move error reporting for invalid members into check()
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 18:33:50 +0000 (19:33 +0100)]
scanner: "\x" requires two hex digits at most
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 15:19:47 +0000 (16:19 +0100)]
pango: Update to 1.44+
Rico Tzschichholz [Thu, 21 Nov 2019 13:39:00 +0000 (14:39 +0100)]
vapi: Update GIR-based bindings
Rico Tzschichholz [Thu, 21 Nov 2019 13:38:06 +0000 (14:38 +0100)]
gtk4: Update to 3.96.0+
5e11a2ae
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 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 11:49:12 +0000 (12:49 +0100)]
vala: Improve handling of "void" as generic type
Fixes https://gitlab.gnome.org/GNOME/vala/issues/878
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 [Sun, 17 Nov 2019 11:49:11 +0000 (12:49 +0100)]
codegen: Use result of CCodeBaseModule.get_this_type()
Rico Tzschichholz [Sun, 17 Nov 2019 11:49:11 +0000 (12:49 +0100)]
vala: Check "this_parameter" if available
Rico Tzschichholz [Sun, 17 Nov 2019 11:49:11 +0000 (12:49 +0100)]
vala: Unify "this_parameter" creation using SemanticAnalyzer.get_this_type()
Rico Tzschichholz [Sun, 17 Nov 2019 11:49:11 +0000 (12:49 +0100)]
vala: Allow SemanticAnalyzer.get_this_type() to handle more symbols
and append possible type-parameters to match get_data_type_for_symbol()
Suported symbol types are Method, Property, Constructor and Destructor
Rico Tzschichholz [Sun, 17 Nov 2019 13:08:24 +0000 (14:08 +0100)]
gidl/girparser: Creation methods must not be marked as static
Rico Tzschichholz [Sun, 17 Nov 2019 11:49:11 +0000 (12:49 +0100)]
vala: scope "owner" of constructor/destructor subroutines is already set
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:29:26 +0000 (17:29 +0100)]
codegen: Share generate_struct_*() helpers between classes and interfaces
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 [Mon, 11 Nov 2019 11:40:04 +0000 (12:40 +0100)]
Release 0.47.1
Rico Tzschichholz [Mon, 11 Nov 2019 07:48:06 +0000 (08:48 +0100)]
Sync NEWS from 0.46
Rico Tzschichholz [Sat, 9 Nov 2019 14:20:11 +0000 (15:20 +0100)]
codegen: Commonize the determining of return-type for delegates and methods
Rico Tzschichholz [Sat, 9 Nov 2019 14:20:11 +0000 (15:20 +0100)]
codegen: Use SemanticAnalyzer.get_data_type_for_symbol()
Rico Tzschichholz [Sat, 9 Nov 2019 14:20:11 +0000 (15:20 +0100)]
vala: Make Callable derive from Symbol
This is a better choice as common base-class.
Rico Tzschichholz [Sat, 9 Nov 2019 14:20:11 +0000 (15:20 +0100)]
vala: Set GLib.Error as symbol of error-types if no error-domain was given
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 [Fri, 8 Nov 2019 15:17:58 +0000 (16:17 +0100)]
vala: Improve check of delegate assignments and initializers
Fixes https://gitlab.gnome.org/GNOME/vala/issues/875
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
Rico Tzschichholz [Wed, 6 Nov 2019 12:57:07 +0000 (13:57 +0100)]
compiler: Add "--list-sources" options to output a list of all sources
Fixes https://gitlab.gnome.org/GNOME/vala/issues/872
Rico Tzschichholz [Wed, 6 Nov 2019 12:25:48 +0000 (13:25 +0100)]
vapi: Update GIR-based bindings
Rico Tzschichholz [Wed, 6 Nov 2019 12:23:06 +0000 (13:23 +0100)]
gstreamer: Update from 1.17.0+ git master
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 [Thu, 3 Oct 2019 18:42:58 +0000 (20:42 +0200)]
vala: Support "unowned var" to declare local variables
Based on patch by Aaron Andersen
Fixes https://gitlab.gnome.org/GNOME/vala/issues/152
Rico Tzschichholz [Tue, 5 Nov 2019 14:53:14 +0000 (15:53 +0100)]
gtk4,gtk4-unix-print: Update to 3.96.0+
fbea677a
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 12:22:46 +0000 (13:22 +0100)]
gio-2.0: Use custom TaskReadyCallback delegate in Task.report*_error()
Rico Tzschichholz [Tue, 5 Nov 2019 10:14:26 +0000 (11:14 +0100)]
vala: Don't mark method as used on recursive usage of itself
See https://gitlab.gnome.org/GNOME/vala/issues/100
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, 1 Nov 2019 20:31:47 +0000 (21:31 +0100)]
vala: Add GenericType.dup/destroy fields
This provides direct access to the according values of generic-types
and type-parameters.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/190
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 [Sun, 3 Nov 2019 15:34:47 +0000 (16:34 +0100)]
codegen: G_DEFINE_AUTOPTR_CLEANUP_FUNC must not declared more than once
Follow on
f413cb32470d9c2598416772bc0166c6f974ec9f
Rico Tzschichholz [Wed, 16 Oct 2019 09:48:44 +0000 (11:48 +0200)]
girwriter: Fix position of priv field (--abi-stability)
See https://gitlab.gnome.org/GNOME/vala/issues/850
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 [Tue, 29 Oct 2019 09:51:52 +0000 (10:51 +0100)]
gtk+-*.0: Fix iter parameter of TextBuffer.backspace()
Rico Tzschichholz [Tue, 29 Oct 2019 07:19:37 +0000 (08:19 +0100)]
glib-2.0: Add new symbols from 2.64
Alberto Fanjul [Tue, 29 Oct 2019 08:17:26 +0000 (09:17 +0100)]
gtksourceview-2.0: Fix iter parameter in SourceBuffer.backward/forward/...
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 15:57:21 +0000 (17:57 +0200)]
vapi: Update GIR-based bindings
Rico Tzschichholz [Tue, 22 Oct 2019 15:56:45 +0000 (17:56 +0200)]
webkit2gtk-4.0: Update to 2.27.2
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 [Tue, 22 Oct 2019 08:30:53 +0000 (10:30 +0200)]
glib-2.0: Check errno for EINVAL and ERANGE in *.try_parse()
Rico Tzschichholz [Mon, 21 Oct 2019 19:22:17 +0000 (21:22 +0200)]
tests: Make (u)int.try_parse() tests more 32bit friendly
Rico Tzschichholz [Mon, 21 Oct 2019 13:35:07 +0000 (15:35 +0200)]
libuse-1.0: Remove unused private "malloc" binding