]> git.ipfire.org Git - thirdparty/vala.git/log
thirdparty/vala.git
5 years agoglib-2.0: data of GLib.Bytes is allowed to be null 9c1542ce35ce39aecdde00e3a3353f8c4efe7a7f 131/head
Michael Gratton [Thu, 25 Jun 2020 06:56:46 +0000 (16:56 +1000)] 
glib-2.0: data of GLib.Bytes is allowed to be null

Ctors accepting uint8 arrays accept null as 0-sized array and the
`get_data` may return null if the size of the buffer is 0.

https://developer.gnome.org/glib/stable/glib-Byte-Arrays.html

5 years agoparser: Avoid mitigation for missing token if it follows DOT or DOUBLE_COLON 8edd90dd26e3acf652ea4a24e288d7f9a57a5cb4 128/head
Rico Tzschichholz [Tue, 16 Jun 2020 12:55:04 +0000 (14:55 +0200)] 
parser: Avoid mitigation for missing token if it follows DOT or DOUBLE_COLON

Rolling back to a DOT/DOUBLE_COLON token will retrigger the attempt to parse
an incomplete member access.

Regression of 4368a4fa667148378dcdbd251a4ae4e00c9a8e5a

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

5 years agocodegen: Cast initializer-list to struct for non-constant/non-array assignments 68db26a5a26338ce2ccb586d4a7eb109f4a3bbcf
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 agogtk4: Prefix value names of PaintableFlags with "STATIC_"
Rico Tzschichholz [Wed, 17 Jun 2020 15:03:47 +0000 (17:03 +0200)] 
gtk4: Prefix value names of PaintableFlags with "STATIC_"

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

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 available CodeContext instance for VersionAttribute.check()
Rico Tzschichholz [Thu, 16 Apr 2020 10:37:26 +0000 (12:37 +0200)] 
vala: Use available CodeContext instance for VersionAttribute.check()

5 years agovapi: Update GIR-based bindings 26cecfc8b15a7ecba42ffd955546dbdd5d352d02
Rico Tzschichholz [Tue, 16 Jun 2020 10:39:55 +0000 (12:39 +0200)] 
vapi: Update GIR-based bindings

5 years agogtk4: Update to 3.98.5+2cc39fe2
Rico Tzschichholz [Tue, 16 Jun 2020 10:38:49 +0000 (12:38 +0200)] 
gtk4: Update to 3.98.5+2cc39fe2

5 years agogstreamer: Update from 1.17.0+ git master
Rico Tzschichholz [Tue, 16 Jun 2020 10:23:46 +0000 (12:23 +0200)] 
gstreamer: Update from 1.17.0+ git master

5 years agopango: Update from 1.45.2
Rico Tzschichholz [Tue, 16 Jun 2020 10:21:59 +0000 (12:21 +0200)] 
pango: Update from 1.45.2

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 agolibvaladoc: Remove unused Api.Class.get_finalize_function_name() API
Rico Tzschichholz [Sun, 14 Jun 2020 07:53:21 +0000 (09:53 +0200)] 
libvaladoc: Remove unused Api.Class.get_finalize_function_name() API

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 agovala: Reduce calls of CodeContext.get()
Rico Tzschichholz [Thu, 11 Jun 2020 09:59:46 +0000 (11:59 +0200)] 
vala: Reduce calls of CodeContext.get()

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 518984a95a61e0b0418b0c6591f6aa9d5d4f30a7 116/head
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 agogirwriter: Append symbol-attributes to callback field rather than its type bfaa68db5e8bc408a137b1db669eabae2b3a85f3
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 agogtk4: Update to 3.98.5+d2235b71
Rico Tzschichholz [Wed, 10 Jun 2020 07:45:45 +0000 (09:45 +0200)] 
gtk4: Update to 3.98.5+d2235b71

5 years agocodegen: Add implicit parameter and instance checks in async method 43f3e2ca534d082433fbe62aa347b7af443f9f33
Rico Tzschichholz [Tue, 9 Jun 2020 14:22:17 +0000 (16:22 +0200)] 
codegen: Add implicit parameter and instance checks in async method

This is already done for every non-async method and can be disabled by
passing --disable-assert.

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

5 years agogstreamer-audio-1.0: Adjustments for Gst.Audio.Sink class extension
Rico Tzschichholz [Tue, 9 Jun 2020 11:56:25 +0000 (13:56 +0200)] 
gstreamer-audio-1.0: Adjustments for Gst.Audio.Sink class extension

5 years agopango: Update from 1.45.1
Rico Tzschichholz [Mon, 8 Jun 2020 18:37:43 +0000 (20:37 +0200)] 
pango: Update from 1.45.1

5 years agogstreamer: Update from 1.17.0+ git master
Rico Tzschichholz [Sun, 7 Jun 2020 13:29:37 +0000 (15:29 +0200)] 
gstreamer: Update from 1.17.0+ git master

5 years agovapi: Update GIR-based bindings
Rico Tzschichholz [Sun, 7 Jun 2020 13:29:07 +0000 (15:29 +0200)] 
vapi: Update GIR-based bindings

