]> git.ipfire.org Git - thirdparty/vala.git/log
thirdparty/vala.git
5 years agocodegen: Fix binary 'in' operator on array with boxed value-typed needle 0a0a851198fb8dcc14e752a7e086418a69183511 120/head
Andrea Del Signore [Fri, 3 Apr 2020 17:10:40 +0000 (19:10 +0200)] 
codegen: Fix binary 'in' operator on array with boxed value-typed needle

See https://gitlab.gnome.org/GNOME/vala/issues/951

5 years agoparser: Handle incomplete expression statements 4368a4fa667148378dcdbd251a4ae4e00c9a8e5a
Princeton Ferro [Thu, 9 Apr 2020 19:15:45 +0000 (21:15 +0200)] 
parser: Handle incomplete expression statements

Incomplete expression statements are parsed as expression statements
now, rather than local variable declarations. This primarily affects
incomplete member access expressions at the end of blocks.

5 years agovala: Add SourceLocation.to_string()
Rico Tzschichholz [Wed, 10 Apr 2019 07:23:54 +0000 (09:23 +0200)] 
vala: Add SourceLocation.to_string()

5 years agovala: Add SourceReference.contains()
Rico Tzschichholz [Tue, 19 Mar 2019 14:58:25 +0000 (15:58 +0100)] 
vala: Add SourceReference.contains()

5 years agogstreamer-1.0: Don't skip GST_*_FORMAT strings 0f82a8d01e4953dbb77e3759ac7e43bf18ff2830
Rico Tzschichholz [Sat, 11 Apr 2020 11:39:01 +0000 (13:39 +0200)] 
gstreamer-1.0: Don't skip GST_*_FORMAT strings

Partially reverts 10b87427a263886b0e36d5f4a297d6e079b74b6e

Fixes https://gitlab.gnome.org/GNOME/vala/issues/970

5 years agovala: Don't use possibly uninitialized backing field of package_name 2ad4a6e8a6c7bf6b2a9fd5d825ad639c420df489
Princeton Ferro [Sat, 11 Apr 2020 07:32:54 +0000 (03:32 -0400)] 
vala: Don't use possibly uninitialized backing field of package_name

Don't check _package_name directly, which may be null at the time
installed_version is accessed. This fixes a bug where Vala wouldn't
generate errors when using symbols that are unavailable for a package
version.

Introduced by 7f0e90a5c34f437b7ab8f9197a9d42fc835b1a60

Fixes https://gitlab.gnome.org/GNOME/vala/issues/971

5 years agovala: Drop mitigation in CodeContext.pkg_config_modversion() when it failed 09e565a511f43e48737b0bfb881ccfb32cf0ab82
Rico Tzschichholz [Sat, 11 Apr 2020 08:55:52 +0000 (10:55 +0200)] 
vala: Drop mitigation in CodeContext.pkg_config_modversion() when it failed

See https://gitlab.gnome.org/GNOME/vala/issues/971

5 years agoglib-2.0: Fix Filename.canonicalize() binding of g_canonicalize_filename d01c12456ee934585a3443856023852ae84e6b44
vanadiae [Fri, 10 Apr 2020 15:44:42 +0000 (17:44 +0200)] 
glib-2.0: Fix Filename.canonicalize() binding of g_canonicalize_filename

The required attibutes were not applied correctly when introduced by
c124f827557420b620f7118cfbabb15d83b4a3e6

5 years agogstreamer-app-1.0: Don't merge Src.push_buffer_*() signal with its method 5451c70c61d04220d1934796872929bbe6561a02
Rico Tzschichholz [Thu, 9 Apr 2020 12:14:43 +0000 (14:14 +0200)] 
gstreamer-app-1.0: Don't merge Src.push_buffer_*() signal with its method

Fixes https://gitlab.gnome.org/GNOME/vala/issues/968

5 years agovala: Set default_construction_method in semantic-analyzer check if required d176f179581fac880f5598bb53b3475392af2c4b
Rico Tzschichholz [Wed, 8 Apr 2020 12:32:07 +0000 (14:32 +0200)] 
vala: Set default_construction_method in semantic-analyzer check if required

