]> git.ipfire.org Git - thirdparty/vala.git/log
thirdparty/vala.git
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.

5 years agovala: Fix base-access check for compact classes (2)
Rico Tzschichholz [Wed, 5 Feb 2020 07:32:53 +0000 (08:32 +0100)] 
vala: Fix base-access check for compact classes (2)

See 84de99560ee96afa8cb80db3b342d584a72188cd

5 years agoCorrect a few spelling errors in user visible strings
Rico Tzschichholz [Wed, 5 Feb 2020 07:32:52 +0000 (08:32 +0100)] 
Correct a few spelling errors in user visible strings

5 years agoRelease 0.47.4 64e5fe2175a7bb96a8612ee2554c98649cc306fe 0.47.4
Rico Tzschichholz [Tue, 4 Feb 2020 07:59:22 +0000 (08:59 +0100)] 
Release 0.47.4

5 years agovala: Use some replacement for an unavailable identifier string e2104cd8c740cef9c614d4c26c780cad68682c5f
Rico Tzschichholz [Sat, 18 Jan 2020 19:03:37 +0000 (20:03 +0100)] 
vala: Use some replacement for an unavailable identifier string

5 years agoparser: Make parse_identifier more robust
Rico Tzschichholz [Sat, 18 Jan 2020 19:03:37 +0000 (20:03 +0100)] 
parser: Make parse_identifier more robust

... when --keep-going was passed

5 years agoparser: Make parse_embedded_statement_without_block more robust
Princeton Ferro [Sat, 18 Jan 2020 19:03:37 +0000 (20:03 +0100)] 
parser: Make parse_embedded_statement_without_block more robust

... when --keep-going was passed

5 years agoparser: Make parse_argument_list/parse_initializer more robust
Rico Tzschichholz [Sat, 18 Jan 2020 19:03:37 +0000 (20:03 +0100)] 
parser: Make parse_argument_list/parse_initializer more robust

... when --keep-going was passed or the input appears to be incomplete

5 years agoparser: Handle delimiters inside of parse_argument_list/parse_initializer
Rico Tzschichholz [Sat, 18 Jan 2020 19:03:37 +0000 (20:03 +0100)] 
parser: Handle delimiters inside of parse_argument_list/parse_initializer

5 years agoparser: Deal with certain missing delimiters and let the parser continue 5464767cfa5a8dbbc5f46293693ca627b8fcc46d
Rico Tzschichholz [Sat, 18 Jan 2020 19:03:37 +0000 (20:03 +0100)] 
parser: Deal with certain missing delimiters and let the parser continue

5 years agocodegen: Make *_try_id specific to emit-context instead being global states
Rico Tzschichholz [Mon, 3 Feb 2020 12:22:28 +0000 (13:22 +0100)] 
codegen: Make *_try_id specific to emit-context instead being global states

5 years agovapi: Update GIR-based bindings
Rico Tzschichholz [Mon, 3 Feb 2020 10:03:30 +0000 (11:03 +0100)] 
vapi: Update GIR-based bindings

5 years agogtk4: Update to 3.96.0+4ab12ab7
Rico Tzschichholz [Mon, 3 Feb 2020 10:02:47 +0000 (11:02 +0100)] 
gtk4: Update to 3.96.0+4ab12ab7

5 years agocodegen: Explicitly include <glib.h> as needed for null-literal 07803d9328c2294fa1864b3f910c680c26646a7d
Rico Tzschichholz [Sat, 1 Feb 2020 15:37:36 +0000 (16:37 +0100)] 
codegen: Explicitly include <glib.h> as needed for null-literal

5 years agocodegen: Explicitly include header for length-type of arrays
Rico Tzschichholz [Sat, 1 Feb 2020 15:29:59 +0000 (16:29 +0100)] 
codegen: Explicitly include header for length-type of arrays

5 years agovala: Inline allocated arrays require length or initializer
Rico Tzschichholz [Sat, 1 Feb 2020 13:47:00 +0000 (14:47 +0100)] 
vala: Inline allocated arrays require length or initializer

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

