]> git.ipfire.org Git - thirdparty/vala.git/log
thirdparty/vala.git
5 years agovala: remove CodeContext reference in FlowAnalyzer 685-remove-context-from-semantic-analyzer 32d8d6a584ac29771914c92d58443865ef5e0246 20/head
Daniel Espinosa [Tue, 16 Oct 2018 22:09:58 +0000 (17:09 -0500)] 
vala: remove CodeContext reference in FlowAnalyzer

5 years agovala: removed CodeContext reference in SemanticAnalyzer
Daniel Espinosa [Tue, 16 Oct 2018 22:05:24 +0000 (17:05 -0500)] 
vala: removed CodeContext reference in SemanticAnalyzer

5 years agoSync NEWS from 0.46 05a7609e3e85dca7594f907915d543bc3453afdb
Rico Tzschichholz [Thu, 10 Oct 2019 19:41:00 +0000 (21:41 +0200)] 
Sync NEWS from 0.46

5 years agoglib-2.0: Guard against passing null source to GLib.Memory.copy()
Rico Tzschichholz [Thu, 10 Oct 2019 18:42:00 +0000 (20:42 +0200)] 
glib-2.0: Guard against passing null source to GLib.Memory.copy()

Found by -fsanitize=undefined

5 years agolibvaladoc: Remove TypeReference.pass_ownership API
Rico Tzschichholz [Thu, 10 Oct 2019 16:04:12 +0000 (18:04 +0200)] 
libvaladoc: Remove TypeReference.pass_ownership API

5 years agolibvaladoc: Drop unused code
Rico Tzschichholz [Thu, 10 Oct 2019 16:01:22 +0000 (18:01 +0200)] 
libvaladoc: Drop unused code

5 years agolibvaladoc: Fix parameter and property ownership declarations
Rico Tzschichholz [Thu, 10 Oct 2019 15:40:44 +0000 (17:40 +0200)] 
libvaladoc: Fix parameter and property ownership declarations

5 years agovaladoc/tests: Use type for property which is compatible with owned getter
Rico Tzschichholz [Thu, 10 Oct 2019 09:13:08 +0000 (11:13 +0200)] 
valadoc/tests: Use type for property which is compatible with owned getter

5 years agocodegen: Fix custom reference-counting for compact classes f413cb32470d9c2598416772bc0166c6f974ec9f
Simon Werbeck [Mon, 30 Sep 2019 14:37:33 +0000 (16:37 +0200)] 
codegen: Fix custom reference-counting for compact classes

This fix defers emitting G_DEFINE_AUTOPTR_CLEANUP_FUNC when a compact
class defines custom unref function and set by ccode "unref_function".

5 years agocodegen: Make CCodeBaseModule.generate_method_declaration() return bool 91fc9702594fe7a59b06664aa077cee51960f72c
Simon Werbeck [Mon, 30 Sep 2019 14:37:33 +0000 (16:37 +0200)] 
codegen: Make CCodeBaseModule.generate_method_declaration() return bool

This is how CCodeBaseModule.generate_enum_declaration() works already.

5 years agoglib-2.0: Add binding for "gettext()" dc1d7880b4dc32a889e760aea2808bdf0c766899 85/head
Michael Gratton [Tue, 8 Oct 2019 23:12:32 +0000 (10:12 +1100)] 
glib-2.0: Add binding for "gettext()"

Despite this actually comes from "libintl.h" refer to "gi18n-lib.h" to
trigger GETTEXT_PACKAGE error.

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

5 years agoRegenerate GIR-based bindings to pick up copy/free attributes b8c28eb578a164c1dbd1e14dc049f9d31d91ec01
Rico Tzschichholz [Tue, 8 Oct 2019 12:05:17 +0000 (14:05 +0200)] 
Regenerate GIR-based bindings to pick up copy/free attributes

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

5 years agocodegen: Use gtype-boxed API for structs with "g_boxed_free" attribute
Rico Tzschichholz [Tue, 8 Oct 2019 13:07:58 +0000 (15:07 +0200)] 
codegen: Use gtype-boxed API for structs with "g_boxed_free" attribute

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

5 years agogirparser: Add required copy/free attributes for gtype-boxed structs
Rico Tzschichholz [Tue, 8 Oct 2019 12:04:35 +0000 (14:04 +0200)] 
girparser: Add required copy/free attributes for gtype-boxed structs

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