Doing this in the parser is not reasonable while this is clearly a sematic
requirement.

5 years agotests: Add "Bus/DBusConnection.get_proxy*()" tests to increase coverage 624d8385e4c14afedca8b0d519d9ac16c2b3689c
Rico Tzschichholz [Tue, 7 Apr 2020 10:39:20 +0000 (12:39 +0200)] 
tests: Add "Bus/DBusConnection.get_proxy*()" tests to increase coverage

5 years agoSync NEWS from 0.48
Rico Tzschichholz [Mon, 6 Apr 2020 13:39:33 +0000 (15:39 +0200)] 
Sync NEWS from 0.48

5 years agogobject-2.0: Add ParamSpec/Signal.is_valid_name() since 2.66 45675a25029b937823236627d5fede195894181d
Rico Tzschichholz [Mon, 6 Apr 2020 07:57:33 +0000 (09:57 +0200)] 
gobject-2.0: Add ParamSpec/Signal.is_valid_name() since 2.66

5 years agogio-2.0: Update to 2.65.0~a136776e a48d0cab4f091784b92395dd4d0170f1cc17a348
Rico Tzschichholz [Sun, 5 Apr 2020 20:29:00 +0000 (22:29 +0200)] 
gio-2.0: Update to 2.65.0~a136776e

5 years agogstreamer: Update from 1.17.0+ git master 2209a67b0c716bb1880c8100fadd5dc3725ed68d
Rico Tzschichholz [Sun, 5 Apr 2020 20:29:00 +0000 (22:29 +0200)] 
gstreamer: Update from 1.17.0+ git master

5 years agogtk4: Update to 3.98.2+11495027
Rico Tzschichholz [Sun, 5 Apr 2020 20:29:00 +0000 (22:29 +0200)] 
gtk4: Update to 3.98.2+11495027

5 years agocodegen: Don't pass CCodeCastExpression to NULL-aware free macro
Rico Tzschichholz [Sun, 5 Apr 2020 20:24:58 +0000 (22:24 +0200)] 
codegen: Don't pass CCodeCastExpression to NULL-aware free macro

This resulted in invalid C code:
    error: lvalue required as left operand of assignment

Fixes https://gitlab.gnome.org/GNOME/vala/issues/953

5 years agogdbus: Use GDBusProxy API to set `g-interface-info` at initialization time 25f93c2822095743f9c8d090e28c4610a324bf0f 119/head
Corentin Noël [Fri, 3 Apr 2020 10:53:27 +0000 (12:53 +0200)] 
gdbus: Use GDBusProxy API to set `g-interface-info` at initialization time

This allows GDBusProxy subclasses to have the g-interface-info assigned
even when the class hasn't been created by Vala itself.

Keep obsolete setting of 'vala-dbus-interface-info' to preserve backwards
compatibility.

5 years agotests: Extend "DBus signals" test to increase coverage 61e69f43be39cbd57df4fc4ea4d63c92ac57ebb0 122/head
Corentin Noël [Sun, 5 Apr 2020 12:25:29 +0000 (14:25 +0200)] 
tests: Extend "DBus signals" test to increase coverage

This adds code coverage for generating multiple signals, tests for
arrays and ensures that the private signals are not leaking.

5 years agovala: Warn about usage of override to implement abstract interface methods e9c5f4ab09b9ca66241e863b7d333ecc6bb4c38c
Rico Tzschichholz [Sun, 5 Apr 2020 12:45:34 +0000 (14:45 +0200)] 
vala: Warn about usage of override to implement abstract interface methods

Fixes criticals in GAsyncModule.visit_method()

    vala_symbol_get_parent_symbol: assertion 'self != NULL' failed

which were introduced with 12db9b7eeb1f53975010d89839d554b5fcf99831

5 years agovala: Drop --use-header compiler option and enable it by default 9f3249212112526353d41b875bf56b2eac6e9a47
Mason Bogue [Fri, 20 Mar 2020 22:42:59 +0000 (18:42 -0400)] 
vala: Drop --use-header compiler option and enable it by default

Import definitions from generated header files if available

Fixes https://gitlab.gnome.org/GNOME/vala/issues/713