5 years agotests: Add more "parser" tests to increase coverage
Rico Tzschichholz [Thu, 30 Jan 2020 12:42:43 +0000 (13:42 +0100)] 
tests: Add more "parser" tests to increase coverage

5 years agovala: Improve detection of recursive struct declarations 72825e6ef132b5c8729a58e5af756d82c0f60894
Princeton Ferro [Wed, 29 Jan 2020 04:14:42 +0000 (23:14 -0500)] 
vala: Improve detection of recursive struct declarations

Introduced with da2d58c95f39fd142dc845f5df9cdcd55be32476

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

5 years agojavascriptcoregtk-4.0: Make JSC.Class usable by defining the right callback 811787bc3f06b577de428050942f7476a70d187d 92/head
Corentin Noël [Mon, 23 Dec 2019 11:47:40 +0000 (12:47 +0100)] 
javascriptcoregtk-4.0: Make JSC.Class usable by defining the right callback

5 years agocodegen: Handle different type-symbols in visit_base_access() 1d1733f907bff52f67435a563e2d9fbcc3de3f8d
Rico Tzschichholz [Fri, 24 Jan 2020 21:48:06 +0000 (22:48 +0100)] 
codegen: Handle different type-symbols in visit_base_access()

It is required to distinguish between classes, compact classes, structs
and simple-type structs.

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

5 years agocodegen: Skip StructRegisterFunction for boolean/integer/floating types
Rico Tzschichholz [Fri, 24 Jan 2020 22:29:01 +0000 (23:29 +0100)] 
codegen: Skip StructRegisterFunction for boolean/integer/floating types

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

5 years agovala: Fix base-access check for compact classes
Rico Tzschichholz [Sat, 25 Jan 2020 17:33:13 +0000 (18:33 +0100)] 
vala: Fix base-access check for compact classes

See 84de99560ee96afa8cb80db3b342d584a72188cd

5 years agoRelease 0.47.3 a915e0cd0158bf7d81afebc63c952b7928969ba7 0.47.3
Rico Tzschichholz [Wed, 22 Jan 2020 09:15:39 +0000 (10:15 +0100)] 
Release 0.47.3

5 years agocodegen: Cast instance parameter in member-initializer for base-properties 04806bb5df09f07aab7903222ecee2244c7a9f70
Rico Tzschichholz [Tue, 21 Jan 2020 16:56:28 +0000 (17:56 +0100)] 
codegen: Cast instance parameter in member-initializer for base-properties

This fixes warnings issued with -Wincompatible-pointer-types

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

5 years agocodegen: Commonized generation of public/private fields ed421a9aa362d48f778e4a8e22f1d4a763d6beea
Simon Werbeck [Mon, 13 Jan 2020 14:10:48 +0000 (15:10 +0100)] 
codegen: Commonized generation of public/private fields

5 years agocodegen: Refactor generation of fields for ccode structs
Simon Werbeck [Mon, 30 Dec 2019 19:19:21 +0000 (20:19 +0100)] 
codegen: Refactor generation of fields for ccode structs

Introduce a common method to add field including its possible composite
fields for array and delegate types.

5 years agovapi: Update GIR-based bindings 98d3f540b39da1bdfa2819d206ca5cab8dc935f4
Rico Tzschichholz [Mon, 20 Jan 2020 19:18:01 +0000 (20:18 +0100)] 
vapi: Update GIR-based bindings

5 years agogstreamer: Update from 1.17.0+ git master
Rico Tzschichholz [Mon, 20 Jan 2020 19:08:00 +0000 (20:08 +0100)] 
gstreamer: Update from 1.17.0+ git master

5 years agogtk4: Update to 3.96.0+7e2e92a8
Rico Tzschichholz [Mon, 20 Jan 2020 19:06:54 +0000 (20:06 +0100)] 
gtk4: Update to 3.96.0+7e2e92a8