5 years agovapi: Perform syntax and semantic check for all bindings on "make check" d9c368ae608060be76b3838aa38e3ede945fcb5b
Rico Tzschichholz [Sat, 5 Oct 2019 09:15:04 +0000 (11:15 +0200)] 
vapi: Perform syntax and semantic check for all bindings on "make check"

5 years agovala: Don't issue a warning for non-public struct fields in bindings
Rico Tzschichholz [Sat, 5 Oct 2019 10:18:19 +0000 (12:18 +0200)] 
vala: Don't issue a warning for non-public struct fields in bindings

5 years agotokyocabinet: Fix deprecation warnings
Rico Tzschichholz [Sat, 5 Oct 2019 10:17:39 +0000 (12:17 +0200)] 
tokyocabinet: Fix deprecation warnings

5 years agognutls: Fix "use of possibly unassigned parameter" warnings
Rico Tzschichholz [Sat, 5 Oct 2019 08:35:20 +0000 (10:35 +0200)] 
gnutls: Fix "use of possibly unassigned parameter" warnings

5 years agoavahi-client: Fix "use of possibly unassigned parameter" warnings
Rico Tzschichholz [Sat, 5 Oct 2019 08:34:52 +0000 (10:34 +0200)] 
avahi-client: Fix "use of possibly unassigned parameter" warnings

5 years agoxcb: Fix "missing return statement at end of subroutine body" errors
Rico Tzschichholz [Sat, 5 Oct 2019 08:26:09 +0000 (10:26 +0200)] 
xcb: Fix "missing return statement at end of subroutine body" errors

5 years agovala: Fix compatible/disposable check between structs and their subtypes 059b7486bff5f1b01b8c19fca06494a7936a24d9
Rico Tzschichholz [Fri, 4 Oct 2019 12:12:46 +0000 (14:12 +0200)] 
vala: Fix compatible/disposable check between structs and their subtypes

This fixes memory leaks due to missing copy/destroy and improperly created
dup functions and allows direct assignment between structs and their
subtypes.

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

5 years agotests: Extend "fastvapi" test to increase coverage
Rico Tzschichholz [Fri, 4 Oct 2019 13:09:10 +0000 (15:09 +0200)] 
tests: Extend "fastvapi" test to increase coverage

5 years agovala: Add DelegateType.target/destroy fields to access its user-data c054da918a40f8ef93c1a006034fb6ab4717c135
Rico Tzschichholz [Wed, 2 Oct 2019 17:07:17 +0000 (19:07 +0200)] 
vala: Add DelegateType.target/destroy fields to access its user-data

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

5 years agovala: Add delegate_target_type and delegate_target_destroy_type to SemanticAnalyzer
Rico Tzschichholz [Wed, 2 Oct 2019 17:07:17 +0000 (19:07 +0200)] 
vala: Add delegate_target_type and delegate_target_destroy_type to SemanticAnalyzer

This is a plain copy from CCodeBaseModule.

5 years agocodegen: Support gobject property of delegates not carrying their target
Rico Tzschichholz [Wed, 2 Oct 2019 13:01:07 +0000 (15:01 +0200)] 
codegen: Support gobject property of delegates not carrying their target

Properly evaluate given delegate_target attribute on properties to create
the expected API.

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

5 years agocodegen: Allow passing/retrieving any delegate to/from varargs parameter
Rico Tzschichholz [Thu, 3 Oct 2019 08:43:22 +0000 (10:43 +0200)] 
codegen: Allow passing/retrieving any delegate to/from varargs parameter

Initialize target/notify cvalues of delegate-typed arguments/result of
inferred varargs parameters and va_list.arg() calls.

Only the actual function pointer will be passed or retrieved. The target
and destroy values will be null.

5 years agotests: Add dedicated "delegate without target through varargs" test
Rico Tzschichholz [Thu, 3 Oct 2019 11:34:52 +0000 (13:34 +0200)] 
tests: Add dedicated "delegate without target through varargs" test

5 years agocodegen: Silence warning about copying if delegate doesn't carry its target
Rico Tzschichholz [Wed, 2 Oct 2019 13:07:32 +0000 (15:07 +0200)] 
codegen: Silence warning about copying if delegate doesn't carry its target

