]>
git.ipfire.org Git - thirdparty/vala.git/log
Rico Tzschichholz [Wed, 26 May 2021 16:39:20 +0000 (18:39 +0200)]
codegen: Implementing GLib.Source.prepare/check is optional since 2.36
Rico Tzschichholz [Sun, 6 Jun 2021 16:11:02 +0000 (18:11 +0200)]
codegen: Allow null to initialize non-null struct inside initializer list
Fixes https://gitlab.gnome.org/GNOME/vala/issues/594
Rico Tzschichholz [Fri, 4 Jun 2021 09:36:51 +0000 (11:36 +0200)]
Sync NEWS from 0.52
Rico Tzschichholz [Wed, 26 May 2021 16:21:31 +0000 (18:21 +0200)]
glib-2.0: Add missing has_typedef attributes on SourceFuncs delegates
Rico Tzschichholz [Wed, 26 May 2021 15:21:52 +0000 (17:21 +0200)]
gtk+-3.0: Update to 3.24.29+
f9fe28ce
Rico Tzschichholz [Wed, 26 May 2021 15:20:19 +0000 (17:20 +0200)]
gtk4: Update to 4.3.0+
24f0ae1d
Rico Tzschichholz [Wed, 26 May 2021 15:17:03 +0000 (17:17 +0200)]
pango: Mark language parameter of AttrIterator.get_font() as out
Rico Tzschichholz [Wed, 26 May 2021 15:05:31 +0000 (17:05 +0200)]
webkit2gtk-4.0: Update to 2.33.1
Rico Tzschichholz [Wed, 26 May 2021 15:04:39 +0000 (17:04 +0200)]
gstreamer: Update from 1.19.0+ git master
Rico Tzschichholz [Wed, 26 May 2021 07:02:52 +0000 (09:02 +0200)]
vala: Parameter following params-array parameter is not allowed
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1183
Ole André Vadla Ravnås [Sat, 22 May 2021 21:37:28 +0000 (23:37 +0200)]
codegen: Fix support for public fields on GLib.Source subclasses
Rico Tzschichholz [Sat, 22 May 2021 21:37:28 +0000 (23:37 +0200)]
codegen: Factor out compact_class_has_instance_struct_member()
Ole André Vadla Ravnås [Thu, 20 May 2021 18:03:28 +0000 (20:03 +0200)]
gio-2.0: Improve DatagramBased.create_source() binding
Rico Tzschichholz [Thu, 20 May 2021 19:24:38 +0000 (21:24 +0200)]
codegen/vala: Improve check for GLib.Source derived classes
Princeton Ferro [Sun, 9 May 2021 20:00:11 +0000 (16:00 -0400)]
codegen: Introduce VALA_EXPORT for public symbols to improve portability
Use it as replacement for "extern" and attribute every public symbol.
We want to ensure that public symbols are exported, which isn't the
default when generating a shared library in MSVC, for example.
Princeton Ferro [Sun, 9 May 2021 19:55:37 +0000 (15:55 -0400)]
ccode: Allow appending `#elif`, `#else` cases to CCodeIfSection
Rico Tzschichholz [Thu, 20 May 2021 09:00:37 +0000 (11:00 +0200)]
ccode: Allow to add defines in a special section
Rico Tzschichholz [Wed, 12 May 2021 13:36:33 +0000 (15:36 +0200)]
build: Add --enable-test-ubsan configure option and "test-ubsan" make target
Rico Tzschichholz [Mon, 17 May 2021 16:56:12 +0000 (18:56 +0200)]
tests: Add "no-reply" DBus test to increase coverage
Ole André Vadla Ravnås [Fri, 7 May 2021 12:14:00 +0000 (14:14 +0200)]
codegen: Skip GDBus reply handling when async callback is NULL
To optimize `proxy.method.begin ()` to be a simple fire and forget all
the way down to the protocol level.
Rico Tzschichholz [Sun, 9 May 2021 19:28:25 +0000 (21:28 +0200)]
codegen: Mark entry point method implementation "_vala_main" as static
Thanks to Al Thomas
Alistair Thomas [Sat, 8 May 2021 11:43:43 +0000 (12:43 +0100)]
doc: Update man page to include more information on profiles
Rico Tzschichholz [Fri, 7 May 2021 11:46:28 +0000 (13:46 +0200)]
codegen: Don't add errornous cast for unknown type_symbol
This causes invalid C code for reference transfer of GenericType.
Regression of
7ae2f115a702439bd94bf09867b38019f39d010f
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1180
Rico Tzschichholz [Tue, 2 Mar 2021 16:55:25 +0000 (17:55 +0100)]
Add support for variadic delegates
There can't be a generated wrapper to mitigate possible differences,
therefore the signatures must perfectly match and an explicit cast is
required.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/160
Rico Tzschichholz [Tue, 4 May 2021 12:46:10 +0000 (14:46 +0200)]
gstreamer-rtp-1.0: Move some static functions to matching parent symbols
Rico Tzschichholz [Tue, 4 May 2021 12:46:10 +0000 (14:46 +0200)]
gstreamer-rtp-1.0: Fix some bindings errors
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1177
Rico Tzschichholz [Tue, 4 May 2021 12:46:10 +0000 (14:46 +0200)]
gstreamer-rtp-1.0: Fix typo in re-parenting for RTCP symbols
Errornous introduction of Gst.RTPC instead of Gst.RTCP
Rico Tzschichholz [Tue, 4 May 2021 12:46:10 +0000 (14:46 +0200)]
vapi: Update GIR-based bindings
Rico Tzschichholz [Tue, 4 May 2021 07:21:10 +0000 (09:21 +0200)]
build: Add "test-asan" make target for convenience
Rico Tzschichholz [Tue, 4 May 2021 07:21:10 +0000 (09:21 +0200)]
codegen: More use of get_this_{class|interface}_cexpression()
Rico Tzschichholz [Tue, 4 May 2021 07:21:10 +0000 (09:21 +0200)]
codegen: Always use G_TYPE_INSTANCE_GET_CLASS/INTERFACE for external symbols (2)
and get_ccode_type_get_function() for SourceFileType.SOURCE symbols.
Rico Tzschichholz [Tue, 4 May 2021 07:21:10 +0000 (09:21 +0200)]
codgen: Generalize CCodeBaseModule.get_this_interface_cexpression()
Rico Tzschichholz [Mon, 3 May 2021 19:12:38 +0000 (21:12 +0200)]
codegen: Add CCodeBaseModule.get_this_class_cexpression() and use where possible
Rico Tzschichholz [Mon, 3 May 2021 19:12:38 +0000 (21:12 +0200)]
codegen: Replace wrongly hard coded usage of G_OBJECT_GET_CLASS
This is used by plain GTypeInstance classes as well.
Rico Tzschichholz [Mon, 3 May 2021 19:12:38 +0000 (21:12 +0200)]
codegen: Drop unreachable code handling (Un)LockStatements
Rico Tzschichholz [Mon, 3 May 2021 19:12:38 +0000 (21:12 +0200)]
tests: Refactor "fields" test to increase coverage
Rico Tzschichholz [Mon, 3 May 2021 07:34:13 +0000 (09:34 +0200)]
tests: Add "ThreadPool" test to increase coverage
Corentin Noël [Thu, 15 Oct 2020 08:35:25 +0000 (10:35 +0200)]
vala: Add foreach statement support for GLib.GenericArray
It is now possible to use foreach with a GLib.GenericArray type
Rico Tzschichholz [Mon, 3 May 2021 07:01:04 +0000 (09:01 +0200)]
codegen: GArray, GByteArray and GPtrArray are reference counted
Rico Tzschichholz [Sun, 2 May 2021 07:11:39 +0000 (09:11 +0200)]
Sync NEWS from 0.52
Rico Tzschichholz [Wed, 28 Apr 2021 19:33:10 +0000 (21:33 +0200)]
tests: Add "properties in structs" test to increase coverage
Rico Tzschichholz [Wed, 28 Apr 2021 19:33:10 +0000 (21:33 +0200)]
tests: Extend "array field intializer" test to increase coverage
Rico Tzschichholz [Wed, 28 Apr 2021 19:33:10 +0000 (21:33 +0200)]
tests: Add "generic array" test to increase coverage
Rico Tzschichholz [Wed, 28 Apr 2021 19:33:10 +0000 (21:33 +0200)]
tests: Add "delete" test to increase coverage
Rico Tzschichholz [Tue, 27 Apr 2021 08:24:55 +0000 (10:24 +0200)]
codegen: Don't use G_GNUC_INTERNAL on implicit type specific fields
The actual field was never handled that way, so don't apply it at all
when --hide-internal is passed.
Introduced by
970f58989a2863faca11e30fdbcf4da1273a6acd which claimed to
apply it to methods only.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1178
Rico Tzschichholz [Sat, 24 Apr 2021 07:11:27 +0000 (09:11 +0200)]
vala: Report a warning for unhandled errors in destructors
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1176
Rico Tzschichholz [Sat, 24 Apr 2021 07:11:27 +0000 (09:11 +0200)]
codegen: Add missing "_return" label and "_inner_error*_" declaration in dtors
Rico Tzschichholz [Tue, 20 Apr 2021 12:05:55 +0000 (14:05 +0200)]
vala: length-type of arrays must not be nullable (2)
Rico Tzschichholz [Wed, 7 Apr 2021 16:14:16 +0000 (18:14 +0200)]
glib-2.0: Wrap TimeZone.identifier() constuctor for proper error support
This allows to handle possible null returned by this constructor.
Rico Tzschichholz [Wed, 7 Apr 2021 16:14:16 +0000 (18:14 +0200)]
codegen: Emit external creation methods in bindings
These must be chained up to an existing constructor of the parent symbol
Rico Tzschichholz [Mon, 19 Apr 2021 17:15:17 +0000 (19:15 +0200)]
tests: Add more "DBus" tests to increase coverage
Rico Tzschichholz [Sun, 18 Apr 2021 20:33:26 +0000 (22:33 +0200)]
tests: Add "generics reference transfer" test to increase coverage
Rico Tzschichholz [Sun, 18 Apr 2021 19:02:21 +0000 (21:02 +0200)]
tests: Extend "finally block execution" test to increase coverage
In addition to
9f21d0b182edad861f93a91674787b8b3b4fc2c5
See https://bugzilla.gnome.org/show_bug.cgi?id=579101
Rico Tzschichholz [Sun, 18 Apr 2021 19:02:21 +0000 (21:02 +0200)]
codegen: More use of get_variable_cexpression()
Rico Tzschichholz [Sun, 18 Apr 2021 19:02:21 +0000 (21:02 +0200)]
codegen: Use if-clause for is_in_destructor() condition to be more clear
Rico Tzschichholz [Sun, 18 Apr 2021 19:02:21 +0000 (21:02 +0200)]
codegen: Unify handling of GenericType arguments/parameters
Rico Tzschichholz [Sun, 18 Apr 2021 19:02:21 +0000 (21:02 +0200)]
Make TypeParameter a TypeSymbol to resolve functions with attributes
Rico Tzschichholz [Sun, 18 Apr 2021 19:02:21 +0000 (21:02 +0200)]
codegen: Add get_generic_type_expression() and handle GenericType earlier
This unifies the code for GenericType in get_type_id_expression(),
get_dup_func_expression() and get_destroy_func_expression().
Rico Tzschichholz [Sun, 18 Apr 2021 19:02:21 +0000 (21:02 +0200)]
codegen: Fix access to captured generics in async method of interfaces (2)
See https://gitlab.gnome.org/GNOME/vala/issues/537
Rico Tzschichholz [Sun, 18 Apr 2021 19:02:21 +0000 (21:02 +0200)]
codegen: Apply gconstpointer to gpointer cast to GenericType only
Rico Tzschichholz [Sun, 18 Apr 2021 19:02:21 +0000 (21:02 +0200)]
vala: Properly check GLib.Object naming convention for properties
Rico Tzschichholz [Fri, 16 Apr 2021 14:42:54 +0000 (16:42 +0200)]
codegen: Make sure to include <sys/types.h> for ssize_t (POSIX)
Fixes
636d63af21bba64df8b5e67c8290126c8fcd95cf with musl
Rico Tzschichholz [Thu, 15 Apr 2021 14:49:14 +0000 (16:49 +0200)]
Support explicit nullable var-type declarations
var? foo = "foo";
unowned var? bar = "bar";
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1146
Rico Tzschichholz [Thu, 15 Apr 2021 14:49:14 +0000 (16:49 +0200)]
vapi: Update GIR-based bindings
Rico Tzschichholz [Thu, 15 Apr 2021 14:49:14 +0000 (16:49 +0200)]
vala: length-type of arrays must not be nullable
Rico Tzschichholz [Thu, 15 Apr 2021 14:49:14 +0000 (16:49 +0200)]
parser: Include INTERR token in source_reference of parsed types
Rico Tzschichholz [Thu, 15 Apr 2021 14:49:14 +0000 (16:49 +0200)]
codegen: Use ssize_t for length variables in common array helper functions
A signed integer is required, while -1 is allowed as length for arrays
Rico Tzschichholz [Thu, 15 Apr 2021 14:49:14 +0000 (16:49 +0200)]
codegen: Use ArrayType.length_type in type specific wrappers
Rico Tzschichholz [Thu, 15 Apr 2021 14:49:14 +0000 (16:49 +0200)]
vapi: Remove gedit-2.20 bindings
The bindings are obsolete and unsupported
Rico Tzschichholz [Thu, 15 Apr 2021 14:49:14 +0000 (16:49 +0200)]
vapi: Remove webkit-1.0 bindings
The bindings are obsolete and unsupported
Rico Tzschichholz [Thu, 15 Apr 2021 14:49:14 +0000 (16:49 +0200)]
parser: Allow empty member-initializer and accept trailing comma
Rico Tzschichholz [Thu, 15 Apr 2021 14:49:14 +0000 (16:49 +0200)]
parser: Minor semantic checks to improve error messages
Rico Tzschichholz [Thu, 15 Apr 2021 14:49:14 +0000 (16:49 +0200)]
vala: Refactor UnresolvedSymbol/Type constructors
Rico Tzschichholz [Thu, 15 Apr 2021 14:49:14 +0000 (16:49 +0200)]
vala: Improve semantic check of simple type structs
Rico Tzschichholz [Thu, 15 Apr 2021 14:49:14 +0000 (16:49 +0200)]
vala: Add Profile.LIBC as synonym for POSIX and accept "libc" profile
Rico Tzschichholz [Thu, 15 Apr 2021 14:49:14 +0000 (16:49 +0200)]
Bump version suffix to 0.54
Rico Tzschichholz [Mon, 12 Apr 2021 11:04:09 +0000 (13:04 +0200)]
Release 0.52.2
Nahuel Gomez Castro [Mon, 12 Apr 2021 10:32:12 +0000 (12:32 +0200)]
glib-2.0: Add simple_generics attribute to GenericArray.find_custom()
Rico Tzschichholz [Mon, 12 Apr 2021 07:21:48 +0000 (09:21 +0200)]
codegen: Don't free unowned heap allocated struct
Regression of
63551acaf0d83fac8b50904c2759c1098fbfaa71
Rico Tzschichholz [Sun, 11 Apr 2021 18:45:59 +0000 (20:45 +0200)]
tests: Extend "GArray" tests to increase coverage
Rico Tzschichholz [Sun, 11 Apr 2021 18:45:59 +0000 (20:45 +0200)]
codegen: Don't free temp-var for element-access to array with boxed structs (2)
See https://gitlab.gnome.org/GNOME/vala/issues/1174
Rico Tzschichholz [Sun, 11 Apr 2021 16:05:08 +0000 (18:05 +0200)]
codegen: Don't free temp-var for element-access to array with boxed structs
Check the symbol_reference of inner element-access as needed.
Regression of
63551acaf0d83fac8b50904c2759c1098fbfaa71
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1174
Rico Tzschichholz [Thu, 8 Apr 2021 08:36:10 +0000 (10:36 +0200)]
Release 0.52.1
Rico Tzschichholz [Thu, 8 Apr 2021 07:22:13 +0000 (09:22 +0200)]
tests: Extend "this chainup in compact class" test
Rico Tzschichholz [Wed, 7 Apr 2021 16:14:16 +0000 (18:14 +0200)]
codegen: Don't call *_instance_init() in compact class chainup
Found by -fsanitize=address
Rico Tzschichholz [Tue, 6 Apr 2021 19:40:58 +0000 (21:40 +0200)]
libusb: Fix some bindings errors
Rico Tzschichholz [Tue, 6 Apr 2021 19:40:58 +0000 (21:40 +0200)]
libusb-1.0: Fix some bindings errors
Rico Tzschichholz [Tue, 6 Apr 2021 19:40:58 +0000 (21:40 +0200)]
x11: Fix some bindings errors
Rico Tzschichholz [Tue, 6 Apr 2021 19:40:58 +0000 (21:40 +0200)]
zlib: Fix some bindings errors
Rico Tzschichholz [Tue, 6 Apr 2021 19:40:58 +0000 (21:40 +0200)]
pixman-1: Fix some bindings errors
Rico Tzschichholz [Tue, 6 Apr 2021 11:00:16 +0000 (13:00 +0200)]
codegen: Don't override valid target/destroy of previous lambda argument
This does not enable proper support for delegates sharing a data argument,
but allows this special case.
See https://gitlab.gnome.org/GNOME/vala/issues/59
Rico Tzschichholz [Tue, 6 Apr 2021 11:00:16 +0000 (13:00 +0200)]
codegen: Always use CCodeConstant for NULL
Rico Tzschichholz [Tue, 6 Apr 2021 11:00:16 +0000 (13:00 +0200)]
codegen: Fix default value of get_ccode_destroy_notify_pos() and make use of it
Rico Tzschichholz [Mon, 5 Apr 2021 17:06:40 +0000 (19:06 +0200)]
javascriptcoregtk-4.0,webkit2gtk-web-extension-4.0: Fix some binding errors
Rico Tzschichholz [Mon, 5 Apr 2021 17:06:40 +0000 (19:06 +0200)]
girwriter: Don't use instance-parameter inside callback (2)
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1167
Rico Tzschichholz [Thu, 1 Apr 2021 13:33:43 +0000 (15:33 +0200)]
girwriter: Don't use instance-parameter inside callback
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1167
Rico Tzschichholz [Thu, 1 Apr 2021 13:33:43 +0000 (15:33 +0200)]
tests/girwriter: Add tests for implicit parameters in virtual-method/callback
Rico Tzschichholz [Thu, 1 Apr 2021 13:33:43 +0000 (15:33 +0200)]
codegen: Improve handling of ellipsis parameter in get_ccode_name()
Rico Tzschichholz [Wed, 31 Mar 2021 13:03:57 +0000 (15:03 +0200)]
girwriter: namespace expects "c:symbol-prefixes" attribute
In addition to
ef9c592dac6ee3a6db39e924de423e23e5f4a4ef
See https://gitlab.gnome.org/GNOME/vala/issues/1038
Rico Tzschichholz [Wed, 31 Mar 2021 13:03:57 +0000 (15:03 +0200)]
gio-2.0: Fix TlsPassword.get_value() binding