5 years agowebkit2gtk-4.0: Update to 2.27.4
Rico Tzschichholz [Mon, 20 Jan 2020 19:03:57 +0000 (20:03 +0100)] 
webkit2gtk-4.0: Update to 2.27.4

5 years agoRegenerate for GIR-based bindings to apply explicit ctype attributes
Rico Tzschichholz [Sat, 18 Jan 2020 17:00:28 +0000 (18:00 +0100)] 
Regenerate for GIR-based bindings to apply explicit ctype attributes

5 years agogirparser: Apply explicitly given ctype metadata attributes on callables
Rico Tzschichholz [Sat, 18 Jan 2020 16:58:42 +0000 (17:58 +0100)] 
girparser: Apply explicitly given ctype metadata attributes on callables

5 years agogirparser: Improve source_reference of parameters
Rico Tzschichholz [Mon, 20 Jan 2020 11:45:03 +0000 (12:45 +0100)] 
girparser: Improve source_reference of parameters

5 years agovala: Always bail if there are semantic errors 217c84bcd1f1f4884e9fda044b6af9e140f8fe94
Princeton Ferro [Sat, 18 Jan 2020 19:03:37 +0000 (20:03 +0100)] 
vala: Always bail if there are semantic errors

Previously introduced by 1430c461d4a45026331663989113feb195588255

5 years agoAdd further support for params arrays 98ab3da89640b8b8a6c67044b4df1194672774bb 84/head
Rico Tzschichholz [Wed, 15 Jan 2020 14:52:49 +0000 (15:52 +0100)] 
Add further support for params arrays

This brings support for params-arrays in normal vala source code.

The parameter is a null-terminated array which is represented as variadic
parameter in generated C.

This feature is considered experimental for now.

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

5 years agoglib-2.0: Let (u)int.try_parse() return false if there is an unparsed part 8021ad3876ede6b19a8e075ab0f0a23a999d0b50
Rico Tzschichholz [Tue, 14 Jan 2020 13:05:02 +0000 (14:05 +0100)] 
glib-2.0: Let (u)int.try_parse() return false if there is an unparsed part

This is how our other try_parse() implementions behave.

5 years agocodegen: Use result value of assignment rather than its computation
Rico Tzschichholz [Tue, 14 Jan 2020 07:36:26 +0000 (08:36 +0100)] 
codegen: Use result value of assignment rather than its computation

An inline assignment of an array-length, like

    int j = --i.length;

resulted in a faulty tranformation

    i_length1 = i_length1 - 1;
    j = i_length1 - 1;

Regression of 80d4bf61e0c3100c839f3fdbcb5218996b6afd5f

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

5 years agoparser: Extend source_reference of parenthesized expr to cover "( ... )"
Princeton Ferro [Sun, 12 Jan 2020 03:33:05 +0000 (22:33 -0500)] 
parser: Extend source_reference of parenthesized expr to cover "( ... )"

5 years agovala: Fix short-circuiting behavior of coalescing operator 6f673c2c9768402cbfe5e206da9c3c0180e5a4b3 98/head
Jeremy Philippe [Sat, 11 Jan 2020 00:18:43 +0000 (01:18 +0100)] 
vala: Fix short-circuiting behavior of coalescing operator

It is closely modeled after how ConditionalExpression implements
short-circuiting behavior.

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

5 years agovala: Non-nullable value-type in coalesce expression needs to be copied 6cfa112524d13f878d02149475079e34cd366116
Jeremy Philippe [Wed, 8 Jan 2020 12:20:31 +0000 (13:20 +0100)] 
vala: Non-nullable value-type in coalesce expression needs to be copied

The code generated by the coalesce expression could lead to stale
pointers to the stack if the right-side expression is an immediate value
(such as an integer literal or a struct).

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

5 years agovala: Infer target_type in coalescing expressions 7850210bafcdd81f5b7a36b82766ae73f0fa0610 96/head
Jeremy Philippe [Tue, 7 Jan 2020 21:05:57 +0000 (22:05 +0100)] 
vala: Infer target_type in coalescing expressions

