]>
git.ipfire.org Git - thirdparty/vala.git/log
Rico Tzschichholz [Tue, 11 Dec 2018 13:08:20 +0000 (14:08 +0100)]
gobject-introspection-1.0: Pick up version attribute fixes
Rico Tzschichholz [Tue, 11 Dec 2018 08:51:51 +0000 (09:51 +0100)]
vapi: Regenerate GIR-based bindings to fix non-standard async methods
See https://gitlab.gnome.org/GNOME/vala/issues/709
Rico Tzschichholz [Mon, 10 Dec 2018 15:07:46 +0000 (16:07 +0100)]
codegen: Handle non-default AsyncResult parameter position
Unfortunately gdbus-codegen puts the AsyncResult parameter after possible
out-parameters therefore there is an "async_result_pos" attribute required
to handle this correctly.
Vala supposely follows the common practice to put the AsyncResult before
out-parameters by default.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/709
Rico Tzschichholz [Sat, 8 Dec 2018 09:41:50 +0000 (10:41 +0100)]
codegen: Always emit constants with initializer-list
generate_constant_declaration() handles both definition and declaration.
This is important when using --use-header where the actual definition
would never be written and we ended up with an "extern const ..." in the
header only.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/81
Rico Tzschichholz [Thu, 6 Dec 2018 21:41:43 +0000 (22:41 +0100)]
codegen: Emit delegate/enum typedefs to type-declaration section
This fixes compilation of circular dependency of delegates with enums,
structs, classes and interfaces.
Resolve interface prerequisites after writing forward declarations to
fix entagled delegate dependencies in them.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/318
Florian Brosch [Wed, 10 Sep 2014 11:07:11 +0000 (13:07 +0200)]
vala: Break possible endless loop in SymbolResolver.get_type_for_struct()
Required to deal with invalid code containing base struct cycles.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/444
Rico Tzschichholz [Wed, 5 Dec 2018 06:57:36 +0000 (07:57 +0100)]
girparser: Skip possible docs in transparent union
See https://gitlab.gnome.org/GNOME/gobject-introspection/merge_requests/75
Rico Tzschichholz [Mon, 3 Dec 2018 08:05:25 +0000 (09:05 +0100)]
girparser: Skip "source-position" elements
See https://gitlab.gnome.org/GNOME/gobject-introspection/merge_requests/75
Vivek Raj [Sat, 1 Dec 2018 16:10:57 +0000 (17:10 +0100)]
vala: Use clearer error message for automatic properties in interfaces
Fixes https://gitlab.gnome.org/GNOME/vala/issues/656
Rico Tzschichholz [Fri, 30 Nov 2018 15:43:42 +0000 (16:43 +0100)]
codegen: Emit initializer for enum-value into wanted declaration space
Fixes https://gitlab.gnome.org/GNOME/vala/issues/167
Timm Bäder [Thu, 29 Oct 2015 21:09:57 +0000 (22:09 +0100)]
codegen: Mark needle parameter of internal array-contains methods as const
This will avoid some -Wdiscarded-qualifiers warnings.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/504
Rico Tzschichholz [Wed, 28 Nov 2018 12:53:29 +0000 (13:53 +0100)]
vala: Don't emit member access of assignments on static properties
Fixes https://gitlab.gnome.org/GNOME/vala/issues/573
Rico Tzschichholz [Tue, 27 Nov 2018 15:11:29 +0000 (16:11 +0100)]
vala: Make check_arguments() more verbose and don't bail on first error
Fixes https://gitlab.gnome.org/GNOME/vala/issues/438
Rico Tzschichholz [Tue, 27 Nov 2018 13:24:03 +0000 (14:24 +0100)]
vala: Type check for errors require an error expression
Fixes https://gitlab.gnome.org/GNOME/vala/issues/362
Rico Tzschichholz [Tue, 27 Nov 2018 13:18:36 +0000 (14:18 +0100)]
tests: Simplify "errors/errors" test a bit
Rico Tzschichholz [Sun, 25 Nov 2018 17:27:32 +0000 (18:27 +0100)]
codegen: Actually create method cast for base interface method as needed
Keep the fallback to base method for now.
This will silence some incompatible pointer type warnings.
Rico Tzschichholz [Sun, 25 Nov 2018 15:26:22 +0000 (16:26 +0100)]
glib-2.0: Cast strcmp to GCompareFunc
This will silence some incompatible pointer type warnings.
Rico Tzschichholz [Sat, 24 Nov 2018 21:43:21 +0000 (22:43 +0100)]
tests: Add default defines test for VALA_0_XX and GLIB_2_XX
Rico Tzschichholz [Thu, 22 Nov 2018 08:21:27 +0000 (09:21 +0100)]
codegen: Don't emit unused temp variable for element access assignments
Regression of
2bcda488725cf28b3c3c358f2c348632bb7ba232
Rico Tzschichholz [Thu, 22 Nov 2018 09:36:47 +0000 (10:36 +0100)]
tests: Extend assignment and array element access tests
Rico Tzschichholz [Tue, 20 Nov 2018 15:38:31 +0000 (16:38 +0100)]
codegen: Make sure to include declarations for delegate typed parameters
So call generate_type_declaration() with all parameter types.
Rico Tzschichholz [Tue, 20 Nov 2018 11:31:52 +0000 (12:31 +0100)]
parser: Use comment which was already retrieved in parse_declaration()
This caused to loose comment of first element of enums and error domains.
Regression of
540aa1492c342f482be6838b97f54437f3b776e4
Alistair Thomas [Mon, 19 Nov 2018 23:01:53 +0000 (23:01 +0000)]
docs: Update build instructions and move them to README.md
Updates the links for building Vala and how to bootstrap the build
Alistair Thomas [Mon, 19 Nov 2018 22:36:09 +0000 (22:36 +0000)]
docs: Use Markdown for README and move to README.md
Rico Tzschichholz [Mon, 19 Nov 2018 17:22:20 +0000 (18:22 +0100)]
ccode: Add void to delegate typedef declarations without parameters
Found with -Werror=strict-prototypes
Rico Tzschichholz [Sun, 18 Nov 2018 19:37:38 +0000 (20:37 +0100)]
girwriter: Write glib-type attributes for Enums/Structs with type_id
Rico Tzschichholz [Sat, 17 Nov 2018 12:51:14 +0000 (13:51 +0100)]
vala: Remove superfluous return_if_fail()
Rico Tzschichholz [Sat, 17 Nov 2018 16:22:36 +0000 (17:22 +0100)]
tests: Add "static fields" to compact class to increase coverage
Rico Tzschichholz [Sat, 17 Nov 2018 15:10:04 +0000 (16:10 +0100)]
tests: Add bug specific "lock test"
https://bugzilla.gnome.org/show_bug.cgi?id=629593
Rico Tzschichholz [Sat, 17 Nov 2018 12:34:07 +0000 (13:34 +0100)]
genieparser: Use dedicated Class.add_constructor/destructor() methods
Corentin Noël [Fri, 16 Nov 2018 13:55:00 +0000 (14:55 +0100)]
glib-2.0: Avoid double-free in GLib.Array if clear_func is set
Rico Tzschichholz [Fri, 16 Nov 2018 13:26:50 +0000 (14:26 +0100)]
glib-2.0: Add missing Array.set_clear_func() binding
Rico Tzschichholz [Fri, 9 Nov 2018 14:21:16 +0000 (15:21 +0100)]
codegen: Transfer ownership of compact class to DestroysInstance method
Otherwise it is impossible to call an instance method of a compact class
which is a destructor.
See https://gitlab.gnome.org/GNOME/vala/issues/645
Rico Tzschichholz [Thu, 8 Nov 2018 18:36:54 +0000 (19:36 +0100)]
vapi: Some random fixes on old bindings
Rico Tzschichholz [Thu, 8 Nov 2018 11:48:20 +0000 (12:48 +0100)]
vala: Copy CCode instance_pos argument from virtual/abstract base methods
https://bugzilla.gnome.org/show_bug.cgi?id=540483
Rico Tzschichholz [Thu, 8 Nov 2018 11:45:24 +0000 (12:45 +0100)]
vala: Add CodeNode.copy_attribute_*() helper methods
Provides an easy way to copy a specific attribute argument from another
code node if the source has it set.
Rico Tzschichholz [Mon, 12 Nov 2018 09:27:45 +0000 (10:27 +0100)]
tests: Avoid use of g_ptr_array_find() which requires glib >= 2.54
Rico Tzschichholz [Thu, 8 Nov 2018 11:10:07 +0000 (12:10 +0100)]
tests: Add GenericArray (GPtrArray) tests
Rico Tzschichholz [Wed, 7 Nov 2018 22:00:18 +0000 (23:00 +0100)]
codegen: Fix method pointer cast if instance isn't at first position
By unconditionally putting the instance at first position the CCode
instance_pos attribute was not accounted for.
Rico Tzschichholz [Wed, 7 Nov 2018 11:15:25 +0000 (12:15 +0100)]
gio-2.0: Result of DBusMessage.get_header() is unowned
Alistair Thomas [Tue, 6 Nov 2018 10:51:39 +0000 (10:51 +0000)]
glib-2.0: Add array length to string.skip
Fixes https://gitlab.gnome.org/GNOME/vala/issues/695
Rico Tzschichholz [Mon, 5 Nov 2018 07:28:08 +0000 (08:28 +0100)]
codegen: Add prototype for *_new() of abstact compact classes
Found with -Werror=missing-prototypes
Rico Tzschichholz [Sun, 4 Nov 2018 21:49:04 +0000 (22:49 +0100)]
codegen: Don't emit *_free() of derived compact classes
Found with -Werror=missing-prototypes
Rico Tzschichholz [Mon, 19 Nov 2018 21:24:34 +0000 (22:24 +0100)]
gobject-2.0: Attribute all symbols with cheader_filename = "glib-object.h"
This is essential to pick up the correct header inclusion while the GLib
namespace of glib-2.0 and gobject-2.0 is merged internally.
Rico Tzschichholz [Wed, 21 Nov 2018 19:20:59 +0000 (20:20 +0100)]
glib-2.0: Add GLib.pointer aka gpointer binding
Rico Tzschichholz [Sun, 4 Nov 2018 19:22:22 +0000 (20:22 +0100)]
codegen: Add prototype for *_register_type() function
Found with -Werror=missing-prototypes
Rico Tzschichholz [Sat, 3 Nov 2018 13:11:51 +0000 (14:11 +0100)]
vala: Fix TokenType.HASH.to_string()
Rico Tzschichholz [Thu, 1 Nov 2018 23:03:45 +0000 (00:03 +0100)]
codegen: Initialize internal temp-variables used as reference parameter
When casting Variant to multi-dimensional arrays the length fields are
used as out-parameters and needs to be initialized. They are not guaranteed
to be all set in _variant_get*() in this case.
Fixes tests with -Werror=maybe-uninitialized
Ali Sabil [Thu, 1 Nov 2018 13:06:52 +0000 (14:06 +0100)]
codegen: Fix regex literal compile flags
The GRegex GRegexCompileFlags were declared as GRegexMatchFlags, leading
to a C compiler warning.
Rico Tzschichholz [Tue, 30 Oct 2018 08:00:01 +0000 (09:00 +0100)]
glib-2.0: Computing length once is enough in string.to_utf8()/splice()
Rico Tzschichholz [Tue, 30 Oct 2018 08:54:56 +0000 (09:54 +0100)]
tests: Add more string method tests
Rico Tzschichholz [Mon, 29 Oct 2018 16:17:36 +0000 (17:17 +0100)]
tests: Make "/errors/errors" test fatal
Rico Tzschichholz [Sun, 28 Oct 2018 08:12:38 +0000 (09:12 +0100)]
manual: Update from wiki.gnome.org
Rico Tzschichholz [Sun, 9 Sep 2018 16:12:03 +0000 (18:12 +0200)]
vapigen: Warn if the library argument doesn't match any package attribute
GIR files can contain a package key referring to the pkg-config name which
is the recommended and even required naming of a vapi.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/669
Rico Tzschichholz [Mon, 13 Aug 2018 14:48:46 +0000 (16:48 +0200)]
gobject-2.0,gtk+-*.0: Fix some GLib.Value out/ref parameters
This is required due to GLib.Value being bound as struct.
Rico Tzschichholz [Wed, 24 Oct 2018 12:05:09 +0000 (14:05 +0200)]
vala: Implement check() for StatementList
Rico Tzschichholz [Tue, 11 Oct 2016 09:05:23 +0000 (11:05 +0200)]
codegen: Improve ccode for fixed-length array parameters
https://gitlab.gnome.org/GNOME/vala/issues/163
Rico Tzschichholz [Tue, 23 Oct 2018 13:57:29 +0000 (15:57 +0200)]
vala: DataType for GLib.Error should be should resolved as ErrorType
Rico Tzschichholz [Tue, 23 Oct 2018 11:40:54 +0000 (13:40 +0200)]
vala: Fix several AST construction/parenting issues
Rico Tzschichholz [Fri, 26 Oct 2018 11:41:01 +0000 (13:41 +0200)]
tests: Add "captured unassigned local variable" test
Rico Tzschichholz [Fri, 26 Oct 2018 07:12:21 +0000 (09:12 +0200)]
tests: Add "assigned local variables" tests
Rico Tzschichholz [Mon, 5 Feb 2018 10:08:25 +0000 (11:08 +0100)]
tests: Add invalid "control-flow" tests to increase coverage
Rico Tzschichholz [Thu, 25 Oct 2018 11:26:46 +0000 (13:26 +0200)]
tests: Add implicit conversion tests for GLib.Variant
Luca Bruno [Tue, 3 Jan 2012 12:03:53 +0000 (13:03 +0100)]
vala: Fix and add more to_string() methods to expressions
Luca Bruno [Thu, 29 Dec 2011 11:39:15 +0000 (12:39 +0100)]
vala: Add missing replace_expression() implementations
Rico Tzschichholz [Tue, 23 Oct 2018 13:05:30 +0000 (15:05 +0200)]
vala: Add some missing type copying
Rico Tzschichholz [Tue, 23 Oct 2018 11:46:34 +0000 (13:46 +0200)]
vala: Add source_reference to local variable of catch-clause
Luca Bruno [Fri, 5 Aug 2011 15:22:18 +0000 (17:22 +0200)]
vala: Always analyze nodes after they are inserted into the AST
Rico Tzschichholz [Fri, 19 Oct 2018 15:21:39 +0000 (17:21 +0200)]
girwriter: Fix ctype of out/ref and array parameters
Rico Tzschichholz [Fri, 19 Oct 2018 13:58:11 +0000 (15:58 +0200)]
tests: Add "method override with compatible delegate parameter" test
Rico Tzschichholz [Tue, 16 Oct 2018 19:19:45 +0000 (21:19 +0200)]
test: Add some invalid "non-null" tests
Rico Tzschichholz [Tue, 9 Oct 2018 06:28:33 +0000 (08:28 +0200)]
ccode: Fix typo and actually check "end_decls"
Note both begin_decls and end_decls must be either not null or null.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/672
Rico Tzschichholz [Mon, 8 Oct 2018 19:03:50 +0000 (21:03 +0200)]
codegen: Initialize internal temp-variables used as reference parameter
Variables for delegate-targets and array-lengths passed as reference in
method calls should be initialized to fix "make check" with -O3.
Rico Tzschichholz [Thu, 4 Oct 2018 12:02:18 +0000 (14:02 +0200)]
codegen: Replace invalid array-length assert with internal error
While the test-suite triggers this assert with an invalid test an explicit
crash is not wanted.
Rico Tzschichholz [Mon, 24 Sep 2018 09:13:13 +0000 (11:13 +0200)]
Release 0.36.16
Rico Tzschichholz [Thu, 20 Sep 2018 13:43:06 +0000 (15:43 +0200)]
vapi: Update GIDL-based bindings to fix unsupported type-arguments
Rico Tzschichholz [Sat, 22 Sep 2018 12:49:33 +0000 (14:49 +0200)]
codewriter: Prepend "yield" if is_yield_expression is set on MethodCall/ObjectCreationExpression
Alistair Thomas [Mon, 2 Jul 2018 23:29:23 +0000 (00:29 +0100)]
glib-2.0: Set DateTime.now () to use local time zone as the default
Rico Tzschichholz [Wed, 8 Aug 2018 14:36:38 +0000 (16:36 +0200)]
vala: Check if ArrayType supports its given element-type in analyzer pass
Rico Tzschichholz [Thu, 20 Sep 2018 10:56:38 +0000 (12:56 +0200)]
codegen: Fix typo in is_pure_ccode_expression()
Note that this method is not used anymore and should likely be dropped.
Introduced with
e086fada22eb7221cdbe34d7d4ac41445a50130a
Fixes https://gitlab.gnome.org/GNOME/vala/issues/673
Rico Tzschichholz [Thu, 20 Sep 2018 08:57:43 +0000 (10:57 +0200)]
g-i: Fix use after free in scanner
Fixes https://gitlab.gnome.org/GNOME/vala/issues/674
Rico Tzschichholz [Wed, 19 Sep 2018 10:39:23 +0000 (12:39 +0200)]
x11: Add binding for XCreateSimpleWindow
Rico Tzschichholz [Wed, 19 Sep 2018 10:28:47 +0000 (12:28 +0200)]
libxml-2.0: Add missing context parameter in OutputWriteCallback
Rico Tzschichholz [Mon, 17 Sep 2018 15:01:12 +0000 (17:01 +0200)]
gstreamer: Cherry-pick some fixes from 0.40
Rico Tzschichholz [Mon, 17 Sep 2018 14:55:46 +0000 (16:55 +0200)]
gtk+-3.0: Update to 3.24.0
Rico Tzschichholz [Mon, 17 Sep 2018 14:20:46 +0000 (16:20 +0200)]
pango: Fix ownership of LayoutIter.get_line()
Rico Tzschichholz [Sat, 18 Aug 2018 08:59:47 +0000 (10:59 +0200)]
manual: Update from wiki.gnome.org
Rico Tzschichholz [Wed, 8 Aug 2018 15:52:02 +0000 (17:52 +0200)]
vapi: Regenerate GIR-based bindings to fix unsupported type-arguments
Rico Tzschichholz [Thu, 9 Aug 2018 07:54:34 +0000 (09:54 +0200)]
girparser: Actually resolve type-arguments to be able to box them if needed
Rico Tzschichholz [Mon, 20 Aug 2018 13:50:13 +0000 (15:50 +0200)]
gtk+-3.0: Update to 3.23.2+
6b6e53fd
Rico Tzschichholz [Sun, 12 Aug 2018 13:31:38 +0000 (15:31 +0200)]
glib-2.0: Add missing return of Queue.remove*() and add HashTable.foreach_steal()
Rico Tzschichholz [Fri, 27 Jul 2018 14:25:44 +0000 (16:25 +0200)]
glib-2.0: Add Array.remove*() wrapper to avoid leaking generic elements
Rico Tzschichholz [Thu, 26 Jul 2018 08:18:32 +0000 (10:18 +0200)]
glib-2.0: Variant.byte() takes an uint8 argument
Rico Tzschichholz [Fri, 17 Aug 2018 12:19:06 +0000 (14:19 +0200)]
codegen: Call ref_sink on Object.new_valist/new_with_properties if needed
Alistair Thomas [Mon, 25 Jun 2018 17:57:08 +0000 (18:57 +0100)]
vala: Allow read-only properties
See https://gitlab.gnome.org/GNOME/vala/merge_requests/10
Carlos Garnacho [Tue, 31 Jul 2018 22:29:27 +0000 (00:29 +0200)]
codegen: Free errors after returning them on the GDBusMethodInvocation
Those are being leaked otherwise.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/657
Rico Tzschichholz [Thu, 26 Jul 2018 09:02:19 +0000 (11:02 +0200)]
codegen: Add source_reference to unsupported floating reference error
Rico Tzschichholz [Mon, 16 Jul 2018 13:02:06 +0000 (15:02 +0200)]
Release 0.36.15
Rico Tzschichholz [Mon, 16 Jul 2018 11:31:55 +0000 (13:31 +0200)]
manual: Update from wiki.gnome.org
Rico Tzschichholz [Mon, 16 Jul 2018 12:37:39 +0000 (14:37 +0200)]
gstreamer-rtsp-server-1.0: Update from 1.12+ git master
Fixes https://gitlab.gnome.org/GNOME/vala/issues/653