5 years agocodegen: Use defintions of public header in internal header if available 3d7760835e56a04a939c17a35a6db1c542415d6d
Mason Bogue [Sat, 21 Mar 2020 23:14:51 +0000 (19:14 -0400)] 
codegen: Use defintions of public header in internal header if available

Add CCode API to distinguish between public and internal header files.

See https://gitlab.gnome.org/GNOME/vala/issues/713

5 years agocodegen: Correctly handle transformation of translated string-literal constants d02167aff9da38e85d7cdc21fff2b91ba9e35e9d
Rico Tzschichholz [Sun, 5 Apr 2020 09:02:01 +0000 (11:02 +0200)] 
codegen: Correctly handle transformation of translated string-literal constants

The required header includes were not emited to the correct declaration space.

5 years agocodegen: Include "glib.h" for G_BEGIN_DECLS/G_END_DECLS usage
Rico Tzschichholz [Sun, 5 Apr 2020 07:11:04 +0000 (09:11 +0200)] 
codegen: Include "glib.h" for G_BEGIN_DECLS/G_END_DECLS usage

5 years agovala: Parse standalone integer/real literals as expression statement 77aec5976dd55591c4b82603ac70ec9deb71f2fb
Rico Tzschichholz [Sat, 4 Apr 2020 08:25:31 +0000 (10:25 +0200)] 
vala: Parse standalone integer/real literals as expression statement

Issue an error in the semantic check to forbid such statements.

Parsing such an errornous expression-statement failed since
5464767cfa5a8dbbc5f46293693ca627b8fcc46d

Fixes https://gitlab.gnome.org/GNOME/vala/issues/961

5 years agotests: Extend "array foreach" test to increase coverage d08837bd13043f1dbe0a198ad11499bb239abec7
Rico Tzschichholz [Wed, 1 Apr 2020 18:07:23 +0000 (20:07 +0200)] 
tests: Extend "array foreach" test to increase coverage

5 years agovala: Consider boolean types are compatible with each other 792e9672a07fec8cbe4152789ad38c4304c8e266
Rico Tzschichholz [Wed, 1 Apr 2020 12:02:55 +0000 (14:02 +0200)] 
vala: Consider boolean types are compatible with each other

5 years agotests: Add "expression as argument" tests to increase coverage
Rico Tzschichholz [Tue, 31 Mar 2020 20:56:44 +0000 (22:56 +0200)] 
tests: Add "expression as argument" tests to increase coverage

5 years agocodegen: Correct field declaration for captured inline-allocated array aa56462e5a25e6843faf4353ca396a069cd431e4
Rico Tzschichholz [Tue, 31 Mar 2020 12:55:59 +0000 (14:55 +0200)] 
codegen: Correct field declaration for captured inline-allocated array

Also pass proper size to memset for local temp variables of
inline-allocated arrays in asynchronous context.

Fixes https://gitlab.gnome.org/GNOME/vala/issues/954

5 years agocodegen: Don't free value if property setter takes ownership
Rico Tzschichholz [Tue, 31 Mar 2020 08:39:38 +0000 (10:39 +0200)] 
codegen: Don't free value if property setter takes ownership

Correctly handle owned property accessor in object initializer.

In addition to c0e955db075d3d155782c167a0abb81e0dce5f59

See https://gitlab.gnome.org/GNOME/vala/issues/953

5 years agotests: Add "local clash with implicit this" test to increase coverage
Rico Tzschichholz [Tue, 31 Mar 2020 08:39:38 +0000 (10:39 +0200)] 
tests: Add "local clash with implicit this" test to increase coverage

5 years agotests: Add "switch enum" test to increase coverage
Rico Tzschichholz [Tue, 31 Mar 2020 08:39:38 +0000 (10:39 +0200)] 
tests: Add "switch enum" test to increase coverage

5 years agocodegen: Avoid critical trying to serialize an unsupported type to Variant 795e3217f7166acbe6d505282e6f1f9e3b8c2712
Rico Tzschichholz [Mon, 30 Mar 2020 06:47:17 +0000 (08:47 +0200)] 
codegen: Avoid critical trying to serialize an unsupported type to Variant

