]> git.ipfire.org Git - thirdparty/vala.git/log
thirdparty/vala.git
2 years agoRelease 0.54.9 0.54 0.54.9
Rico Tzschichholz [Fri, 16 Sep 2022 13:25:36 +0000 (15:25 +0200)] 
Release 0.54.9

2 years agovala: Avoid problems with '\' in #line directives on Windows
星外之神 [Sat, 27 Aug 2022 15:26:41 +0000 (23:26 +0800)] 
vala: Avoid problems with '\' in #line directives on Windows

Replace '\' with '/' in SourceFile.relative_path like in CodeContext.realpath().

  F:/msys64/home/x/test/test.vala.c: In function '_vala_main':
  F:/msys64/home/x/test/test.vala.c:12:9: warning: unknown escape sequence: '\M'
     12 | #line 3 "C:\MyFiles\test.vala"
        |         ^~~~~~~~~~~~~~~~~~~~~~

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

2 years agoglib-2.0: Use g_abort for GLib.Process.abort() beginning with 2.50
Rico Tzschichholz [Wed, 17 Aug 2022 06:46:18 +0000 (08:46 +0200)] 
glib-2.0: Use g_abort for GLib.Process.abort() beginning with 2.50

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

2 years agovala: Make try-statement parsing more resilient
Rico Tzschichholz [Mon, 15 Aug 2022 06:36:49 +0000 (08:36 +0200)] 
vala: Make try-statement parsing more resilient

Regression of f5934184d050d1a19f394fdab6f2ee66ff30965f

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

2 years agoatspi-2: Fix a few binding errors
Rico Tzschichholz [Tue, 9 Aug 2022 06:13:38 +0000 (08:13 +0200)] 
atspi-2: Fix a few binding errors

2 years agogidlparser: Set source reference of parameters
Rico Tzschichholz [Mon, 1 Aug 2022 15:04:36 +0000 (17:04 +0200)] 
gidlparser: Set source reference of parameters

2 years agovala: Don't unconditionally expect ObjectType of Class
Rico Tzschichholz [Sat, 30 Jul 2022 09:18:40 +0000 (11:18 +0200)] 
vala: Don't unconditionally expect ObjectType of Class

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

2 years agogtk+-3.0: Correctly unhide BindingSet.by_class to avoid Version attribute
Rico Tzschichholz [Tue, 19 Jul 2022 16:22:19 +0000 (18:22 +0200)] 
gtk+-3.0: Correctly unhide BindingSet.by_class to avoid Version attribute

2 years agovala: Avoid critical in SourceFile.get_mapped_length()
Rico Tzschichholz [Tue, 14 Jun 2022 10:43:16 +0000 (12:43 +0200)] 
vala: Avoid critical in SourceFile.get_mapped_length()

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

2 years agoglib2.0: Add abs() to int8/int16/int32/ssize_t
Gustav Hartvigsson [Thu, 2 Jun 2022 09:51:40 +0000 (11:51 +0200)] 
glib2.0: Add abs() to int8/int16/int32/ssize_t

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

2 years agocodegen: Detect usage of static type-parameter in runtime context
Rico Tzschichholz [Tue, 31 May 2022 08:19:46 +0000 (10:19 +0200)] 
codegen: Detect usage of static type-parameter in runtime context

Compact classes doesn't carry runtime information of its type-parameters.
In case this information is required we need report an error.

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

2 years agocodegen: Correctly set array-length for NoAccessorMethods properties
Rico Tzschichholz [Tue, 10 May 2022 16:00:45 +0000 (18:00 +0200)] 
codegen: Correctly set array-length for NoAccessorMethods properties

If value is a null-terminated array then calculate and set its length.

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

2 years agomanual: Update from wiki.gnome.org
Rico Tzschichholz [Wed, 20 Apr 2022 12:06:58 +0000 (14:06 +0200)] 
manual: Update from wiki.gnome.org

