]> git.ipfire.org Git - thirdparty/vala.git/log
thirdparty/vala.git
5 years agovapi: Update GIR-based bindings
Rico Tzschichholz [Wed, 6 Nov 2019 12:25:48 +0000 (13:25 +0100)] 
vapi: Update GIR-based bindings

5 years agogstreamer: Update from 1.17.0+ git master
Rico Tzschichholz [Wed, 6 Nov 2019 12:23:06 +0000 (13:23 +0100)] 
gstreamer: Update from 1.17.0+ git master

5 years agovala: Add missing gmodule-2.0 to Requires.private of pkg-config file
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

5 years agolibvaladoc: Move 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

5 years agovala: Support "unowned var" to declare local variables
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

5 years agogtk4,gtk4-unix-print: Update to 3.96.0+fbea677a 7c367780af1677278ed83d6afc2c5933211c3155
Rico Tzschichholz [Tue, 5 Nov 2019 14:53:14 +0000 (15:53 +0100)] 
gtk4,gtk4-unix-print: Update to 3.96.0+fbea677a

5 years agog-i: Ignore flags like -mfpmath=sse, -msse or -msse2
Rico Tzschichholz [Sun, 27 Aug 2017 18:28:39 +0000 (20:28 +0200)] 
g-i: Ignore flags like -mfpmath=sse, -msse or -msse2

5 years agog-i: Avoid use of uninitialized "markup" warning
Rico Tzschichholz [Tue, 5 Nov 2019 14:34:52 +0000 (15:34 +0100)] 
g-i: Avoid use of uninitialized "markup" warning

5 years agog-i: Calculate size correctly, avoid use-after-free
Rico Tzschichholz [Tue, 5 Nov 2019 14:33:43 +0000 (15:33 +0100)] 
g-i: Calculate size correctly, avoid use-after-free

5 years agogio-2.0: Use custom TaskReadyCallback delegate in Task.report*_error()
Rico Tzschichholz [Tue, 5 Nov 2019 12:22:46 +0000 (13:22 +0100)] 
gio-2.0: Use custom TaskReadyCallback delegate in Task.report*_error()

5 years agovala: Don't mark method as used on recursive usage of itself
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

5 years agovala: Write value of constants/enums in fast-vapi if they are constant only 984c034256de3830d6daa0ab6f5eff108dea09bb
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

5 years agovala: Add GenericType.dup/destroy fields
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

5 years agocodegen: Make type-parameter properties readable
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

5 years agotests: Add invalid "multiple base classes" tests to increase coverage
Rico Tzschichholz [Sun, 3 Nov 2019 19:07:40 +0000 (20:07 +0100)] 
tests: Add invalid "multiple base classes" tests to increase coverage

5 years agovala: Improve error reporting for invalid interface prerequisites
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

5 years agocodegen: G_DEFINE_AUTOPTR_CLEANUP_FUNC must not declared more than once
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

5 years agogirwriter: Fix position of priv field (--abi-stability) 7cb3a3f00dcbadded394a6cb9b7042b7d627bea8
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

5 years agogirwriter: Add readable="0"/private="1" attribute to type-specific fields
Rico Tzschichholz [Fri, 1 Nov 2019 15:50:12 +0000 (16:50 +0100)] 
girwriter: Add readable="0"/private="1" attribute to type-specific fields

5 years agocodegen: Fix setting of generic-type properties for gobject style chain up 5baca30c036b3980bef5948c12ee711cd23ea91c
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

5 years agovala: Improve error message for arrays as type arguments 4e34272c34ef558663af19414a7584506cb60fc0
Florian Brosch [Tue, 2 Sep 2014 23:37:31 +0000 (01:37 +0200)] 
vala: Improve error message for arrays as type arguments

5 years agovala: Do not allow to change .length of arrays with fixed length
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.

5 years agovala: Do not allow to .resize() on arrays with fixed length
Florian Brosch [Wed, 17 Sep 2014 12:49:00 +0000 (14:49 +0200)] 
vala: Do not allow to .resize() on arrays with fixed length

5 years agovala: Infer array length of inline allocated arrays for fields
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

5 years agovala: Do not allow += for arrays with fixed length 7d3290e44c1acba6b18584f4c52d40765883b581
Florian Brosch [Tue, 16 Sep 2014 22:17:01 +0000 (00:17 +0200)] 
vala: Do not allow += for arrays with fixed length

5 years agogtk+-*.0: Fix iter parameter of TextBuffer.backspace() 7b2e66e1272d4f9f89664ab0ea328d6dea2d5f6d 87/head
Rico Tzschichholz [Tue, 29 Oct 2019 09:51:52 +0000 (10:51 +0100)] 
gtk+-*.0: Fix iter parameter of TextBuffer.backspace()