Fixes https://gitlab.gnome.org/GNOME/vala/issues/952

5 years agovala: Handle all ctors and dtors in CodeWriter
Rico Tzschichholz [Sun, 29 Mar 2020 12:30:49 +0000 (14:30 +0200)] 
vala: Handle all ctors and dtors in CodeWriter

5 years agovala: Handle unlock() statement in CodeWriter
Rico Tzschichholz [Sun, 29 Mar 2020 12:30:49 +0000 (14:30 +0200)] 
vala: Handle unlock() statement in CodeWriter

5 years agovala: Support struct initializer list in non-constant array bb85929a76cbb114fd7992b5f30dc105cc673523 115/head
Simon Werbeck [Tue, 24 Mar 2020 16:35:09 +0000 (17:35 +0100)] 
vala: Support struct initializer list in non-constant array

A struct initializer list contained in an array initializer list is now
transformed to a struct creation expression. The pre-existing logic
ensures that constant expressions are not transformed.

Fixes https://gitlab.gnome.org/GNOME/vala/issues/949

5 years agocodegen: Append initializer for "_*_size_" of array field in internal struct 74725956b2c99da3ff289ff2d294c525ff2f85c9
Rico Tzschichholz [Tue, 25 Feb 2020 11:35:15 +0000 (12:35 +0100)] 
codegen: Append initializer for "_*_size_" of array field in internal struct

Fixes https://gitlab.gnome.org/GNOME/vala/issues/914

5 years agovala: Move setting of target profile and standard packages into CodeContext bd73f1ba11c387c919ad06d44badfd7065d1e35f 36/head
Rico Tzschichholz [Thu, 3 Jan 2019 11:15:21 +0000 (12:15 +0100)] 
vala: Move setting of target profile and standard packages into CodeContext

5 years agogirparser: Strip "Enum"-suffix only from enumeration
Rico Tzschichholz [Tue, 3 Mar 2020 13:28:12 +0000 (14:28 +0100)] 
girparser: Strip "Enum"-suffix only from enumeration

This lead to superfluous symbol clashes when applied widely.
e.g. GLib.ParamSpecEnum which is subclass of GLib.ParamSpec

Introduced with 37201b0016a6f710dea6c9db08ff351641086686

5 years agovala: Add Expression.is_always_true/false() helpers
Rico Tzschichholz [Sat, 17 Nov 2018 18:23:28 +0000 (19:23 +0100)] 
vala: Add Expression.is_always_true/false() helpers

5 years agotests: Add "throw in loops" tests to increase coverage
Rico Tzschichholz [Thu, 28 Nov 2019 09:05:30 +0000 (10:05 +0100)] 
tests: Add "throw in loops" tests to increase coverage

5 years agovala: Remove some public API from expressions and statements
Rico Tzschichholz [Thu, 20 Feb 2020 10:20:53 +0000 (11:20 +0100)] 
vala: Remove some public API from expressions and statements

5 years agoBump version suffix to 0.50
Rico Tzschichholz [Mon, 23 Mar 2020 21:34:06 +0000 (22:34 +0100)] 
Bump version suffix to 0.50

5 years agoRelease 0.48.2 9e0ed97536dbbd48dc35146289e570bef5589260 0.48.2
Rico Tzschichholz [Mon, 23 Mar 2020 13:58:08 +0000 (14:58 +0100)] 
Release 0.48.2

5 years agomanual: Update from wiki.gnome.org
Rico Tzschichholz [Mon, 23 Mar 2020 13:57:51 +0000 (14:57 +0100)] 
manual: Update from wiki.gnome.org

5 years agovapi: Update GIR-based bindings
Rico Tzschichholz [Mon, 23 Mar 2020 16:16:00 +0000 (17:16 +0100)] 
vapi: Update GIR-based bindings

5 years agogstreamer: Update from 1.17.0+ git master
Rico Tzschichholz [Mon, 23 Mar 2020 16:12:28 +0000 (17:12 +0100)] 
gstreamer: Update from 1.17.0+ git master

5 years agogtk4: Update to 3.98.1
Rico Tzschichholz [Mon, 23 Mar 2020 14:26:07 +0000 (15:26 +0100)] 
gtk4: Update to 3.98.1