Correctly handle reference tranfers of inner expressions.

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

5 years agocodegen: Don't set implemenation of interface property to its own ce690e98c96aa610408bf23512acf93ec38990ee
Rico Tzschichholz [Tue, 7 Jan 2020 16:20:25 +0000 (17:20 +0100)] 
codegen: Don't set implemenation of interface property to its own

A base-class is allowed to provide interface implementations for methods
and properties. If those exist without an explicit implementation in the
sub-class we then we end up finding the interface property itself. Using
that is obviously wrong and causes a cyclic call stack.

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

5 years agoRelease 0.47.2 0.47.2
Rico Tzschichholz [Tue, 7 Jan 2020 13:17:27 +0000 (14:17 +0100)] 
Release 0.47.2

5 years agotests: Fix make distcheck
Rico Tzschichholz [Tue, 7 Jan 2020 13:53:08 +0000 (14:53 +0100)] 
tests: Fix make distcheck

5 years agovapi: Update GIR-based bindings
Rico Tzschichholz [Tue, 7 Jan 2020 13:01:37 +0000 (14:01 +0100)] 
vapi: Update GIR-based bindings

5 years agogstreamer: Update from 1.17.0+ git master
Rico Tzschichholz [Tue, 7 Jan 2020 13:01:06 +0000 (14:01 +0100)] 
gstreamer: Update from 1.17.0+ git master

5 years agogtk4: Update to 3.96.0+448a4023
Rico Tzschichholz [Tue, 7 Jan 2020 13:00:29 +0000 (14:00 +0100)] 
gtk4: Update to 3.96.0+448a4023

5 years agoglib-2.0: Reset errno before calling strto*() functions. af236c9595e80803ff0e9b38b352e6a5153f4985 94/head
Jeremy Philippe [Fri, 3 Jan 2020 23:41:37 +0000 (00:41 +0100)] 
glib-2.0: Reset errno before calling strto*() functions.

Standard library functions only set errno on error and these particular
functions return an "in-band" error indicator (the error indicator is
also a normal return value).

5 years agogenie: Fix parser's inner state when a struct is declared after a class 1384dd0bac5a93721e1ca11efed51fba4cb050ed
Jeremy Philippe [Sat, 21 Dec 2019 19:55:53 +0000 (20:55 +0100)] 
genie: Fix parser's inner state when a struct is declared after a class

If the struct is declared after a class and has a default creation
method, the parser will raise a "missing return type in method ..."
error.

The cause of the bug is that the global 'class_name' variable is not
updated when the parser encounters a struct, so the previous value
is used, and if a class has been parsed before, this value will be the
name of the class instead of the struct.

5 years agocompiler: Add "--depfile" option writing package dependencies to given file 4e78d7713e80ce0b3044979e848b78229a1b6061
Rico Tzschichholz [Mon, 2 Dec 2019 16:04:06 +0000 (17:04 +0100)] 
compiler: Add "--depfile" option writing package dependencies to given file

This is meant to be used by build systems before invoking rebuilds

5 years agovala: Allow to override base interface properties explicitly b977da4f72503c9688725a492515c8443b2d83ae
Jeremy Philippe [Sat, 21 Dec 2019 10:54:30 +0000 (11:54 +0100)] 
vala: Allow to override base interface properties explicitly

5 years agovapi: Update GIR-based bindings edf4b3dcbabe7f3a0e3cd0207205d82236b82c8a
Rico Tzschichholz [Mon, 9 Dec 2019 12:50:55 +0000 (13:50 +0100)] 
vapi: Update GIR-based bindings

5 years agovala: Check before accessing "name" of parent_symbol which might be null
Rico Tzschichholz [Mon, 9 Dec 2019 11:15:44 +0000 (12:15 +0100)] 
vala: Check before accessing "name" of parent_symbol which might be null

5 years agoglib-2.0: Add new symbols from 2.64 e0a963f2c54aefd0bdcc899434209edc0b3ba4e8
Rico Tzschichholz [Thu, 5 Dec 2019 17:47:51 +0000 (18:47 +0100)] 
glib-2.0: Add new symbols from 2.64