2 years agovaladoc: Include path to doclet in error message
Rico Tzschichholz [Tue, 5 Apr 2022 09:01:11 +0000 (11:01 +0200)] 
valadoc: Include path to doclet in error message

2 years agogtk4: Fix GLib.Value parameter in ContentProvider.get_value()
m-shinder [Wed, 6 Apr 2022 17:53:52 +0000 (17:53 +0000)] 
gtk4: Fix GLib.Value parameter in ContentProvider.get_value()

Value is `out caller-allocates` and it is also initialized by caller.

2 years agovala: Improve accessibility check inside member initializer
Rico Tzschichholz [Mon, 4 Apr 2022 07:28:34 +0000 (09:28 +0200)] 
vala: Improve accessibility check inside member initializer

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

2 years agovala: Don't allow nullable enum value as real GObject property
Rico Tzschichholz [Tue, 29 Mar 2022 14:33:55 +0000 (16:33 +0200)] 
vala: Don't allow nullable enum value as real GObject property

It is basically a boxed integer value.

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

3 years agoRelease 0.54.8 0.54.8
Rico Tzschichholz [Sat, 19 Mar 2022 17:27:45 +0000 (18:27 +0100)] 
Release 0.54.8

3 years agocodegen: Drop confusing warning when accessing interface members
Rico Tzschichholz [Tue, 8 Mar 2022 21:54:09 +0000 (22:54 +0100)] 
codegen: Drop confusing warning when accessing interface members

Making assumptions for member access using the current class is not correct.

Introduced by 0aace7bd6d3ec72e77f4eabbb7d5fffd3b2e86a8

3 years agoSDL2_ttf: Fix a few binding errors
Rico Tzschichholz [Sun, 31 Jan 2021 12:04:53 +0000 (13:04 +0100)] 
SDL2_ttf: Fix a few binding errors

3 years agotiff: Fix a few binding errors
Rico Tzschichholz [Wed, 31 Mar 2021 13:02:56 +0000 (15:02 +0200)] 
tiff: Fix a few binding errors

3 years agovapi: Regenerate GIR-based bindings to pick up previously skipped delegate parameters
Rico Tzschichholz [Fri, 4 Mar 2022 10:45:41 +0000 (11:45 +0100)] 
vapi: Regenerate GIR-based bindings to pick up previously skipped delegate parameters

3 years agogirparser: Don't count instance-parameter when checking for backwards closure reference
Rico Tzschichholz [Fri, 4 Mar 2022 10:45:41 +0000 (11:45 +0100)] 
girparser: Don't count instance-parameter when checking for backwards closure reference

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

3 years agogstreamer-video-1.0: Fix a few binding errors
Rico Tzschichholz [Mon, 28 Feb 2022 11:12:56 +0000 (12:12 +0100)] 
gstreamer-video-1.0: Fix a few binding errors

3 years agogstreamer-base-1.0: Fix a few bindings errors
Rico Tzschichholz [Mon, 28 Feb 2022 11:12:56 +0000 (12:12 +0100)] 
gstreamer-base-1.0: Fix a few bindings errors

3 years agogstreamer-audio-1.0: Fix a few binding errors
Rico Tzschichholz [Mon, 28 Feb 2022 11:12:56 +0000 (12:12 +0100)] 
gstreamer-audio-1.0: Fix a few binding errors

3 years agogst-editing-services-1.0: Fix BaseEffect.set_time_translation_funcs()
Rico Tzschichholz [Mon, 28 Feb 2022 11:12:56 +0000 (12:12 +0100)] 
gst-editing-services-1.0: Fix BaseEffect.set_time_translation_funcs()

3 years agogtk4: Fix content_deserialize_async()
Rico Tzschichholz [Mon, 28 Feb 2022 11:12:56 +0000 (12:12 +0100)] 
gtk4: Fix content_deserialize_async()

3 years agolibgrss: Fix FeedItem.get_geo_point() parameters
Rico Tzschichholz [Mon, 28 Feb 2022 11:12:56 +0000 (12:12 +0100)] 
libgrss: Fix FeedItem.get_geo_point() parameters

