]> git.ipfire.org Git - thirdparty/vala.git/log
thirdparty/vala.git
5 years agowebkit2gtk-4.0: Update to 2.29.2
Rico Tzschichholz [Tue, 19 May 2020 10:56:26 +0000 (12:56 +0200)] 
webkit2gtk-4.0: Update to 2.29.2

5 years agovala: Don't carry floating reference into unknown target type expression
Rico Tzschichholz [Fri, 26 Jun 2020 13:27:11 +0000 (15:27 +0200)] 
vala: Don't carry floating reference into unknown target type expression

A floating reference result of a method, which may throw an error, needs
to be sinked when passed as argument for ellipsis parameter.

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

5 years agotests: Add "named argument" test to increase coverage
Rico Tzschichholz [Fri, 26 Jun 2020 11:46:07 +0000 (13:46 +0200)] 
tests: Add "named argument" test to increase coverage

5 years agovala: Improve parameter check of "get" method meant to be used by foreach
Rico Tzschichholz [Fri, 26 Jun 2020 06:43:12 +0000 (08:43 +0200)] 
vala: Improve parameter check of "get" method meant to be used by foreach

The index-based iteration requires the "get" method to take one integer
compatible parameter. Otherwise continue checking other options.

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

5 years agobuild: Update git-version-gen to latest upstream
Chris White [Mon, 22 Jun 2020 12:24:48 +0000 (08:24 -0400)] 
build: Update git-version-gen to latest upstream

From commit 8a09003664733eb6bef031f56ef9cd575e403023 of
https://git.savannah.gnu.org/cgit/autoconf.git/tree/build-aux/git-version-gen

5 years agocodegen: Cast initializer-list to struct for non-constant/non-array assignments
Rico Tzschichholz [Wed, 17 Jun 2020 17:26:55 +0000 (19:26 +0200)] 
codegen: Cast initializer-list to struct for non-constant/non-array assignments

Avoid invalid c-code and use the correct syntax for compound literals.

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

5 years agogirparser: Actually respect given cprefix metadata for enumerations
Rico Tzschichholz [Wed, 17 Jun 2020 14:58:56 +0000 (16:58 +0200)] 
girparser: Actually respect given cprefix metadata for enumerations

5 years agovala: Use correct value-type for ArrayCreationExpression used as argument
Rico Tzschichholz [Mon, 15 Jun 2020 18:18:11 +0000 (20:18 +0200)] 
vala: Use correct value-type for ArrayCreationExpression used as argument

Copy fixed_length and inline_allocated attributes from formal-target-type.

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

5 years agoConsistently use get_ccode_lower_case_prefix() for function names
Rico Tzschichholz [Sun, 14 Jun 2020 06:59:51 +0000 (08:59 +0200)] 
Consistently use get_ccode_lower_case_prefix() for function names

Create the expected name for "constructor" and "finalize" functions
which are non-public API.

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

5 years agotests: Build typelib if g-ir-compiler is available
Rico Tzschichholz [Thu, 11 Jun 2020 11:29:52 +0000 (13:29 +0200)] 
tests: Build typelib if g-ir-compiler is available

5 years agolibvaladoc/girimporter: Skip "function-macro" elements
Corentin Noël [Fri, 27 Mar 2020 12:32:58 +0000 (13:32 +0100)] 
libvaladoc/girimporter: Skip "function-macro" elements

This is the same patch as in commit f51d9dfdaf97ab5b8377d7e5bb78cfc9b232dc86

5 years agoharfbuzz-gobject: Update to 2.6.7
Rico Tzschichholz [Sun, 7 Jun 2020 13:29:07 +0000 (15:29 +0200)] 
harfbuzz-gobject: Update to 2.6.7

5 years agogirwriter: Append symbol-attributes to callback field rather than its type
Rico Tzschichholz [Wed, 10 Jun 2020 12:01:05 +0000 (14:01 +0200)] 
girwriter: Append symbol-attributes to callback field rather than its type

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

5 years agovala: Correctly handle qualified struct type reference in initializer list
Rico Tzschichholz [Sat, 6 Jun 2020 07:53:19 +0000 (09:53 +0200)] 
vala: Correctly handle qualified struct type reference in initializer list

Construct member-access including namespace of inferred struct type.

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

5 years agovala: Fix typo in comments
Rico Tzschichholz [Fri, 5 Jun 2020 07:07:54 +0000 (09:07 +0200)] 
vala: Fix typo in comments

5 years agocodegen: Don't call get_ccode_finish_instance() with non-async methods
Rico Tzschichholz [Thu, 4 Jun 2020 06:10:21 +0000 (08:10 +0200)] 
codegen: Don't call get_ccode_finish_instance() with non-async methods