5 years agotests: Drop usage of "--main main" and avoid ambigious entry-points ccefa8e4ab4e0f342eff0837c545352388e48847
Rico Tzschichholz [Sun, 22 Mar 2020 16:15:05 +0000 (17:15 +0100)] 
tests: Drop usage of "--main main" and avoid ambigious entry-points

5 years agocodegen: IntegerLiteral is a valid constant size for inline-allocated array 7e7332ab08ff483d23260059c7a24a9bc17993cf
Rico Tzschichholz [Sat, 21 Mar 2020 16:09:30 +0000 (17:09 +0100)] 
codegen: IntegerLiteral is a valid constant size for inline-allocated array

In addition to b95a766454eb914f4eb5a68e9040e03faffabf52

See https://gitlab.gnome.org/GNOME/vala/issues/910

5 years agovala: Inline-allocated array can't be instantiated with creation expression
Rico Tzschichholz [Sat, 21 Mar 2020 16:09:30 +0000 (17:09 +0100)] 
vala: Inline-allocated array can't be instantiated with creation expression

This generalizes 0554ed7ad9cefe0f56e53dc00be88488dfa788bf

Fixes https://gitlab.gnome.org/GNOME/vala/issues/926

5 years agocodegen: Include "glib.h" for g_return_*() usage 6241e0523461c9af5d1f0881ec4c0087bcdab522
Rico Tzschichholz [Thu, 19 Mar 2020 17:24:16 +0000 (18:24 +0100)] 
codegen: Include "glib.h" for g_return_*() usage

Fixes https://gitlab.gnome.org/GNOME/vala/issues/940

5 years agoglib-2.0: Add binding for g_win32_ftruncate() c5b8d32e4ca4bce1427c2fab577468b5ec757571
Rico Tzschichholz [Mon, 16 Mar 2020 07:47:02 +0000 (08:47 +0100)] 
glib-2.0: Add binding for g_win32_ftruncate()

5 years agogio-2.0: Add binding for g_io_error_from_win32_error()
Rico Tzschichholz [Mon, 16 Mar 2020 07:08:46 +0000 (08:08 +0100)] 
gio-2.0: Add binding for g_io_error_from_win32_error()

5 years agoglib-2.0: Add missing IOChannel's win32 API
ZUHONG TAO [Sun, 15 Mar 2020 08:04:30 +0000 (08:04 +0000)] 
glib-2.0: Add missing IOChannel's win32 API

5 years agoparser: Improve error message for invalid ArrayCreationExpression 1203f54a72bea601b7635a4895f7f199c70e1e2d
Rico Tzschichholz [Thu, 19 Mar 2020 08:53:27 +0000 (09:53 +0100)] 
parser: Improve error message for invalid ArrayCreationExpression

Fixes https://gitlab.gnome.org/GNOME/vala/issues/939

5 years agocodegen: Initialize temp-var for property array length before calling getter
Rico Tzschichholz [Wed, 18 Mar 2020 17:11:13 +0000 (18:11 +0100)] 
codegen: Initialize temp-var for property array length before calling getter

Regression of d33e9fbca63674b7dfa339c25a9d5e27cce187f3

5 years agocodegen: Use memset to initialize inline-allocated array with non-constant size b95a766454eb914f4eb5a68e9040e03faffabf52
Rico Tzschichholz [Wed, 18 Mar 2020 13:05:13 +0000 (14:05 +0100)] 
codegen: Use memset to initialize inline-allocated array with non-constant size

In addition to a0bb129e5a2e8580eb272d9a68ba054e7b170dba

Fixes https://gitlab.gnome.org/GNOME/vala/issues/910

5 years agocodegen: Improve handling of "array_length_type" attribute
Rico Tzschichholz [Tue, 17 Mar 2020 14:26:36 +0000 (15:26 +0100)] 
codegen: Improve handling of "array_length_type" attribute

This affects methods, parameters, field and properties.

Fixes https://gitlab.gnome.org/GNOME/vala/issues/938