3 years agolibarchive: Fix a few binding errors
Rico Tzschichholz [Mon, 28 Feb 2022 11:12:56 +0000 (12:12 +0100)] 
libarchive: Fix a few binding errors

3 years agolibgsf-1: Fix a few binding errors
Rico Tzschichholz [Mon, 28 Feb 2022 11:12:56 +0000 (12:12 +0100)] 
libgsf-1: Fix a few binding errors

3 years agogirparser: Add support for "copy_/free_function" metadata for compact classes
Rico Tzschichholz [Mon, 28 Feb 2022 11:12:56 +0000 (12:12 +0100)] 
girparser: Add support for "copy_/free_function" metadata for compact classes

3 years agogirparser: Handle duplicated and unnamed symbols
Rico Tzschichholz [Mon, 28 Feb 2022 11:12:56 +0000 (12:12 +0100)] 
girparser: Handle duplicated and unnamed symbols

Issue warnings and skip such symbols to avoid errors on vala's side.

3 years agog-i: Update gidl binding to include type hierarchy
Princeton Ferro [Sat, 26 Feb 2022 00:36:47 +0000 (19:36 -0500)] 
g-i: Update gidl binding to include type hierarchy

The IdlNode* classes should be declared as subclasses of IdlNode, that
way the compiler can be sure that casting from an IdlNode is safe.

3 years agocodegen: Emit G_DEFINE_AUTO_CLEANUP_CLEAR_FUNC() for structs
Rico Tzschichholz [Thu, 24 Feb 2022 12:45:18 +0000 (13:45 +0100)] 
codegen: Emit G_DEFINE_AUTO_CLEANUP_CLEAR_FUNC() for structs

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

3 years agocodegen: Emit G_DEFINE_AUTOPTR_CLEANUP_FUNC() for interfaces with base class
Rico Tzschichholz [Thu, 24 Feb 2022 12:45:18 +0000 (13:45 +0100)] 
codegen: Emit G_DEFINE_AUTOPTR_CLEANUP_FUNC() for interfaces with base class

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

3 years agocodegen: Split out GTypeModule.generate_autoptr_cleanup()
Rico Tzschichholz [Thu, 24 Feb 2022 12:45:18 +0000 (13:45 +0100)] 
codegen: Split out GTypeModule.generate_autoptr_cleanup()

3 years agovapi: gtk4-unix-print is GIR-based
Rico Tzschichholz [Tue, 22 Feb 2022 18:18:16 +0000 (19:18 +0100)] 
vapi: gtk4-unix-print is GIR-based

3 years agotests: Extend "direct access to error code" test to increase coverage
Rico Tzschichholz [Tue, 22 Feb 2022 12:10:20 +0000 (13:10 +0100)] 
tests: Extend "direct access to error code" test to increase coverage

3 years agotests: Add invalid "error creation" tests to increase coverage
Rico Tzschichholz [Tue, 22 Feb 2022 09:56:05 +0000 (10:56 +0100)] 
tests: Add invalid "error creation" tests to increase coverage

3 years agotests: Fix objectcreation-no-creation-method.test
Rico Tzschichholz [Tue, 22 Feb 2022 09:47:04 +0000 (10:47 +0100)] 
tests: Fix objectcreation-no-creation-method.test

3 years agotests: Add more Werror=... flags
Rico Tzschichholz [Sat, 12 Feb 2022 11:58:22 +0000 (12:58 +0100)] 
tests: Add more Werror=... flags

3 years agobuild: Update git-version-gen to latest upstream
Rico Tzschichholz [Fri, 11 Feb 2022 09:26:41 +0000 (10:26 +0100)] 
build: Update git-version-gen to latest upstream

From commit b5a3c17daa05f6d76f70369e7cbeefe0db012499 of
https://git.savannah.gnu.org/cgit/gnulib.git/log/build-aux/git-version-gen