5 years agoglib-2.0: Add to_string() for GLib.PollFd and GLib.Pid
Rico Tzschichholz [Thu, 5 Dec 2019 17:03:13 +0000 (18:03 +0100)] 
glib-2.0: Add to_string() for GLib.PollFd and GLib.Pid

5 years agocodegen: Don't attribute *_get_type_once() with G_GNUC_CONST
Rico Tzschichholz [Fri, 6 Dec 2019 08:27:15 +0000 (09:27 +0100)] 
codegen: Don't attribute *_get_type_once() with G_GNUC_CONST

Follow up on 6b03920e39bc3900148d02ea5c2ddc13d6e91091

5 years agocodegen: Improve *_get_type() fast path (requires glib >= 2.58) 6b03920e39bc3900148d02ea5c2ddc13d6e91091 89/head
Rico Tzschichholz [Thu, 5 Dec 2019 13:08:36 +0000 (14:08 +0100)] 
codegen: Improve *_get_type() fast path (requires glib >= 2.58)

Uses G_GNUC_NO_INLINE if glib >= 2.58 is targetted otherwise the
compiler is free to inline the separate *_get_type_once() function.

Follows the changes introduced in glib by
https://gitlab.gnome.org/GNOME/glib/commit/e924f777369710221c3e0a9d7bf40392a27d1fa4

See https://gitlab.gnome.org/GNOME/glib/issues/541
and https://gitlab.gnome.org/GNOME/vala/issues/879

5 years agocodegen: Remove unreachable code in TypeRegisterFunction.init_from_type()
Rico Tzschichholz [Thu, 5 Dec 2019 13:08:36 +0000 (14:08 +0100)] 
codegen: Remove unreachable code in TypeRegisterFunction.init_from_type()

Not used since 79b1a3e39a3d2bac9fbe40c99336b3b89e374571

5 years agovala: Don't allow "va_list" as return-type or type of fields 8ee44db879457846294ab80ba17280b228e7e2e9
Rico Tzschichholz [Tue, 3 Dec 2019 12:02:13 +0000 (13:02 +0100)] 
vala: Don't allow "va_list" as return-type or type of fields

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

5 years agovala: Improve error message for unsupported inner types and declarations
Rico Tzschichholz [Mon, 2 Dec 2019 11:06:41 +0000 (12:06 +0100)] 
vala: Improve error message for unsupported inner types and declarations

5 years agogstreamer: Update from 1.17.0+ git master b23471650480d8964c2b35aa84159cf46fed3a11
Rico Tzschichholz [Wed, 27 Nov 2019 12:57:21 +0000 (13:57 +0100)] 
gstreamer: Update from 1.17.0+ git master

5 years agogtk4: Update to 3.96.0+9f69c7f3
Rico Tzschichholz [Wed, 27 Nov 2019 12:56:26 +0000 (13:56 +0100)] 
gtk4: Update to 3.96.0+9f69c7f3

5 years agowebkit2gtk-4.0: Update to 2.27.3
Rico Tzschichholz [Wed, 27 Nov 2019 12:55:35 +0000 (13:55 +0100)] 
webkit2gtk-4.0: Update to 2.27.3

5 years agotest: Add some "method-call" tests to increase coverage
Rico Tzschichholz [Tue, 26 Nov 2019 13:31:20 +0000 (14:31 +0100)] 
test: Add some "method-call" tests to increase coverage

5 years agovala: Don't report further errors if MemberInitializer.check() failed
Rico Tzschichholz [Wed, 27 Nov 2019 12:38:47 +0000 (13:38 +0100)] 
vala: Don't report further errors if MemberInitializer.check() failed

5 years agovala: Don't ignore inner errors in Block and acknowledge them further
Rico Tzschichholz [Wed, 27 Nov 2019 10:42:55 +0000 (11:42 +0100)] 
vala: Don't ignore inner errors in Block and acknowledge them further

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