5 years agocodegen: Initialize delegate temp-var which is assigned by property getter
Rico Tzschichholz [Wed, 2 Oct 2019 16:19:53 +0000 (18:19 +0200)] 
codegen: Initialize delegate temp-var which is assigned by property getter

Found by -Werror=maybe-uninitialized

5 years agocodegen: Preserve full access to delegate variables and its target/destroy cvalues
Rico Tzschichholz [Wed, 2 Oct 2019 21:23:12 +0000 (23:23 +0200)] 
codegen: Preserve full access to delegate variables and its target/destroy cvalues

Don't unconditionally set delegate_target_destroy_notify_cvalue to NULL for any
variable access.

5 years agoglib-2.0: Set default_value attribute for GLib.pointer
Rico Tzschichholz [Wed, 2 Oct 2019 16:08:18 +0000 (18:08 +0200)] 
glib-2.0: Set default_value attribute for GLib.pointer

5 years agodocs: Mention requirement of autoconf-archive as build-dependency
Rico Tzschichholz [Wed, 2 Oct 2019 17:48:32 +0000 (19:48 +0200)] 
docs: Mention requirement of autoconf-archive as build-dependency

5 years agovala: Unify backing symbol instance of data-types (2)
Rico Tzschichholz [Wed, 2 Oct 2019 11:37:20 +0000 (13:37 +0200)] 
vala: Unify backing symbol instance of data-types (2)

5 years agocodegen: Support gobject property of null-terminated array without length
Rico Tzschichholz [Wed, 2 Oct 2019 07:29:06 +0000 (09:29 +0200)] 
codegen: Support gobject property of null-terminated array without length

Properly evaluate given array_length and array_null_terminated attributes
on properties to create the expected API.

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

5 years agoSync NEWS from 0.46
Rico Tzschichholz [Mon, 30 Sep 2019 15:53:48 +0000 (17:53 +0200)] 
Sync NEWS from 0.46

5 years agoccode: Implicitly register declaration for added CCodeFunction 7bfd9a38debb873045134aee5bffb58aa552c967
Rico Tzschichholz [Tue, 1 Oct 2019 14:21:21 +0000 (16:21 +0200)] 
ccode: Implicitly register declaration for added CCodeFunction

This will prevent the user's vala source to override implicitly defined
functions of vala's boilerblate for a type.

5 years agocodegen: Accept children after generating type specific declarations
Rico Tzschichholz [Tue, 1 Oct 2019 14:21:21 +0000 (16:21 +0200)] 
codegen: Accept children after generating type specific declarations

5 years agovala: Micro optimizations 9811ebe2f9b984bca96248183fc412fa8d049c60
Rico Tzschichholz [Sun, 29 Sep 2019 16:15:54 +0000 (18:15 +0200)] 
vala: Micro optimizations

5 years agovala: Drop DelegateType.to_qualified_string() which is duplicated code
Rico Tzschichholz [Sun, 29 Sep 2019 16:52:51 +0000 (18:52 +0200)] 
vala: Drop DelegateType.to_qualified_string() which is duplicated code

and not needed while using DataType.type_symbol for delegate-types too.

5 years agovala: Move common implementations to CallableType
Rico Tzschichholz [Sun, 29 Sep 2019 16:28:28 +0000 (18:28 +0200)] 
vala: Move common implementations to CallableType

5 years agovala: Unify backing symbol instance of data-types
Rico Tzschichholz [Tue, 12 Mar 2019 15:51:23 +0000 (16:51 +0100)] 
vala: Unify backing symbol instance of data-types

5 years agovala: Micro optimizations for Assignment
Rico Tzschichholz [Mon, 30 Sep 2019 06:05:11 +0000 (08:05 +0200)] 
vala: Micro optimizations for Assignment

5 years agovala: Micro optimizations for MemberAccess
Rico Tzschichholz [Sun, 29 Sep 2019 13:10:45 +0000 (15:10 +0200)] 
vala: Micro optimizations for MemberAccess

5 years agovala: Micro optimizations for MethodCall
Rico Tzschichholz [Sun, 29 Sep 2019 12:11:32 +0000 (14:11 +0200)] 
vala: Micro optimizations for MethodCall

5 years agovala: Micro optimizations for SemanticAnalyzer
Rico Tzschichholz [Sun, 29 Sep 2019 11:08:07 +0000 (13:08 +0200)] 
vala: Micro optimizations for SemanticAnalyzer

