]>
git.ipfire.org Git - thirdparty/vala.git/log
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
Rico Tzschichholz [Mon, 21 Oct 2019 13:19:09 +0000 (15:19 +0200)]
posix: Bind some essential memory allocation functions
Rico Tzschichholz [Mon, 21 Oct 2019 11:16:36 +0000 (13:16 +0200)]
glib-2.0: Add (u)int.try_parse()
See https://gitlab.gnome.org/GNOME/vala/issues/649
Rico Tzschichholz [Mon, 21 Oct 2019 11:16:36 +0000 (13:16 +0200)]
glib-2.0: Add optional "base" parameter to *.parse/try_parse() of integers
Appending optional parameters to method implementations in VAPIs is not an
API break.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/223
Rico Tzschichholz [Sun, 20 Oct 2019 06:58:45 +0000 (08:58 +0200)]
libusb-1.0: Don't depend on glib-2.0
Evan Nemerson [Wed, 19 Jan 2011 21:52:20 +0000 (13:52 -0800)]
libusb-1.0: Use a wrapper for Context.get_device_list()
See https://gitlab.gnome.org/GNOME/vala/issues/151
Rico Tzschichholz [Sat, 19 Oct 2019 16:44:19 +0000 (18:44 +0200)]
vala: Allow direct access to array-typed members in POSIX profile
Rico Tzschichholz [Sat, 19 Oct 2019 15:41:31 +0000 (17:41 +0200)]
codegen: Correctly transform arguments of Array.resize() for realloc (POSIX)
Rico Tzschichholz [Sat, 19 Oct 2019 13:15:42 +0000 (15:15 +0200)]
codegen: Create alternative for G_N_ELEMENTS in POSIX profile
Rico Tzschichholz [Sat, 19 Oct 2019 13:12:55 +0000 (15:12 +0200)]
codegen: Add required includes or generate used symbols (POSIX)
Rico Tzschichholz [Sat, 19 Oct 2019 08:18:49 +0000 (10:18 +0200)]
codegen: Replace specific hardcoded TRUE/FALSE references (POSIX)
Rico Tzschichholz [Fri, 18 Oct 2019 22:12:26 +0000 (00:12 +0200)]
codegen: Make destroy_value() handle array-types in POSIX profile
Rico Tzschichholz [Fri, 18 Oct 2019 22:12:26 +0000 (00:12 +0200)]
codegen: Replace specific hardcoded "GDestroyNotify" references (POSIX)
Rico Tzschichholz [Fri, 18 Oct 2019 22:12:26 +0000 (00:12 +0200)]
codegen: Use alternative for g_memdup in POSIX profile
Rico Tzschichholz [Fri, 18 Oct 2019 22:12:26 +0000 (00:12 +0200)]
codegen: Use alternative for g_renew in POSIX profile
Rico Tzschichholz [Fri, 18 Oct 2019 22:12:26 +0000 (00:12 +0200)]
codegen: Use alternative for g_new0 in POSIX profile
Rico Tzschichholz [Fri, 18 Oct 2019 22:12:26 +0000 (00:12 +0200)]
codegen: Use alternative for g_free in POSIX profile
Rico Tzschichholz [Fri, 18 Oct 2019 22:12:26 +0000 (00:12 +0200)]
codegen: Replace hardcoded "gpointer" references (POSIX)
Only applied up to CCodeDelegateModule
Rico Tzschichholz [Fri, 18 Oct 2019 22:12:26 +0000 (00:12 +0200)]
codegen: Replace hardcoded "gint"/"int" references (POSIX)
Only applied up to CCodeDelegateModule
Rico Tzschichholz [Fri, 18 Oct 2019 22:12:26 +0000 (00:12 +0200)]
codegen: Replace hardcoded "gboolean" references (POSIX)
Only applied up to CCodeDelegateModule
Rico Tzschichholz [Fri, 18 Oct 2019 22:12:26 +0000 (00:12 +0200)]
codegen: Use alternative for g_strcmp0 in POSIX profile
Rico Tzschichholz [Fri, 18 Oct 2019 13:41:30 +0000 (15:41 +0200)]
codegen: Reduce code duplications when generation base-access
Rico Tzschichholz [Fri, 18 Oct 2019 06:33:43 +0000 (08:33 +0200)]
valadoc: Rename FormalParameter to Parameter
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 20:56:11 +0000 (22:56 +0200)]
tests: Fix makefile syntax :(
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 [Thu, 17 Oct 2019 05:45:16 +0000 (07:45 +0200)]
tests: Extent "girwriter" test to increase coverage
Rico Tzschichholz [Wed, 16 Oct 2019 17:16:20 +0000 (19:16 +0200)]
girwriter: Restore behaviour for delegate-types
Regression introduced by
061c02a91056b2f8c8b4cc985db4aec9c0a235fc
Rico Tzschichholz [Wed, 16 Oct 2019 15:29:04 +0000 (17:29 +0200)]
vapi: Update GIR-based bindings
Rico Tzschichholz [Wed, 16 Oct 2019 15:28:35 +0000 (17:28 +0200)]
webkit2gtk-4.0: Update to 2.27.1
Rico Tzschichholz [Wed, 16 Oct 2019 15:27:50 +0000 (17:27 +0200)]
gstreamer: Update from 1.17.0+ git master
Rico Tzschichholz [Wed, 16 Oct 2019 11:44:40 +0000 (13:44 +0200)]
glib-2.0: Add binding for "warning_once()" since 2.64
Rico Tzschichholz [Wed, 16 Oct 2019 10:47:04 +0000 (12:47 +0200)]
vala: Accept interface as inner type for object-type symbols
Fixes https://gitlab.gnome.org/GNOME/vala/issues/697
Rico Tzschichholz [Sat, 5 Oct 2019 20:47:48 +0000 (22:47 +0200)]
vala: Respect --abi-stability in Class/Interface.accept_children()
Add common implementation to ObjectTypeSymbol.accept_children() and match
generate_class_struct_declaration() and generate_interface_declaration()
Accepting fields earlier for interfaces in not a concern while there is
no support for instance/class fields yet.
Rico Tzschichholz [Wed, 16 Oct 2019 07:30:22 +0000 (09:30 +0200)]
glib-2.0: Add new symbols from 2.64
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 [Sun, 13 Oct 2019 07:45:05 +0000 (09:45 +0200)]
vala: Use private argument_list field instead of get_argument_list()
Rico Tzschichholz [Sun, 13 Oct 2019 19:08:43 +0000 (21:08 +0200)]
codegen: Replace if-else-tree with switch in CCodeBaseModule.visit_binary_expression()
Rico Tzschichholz [Sun, 13 Oct 2019 06:50:04 +0000 (08:50 +0200)]
vala: Replace if-else-tree with switch in BinaryExpression.check()
Rico Tzschichholz [Sun, 13 Oct 2019 06:27:08 +0000 (08:27 +0200)]
vala: Replace if-else-tree with switch in UnaryExpression.check()
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 [Fri, 11 Oct 2019 14:19:19 +0000 (16:19 +0200)]
libvaladoc: Fix ownership declarations of Constants
Rico Tzschichholz [Thu, 10 Oct 2019 19:41:00 +0000 (21:41 +0200)]
Sync NEWS from 0.46
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:04:12 +0000 (18:04 +0200)]
libvaladoc: Remove TypeReference.pass_ownership API
Rico Tzschichholz [Thu, 10 Oct 2019 16:01:22 +0000 (18:01 +0200)]
libvaladoc: Drop unused code
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
Simon Werbeck [Mon, 30 Sep 2019 14:37:33 +0000 (16:37 +0200)]
codegen: Fix custom reference-counting for compact classes
This fix defers emitting G_DEFINE_AUTOPTR_CLEANUP_FUNC when a compact
class defines custom unref function and set by ccode "unref_function".
Simon Werbeck [Mon, 30 Sep 2019 14:37:33 +0000 (16:37 +0200)]
codegen: Make CCodeBaseModule.generate_method_declaration() return bool
This is how CCodeBaseModule.generate_enum_declaration() works already.
Michael Gratton [Tue, 8 Oct 2019 23:12:32 +0000 (10:12 +1100)]
glib-2.0: Add binding for "gettext()"
Despite this actually comes from "libintl.h" refer to "gi18n-lib.h" to
trigger GETTEXT_PACKAGE error.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/864
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 [Fri, 4 Oct 2019 13:09:10 +0000 (15:09 +0200)]
tests: Extend "fastvapi" test to increase coverage
Rico Tzschichholz [Wed, 2 Oct 2019 17:07:17 +0000 (19:07 +0200)]
vala: Add DelegateType.target/destroy fields to access its user-data
Fixes https://gitlab.gnome.org/GNOME/vala/issues/857
Rico Tzschichholz [Wed, 2 Oct 2019 17:07:17 +0000 (19:07 +0200)]
vala: Add delegate_target_type and delegate_target_destroy_type to SemanticAnalyzer
This is a plain copy from CCodeBaseModule.
Rico Tzschichholz [Wed, 2 Oct 2019 13:01:07 +0000 (15:01 +0200)]
codegen: Support gobject property of delegates not carrying their target
Properly evaluate given delegate_target attribute on properties to create
the expected API.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/856
Rico Tzschichholz [Thu, 3 Oct 2019 08:43:22 +0000 (10:43 +0200)]
codegen: Allow passing/retrieving any delegate to/from varargs parameter
Initialize target/notify cvalues of delegate-typed arguments/result of
inferred varargs parameters and va_list.arg() calls.
Only the actual function pointer will be passed or retrieved. The target
and destroy values will be null.
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 [Wed, 2 Oct 2019 11:37:20 +0000 (13:37 +0200)]
vala: Unify backing symbol instance of data-types (2)
Rico Tzschichholz [Wed, 2 Oct 2019 07:29:06 +0000 (09:29 +0200)]
codegen: Support gobject property of null-terminated array without length
Properly evaluate given array_length and array_null_terminated attributes
on properties to create the expected API.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/855
Rico Tzschichholz [Mon, 30 Sep 2019 15:53:48 +0000 (17:53 +0200)]
Sync NEWS from 0.46
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 [Sun, 29 Sep 2019 16:15:54 +0000 (18:15 +0200)]
vala: Micro optimizations
Rico Tzschichholz [Sun, 29 Sep 2019 16:52:51 +0000 (18:52 +0200)]
vala: Drop DelegateType.to_qualified_string() which is duplicated code
and not needed while using DataType.type_symbol for delegate-types too.
Rico Tzschichholz [Sun, 29 Sep 2019 16:28:28 +0000 (18:28 +0200)]
vala: Move common implementations to CallableType
Rico Tzschichholz [Tue, 12 Mar 2019 15:51:23 +0000 (16:51 +0100)]
vala: Unify backing symbol instance of data-types
Rico Tzschichholz [Mon, 30 Sep 2019 06:05:11 +0000 (08:05 +0200)]
vala: Micro optimizations for Assignment
Rico Tzschichholz [Sun, 29 Sep 2019 13:10:45 +0000 (15:10 +0200)]
vala: Micro optimizations for MemberAccess