3 years agobuild: Update gitlog-to-changelog to latest upstream
Rico Tzschichholz [Fri, 11 Feb 2022 09:16:41 +0000 (10:16 +0100)] 
build: Update gitlog-to-changelog to latest upstream

From commit b5a3c17daa05f6d76f70369e7cbeefe0db012499 of
https://git.savannah.gnu.org/cgit/gnulib.git/tree/build-aux/gitlog-to-changelog

3 years agovala: Catch and throw possible inner error of lock statements
Rico Tzschichholz [Thu, 10 Feb 2022 17:07:56 +0000 (18:07 +0100)] 
vala: Catch and throw possible inner error of lock statements

See 40c1dbfbfedb6c4a6b88df045eb1c2e7bdd38d93

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

3 years agoRelease 0.54.7 0.54.7
Rico Tzschichholz [Mon, 14 Feb 2022 14:37:08 +0000 (15:37 +0100)] 
Release 0.54.7

3 years agomanual: Update from wiki.gnome.org
Rico Tzschichholz [Fri, 28 Jan 2022 13:25:13 +0000 (14:25 +0100)] 
manual: Update from wiki.gnome.org

3 years agogtk4: Specify sentinel for GtkAcessible methods
Niels De Graef [Thu, 3 Feb 2022 10:23:33 +0000 (11:23 +0100)] 
gtk4: Specify sentinel for GtkAcessible methods

3 years agolibsoup-2.4: Cherry-pick bindings fixes from 0.56
Rico Tzschichholz [Mon, 14 Feb 2022 13:47:18 +0000 (14:47 +0100)] 
libsoup-2.4: Cherry-pick bindings fixes from 0.56

3 years agolibgeoclue-2.0: Fix Simple.with_thresholds() contructor binding
Rico Tzschichholz [Fri, 14 Jan 2022 13:37:12 +0000 (14:37 +0100)] 
libgeoclue-2.0: Fix Simple.with_thresholds() contructor binding

3 years agovala: Show source location when reporting deprecations
Rico Tzschichholz [Mon, 27 Dec 2021 06:44:31 +0000 (07:44 +0100)] 
vala: Show source location when reporting deprecations

3 years agovala: Clear SemanticAnalyzer.current_{symbol,source_file} when not needed anymore
Rico Tzschichholz [Wed, 9 Feb 2022 20:32:09 +0000 (21:32 +0100)] 
vala: Clear SemanticAnalyzer.current_{symbol,source_file} when not needed anymore

3 years agovala: Free empty stack list for code contexts
Rico Tzschichholz [Wed, 9 Feb 2022 16:36:14 +0000 (17:36 +0100)] 
vala: Free empty stack list for code contexts

While having the stack list created on demand, make sure to destroy it
when it is not required anymore. Otherwise it will be leaked without an
option to avoid that to happen.

3 years agogtkmodule: Improve UI parsing and handling of nested objects and properties
Rico Tzschichholz [Tue, 8 Feb 2022 23:05:24 +0000 (00:05 +0100)] 
gtkmodule: Improve UI parsing and handling of nested objects and properties

Don't restrict GtkCallback to instance methods

3 years agogtkmodule: Recurse inner classes of ObjectTypeSymbols
Rico Tzschichholz [Tue, 8 Feb 2022 23:05:24 +0000 (00:05 +0100)] 
gtkmodule: Recurse inner classes of ObjectTypeSymbols

3 years agotest/gtktemplate: Use correct class name
Rico Tzschichholz [Tue, 8 Feb 2022 23:05:24 +0000 (00:05 +0100)] 
test/gtktemplate: Use correct class name

3 years agoparser: Clean up creation of constant declaration
Rico Tzschichholz [Sun, 6 Feb 2022 13:29:55 +0000 (14:29 +0100)] 
parser: Clean up creation of constant declaration

3 years agovala: Move dynamic property errors to semantic analyzer pass
Rico Tzschichholz [Sun, 6 Feb 2022 07:57:35 +0000 (08:57 +0100)] 
vala: Move dynamic property errors to semantic analyzer pass

