]>
git.ipfire.org Git - thirdparty/vala.git/log
Rico Tzschichholz [Sat, 24 Aug 2019 21:36:40 +0000 (23:36 +0200)]
WIP vala: Allow to access function pointers of .begin and .end methods
Rico Tzschichholz [Thu, 5 Sep 2019 08:40:42 +0000 (10:40 +0200)]
Release 0.46.0
Rico Tzschichholz [Wed, 4 Sep 2019 14:12:21 +0000 (16:12 +0200)]
vala: Reject unary operations on nullable integer/floating and boolean type
Prefer to report a semantic error rather than creating invalid c-code.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/772
Rico Tzschichholz [Tue, 30 Jul 2019 10:54:56 +0000 (12:54 +0200)]
libvaladoc: Don't traverse into close circles with parent
SymbolResolver.resolve_thrown_list() adds error-type nodes which are
allowed to be NodeType.ERROR_DOMAIN and NodeType.CLASS.
This can result in a cycle on invoking Node.accept_all_children(),
Node.parse_comments() or Node.check_comments()
Fixes https://gitlab.gnome.org/GNOME/vala/issues/829
Rico Tzschichholz [Tue, 3 Sep 2019 16:29:43 +0000 (18:29 +0200)]
vala: Exclude nullable simple-type structs from gobject-property support
Defining "bool? { owned get; set; }" in a GObject class resulted in:
"error: The type `bool' doesn't declare a GValue take function"
Fixes a regression of
3af1cfb3bf6b1d3d4a8116382e6eda702f7335bf and reverts
to the old behavior for nullable simple-type structs.
Jeremy Philippe [Tue, 3 Sep 2019 01:36:49 +0000 (03:36 +0200)]
tests: Add regression test for genie struct construction
Rico Tzschichholz [Tue, 3 Sep 2019 07:32:54 +0000 (09:32 +0200)]
genie: Creation methods should not be static
Revealed by
ba8122d3a64e44eac44c5254c93fb181df601b0a
Rico Tzschichholz [Mon, 2 Sep 2019 19:35:00 +0000 (21:35 +0200)]
json-glib-1.0: Change abstract methods of Serializable to virtual
All those interface methods have default implementations. Additionally drop
superfluous metadata.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/840
Rico Tzschichholz [Mon, 2 Sep 2019 13:25:44 +0000 (15:25 +0200)]
Add boolean CodeContext.keep_going and corresponding compiler option
If keep_going is set then check() will continue after hitting errors in
resolver and analyzer.
Rico Tzschichholz [Sat, 24 Aug 2019 16:46:42 +0000 (18:46 +0200)]
codegen: Don't unconditionally add/return internal "result" variable
Found by -Werror=unreachable-code
See https://gitlab.gnome.org/GNOME/vala/issues/838
Rico Tzschichholz [Thu, 29 Aug 2019 14:38:25 +0000 (16:38 +0200)]
codegen: Don't cause double-free due append_local_free() in uncaught-errors
See https://gitlab.gnome.org/GNOME/vala/issues/838
Rico Tzschichholz [Thu, 29 Aug 2019 10:26:52 +0000 (12:26 +0200)]
codegen: Don't append unreachable clean-up section of Block
Found by -Werror=unreachable-code
See https://gitlab.gnome.org/GNOME/vala/issues/838
Jeremy Philippe [Sun, 1 Sep 2019 23:27:44 +0000 (01:27 +0200)]
glib-2.0: Add missing "DestroysInstance" attributes to Mutex/Locker API
Jeremy Philippe [Sun, 1 Sep 2019 23:27:44 +0000 (01:27 +0200)]
glib-2.0: Fix MutexLocker binding
Jeremy Philippe [Sun, 1 Sep 2019 22:47:42 +0000 (00:47 +0200)]
glib-2.0: Use 'GStatBuf' as ctype for 'Stat'
The documentation of g_stat () states:
In Microsoft's compiler, by default struct stat means one with
64-bit time fields while in MinGW struct stat is the legacy one
with 32-bit fields.
To hopefully clear up this mess, the gstdio.h header defines a
type GStatBuf which is the appropriate struct type depending
on the platform and/or compiler being used. On POSIX it is just
struct stat, but note that even on POSIX platforms, stat() might
be a macro.
Jeremy Philippe [Sun, 1 Sep 2019 19:57:01 +0000 (21:57 +0200)]
codewriter: Write "weak" modifier for properties
Rico Tzschichholz [Mon, 2 Sep 2019 07:40:40 +0000 (09:40 +0200)]
girparser/gidlparser: "value_owned = true" by default for property types
This represents an internal implementation detail which is available from
vala sources and it does not effect the ownership of property accessors.
Rico Tzschichholz [Mon, 2 Sep 2019 08:21:05 +0000 (10:21 +0200)]
tests: Add dedicated "property ownership" tests
Rico Tzschichholz [Sun, 1 Sep 2019 13:55:35 +0000 (15:55 +0200)]
gstreamer: Update from 1.17.0+ git master
Rico Tzschichholz [Sun, 1 Sep 2019 12:55:07 +0000 (14:55 +0200)]
gio-2.0: Drop metadata for NativeSocketAddress
Rico Tzschichholz [Thu, 29 Aug 2019 15:08:46 +0000 (17:08 +0200)]
tests: Extend "pre- and post-condition" test to increase coverage
Rico Tzschichholz [Sun, 25 Aug 2019 13:18:04 +0000 (15:18 +0200)]
vala: Move find_parent_type_symbol/get_this_type() to SemanticAnalyzer
Rico Tzschichholz [Wed, 28 Aug 2019 11:46:07 +0000 (13:46 +0200)]
glib-2.0: Add new symbols from 2.62
Rico Tzschichholz [Wed, 28 Aug 2019 10:01:43 +0000 (12:01 +0200)]
vapi: Update GIR-based bindings
Rico Tzschichholz [Wed, 28 Aug 2019 10:01:32 +0000 (12:01 +0200)]
gstreamer: Update from 1.17.0+ git master
Rico Tzschichholz [Wed, 28 Aug 2019 06:38:05 +0000 (08:38 +0200)]
Regenerate GIR-based bindings to pick up out/ref instance-parameters
Rico Tzschichholz [Mon, 26 Aug 2019 11:10:42 +0000 (13:10 +0200)]
gtk4: Regenerate to pick up DestroyInstance attributes
Fixes https://gitlab.gnome.org/GNOME/vala/issues/836
Rico Tzschichholz [Mon, 26 Aug 2019 11:20:18 +0000 (13:20 +0200)]
girparser: Improve evalution of instance-parameter information
See https://gitlab.gnome.org/GNOME/vala/issues/836
Rico Tzschichholz [Wed, 21 Aug 2019 18:29:07 +0000 (20:29 +0200)]
libsoup-2.4: soup_auth_new is not a constructor but a factory method
Fixes https://gitlab.gnome.org/GNOME/vala/issues/791
Rico Tzschichholz [Wed, 21 Aug 2019 14:28:33 +0000 (16:28 +0200)]
vapi: Update GIR-based bindings
Rico Tzschichholz [Wed, 21 Aug 2019 14:27:14 +0000 (16:27 +0200)]
gstreamer: Update from 1.17.0+ git master
Rico Tzschichholz [Mon, 19 Aug 2019 11:58:18 +0000 (13:58 +0200)]
Release 0.45.91
Rico Tzschichholz [Sat, 17 Aug 2019 06:48:35 +0000 (08:48 +0200)]
vala: Add missing closing brace/bracket in to_string()
Rico Tzschichholz [Fri, 16 Aug 2019 13:17:47 +0000 (15:17 +0200)]
vala: Init formal_target_type of ArrayCreationExpr from InitializerList
formal_target_type is expected to be set when inferring generic type
parameters.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/835
Rico Tzschichholz [Wed, 7 Aug 2019 06:46:05 +0000 (08:46 +0200)]
linux: Add more Input and update UserspaceInput bindings
Fixes https://gitlab.gnome.org/GNOME/vala/issues/830
Rico Tzschichholz [Mon, 5 Aug 2019 19:15:42 +0000 (21:15 +0200)]
cairo: Add 1.16 symbols
Michael Gratton [Mon, 5 Aug 2019 13:15:27 +0000 (23:15 +1000)]
sqlite3: Bind sqlite3_expanded_sql() and sqlite3_normalised_sql()
Rico Tzschichholz [Mon, 5 Aug 2019 06:38:22 +0000 (08:38 +0200)]
Release 0.45.90
Mart Raudsepp [Sat, 27 Jul 2019 17:20:45 +0000 (20:20 +0300)]
valadoc: Install icons and doclets to API dependent folders
This allows to co-install different valadoc versions as for the compiler.
Rico Tzschichholz [Sun, 4 Aug 2019 07:59:41 +0000 (09:59 +0200)]
vapi: Update GIR-based bindings
Rico Tzschichholz [Sun, 4 Aug 2019 06:13:23 +0000 (08:13 +0200)]
glib-2.0: Add new symbols and deprecations from 2.62
Rico Tzschichholz [Sun, 28 Jul 2019 15:21:25 +0000 (17:21 +0200)]
vala: Support static methods in error-domains
Actually generate methods defined inside error-domains and state that
instance methods are not supported yet.
See https://gitlab.gnome.org/GNOME/vala/issues/829
Rico Tzschichholz [Fri, 26 Jul 2019 12:03:12 +0000 (14:03 +0200)]
codegen: Include required type-definition when casting from generic pointer
Fixes https://gitlab.gnome.org/GNOME/vala/issues/828
David Hewitt [Wed, 24 Jul 2019 18:27:18 +0000 (18:27 +0000)]
x11: Fix return type of XInternAtoms and XGetAtomNames bindings
Rico Tzschichholz [Wed, 24 Jul 2019 06:57:03 +0000 (08:57 +0200)]
codegen: Move private type-struct to type-definition section
Rico Tzschichholz [Wed, 24 Jul 2019 06:54:33 +0000 (08:54 +0200)]
codegen: Append line-break after G_DEFINE_AUTOPTR_CLEANUP_FUNC
In addition to
38781a502b7381ef5383ae282fa33ddda9b493ed
Rico Tzschichholz [Tue, 23 Jul 2019 07:00:44 +0000 (09:00 +0200)]
tests: Add GMutex and GRecMutex test to increase coverage
Rico Tzschichholz [Mon, 22 Jul 2019 10:49:53 +0000 (12:49 +0200)]
codegen: Use G_TYPE_CHECK_INSTANCE_CAST for comparisons with interfaces
Avoids "comparison of distinct pointer types lacks a cast" warning for
such cases.
Rico Tzschichholz [Mon, 22 Jul 2019 07:54:02 +0000 (09:54 +0200)]
vapi: Update GIR-based bindings
Rico Tzschichholz [Mon, 22 Jul 2019 07:52:48 +0000 (09:52 +0200)]
gstreamer: Update from 1.17.0+ git master
Rico Tzschichholz [Mon, 22 Jul 2019 07:29:37 +0000 (09:29 +0200)]
girparser: Handle "function-macro" by skipping them
See https://gitlab.gnome.org/GNOME/gobject-introspection/merge_requests/159
Jim Mason [Sun, 21 Jul 2019 17:04:04 +0000 (18:04 +0100)]
vala: Fix mixup of target_glib_major/minor in set_target_glib_version()
Introduced with
3d926c1288b3ec4fd692dd1de6b91fb6c2090183
Fixes https://gitlab.gnome.org/GNOME/vala/issues/825
Rico Tzschichholz [Fri, 19 Jul 2019 18:02:26 +0000 (20:02 +0200)]
vala: Implicit GValue cast requires GOBJECT profile
This fixes criticals like
vala_data_type_get_data_type: assertion 'self != NULL' failed
Regression of
7d771a0c07d63cb7605cbdc28dd8df50719731f8
Rico Tzschichholz [Fri, 19 Jul 2019 17:56:32 +0000 (19:56 +0200)]
vala: NoAccessorMethod checks require GOBJECT profile
This fixes criticals like
vala_class_real_is_subtype_of: assertion 't != NULL' failed
Regression of
a6441ec3c27e059d32501a4e09c937ac668f3ad9
Rico Tzschichholz [Fri, 19 Jul 2019 17:53:45 +0000 (19:53 +0200)]
vala: 'construct' is not supported in POSIX profile
This fixes criticals like
vala_class_real_is_subtype_of: assertion 't != NULL' failed
Regession of
6c8c75f59024b32230b1c13ea344a568f19b86df
Rico Tzschichholz [Fri, 19 Jul 2019 15:58:45 +0000 (17:58 +0200)]
posix: Fix return-value of mknod() and c-include for tcgetsid()
Introduced with
535f2734d19875ccc1f170841b72eba0c4adad1e
Christian Kellner [Tue, 16 Jul 2019 15:54:29 +0000 (17:54 +0200)]
posix: add *at() calls and related constants
Add missing calls from the *at() call family that was added in
POSIX.1-2008, and related constants.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/823
Rico Tzschichholz [Thu, 18 Jul 2019 18:52:35 +0000 (20:52 +0200)]
webkit2gtk-4.0: Fix WebContext.initialize_notification_permissions()
Bind it as WebContext.init_notification_permissions() to avoid conflict.
Christian Kellner [Tue, 16 Jul 2019 16:16:52 +0000 (18:16 +0200)]
glib-2.0: add MappedFile.from_fd constructor
Add the missing 'g_mapped_file_new_from_fd' constructor, added
with glib 2.32.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/824
Rico Tzschichholz [Tue, 16 Jul 2019 08:07:21 +0000 (10:07 +0200)]
Release 0.45.3
Rico Tzschichholz [Tue, 9 Jul 2019 11:22:26 +0000 (13:22 +0200)]
glib-2.0: Fix RecMutexLocker binding
Rico Tzschichholz [Tue, 9 Jul 2019 09:09:37 +0000 (11:09 +0200)]
vapi: Update GIR-based bindings
Rico Tzschichholz [Tue, 9 Jul 2019 09:08:20 +0000 (11:08 +0200)]
gtk4: Update to 3.96.0+
b05d1676
Rico Tzschichholz [Tue, 9 Jul 2019 09:07:34 +0000 (11:07 +0200)]
gstreamer: Update from 1.17.0+ git master
Rico Tzschichholz [Tue, 9 Jul 2019 08:33:08 +0000 (10:33 +0200)]
glib-2.0: Add new symbols from 2.62
Rico Tzschichholz [Tue, 9 Jul 2019 08:06:56 +0000 (10:06 +0200)]
glib-2.0: Add binding for g_strv_equal() (since 2.60)
Rico Tzschichholz [Mon, 8 Jul 2019 17:11:19 +0000 (19:11 +0200)]
codegen: Real structs are allowed by simple generics and passed as reference
Add the required pointer-indirections to fix invalid memory accesses.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/819
Jeremy Philippe [Fri, 5 Jul 2019 16:26:05 +0000 (18:26 +0200)]
build: Pass -no-undefined when linking libcodegen
This is required to build under MinGW (and presumably Cygwin).
Fixes https://gitlab.gnome.org/GNOME/vala/issues/820
Rico Tzschichholz [Fri, 5 Jul 2019 14:54:19 +0000 (16:54 +0200)]
codegen: Assign GValue result of function calls to temp-var on copy_value
Regression of
a94a28141e1f222d1da7e72bea4cd2d1e5242f41
Fixes https://gitlab.gnome.org/GNOME/vala/issues/819
Rico Tzschichholz [Tue, 18 Jun 2019 21:34:09 +0000 (23:34 +0200)]
codegen: Don't write declaration of extern symbols with given header
The corresponding header will provide the declaration and therefore fix
build with -Werror=redundant-decls.
Set cheader_filename for implicit to_string() method of enums which is
transformed into symbol calls from glib-object.h. This avoids the leak of
an superfluous prototype of that method into the generated c code.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/745
Rico Tzschichholz [Tue, 18 Jun 2019 21:34:09 +0000 (23:34 +0200)]
vala: Add Symbol.is_extern and use/set is accordingly
This actually holds the information whether a symbol was declared
with `extern` modificator. Adjust the setting of Symbol.external and
usage of Symbol.external_package.
See https://gitlab.gnome.org/GNOME/vala/issues/745
Gran PC [Sun, 30 Jun 2019 13:06:39 +0000 (13:06 +0000)]
xtst: Fix signature of XTest.fake_relative_motion_event()
See https://gitlab.gnome.org/GNOME/vala/merge_requests/67
Rico Tzschichholz [Mon, 1 Jul 2019 09:10:35 +0000 (11:10 +0200)]
glib-2.0: Bind strcmp0 as GLib.CompareFunc<string?>
Allows proper usage with experimental non-null
Fixes https://gitlab.gnome.org/GNOME/vala/issues/810
Rico Tzschichholz [Mon, 17 Jun 2019 15:05:03 +0000 (17:05 +0200)]
Release 0.45.2
Rico Tzschichholz [Mon, 17 Jun 2019 10:59:12 +0000 (12:59 +0200)]
tests: Null-terminate arrays for compatibility test of uint8 and uchar
Fixes https://gitlab.gnome.org/GNOME/vala/issues/809
Rico Tzschichholz [Mon, 17 Jun 2019 06:05:54 +0000 (08:05 +0200)]
vala: Only warn about imcompatible type of external construct property
This is to reduce the initial fallout.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/803
Rico Tzschichholz [Sat, 15 Jun 2019 18:25:25 +0000 (20:25 +0200)]
gtk+-3.0: Update to 3.24.9~
18177388
Rico Tzschichholz [Sat, 15 Jun 2019 18:25:02 +0000 (20:25 +0200)]
gtk4: Update to 3.96.0+
8cfdd6c5
Rico Tzschichholz [Sat, 15 Jun 2019 18:11:36 +0000 (20:11 +0200)]
vapi: Update GIR-based bindings
Rico Tzschichholz [Sat, 15 Jun 2019 18:09:43 +0000 (20:09 +0200)]
gstreamer: Update from 1.17.0+ git master
Rico Tzschichholz [Sat, 15 Jun 2019 15:43:28 +0000 (17:43 +0200)]
girparser: Skip 'attribute' elements
Rico Tzschichholz [Fri, 14 Jun 2019 16:32:24 +0000 (18:32 +0200)]
vala: Use non-deprecated GLib.ModuleFlags values
Rico Tzschichholz [Fri, 14 Jun 2019 16:04:16 +0000 (18:04 +0200)]
genie: Make 'self' match its TokenType name
Rico Tzschichholz [Fri, 14 Jun 2019 06:16:23 +0000 (08:16 +0200)]
girwriter: Report error on secondary top-level namespace to be written
Fixes https://gitlab.gnome.org/GNOME/vala/issues/805
Rico Tzschichholz [Thu, 13 Jun 2019 13:58:58 +0000 (15:58 +0200)]
codegen: Use array_length of collection variable instead of expression
Rico Tzschichholz [Fri, 14 Jun 2019 05:11:17 +0000 (07:11 +0200)]
libvaladoc: Use non-deprecated GLib.ModuleFlags values
Rico Tzschichholz [Sat, 8 Jun 2019 08:54:07 +0000 (10:54 +0200)]
gmodule-2.0: Build from GIR
Rico Tzschichholz [Thu, 6 Jun 2019 13:46:04 +0000 (15:46 +0200)]
glib-2.0: Add Unicode 12.0 symbols
Rico Tzschichholz [Wed, 5 Jun 2019 13:17:23 +0000 (15:17 +0200)]
genie: Drop unused "writeonly" token
Rico Tzschichholz [Wed, 5 Jun 2019 09:07:20 +0000 (11:07 +0200)]
gtk4: Update to 3.96.0+
69016825
Rico Tzschichholz [Mon, 27 May 2019 16:10:57 +0000 (18:10 +0200)]
gtk4: Update to 3.96.0+
cfe648eb
Rico Tzschichholz [Mon, 27 May 2019 16:03:39 +0000 (18:03 +0200)]
gstreamer: Update from 1.17.0+ git master
Rico Tzschichholz [Mon, 27 May 2019 16:02:32 +0000 (18:02 +0200)]
webkit2gtk-4.0: Update to 2.25.1
Rico Tzschichholz [Thu, 23 May 2019 09:49:26 +0000 (11:49 +0200)]
vapi: Update GIR-based bindings
Rico Tzschichholz [Thu, 23 May 2019 09:48:54 +0000 (11:48 +0200)]
gstreamer: Update from 1.17.0+ git master
Rico Tzschichholz [Mon, 20 May 2019 18:19:18 +0000 (20:19 +0200)]
Release 0.45.1
Rico Tzschichholz [Mon, 20 May 2019 18:53:02 +0000 (20:53 +0200)]
vala: Strip "basedir" from Source.filename attribute
This is gives some control over the written relative filenames and fixes
make distcheck due of out-of-source-dir building.
Rico Tzschichholz [Mon, 20 May 2019 10:59:17 +0000 (12:59 +0200)]
gtk4: Update to 3.96.0+
322507f2
Rico Tzschichholz [Fri, 17 May 2019 06:56:12 +0000 (08:56 +0200)]
codegen: When freeing local variables don't stop at "switch" on "continue"
So distinguish between BreakStatement and ContinueStatement to make the
correct decision in append_local_free().
Fixes https://gitlab.gnome.org/GNOME/vala/issues/799
Rico Tzschichholz [Wed, 8 May 2019 08:22:54 +0000 (10:22 +0200)]
clutter-1.0: Bind Margin, PaintVolume, Point, Rect and Size as struct
Reverts
0cd8009728245300d32009fb029898b4a3ceed8a and its confusion
regards "caller-allocates" out-parameters
Fixes https://gitlab.gnome.org/GNOME/vala/issues/795