and restrict evaluation of CCode.finish_* attributes to async methods only

5 years agovala: Improve source documentation
Rico Tzschichholz [Tue, 26 May 2020 08:03:16 +0000 (10:03 +0200)] 
vala: Improve source documentation

5 years agocodegen: Improve array-dup-wrapper for empty arrays
Rico Tzschichholz [Sun, 24 May 2020 17:25:41 +0000 (19:25 +0200)] 
codegen: Improve array-dup-wrapper for empty arrays

Guard against negative lengths and consistently return NULL if allocated
size would be 0.

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

5 years agotests: Extend "s[p]lice" tests to increase coverage
Rico Tzschichholz [Sun, 24 May 2020 17:25:41 +0000 (19:25 +0200)] 
tests: Extend "s[p]lice" tests to increase coverage

5 years agogtk+-3.0: Deprecated abstract methods are not required to be implemented
Rico Tzschichholz [Fri, 22 May 2020 16:31:46 +0000 (18:31 +0200)] 
gtk+-3.0: Deprecated abstract methods are not required to be implemented

5 years agoRelease 0.46.10 0.46.10
Rico Tzschichholz [Tue, 19 May 2020 15:12:12 +0000 (17:12 +0200)] 
Release 0.46.10

5 years agogirparser: Add support for boolean "new" argument for methods
Rico Tzschichholz [Mon, 18 May 2020 10:30:07 +0000 (12:30 +0200)] 
girparser: Add support for boolean "new" argument for methods

5 years agovala: Explicit "new" method may be incompatible with a posssible base method
Rico Tzschichholz [Mon, 18 May 2020 10:26:14 +0000 (12:26 +0200)] 
vala: Explicit "new" method may be incompatible with a posssible base method

5 years agocodegen: Use loop index instead of get_ccode_pos() for ellipsis parameter
Rico Tzschichholz [Mon, 18 May 2020 07:31:41 +0000 (09:31 +0200)] 
codegen: Use loop index instead of get_ccode_pos() for ellipsis parameter

Otherwise this will cause an index clash resulting in loosing the first
variable list parameter.

Regression of b1cb7036bee1f21e98e93ac34b31a95eeed32815

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

5 years agovala: Transform cast from integer-type to boxed-type
Rico Tzschichholz [Sun, 10 May 2020 10:54:15 +0000 (12:54 +0200)] 
vala: Transform cast from integer-type to boxed-type

Don't generate faulty c-code with results in segmentation faults.

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

5 years agovala: Transform cast from floating-type to boxed-type
Rico Tzschichholz [Sat, 9 May 2020 11:35:07 +0000 (13:35 +0200)] 
vala: Transform cast from floating-type to boxed-type

Don't generate invalid c-code leading to "cannot convert to a pointer type"

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

5 years agocodegen: Correctly handle cast-expression of real struct to nullable struct
Rico Tzschichholz [Sun, 10 May 2020 06:46:33 +0000 (08:46 +0200)] 
codegen: Correctly handle cast-expression of real struct to nullable struct

Don't generate invalid c-code leading to "cannot convert to a pointer type"

Fix https://gitlab.gnome.org/GNOME/vala/issues/991

5 years agovala: Set value_type of undefined member-access to avoid further criticals
Rico Tzschichholz [Sat, 9 May 2020 06:17:47 +0000 (08:17 +0200)] 
vala: Set value_type of undefined member-access to avoid further criticals

5 years agoUse "str_equal" as equal_func for ArrayList<string> instances
Rico Tzschichholz [Thu, 7 May 2020 18:58:36 +0000 (20:58 +0200)] 
Use "str_equal" as equal_func for ArrayList<string> instances

5 years agovala: Use stable hash for methods in HashMap of implicit_implementations
Rico Tzschichholz [Thu, 7 May 2020 18:58:36 +0000 (20:58 +0200)] 
vala: Use stable hash for methods in HashMap of implicit_implementations

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

5 years agovaladoc: Add implicit "Posix" using-directive for POSIX profile
Rico Tzschichholz [Thu, 7 May 2020 08:44:54 +0000 (10:44 +0200)] 
valadoc: Add implicit "Posix" using-directive for POSIX profile

5 years agovala: SemanticAnalyzer.get_instance_base_type() is not allowed to return null
Rico Tzschichholz [Tue, 5 May 2020 07:32:48 +0000 (09:32 +0200)] 
vala: SemanticAnalyzer.get_instance_base_type() is not allowed to return null

This is private internal API.