5 years agocodegen: Inherit "array_length_type" from (base-/base-interface) parameter/property...
Rico Tzschichholz [Tue, 17 Mar 2020 14:26:36 +0000 (15:26 +0100)] 
codegen: Inherit "array_length_type" from (base-/base-interface) parameter/property/method

See https://gitlab.gnome.org/GNOME/vala/issues/938

5 years agocodegen: Use correctly typed array-length variable for delegate invocation
Rico Tzschichholz [Tue, 17 Mar 2020 14:26:36 +0000 (15:26 +0100)] 
codegen: Use correctly typed array-length variable for delegate invocation

5 years agocodegen: Use correctly typed array-length variable for property-getter d33e9fbca63674b7dfa339c25a9d5e27cce187f3
Rico Tzschichholz [Tue, 17 Mar 2020 14:26:36 +0000 (15:26 +0100)] 
codegen: Use correctly typed array-length variable for property-getter

5 years agovala: Inherit lambda parameter attributes from delegate
Rico Tzschichholz [Tue, 17 Mar 2020 14:26:36 +0000 (15:26 +0100)] 
vala: Inherit lambda parameter attributes from delegate

... by setting base_parameter accordingly

5 years agovala: Improve copy of required attributes from delegate to lamdba method
Rico Tzschichholz [Tue, 17 Mar 2020 14:26:36 +0000 (15:26 +0100)] 
vala: Improve copy of required attributes from delegate to lamdba method

5 years agoposix: Add pathconf and fpathconf bindings 11b0fec74c200e7d7a7daf0177b1c65cf552beab 108/head
Corentin Noël [Tue, 17 Mar 2020 11:19:22 +0000 (12:19 +0100)] 
posix: Add pathconf and fpathconf bindings

Also bind the named constants to use them.

5 years agovala: Accept enum-values as length for inline allocated arrays bc8bf47d67d1056522f5e65c188e542b94a95449
Rico Tzschichholz [Sat, 14 Mar 2020 14:15:51 +0000 (15:15 +0100)] 
vala: Accept enum-values as length for inline allocated arrays

Fixes https://gitlab.gnome.org/GNOME/vala/issues/935

5 years agovaladoc: Create and register current Vala.CodeContext properly ccf932f616dc60b856a37f28924b35e52d3d4e83
Rico Tzschichholz [Fri, 13 Mar 2020 18:30:32 +0000 (19:30 +0100)] 
valadoc: Create and register current Vala.CodeContext properly

5 years agovala: Use error() instead of Report.error() inside of CodeContext.get()
Rico Tzschichholz [Fri, 13 Mar 2020 18:09:07 +0000 (19:09 +0100)] 
vala: Use error() instead of Report.error() inside of CodeContext.get()

This is a bad thing while Report.error() actually uses CodeContext.get()

Regression of e436f2833dc332e3fd728fe6f6b2cd7f224dcf33

5 years agovapi: Add cairo-gobject binding 0a9771d42ef724c4e03d1e1829242ba0952b0d9f 106/head
Rico Tzschichholz [Thu, 12 Mar 2020 19:41:57 +0000 (20:41 +0100)] 
vapi: Add cairo-gobject binding

and update reverse depends if appropriate

5 years agocairo: Add missing type_id attributes guarded by GOBJECT define
Corentin Noël [Thu, 12 Mar 2020 13:35:22 +0000 (14:35 +0100)] 
cairo: Add missing type_id attributes guarded by GOBJECT define

When Cairo is built with GObject support wrapper, it provides
cairo-gobject.h that defines GType and GBoxed structures and enums.

5 years agocodegen: Correctly access captured parameter in precondition of method c12529b7bd51640bbcc9b96bf84be7e0897c2ba1
Rico Tzschichholz [Fri, 13 Mar 2020 08:11:01 +0000 (09:11 +0100)] 
codegen: Correctly access captured parameter in precondition of method

Fixes https://gitlab.gnome.org/GNOME/vala/issues/144

5 years agocodegen: Emit postconditions before free'ing local variables
Rico Tzschichholz [Thu, 12 Mar 2020 23:01:09 +0000 (00:01 +0100)] 
codegen: Emit postconditions before free'ing local variables

