]>
git.ipfire.org Git - thirdparty/vala.git/log
George Barrett [Tue, 12 Dec 2017 03:39:33 +0000 (14:39 +1100)]
codegen: Infer index type of foreach on array from ArrayType.length_type
https://gitlab.gnome.org/GNOME/vala/issues/607
Rico Tzschichholz [Wed, 31 Oct 2018 16:12:50 +0000 (17:12 +0100)]
girwriter: Remove hardcoded "int" length type and use ArrayType.length_type
Rico Tzschichholz [Wed, 31 Oct 2018 10:09:21 +0000 (11:09 +0100)]
codegen: Keep respecting CCode array_length_type of Parameter/Method/Delegate
Rico Tzschichholz [Wed, 31 Oct 2018 09:21:52 +0000 (10:21 +0100)]
codegen: Support marshalling ArrayType.length_type in signals
Rico Tzschichholz [Wed, 31 Oct 2018 11:53:29 +0000 (12:53 +0100)]
gdbus: Remove hardcoded "int" length type and use ArrayType.length_type
George Barrett [Tue, 12 Dec 2017 03:37:38 +0000 (14:37 +1100)]
codegen: Remove hardcoded "int" length type and use ArrayType.length_type
https://gitlab.gnome.org/GNOME/vala/issues/607
Rico Tzschichholz [Tue, 30 Oct 2018 22:24:32 +0000 (23:24 +0100)]
vala: Add ArrayType.length_type and ArrayCreationExpression.length_type
https://gitlab.gnome.org/GNOME/vala/issues/607
Rico Tzschichholz [Thu, 1 Nov 2018 23:03:45 +0000 (00:03 +0100)]
codegen: Initialize internal temp-variables used as reference parameter
When casting Variant to multi-dimensional arrays the length fields are
used as out-parameters and needs to be initialized. They are not guaranteed
to be all set in _variant_get*() in this case.
Fixes tests with -Werror=maybe-uninitialized
Rico Tzschichholz [Sun, 8 Oct 2017 11:14:32 +0000 (13:14 +0200)]
glib-2.0: Add binding for g_test_add()
Fixes https://gitlab.gnome.org/GNOME/vala/issues/524
Ali Sabil [Thu, 1 Nov 2018 13:06:52 +0000 (14:06 +0100)]
codegen: Fix regex literal compile flags
The GRegex GRegexCompileFlags were declared as GRegexMatchFlags, leading
to a C compiler warning.
Rico Tzschichholz [Wed, 31 Oct 2018 14:27:36 +0000 (15:27 +0100)]
vala: Drop DataType.is_array() and use usual type check as anywhere else
Rico Tzschichholz [Tue, 30 Oct 2018 08:00:01 +0000 (09:00 +0100)]
glib-2.0: Computing length once is enough in string.to_utf8()/splice()
Rico Tzschichholz [Tue, 30 Oct 2018 08:54:56 +0000 (09:54 +0100)]
tests: Add more string method tests
Rico Tzschichholz [Mon, 29 Oct 2018 16:17:36 +0000 (17:17 +0100)]
tests: Make "/errors/errors" test fatal
Rico Tzschichholz [Mon, 29 Oct 2018 15:39:29 +0000 (16:39 +0100)]
doc: Fix build of internal-api-docs
Rico Tzschichholz [Sun, 28 Oct 2018 08:12:38 +0000 (09:12 +0100)]
manual: Update from wiki.gnome.org
Rico Tzschichholz [Sat, 27 Oct 2018 13:28:53 +0000 (15:28 +0200)]
testrunner: Compile and run tests separately
Rico Tzschichholz [Sat, 27 Oct 2018 13:21:30 +0000 (15:21 +0200)]
testrunner: Reset $run_prefix before generating next test script
Rico Tzschichholz [Sat, 27 Oct 2018 08:36:22 +0000 (10:36 +0200)]
vala: Let UsingDirective hold reference to UnresolvedSymbol instances only
This should break a cyclic reference of SourceReference and Namespace.
Rico Tzschichholz [Sat, 27 Oct 2018 10:43:19 +0000 (12:43 +0200)]
tests: Add some "using directive" tests to increase coverage
Rico Tzschichholz [Fri, 26 Oct 2018 11:41:01 +0000 (13:41 +0200)]
tests: Add "captured unassigned local variable" test
Rico Tzschichholz [Fri, 26 Oct 2018 07:12:21 +0000 (09:12 +0200)]
tests: Add "assigned local variables" tests
Rico Tzschichholz [Thu, 25 Oct 2018 11:26:46 +0000 (13:26 +0200)]
tests: Add implicit conversion tests for GLib.Variant
Rico Tzschichholz [Wed, 24 Oct 2018 12:51:17 +0000 (14:51 +0200)]
vala: Implement get_*_variables() for ConditionalExpression
Luca Bruno [Thu, 5 Jan 2012 14:56:43 +0000 (15:56 +0100)]
vala: Don't navigate the resolver tree if a node has been checked already
Rico Tzschichholz [Wed, 24 Oct 2018 12:06:49 +0000 (14:06 +0200)]
vala: Make source_reference optional for ObjectCreationExpression
Rico Tzschichholz [Wed, 24 Oct 2018 12:05:09 +0000 (14:05 +0200)]
vala: Implement check() for StatementList
Rico Tzschichholz [Tue, 23 Oct 2018 13:57:29 +0000 (15:57 +0200)]
vala: DataType for GLib.Error should be should resolved as ErrorType
Rico Tzschichholz [Tue, 23 Oct 2018 13:05:30 +0000 (15:05 +0200)]
vala: Add some missing type copying
Luca Bruno [Tue, 3 Jan 2012 12:03:53 +0000 (13:03 +0100)]
vala: Fix and add more to_string() methods to expressions
Rico Tzschichholz [Tue, 23 Oct 2018 11:46:34 +0000 (13:46 +0200)]
vala: Add source_reference to local variable of catch-clause
Rico Tzschichholz [Tue, 23 Oct 2018 11:40:54 +0000 (13:40 +0200)]
vala: Fix several AST construction/parenting issues
Luca Bruno [Thu, 29 Dec 2011 11:39:15 +0000 (12:39 +0100)]
vala: Add missing replace_expression() implementations
Luca Bruno [Tue, 4 Feb 2014 00:00:39 +0000 (01:00 +0100)]
Recurse arguments when getting error types for method calls
Luca Bruno [Sun, 7 Aug 2011 10:44:41 +0000 (12:44 +0200)]
Collect error_types on demand to allow transformations
Luca Bruno [Fri, 5 Aug 2011 15:22:18 +0000 (17:22 +0200)]
vala: Always analyze nodes after they are inserted into the AST
Rico Tzschichholz [Mon, 13 Aug 2018 14:48:46 +0000 (16:48 +0200)]
gobject-2.0,gtk+-*.0: Fix some GLib.Value out/ref parameters
This is required due to GLib.Value being bound as struct.
Rico Tzschichholz [Sun, 21 Oct 2018 11:19:19 +0000 (13:19 +0200)]
vapi: Update GIR-based bindings
Rico Tzschichholz [Sun, 21 Oct 2018 11:19:01 +0000 (13:19 +0200)]
gstreamer: Update from 1.15+ git master
Rico Tzschichholz [Tue, 11 Oct 2016 09:05:23 +0000 (11:05 +0200)]
codegen: Improve ccode for fixed-length array parameters
https://gitlab.gnome.org/GNOME/vala/issues/163
Rico Tzschichholz [Tue, 11 Oct 2016 15:27:01 +0000 (17:27 +0200)]
valaparser: Don't allow to declare array parameters with "type array[]"
It is required to have a fixed length like "type array[3]".
Fixes https://gitlab.gnome.org/GNOME/vala/issues/163
Rico Tzschichholz [Fri, 19 Oct 2018 15:21:39 +0000 (17:21 +0200)]
girwriter: Fix ctype of out/ref and array parameters
Rico Tzschichholz [Fri, 19 Oct 2018 13:58:11 +0000 (15:58 +0200)]
tests: Add "method override with compatible delegate parameter" test
Rico Tzschichholz [Tue, 16 Oct 2018 20:19:24 +0000 (22:19 +0200)]
vala: Move nullable setting of LocalVariable with reference type to check()
... and keep skipping it in non-null mode.
Originally introduced with
80c18a1d1ff357be7f1d0f50f1aa331f206a0a0a
Fixes https://gitlab.gnome.org/GNOME/vala/issues/684
Rico Tzschichholz [Tue, 3 Jul 2018 10:34:07 +0000 (12:34 +0200)]
Add support for SingleInstance attribute for GObject classes
Fixes https://gitlab.gnome.org/GNOME/vala/issues/647
Rico Tzschichholz [Tue, 16 Oct 2018 19:19:45 +0000 (21:19 +0200)]
test: Add some invalid "non-null" tests
Rico Tzschichholz [Tue, 9 Oct 2018 06:28:33 +0000 (08:28 +0200)]
ccode: Fix typo and actually check "end_decls"
Note both begin_decls and end_decls must be either not null or null.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/672
Rico Tzschichholz [Mon, 8 Oct 2018 19:03:50 +0000 (21:03 +0200)]
codegen: Initialize internal temp-variables used as reference parameter
Variables for delegate-targets and array-lengths passed as reference in
method calls should be initialized to fix "make check" with -O3.
Rico Tzschichholz [Sun, 7 Oct 2018 17:36:24 +0000 (19:36 +0200)]
gstreamer: Update from 1.15+ git master
Rico Tzschichholz [Thu, 4 Oct 2018 12:28:31 +0000 (14:28 +0200)]
codegen: Make unreachable error an internal error
This is meant to be caught in ElementAccess.check()
Rico Tzschichholz [Thu, 4 Oct 2018 12:02:18 +0000 (14:02 +0200)]
codegen: Replace invalid array-length assert with internal error
While the test-suite triggers this assert with an invalid test an explicit
crash is not wanted.
Rico Tzschichholz [Mon, 24 Sep 2018 13:29:15 +0000 (15:29 +0200)]
tests: Extent "girwriter" test to increase coverage
Rico Tzschichholz [Sun, 27 Aug 2017 14:03:03 +0000 (16:03 +0200)]
build: Allow disabling the build of valadoc
Allow disabling build of valadoc with configure option --disable-valadoc
Fixes https://gitlab.gnome.org/GNOME/vala/issues/596
Rico Tzschichholz [Wed, 26 Sep 2018 07:48:11 +0000 (09:48 +0200)]
build: Unconditionally add conditional VALAFLAGS to make bootstrap
This avoids another configure pass after an initial build with an older
valac <= 0.39.5.8.
See https://gitlab.gnome.org/GNOME/gnome-build-meta/issues/44
Rico Tzschichholz [Sun, 23 Sep 2018 10:30:24 +0000 (12:30 +0200)]
vapi: Update GIR-based bindings
Rico Tzschichholz [Sun, 23 Sep 2018 10:30:17 +0000 (12:30 +0200)]
gstreamer: Update from 1.15+ git master
Rico Tzschichholz [Sun, 23 Sep 2018 08:48:58 +0000 (10:48 +0200)]
gtk+-4.0: Update to 3.94.0+
d90e2733
Rico Tzschichholz [Sat, 22 Sep 2018 20:05:14 +0000 (22:05 +0200)]
Drop deprecated syntax support of # modifier and operator
owned modifier and (owned) cast should be used instead for a long time.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/677
Rico Tzschichholz [Sat, 22 Sep 2018 19:49:24 +0000 (21:49 +0200)]
Drop deprecated syntax support of += and -= for signals
The connect/disconnect methods should be used instead for a long time.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/676
Rico Tzschichholz [Sat, 22 Sep 2018 16:39:36 +0000 (18:39 +0200)]
Move some errors from signal-module to the semantic-analyzer pass
Rico Tzschichholz [Sat, 22 Sep 2018 16:30:17 +0000 (18:30 +0200)]
tests: Add some invalid "signal" tests to increase coverage
Rico Tzschichholz [Sat, 22 Sep 2018 12:44:40 +0000 (14:44 +0200)]
vala: Enforce "return yield ..." syntax to be expected
"yield return ..." wasn't handled correctly and resulted in broken c-code.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/675
Rico Tzschichholz [Sat, 22 Sep 2018 12:49:33 +0000 (14:49 +0200)]
codewriter: Prepend "yield" if is_yield_expression is set on MethodCall/ObjectCreationExpression
Rico Tzschichholz [Sat, 22 Sep 2018 12:44:09 +0000 (14:44 +0200)]
tests: Add some "yield" test to increase coverage
Rico Tzschichholz [Sat, 22 Sep 2018 08:42:55 +0000 (10:42 +0200)]
tests: Add invalid "object creation" tests to increase coverage
Rico Tzschichholz [Sat, 22 Sep 2018 06:31:51 +0000 (08:31 +0200)]
tests: Update field "owned to unowned" test to increase coverage
Rico Tzschichholz [Fri, 21 Sep 2018 20:53:18 +0000 (22:53 +0200)]
tests: Add invalid variable declaration tests to increase coverage
Rico Tzschichholz [Fri, 21 Sep 2018 19:43:17 +0000 (21:43 +0200)]
vala: Return early for invalid initializer of local variable declarations
Rico Tzschichholz [Fri, 21 Sep 2018 16:12:49 +0000 (18:12 +0200)]
tests: Add invalid "property for Object() chainup" tests to increase coverage
Rico Tzschichholz [Fri, 21 Sep 2018 15:47:06 +0000 (17:47 +0200)]
tests: Add invalid "construct without GObject" test to increase coverage
Rico Tzschichholz [Fri, 21 Sep 2018 15:34:00 +0000 (17:34 +0200)]
tests: Add invalid "method to delegate" test to increase coverage
Rico Tzschichholz [Fri, 21 Sep 2018 14:22:56 +0000 (16:22 +0200)]
tests: Add invalid "duplicating instance" test to increase coverage
Rico Tzschichholz [Fri, 21 Sep 2018 13:59:56 +0000 (15:59 +0200)]
tests: Add "missing class prerequisite for interface" test to increase coverage
Rico Tzschichholz [Fri, 21 Sep 2018 13:48:12 +0000 (15:48 +0200)]
tests: Add "GenericAccessors" tests to increase coverage
Rico Tzschichholz [Fri, 21 Sep 2018 13:14:05 +0000 (15:14 +0200)]
tests: Add invalid "array concatenation" test to increase coverage
Rico Tzschichholz [Fri, 21 Sep 2018 13:03:42 +0000 (15:03 +0200)]
tests: Add "unsupported use of length field" test to increase coverage
Alistair Thomas [Thu, 20 Sep 2018 18:54:18 +0000 (19:54 +0100)]
glib-2.0: Add feature_test_macro details for Time struct's methods
Alistair Thomas [Mon, 2 Jul 2018 23:29:23 +0000 (00:29 +0100)]
glib-2.0: Set DateTime.now () to use local time zone as the default
Rico Tzschichholz [Thu, 20 Sep 2018 13:43:06 +0000 (15:43 +0200)]
vapi: Update GIDL-based bindings to fix unsupported type-arguments
Rico Tzschichholz [Thu, 19 Apr 2018 21:58:31 +0000 (23:58 +0200)]
valadoc: Fix some string escaping which gettext complains about
Rico Tzschichholz [Wed, 8 Aug 2018 14:36:38 +0000 (16:36 +0200)]
vala: Check if ArrayType supports its given element-type in analyzer pass
Rico Tzschichholz [Thu, 20 Sep 2018 10:56:38 +0000 (12:56 +0200)]
codegen: Fix typo in is_pure_ccode_expression()
Note that this method is not used anymore and should likely be dropped.
Introduced with
e086fada22eb7221cdbe34d7d4ac41445a50130a
Fixes https://gitlab.gnome.org/GNOME/vala/issues/673
Rico Tzschichholz [Thu, 20 Sep 2018 08:57:43 +0000 (10:57 +0200)]
g-i: Fix use after free in scanner
Fixes https://gitlab.gnome.org/GNOME/vala/issues/674
Rico Tzschichholz [Wed, 19 Sep 2018 10:39:23 +0000 (12:39 +0200)]
x11: Add binding for XCreateSimpleWindow
Rico Tzschichholz [Wed, 19 Sep 2018 10:28:47 +0000 (12:28 +0200)]
libxml-2.0: Add missing context parameter in OutputWriteCallback
Rico Tzschichholz [Wed, 19 Sep 2018 10:28:16 +0000 (12:28 +0200)]
vala: Add Block.get_local_constants()
Rico Tzschichholz [Tue, 18 Sep 2018 16:40:38 +0000 (18:40 +0200)]
gtk+-3.0: Treat Gtk.IconInfo as GLib.Object which it is since 3.8
This change is backwards incompatible!
See https://gitlab.gnome.org/GNOME/vala/issues/663
Rico Tzschichholz [Tue, 18 Sep 2018 15:24:07 +0000 (17:24 +0200)]
codewriter: Use List.sort() instead of custom local implementation
Rico Tzschichholz [Tue, 31 Jul 2018 11:16:48 +0000 (13:16 +0200)]
codegen: Emit G_DEFINE_AUTOPTR_CLEANUP_FUNC() for classes
This requires --target-glib=2.44
Fixes https://gitlab.gnome.org/GNOME/vala/issues/670
Rico Tzschichholz [Thu, 6 Sep 2018 07:41:37 +0000 (09:41 +0200)]
Bump version suffix
Rico Tzschichholz [Mon, 17 Sep 2018 13:49:17 +0000 (15:49 +0200)]
Release 0.42.1
Rico Tzschichholz [Sun, 9 Sep 2018 16:12:03 +0000 (18:12 +0200)]
vapigen: Warn if the library argument doesn't match any package attribute
GIR files can contain a package key referring to the pkg-config name which
is the recommended and even required naming of a vapi.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/669
Rico Tzschichholz [Mon, 17 Sep 2018 12:03:12 +0000 (14:03 +0200)]
vapi: Update GIR-based bindings
Rico Tzschichholz [Mon, 17 Sep 2018 10:56:37 +0000 (12:56 +0200)]
gtk+-4.0: Update to 3.94.0+
f3e6d00d
Rico Tzschichholz [Mon, 17 Sep 2018 06:47:23 +0000 (08:47 +0200)]
tests: Actually check canonical cname of properties and signals
Rico Tzschichholz [Sun, 16 Sep 2018 17:27:17 +0000 (19:27 +0200)]
test: Add property lock test
Rico Tzschichholz [Sun, 9 Sep 2018 11:46:19 +0000 (13:46 +0200)]
tests: Check uchar[] and uint8[] compatibility
Rico Tzschichholz [Mon, 19 Mar 2018 08:55:32 +0000 (09:55 +0100)]
vapi: Add gnome-desktop-3.0 bindings
Fixes https://gitlab.gnome.org/GNOME/vala/issues/668
Rico Tzschichholz [Sun, 9 Sep 2018 06:21:51 +0000 (08:21 +0200)]
vapi: Remove libgda-4.0, libgda-report-4.0 bindings
Fixes https://gitlab.gnome.org/GNOME/vala/issues/667
Rico Tzschichholz [Fri, 7 Sep 2018 12:33:15 +0000 (14:33 +0200)]
glib-2.0: Add some 2.58 symbols