]> git.ipfire.org Git - thirdparty/vala.git/log
thirdparty/vala.git
5 years agocodegen: Add simple compact class support for POSIX wip/class-posix 662929964ffc2984769afee20a751d8b383dc421 41/head
Rico Tzschichholz [Sat, 12 Jan 2019 17:05:40 +0000 (18:05 +0100)] 
codegen: Add simple compact class support for POSIX

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

5 years agocodewriter: Output inner interface declarations
Rico Tzschichholz [Fri, 6 Mar 2020 06:49:47 +0000 (07:49 +0100)] 
codewriter: Output inner interface declarations

Missing in d79401ad13a4bc5121f5ae187547c53b6a0a7701

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

5 years agoRelease 0.48.0 0.48.0
Rico Tzschichholz [Tue, 3 Mar 2020 13:55:41 +0000 (14:55 +0100)] 
Release 0.48.0

5 years agomanual: Update from wiki.gnome.org
Rico Tzschichholz [Tue, 3 Mar 2020 13:54:50 +0000 (14:54 +0100)] 
manual: Update from wiki.gnome.org

5 years agovala: Prevent possible stack-overflow in Class.is_subtype_of()
Princeton Ferro [Tue, 18 Feb 2020 09:39:54 +0000 (10:39 +0100)] 
vala: Prevent possible stack-overflow in Class.is_subtype_of()

5 years agogirparser: Delay adding of "GLib.Object" prerequisite to interfaces
Princeton Ferro [Mon, 3 Feb 2020 08:26:34 +0000 (03:26 -0500)] 
girparser: Delay adding of "GLib.Object" prerequisite to interfaces

5 years agogirparser: Decrease return_array_length_idx for transformed function
Rico Tzschichholz [Mon, 2 Mar 2020 22:56:57 +0000 (23:56 +0100)] 
girparser: Decrease return_array_length_idx for transformed function

5 years agovala: Don't create temp-variable for array concatenation expression f8676a6584d5b67ac76e132061a9df5d92258b0f
Rico Tzschichholz [Mon, 2 Mar 2020 20:05:38 +0000 (21:05 +0100)] 
vala: Don't create temp-variable for array concatenation expression

Found by scan-build

5 years agocodegen: Don't emit error-variable of CatchClause if not used
Rico Tzschichholz [Mon, 2 Mar 2020 20:05:38 +0000 (21:05 +0100)] 
codegen: Don't emit error-variable of CatchClause if not used

Found by scan-build

5 years agocodegen: g_clear_error() sets pointer target to NULL already
Rico Tzschichholz [Mon, 2 Mar 2020 20:05:38 +0000 (21:05 +0100)] 
codegen: g_clear_error() sets pointer target to NULL already

5 years agocodegen: Add more "low-level" includes of "glib.h"
Rico Tzschichholz [Mon, 2 Mar 2020 20:05:38 +0000 (21:05 +0100)] 
codegen: Add more "low-level" includes of "glib.h"

5 years agovala: Report an internal error for unavailable context and bail e436f2833dc332e3fd728fe6f6b2cd7f224dcf33
Rico Tzschichholz [Sun, 1 Mar 2020 11:37:52 +0000 (12:37 +0100)] 
vala: Report an internal error for unavailable context and bail

If calling CodeContext.get/pop() with an empty stack present then there is
no way to recover so bail.

5 years agovala: Fix circular reference in EnumValueType
Princeton Ferro [Sun, 1 Mar 2020 08:54:13 +0000 (09:54 +0100)] 
vala: Fix circular reference in EnumValueType

5 years agovala: Fix circular reference in Property
Princeton Ferro [Sun, 1 Mar 2020 08:54:13 +0000 (09:54 +0100)] 
vala: Fix circular reference in Property

5 years agoAdd missing CodeContext.pop() calls
Princeton Ferro [Sun, 1 Mar 2020 08:54:13 +0000 (09:54 +0100)] 
Add missing CodeContext.pop() calls

Release previously pushed CodeContext instances from static list.

5 years agovapi: Update GIR-based bindings
Rico Tzschichholz [Sun, 1 Mar 2020 08:54:13 +0000 (09:54 +0100)] 
vapi: Update GIR-based bindings

5 years agoRelease 0.47.92 1633ef94e0390c6c6897fabc4e00026f9fee18f9 0.47.92
Rico Tzschichholz [Mon, 24 Feb 2020 14:23:19 +0000 (15:23 +0100)] 
Release 0.47.92

5 years agovala: Add local-variables to current scope regardless its error state
Rico Tzschichholz [Sat, 22 Feb 2020 15:00:22 +0000 (16:00 +0100)] 
vala: Add local-variables to current scope regardless its error state

This avoids subsequent errors which are not useful to report when the user
actually defined it.

5 years agovala: Skip UsingDirective if error is set e5907252d4166adcc50969c1cc3aa6493760504e
Rico Tzschichholz [Thu, 20 Feb 2020 14:34:35 +0000 (15:34 +0100)] 
vala: Skip UsingDirective if error is set