5 years agovala: Allow node_reference being null in SemanticAnalyzer.get_instance_base_type()
Rico Tzschichholz [Tue, 5 May 2020 07:19:28 +0000 (09:19 +0200)] 
vala: Allow node_reference being null in SemanticAnalyzer.get_instance_base_type()

This allows a wider usage of DataType.get_actual_type() without an actual
reference to the AST.

This is private internal API.

5 years agogitignore: Update and add some IDE files
Rico Tzschichholz [Mon, 27 Apr 2020 12:43:59 +0000 (14:43 +0200)] 
gitignore: Update and add some IDE files

5 years agoRelease 0.46.9 0.46.9
Rico Tzschichholz [Thu, 23 Apr 2020 06:20:47 +0000 (08:20 +0200)] 
Release 0.46.9

5 years agotests: Extend "fastvapi" test to increase coverage
Rico Tzschichholz [Thu, 23 Apr 2020 05:40:41 +0000 (07:40 +0200)] 
tests: Extend "fastvapi" test to increase coverage

5 years agoRevert "vala: Set default_construction_method in semantic-analyzer check if required"
Rico Tzschichholz [Thu, 23 Apr 2020 05:44:21 +0000 (07:44 +0200)] 
Revert "vala: Set default_construction_method in semantic-analyzer check if required"

This reverts commit d176f179581fac880f5598bb53b3475392af2c4b.

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

5 years agoRelease 0.46.8 0.46.8
Rico Tzschichholz [Tue, 21 Apr 2020 12:11:23 +0000 (14:11 +0200)] 
Release 0.46.8

5 years agotests: Fix make dist
Rico Tzschichholz [Tue, 21 Apr 2020 12:27:13 +0000 (14:27 +0200)] 
tests: Fix make dist

5 years agoharfbuzz-gobject: Sync from 0.48.x
Rico Tzschichholz [Mon, 20 Apr 2020 20:10:49 +0000 (22:10 +0200)] 
harfbuzz-gobject: Sync from 0.48.x

5 years agogtk+-3.0: Update to 3.24.18
Rico Tzschichholz [Mon, 20 Apr 2020 20:08:05 +0000 (22:08 +0200)] 
gtk+-3.0: Update to 3.24.18

5 years agogio-2.0: Add "async_result_pos" attributes to *.call_with_unix_fd_list()
Rico Tzschichholz [Sun, 19 Apr 2020 16:20:41 +0000 (18:20 +0200)] 
gio-2.0: Add "async_result_pos" attributes to *.call_with_unix_fd_list()

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

5 years agogirparser: Improve detection of AsyncReadyCallback/AsyncResult parameters
Rico Tzschichholz [Sun, 19 Apr 2020 16:20:41 +0000 (18:20 +0200)] 
girparser: Improve detection of AsyncReadyCallback/AsyncResult parameters

5 years agogirparser: Drop special handling of GLib.Data, GLib.PtrArray and GLib.String
Rico Tzschichholz [Sun, 19 Apr 2020 16:20:41 +0000 (18:20 +0200)] 
girparser: Drop special handling of GLib.Data, GLib.PtrArray and GLib.String

5 years agogirparser: Move special handling for certain parameters to process_callable()
Rico Tzschichholz [Sun, 19 Apr 2020 16:20:41 +0000 (18:20 +0200)] 
girparser: Move special handling for certain parameters to process_callable()

- Detect delegate throwing error when GLib.Error out-parameter exists
- Mark method as async based on finding an AsyncReadyCallback parameter
- Apply null-literal default-value for trailing GLib.Cancellable? parameters

5 years agocodegen: Fix default of CCode.pos for parameters in async methods
Rico Tzschichholz [Sun, 19 Apr 2020 16:20:41 +0000 (18:20 +0200)] 
codegen: Fix default of CCode.pos for parameters in async methods

5 years agovala: Ensure non-empty argument list for "disconnect" before accessing it
Princeton Ferro [Fri, 17 Apr 2020 06:45:12 +0000 (02:45 -0400)] 
vala: Ensure non-empty argument list for "disconnect" before accessing it

Avoids an internal assertion on accessing an empty collection.

5 years agotests: Add "version check" tests to increase coverage
Rico Tzschichholz [Thu, 16 Apr 2020 12:36:10 +0000 (14:36 +0200)] 
tests: Add "version check" tests to increase coverage

Use several symbols from glib-2.0 >= 2.50 and refer to custom pkg-config
file defining 2.48.0 as version.