5 years agoglib-2.0: Add new symbols from 2.64 9ab99edfc1ee3ba958ec95956fdb37aac7d6f74f
Rico Tzschichholz [Tue, 29 Oct 2019 07:19:37 +0000 (08:19 +0100)] 
glib-2.0: Add new symbols from 2.64

5 years agogtksourceview-2.0: Fix iter parameter in SourceBuffer.backward/forward/... 83af5c8be996d258a2fa36c12214013c449c6d04 86/head
Alberto Fanjul [Tue, 29 Oct 2019 08:17:26 +0000 (09:17 +0100)] 
gtksourceview-2.0: Fix iter parameter in SourceBuffer.backward/forward/...

5 years agovala: Don't falsely resolve binary-expression to bool e679740751b4fde1d40103f8a84fba0fed1ff9a2
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

5 years agolinux: Add memfd_create(2)
Rico Tzschichholz [Wed, 23 Oct 2019 20:50:22 +0000 (22:50 +0200)] 
linux: Add memfd_create(2)

5 years agotests: Add invalid "silent cast of array" test to increase coverage
Rico Tzschichholz [Wed, 23 Oct 2019 13:30:40 +0000 (15:30 +0200)] 
tests: Add invalid "silent cast of array" test to increase coverage

5 years agotests: Add "typeof" tests for fundamental GLib.Type
Rico Tzschichholz [Wed, 23 Oct 2019 12:21:49 +0000 (14:21 +0200)] 
tests: Add "typeof" tests for fundamental GLib.Type

5 years agovala: Issue warning when passing arrays to typeof(), except for "string[]"
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

5 years agovapi: Update GIR-based bindings
Rico Tzschichholz [Tue, 22 Oct 2019 15:57:21 +0000 (17:57 +0200)] 
vapi: Update GIR-based bindings

5 years agowebkit2gtk-4.0: Update to 2.27.2
Rico Tzschichholz [Tue, 22 Oct 2019 15:56:45 +0000 (17:56 +0200)] 
webkit2gtk-4.0: Update to 2.27.2

5 years agogirparser: Detect and replace "-" in parameter names
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.

5 years agoglib-2.0: Check errno for EINVAL and ERANGE in *.try_parse()
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()

5 years agotests: Make (u)int.try_parse() tests more 32bit friendly
Rico Tzschichholz [Mon, 21 Oct 2019 19:22:17 +0000 (21:22 +0200)] 
tests: Make (u)int.try_parse() tests more 32bit friendly

5 years agolibuse-1.0: Remove unused private "malloc" binding
Rico Tzschichholz [Mon, 21 Oct 2019 13:35:07 +0000 (15:35 +0200)] 
libuse-1.0: Remove unused private "malloc" binding

5 years agoposix: Bind some essential memory allocation functions
Rico Tzschichholz [Mon, 21 Oct 2019 13:19:09 +0000 (15:19 +0200)] 
posix: Bind some essential memory allocation functions

5 years agoglib-2.0: Add (u)int.try_parse()
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

5 years agoglib-2.0: Add optional "base" parameter to *.parse/try_parse() of integers 8d55ec8db9f85d85a959a4c6b130123031a816c3
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

5 years agolibusb-1.0: Don't depend on glib-2.0
Rico Tzschichholz [Sun, 20 Oct 2019 06:58:45 +0000 (08:58 +0200)] 
libusb-1.0: Don't depend on glib-2.0

5 years agolibusb-1.0: Use a wrapper for Context.get_device_list()
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

5 years agovala: Allow direct access to array-typed members in POSIX profile
Rico Tzschichholz [Sat, 19 Oct 2019 16:44:19 +0000 (18:44 +0200)] 
vala: Allow direct access to array-typed members in POSIX profile

5 years agocodegen: Correctly transform arguments of Array.resize() for realloc (POSIX)
Rico Tzschichholz [Sat, 19 Oct 2019 15:41:31 +0000 (17:41 +0200)] 
codegen: Correctly transform arguments of Array.resize() for realloc (POSIX)

5 years agocodegen: Create alternative for G_N_ELEMENTS in POSIX profile
Rico Tzschichholz [Sat, 19 Oct 2019 13:15:42 +0000 (15:15 +0200)] 
codegen: Create alternative for G_N_ELEMENTS in POSIX profile

5 years agocodegen: Add required includes or generate used symbols (POSIX)
Rico Tzschichholz [Sat, 19 Oct 2019 13:12:55 +0000 (15:12 +0200)] 
codegen: Add required includes or generate used symbols (POSIX)

5 years agocodegen: Replace specific hardcoded TRUE/FALSE references (POSIX)
Rico Tzschichholz [Sat, 19 Oct 2019 08:18:49 +0000 (10:18 +0200)] 
codegen: Replace specific hardcoded TRUE/FALSE references (POSIX)

