]>
git.ipfire.org Git - thirdparty/vala.git/log
Rico Tzschichholz [Sun, 14 Mar 2021 11:38:16 +0000 (12:38 +0100)]
vala: Improve error for incompatible expressions in conditional expression
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
Rico Tzschichholz [Fri, 12 Mar 2021 09:15:03 +0000 (10:15 +0100)]
gnutls: Fix some binding errors
Rico Tzschichholz [Sat, 13 Mar 2021 20:45:40 +0000 (21:45 +0100)]
gtk4: Update to 4.1.1+
fe45f283
Rico Tzschichholz [Wed, 10 Mar 2021 17:51:52 +0000 (18:51 +0100)]
libwnck-3.0: Update to 3.36.0
Rico Tzschichholz [Wed, 10 Mar 2021 11:12:06 +0000 (12:12 +0100)]
vala: Replace all type parameter occurances in parameters for signal delegate
Improves
36999b5ffd63cc56a8648791b02bf07e7da88077
Rico Tzschichholz [Wed, 10 Mar 2021 11:12:06 +0000 (12:12 +0100)]
codegen: Drop inner casts before converting between generics and integers
Found by -Wpointer-to-int-cast
Rico Tzschichholz [Tue, 9 Mar 2021 14:52:30 +0000 (15:52 +0100)]
codegen: Don't add generics arguments/parameters to async finish method
Rico Tzschichholz [Tue, 9 Mar 2021 14:52:30 +0000 (15:52 +0100)]
codegen: Don't ever create null-aware free macro for GenericType
Rico Tzschichholz [Tue, 9 Mar 2021 14:52:30 +0000 (15:52 +0100)]
tests: Add "string concat" test for POSIX to increase coverage
Rico Tzschichholz [Tue, 9 Mar 2021 08:51:21 +0000 (09:51 +0100)]
codegen: Fix access to captured generics in async method of interfaces
Fixes https://gitlab.gnome.org/GNOME/vala/issues/537
Rico Tzschichholz [Tue, 9 Mar 2021 06:59:25 +0000 (07:59 +0100)]
codegen: Use the one available source_reference for internal error
This will at least provide some pointer to where things are going wrong.
In addition to
837d593e00d1a3ca8a6f2d13fb1514bed7672965
See https://gitlab.gnome.org/GNOME/vala/issues/436
Rico Tzschichholz [Tue, 9 Mar 2021 06:24:48 +0000 (07:24 +0100)]
codegen: Free intermediate temp-variables of postcondition expression
and not clearing "temp_ref_values" caused invalid references later.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/80
Rico Tzschichholz [Sun, 7 Mar 2021 16:19:01 +0000 (17:19 +0100)]
codegen: Report error for missing type-arguments of HashTable (de)serialization
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1147
Rico Tzschichholz [Sun, 7 Mar 2021 12:42:16 +0000 (13:42 +0100)]
vala: Check (optional) type-arguments of array creation expression
Rico Tzschichholz [Sun, 7 Mar 2021 13:20:43 +0000 (14:20 +0100)]
vala: Check array type of declarations for errornous type-arguments
Rico Tzschichholz [Sun, 7 Mar 2021 12:42:16 +0000 (13:42 +0100)]
vala: Move type-argument/-parameter count check to DataType.check_type_arguments()
Rico Tzschichholz [Sun, 7 Mar 2021 12:42:16 +0000 (13:42 +0100)]
gio-2.0: Add some missing type-arguments
Rico Tzschichholz [Sun, 7 Mar 2021 12:42:16 +0000 (13:42 +0100)]
glib-2.0: Add some missing type-arguments
Rico Tzschichholz [Sun, 7 Mar 2021 12:42:16 +0000 (13:42 +0100)]
vala: Add missing null-check in DataType.get_type_signature()
If an instance struct field can not be resolved to a valid
type-signature then bail.
This fixes criticals like:
g_string_insert_len: assertion 'len == 0 || val != NULL' failed
Rico Tzschichholz [Sat, 6 Mar 2021 13:06:10 +0000 (14:06 +0100)]
gdbus: Don't leak memory of deserialized arguments on error in wrapper method
Found by -fsanitize=address
Rico Tzschichholz [Sat, 6 Mar 2021 11:38:01 +0000 (12:38 +0100)]
gtk4: Update to 4.1.1+
f8f90d85
Rico Tzschichholz [Sat, 6 Mar 2021 08:46:32 +0000 (09:46 +0100)]
vala: Fix ownership inheritance of "unowned var" in foreach statement
Rico Tzschichholz [Fri, 5 Mar 2021 18:32:38 +0000 (19:32 +0100)]
tests: Add more "gir" tests to increase coverage
Rico Tzschichholz [Fri, 5 Mar 2021 18:32:38 +0000 (19:32 +0100)]
testrunner: Include Gio-2.0/gio-2.0 for GIR tests too
Rico Tzschichholz [Fri, 5 Mar 2021 12:47:28 +0000 (13:47 +0100)]
codegen: Inherit GType from base struct of SimpleType structs
GValue functions and marshaller type are inherited from base structs
already.
This avoids invalid C code which referenced an unavailable GType.
Rico Tzschichholz [Thu, 4 Mar 2021 18:12:15 +0000 (19:12 +0100)]
tests: Add more "gir" tests to increase coverage
Rico Tzschichholz [Thu, 4 Mar 2021 18:12:15 +0000 (19:12 +0100)]
Regenerate GIR-based bindings to pick up missing class methods
Rico Tzschichholz [Thu, 4 Mar 2021 18:12:15 +0000 (19:12 +0100)]
girparser: Evaluate "glib:type-struct" twice to pick up reparented structs
Rico Tzschichholz [Tue, 2 Mar 2021 16:55:25 +0000 (17:55 +0100)]
codegen: "_first_array" parameter for params-array is variadic too
Not following this resulted in mismatching signature assumptions between
caller and callee if the callable throws an error.
Rico Tzschichholz [Wed, 3 Mar 2021 16:59:54 +0000 (17:59 +0100)]
tests: Extend "pre-post increment" test to increase coverage
Rico Tzschichholz [Wed, 3 Mar 2021 15:06:34 +0000 (16:06 +0100)]
tests: Add some tests to increase coverage
Rico Tzschichholz [Wed, 3 Mar 2021 16:37:04 +0000 (17:37 +0100)]
vala: Fix build with valac < 0.44
Rico Tzschichholz [Wed, 3 Mar 2021 16:01:41 +0000 (17:01 +0100)]
vala: Report warning if --target-glib=auto was not evaluated successfully
and don't try to process the valid "auto" string any further.
Rico Tzschichholz [Wed, 3 Mar 2021 09:05:00 +0000 (10:05 +0100)]
codegen: More use of get_ccode_type_name()
Rico Tzschichholz [Wed, 3 Mar 2021 09:05:00 +0000 (10:05 +0100)]
Regenerate GIR-based bindings to pick up missing type_cname attributes
Rico Tzschichholz [Wed, 3 Mar 2021 09:05:00 +0000 (10:05 +0100)]
girparser: Reuse populated Node.gtype_struct_for instead of resolving again
This fixes the discovery of non-default type_cname for re-parented symbols.
Rico Tzschichholz [Sat, 13 Mar 2021 20:19:09 +0000 (21:19 +0100)]
Correct Bindings NEWS for 0.50.4
Rico Tzschichholz [Sun, 28 Feb 2021 08:22:05 +0000 (09:22 +0100)]
Release 0.50.4
Rico Tzschichholz [Sat, 27 Feb 2021 11:23:56 +0000 (12:23 +0100)]
tests: Add some "unary expressions" tests to increase coverage
Rico Tzschichholz [Sat, 27 Feb 2021 11:23:56 +0000 (12:23 +0100)]
vala: Report error for invalid inner operand of unary expressions
This fixes criticals like:
vala_unary_expression_is_integer_type: assertion 'type != NULL' failed
Rico Tzschichholz [Sat, 27 Feb 2021 09:34:54 +0000 (10:34 +0100)]
vala: Set proper source_reference for implicit "this" and "result" variables
Rico Tzschichholz [Sat, 27 Feb 2021 09:34:54 +0000 (10:34 +0100)]
tests: Add more "unsupported creation method" tests to increase coverage
Rico Tzschichholz [Fri, 26 Feb 2021 18:19:54 +0000 (19:19 +0100)]
vala: Include "stdlib.h" for Enum.to_string() (POSIX)
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1143
Rico Tzschichholz [Fri, 26 Feb 2021 18:19:54 +0000 (19:19 +0100)]
codegen: Include "string.h" for strcmp() (POSIX)
Rico Tzschichholz [Fri, 26 Feb 2021 14:55:09 +0000 (15:55 +0100)]
vala: Improve context check whether property is writeable on assignments
Rico Tzschichholz [Wed, 24 Feb 2021 08:58:43 +0000 (09:58 +0100)]
codegen: Don't wrongly emit declaration for default-handler of signals
This is done in GTypeModule.generate_interface_declaration()
Rico Tzschichholz [Sun, 21 Feb 2021 18:34:48 +0000 (19:34 +0100)]
tests: Add more "girparser" tests to increase coverage
Rico Tzschichholz [Sun, 21 Feb 2021 09:40:25 +0000 (10:40 +0100)]
vala: Infer needle type for "in" expression on enum
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1138
Rico Tzschichholz [Sat, 20 Feb 2021 19:04:08 +0000 (20:04 +0100)]
tests/girwriter: Increase coverage
Rico Tzschichholz [Sat, 20 Feb 2021 19:04:08 +0000 (20:04 +0100)]
girwriter: Output default handler of signals
Rico Tzschichholz [Fri, 19 Feb 2021 13:22:20 +0000 (14:22 +0100)]
vala: Generics value holding struct pointer requires casting on access
Fixes https://gitlab.gnome.org/GNOME/vala/issues/347
Rico Tzschichholz [Tue, 16 Feb 2021 21:42:00 +0000 (22:42 +0100)]
codegen: Report error for unsupported symbol_reference of MemberInitializer
Rico Tzschichholz [Tue, 16 Feb 2021 09:33:06 +0000 (10:33 +0100)]
vala: Capturing va_list parameters/variables is not allowed
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1136
Rico Tzschichholz [Tue, 16 Feb 2021 09:33:06 +0000 (10:33 +0100)]
codewriter: Don't write trailing ";" after body of WithStatement
Rico Tzschichholz [Sat, 13 Feb 2021 13:47:03 +0000 (14:47 +0100)]
vala: Check type-arguments in base-types/prerequisites of class/interface
Fixes https://gitlab.gnome.org/GNOME/vala/issues/404
Rico Tzschichholz [Sun, 7 Feb 2021 18:04:56 +0000 (19:04 +0100)]
codegen: Strip all nested occurances of CCodeCastExpression
Triggered by
63551acaf0d83fac8b50904c2759c1098fbfaa71
See https://gitlab.gnome.org/GNOME/vala/issues/1134
Rico Tzschichholz [Sun, 7 Feb 2021 10:02:02 +0000 (11:02 +0100)]
libvaladoc: Add wrapper for "agedge" of graphviz
Rico Tzschichholz [Sun, 7 Feb 2021 07:57:39 +0000 (08:57 +0100)]
codegen: Correctly retrieve symbol_reference of nested cast expressions
Regression of
63551acaf0d83fac8b50904c2759c1098fbfaa71
Fixes https://gitlab.gnome.org/GNOME/vala/issues/1134
Rico Tzschichholz [Fri, 5 Feb 2021 15:14:45 +0000 (16:14 +0100)]
gee: Replace Memory.dup() with GLib.malloc() and Memory.copy()
Rico Tzschichholz [Fri, 5 Feb 2021 06:51:34 +0000 (07:51 +0100)]
gstreamer-1.0: Set CCode.type_id of MiniObject to G_TYPE_BOXED
Fixed https://gitlab.gnome.org/GNOME/vala/issues/1133
Rico Tzschichholz [Thu, 4 Feb 2021 14:53:55 +0000 (15:53 +0100)]
testrunner: Add "-Werror=return-stack-address" flag
Rico Tzschichholz [Thu, 4 Feb 2021 09:55:31 +0000 (10:55 +0100)]
tests: Don't leak array if length is -1
Found by -fsanitize=address
Rico Tzschichholz [Thu, 4 Feb 2021 09:55:31 +0000 (10:55 +0100)]
codegen: Chain up to base struct destroy function
Found by -fsanitize=address
Rico Tzschichholz [Wed, 3 Feb 2021 22:16:41 +0000 (23:16 +0100)]
codegen: Don't leak memory moving heap-allocated struct to stack
Found by -fsanitize=address
Rico Tzschichholz [Wed, 3 Feb 2021 12:40:23 +0000 (13:40 +0100)]
codegen: Don't leak GLib.Value when implicitly unboxing it
Found by -fsanitize=address
Rico Tzschichholz [Wed, 3 Feb 2021 12:40:23 +0000 (13:40 +0100)]
vala: Don't allow GLib.Value casting to nullable struct/simple types
Rico Tzschichholz [Wed, 3 Feb 2021 12:40:23 +0000 (13:40 +0100)]
vala: GLib.Value unboxing returns unowned value
Rico Tzschichholz [Wed, 3 Feb 2021 12:40:23 +0000 (13:40 +0100)]
codegen: Use g_boxed_free in free-wrapper for heap-allocated GLib.Value
dup-wrapper is specifically using g_boxed_copy already
Rico Tzschichholz [Tue, 2 Feb 2021 09:34:54 +0000 (10:34 +0100)]
codegen: Don't leak array memory after it was implicitly copied
Found by -fsanitize=address
Rico Tzschichholz [Mon, 1 Feb 2021 16:34:15 +0000 (17:34 +0100)]
codegen: Improve handling of recursive DelegateType
Move dedicated test case into a separate file
Rico Tzschichholz [Mon, 1 Feb 2021 16:34:15 +0000 (17:34 +0100)]
codegen: Make sure types of implicit delegate parameters are declared
Rico Tzschichholz [Mon, 1 Feb 2021 13:54:55 +0000 (14:54 +0100)]
codegen: Use CCodeDeclaratorSuffix to emit array length of constants
Rico Tzschichholz [Mon, 1 Feb 2021 07:18:38 +0000 (08:18 +0100)]
codegen: Also check array type of variable argument for ref parameters
Rico Tzschichholz [Mon, 1 Feb 2021 07:18:38 +0000 (08:18 +0100)]
codegen: Add get_ccode_no_wrapper() and use it
Rico Tzschichholz [Sun, 31 Jan 2021 13:21:19 +0000 (14:21 +0100)]
girparser: Set CCode.type_cname for classes if it doesn't match our default
Rico Tzschichholz [Sun, 31 Jan 2021 12:10:39 +0000 (13:10 +0100)]
tests/girwriter: Add tests for async methods attributed with NoWrapper
Rico Tzschichholz [Sun, 31 Jan 2021 12:04:52 +0000 (13:04 +0100)]
codegen: Don't emit invoker for async methods attributed with NoWrapper
Rico Tzschichholz [Sun, 31 Jan 2021 08:03:58 +0000 (09:03 +0100)]
libxml-2.0: Fix a few binding errors
Rico Tzschichholz [Sun, 31 Jan 2021 08:03:58 +0000 (09:03 +0100)]
fuse: Fix a few binding errors
Rico Tzschichholz [Sat, 30 Jan 2021 20:17:25 +0000 (21:17 +0100)]
codegen: Always use G_TYPE_INSTANCE_GET_CLASS/INTERFACE for external symbols
and get_ccode_type_get_function() for SourceFileType.SOURCE symbols.
Rico Tzschichholz [Sat, 30 Jan 2021 20:17:25 +0000 (21:17 +0100)]
codegen: Handle NoWrapper attribute of async methods on caller side
Rico Tzschichholz [Sat, 30 Jan 2021 20:17:25 +0000 (21:17 +0100)]
codegen: Allow CCode.type_cname for classes and use get_ccode_type_name()
Rico Tzschichholz [Sat, 30 Jan 2021 20:17:25 +0000 (21:17 +0100)]
girparser: Apply "type_get_function" metadata for classes and inferfaces
Rico Tzschichholz [Sat, 30 Jan 2021 20:17:25 +0000 (21:17 +0100)]
codegen: Add CCode.type_get_function and get_ccode_type_get_function()
Allow to overide the macro name, and join get_ccode_class_get_function ()
and get_ccode_interface_get_function().
Rico Tzschichholz [Sat, 30 Jan 2021 14:59:06 +0000 (15:59 +0100)]
gtk+-2.0,javascriptcoregtk-4.0: Wrong usage of CCode.type_cname attribute
Rico Tzschichholz [Sat, 30 Jan 2021 10:44:17 +0000 (11:44 +0100)]
girwriter: Don't emit invoker for methods attributed with NoWrapper
Rico Tzschichholz [Sat, 30 Jan 2021 10:44:17 +0000 (11:44 +0100)]
codegen: Don't emit invoker for methods attributed with NoWrapper
Rico Tzschichholz [Sat, 30 Jan 2021 10:44:17 +0000 (11:44 +0100)]
codegen: Handle NoWrapper attribute of interface methods on caller side
Rico Tzschichholz [Sat, 30 Jan 2021 10:44:17 +0000 (11:44 +0100)]
vala: NoWrapper methods must be declared abstract or virtual
Rico Tzschichholz [Sat, 30 Jan 2021 12:03:44 +0000 (13:03 +0100)]
gio-2.0: Pick up missing invoker for some AppInfo/File.*() methods
Rico Tzschichholz [Sat, 30 Jan 2021 10:44:17 +0000 (11:44 +0100)]
gdk-pixbuf-2.0: Fix Pixbuf.save_to_streamv_async()
Rico Tzschichholz [Sat, 30 Jan 2021 07:41:55 +0000 (08:41 +0100)]
gobject-2.0: Fix a few binding errors
Rico Tzschichholz [Sat, 30 Jan 2021 07:41:55 +0000 (08:41 +0100)]
gdk-3.0,gdk-x11-3.0,gtk+-3.0,gtk4: Fix a few binding errors
Rico Tzschichholz [Thu, 28 Jan 2021 11:12:53 +0000 (12:12 +0100)]
Add further support for params arrays in constructors
In addition to
98ab3da89640b8b8a6c67044b4df1194672774bb
See https://gitlab.gnome.org/GNOME/vala/issues/128
Rico Tzschichholz [Wed, 27 Jan 2021 20:08:09 +0000 (21:08 +0100)]
codegen: Improve support of SimpleType struct constructors
Additionally stop generating broken and superfluous dup/free functions,
and don't create not used GType declarations.
Rico Tzschichholz [Wed, 27 Jan 2021 20:08:09 +0000 (21:08 +0100)]
vala: Don't allow disposable SimpleType structs
Rico Tzschichholz [Wed, 27 Jan 2021 14:34:53 +0000 (15:34 +0100)]
gstreamer-1.0: Fix a few binding errors