]>
git.ipfire.org Git - thirdparty/vala.git/log
Rico Tzschichholz [Mon, 15 Feb 2021 12:33:27 +0000 (13:33 +0100)]
gstreamer: Update from 1.19.0+ git master
Rico Tzschichholz [Sat, 13 Feb 2021 18:34:12 +0000 (19:34 +0100)]
vala: Include type-checks in preconditions of methods for type narrowing
See https://gitlab.gnome.org/GNOME/vala/issues/894
Rico Tzschichholz [Sat, 13 Feb 2021 13:47:03 +0000 (14:47 +0100)]
vala: Check type-arguments in base-types/prerequisites of class/interface
Fixes https://gitlab.gnome.org/GNOME/vala/issues/404
Rico Tzschichholz [Fri, 12 Feb 2021 20:39:08 +0000 (21:39 +0100)]
Release 0.51.1
Rico Tzschichholz [Mon, 25 Jan 2021 12:46:45 +0000 (13:46 +0100)]
sdl2: Fix a couple of binding errors and attribute issues
Rico Tzschichholz [Mon, 8 Feb 2021 08:27:31 +0000 (09:27 +0100)]
codegen: Include <string.h> for memcpy usage in _vala_memdup2()
Rico Tzschichholz [Sun, 7 Feb 2021 18:04:56 +0000 (19:04 +0100)]
codegen: Strip all nested occurances of CCodeCastExpression
Triggered by
63551acaf0d83fac8b50904c2759c1098fbfaa71
See https://gitlab.gnome.org/GNOME/vala/issues/1134
Rico Tzschichholz [Sun, 7 Feb 2021 09:02:10 +0000 (10:02 +0100)]
build: Ease source for AC_LANG_SOURCE of CGRAPH check
Rico Tzschichholz [Sun, 7 Feb 2021 10:02:02 +0000 (11:02 +0100)]
libvaladoc: Add wrapper for "agedge" of graphviz
Rico Tzschichholz [Sun, 7 Feb 2021 07:57:39 +0000 (08:57 +0100)]
codegen: Correctly retrieve symbol_reference of nested cast expressions
Regression of
63551acaf0d83fac8b50904c2759c1098fbfaa71
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1134
Rico Tzschichholz [Mon, 1 Feb 2021 16:22:48 +0000 (17:22 +0100)]
vapi: Add libunwind-generic binding
Rico Tzschichholz [Sat, 6 Feb 2021 16:40:23 +0000 (17:40 +0100)]
gio-2.0: Update to 2.67.3
Rico Tzschichholz [Sat, 6 Feb 2021 16:39:24 +0000 (17:39 +0100)]
gtk4: Update to 4.1.0+
2712f536
Rico Tzschichholz [Sat, 6 Feb 2021 16:38:51 +0000 (17:38 +0100)]
gstreamer: Update from 1.19.0+ git master
Rico Tzschichholz [Fri, 5 Feb 2021 15:14:45 +0000 (16:14 +0100)]
gee: Replace Memory.dup() with GLib.malloc() and Memory.copy()
Rico Tzschichholz [Fri, 5 Feb 2021 06:51:34 +0000 (07:51 +0100)]
gstreamer-1.0: Set CCode.type_id of MiniObject to G_TYPE_BOXED
Fixed https://gitlab.gnome.org/GNOME/vala/issues/1133
Rico Tzschichholz [Thu, 4 Feb 2021 20:07:17 +0000 (21:07 +0100)]
codegen: Replace "g_memdup" with "_vala_memdup2" for target glib < 2.68
"_vala_memdup2" is a copy of "g_memdup2" available in glib >= 2.68
Rico Tzschichholz [Thu, 4 Feb 2021 19:00:14 +0000 (20:00 +0100)]
glib-2.0: Add new symbols from 2.68
Rico Tzschichholz [Thu, 4 Feb 2021 18:22:07 +0000 (19:22 +0100)]
codegen: Use g_memdup2 if target glib >= 2.68 is set
See https://gitlab.gnome.org/GNOME/glib/issues/2319
Rico Tzschichholz [Thu, 4 Feb 2021 14:53:55 +0000 (15:53 +0100)]
testrunner: Add "-Werror=return-stack-address" flag
Rico Tzschichholz [Thu, 4 Feb 2021 14:53:55 +0000 (15:53 +0100)]
vala: Add Block.unreachable_exit and have it set accordingly by FlowAnalyzer
Use this control flow information in codegen rather than doing an
educated guess based on occurring ReturnStatement nodes.
See https://gitlab.gnome.org/GNOME/vala/issues/838
Rico Tzschichholz [Thu, 4 Feb 2021 09:55:31 +0000 (10:55 +0100)]
tests: Don't leak array if length is -1
Found by -fsanitize=address
Rico Tzschichholz [Thu, 4 Feb 2021 09:55:31 +0000 (10:55 +0100)]
codegen: Chain up to base struct destroy function
Found by -fsanitize=address
Rico Tzschichholz [Wed, 3 Feb 2021 22:16:41 +0000 (23:16 +0100)]
codegen: Don't leak memory moving heap-allocated struct to stack
Found by -fsanitize=address
Rico Tzschichholz [Wed, 3 Feb 2021 22:16:41 +0000 (23:16 +0100)]
codegen: Use temp_ref_values list instead of patching the AST
Simplyfies
5328619a8141aa11341d479428ebfdcec0ff9756
Rico Tzschichholz [Wed, 3 Feb 2021 12:40:23 +0000 (13:40 +0100)]
codegen: Don't leak GLib.Value when implicitly unboxing it
Found by -fsanitize=address
Rico Tzschichholz [Wed, 3 Feb 2021 12:40:23 +0000 (13:40 +0100)]
vala: Don't allow GLib.Value casting to nullable struct/simple types
Rico Tzschichholz [Wed, 3 Feb 2021 12:40:23 +0000 (13:40 +0100)]
vala: GLib.Value unboxing returns unowned value
Rico Tzschichholz [Wed, 3 Feb 2021 12:40:23 +0000 (13:40 +0100)]
codegen: Use g_boxed_free in free-wrapper for heap-allocated GLib.Value
dup-wrapper is specifically using g_boxed_copy already
Rico Tzschichholz [Tue, 2 Feb 2021 09:34:54 +0000 (10:34 +0100)]
codegen: Don't leak array memory after it was implicitly copied
Found by -fsanitize=address
Rico Tzschichholz [Mon, 1 Feb 2021 16:34:15 +0000 (17:34 +0100)]
codegen: Improve handling of recursive DelegateType
Move dedicated test case into a separate file
Rico Tzschichholz [Mon, 1 Feb 2021 16:34:15 +0000 (17:34 +0100)]
codegen: Make sure types of implicit delegate parameters are declared
Rico Tzschichholz [Mon, 1 Feb 2021 13:54:55 +0000 (14:54 +0100)]
codegen: Use CCodeDeclaratorSuffix to emit array length of constants
Rico Tzschichholz [Mon, 1 Feb 2021 13:54:55 +0000 (14:54 +0100)]
ccode: Minor API cleaning and additions
Rico Tzschichholz [Tue, 9 Jan 2018 15:21:06 +0000 (16:21 +0100)]
vala: Rename Loop to LoopStatement and introduce a common base class
Rico Tzschichholz [Mon, 1 Feb 2021 07:18:38 +0000 (08:18 +0100)]
codegen: Also check array type of variable argument for ref parameters
Rico Tzschichholz [Mon, 1 Feb 2021 07:18:38 +0000 (08:18 +0100)]
codegen: Add get_ccode_no_wrapper() and use it
Rico Tzschichholz [Sun, 31 Jan 2021 13:21:19 +0000 (14:21 +0100)]
girparser: Set CCode.type_cname for classes if it doesn't match our default
Rico Tzschichholz [Sun, 31 Jan 2021 12:10:39 +0000 (13:10 +0100)]
tests/girwriter: Add tests for async methods attributed with NoWrapper
Rico Tzschichholz [Sun, 31 Jan 2021 12:04:52 +0000 (13:04 +0100)]
codegen: Don't emit invoker for async methods attributed with NoWrapper
Rico Tzschichholz [Sun, 31 Jan 2021 08:03:58 +0000 (09:03 +0100)]
libxml-2.0: Fix a few binding errors
Rico Tzschichholz [Sun, 31 Jan 2021 08:03:58 +0000 (09:03 +0100)]
fuse: Fix a few binding errors
Rico Tzschichholz [Sat, 30 Jan 2021 20:17:25 +0000 (21:17 +0100)]
codegen: Always use G_TYPE_INSTANCE_GET_CLASS/INTERFACE for external symbols
and get_ccode_type_get_function() for SourceFileType.SOURCE symbols.
Rico Tzschichholz [Sat, 30 Jan 2021 20:17:25 +0000 (21:17 +0100)]
codegen: Handle NoWrapper attribute of async methods on caller side
Rico Tzschichholz [Sat, 30 Jan 2021 20:17:25 +0000 (21:17 +0100)]
codegen: Allow CCode.type_cname for classes and use get_ccode_type_name()
Rico Tzschichholz [Sat, 30 Jan 2021 20:17:25 +0000 (21:17 +0100)]
girparser: Apply "type_get_function" metadata for classes and inferfaces
Rico Tzschichholz [Sat, 30 Jan 2021 20:17:25 +0000 (21:17 +0100)]
codegen: Add CCode.type_get_function and get_ccode_type_get_function()
Allow to overide the macro name, and join get_ccode_class_get_function ()
and get_ccode_interface_get_function().
Rico Tzschichholz [Sat, 30 Jan 2021 14:59:06 +0000 (15:59 +0100)]
gtk+-2.0,javascriptcoregtk-4.0: Wrong usage of CCode.type_cname attribute
Rico Tzschichholz [Sat, 30 Jan 2021 10:44:17 +0000 (11:44 +0100)]
girwriter: Don't emit invoker for methods attributed with NoWrapper
Rico Tzschichholz [Sat, 30 Jan 2021 10:44:17 +0000 (11:44 +0100)]
codegen: Don't emit invoker for methods attributed with NoWrapper
Rico Tzschichholz [Sat, 30 Jan 2021 10:44:17 +0000 (11:44 +0100)]
codegen: Handle NoWrapper attribute of interface methods on caller side
Rico Tzschichholz [Sat, 30 Jan 2021 10:44:17 +0000 (11:44 +0100)]
vala: NoWrapper methods must be declared abstract or virtual
Rico Tzschichholz [Sat, 30 Jan 2021 12:03:44 +0000 (13:03 +0100)]
gio-2.0: Pick up missing invoker for some AppInfo/File.*() methods
Rico Tzschichholz [Sat, 30 Jan 2021 10:44:17 +0000 (11:44 +0100)]
gdk-pixbuf-2.0: Fix Pixbuf.save_to_streamv_async()
Rico Tzschichholz [Sat, 30 Jan 2021 07:41:55 +0000 (08:41 +0100)]
gobject-2.0: Fix a few binding errors
Rico Tzschichholz [Sat, 30 Jan 2021 07:41:55 +0000 (08:41 +0100)]
gdk-3.0,gdk-x11-3.0,gtk+-3.0,gtk4: Fix a few binding errors
Rico Tzschichholz [Thu, 28 Jan 2021 11:12:53 +0000 (12:12 +0100)]
Add further support for params arrays in constructors
In addition to
98ab3da89640b8b8a6c67044b4df1194672774bb
See https://gitlab.gnome.org/GNOME/vala/issues/128
Rico Tzschichholz [Wed, 27 Jan 2021 20:08:09 +0000 (21:08 +0100)]
codegen: Improve support of SimpleType struct constructors
Additionally stop generating broken and superfluous dup/free functions,
and don't create not used GType declarations.
Rico Tzschichholz [Wed, 27 Jan 2021 20:08:09 +0000 (21:08 +0100)]
vala: Don't allow disposable SimpleType structs
Rico Tzschichholz [Wed, 27 Jan 2021 14:34:53 +0000 (15:34 +0100)]
gstreamer-1.0: Fix a few binding errors
Rico Tzschichholz [Wed, 27 Jan 2021 14:34:53 +0000 (15:34 +0100)]
posix: Fix a few binding errors
Rico Tzschichholz [Wed, 27 Jan 2021 14:34:53 +0000 (15:34 +0100)]
libgvc: Fix a few binding errors
Rico Tzschichholz [Wed, 27 Jan 2021 14:34:53 +0000 (15:34 +0100)]
sqlite3: Fix a few binding errors
Rico Tzschichholz [Wed, 27 Jan 2021 14:34:53 +0000 (15:34 +0100)]
bzlib: Fix a few binding errors
Rico Tzschichholz [Wed, 27 Jan 2021 14:34:53 +0000 (15:34 +0100)]
alsa: Fix a few binding errors
Rico Tzschichholz [Wed, 27 Jan 2021 14:34:53 +0000 (15:34 +0100)]
curses: Fix a few binding errors
Rico Tzschichholz [Tue, 26 Jan 2021 18:22:14 +0000 (19:22 +0100)]
girparser: Apply "destroy_notify_cname" metadata for fields
Rico Tzschichholz [Tue, 26 Jan 2021 12:03:17 +0000 (13:03 +0100)]
vala: Add CallableExpression interface for MethodCall/ObjectCreationExpression
Rico Tzschichholz [Tue, 26 Jan 2021 13:19:56 +0000 (14:19 +0100)]
goocanvas-2.0: Fix some field types
Rico Tzschichholz [Tue, 26 Jan 2021 12:03:17 +0000 (13:03 +0100)]
pango: Fix a few binding errors
Rico Tzschichholz [Tue, 26 Jan 2021 12:03:17 +0000 (13:03 +0100)]
gobject-2.0: Fix a few binding errors
Rico Tzschichholz [Tue, 26 Jan 2021 12:03:17 +0000 (13:03 +0100)]
gio-2.0,gtk+-3.0,gtk4: Drop explicit c-type attributes of va_list parameters
Rico Tzschichholz [Tue, 26 Jan 2021 12:03:17 +0000 (13:03 +0100)]
gio-2.0: Fix binding of PollableOutputStream.write*_nonblocking()
Rico Tzschichholz [Tue, 26 Jan 2021 12:03:17 +0000 (13:03 +0100)]
cairo: Fix some ctor binding errors
Rico Tzschichholz [Mon, 25 Jan 2021 20:11:55 +0000 (21:11 +0100)]
cairo: Fix a few binding errors
Rico Tzschichholz [Mon, 25 Jan 2021 20:11:55 +0000 (21:11 +0100)]
gtk+-3.0,gtk4: Fix some delegate return values and parameters
Rico Tzschichholz [Mon, 25 Jan 2021 20:11:55 +0000 (21:11 +0100)]
girparser: Apply "delegate_target" metadata for methods and parameters
Rico Tzschichholz [Mon, 25 Jan 2021 20:11:55 +0000 (21:11 +0100)]
vala: Don't prepend "unowned" in VarType and leave that to the CodeWriter
Rico Tzschichholz [Mon, 25 Jan 2021 20:11:55 +0000 (21:11 +0100)]
codewriter: Append new-line for nested block statements
Rico Tzschichholz [Sat, 23 Jan 2021 16:29:44 +0000 (17:29 +0100)]
vala: Apply stricter condition for lambda to delegate assignment
This moves an internal codegen error to the semantic-analyzer.
Rico Tzschichholz [Sat, 23 Jan 2021 16:29:44 +0000 (17:29 +0100)]
codegen: Clean up expression casts in CCodeAssignmentModule.visit_assignment()
Ole André Vadla Ravnås [Fri, 22 Jan 2021 01:40:06 +0000 (02:40 +0100)]
vala: Avoid critical when trying to use symbol_reference of ElementAccess
Regression of
6e7be51cb5455e9c5c721d4ba5121a6ab04673dd
Rico Tzschichholz [Thu, 21 Jan 2021 16:40:02 +0000 (17:40 +0100)]
tests: Add more "parser" tests to increase coverage
Rico Tzschichholz [Thu, 14 Mar 2019 17:07:28 +0000 (18:07 +0100)]
vala: Improve prototype-string of CallableType
Rico Tzschichholz [Wed, 20 Jan 2021 12:37:04 +0000 (13:37 +0100)]
Update THANKS from git log
Rico Tzschichholz [Wed, 20 Jan 2021 14:27:16 +0000 (15:27 +0100)]
valadoc: Replace png icons with elementary's svg version
These match what was introduced by
8af8158c106eaafe12a628514f74e5788274d8d2
The icons were written by Daniel Foré for valadoc.org. They were taken from
https://github.com/Valadoc/valadoc-org
Rico Tzschichholz [Wed, 20 Jan 2021 08:42:32 +0000 (09:42 +0100)]
vapi: Update GIR-based bindings
Rico Tzschichholz [Wed, 20 Jan 2021 08:42:32 +0000 (09:42 +0100)]
gstreamer: Update from 1.19.0+ git master
Rico Tzschichholz [Wed, 20 Jan 2021 08:42:32 +0000 (09:42 +0100)]
gtk4: Update to 4.0.2
Rico Tzschichholz [Tue, 19 Jan 2021 20:56:50 +0000 (21:56 +0100)]
girparser: Discover our very own array length fields
Rico Tzschichholz [Tue, 19 Jan 2021 20:56:50 +0000 (21:56 +0100)]
vala: Make Class.is_compat/is_immutable/is_singleton read-only
Rico Tzschichholz [Tue, 19 Jan 2021 20:56:50 +0000 (21:56 +0100)]
libvaladoc: Correctly retrieve value for Api.Class.is_compact
Simon Werbeck [Thu, 19 Mar 2020 14:20:39 +0000 (15:20 +0100)]
Add support for 'opaque' compact classes
This change intruduces a new attribute switch [Compact (opaque = true)]
which allows to completely hide the implementation of a compact class.
This is especially useful for libraries when maintaining a stable abi.
An 'opaque' compact class exposes no struct definition in the generated
c header, only a typedef is provided. As such, certain requirements
apply for members of such classes:
- Access to instance fields must be either private or internal.
- No abstract/virtual methods or properties are allowed.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1129
Rico Tzschichholz [Mon, 18 Jan 2021 14:38:51 +0000 (15:38 +0100)]
girwriter: Write instance-parameter elements
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1128
Rico Tzschichholz [Mon, 18 Jan 2021 14:38:51 +0000 (15:38 +0100)]
tests: Extend "girparser" test and use vapigen to parse generated gir
Rico Tzschichholz [Mon, 18 Jan 2021 14:38:51 +0000 (15:38 +0100)]
vala: Let method representing property accessor inherit GIR.visible attribute
Rico Tzschichholz [Mon, 18 Jan 2021 14:38:51 +0000 (15:38 +0100)]
vala: Set this_parameter of method representing property accessor
Rico Tzschichholz [Sun, 17 Jan 2021 12:10:13 +0000 (13:10 +0100)]
tests: Add more invalid "GtkTemplate" tests to increase coverage
Rico Tzschichholz [Sat, 16 Jan 2021 16:11:14 +0000 (17:11 +0100)]
vala: Don't allow assigning GtkChild fields/properties
These are handled exclusively by GtkBuilder
See https://gitlab.gnome.org/GNOME/vala/issues/1121
Rico Tzschichholz [Sat, 16 Jan 2021 09:05:30 +0000 (10:05 +0100)]
vala: GtkChild fields/properties must be declared as unowned
The backing field won't be assigned to hold a dedicated reference.
gtk_widget_class_bind_template_child_full will make it point to the
instance owned by GtkBuilder.
This avoids doing a rogue (but safe) call of _g_object_unref0 on already
disposed child.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1121