3 years agovala: Make sure to drop our "trap" jump target in case of an error
Rico Tzschichholz [Fri, 4 Feb 2022 08:32:11 +0000 (09:32 +0100)] 
vala: Make sure to drop our "trap" jump target in case of an error

Otherwise this can result in an infinite loop in FlowAnalyzer.intersect()

Improve source reference for jump out of finally block

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

3 years agocodegen: Use correct target/destroy of delegate field initializer
Rico Tzschichholz [Mon, 31 Jan 2022 15:37:44 +0000 (16:37 +0100)] 
codegen: Use correct target/destroy of delegate field initializer

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

3 years agotests: Generic type inference for static methods only in compact classes
Rico Tzschichholz [Sun, 30 Jan 2022 17:07:23 +0000 (18:07 +0100)] 
tests: Generic type inference for static methods only in compact classes

3 years agovala: Add missing TraverseVisitor.visit_data_type()
Rico Tzschichholz [Sun, 30 Jan 2022 17:07:23 +0000 (18:07 +0100)] 
vala: Add missing TraverseVisitor.visit_data_type()

3 years agovala: Transform assignment of an array element as needed
wxx [Tue, 30 Nov 2021 18:54:04 +0000 (02:54 +0800)] 
vala: Transform assignment of an array element as needed

Fixes https://gitlab.gnome.org/GNOME/vala/issues/889
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1258

3 years agov4l2: Update V4l2.Capabilities and fix some inline arrays
Nikola Hadžić [Tue, 25 Jan 2022 09:07:04 +0000 (10:07 +0100)] 
v4l2: Update V4l2.Capabilities and fix some inline arrays

3 years agoalsa: Add/fix *.alloca() functions
Nikola Hadžić [Tue, 25 Jan 2022 09:02:17 +0000 (10:02 +0100)] 
alsa: Add/fix *.alloca() functions

3 years agoglib-2.0: Fix criticals in string.joinv() with arrays that start with null
Nahuel Gomez [Tue, 25 Jan 2022 17:23:58 +0000 (14:23 -0300)] 
glib-2.0: Fix criticals in string.joinv() with arrays that start with null

3 years agoparser: Improve handling of nullable VarType in with-statement
Rico Tzschichholz [Tue, 25 Jan 2022 17:10:49 +0000 (18:10 +0100)] 
parser: Improve handling of nullable VarType in with-statement

3 years agocodegen: Access of stack allocated struct is guaranteed to be non null
Rico Tzschichholz [Mon, 24 Jan 2022 09:17:46 +0000 (10:17 +0100)] 
codegen: Access of stack allocated struct is guaranteed to be non null

Found by -Werror=address with GCC 12

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

3 years agocodegen: Don't uncoditionally null check callback_func for GLib.Closure
Rico Tzschichholz [Mon, 24 Jan 2022 09:17:46 +0000 (10:17 +0100)] 
codegen: Don't uncoditionally null check callback_func for GLib.Closure

Found by -Werror=address with GCC 12

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

3 years agocodegen: Access of inline allocated array is guaranteed to be non null
Rico Tzschichholz [Sun, 23 Jan 2022 17:46:48 +0000 (18:46 +0100)] 
codegen: Access of inline allocated array is guaranteed to be non null

and improve null check for container in slice expression

Found by -Werror=address with GCC 12

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

3 years agovala: Implement missing YieldStatement.accept()
Rico Tzschichholz [Tue, 18 Jan 2022 17:42:11 +0000 (18:42 +0100)] 
vala: Implement missing YieldStatement.accept()

3 years agoparser: Reduce the source reference of main block method to its beginning
Rico Tzschichholz [Tue, 18 Jan 2022 13:33:15 +0000 (14:33 +0100)] 
parser: Reduce the source reference of main block method to its beginning

The end contains broken information which lead to a crash while trying to
report this multi-line source reference.

3 years agocodegen: Avoid symbol clashes with "va_*" from "stdarg.h"
Alvarito050506 [Mon, 17 Jan 2022 19:00:16 +0000 (16:00 -0300)] 
codegen: Avoid symbol clashes with "va_*" from "stdarg.h"