5 years agovaladoc: Follow rename of DataType data_type property to type_symbol
Rico Tzschichholz [Sat, 16 Feb 2019 18:41:45 +0000 (19:41 +0100)] 
valadoc: Follow rename of DataType data_type property to type_symbol

5 years agocodegen: Follow rename of DataType data_type property to type_symbol
Rico Tzschichholz [Thu, 15 Nov 2018 19:50:02 +0000 (20:50 +0100)] 
codegen: Follow rename of DataType data_type property to type_symbol

5 years agovala: Rename DataType.data_type property to DataType.type_symbol 061c02a91056b2f8c8b4cc985db4aec9c0a235fc
Rico Tzschichholz [Fri, 19 Oct 2018 11:01:04 +0000 (13:01 +0200)] 
vala: Rename DataType.data_type property to DataType.type_symbol

5 years agovala: Return unowned references of internal helper symbols
Rico Tzschichholz [Mon, 30 Sep 2019 10:59:51 +0000 (12:59 +0200)] 
vala: Return unowned references of internal helper symbols

5 years agovala: Let DataType.get_return_type() return an unowned reference
Rico Tzschichholz [Sun, 29 Sep 2019 10:41:51 +0000 (12:41 +0200)] 
vala: Let DataType.get_return_type() return an unowned reference

5 years agovala: Let methods return an unowned reference to internal collections
Rico Tzschichholz [Wed, 2 Jan 2019 13:23:40 +0000 (14:23 +0100)] 
vala: Let methods return an unowned reference to internal collections

Correctly state ownership in documentation since those were never a copy.

5 years agogtk4: Constructors of Gtk.MediaFile needs to be static functions
Rico Tzschichholz [Mon, 15 Jul 2019 13:22:40 +0000 (15:22 +0200)] 
gtk4: Constructors of Gtk.MediaFile needs to be static functions

5 years agogtk4: Update to 3.96.0+bcea9652
Rico Tzschichholz [Mon, 30 Sep 2019 06:50:36 +0000 (08:50 +0200)] 
gtk4: Update to 3.96.0+bcea9652

5 years agogstreamer: Update from 1.17.0+ git master
Rico Tzschichholz [Mon, 30 Sep 2019 06:37:05 +0000 (08:37 +0200)] 
gstreamer: Update from 1.17.0+ git master

5 years agovala: Perform stricter compatibility check for delegates 34f49f40c469384c82ef13af49a0882a8a07dda1
Rico Tzschichholz [Sun, 29 Sep 2019 19:25:43 +0000 (21:25 +0200)] 
vala: Perform stricter compatibility check for delegates

This currently requires to consider compatible delegates as equal.

5 years agovala: Allow to override virtual interface implementations fc246aa7f8cbc6cb176724246a0187e19fe91198
Rico Tzschichholz [Thu, 26 Sep 2019 09:08:31 +0000 (11:08 +0200)] 
vala: Allow to override virtual interface implementations

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

5 years agovala: Add package_name to missing member error for external MemberAccess
Rico Tzschichholz [Sun, 22 Sep 2019 15:27:00 +0000 (17:27 +0200)] 
vala: Add package_name to missing member error for external MemberAccess

This provides information about the origin of the accessed symbol.

5 years agovala: Warn when directly accessing member of silent cast-expression 72061ee0286a4ce37ddec976174cc3786b3e4a59
Rico Tzschichholz [Mon, 23 Sep 2019 13:56:49 +0000 (15:56 +0200)] 
vala: Warn when directly accessing member of silent cast-expression

"foo as TypeSymbol" may result in `null' and accessing it without check is
not recommended. If the invocation context provides information that `null'
is not a possible result then use an unsafe cast "(TypeSymbol) foo".

5 years agocodegen: Move type-argument checks to SemanticAnalyzer
Rico Tzschichholz [Wed, 8 Aug 2018 13:25:51 +0000 (15:25 +0200)] 
codegen: Move type-argument checks to SemanticAnalyzer

and don't apply type-argument check on external symbols.

5 years agocodegen: Move a bunch of methods to static functions
Rico Tzschichholz [Fri, 1 Mar 2019 15:14:27 +0000 (16:14 +0100)] 
codegen: Move a bunch of methods to static functions

5 years agoBump version suffix to 0.48
Rico Tzschichholz [Wed, 25 Sep 2019 07:22:01 +0000 (09:22 +0200)] 
Bump version suffix to 0.48