It was possible to cause segmentation-faults or use-after-free errors.

5 years agocodegen: Reset outdated array _size_ variable after use as ref parameter 5490b0b21a4089d803d51c91311430d60d266f7b
Rico Tzschichholz [Thu, 12 Mar 2020 18:19:19 +0000 (19:19 +0100)] 
codegen: Reset outdated array _size_ variable after use as ref parameter

Fixes https://gitlab.gnome.org/GNOME/vala/issues/929

5 years agovapigen: Define "GOBJECT" corresponding to set profile of CodeContext
Rico Tzschichholz [Thu, 12 Mar 2020 18:19:19 +0000 (19:19 +0100)] 
vapigen: Define "GOBJECT" corresponding to set profile of CodeContext

This is required to evaluate pre-processor directives correctly in
sourced bindings.

Fixes https://gitlab.gnome.org/GNOME/vala/issues/933

5 years agoglib-2.0: Add binding for g_poll() b893c030da42f73182907044b93e9737b5654bc2
ZUHONG TAO [Wed, 11 Mar 2020 14:59:17 +0000 (14:59 +0000)] 
glib-2.0: Add binding for g_poll()

Fixes https://gitlab.gnome.org/GNOME/vala/issues/924

5 years agoRelease 0.48.1 bca593bf3c434270e41d11b1edd266ff61bebf4f 0.48.1
Rico Tzschichholz [Wed, 11 Mar 2020 11:14:48 +0000 (12:14 +0100)] 
Release 0.48.1

5 years agocodegen: Avoid symbol clashes with "va_*" from "stdarg.h"
Rico Tzschichholz [Wed, 11 Mar 2020 09:06:39 +0000 (10:06 +0100)] 
codegen: Avoid symbol clashes with "va_*" from "stdarg.h"

Make a better choice for naming the local variables in
CCodeArrayModule.append_params_array()

In addition to 98ab3da89640b8b8a6c67044b4df1194672774bb

Fixes https://gitlab.gnome.org/GNOME/vala/issues/923

5 years agocodegen: Move ObjectTypeSymbol casting to GTypeModule
Rico Tzschichholz [Mon, 25 Mar 2019 13:45:08 +0000 (14:45 +0100)] 
codegen: Move ObjectTypeSymbol casting to GTypeModule

5 years agocodegen: Factor out GValueModule
Rico Tzschichholz [Mon, 25 Mar 2019 10:49:34 +0000 (11:49 +0100)] 
codegen: Factor out GValueModule

5 years agocodegen: Move GLibValue into a separate source-file
Rico Tzschichholz [Mon, 25 Mar 2019 13:59:54 +0000 (14:59 +0100)] 
codegen: Move GLibValue into a separate source-file

5 years agocodegen: Cleanup GLibValue helper functions
Rico Tzschichholz [Thu, 28 Mar 2019 08:00:37 +0000 (09:00 +0100)] 
codegen: Cleanup GLibValue helper functions

5 years agotests: Extend "GLib.Value (un-)boxing" test to increase coverage
Rico Tzschichholz [Tue, 10 Mar 2020 15:38:07 +0000 (16:38 +0100)] 
tests: Extend "GLib.Value (un-)boxing" test to increase coverage

5 years agogtk4: Update to 3.98+2da445f9
Rico Tzschichholz [Sat, 22 Feb 2020 21:46:48 +0000 (22:46 +0100)] 
gtk4: Update to 3.98+2da445f9

5 years agovapi: Update GIR-based bindings
Rico Tzschichholz [Mon, 9 Mar 2020 10:20:20 +0000 (11:20 +0100)] 
vapi: Update GIR-based bindings

5 years agopoppler-glib: Update to 0.85
Rico Tzschichholz [Sun, 8 Mar 2020 17:04:18 +0000 (18:04 +0100)] 
poppler-glib: Update to 0.85

Fixes https://gitlab.gnome.org/GNOME/vala/issues/922

5 years agovala: Real struct-type without type_id can't be used for GObject property 4a25381d631a22979d2b3cc4f919f3a6106fae62
Rico Tzschichholz [Sun, 8 Mar 2020 16:54:39 +0000 (17:54 +0100)] 
vala: Real struct-type without type_id can't be used for GObject property