5 years agovala: Quote symbol on report by version attribute check
Rico Tzschichholz [Thu, 16 Apr 2020 10:37:26 +0000 (12:37 +0200)] 
vala: Quote symbol on report by version attribute check

5 years agovala: Perform version check for types of non-external variable declarations
Rico Tzschichholz [Thu, 16 Apr 2020 10:37:26 +0000 (12:37 +0200)] 
vala: Perform version check for types of non-external variable declarations

5 years agovala: Don't perform version check on internal lambda method
Rico Tzschichholz [Thu, 16 Apr 2020 10:37:26 +0000 (12:37 +0200)] 
vala: Don't perform version check on internal lambda method

5 years agovala: Check assigned handler of dynamic signal before proceeding further
Rico Tzschichholz [Wed, 15 Apr 2020 19:17:33 +0000 (21:17 +0200)] 
vala: Check assigned handler of dynamic signal before proceeding further

This fixes criticals if an errornous expression was given.

5 years agocodegen: Fix base-access to non-abstract/non-virtual properties
Rico Tzschichholz [Wed, 15 Apr 2020 12:06:57 +0000 (14:06 +0200)] 
codegen: Fix base-access to non-abstract/non-virtual properties

Don't unconditionally try to access vfuncs and actually emit assignments.

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

5 years agotestrunner: Add -Werror=array-bounds
Rico Tzschichholz [Mon, 13 Apr 2020 13:29:56 +0000 (15:29 +0200)] 
testrunner: Add -Werror=array-bounds

5 years agocodegen: Use specified indices to access multidimensional array constants
Rico Tzschichholz [Mon, 13 Apr 2020 13:29:56 +0000 (15:29 +0200)] 
codegen: Use specified indices to access multidimensional array constants

This fixes compile issues together with -Waggressive-loop-optimizations
and warnings with -Warray-bounds.

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

5 years agocodegen: Correctly handle signals returning real non-nullable struct
Rico Tzschichholz [Sun, 12 Apr 2020 09:02:29 +0000 (11:02 +0200)] 
codegen: Correctly handle signals returning real non-nullable struct

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

5 years agocodegen: Use get_value_*_function() in GSignalModule.generate_marshaller()
Rico Tzschichholz [Sun, 12 Apr 2020 09:02:29 +0000 (11:02 +0200)] 
codegen: Use get_value_*_function() in GSignalModule.generate_marshaller()

This makes sure to pick up the intended function like the generated ones
for fundamental classes.

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

5 years agocodegen: Fix binary 'in' operator on array with boxed value-typed needle
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
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 agogstreamer-1.0: Don't skip GST_*_FORMAT strings
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
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: Fix cleaning of output in CodeContext.pkg_config_modversion()
Rico Tzschichholz [Thu, 16 Apr 2020 08:00:21 +0000 (10:00 +0200)] 
vala: Fix cleaning of output in CodeContext.pkg_config_modversion()

5 years agoglib-2.0: Guard Pid.to_string() with GLIB_2_50 to deal with G_PID_FORMAT
Rico Tzschichholz [Thu, 16 Apr 2020 08:00:21 +0000 (10:00 +0200)] 
glib-2.0: Guard Pid.to_string() with GLIB_2_50 to deal with G_PID_FORMAT

Otherwise building with glib-2.0 < 2.50 breaks due availability check of
GLib.Pid.FORMAT.

5 years agoglib-2.0: Fix Filename.canonicalize() binding of g_canonicalize_filename
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
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
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
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 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 agotests: Add "g-interface-info" dbus test to increase coverage
Corentin Noël [Fri, 3 Apr 2020 10:53:27 +0000 (12:53 +0200)] 
tests: Add "g-interface-info" dbus test to increase coverage

5 years agotests: Extend "DBus signals" test to increase coverage
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
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 agocodegen: Correctly handle transformation of translated string-literal constants
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
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
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
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
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
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
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
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 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 agoRelease 0.46.7 0.46.7
Rico Tzschichholz [Thu, 26 Mar 2020 07:43:13 +0000 (08:43 +0100)] 
Release 0.46.7

5 years agoposix: Add pathconf and fpathconf bindings
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 agogtk+-3.0: Update to 3.24.14
Rico Tzschichholz [Sun, 1 Mar 2020 08:54:13 +0000 (09:54 +0100)] 
gtk+-3.0: Update to 3.24.14

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 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
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()
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
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 agotests: Add "property array length" test to increase coverage
Rico Tzschichholz [Wed, 18 Mar 2020 17:11:13 +0000 (18:11 +0100)] 
tests: Add "property array length" test to increase coverage

5 years agocodegen: Use memset to initialize inline-allocated array with non-constant size
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 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