]>
git.ipfire.org Git - thirdparty/vala.git/log
Rico Tzschichholz [Tue, 16 Jul 2019 09:18:27 +0000 (11:18 +0200)]
Release 0.44.6
Rico Tzschichholz [Tue, 9 Jul 2019 09:08:20 +0000 (11:08 +0200)]
gtk4: Update to 3.96.0+
b05d1676
Rico Tzschichholz [Tue, 9 Jul 2019 11:22:26 +0000 (13:22 +0200)]
glib-2.0: Fix RecMutexLocker binding
Rico Tzschichholz [Tue, 9 Jul 2019 08:06:56 +0000 (10:06 +0200)]
glib-2.0: Add binding for g_strv_equal() (since 2.60)
Rico Tzschichholz [Mon, 8 Jul 2019 17:11:19 +0000 (19:11 +0200)]
codegen: Real structs are allowed by simple generics and passed as reference
Add the required pointer-indirections to fix invalid memory accesses.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/819
Jeremy Philippe [Fri, 5 Jul 2019 16:26:05 +0000 (18:26 +0200)]
build: Pass -no-undefined when linking libcodegen
This is required to build under MinGW (and presumably Cygwin).
Fixes https://gitlab.gnome.org/GNOME/vala/issues/820
Rico Tzschichholz [Fri, 5 Jul 2019 14:54:19 +0000 (16:54 +0200)]
codegen: Assign GValue result of function calls to temp-var on copy_value
Regression of
a94a28141e1f222d1da7e72bea4cd2d1e5242f41
Fixes https://gitlab.gnome.org/GNOME/vala/issues/819
Gran PC [Sun, 30 Jun 2019 13:06:39 +0000 (13:06 +0000)]
xtst: Fix signature of XTest.fake_relative_motion_event()
See https://gitlab.gnome.org/GNOME/vala/merge_requests/67
Rico Tzschichholz [Mon, 1 Jul 2019 09:10:35 +0000 (11:10 +0200)]
glib-2.0: Bind strcmp0 as GLib.CompareFunc<string?>
Allows proper usage with experimental non-null
Fixes https://gitlab.gnome.org/GNOME/vala/issues/810
Rico Tzschichholz [Mon, 17 Jun 2019 10:59:12 +0000 (12:59 +0200)]
tests: Null-terminate arrays for compatibility test of uint8 and uchar
Fixes https://gitlab.gnome.org/GNOME/vala/issues/809
Rico Tzschichholz [Mon, 17 Jun 2019 08:47:30 +0000 (10:47 +0200)]
Release 0.44.5
Rico Tzschichholz [Mon, 17 Jun 2019 06:05:54 +0000 (08:05 +0200)]
vala: Only warn about imcompatible type of external construct property
This is to reduce the initial fallout.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/803
Rico Tzschichholz [Sat, 15 Jun 2019 18:25:25 +0000 (20:25 +0200)]
gtk+-3.0: Update to 3.24.9~
18177388
Rico Tzschichholz [Sat, 15 Jun 2019 18:25:02 +0000 (20:25 +0200)]
gtk4: Update to 3.96.0+
8cfdd6c5
Rico Tzschichholz [Sat, 15 Jun 2019 15:43:28 +0000 (17:43 +0200)]
girparser: Skip 'attribute' elements
Rico Tzschichholz [Fri, 14 Jun 2019 06:16:23 +0000 (08:16 +0200)]
girwriter: Report error on secondary top-level namespace to be written
Fixes https://gitlab.gnome.org/GNOME/vala/issues/805
Rico Tzschichholz [Thu, 13 Jun 2019 13:58:58 +0000 (15:58 +0200)]
codegen: Use array_length of collection variable instead of expression
Rico Tzschichholz [Wed, 5 Jun 2019 08:55:13 +0000 (10:55 +0200)]
Release 0.44.4
Rico Tzschichholz [Wed, 5 Jun 2019 09:07:20 +0000 (11:07 +0200)]
gtk4: Update to 3.96.0+
69016825
Rico Tzschichholz [Thu, 9 May 2019 08:17:36 +0000 (10:17 +0200)]
vala: No-accessor struct properties in GLib.Object class must be owned
Real structs are returned as heap-allocated structor by g_object_get() and
not defining them with owned getter results in memory leaks.
Additionally force DelegateType, PointerType and ValueType as unowned to
preserve the current behaviour for binding generation.
Rico Tzschichholz [Wed, 15 May 2019 08:26:39 +0000 (10:26 +0200)]
gtk4: Update to 3.96.0+
cfe648eb
Rico Tzschichholz [Fri, 17 May 2019 06:56:12 +0000 (08:56 +0200)]
codegen: When freeing local variables don't stop at "switch" on "continue"
So distinguish between BreakStatement and ContinueStatement to make the
correct decision in append_local_free().
Fixes https://gitlab.gnome.org/GNOME/vala/issues/799
Rico Tzschichholz [Wed, 8 May 2019 08:22:54 +0000 (10:22 +0200)]
clutter-1.0: Bind Margin, PaintVolume, Point, Rect and Size as struct
Reverts
0cd8009728245300d32009fb029898b4a3ceed8a and its confusion
regards "caller-allocates" out-parameters
Fixes https://gitlab.gnome.org/GNOME/vala/issues/795
Rico Tzschichholz [Thu, 9 May 2019 16:51:43 +0000 (18:51 +0200)]
tests: Properties with NoAccessorMethod return heap-allocated structs
Rico Tzschichholz [Wed, 8 May 2019 10:25:20 +0000 (12:25 +0200)]
cogl-1.0: Fix out-params in Cogl.get_modelview_matrix/projection_matrix/bitmasks
Fixes https://gitlab.gnome.org/GNOME/vala/issues/794
Rico Tzschichholz [Sun, 12 May 2019 18:59:15 +0000 (20:59 +0200)]
codegen: Always use G_TYPE_CHECK_INSTANCE_TYPE for external symbols
and get_ccode_type_check_function() for SourceFileType.SOURCE symbols.
Rico Tzschichholz [Tue, 7 May 2019 13:44:37 +0000 (15:44 +0200)]
girparser: Add support for string "ctype" metadata
https://gitlab.gnome.org/GNOME/vala/issues/793
Rico Tzschichholz [Fri, 3 May 2019 13:32:04 +0000 (15:32 +0200)]
girwriter: Write implicit fields for arrays and delegates
Rico Tzschichholz [Thu, 2 May 2019 16:09:19 +0000 (18:09 +0200)]
girwriter: Write implicit parameters and properties for generics
Rico Tzschichholz [Wed, 1 May 2019 15:37:07 +0000 (17:37 +0200)]
compiler: Add OptionFlags.NO_ARG to deprecated "--thread" option
It was defined with OptionArg.NONE and never took an extra argument.
Regression of
d8e810680f370fac7e9a5e80f8d94316707625c2
Rico Tzschichholz [Wed, 1 May 2019 14:35:53 +0000 (16:35 +0200)]
gstreamer: Cherry-pick some fixes from 0.46
Rico Tzschichholz [Wed, 1 May 2019 13:09:04 +0000 (15:09 +0200)]
gtk4: Update to 3.94.0+
724ec3ca
Rico Tzschichholz [Wed, 1 May 2019 10:51:45 +0000 (12:51 +0200)]
girwriter: Only replace existing GIR files if they changed
Same how it is done in CodeWriter.write_file()
Rico Tzschichholz [Sat, 27 Apr 2019 11:20:28 +0000 (13:20 +0200)]
girwriter: Populate gir_namespace/version attributes of external namespaces
Rico Tzschichholz [Mon, 29 Apr 2019 14:30:43 +0000 (16:30 +0200)]
girwriter: Don't write c:include tags for symbols from external packages
Rico Tzschichholz [Sun, 28 Apr 2019 15:52:40 +0000 (17:52 +0200)]
girwriter: Properly write attributes for non-GObject classes
Rico Tzschichholz [Sun, 28 Apr 2019 15:51:23 +0000 (17:51 +0200)]
tests: Actually define SkippedStruct as struct for girwriter
Rico Tzschichholz [Sun, 28 Apr 2019 14:41:44 +0000 (16:41 +0200)]
codegen: Make sure to call a corresponding pop_function()
Rico Tzschichholz [Sun, 28 Apr 2019 14:30:22 +0000 (16:30 +0200)]
codegen: Make sure to call a corresponding pop_line()
Rico Tzschichholz [Sun, 28 Apr 2019 14:08:34 +0000 (16:08 +0200)]
codegen: Make sure to call a corresponding pop_context()
Rico Tzschichholz [Sat, 27 Apr 2019 18:21:44 +0000 (20:21 +0200)]
girwriter: Don't write "property" attribute for non-gobject properties
Rico Tzschichholz [Sun, 28 Apr 2019 07:22:13 +0000 (09:22 +0200)]
codegen: Move construct property checks to SemanticAnalyzer pass
Rico Tzschichholz [Sat, 27 Apr 2019 18:18:34 +0000 (20:18 +0200)]
codegen: Move GObject property validity checks to SemanticAnalyzer
Rico Tzschichholz [Sun, 28 Apr 2019 07:25:23 +0000 (09:25 +0200)]
valadoc/tests: construct properties require GLib.Object derived class
Rico Tzschichholz [Sat, 27 Apr 2019 11:37:17 +0000 (13:37 +0200)]
tests: Fix namespace attributes for girwriter
Rico Tzschichholz [Sat, 27 Apr 2019 09:17:28 +0000 (11:17 +0200)]
girwriter: Properly resolve GLib.TypeInterface instead of hardcoding it
This makes sure to pick up the dependency on GObject-2.0.gir
Rico Tzschichholz [Sat, 27 Apr 2019 08:25:32 +0000 (10:25 +0200)]
girwriter: Mention that this file is generated and not meant to be modified
Same as already done for generated vapi files.
Rico Tzschichholz [Tue, 23 Apr 2019 06:24:59 +0000 (08:24 +0200)]
build: Pass some useful G_LOG_DOMAIN definitions
Rico Tzschichholz [Tue, 23 Apr 2019 07:22:40 +0000 (09:22 +0200)]
tests: More "unassigned variable" tests to increase coverage
Rico Tzschichholz [Wed, 17 Apr 2019 16:17:05 +0000 (18:17 +0200)]
javascriptcoregtk-4.0: Update to 2.24.1
Rico Tzschichholz [Wed, 17 Apr 2019 16:15:42 +0000 (18:15 +0200)]
gtk4: Update to 3.94.0+
2656f5b4
Rico Tzschichholz [Wed, 17 Apr 2019 16:15:05 +0000 (18:15 +0200)]
gstreamer: Update from 1.15.90+ git master
Rico Tzschichholz [Sat, 13 Apr 2019 15:46:23 +0000 (17:46 +0200)]
tests: Extend "foreach" tests to increase coverage
Rico Tzschichholz [Sun, 14 Apr 2019 13:28:49 +0000 (15:28 +0200)]
tests: Extend "assigned local variable" control flow tests
Rico Tzschichholz [Thu, 11 Apr 2019 05:32:24 +0000 (07:32 +0200)]
parser: Set correct end source-reference of Block for embedded statement
Rico Tzschichholz [Wed, 10 Apr 2019 12:12:21 +0000 (14:12 +0200)]
parser: Improve source-reference of declaration block for ForStatement
Rico Tzschichholz [Wed, 10 Apr 2019 12:12:21 +0000 (14:12 +0200)]
parser: Improve source-location for local Constant declarations
Rico Tzschichholz [Wed, 10 Apr 2019 12:12:21 +0000 (14:12 +0200)]
parser: Don't include trailing semi-colon to ExpressionStatement
Rico Tzschichholz [Wed, 10 Apr 2019 12:12:21 +0000 (14:12 +0200)]
parser: Improve source-location for LocalVariable/DeclarationStatement
Rico Tzschichholz [Wed, 10 Apr 2019 12:12:21 +0000 (14:12 +0200)]
parser: Set correct end source-location for Block
This location was off by one token.
Rico Tzschichholz [Mon, 8 Apr 2019 18:59:11 +0000 (20:59 +0200)]
Release 0.44.3
Rico Tzschichholz [Mon, 8 Apr 2019 18:32:49 +0000 (20:32 +0200)]
libarchive: Fix Archive.[set_]mode/perm() and add Archive.FileMode
Keep FileType as special case of FileMode for filetype methods.
Rico Tzschichholz [Mon, 8 Apr 2019 15:44:14 +0000 (17:44 +0200)]
gtk4: Update to 3.94.0+
2594593d
Rico Tzschichholz [Mon, 8 Apr 2019 15:43:40 +0000 (17:43 +0200)]
gdk-3.0,gtk+-3.0: Update from 3.24.7+
Rico Tzschichholz [Mon, 8 Apr 2019 15:42:53 +0000 (17:42 +0200)]
gstreamer: Update from 1.15.2+ git master
Rico Tzschichholz [Mon, 8 Apr 2019 08:00:19 +0000 (10:00 +0200)]
codegen: Always assign original variable when consuming instance to destroy
Fixes https://gitlab.gnome.org/GNOME/vala/issues/781
Luca Bruno [Sat, 4 May 2013 13:35:04 +0000 (15:35 +0200)]
vala: Use global CodeContext to retrieve root_symbol
Rico Tzschichholz [Sat, 6 Apr 2019 12:13:34 +0000 (14:13 +0200)]
tests: Add "unassigned local variable in while" test
Rico Tzschichholz [Sat, 6 Apr 2019 08:13:02 +0000 (10:13 +0200)]
tests: Extend "assigned local variable" control flow tests
Cover condition statements of WhileStatement and ConditionalExpression
Rico Tzschichholz [Thu, 4 Apr 2019 08:45:10 +0000 (10:45 +0200)]
pango: Fix StringBuilder parameter of scan_word()
Rico Tzschichholz [Tue, 2 Apr 2019 10:31:58 +0000 (12:31 +0200)]
build: Require --with-cgraph configure flag when cross-compiling
Fixes https://gitlab.gnome.org/GNOME/vala/issues/775
Rico Tzschichholz [Sun, 31 Mar 2019 13:13:30 +0000 (15:13 +0200)]
Release 0.44.2
Rico Tzschichholz [Sun, 31 Mar 2019 08:26:43 +0000 (10:26 +0200)]
Add explicit "default: break;" statements for coverage of enum-typed switch
Rico Tzschichholz [Sun, 31 Mar 2019 08:33:30 +0000 (10:33 +0200)]
libvaladoc: Handle missing Run.Style.NONE in switch
Rico Tzschichholz [Sun, 31 Mar 2019 08:25:56 +0000 (10:25 +0200)]
libvaladoc: Handle missing Content.List.Bullet.ORDERED in switch
Rico Tzschichholz [Fri, 29 Mar 2019 18:19:24 +0000 (19:19 +0100)]
gtk4: Update to 3.94.0+
f273eca7
Rico Tzschichholz [Thu, 21 Mar 2019 10:38:28 +0000 (11:38 +0100)]
codegen: Implement silent-cast for GLib.Variant
Fixes https://gitlab.gnome.org/GNOME/vala/issues/767
Rico Tzschichholz [Sun, 10 Mar 2019 20:51:02 +0000 (21:51 +0100)]
codegen: Don't create special GArray clear-func for non-null structs
Based on patch by Jakub Kaszycki
Rico Tzschichholz [Thu, 21 Mar 2019 14:38:37 +0000 (15:38 +0100)]
codegen: Move try_cast_variant_to_type() to GVariantModule.visit_cast_expression()
Rico Tzschichholz [Thu, 21 Mar 2019 07:12:30 +0000 (08:12 +0100)]
codegen: Move get_type_signature() to DataType
Rico Tzschichholz [Wed, 27 Mar 2019 23:02:59 +0000 (00:02 +0100)]
gstreamer-1.0: Fix TypeFind and TypeFindFactory method references
Rico Tzschichholz [Wed, 27 Mar 2019 23:02:59 +0000 (00:02 +0100)]
gobject-introspection-1.0: Fix TypeInfo and TypeTag method references
Fixes https://gitlab.gnome.org/GNOME/vala/issues/778
Rico Tzschichholz [Wed, 27 Mar 2019 23:02:59 +0000 (00:02 +0100)]
girparser: Create correct output in get_default_lower_case_suffix()
It must match the output of CCodeAttribute.get_default_lower_case_suffix()
Add metadata support to set lower_case_csuffix
See https://gitlab.gnome.org/GNOME/vala/issues/778
Rico Tzschichholz [Wed, 27 Mar 2019 08:55:31 +0000 (09:55 +0100)]
vala: Report error for unsupported operator instead of assertion
Rico Tzschichholz [Sun, 24 Mar 2019 17:34:29 +0000 (18:34 +0100)]
tests: Add "struct (un)boxing" variant test
Rico Tzschichholz [Mon, 25 Mar 2019 19:59:25 +0000 (20:59 +0100)]
codegen: Use available *_unref functions in G_DEFINE_AUTOPTR_CLEANUP_FUNC
Compact classes might have a unref_function in external packages. Therefore
subclassing them resulted in an errornous reference to free_function.
Rico Tzschichholz [Mon, 25 Mar 2019 11:46:15 +0000 (12:46 +0100)]
codegen: Move implicit GValue cast for comparison to BinaryExpression
Handle "==" and "!=" only as it was done before.
This generates correct c-code for boxed simple-types and will perform
value-based comparisons.
See https://bugzilla.gnome.org/show_bug.cgi?id=585063
Rico Tzschichholz [Mon, 25 Mar 2019 09:20:37 +0000 (10:20 +0100)]
vapi: Update GIR-based bindings
Rico Tzschichholz [Mon, 25 Mar 2019 09:19:31 +0000 (10:19 +0100)]
gstreamer: Update from 1.15.2+ git master
Rico Tzschichholz [Mon, 25 Mar 2019 09:15:21 +0000 (10:15 +0100)]
gio-2.0: Revert enum-typed flags parameters in Socket API
See https://gitlab.gnome.org/GNOME/glib/merge_requests/728
Rico Tzschichholz [Mon, 11 Mar 2019 09:31:10 +0000 (10:31 +0100)]
codegen: Resolve generics in sizeof-expression of parameter initializer
Corentin Noël [Fri, 22 Mar 2019 08:09:21 +0000 (09:09 +0100)]
tests: Add more invalid "assignment" tests to increase coverage
Corentin Noël [Thu, 21 Mar 2019 21:19:28 +0000 (22:19 +0100)]
tests: Add a field starting with a digit test
Rico Tzschichholz [Wed, 20 Mar 2019 07:27:47 +0000 (08:27 +0100)]
tests: Add some invalid "array slice" tests to increase coverage
Rico Tzschichholz [Tue, 19 Mar 2019 08:53:45 +0000 (09:53 +0100)]
glib-2.0: Don't annotate dedicated GLib.assert_*() functions with [Assert]
Fixes https://gitlab.gnome.org/GNOME/vala/issues/769
Rico Tzschichholz [Tue, 19 Mar 2019 07:09:35 +0000 (08:09 +0100)]
vala: Variadic parameters are not supported for async methods
Rico Tzschichholz [Sun, 17 Mar 2019 14:29:30 +0000 (15:29 +0100)]
Release 0.44.1
Rico Tzschichholz [Sat, 16 Mar 2019 16:36:20 +0000 (17:36 +0100)]
vapi: Update GIR-based bindings
Rico Tzschichholz [Sat, 16 Mar 2019 16:35:16 +0000 (17:35 +0100)]
gtk4: Update to 3.94.0+
f14d998c
Rico Tzschichholz [Sat, 16 Mar 2019 16:34:22 +0000 (17:34 +0100)]
gstreamer: Update from 1.15.2+ git master