]>
git.ipfire.org Git - thirdparty/vala.git/log
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
Rico Tzschichholz [Wed, 31 Mar 2021 13:03:57 +0000 (15:03 +0200)]
gtk+-3.0: Fix ModuleInitFunc binding
Rico Tzschichholz [Wed, 31 Mar 2021 13:03:57 +0000 (15:03 +0200)]
rest-0.7: Fix OAuthProxyAuthCallback binding
Rico Tzschichholz [Sun, 21 Mar 2021 09:46:16 +0000 (10:46 +0100)]
parser: Stricter mode for chained member initializer with --keep-going
Regression of
86bc23f2d7295ae3b2f5f79449d2c5a4a7a93a58
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1158
Rico Tzschichholz [Sat, 20 Mar 2021 21:52:57 +0000 (22:52 +0100)]
vala: Mark tranformed static member-access as qualified
Regression of
1084348f3a6d1113dfc09b3bb5ca6b94a0d812e9
See https://gitlab.gnome.org/GNOME/vala/issues/270
Rico Tzschichholz [Sat, 20 Mar 2021 15:19:35 +0000 (16:19 +0100)]
libvaladoc/girimporter: parse_constant() use "c:identifier" attribute first
Rico Tzschichholz [Sat, 20 Mar 2021 15:19:35 +0000 (16:19 +0100)]
libvaladoc/girimporter: Don't guess length of xml header, iterate forward to <repository>
If e.g. the xml header is missing, it resulted in errors like:
error: expected start element of `repository'
error: unsupported GIR version (null) (supported: 1.2)
Rico Tzschichholz [Fri, 19 Mar 2021 15:00:49 +0000 (16:00 +0100)]
girparser: Don't guess length of xml header, iterate forward to <repository>
If e.g. the xml header is missing, it resulted in errors like:
error: expected start element of `repository'
error: unsupported GIR version (null) (supported: 1.2)
Akarin [Sat, 13 Mar 2021 04:41:40 +0000 (12:41 +0800)]
gsl: Add BLAS module
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1149
Rico Tzschichholz [Wed, 17 Mar 2021 14:59:08 +0000 (15:59 +0100)]
Release 0.52.0
Rico Tzschichholz [Tue, 16 Mar 2021 17:09:51 +0000 (18:09 +0100)]
vala: Check for unused attributes unconditionally
Rico Tzschichholz [Tue, 16 Mar 2021 16:10:52 +0000 (17:10 +0100)]
vapi: Fix a couple of attribute typos
Rico Tzschichholz [Tue, 16 Mar 2021 14:34:02 +0000 (15:34 +0100)]
gio-2.0: Add some missing NoWrapper and CCode.has_typedef attributes
Rico Tzschichholz [Tue, 16 Mar 2021 14:34:02 +0000 (15:34 +0100)]
girparser: Add support for NoWrapper metadata for methods
Rico Tzschichholz [Tue, 16 Mar 2021 11:41:24 +0000 (12:41 +0100)]
codegen: Include "glib.h" for deprecated symbols (GOBJECT)
It is required for G_GNUC_DEPRECATED in declarations of
enums, delegates, methods, property accessors and structs.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1155
Rico Tzschichholz [Mon, 15 Mar 2021 15:02:29 +0000 (16:02 +0100)]
gtk4-unix-print: Switch to gir
Use a temporary symlink to Gtk-4.0.gir which includes the required
symbol defintions.
Rico Tzschichholz [Mon, 15 Mar 2021 15:02:29 +0000 (16:02 +0100)]
girparser: Handle empty "<type/>" element and report an error
Rico Tzschichholz [Mon, 15 Mar 2021 15:02:29 +0000 (16:02 +0100)]
gstreamer: Update from 1.19.0+ git master
Rico Tzschichholz [Mon, 15 Mar 2021 15:02:29 +0000 (16:02 +0100)]
gtk4: Update to 4.1.2
Rico Tzschichholz [Mon, 15 Mar 2021 15:02:29 +0000 (16:02 +0100)]
webkit2gtk-4.0: Update to 2.31.91
Rico Tzschichholz [Thu, 4 Feb 2021 13:19:57 +0000 (14:19 +0100)]
build: Add --enable-test-asan configure option
List XFAIL tests if address sanatizer is enabled
Rico Tzschichholz [Sun, 14 Mar 2021 12:16:58 +0000 (13:16 +0100)]
linux: Provide Input.Event.input_event_sec/input_event_usec fields
Mark Input.Event.time as deprecated
See https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit?id=
152194fe9c3f
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1152
Rico Tzschichholz [Sun, 14 Mar 2021 11:38:16 +0000 (12:38 +0100)]
vala: Improve error for incompatible expressions in conditional expression
Rico Tzschichholz [Sat, 13 Mar 2021 12:58:34 +0000 (13:58 +0100)]
gsl: Fix more binding errors
Rico Tzschichholz [Sun, 14 Mar 2021 07:26:42 +0000 (08:26 +0100)]
girparser: Allow overriding of "Compact" attribute for classes
Rico Tzschichholz [Sun, 14 Mar 2021 07:06:22 +0000 (08:06 +0100)]
gtk4: Add Gtk.INVALID_LIST_POSITION
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1151
Rico Tzschichholz [Fri, 12 Mar 2021 09:15:03 +0000 (10:15 +0100)]
gsl: Fix some binding errors