5 years agocodegen: Make destroy_value() handle array-types in POSIX profile
Rico Tzschichholz [Fri, 18 Oct 2019 22:12:26 +0000 (00:12 +0200)] 
codegen: Make destroy_value() handle array-types in POSIX profile

5 years agocodegen: Replace specific hardcoded "GDestroyNotify" references (POSIX)
Rico Tzschichholz [Fri, 18 Oct 2019 22:12:26 +0000 (00:12 +0200)] 
codegen: Replace specific hardcoded "GDestroyNotify" references (POSIX)

5 years agocodegen: 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_memdup in POSIX profile

5 years agocodegen: Use alternative for g_renew in POSIX profile 7841739b199ac5f1901e32cd9c0e90e9d4f5afa3
Rico Tzschichholz [Fri, 18 Oct 2019 22:12:26 +0000 (00:12 +0200)] 
codegen: Use alternative for g_renew in POSIX profile

5 years agocodegen: 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_new0 in POSIX profile

5 years agocodegen: Use alternative for g_free 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

5 years agocodegen: Replace hardcoded "gpointer" references (POSIX)
Rico Tzschichholz [Fri, 18 Oct 2019 22:12:26 +0000 (00:12 +0200)] 
codegen: Replace hardcoded "gpointer" references (POSIX)

Only applied up to CCodeDelegateModule

5 years agocodegen: Replace hardcoded "gint"/"int" references (POSIX)
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

5 years agocodegen: Replace hardcoded "gboolean" references (POSIX)
Rico Tzschichholz [Fri, 18 Oct 2019 22:12:26 +0000 (00:12 +0200)] 
codegen: Replace hardcoded "gboolean" references (POSIX)

Only applied up to CCodeDelegateModule

5 years agocodegen: Use alternative for g_strcmp0 in POSIX profile
Rico Tzschichholz [Fri, 18 Oct 2019 22:12:26 +0000 (00:12 +0200)] 
codegen: Use alternative for g_strcmp0 in POSIX profile

5 years agocodegen: Reduce code duplications when generation base-access
Rico Tzschichholz [Fri, 18 Oct 2019 13:41:30 +0000 (15:41 +0200)] 
codegen: Reduce code duplications when generation base-access

5 years agovaladoc: Rename FormalParameter to Parameter
Rico Tzschichholz [Fri, 18 Oct 2019 06:33:43 +0000 (08:33 +0200)] 
valadoc: Rename FormalParameter to Parameter

5 years agotests: Extend "property base-access" interface test to increase coverage
Rico Tzschichholz [Fri, 18 Oct 2019 06:17:33 +0000 (08:17 +0200)] 
tests: Extend "property base-access" interface test to increase coverage

