]>
git.ipfire.org Git - thirdparty/vala.git/log
Rico Tzschichholz [Fri, 16 Sep 2022 13:40:13 +0000 (15:40 +0200)]
Release 0.48.25
星外之神 [Sat, 27 Aug 2022 15:26:41 +0000 (23:26 +0800)]
vala: Avoid problems with '\' in #line directives on Windows
Replace '\' with '/' in SourceFile.relative_path like in CodeContext.realpath().
F:/msys64/home/x/test/test.vala.c: In function '_vala_main':
F:/msys64/home/x/test/test.vala.c:12:9: warning: unknown escape sequence: '\M'
12 | #line 3 "C:\MyFiles\test.vala"
| ^~~~~~~~~~~~~~~~~~~~~~
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1353
Rico Tzschichholz [Wed, 17 Aug 2022 06:46:18 +0000 (08:46 +0200)]
glib-2.0: Use g_abort for GLib.Process.abort() beginning with 2.50
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1350
Rico Tzschichholz [Mon, 15 Aug 2022 06:36:49 +0000 (08:36 +0200)]
vala: Make try-statement parsing more resilient
Regression of
f5934184d050d1a19f394fdab6f2ee66ff30965f
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1304
Rico Tzschichholz [Tue, 9 Aug 2022 06:13:38 +0000 (08:13 +0200)]
atspi-2: Fix a few binding errors
Rico Tzschichholz [Mon, 1 Aug 2022 15:04:36 +0000 (17:04 +0200)]
gidlparser: Set source reference of parameters
Rico Tzschichholz [Sat, 30 Jul 2022 09:18:40 +0000 (11:18 +0200)]
vala: Don't unconditionally expect ObjectType of Class
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1341
Rico Tzschichholz [Tue, 19 Jul 2022 16:22:19 +0000 (18:22 +0200)]
gtk+-3.0: Correctly unhide BindingSet.by_class to avoid Version attribute
Rico Tzschichholz [Tue, 14 Jun 2022 10:43:16 +0000 (12:43 +0200)]
vala: Avoid critical in SourceFile.get_mapped_length()
See https://gitlab.gnome.org/GNOME/vala/issues/1330
Gustav Hartvigsson [Thu, 2 Jun 2022 09:51:40 +0000 (11:51 +0200)]
glib2.0: Add abs() to int8/int16/int32/ssize_t
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1328
Rico Tzschichholz [Tue, 31 May 2022 08:19:46 +0000 (10:19 +0200)]
codegen: Detect usage of static type-parameter in runtime context
Compact classes doesn't carry runtime information of its type-parameters.
In case this information is required we need report an error.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1326
Rico Tzschichholz [Tue, 10 May 2022 16:00:45 +0000 (18:00 +0200)]
codegen: Correctly set array-length for NoAccessorMethods properties
If value is a null-terminated array then calculate and set its length.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1316
Rico Tzschichholz [Wed, 20 Apr 2022 12:06:58 +0000 (14:06 +0200)]
manual: Update from wiki.gnome.org
Rico Tzschichholz [Tue, 5 Apr 2022 09:01:11 +0000 (11:01 +0200)]
valadoc: Include path to doclet in error message
Rico Tzschichholz [Tue, 29 Mar 2022 14:33:55 +0000 (16:33 +0200)]
vala: Don't allow nullable enum value as real GObject property
It is basically a boxed integer value.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1074
Rico Tzschichholz [Thu, 31 Mar 2022 08:46:38 +0000 (10:46 +0200)]
Release 0.48.24
Rico Tzschichholz [Tue, 8 Mar 2022 21:54:09 +0000 (22:54 +0100)]
codegen: Drop confusing warning when accessing interface members
Making assumptions for member access using the current class is not correct.
Introduced by
0aace7bd6d3ec72e77f4eabbb7d5fffd3b2e86a8
Rico Tzschichholz [Wed, 31 Mar 2021 13:02:56 +0000 (15:02 +0200)]
tiff: Fix a few binding errors
Rico Tzschichholz [Fri, 4 Mar 2022 10:45:41 +0000 (11:45 +0100)]
girparser: Don't count instance-parameter when checking for backwards closure reference
Fixes https://gitlab.gnome.org/GNOME/vala/issues/721
Rico Tzschichholz [Mon, 28 Feb 2022 11:12:56 +0000 (12:12 +0100)]
gstreamer-video-1.0: Fix a few binding errors
Rico Tzschichholz [Mon, 28 Feb 2022 11:12:56 +0000 (12:12 +0100)]
gstreamer-base-1.0: Fix a few bindings errors
Rico Tzschichholz [Mon, 28 Feb 2022 11:12:56 +0000 (12:12 +0100)]
gstreamer-audio-1.0: Fix a few binding errors
Rico Tzschichholz [Mon, 28 Feb 2022 11:12:56 +0000 (12:12 +0100)]
gst-editing-services-1.0: Fix BaseEffect.set_time_translation_funcs()
Rico Tzschichholz [Mon, 28 Feb 2022 11:12:56 +0000 (12:12 +0100)]
gtk4: Fix content_deserialize_async()
Rico Tzschichholz [Mon, 28 Feb 2022 11:12:56 +0000 (12:12 +0100)]
libgrss: Fix FeedItem.get_geo_point() parameters
Rico Tzschichholz [Mon, 28 Feb 2022 11:12:56 +0000 (12:12 +0100)]
libarchive: Fix a few binding errors
Rico Tzschichholz [Mon, 28 Feb 2022 11:12:56 +0000 (12:12 +0100)]
libgsf-1: Fix a few binding errors
Rico Tzschichholz [Mon, 28 Feb 2022 11:12:56 +0000 (12:12 +0100)]
girparser: Add support for "copy_/free_function" metadata for compact classes
Rico Tzschichholz [Mon, 28 Feb 2022 11:12:56 +0000 (12:12 +0100)]
girparser: Handle duplicated and unnamed symbols
Issue warnings and skip such symbols to avoid errors on vala's side.
Princeton Ferro [Sat, 26 Feb 2022 00:36:47 +0000 (19:36 -0500)]
g-i: Update gidl binding to include type hierarchy
The IdlNode* classes should be declared as subclasses of IdlNode, that
way the compiler can be sure that casting from an IdlNode is safe.
Rico Tzschichholz [Thu, 24 Feb 2022 12:45:18 +0000 (13:45 +0100)]
codegen: Emit G_DEFINE_AUTO_CLEANUP_CLEAR_FUNC() for structs
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1293
Rico Tzschichholz [Thu, 24 Feb 2022 12:45:18 +0000 (13:45 +0100)]
codegen: Emit G_DEFINE_AUTOPTR_CLEANUP_FUNC() for interfaces with base class
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1292
Rico Tzschichholz [Thu, 24 Feb 2022 12:45:18 +0000 (13:45 +0100)]
codegen: Split out GTypeModule.generate_autoptr_cleanup()
Rico Tzschichholz [Tue, 22 Feb 2022 18:18:16 +0000 (19:18 +0100)]
vapi: gtk4-unix-print is GIR-based
Rico Tzschichholz [Tue, 22 Feb 2022 12:10:20 +0000 (13:10 +0100)]
tests: Extend "direct access to error code" test to increase coverage
Rico Tzschichholz [Tue, 22 Feb 2022 09:56:05 +0000 (10:56 +0100)]
tests: Add invalid "error creation" tests to increase coverage
Rico Tzschichholz [Tue, 22 Feb 2022 09:47:04 +0000 (10:47 +0100)]
tests: Fix objectcreation-no-creation-method.test
Rico Tzschichholz [Mon, 21 Mar 2022 07:59:23 +0000 (08:59 +0100)]
tests: Add more Werror=... flags
Rico Tzschichholz [Fri, 11 Feb 2022 09:26:41 +0000 (10:26 +0100)]
build: Update git-version-gen to latest upstream
From commit
b5a3c17daa05f6d76f70369e7cbeefe0db012499 of
https://git.savannah.gnu.org/cgit/gnulib.git/log/build-aux/git-version-gen
Rico Tzschichholz [Fri, 11 Feb 2022 09:16:41 +0000 (10:16 +0100)]
build: Update gitlog-to-changelog to latest upstream
From commit
b5a3c17daa05f6d76f70369e7cbeefe0db012499 of
https://git.savannah.gnu.org/cgit/gnulib.git/tree/build-aux/gitlog-to-changelog
Rico Tzschichholz [Thu, 10 Feb 2022 17:07:56 +0000 (18:07 +0100)]
vala: Catch and throw possible inner error of lock statements
See
40c1dbfbfedb6c4a6b88df045eb1c2e7bdd38d93
Fixes https://gitlab.gnome.org/GNOME/vala/issues/83
Rico Tzschichholz [Mon, 21 Feb 2022 08:49:40 +0000 (09:49 +0100)]
Release 0.48.23
Rico Tzschichholz [Fri, 28 Jan 2022 13:25:13 +0000 (14:25 +0100)]
manual: Update from wiki.gnome.org
Rico Tzschichholz [Mon, 14 Feb 2022 13:47:18 +0000 (14:47 +0100)]
libsoup-2.4: Cherry-pick bindings fixes from 0.56
Rico Tzschichholz [Fri, 14 Jan 2022 13:37:12 +0000 (14:37 +0100)]
libgeoclue-2.0: Fix Simple.with_thresholds() contructor binding
Rico Tzschichholz [Mon, 27 Dec 2021 06:44:31 +0000 (07:44 +0100)]
vala: Show source location when reporting deprecations
Rico Tzschichholz [Wed, 9 Feb 2022 20:32:09 +0000 (21:32 +0100)]
vala: Clear SemanticAnalyzer.current_{symbol,source_file} when not needed anymore
Rico Tzschichholz [Wed, 9 Feb 2022 16:36:14 +0000 (17:36 +0100)]
vala: Free empty stack list for code contexts
While having the stack list created on demand, make sure to destroy it
when it is not required anymore. Otherwise it will be leaked without an
option to avoid that to happen.
Rico Tzschichholz [Tue, 8 Feb 2022 23:05:24 +0000 (00:05 +0100)]
gtkmodule: Recurse inner classes of ObjectTypeSymbols
Rico Tzschichholz [Tue, 8 Feb 2022 23:05:24 +0000 (00:05 +0100)]
test/gtktemplate: Use correct class name
Rico Tzschichholz [Sun, 6 Feb 2022 13:29:55 +0000 (14:29 +0100)]
parser: Clean up creation of constant declaration
Rico Tzschichholz [Sun, 6 Feb 2022 07:57:35 +0000 (08:57 +0100)]
vala: Move dynamic property errors to semantic analyzer pass
Rico Tzschichholz [Fri, 4 Feb 2022 08:32:11 +0000 (09:32 +0100)]
vala: Make sure to drop our "trap" jump target in case of an error
Otherwise this can result in an infinite loop in FlowAnalyzer.intersect()
Improve source reference for jump out of finally block
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1287
Rico Tzschichholz [Mon, 31 Jan 2022 15:37:44 +0000 (16:37 +0100)]
codegen: Use correct target/destroy of delegate field initializer
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1285
Rico Tzschichholz [Sun, 30 Jan 2022 17:07:23 +0000 (18:07 +0100)]
tests: Generic type inference for static methods only in compact classes
Rico Tzschichholz [Sun, 30 Jan 2022 17:07:23 +0000 (18:07 +0100)]
vala: Add missing TraverseVisitor.visit_data_type()
wxx [Tue, 30 Nov 2021 18:54:04 +0000 (02:54 +0800)]
vala: Transform assignment of an array element as needed
Fixes https://gitlab.gnome.org/GNOME/vala/issues/889
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1258
Nikola Hadžić [Tue, 25 Jan 2022 09:07:04 +0000 (10:07 +0100)]
v4l2: Update V4l2.Capabilities and fix some inline arrays
Nikola Hadžić [Tue, 25 Jan 2022 09:02:17 +0000 (10:02 +0100)]
alsa: Add/fix *.alloca() functions
Nahuel Gomez [Tue, 25 Jan 2022 17:23:58 +0000 (14:23 -0300)]
glib-2.0: Fix criticals in string.joinv() with arrays that start with null
Rico Tzschichholz [Mon, 24 Jan 2022 09:17:46 +0000 (10:17 +0100)]
codegen: Access of stack allocated struct is guaranteed to be non null
Found by -Werror=address with GCC 12
See https://gitlab.gnome.org/GNOME/vala/issues/1282
Rico Tzschichholz [Mon, 24 Jan 2022 09:17:46 +0000 (10:17 +0100)]
codegen: Don't uncoditionally null check callback_func for GLib.Closure
Found by -Werror=address with GCC 12
See https://gitlab.gnome.org/GNOME/vala/issues/1282
Rico Tzschichholz [Sun, 23 Jan 2022 17:46:48 +0000 (18:46 +0100)]
codegen: Access of inline allocated array is guaranteed to be non null
and improve null check for container in slice expression
Found by -Werror=address with GCC 12
See https://gitlab.gnome.org/GNOME/vala/issues/1282
Rico Tzschichholz [Tue, 18 Jan 2022 17:42:11 +0000 (18:42 +0100)]
vala: Implement missing YieldStatement.accept()
Rico Tzschichholz [Tue, 18 Jan 2022 13:33:15 +0000 (14:33 +0100)]
parser: Reduce the source reference of main block method to its beginning
The end contains broken information which lead to a crash while trying to
report this multi-line source reference.
Alvarito050506 [Mon, 17 Jan 2022 19:00:16 +0000 (16:00 -0300)]
codegen: Avoid symbol clashes with "va_*" from "stdarg.h"
A few more symbol clashes with the va_* macros from stdarg.h, that seem to
happen only in some systems, like Alpine Linux or NetBSD.
Rico Tzschichholz [Sun, 16 Jan 2022 18:25:51 +0000 (19:25 +0100)]
vala: Require lvalue access of delegate target/destroy "fields"
In addition to
c054da918a40f8ef93c1a006034fb6ab4717c135
See https://gitlab.gnome.org/GNOME/vala/issues/857
Rico Tzschichholz [Sun, 9 Jan 2022 18:49:27 +0000 (19:49 +0100)]
codegen: Generated SimpleType structs don't have a type id
Set "CCode.has_type_id" in CCodeStructModule.generate_struct_declaration()
like in GTypeModule.visit_struct() for SimpleType structs which might be
executed too late.
In addition to
2e798fc3f8e9af25a4c231c2561894d9f0a0be50
Rico Tzschichholz [Sun, 9 Jan 2022 12:54:51 +0000 (13:54 +0100)]
Release 0.48.22
Rico Tzschichholz [Wed, 15 Dec 2021 15:27:56 +0000 (16:27 +0100)]
gstreamer: Cherry-pick bindings fixes from 0.56
Rico Tzschichholz [Wed, 15 Dec 2021 20:42:53 +0000 (21:42 +0100)]
girparser: Avoid possibily creating duplicated attributes
Don't append an attribute without checking if there is an existing one.
In case the attribute already exists append the new key/value pairs.
Rico Tzschichholz [Tue, 14 Dec 2021 09:38:37 +0000 (10:38 +0100)]
tests: Add "type-parameter property clash" test to increase coverage
This needs to be handled gracefully. So throwing an error is no option.
Rico Tzschichholz [Mon, 13 Dec 2021 18:35:47 +0000 (19:35 +0100)]
codegen: Use a dedicated EmitContext for _variant_get*() functions
Rico Tzschichholz [Sun, 12 Dec 2021 17:47:53 +0000 (18:47 +0100)]
tests: Add more "chain up" tests to increase coverage
Rico Tzschichholz [Sun, 12 Dec 2021 17:47:53 +0000 (18:47 +0100)]
vala: Set is_yield_expression in async context when chaining up to async base ctor
vala-CRITICAL **: vala_member_access_get_inner: assertion 'self != NULL' failed
vala-CRITICAL **: vala_member_access_get_member_name: assertion 'self != NULL' failed
Avoid these spurious criticals and trigger the currently expected error.
Rico Tzschichholz [Sat, 11 Dec 2021 09:34:03 +0000 (10:34 +0100)]
codegen: Correctly handle chain up of struct creation methods
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1264
wxx [Sat, 4 Dec 2021 09:17:47 +0000 (17:17 +0800)]
vala: NullLiteral is not a valid argument for string concatenation
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1260
Lorenz Wildberg [Mon, 29 Nov 2021 21:31:28 +0000 (21:31 +0000)]
tests/girwriter: Use the actual expected output of our girwriter
Rico Tzschichholz [Wed, 1 Dec 2021 16:11:42 +0000 (17:11 +0100)]
build: Update git-version-gen to latest upstream
From commit
378351df7e63daca234c581f086b542026e07a27 of
https://git.savannah.gnu.org/cgit/autoconf.git/tree/build-aux/git-version-gen
Alexander Kanavin [Fri, 23 Oct 2015 13:13:54 +0000 (16:13 +0300)]
vapigen.m4: use $PKG_CONFIG_SYSROOT_DIR
This is necessary in cross-compiling environments, where directories
returned by pkg-config should be prefixed with sysroot location.
Rico Tzschichholz [Tue, 30 Nov 2021 12:37:29 +0000 (13:37 +0100)]
glib-2.0: Always use the actual C type for CCode.array_length_type
Rico Tzschichholz [Sat, 8 Jan 2022 18:53:28 +0000 (19:53 +0100)]
Release 0.48.21
Rico Tzschichholz [Wed, 5 Jan 2022 19:45:10 +0000 (20:45 +0100)]
codegen: Clear existing length values when revisiting a slice expression
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1274
Rico Tzschichholz [Wed, 5 Jan 2022 07:25:19 +0000 (08:25 +0100)]
tests: Add "async signal handler" test to increase coverage
Rico Tzschichholz [Mon, 3 Jan 2022 12:59:36 +0000 (13:59 +0100)]
codegen: Cast given default-value of struct with possible member initializer
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1272
Rico Tzschichholz [Mon, 3 Jan 2022 08:07:00 +0000 (09:07 +0100)]
codegen: Allow boxing of non-external SimpleType structs
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1273
Rico Tzschichholz [Tue, 28 Dec 2021 12:18:46 +0000 (13:18 +0100)]
gio-2.0: Add custom MemoryOutputStream.with_*data() wrappers
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1271
Rico Tzschichholz [Mon, 20 Dec 2021 19:40:30 +0000 (20:40 +0100)]
vala: Correctly replace "in" expression in pre-/postconditions of method
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1269
Rico Tzschichholz [Thu, 16 Dec 2021 14:31:47 +0000 (15:31 +0100)]
vala: Non nullable enum types are simple types
Fixes a regression of
5b6345a6386b05aaf3f11cb3572940413eb878a8
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1268
Rico Tzschichholz [Thu, 16 Dec 2021 14:31:47 +0000 (15:31 +0100)]
vala: Allow unsafe assignment of integer to enum while reporting a notice
Rico Tzschichholz [Thu, 2 Dec 2021 13:38:09 +0000 (14:38 +0100)]
Release 0.48.20
Rico Tzschichholz [Mon, 29 Nov 2021 14:51:49 +0000 (15:51 +0100)]
tests: Add missing methods/parameter-ccode-type.vala
In addition to
0e097710e37b671b17ed1da330dd83b9e2340602
Rico Tzschichholz [Mon, 29 Nov 2021 10:28:06 +0000 (11:28 +0100)]
pango: Cherry-pick bindings fixes from 0.56
Rico Tzschichholz [Mon, 29 Nov 2021 10:27:33 +0000 (11:27 +0100)]
gstreamer: Cherry-pick bindings fixes from 0.56
Lorenz Wildberg [Sat, 27 Nov 2021 21:10:40 +0000 (21:10 +0000)]
tests: Rename colliding test case to avoid conflict
Rico Tzschichholz [Sun, 28 Nov 2021 11:45:25 +0000 (12:45 +0100)]
gnome-desktop-3.0: Some parameter fixes
Rico Tzschichholz [Sat, 27 Nov 2021 18:26:35 +0000 (19:26 +0100)]
codegen: Accept CCode.type attribute on parameters
Fixes https://gitlab.gnome.org/GNOME/vala/issues/876
Rico Tzschichholz [Sat, 27 Nov 2021 18:26:35 +0000 (19:26 +0100)]
codegen: Drop inconsistent space for ObjectType parameters
Rico Tzschichholz [Fri, 26 Nov 2021 22:03:37 +0000 (23:03 +0100)]
tests: Rename colliding test cases to avoid conflicts
Rico Tzschichholz [Fri, 26 Nov 2021 14:34:40 +0000 (15:34 +0100)]
vala: Fix signals with generic return
In addition to
36999b5ffd63cc56a8648791b02bf07e7da88077