A few more symbol clashes with the va_* macros from stdarg.h, that seem to
happen only in some systems, like Alpine Linux or NetBSD.

3 years agovala: Require lvalue access of delegate target/destroy "fields"
Rico Tzschichholz [Sun, 16 Jan 2022 18:25:51 +0000 (19:25 +0100)] 
vala: Require lvalue access of delegate target/destroy "fields"

In addition to c054da918a40f8ef93c1a006034fb6ab4717c135

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

3 years agocodegen: Generated SimpleType structs don't have a type id
Rico Tzschichholz [Sun, 9 Jan 2022 18:49:27 +0000 (19:49 +0100)] 
codegen: Generated SimpleType structs don't have a type id

Set "CCode.has_type_id" in CCodeStructModule.generate_struct_declaration()
like in GTypeModule.visit_struct() for SimpleType structs which might be
executed too late.

In addition to 2e798fc3f8e9af25a4c231c2561894d9f0a0be50

3 years agoRelease 0.54.6 0.54.6
Rico Tzschichholz [Sat, 8 Jan 2022 16:06:33 +0000 (17:06 +0100)] 
Release 0.54.6

3 years agocodegen: Clear existing length values when revisiting a slice expression
Rico Tzschichholz [Wed, 5 Jan 2022 19:45:10 +0000 (20:45 +0100)] 
codegen: Clear existing length values when revisiting a slice expression

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

3 years agotests: Add "async signal handler" test to increase coverage
Rico Tzschichholz [Wed, 5 Jan 2022 07:25:19 +0000 (08:25 +0100)] 
tests: Add "async signal handler" test to increase coverage

3 years agotests: Add XFAIL tests if undefined behavior sanitizer is enabled
Rico Tzschichholz [Mon, 3 Jan 2022 15:51:31 +0000 (16:51 +0100)] 
tests: Add XFAIL tests if undefined behavior sanitizer is enabled

In addition to d3bfaa4ae34c0e6c7a7a9d124e6c3a276c545391

3 years agotests: Skip constants/member-access-enum.vala for ASAN
Rico Tzschichholz [Mon, 3 Jan 2022 15:51:31 +0000 (16:51 +0100)] 
tests: Skip constants/member-access-enum.vala for ASAN

In addition to 50414570d1b54a6106a9a64274bb84977d817616

3 years agocodegen: Cast given default-value of struct with possible member initializer
Rico Tzschichholz [Mon, 3 Jan 2022 12:59:36 +0000 (13:59 +0100)] 
codegen: Cast given default-value of struct with possible member initializer

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

3 years agocodegen: Allow boxing of non-external SimpleType structs
Rico Tzschichholz [Mon, 3 Jan 2022 08:07:00 +0000 (09:07 +0100)] 
codegen: Allow boxing of non-external SimpleType structs

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

3 years agogio-2.0: Add custom MemoryOutputStream.with_*data() wrappers
Rico Tzschichholz [Tue, 28 Dec 2021 12:18:46 +0000 (13:18 +0100)] 
gio-2.0: Add custom MemoryOutputStream.with_*data() wrappers

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

3 years agovala: Correctly replace "in" expression in pre-/postconditions of method
Rico Tzschichholz [Mon, 20 Dec 2021 19:40:30 +0000 (20:40 +0100)] 
vala: Correctly replace "in" expression in pre-/postconditions of method

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

3 years agovala: Non nullable enum types are simple types
Rico Tzschichholz [Thu, 16 Dec 2021 14:31:47 +0000 (15:31 +0100)] 
vala: Non nullable enum types are simple types

Fixes a regression of 5b6345a6386b05aaf3f11cb3572940413eb878a8

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

3 years agovala: Allow unsafe assignment of integer to enum while reporting a notice
Rico Tzschichholz [Thu, 16 Dec 2021 14:31:47 +0000 (15:31 +0100)] 
vala: Allow unsafe assignment of integer to enum while reporting a notice