It caused an invalid usage of G_TYPE_POINTER with g_param_spec_boxed().

Fixes https://gitlab.gnome.org/GNOME/vala/issues/921

5 years agoglib-2.0: Add missing "type_id" or "has_type_id" attributes to structs
Rico Tzschichholz [Sun, 8 Mar 2020 16:54:39 +0000 (17:54 +0100)] 
glib-2.0: Add missing "type_id" or "has_type_id" attributes to structs

See https://gitlab.gnome.org/GNOME/vala/issues/921

5 years agocodegen: Actually respect "delegate_target" attribute of method/parameter
Rico Tzschichholz [Sun, 8 Mar 2020 09:41:16 +0000 (10:41 +0100)] 
codegen: Actually respect "delegate_target" attribute of method/parameter

5 years agocodegen: Inherit "delegate_target" from (base-/base-interface) parameter/property...
Rico Tzschichholz [Sun, 8 Mar 2020 09:41:16 +0000 (10:41 +0100)] 
codegen: Inherit "delegate_target" from (base-/base-interface) parameter/property/method

5 years agocodegen: Inherit "array" attributes from (base/base-interface) property
Rico Tzschichholz [Sun, 8 Mar 2020 09:41:16 +0000 (10:41 +0100)] 
codegen: Inherit "array" attributes from (base/base-interface) property

5 years agocodegen: Don't re-evaluate "itype" when "deleg" variable is already available
Rico Tzschichholz [Sun, 8 Mar 2020 09:41:16 +0000 (10:41 +0100)] 
codegen: Don't re-evaluate "itype" when "deleg" variable is already available

5 years agovala: Fix search for Parameter.base_parameter
Rico Tzschichholz [Sun, 8 Mar 2020 09:41:16 +0000 (10:41 +0100)] 
vala: Fix search for Parameter.base_parameter

5 years agoglib-2.0: Memory profiling ("g_mem_*") is deprecated since 2.46
Rico Tzschichholz [Sun, 8 Mar 2020 09:41:16 +0000 (10:41 +0100)] 
glib-2.0: Memory profiling ("g_mem_*") is deprecated since 2.46

5 years agotest: Fix "GenericAccessors" test
Rico Tzschichholz [Sat, 7 Mar 2020 13:59:52 +0000 (14:59 +0100)] 
test: Fix "GenericAccessors" test

5 years agotests: Extend "GenericAccessors" test to increase coverage
Rico Tzschichholz [Sat, 7 Mar 2020 09:50:21 +0000 (10:50 +0100)] 
tests: Extend "GenericAccessors" test to increase coverage

5 years agocodegen: Add destroy of parameter in vfunc of delegate property setter
Rico Tzschichholz [Sat, 7 Mar 2020 09:08:33 +0000 (10:08 +0100)] 
codegen: Add destroy of parameter in vfunc of delegate property setter

The vfunc of an owned setter requires a destroy parameter. Support for
this was introduced with 1e90d53dba0eff6ec2babd8292676099308dd4f6

Fixes https://gitlab.gnome.org/GNOME/vala/issues/919

5 years agotests: Rerun a few tests with POSIX profile to increase coverage
Rico Tzschichholz [Fri, 6 Mar 2020 21:47:54 +0000 (22:47 +0100)] 
tests: Rerun a few tests with POSIX profile to increase coverage

5 years agotests: Split array tests to provide a GLib-independent test
Rico Tzschichholz [Fri, 6 Mar 2020 21:47:54 +0000 (22:47 +0100)] 
tests: Split array tests to provide a GLib-independent test

5 years agocodegen: Replace hard-coded "gsize" with resolved "size_t"
Rico Tzschichholz [Fri, 6 Mar 2020 21:47:54 +0000 (22:47 +0100)] 
codegen: Replace hard-coded "gsize" with resolved "size_t"

5 years agolinux: Don't depend on GLib.Time when using POSIX profile
Rico Tzschichholz [Fri, 6 Mar 2020 21:47:54 +0000 (22:47 +0100)] 
linux: Don't depend on GLib.Time when using POSIX profile