5 years agovala: Output "params" qualifier of parameters 079eb7c76e892eaa7ba396a81c3694cc124a5f24
Rico Tzschichholz [Fri, 13 Sep 2019 11:58:00 +0000 (13:58 +0200)] 
vala: Output "params" qualifier of parameters

5 years agovala: Report dedicated error message for params-array parameter mismatch
Rico Tzschichholz [Fri, 13 Sep 2019 11:54:53 +0000 (13:54 +0200)] 
vala: Report dedicated error message for params-array parameter mismatch

5 years agotests: Add more "invalid expression" tests to increase coverage
Rico Tzschichholz [Tue, 24 Sep 2019 11:21:44 +0000 (13:21 +0200)] 
tests: Add more "invalid expression" tests to increase coverage

5 years agotests: Add "main block" parser test to increase coverage
Rico Tzschichholz [Tue, 24 Sep 2019 10:28:44 +0000 (12:28 +0200)] 
tests: Add "main block" parser test to increase coverage

5 years agotests: Extent "post-condition" creation method test to increase coverage
Rico Tzschichholz [Tue, 24 Sep 2019 10:18:00 +0000 (12:18 +0200)] 
tests: Extent "post-condition" creation method test to increase coverage

5 years agotests: Extend preprocessor-vala test with VALA_0_46
Rico Tzschichholz [Tue, 24 Sep 2019 10:07:52 +0000 (12:07 +0200)] 
tests: Extend preprocessor-vala test with VALA_0_46

5 years agotests: Add invalid "parser" tests to increase coverage
Rico Tzschichholz [Mon, 23 Sep 2019 17:06:50 +0000 (19:06 +0200)] 
tests: Add invalid "parser" tests to increase coverage

5 years agotests: Add "qualified member/symbol access" tests to increase coverage
Rico Tzschichholz [Mon, 23 Sep 2019 15:38:44 +0000 (17:38 +0200)] 
tests: Add "qualified member/symbol access" tests to increase coverage

5 years agogio-unix-2.0: Fix DesktopAppInfo.get_string(), UnixFDMessage.steal_fds()
Rico Tzschichholz [Sun, 22 Sep 2019 20:14:18 +0000 (22:14 +0200)] 
gio-unix-2.0: Fix DesktopAppInfo.get_string(), UnixFDMessage.steal_fds()

... and DesktopAppInfoLookup.get_default_for_uri_scheme()

Additionally adjust some header references.

5 years agoDirectly use "memmove()" while g_memmove() is deprecated since 2.40
Rico Tzschichholz [Sun, 22 Sep 2019 16:29:43 +0000 (18:29 +0200)] 
Directly use "memmove()" while g_memmove() is deprecated since 2.40

5 years agogobject-2.0: Some cherry-picking from GIR generated binding
Rico Tzschichholz [Sat, 21 Sep 2019 08:49:20 +0000 (10:49 +0200)] 
gobject-2.0: Some cherry-picking from GIR generated binding

5 years agovaladoc: Explicitly pass --pkg libgvc
Rico Tzschichholz [Sun, 22 Sep 2019 15:29:52 +0000 (17:29 +0200)] 
valadoc: Explicitly pass --pkg libgvc

... to deal with a race with valadoc@PACKAGE_SUFFIX@.deps generation

5 years agoRevert "libvaladoc: Include valadoc@PACKAGE_SUFFIX@.deps into tarball"
Rico Tzschichholz [Sun, 22 Sep 2019 15:32:23 +0000 (17:32 +0200)] 
Revert "libvaladoc: Include valadoc@PACKAGE_SUFFIX@.deps into tarball"

This reverts commit 53b09d40ae78f119e4efc853663db43b9a1ff7b8.

5 years agoglib-2.0: DateTime.from_iso8601() can take a null TimeZone 7e4b86db7a83ba215a5628e2a703028c72d1555f 81/head
Arnaud Bonatti [Wed, 18 Sep 2019 00:24:21 +0000 (02:24 +0200)] 
glib-2.0: DateTime.from_iso8601() can take a null TimeZone

5 years agolibvaladoc: Include valadoc@PACKAGE_SUFFIX@.deps into tarball 53b09d40ae78f119e4efc853663db43b9a1ff7b8
Rico Tzschichholz [Tue, 17 Sep 2019 07:25:27 +0000 (09:25 +0200)] 
libvaladoc: Include valadoc@PACKAGE_SUFFIX@.deps into tarball

