]>
git.ipfire.org Git - thirdparty/vala.git/log
Rico Tzschichholz [Tue, 6 Feb 2018 16:52:55 +0000 (17:52 +0100)]
codegen: Fix GDestroyNotify of delegate parameters in delegate declaration
delegate void Func (owned Func func);
incompatible pointer type: expected ‘void (**)(void *)’ but argument is
of type ‘GDestroyNotify {aka void (*)(void *)}’
https://bugzilla.gnome.org/show_bug.cgi?id=639059
Rico Tzschichholz [Tue, 6 Feb 2018 08:01:12 +0000 (09:01 +0100)]
tests: Add various regression "codegen" tests to increase coverage
Rico Tzschichholz [Mon, 5 Feb 2018 17:14:21 +0000 (18:14 +0100)]
tests: Add "destructors" test to increase coverage
Rico Tzschichholz [Wed, 31 Jan 2018 12:15:16 +0000 (13:15 +0100)]
tests: Additionally add $topbuilddir to PKG_CONFIG_PATH for libvala-*.pc
Rico Tzschichholz [Sun, 4 Feb 2018 10:27:48 +0000 (11:27 +0100)]
Release 0.38.7
Rico Tzschichholz [Sun, 4 Feb 2018 09:28:59 +0000 (10:28 +0100)]
codegen: Don't try to infer error argument on async begin methods
Only the async finish method might have an error parameter.
Regression of
527dac8050fe90d7a28619383f11e968ab5c9a77
https://bugzilla.gnome.org/show_bug.cgi?id=793158
Rico Tzschichholz [Tue, 30 Jan 2018 15:50:18 +0000 (16:50 +0100)]
Release 0.38.6
Rico Tzschichholz [Mon, 29 Jan 2018 22:06:59 +0000 (23:06 +0100)]
gstreamer-1.0: Update from 1.13+ git master
Rico Tzschichholz [Mon, 29 Jan 2018 21:07:53 +0000 (22:07 +0100)]
Regenerate GIR-based bindings
Rico Tzschichholz [Mon, 29 Jan 2018 16:38:19 +0000 (17:38 +0100)]
girparser: Don't accept methods as property-accessor which throw errors
This should be considered a temporary fix.
https://bugzilla.gnome.org/show_bug.cgi?id=792998
Rico Tzschichholz [Sun, 28 Jan 2018 22:00:03 +0000 (23:00 +0100)]
girparser: Ignore conflicting closure/destroy indexes
Reverse references from closure/destroy parameters back to the callback
break our later logic, so skip this additional information.
Ernestas Kulik [Sat, 27 Jan 2018 13:42:56 +0000 (15:42 +0200)]
codegen: Fix return-type for cancelled async creation methods of classes
While gcc just puts out a warning clang actually fails due to
-Werror=return-type.
https://bugzilla.gnome.org/show_bug.cgi?id=792942
Rico Tzschichholz [Sat, 27 Jan 2018 18:30:49 +0000 (19:30 +0100)]
tests: Add missing PrintfFormat attribute
https://bugzilla.gnome.org/show_bug.cgi?id=657378
Rico Tzschichholz [Sat, 27 Jan 2018 12:23:53 +0000 (13:23 +0100)]
codegen: Infer error parameter from abstract/virtual method implementations
https://bugzilla.gnome.org/show_bug.cgi?id=614294
Rico Tzschichholz [Wed, 24 Jan 2018 15:12:47 +0000 (16:12 +0100)]
tests: Add test for invalid variadic function
https://bugzilla.gnome.org/show_bug.cgi?id=615450
Rico Tzschichholz [Wed, 24 Jan 2018 13:40:34 +0000 (14:40 +0100)]
vala: Variadic constructors without a real first parameter are not allowed
Rico Tzschichholz [Tue, 23 Jan 2018 09:29:29 +0000 (10:29 +0100)]
gtk+-4.0: Only override type of "event" parameters
Rico Tzschichholz [Sun, 21 Jan 2018 19:14:11 +0000 (20:14 +0100)]
libvaladoc: Keep bootstrap-support with valac >= 0.16.1
Rico Tzschichholz [Sat, 20 Jan 2018 09:49:29 +0000 (10:49 +0100)]
Regenerate GIR-based bindings
Rico Tzschichholz [Sat, 20 Jan 2018 09:41:43 +0000 (10:41 +0100)]
girparser: Set NoAccessorMethod for non-readable and construct-only properties
Rico Tzschichholz [Sun, 21 Jan 2018 16:27:58 +0000 (17:27 +0100)]
Release 0.38.5
Dr. Michael Lauer [Tue, 16 Jan 2018 16:06:31 +0000 (17:06 +0100)]
posix: add ctime(3)
Dr. Michael Lauer [Tue, 16 Jan 2018 15:50:26 +0000 (16:50 +0100)]
posix: fix binding of struct hostent. Make clear that gethostbyname(3) can return NULL.
Rico Tzschichholz [Thu, 18 Jan 2018 22:08:30 +0000 (23:08 +0100)]
codewriter: Don't use string.replace() to apply header_to_override
The underlying regex causes faulty replacements.
https://bugzilla.gnome.org/show_bug.cgi?id=731322
Rico Tzschichholz [Thu, 18 Jan 2018 20:00:29 +0000 (21:00 +0100)]
tests: Add test for parameter type checking of async methods
https://bugzilla.gnome.org/show_bug.cgi?id=792660
Rico Tzschichholz [Thu, 18 Jan 2018 19:41:08 +0000 (20:41 +0100)]
vala: Skip default-value positioning check for parameters of coroutines
https://bugzilla.gnome.org/show_bug.cgi?id=644241
Rico Tzschichholz [Thu, 18 Jan 2018 19:38:47 +0000 (20:38 +0100)]
Revert "Do not warn about non-default parameters for coroutines."
Breaks parameter inference for async method overrides.
This reverts commit
dd24a1bfe1a78bf1a37d35f5d8dd6480fd4a8941 .
https://bugzilla.gnome.org/show_bug.cgi?id=792660
Rico Tzschichholz [Mon, 8 Jan 2018 15:51:44 +0000 (16:51 +0100)]
vala: Add pkgdatadir and pkglibdir to pkg-config file
Rico Tzschichholz [Fri, 13 Oct 2017 20:29:58 +0000 (22:29 +0200)]
codegen: Factor out static getters for ccode-attributes
https://bugzilla.gnome.org/show_bug.cgi?id=788837
Rico Tzschichholz [Fri, 13 Oct 2017 14:04:44 +0000 (16:04 +0200)]
codegen: Install as private library for sharing between internal components
https://bugzilla.gnome.org/show_bug.cgi?id=788837
Rico Tzschichholz [Mon, 15 Jan 2018 13:54:27 +0000 (14:54 +0100)]
test: Drop workaround for fixed bug with compact classes
https://bugzilla.gnome.org/show_bug.cgi?id=533977
Rico Tzschichholz [Fri, 12 Jan 2018 16:47:36 +0000 (17:47 +0100)]
webkit2gtk-web-extension-4.0: Fix DOM.EventTarget interface
Rico Tzschichholz [Thu, 11 Jan 2018 09:47:51 +0000 (10:47 +0100)]
gtk+-4.0: Update to 3.93.0
Rico Tzschichholz [Sat, 21 Oct 2017 17:10:30 +0000 (19:10 +0200)]
gtk+-4.0: Split Gsk.RenderNode into several classes
Rico Tzschichholz [Thu, 11 Jan 2018 08:38:33 +0000 (09:38 +0100)]
gtk+-3.0: Update to 3.22.26+
6f26d0dc
Rico Tzschichholz [Wed, 10 Jan 2018 15:23:45 +0000 (16:23 +0100)]
libwnck-3.0: Update to 3.24.1
Rico Tzschichholz [Wed, 10 Jan 2018 15:23:19 +0000 (16:23 +0100)]
webkit2gtk-4.0: Update to 2.19.5
Michael James Gratton [Tue, 9 Jan 2018 01:30:50 +0000 (12:30 +1100)]
libvaladoc: Add support for single line documentation comments
This is useful for example in annotating properties:
/** Returns the current state of the frobnocator. */
public State frob { get; set; };
* libvaladoc/documentation/documentationparser.vala
(DocumentationParser.init_valadoc_rules): Split Comment rule up into
single and multi-line versions. Duplication Paragraph creation and
cleanup for single-line comments.
https://bugzilla.gnome.org/show_bug.cgi?id=736483
Michael James Gratton [Tue, 9 Jan 2018 01:36:43 +0000 (12:36 +1100)]
libvaladoc: Allow @link tags to be split over multiple lines
* libvaladoc/documentation/documentationparser.vala
(DocumentationParser.init_valadoc_rules): Allow both SP and NL in
general tag rule to separate tag name and body.
* libvaladoc/taglets/tagletlink.vala (Link): Allow multiple further SP
and NL chars before the link.
https://bugzilla.gnome.org/show_bug.cgi?id=646982
Rico Tzschichholz [Sun, 7 Jan 2018 18:00:12 +0000 (19:00 +0100)]
tests: Add invalid "base" tests to increase coverage
Rico Tzschichholz [Sun, 7 Jan 2018 17:59:11 +0000 (18:59 +0100)]
tests: Add "while (false)" test to increase coverage
Rico Tzschichholz [Sun, 7 Jan 2018 15:07:22 +0000 (16:07 +0100)]
tests: Add "continue" parser test to increase coverage
Rico Tzschichholz [Sun, 7 Jan 2018 14:39:44 +0000 (15:39 +0100)]
tests: Add "preprocessor" parser test to increase coverage
Rico Tzschichholz [Sun, 7 Jan 2018 14:27:57 +0000 (15:27 +0100)]
tests: Add "assignment" operator parser tests to increase coverage
Rico Tzschichholz [Sun, 7 Jan 2018 13:22:20 +0000 (14:22 +0100)]
tests: Add "do-while" parser tests to increase coverage
Rico Tzschichholz [Sun, 7 Jan 2018 13:09:38 +0000 (14:09 +0100)]
tests: Add "iterator" methods tests to increase coverage
Rico Tzschichholz [Sun, 7 Jan 2018 12:13:54 +0000 (13:13 +0100)]
tests: Add "contains" method test to increase coverage
Rico Tzschichholz [Sun, 7 Jan 2018 09:44:18 +0000 (10:44 +0100)]
tests: Add "dynamic" signal and property tests to increase coverage
Rico Tzschichholz [Sun, 7 Jan 2018 08:45:04 +0000 (09:45 +0100)]
tests: Add explicit "move" and "resize" array tests to increase coverage
Rico Tzschichholz [Sun, 7 Jan 2018 08:20:43 +0000 (09:20 +0100)]
tests: Add "initially-unowned" test to increase coverage
Rico Tzschichholz [Sat, 6 Jan 2018 22:52:37 +0000 (23:52 +0100)]
tests: Add "tuple" parser test to increase coverage
Rico Tzschichholz [Sat, 6 Jan 2018 22:17:36 +0000 (23:17 +0100)]
tests: Add "template" parser test to increase coverage
Rico Tzschichholz [Mon, 8 Jan 2018 09:03:10 +0000 (10:03 +0100)]
vapigen: Add coverage build-flags
Rico Tzschichholz [Sun, 7 Jan 2018 19:04:07 +0000 (20:04 +0100)]
valadoc: Add coverage build-flags
Rico Tzschichholz [Sun, 7 Jan 2018 18:59:47 +0000 (19:59 +0100)]
valadoc/tests: split VALAFLAGS over multiple lines in testrunner.sh
Rico Tzschichholz [Sun, 7 Jan 2018 10:25:03 +0000 (11:25 +0100)]
vala: Replace if-else-tree with switch
Rico Tzschichholz [Tue, 2 Jan 2018 12:07:42 +0000 (13:07 +0100)]
gstreamer-1.0: Update from 1.13+ git master
Rico Tzschichholz [Tue, 2 Jan 2018 12:07:04 +0000 (13:07 +0100)]
webkit2gtk-4.0: Update to 2.19.3
Rico Tzschichholz [Sun, 3 Sep 2017 09:27:21 +0000 (11:27 +0200)]
g-i: Update type qualifiers
Rico Tzschichholz [Sat, 6 Jan 2018 08:53:48 +0000 (09:53 +0100)]
codegen: Add destroy out-param when invoking delegate returned by delegate
https://bugzilla.gnome.org/show_bug.cgi?id=792077
Rico Tzschichholz [Wed, 3 Jan 2018 19:57:13 +0000 (20:57 +0100)]
codegen: Only add property-enum and GParamSpec-array for GObject classes
Rico Tzschichholz [Thu, 14 Dec 2017 16:17:13 +0000 (17:17 +0100)]
codegen: Avoid silent casts if not needed
Rico Tzschichholz [Thu, 14 Dec 2017 14:01:12 +0000 (15:01 +0100)]
semanticanalyzer: Directly access local datatypes in check_print_format()
Rico Tzschichholz [Wed, 20 Dec 2017 20:34:20 +0000 (21:34 +0100)]
tests: Add chain-up regression test for real non-null struct parameters
https://bugzilla.gnome.org/show_bug.cgi?id=791785
Rico Tzschichholz [Wed, 13 Dec 2017 11:31:42 +0000 (12:31 +0100)]
glib-2.0: Add GLib.OPTION_REMAINING and GLib.OptionFlags.NONE
Rico Tzschichholz [Fri, 5 Jan 2018 15:40:13 +0000 (16:40 +0100)]
gtk+-3.0: Don't hide user_data parameter in Clipboard.set_with_data()
https://bugzilla.gnome.org/show_bug.cgi?id=79223
Rico Tzschichholz [Fri, 5 Jan 2018 15:30:18 +0000 (16:30 +0100)]
gtk+-2.0: Don't hide user_data parameter in Clipboard.set_with_data()
https://bugzilla.gnome.org/show_bug.cgi?id=792237
Alistair Thomas [Wed, 13 Dec 2017 16:10:20 +0000 (16:10 +0000)]
gtk+-2.0: Mark MessageDialog constructor parameter, message_format, as nullable
https://bugzilla.gnome.org/show_bug.cgi?id=791570
Alistair Thomas [Wed, 13 Dec 2017 16:14:46 +0000 (16:14 +0000)]
gtk+-3.0: Mark MessageDialog constructor parameter, message_format, as nullable
https://bugzilla.gnome.org/show_bug.cgi?id=791570
Rico Tzschichholz [Mon, 11 Dec 2017 14:10:31 +0000 (15:10 +0100)]
Release 0.38.4
Rico Tzschichholz [Mon, 11 Dec 2017 08:11:20 +0000 (09:11 +0100)]
Regenerate GIR-based bindings
Rico Tzschichholz [Mon, 11 Dec 2017 08:08:25 +0000 (09:08 +0100)]
girparser: Don't mark simple-type out-parameters with '?' as nullable
Using '?' on simple-types has a different meaning in vala and would create
a boxed-type which is not compatible with the original type.
Rico Tzschichholz [Mon, 11 Dec 2017 08:51:50 +0000 (09:51 +0100)]
gtk+-3.0: Don't mark simple-type out-parameters with '?' as nullable
Rico Tzschichholz [Sat, 9 Dec 2017 21:47:40 +0000 (22:47 +0100)]
gstreamer-1.0: Update from 1.13+ git master
Rico Tzschichholz [Fri, 8 Dec 2017 08:59:11 +0000 (09:59 +0100)]
gtk+-4.0: Add some fixes from gtk+-3.0
Rico Tzschichholz [Fri, 8 Dec 2017 07:38:28 +0000 (08:38 +0100)]
Regenerate GIR-based bindings
Rico Tzschichholz [Fri, 8 Dec 2017 07:35:17 +0000 (08:35 +0100)]
girparser: Accept setters with boolean return-type as valid property-accessor
Rico Tzschichholz [Thu, 7 Dec 2017 16:32:54 +0000 (17:32 +0100)]
girparser: Handle metadata for fields inside a transparent union
Rico Tzschichholz [Thu, 7 Dec 2017 20:36:47 +0000 (21:36 +0100)]
gtk+-3.0: Fix FileChooser.add_choice()
Rico Tzschichholz [Fri, 8 Dec 2017 23:19:06 +0000 (00:19 +0100)]
Improve error message for missing type-parameter on enclosing type
https://bugzilla.gnome.org/show_bug.cgi?id=587905
Rico Tzschichholz [Fri, 8 Dec 2017 22:21:05 +0000 (23:21 +0100)]
SemanticAnalyser.get_actual_type() should never return null
So better return an InvalidType in case of error.
https://bugzilla.gnome.org/show_bug.cgi?id=587905
George Barrett [Wed, 6 Dec 2017 14:51:05 +0000 (15:51 +0100)]
codegen: Don't create null-safe destroy-wrapper for GenericType
https://bugzilla.gnome.org/show_bug.cgi?id=791283
Rico Tzschichholz [Wed, 6 Dec 2017 17:25:33 +0000 (18:25 +0100)]
tests: Add further "use of generics in constructor" test
https://bugzilla.gnome.org/show_bug.cgi?id=593137
Rico Tzschichholz [Wed, 6 Dec 2017 15:11:10 +0000 (16:11 +0100)]
vala: Don't transform an explicit "null" into a valid format-string
https://bugzilla.gnome.org/show_bug.cgi?id=791215
Rico Tzschichholz [Sat, 2 Dec 2017 17:31:03 +0000 (18:31 +0100)]
girparser: Allow change of parameter names
Philip Withnall [Tue, 5 Dec 2017 11:59:32 +0000 (11:59 +0000)]
glib-2.0: Fix potential null pointer dereference in string.joinv()
The logic in the ‘is the array null or empty’ check was disjunctive
rather than conjunctive. If (str_array == null), the condition would
have short-circuited and tried to evaluate str_array.length, which would
have crashed.
Coverity CID: #
1462389 (spotted when scanning Tracker)
https://bugzilla.gnome.org/show_bug.cgi?id=791257
George Barrett [Thu, 30 Nov 2017 13:05:42 +0000 (00:05 +1100)]
gobject-2.0: Add missing GType constants for fundamentals
At present, only a handful of the G_TYPE_* are declared as constants
GType defines, adding a hurdle to vala programs wanting to use
GObject's fundamental type introspection facilities.
This commit simply adds declarations for all the constant-valued GTypes
listed in the GObject documentation.
https://bugzilla.gnome.org/show_bug.cgi?id=791023
Rico Tzschichholz [Wed, 29 Nov 2017 13:09:33 +0000 (14:09 +0100)]
libvaladoc: Actually resolve "percnt;" to '%'
Rico Tzschichholz [Wed, 29 Nov 2017 16:14:38 +0000 (17:14 +0100)]
vapi: Update GIR-based bindings
Rico Tzschichholz [Tue, 28 Nov 2017 12:42:35 +0000 (13:42 +0100)]
gstreamer-1.0: Update from 1.13+ git master
Rico Tzschichholz [Tue, 28 Nov 2017 12:39:46 +0000 (13:39 +0100)]
webkit2gtk-4.0: Update to 2.19.2
Rico Tzschichholz [Tue, 28 Nov 2017 12:38:46 +0000 (13:38 +0100)]
gtk+-3.0: Update to 3.22.26+
9ce824d3
Evan Nemerson [Mon, 20 Nov 2017 11:25:33 +0000 (12:25 +0100)]
gstreamer-1.0: Bind GST_DEBUG_BIN_TO_DOT_FILE/*_WITH_TS
https://bugzilla.gnome.org/show_bug.cgi?id=785215
Rico Tzschichholz [Mon, 20 Nov 2017 08:04:39 +0000 (09:04 +0100)]
gobject-2.0: Add some missing symbols
G_SIGNAL_FLAGS_MASK, G_SIGNAL_MATCH_MASK, g_source_set_closure,
g_source_set_dummy_callback
Rico Tzschichholz [Sun, 26 Nov 2017 18:25:39 +0000 (19:25 +0100)]
doclets: Include libvala headers as needed
Jakub Kaszycki [Sun, 12 Nov 2017 21:19:00 +0000 (22:19 +0100)]
libvaladoc: Fix fatal typo in GtkdocRenderer.visit_symbol_link()
https://bugzilla.gnome.org/show_bug.cgi?id=790266
Rico Tzschichholz [Tue, 21 Nov 2017 08:10:09 +0000 (09:10 +0100)]
valadoc: Acknowledge possible properties in structs
https://bugzilla.gnome.org/show_bug.cgi?id=784705
Rico Tzschichholz [Mon, 27 Nov 2017 18:46:20 +0000 (19:46 +0100)]
vala: Improve error output of mismatching overriding methods
Include the prototype-string of base-method for easier error finding.
Rico Tzschichholz [Mon, 27 Nov 2017 14:25:02 +0000 (15:25 +0100)]
codegen: Discover invalid member access to instance field
https://bugzilla.gnome.org/show_bug.cgi?id=790903
Rico Tzschichholz [Sun, 19 Nov 2017 15:27:22 +0000 (16:27 +0100)]
vala: Report error for missing type-parameter on enclosing type
Make a qualified guess for the cause of the problem instead of triggering
an assertion.
https://bugzilla.gnome.org/show_bug.cgi?id=587905