5 years agovala: Handle unavailable type-symbol in Constant.check_const_type() 4f48a27ac93913667413d42f34a04b25949ee4a9
Princeton Ferro [Thu, 20 Feb 2020 14:31:13 +0000 (15:31 +0100)] 
vala: Handle unavailable type-symbol in Constant.check_const_type()

This caused criticals like:

  vala_typesymbol_is_subtype_of: assertion 'self != NULL' failed

5 years agovala: Don't analyze error-type of errornous catch-clauses 98fd2b1d7a669096bfa1e90e65313e1dc8200449
Rico Tzschichholz [Thu, 20 Feb 2020 14:26:46 +0000 (15:26 +0100)] 
vala: Don't analyze error-type of errornous catch-clauses

5 years agovala: Properly set CodeNode.error when reporting an error (2)
Rico Tzschichholz [Thu, 20 Feb 2020 14:24:36 +0000 (15:24 +0100)] 
vala: Properly set CodeNode.error when reporting an error (2)

5 years agovala: Don't check for unhandled error if error is set on body 169b99003aa8050de9dd69c47dff57b43b82ec1e
Rico Tzschichholz [Thu, 20 Feb 2020 14:19:37 +0000 (15:19 +0100)] 
vala: Don't check for unhandled error if error is set on body

This is how Method and CreationMethod behave already.

5 years agovala: Bail ThrowStatement.get_error_types() if error is set
Rico Tzschichholz [Thu, 20 Feb 2020 13:19:10 +0000 (14:19 +0100)] 
vala: Bail ThrowStatement.get_error_types() if error is set

This caused criticals when error_expression is not correct.

5 years agovala: Rely on more implementations of Block in SwitchSection a964a0ce124bf5f77e669376a31e3ecefd67cb97
Rico Tzschichholz [Thu, 20 Feb 2020 13:19:10 +0000 (14:19 +0100)] 
vala: Rely on more implementations of Block in SwitchSection

It was possible that statements in switch-sections were not processed
by the semantic-analyzer. Therefore they were not checked for errors
and marked as such.

5 years agovala: Rework ReturnStatement.check to handle "current_return_type == null"
Rico Tzschichholz [Thu, 20 Feb 2020 13:19:10 +0000 (14:19 +0100)] 
vala: Rework ReturnStatement.check to handle "current_return_type == null"

Thanks to Daniel Espinosa Ortiz.

5 years agotests: Add invalid "return" tests to increase coverage a6552034120c860aff0299d4774365ae74ccaa29
Rico Tzschichholz [Thu, 20 Feb 2020 08:33:19 +0000 (09:33 +0100)] 
tests: Add invalid "return" tests to increase coverage

5 years agovapi: Add some fundamental deps files
Rico Tzschichholz [Thu, 20 Feb 2020 06:40:33 +0000 (07:40 +0100)] 
vapi: Add some fundamental deps files

When using --nostdpkg those are important to have.

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

5 years agovala: Prevent possible stack-overflow in Class.is_compact/is_immutable 5dad5b3904450417b467a9a05210847c5a9a831b
Rico Tzschichholz [Wed, 19 Feb 2020 13:56:37 +0000 (14:56 +0100)] 
vala: Prevent possible stack-overflow in Class.is_compact/is_immutable

Guard recursive call on base_class in is_compact and is_immutable by
checking for cyclic class declaration.

5 years agovala: Method representing a LambdaExpression might be null on an error
Princeton Ferro [Wed, 19 Feb 2020 13:43:00 +0000 (14:43 +0100)] 
vala: Method representing a LambdaExpression might be null on an error

This caused criticals like:

  vala_method_get_closure: assertion 'self != NULL' failed

5 years agoAdd support for sealed classes in bindings
Rico Tzschichholz [Sun, 16 Jun 2019 17:28:24 +0000 (19:28 +0200)] 
Add support for sealed classes in bindings

The "sealed" keyword was available and parsed for a long time. So simply
pick it up information and expose it in the AST.

Issue an error when it is used in vala source.

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

5 years agovala: Never add "null" in ForeachStatement.get_defined_variables() c24a807efe5f06e04d6839a48521730d20769045
Rico Tzschichholz [Wed, 19 Feb 2020 06:36:30 +0000 (07:36 +0100)] 
vala: Never add "null" in ForeachStatement.get_defined_variables()

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

5 years agovala: Don't process arguments of MethodCall if error is set dfe4f15616ca0613ed87b6d19fb4a968db258421
Rico Tzschichholz [Tue, 18 Feb 2020 17:35:40 +0000 (18:35 +0100)] 
vala: Don't process arguments of MethodCall if error is set

This caused criticals like:

  vala_method_get_closure: assertion 'self != NULL' failed

5 years agovala: Set error and return early on invalid index in ElementAccess
Rico Tzschichholz [Tue, 18 Feb 2020 15:35:21 +0000 (16:35 +0100)] 
vala: Set error and return early on invalid index in ElementAccess