While valadoc@PACKAGE_SUFFIX@.vapi is included there is no reason to
exclude this one.

5 years agosqlite3: Fix use of possibly unassigned parameter `errmsg' a54e4d89a449044c965869abf0ce78dadcf093ac
Rico Tzschichholz [Mon, 16 Sep 2019 08:46:17 +0000 (10:46 +0200)] 
sqlite3: Fix use of possibly unassigned parameter `errmsg'

5 years agoRelease 0.46.1 0.46.1
Rico Tzschichholz [Mon, 16 Sep 2019 07:00:31 +0000 (09:00 +0200)] 
Release 0.46.1

5 years agogio-unix-2.0: Add UnixMountEntry.get_root_path() since 2.60
Rico Tzschichholz [Sun, 15 Sep 2019 16:10:06 +0000 (18:10 +0200)] 
gio-unix-2.0: Add UnixMountEntry.get_root_path() since 2.60

5 years agogstreamer: Update from 1.17.0+ git master
Rico Tzschichholz [Sun, 15 Sep 2019 16:04:40 +0000 (18:04 +0200)] 
gstreamer: Update from 1.17.0+ git master

5 years agogtk4: Update to 3.96.0+97231ca2
Rico Tzschichholz [Sun, 15 Sep 2019 15:28:10 +0000 (17:28 +0200)] 
gtk4: Update to 3.96.0+97231ca2

5 years agogtk+-3.0: Fix ownership mismatch of ColorButton.rgba property-accessor
Rico Tzschichholz [Sun, 15 Sep 2019 06:41:03 +0000 (08:41 +0200)] 
gtk+-3.0: Fix ownership mismatch of ColorButton.rgba property-accessor

Regression of 9a5cc9e58e160d8bb5308fe5bfc8b433d8c269f5 in combination with
our gtk+-3.0 metadata:

    // Keep properties non-abstract as before
    *#interface.*#property abstract=false

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

5 years agovala: Run FlowAnalyzer on all given source-files bbaae36410699887cf6b9cacee0181a78d0638f0
Rico Tzschichholz [Sat, 14 Sep 2019 17:22:36 +0000 (19:22 +0200)] 
vala: Run FlowAnalyzer on all given source-files

This is a regression triggered by 8f3a0a0b64e0c7fbcc9231c3058247920dd6eeda
where we rely on information gathered by it and its changes to the AST.

Silence "never used" warnings for external-package symbols.

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

5 years agovapi: Update GIR-based bindings 2c46fb18e1c89e46105d05fef5eecfd14b872cfe
Rico Tzschichholz [Mon, 9 Sep 2019 11:43:21 +0000 (13:43 +0200)] 
vapi: Update GIR-based bindings

5 years agovaladoc: Explicitly pass --pkg libvala@PACKAGE_SUFFIX@ as for doclets/tests
Rico Tzschichholz [Mon, 9 Sep 2019 11:22:09 +0000 (13:22 +0200)] 
valadoc: Explicitly pass --pkg libvala@PACKAGE_SUFFIX@ as for doclets/tests

5 years agoRelease 0.46.0 3c5d2b6056aa9c29501315a100bd0662037a019f 0.46.0
Rico Tzschichholz [Thu, 5 Sep 2019 08:40:42 +0000 (10:40 +0200)] 
Release 0.46.0

5 years agovala: Reject unary operations on nullable integer/floating and boolean type
Rico Tzschichholz [Wed, 4 Sep 2019 14:12:21 +0000 (16:12 +0200)] 
vala: Reject unary operations on nullable integer/floating and boolean type

Prefer to report a semantic error rather than creating invalid c-code.

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

5 years agolibvaladoc: Don't traverse into close circles with parent
Rico Tzschichholz [Tue, 30 Jul 2019 10:54:56 +0000 (12:54 +0200)] 
libvaladoc: Don't traverse into close circles with parent

SymbolResolver.resolve_thrown_list() adds error-type nodes which are
allowed to be NodeType.ERROR_DOMAIN and NodeType.CLASS.

This can result in a cycle on invoking Node.accept_all_children(),
Node.parse_comments() or Node.check_comments()

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