5 years agoglib-2.0,gobject-2.0: Add new symbols from 2.66
Rico Tzschichholz [Sun, 7 Jun 2020 11:35:45 +0000 (13:35 +0200)] 
glib-2.0,gobject-2.0: Add new symbols from 2.66

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 agoAdd support for "with" statement 35f72f3ecdf0d61d0e67cd4f72c29fee2c3c9a55
Nick Schrader [Fri, 27 Mar 2020 16:12:09 +0000 (13:12 -0300)] 
Add support for "with" statement

Creates data type scoped blocks which allow implicit member access to
the given expression or declaration statement.

with (expr) {
    ...;
}

Within the with-block the expression's members can be directly accessed
without the member access operator.
Members may hide local, class and instance varibales with the same name.
Instance variables are still accessible through this.
A local variable can be directly declared in the with statement header.
Hidden local and class variables are currently not directly accessible
(using this for class members generates the expected warning).

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

5 years agovala: Add InvalidExpression as replacement for erroneous nodes instead
Rico Tzschichholz [Wed, 22 Apr 2020 20:33:53 +0000 (22:33 +0200)] 
vala: Add InvalidExpression as replacement for erroneous nodes instead

This type is meant to be used where a successful parsing or transforming
cannot be achieved and the usage of "null" is not possible.

5 years agovala: Improve source documentation 120f54f8c8181d4ef9c7294050a4271353dc4b5c
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 48679761c7298f14bdab9c6ea3bd4c48db192cf5
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 agoRevert "codegen: Dup arrays only if length > 0, this consistently returns NULL (POSIX)"
Rico Tzschichholz [Wed, 27 May 2020 07:22:32 +0000 (09:22 +0200)] 
Revert "codegen: Dup arrays only if length > 0, this consistently returns NULL (POSIX)"

This reverts commit 18847c9221362081c9a9d37e2922f3e3ea648088.

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

5 years agoparser: Map empty start/end index to 0/length for slice expressions 6edde4b658ea372a489b367d6a43f79fe79b0087 126/head
wb9688 [Tue, 26 May 2020 09:57:03 +0000 (11:57 +0200)] 
parser: Map empty start/end index to 0/length for slice expressions

This allows a syntax like a[:], a[2:] or a[:3] for arrays and strings.

Co-authored-by: Simon Werbeck <simon.werbeck@gmail.com>
Fixes https://gitlab.gnome.org/GNOME/vala/issues/238

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

5 years agocodegen: Dup arrays only if length > 0, this consistently returns NULL (POSIX) 18847c9221362081c9a9d37e2922f3e3ea648088
Rico Tzschichholz [Sun, 24 May 2020 17:25:41 +0000 (19:25 +0200)] 
codegen: Dup arrays only if length > 0, this consistently returns NULL (POSIX)

5 years agoRevert "glib-2.0: Map given end == 0 for string.slice/splice() to string.length"
Rico Tzschichholz [Sun, 24 May 2020 12:15:38 +0000 (14:15 +0200)] 
Revert "glib-2.0: Map given end == 0 for string.slice/splice() to string.length"

This reverts commit f844ad1c02fb5b17e923a7ba4e69cf2a7df96a14.

5 years agoglib-2.0: Map given end == 0 for string.slice/splice() to string.length f844ad1c02fb5b17e923a7ba4e69cf2a7df96a14
wb9688 [Thu, 21 May 2020 08:52:01 +0000 (10:52 +0200)] 
glib-2.0: Map given end == 0 for string.slice/splice() to string.length

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

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 agoSync NEWS from 0.48 a3e7970cea5071a45228b4e3c4209f9b5efdecdb
Rico Tzschichholz [Tue, 19 May 2020 13:34:56 +0000 (15:34 +0200)] 
Sync NEWS from 0.48

5 years agovapi: Update GIR-based bindings
Rico Tzschichholz [Tue, 19 May 2020 13:20:07 +0000 (15:20 +0200)] 
vapi: Update GIR-based bindings

5 years agogstreamer: Update from 1.17.0+ git master
Rico Tzschichholz [Tue, 19 May 2020 10:56:53 +0000 (12:56 +0200)] 
gstreamer: Update from 1.17.0+ git master

5 years agowebkit2gtk-4.0: Update to 2.29.1
Rico Tzschichholz [Tue, 19 May 2020 10:56:26 +0000 (12:56 +0200)] 
webkit2gtk-4.0: Update to 2.29.1

5 years agogtk4: Update to 3.98.3+028942c8
Rico Tzschichholz [Mon, 18 May 2020 10:37:57 +0000 (12:37 +0200)] 
gtk4: Update to 3.98.3+028942c8

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 agogtk4: Update to 3.98.3+386b36a6
Rico Tzschichholz [Sun, 10 May 2020 14:40:56 +0000 (16:40 +0200)] 
gtk4: Update to 3.98.3+386b36a6

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 agoparser: Use [Flags] for ModifierFlags
Rico Tzschichholz [Thu, 7 May 2020 18:58:36 +0000 (20:58 +0200)] 
parser: Use [Flags] for ModifierFlags