3 years agoRelease 0.54.5 0.54.5
Rico Tzschichholz [Thu, 16 Dec 2021 07:53:37 +0000 (08:53 +0100)] 
Release 0.54.5

3 years agogstreamer: Cherry-pick bindings fixes from 0.56
Rico Tzschichholz [Wed, 15 Dec 2021 15:27:56 +0000 (16:27 +0100)] 
gstreamer: Cherry-pick bindings fixes from 0.56

3 years agogirparser: Avoid possibily creating duplicated attributes
Rico Tzschichholz [Wed, 15 Dec 2021 20:42:53 +0000 (21:42 +0100)] 
girparser: Avoid possibily creating duplicated attributes

Don't append an attribute without checking if there is an existing one.
In case the attribute already exists append the new key/value pairs.

3 years agogstreamer-1.0: Unskip the ElementFactory.make/create_full() symbols
Corentin Noël [Wed, 8 Dec 2021 11:30:32 +0000 (12:30 +0100)] 
gstreamer-1.0: Unskip the ElementFactory.make/create_full() symbols

Also add floating reference to all the new creation functions.

3 years agotests: Add "type-parameter property clash" test to increase coverage
Rico Tzschichholz [Tue, 14 Dec 2021 09:38:37 +0000 (10:38 +0100)] 
tests: Add "type-parameter property clash" test to increase coverage

This needs to be handled gracefully. So throwing an error is no option.

3 years agocodegen: Use a dedicated EmitContext for _variant_get*() functions
Rico Tzschichholz [Mon, 13 Dec 2021 18:35:47 +0000 (19:35 +0100)] 
codegen: Use a dedicated EmitContext for _variant_get*() functions

3 years agovala: Report statement parsing error if it is not meant to be an expression
Rico Tzschichholz [Mon, 13 Dec 2021 11:38:01 +0000 (12:38 +0100)] 
vala: Report statement parsing error if it is not meant to be an expression

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

3 years agotests: Add more "chain up" tests to increase coverage
Rico Tzschichholz [Sun, 12 Dec 2021 17:47:53 +0000 (18:47 +0100)] 
tests: Add more "chain up" tests to increase coverage

3 years agovala: Set is_yield_expression in async context when chaining up to async base ctor
Rico Tzschichholz [Sun, 12 Dec 2021 17:47:53 +0000 (18:47 +0100)] 
vala: Set is_yield_expression in async context when chaining up to async base ctor

vala-CRITICAL **: vala_member_access_get_inner: assertion 'self != NULL' failed
vala-CRITICAL **: vala_member_access_get_member_name: assertion 'self != NULL' failed

Avoid these spurious criticals and trigger the currently expected error.

3 years agocodegen: Correctly handle chain up of struct creation methods
Rico Tzschichholz [Sat, 11 Dec 2021 09:34:03 +0000 (10:34 +0100)] 
codegen: Correctly handle chain up of struct creation methods

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

3 years agotests: Add missing tests/structs/struct-static-field-initializer.c-expected
Rico Tzschichholz [Sat, 11 Dec 2021 09:34:03 +0000 (10:34 +0100)] 
tests: Add missing tests/structs/struct-static-field-initializer.c-expected

3 years agovala: NullLiteral is not a valid argument for string concatenation
wxx [Sat, 4 Dec 2021 09:17:47 +0000 (17:17 +0800)] 
vala: NullLiteral is not a valid argument for string concatenation

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

3 years agogtkmodule: Handle nested closure elements and bind them accordingly
Rico Tzschichholz [Mon, 6 Dec 2021 21:23:28 +0000 (22:23 +0100)] 
gtkmodule: Handle nested closure elements and bind them accordingly

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

3 years agotests/girwriter: Use the actual expected output of our girwriter
Lorenz Wildberg [Mon, 29 Nov 2021 21:31:28 +0000 (21:31 +0000)] 
tests/girwriter: Use the actual expected output of our girwriter