5 years agovala: Exclude nullable simple-type structs from gobject-property support
Rico Tzschichholz [Tue, 3 Sep 2019 16:29:43 +0000 (18:29 +0200)] 
vala: Exclude nullable simple-type structs from gobject-property support

Defining "bool? { owned get; set; }" in a GObject class resulted in:

  "error: The type `bool' doesn't declare a GValue take function"

Fixes a regression of 3af1cfb3bf6b1d3d4a8116382e6eda702f7335bf and reverts
to the old behavior for nullable simple-type structs.

5 years agotests: Add regression test for genie struct construction
Jeremy Philippe [Tue, 3 Sep 2019 01:36:49 +0000 (03:36 +0200)] 
tests: Add regression test for genie struct construction

5 years agogenie: Creation methods should not be static
Rico Tzschichholz [Tue, 3 Sep 2019 07:32:54 +0000 (09:32 +0200)] 
genie: Creation methods should not be static

Revealed by ba8122d3a64e44eac44c5254c93fb181df601b0a

5 years agojson-glib-1.0: Change abstract methods of Serializable to virtual
Rico Tzschichholz [Mon, 2 Sep 2019 19:35:00 +0000 (21:35 +0200)] 
json-glib-1.0: Change abstract methods of Serializable to virtual

All those interface methods have default implementations. Additionally drop
superfluous metadata.

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

5 years agoAdd boolean CodeContext.keep_going and corresponding compiler option 1430c461d4a45026331663989113feb195588255
Rico Tzschichholz [Mon, 2 Sep 2019 13:25:44 +0000 (15:25 +0200)] 
Add boolean CodeContext.keep_going and corresponding compiler option

If keep_going is set then check() will continue after hitting errors in
resolver and analyzer.

5 years agocodegen: Don't unconditionally add/return internal "result" variable aaa657e45450e31103b1bc6fa2f2c668f23f99b6 77/head
Rico Tzschichholz [Sat, 24 Aug 2019 16:46:42 +0000 (18:46 +0200)] 
codegen: Don't unconditionally add/return internal "result" variable

Found by -Werror=unreachable-code

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

5 years agocodegen: Don't cause double-free due append_local_free() in uncaught-errors
Rico Tzschichholz [Thu, 29 Aug 2019 14:38:25 +0000 (16:38 +0200)] 
codegen: Don't cause double-free due append_local_free() in uncaught-errors

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

5 years agocodegen: Don't append unreachable clean-up section of Block 8f3a0a0b64e0c7fbcc9231c3058247920dd6eeda
Rico Tzschichholz [Thu, 29 Aug 2019 10:26:52 +0000 (12:26 +0200)] 
codegen: Don't append unreachable clean-up section of Block

Found by -Werror=unreachable-code

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

5 years agoglib-2.0: Add missing "DestroysInstance" attributes to Mutex/Locker API 99d0f6f971d4da61cc555869e9984225891a7de4
Jeremy Philippe [Sun, 1 Sep 2019 23:27:44 +0000 (01:27 +0200)] 
glib-2.0: Add missing "DestroysInstance" attributes to Mutex/Locker API

5 years agoglib-2.0: Fix MutexLocker binding 5b26f5d9b61617b4044b064bba10cb576bf52213
Jeremy Philippe [Sun, 1 Sep 2019 23:27:44 +0000 (01:27 +0200)] 
glib-2.0: Fix MutexLocker binding

5 years agoglib-2.0: Use 'GStatBuf' as ctype for 'Stat' e8830f4055493de50712fb157d06b76ca348f5dc
Jeremy Philippe [Sun, 1 Sep 2019 22:47:42 +0000 (00:47 +0200)] 
glib-2.0: Use 'GStatBuf' as ctype for 'Stat'

The documentation of g_stat () states:

In Microsoft's compiler, by default struct stat means one with
64-bit time fields while in MinGW struct stat is the legacy one
with 32-bit fields.

To hopefully clear up this mess, the gstdio.h header defines a
type GStatBuf which is the appropriate struct type depending
on the platform and/or compiler being used. On POSIX it is just
struct stat, but note that even on POSIX platforms, stat() might
be a macro.

5 years agocodewriter: Write "weak" modifier for properties 6afaf446939802750da3c4b76bbca8a75dd27746
Jeremy Philippe [Sun, 1 Sep 2019 19:57:01 +0000 (21:57 +0200)] 
codewriter: Write "weak" modifier for properties