5 years agovala: Use stable hash for methods in HashMap of implicit_implementations a522301fedac956ab0df8fd074ccbfa81d7c0c52
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 agovaladoc: Keep using add_package() for default packages and handle POSIX
Rico Tzschichholz [Thu, 7 May 2020 08:44:54 +0000 (10:44 +0200)] 
valadoc: Keep using add_package() for default packages and handle POSIX

Caused empty documentations for glib-2.0 and gobject-2.0 after
bd73f1ba11c387c919ad06d44badfd7065d1e35f

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

5 years agovala: params-array parameter is not allowed in abstract/virtual method c75950de668f08fbf9ca15262534b9ed387b0ca3
Rico Tzschichholz [Tue, 5 May 2020 10:28:32 +0000 (12:28 +0200)] 
vala: params-array parameter is not allowed in abstract/virtual method

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

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 agogtk4: Update to 3.98.3+429e0bfa
Rico Tzschichholz [Sat, 2 May 2020 07:56:25 +0000 (09:56 +0200)] 
gtk4: Update to 3.98.3+429e0bfa

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 agovala: Check coverage of switch on enum-type and issue warnings if needed
Rico Tzschichholz [Fri, 29 Mar 2019 13:27:14 +0000 (14:27 +0100)] 
vala: Check coverage of switch on enum-type and issue warnings if needed

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

5 years agoSync NEWS from 0.48
Rico Tzschichholz [Thu, 23 Apr 2020 07:03:03 +0000 (09:03 +0200)] 
Sync NEWS from 0.48

5 years agotests: Extend "fastvapi" test to increase coverage 71af8d680d1277a1d0b187ce425b75375df7bf85
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 agoSync NEWS from 0.48
Rico Tzschichholz [Tue, 21 Apr 2020 13:15:01 +0000 (15:15 +0200)] 
Sync NEWS from 0.48

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 agogtk4: Update to 3.98.3
Rico Tzschichholz [Tue, 21 Apr 2020 11:37:11 +0000 (13:37 +0200)] 
gtk4: Update to 3.98.3

5 years agogtk4: Update to 3.98.2+2869f80b
Rico Tzschichholz [Mon, 20 Apr 2020 14:26:49 +0000 (16:26 +0200)] 
gtk4: Update to 3.98.2+2869f80b

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 b1cb7036bee1f21e98e93ac34b31a95eeed32815
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 agogtk4: Update to 3.98.2+6a4f7889
Rico Tzschichholz [Sat, 18 Apr 2020 11:10:34 +0000 (13:10 +0200)] 
gtk4: Update to 3.98.2+6a4f7889

5 years agovapi: Update GIR-based bindings
Rico Tzschichholz [Sat, 18 Apr 2020 11:10:34 +0000 (13:10 +0200)] 
vapi: Update GIR-based bindings

5 years agoglib-2.0: Add Unicode 13.0 symbols
Rico Tzschichholz [Sat, 18 Apr 2020 11:10:34 +0000 (13:10 +0200)] 
glib-2.0: Add Unicode 13.0 symbols

5 years agovala: Ensure non-empty argument list for "disconnect" before accessing it 3f7b5187218dcf51a9ec182114fb104aef97289d 125/head
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: Actually make the "version check" tests work c55121b4346c8c935018886337cd0f39de37c59b
Rico Tzschichholz [Thu, 16 Apr 2020 14:38:55 +0000 (16:38 +0200)] 
tests: Actually make the "version check" tests work

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 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 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 agoRevert "vala: Drop mitigation in CodeContext.pkg_config_modversion() when it failed"
Rico Tzschichholz [Thu, 16 Apr 2020 08:00:21 +0000 (10:00 +0200)] 
Revert "vala: Drop mitigation in CodeContext.pkg_config_modversion() when it failed"

This reverts commit 09e565a511f43e48737b0bfb881ccfb32cf0ab82.

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: Check vfunc of abstract/virtual properties for NULL before using it
Rico Tzschichholz [Wed, 15 Apr 2020 14:24:10 +0000 (16:24 +0200)] 
codegen: Check vfunc of abstract/virtual properties for NULL before using it

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

5 years agocodegen: Check vfunc of abstract/virtual methods for NULL before using it
Rico Tzschichholz [Wed, 15 Apr 2020 14:24:10 +0000 (16:24 +0200)] 
codegen: Check vfunc of abstract/virtual methods for NULL before using it

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

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 2999a397cc9a1fc1e4358112442642b569dfd403
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 bcc40d5b971c3f5e3ebe928890b9aeba5ba32ba8
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 0a0a851198fb8dcc14e752a7e086418a69183511 120/head
Andrea Del Signore [Fri, 3 Apr 2020 17:10:40 +0000 (19:10 +0200)] 
codegen: Fix binary 'in' operator on array with boxed value-typed needle

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

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

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

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

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

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

Partially reverts 10b87427a263886b0e36d5f4a297d6e079b74b6e

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

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

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

Introduced by 7f0e90a5c34f437b7ab8f9197a9d42fc835b1a60

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