This caused criticals like:

  vala_code_node_check: assertion 'self != NULL' failed

5 years agovala: Don't process initializer of parameter if error is set 27fc5a83788c29a684241dd424dcb179e78b5e49
Rico Tzschichholz [Tue, 18 Feb 2020 15:20:42 +0000 (16:20 +0100)] 
vala: Don't process initializer of parameter if error is set

This caused criticals like:

  vala_data_type_compatible: assertion 'self != NULL' failed
  vala_code_node_to_string: assertion 'self != NULL' failed

5 years agotests: Add "GObject and GType class lifetime" tests to increase coverage
Rico Tzschichholz [Tue, 18 Feb 2020 14:03:42 +0000 (15:03 +0100)] 
tests: Add "GObject and GType class lifetime" tests to increase coverage

5 years agovala: Handle PointerType and VoidType in Constant.check_const_type()
Rico Tzschichholz [Tue, 18 Feb 2020 16:12:19 +0000 (17:12 +0100)] 
vala: Handle PointerType and VoidType in Constant.check_const_type()

This caused criticals like:

  vala_typesymbol_is_subtype_of: assertion 'self != NULL' failed

5 years agotestrunner: Pass G_DEBUG=fatal-warnings to invalid test
Rico Tzschichholz [Tue, 18 Feb 2020 15:59:52 +0000 (16:59 +0100)] 
testrunner: Pass G_DEBUG=fatal-warnings to invalid test

5 years agocodegen: Don't initialize stack-allocated array with local-constant length a0bb129e5a2e8580eb272d9a68ba054e7b170dba
Rico Tzschichholz [Mon, 17 Feb 2020 16:43:24 +0000 (17:43 +0100)] 
codegen: Don't initialize stack-allocated array with local-constant length

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

5 years agoRelease 0.47.91 0.47.91
Rico Tzschichholz [Mon, 17 Feb 2020 10:01:54 +0000 (11:01 +0100)] 
Release 0.47.91

5 years agomanual: Update from wiki.gnome.org
Rico Tzschichholz [Mon, 17 Feb 2020 10:00:46 +0000 (11:00 +0100)] 
manual: Update from wiki.gnome.org

5 years agopango: Update and add harfbuzz-gobject as dependency
Rico Tzschichholz [Mon, 17 Feb 2020 08:47:37 +0000 (09:47 +0100)] 
pango: Update and add harfbuzz-gobject as dependency

See https://gitlab.gnome.org/GNOME/pango/issues/458

5 years agovapi: Add harfbuzz-gobject binding
Rico Tzschichholz [Wed, 12 Feb 2020 16:48:04 +0000 (17:48 +0100)] 
vapi: Add harfbuzz-gobject binding

Mark it as experimental while is it subject to change.

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

5 years agogtk4: Update to 3.98.0+410dbdf6
Rico Tzschichholz [Sun, 16 Feb 2020 19:34:08 +0000 (20:34 +0100)] 
gtk4: Update to 3.98.0+410dbdf6

5 years agogirparser: Report a warning for conflicting class and instance methods
Rico Tzschichholz [Sun, 16 Feb 2020 19:15:04 +0000 (20:15 +0100)] 
girparser: Report a warning for conflicting class and instance methods

5 years agogstreamer: Update from 1.17.0+ git master
Rico Tzschichholz [Sun, 16 Feb 2020 18:43:05 +0000 (19:43 +0100)] 
gstreamer: Update from 1.17.0+ git master

5 years agowebkit2gtk-4.0: Update to 2.27.90
Rico Tzschichholz [Sun, 16 Feb 2020 17:32:56 +0000 (18:32 +0100)] 
webkit2gtk-4.0: Update to 2.27.90

5 years agogtk+-*.0,gtk4: Fix iter parameter of TextIter.order()
Rico Tzschichholz [Sun, 16 Feb 2020 13:47:24 +0000 (14:47 +0100)] 
gtk+-*.0,gtk4: Fix iter parameter of TextIter.order()

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

5 years agovala: Properly set CodeNode.error when reporting an error
Rico Tzschichholz [Mon, 10 Feb 2020 09:42:41 +0000 (10:42 +0100)] 
vala: Properly set CodeNode.error when reporting an error

5 years agotestrunner: Invalid tests and therefore expected failures must return 1 db50076daacc27a5d2376c5c549ba20a79e03e04
Rico Tzschichholz [Wed, 5 Feb 2020 07:32:53 +0000 (08:32 +0100)] 
testrunner: Invalid tests and therefore expected failures must return 1

5 years agovala: Don't ignore errors in Parameter and acknowledge them further
Rico Tzschichholz [Wed, 5 Feb 2020 07:32:53 +0000 (08:32 +0100)] 
vala: Don't ignore errors in Parameter and acknowledge them further

This avoids useless subsequent errors and possible criticals while
operating on broken AST.