5 years agotests: Fix makefile syntax :(
Rico Tzschichholz [Thu, 17 Oct 2019 20:56:11 +0000 (22:56 +0200)] 
tests: Fix makefile syntax :(

5 years agocodegen: Use G_TYPE_INSTANCE_GET_INTERFACE to get vtable for 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.

5 years agotests: Add "default-handler with base-access" signal test to increase coverage
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

5 years agotests: Extent "post-condition" virtual method test to increase coverage 7ca183cbf67fea0ed17ce004d750cd922daf136b
Rico Tzschichholz [Thu, 17 Oct 2019 07:51:21 +0000 (09:51 +0200)] 
tests: Extent "post-condition" virtual method test to increase coverage

5 years agocodegen: Drop unreachable and misplaced code
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

5 years agotests: Extent "girwriter" test to increase coverage
Rico Tzschichholz [Thu, 17 Oct 2019 05:45:16 +0000 (07:45 +0200)] 
tests: Extent "girwriter" test to increase coverage

5 years agogirwriter: Restore behaviour for delegate-types
Rico Tzschichholz [Wed, 16 Oct 2019 17:16:20 +0000 (19:16 +0200)] 
girwriter: Restore behaviour for delegate-types

Regression introduced by 061c02a91056b2f8c8b4cc985db4aec9c0a235fc

5 years agovapi: Update GIR-based bindings
Rico Tzschichholz [Wed, 16 Oct 2019 15:29:04 +0000 (17:29 +0200)] 
vapi: Update GIR-based bindings

5 years agowebkit2gtk-4.0: Update to 2.27.1
Rico Tzschichholz [Wed, 16 Oct 2019 15:28:35 +0000 (17:28 +0200)] 
webkit2gtk-4.0: Update to 2.27.1

5 years agogstreamer: Update from 1.17.0+ git master
Rico Tzschichholz [Wed, 16 Oct 2019 15:27:50 +0000 (17:27 +0200)] 
gstreamer: Update from 1.17.0+ git master

5 years agoglib-2.0: Add binding for "warning_once()" since 2.64
Rico Tzschichholz [Wed, 16 Oct 2019 11:44:40 +0000 (13:44 +0200)] 
glib-2.0: Add binding for "warning_once()" since 2.64

5 years agovala: Accept interface as inner type for object-type symbols d79401ad13a4bc5121f5ae187547c53b6a0a7701
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

5 years agovala: Respect --abi-stability in Class/Interface.accept_children()
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.

5 years agoglib-2.0: Add new symbols from 2.64
Rico Tzschichholz [Wed, 16 Oct 2019 07:30:22 +0000 (09:30 +0200)] 
glib-2.0: Add new symbols from 2.64

5 years agotests: Add "wrongly named constructor" tests
Rico Tzschichholz [Tue, 15 Oct 2019 11:59:19 +0000 (13:59 +0200)] 
tests: Add "wrongly named constructor" tests

5 years agocodegen: ErrorType is not a Symbol
Rico Tzschichholz [Tue, 15 Oct 2019 08:21:06 +0000 (10:21 +0200)] 
codegen: ErrorType is not a Symbol

5 years agovala: Use private argument_list field instead of get_argument_list()
Rico Tzschichholz [Sun, 13 Oct 2019 07:45:05 +0000 (09:45 +0200)] 
vala: Use private argument_list field instead of get_argument_list()

5 years agocodegen: Replace if-else-tree with switch in CCodeBaseModule.visit_binary_expression()
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()

5 years agovala: Replace if-else-tree with switch in BinaryExpression.check()
Rico Tzschichholz [Sun, 13 Oct 2019 06:50:04 +0000 (08:50 +0200)] 
vala: Replace if-else-tree with switch in BinaryExpression.check()

5 years agovala: Replace if-else-tree with switch in UnaryExpression.check()
Rico Tzschichholz [Sun, 13 Oct 2019 06:27:08 +0000 (08:27 +0200)] 
vala: Replace if-else-tree with switch in UnaryExpression.check()

5 years agoparser: `owned` is not allowed on Constants 9776597f710c407990523e0d9823e399c0d79f1a
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.

5 years agolibvaladoc: Fix ownership declarations of Constants
Rico Tzschichholz [Fri, 11 Oct 2019 14:19:19 +0000 (16:19 +0200)] 
libvaladoc: Fix ownership declarations of Constants

5 years agoSync NEWS from 0.46 05a7609e3e85dca7594f907915d543bc3453afdb
Rico Tzschichholz [Thu, 10 Oct 2019 19:41:00 +0000 (21:41 +0200)] 
Sync NEWS from 0.46

5 years agoglib-2.0: Guard against passing null source to GLib.Memory.copy()
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

5 years agolibvaladoc: Remove TypeReference.pass_ownership API
Rico Tzschichholz [Thu, 10 Oct 2019 16:04:12 +0000 (18:04 +0200)] 
libvaladoc: Remove TypeReference.pass_ownership API

5 years agolibvaladoc: Drop unused code
Rico Tzschichholz [Thu, 10 Oct 2019 16:01:22 +0000 (18:01 +0200)] 
libvaladoc: Drop unused code

5 years agolibvaladoc: Fix parameter and property ownership declarations
Rico Tzschichholz [Thu, 10 Oct 2019 15:40:44 +0000 (17:40 +0200)] 
libvaladoc: Fix parameter and property ownership declarations

5 years agovaladoc/tests: Use type for property which is compatible with owned getter
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

5 years agocodegen: Fix custom reference-counting for compact classes f413cb32470d9c2598416772bc0166c6f974ec9f
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".

5 years agocodegen: Make CCodeBaseModule.generate_method_declaration() return bool 91fc9702594fe7a59b06664aa077cee51960f72c
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.

5 years agoglib-2.0: Add binding for "gettext()" dc1d7880b4dc32a889e760aea2808bdf0c766899 85/head
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

5 years agoRegenerate GIR-based bindings to pick up copy/free attributes b8c28eb578a164c1dbd1e14dc049f9d31d91ec01
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

5 years agocodegen: Use gtype-boxed API for structs with "g_boxed_free" attribute
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

5 years agogirparser: Add required copy/free attributes for gtype-boxed structs
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

5 years agovapi: Perform syntax and semantic check for all bindings on "make check" d9c368ae608060be76b3838aa38e3ede945fcb5b
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"

5 years agovala: Don't issue a warning for non-public struct fields in bindings
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

5 years agotokyocabinet: Fix deprecation warnings
Rico Tzschichholz [Sat, 5 Oct 2019 10:17:39 +0000 (12:17 +0200)] 
tokyocabinet: Fix deprecation warnings

5 years agognutls: Fix "use of possibly unassigned parameter" warnings
Rico Tzschichholz [Sat, 5 Oct 2019 08:35:20 +0000 (10:35 +0200)] 
gnutls: Fix "use of possibly unassigned parameter" warnings