]>
git.ipfire.org Git - thirdparty/vala.git/log
Rico Tzschichholz [Tue, 31 Mar 2020 19:57:22 +0000 (21:57 +0200)]
FIXME Implicit flatten array in foreach
Luca Bruno [Mon, 3 Feb 2014 14:54:54 +0000 (15:54 +0100)]
Use more statements()
Luca Bruno [Mon, 3 Feb 2014 13:30:02 +0000 (14:30 +0100)]
Use %? in the parser rather than stringifying expressions
Luca Bruno [Mon, 3 Feb 2014 12:03:21 +0000 (13:03 +0100)]
Accept method call children
Luca Bruno [Sun, 2 Feb 2014 19:39:52 +0000 (20:39 +0100)]
Set the scope of the codebuilder block for symbol resolution
Luca Bruno [Sat, 1 Feb 2014 17:37:50 +0000 (18:37 +0100)]
Move PostfixExpression transformation into the transformer
Luca Bruno [Sat, 1 Feb 2014 11:26:29 +0000 (12:26 +0100)]
Move Template transformation to the code transformer
Luca Bruno [Sat, 25 Feb 2012 20:25:57 +0000 (21:25 +0100)]
Move UnaryExpression tranformation into code transformer
Luca Bruno [Sat, 1 Feb 2014 09:42:27 +0000 (10:42 +0100)]
Cleanup generated empty blocks
Luca Bruno [Thu, 5 Jan 2012 14:33:32 +0000 (15:33 +0100)]
DOM-like linked list of statements
Luca Bruno [Thu, 5 Jan 2012 10:42:15 +0000 (11:42 +0100)]
Move ObjectCreationExpression transformation to the code transformer
Luca Bruno [Wed, 4 Jan 2012 22:59:34 +0000 (23:59 +0100)]
Move BinaryExpression transformation to the code transformer
Luca Bruno [Wed, 4 Jan 2012 17:38:38 +0000 (18:38 +0100)]
Move ForeachStatement transformation into the code transformer
Luca Bruno [Tue, 27 Dec 2011 18:07:31 +0000 (19:07 +0100)]
Move ConditionalExpression transformation into the code transformer
Luca Bruno [Wed, 31 Aug 2011 08:51:08 +0000 (10:51 +0200)]
Move ForStatement transformation into the code transformer
Rico Tzschichholz [Wed, 13 Dec 2017 14:00:56 +0000 (15:00 +0100)]
tests: Add test for do-while statement control-flow
https://gitlab.gnome.org/GNOME/vala/issues/27
Luca Bruno [Tue, 30 Aug 2011 11:42:39 +0000 (13:42 +0200)]
Move DoStatement transformation into the code transformer
Fixes https://gitlab.gnome.org/GNOME/vala/issues/27
Luca Bruno [Tue, 30 Aug 2011 10:43:41 +0000 (12:43 +0200)]
Move WhileStatement transformation into the code transformer
Luca Bruno [Sun, 7 Aug 2011 10:22:15 +0000 (12:22 +0200)]
Move MethodCall transformation into the code transformer
Luca Bruno [Sun, 7 Aug 2011 10:22:15 +0000 (12:22 +0200)]
Code transformer
Luca Bruno [Thu, 29 Dec 2011 18:42:55 +0000 (19:42 +0100)]
Code builder
Luca Bruno [Fri, 30 Dec 2011 08:26:26 +0000 (09:26 +0100)]
parser: Allow to parse expressions/statements from string
Luca Bruno [Sat, 4 May 2013 09:30:05 +0000 (11:30 +0200)]
vala: Fix result var for pre/post conditions
Luca Bruno [Sat, 6 Aug 2011 08:38:59 +0000 (10:38 +0200)]
vala: Make SemanticAnalyzer be stateless
Rico Tzschichholz [Tue, 31 Mar 2020 20:56:44 +0000 (22:56 +0200)]
tests: Add "expression as argument" tests to increase coverage
Rico Tzschichholz [Tue, 31 Mar 2020 12:55:59 +0000 (14:55 +0200)]
codegen: Correct field declaration for captured inline-allocated array
Also pass proper size to memset for local temp variables of
inline-allocated arrays in asynchronous context.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/954
Rico Tzschichholz [Tue, 31 Mar 2020 08:39:38 +0000 (10:39 +0200)]
codegen: Don't free value if property setter takes ownership
Correctly handle owned property accessor in object initializer.
In addition to
c0e955db075d3d155782c167a0abb81e0dce5f59
See https://gitlab.gnome.org/GNOME/vala/issues/953
Rico Tzschichholz [Tue, 31 Mar 2020 08:39:38 +0000 (10:39 +0200)]
tests: Add "local clash with implicit this" test to increase coverage
Rico Tzschichholz [Tue, 31 Mar 2020 08:39:38 +0000 (10:39 +0200)]
tests: Add "switch enum" test to increase coverage
Rico Tzschichholz [Mon, 30 Mar 2020 06:47:17 +0000 (08:47 +0200)]
codegen: Avoid critical trying to serialize an unsupported type to Variant
Fixes https://gitlab.gnome.org/GNOME/vala/issues/952
Rico Tzschichholz [Sun, 29 Mar 2020 12:30:49 +0000 (14:30 +0200)]
vala: Handle all ctors and dtors in CodeWriter
Rico Tzschichholz [Sun, 29 Mar 2020 12:30:49 +0000 (14:30 +0200)]
vala: Handle unlock() statement in CodeWriter
Simon Werbeck [Tue, 24 Mar 2020 16:35:09 +0000 (17:35 +0100)]
vala: Support struct initializer list in non-constant array
A struct initializer list contained in an array initializer list is now
transformed to a struct creation expression. The pre-existing logic
ensures that constant expressions are not transformed.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/949
Rico Tzschichholz [Tue, 25 Feb 2020 11:35:15 +0000 (12:35 +0100)]
codegen: Append initializer for "_*_size_" of array field in internal struct
Fixes https://gitlab.gnome.org/GNOME/vala/issues/914
Rico Tzschichholz [Thu, 3 Jan 2019 11:15:21 +0000 (12:15 +0100)]
vala: Move setting of target profile and standard packages into CodeContext
Rico Tzschichholz [Tue, 3 Mar 2020 13:28:12 +0000 (14:28 +0100)]
girparser: Strip "Enum"-suffix only from enumeration
This lead to superfluous symbol clashes when applied widely.
e.g. GLib.ParamSpecEnum which is subclass of GLib.ParamSpec
Introduced with
37201b0016a6f710dea6c9db08ff351641086686
Rico Tzschichholz [Sat, 17 Nov 2018 18:23:28 +0000 (19:23 +0100)]
vala: Add Expression.is_always_true/false() helpers
Rico Tzschichholz [Thu, 28 Nov 2019 09:05:30 +0000 (10:05 +0100)]
tests: Add "throw in loops" tests to increase coverage
Rico Tzschichholz [Thu, 20 Feb 2020 10:20:53 +0000 (11:20 +0100)]
vala: Remove some public API from expressions and statements
Rico Tzschichholz [Mon, 23 Mar 2020 21:34:06 +0000 (22:34 +0100)]
Bump version suffix to 0.50
Rico Tzschichholz [Mon, 23 Mar 2020 13:58:08 +0000 (14:58 +0100)]
Release 0.48.2
Rico Tzschichholz [Mon, 23 Mar 2020 13:57:51 +0000 (14:57 +0100)]
manual: Update from wiki.gnome.org
Rico Tzschichholz [Mon, 23 Mar 2020 16:16:00 +0000 (17:16 +0100)]
vapi: Update GIR-based bindings
Rico Tzschichholz [Mon, 23 Mar 2020 16:12:28 +0000 (17:12 +0100)]
gstreamer: Update from 1.17.0+ git master
Rico Tzschichholz [Mon, 23 Mar 2020 14:26:07 +0000 (15:26 +0100)]
gtk4: Update to 3.98.1
Rico Tzschichholz [Sun, 22 Mar 2020 16:15:05 +0000 (17:15 +0100)]
tests: Drop usage of "--main main" and avoid ambigious entry-points
Rico Tzschichholz [Sat, 21 Mar 2020 16:09:30 +0000 (17:09 +0100)]
codegen: IntegerLiteral is a valid constant size for inline-allocated array
In addition to
b95a766454eb914f4eb5a68e9040e03faffabf52
See https://gitlab.gnome.org/GNOME/vala/issues/910
Rico Tzschichholz [Sat, 21 Mar 2020 16:09:30 +0000 (17:09 +0100)]
vala: Inline-allocated array can't be instantiated with creation expression
This generalizes
0554ed7ad9cefe0f56e53dc00be88488dfa788bf
Fixes https://gitlab.gnome.org/GNOME/vala/issues/926
Rico Tzschichholz [Thu, 19 Mar 2020 17:24:16 +0000 (18:24 +0100)]
codegen: Include "glib.h" for g_return_*() usage
Fixes https://gitlab.gnome.org/GNOME/vala/issues/940
Rico Tzschichholz [Mon, 16 Mar 2020 07:47:02 +0000 (08:47 +0100)]
glib-2.0: Add binding for g_win32_ftruncate()
Rico Tzschichholz [Mon, 16 Mar 2020 07:08:46 +0000 (08:08 +0100)]
gio-2.0: Add binding for g_io_error_from_win32_error()
ZUHONG TAO [Sun, 15 Mar 2020 08:04:30 +0000 (08:04 +0000)]
glib-2.0: Add missing IOChannel's win32 API
Rico Tzschichholz [Thu, 19 Mar 2020 08:53:27 +0000 (09:53 +0100)]
parser: Improve error message for invalid ArrayCreationExpression
Fixes https://gitlab.gnome.org/GNOME/vala/issues/939
Rico Tzschichholz [Wed, 18 Mar 2020 17:11:13 +0000 (18:11 +0100)]
codegen: Initialize temp-var for property array length before calling getter
Regression of
d33e9fbca63674b7dfa339c25a9d5e27cce187f3
Rico Tzschichholz [Wed, 18 Mar 2020 13:05:13 +0000 (14:05 +0100)]
codegen: Use memset to initialize inline-allocated array with non-constant size
In addition to
a0bb129e5a2e8580eb272d9a68ba054e7b170dba
Fixes https://gitlab.gnome.org/GNOME/vala/issues/910
Rico Tzschichholz [Tue, 17 Mar 2020 14:26:36 +0000 (15:26 +0100)]
codegen: Improve handling of "array_length_type" attribute
This affects methods, parameters, field and properties.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/938
Rico Tzschichholz [Tue, 17 Mar 2020 14:26:36 +0000 (15:26 +0100)]
codegen: Inherit "array_length_type" from (base-/base-interface) parameter/property/method
See https://gitlab.gnome.org/GNOME/vala/issues/938
Rico Tzschichholz [Tue, 17 Mar 2020 14:26:36 +0000 (15:26 +0100)]
codegen: Use correctly typed array-length variable for delegate invocation
Rico Tzschichholz [Tue, 17 Mar 2020 14:26:36 +0000 (15:26 +0100)]
codegen: Use correctly typed array-length variable for property-getter
Rico Tzschichholz [Tue, 17 Mar 2020 14:26:36 +0000 (15:26 +0100)]
vala: Inherit lambda parameter attributes from delegate
... by setting base_parameter accordingly
Rico Tzschichholz [Tue, 17 Mar 2020 14:26:36 +0000 (15:26 +0100)]
vala: Improve copy of required attributes from delegate to lamdba method
Corentin Noël [Tue, 17 Mar 2020 11:19:22 +0000 (12:19 +0100)]
posix: Add pathconf and fpathconf bindings
Also bind the named constants to use them.
Rico Tzschichholz [Sat, 14 Mar 2020 14:15:51 +0000 (15:15 +0100)]
vala: Accept enum-values as length for inline allocated arrays
Fixes https://gitlab.gnome.org/GNOME/vala/issues/935
Rico Tzschichholz [Fri, 13 Mar 2020 18:30:32 +0000 (19:30 +0100)]
valadoc: Create and register current Vala.CodeContext properly
Rico Tzschichholz [Fri, 13 Mar 2020 18:09:07 +0000 (19:09 +0100)]
vala: Use error() instead of Report.error() inside of CodeContext.get()
This is a bad thing while Report.error() actually uses CodeContext.get()
Regression of
e436f2833dc332e3fd728fe6f6b2cd7f224dcf33
Rico Tzschichholz [Thu, 12 Mar 2020 19:41:57 +0000 (20:41 +0100)]
vapi: Add cairo-gobject binding
and update reverse depends if appropriate
Corentin Noël [Thu, 12 Mar 2020 13:35:22 +0000 (14:35 +0100)]
cairo: Add missing type_id attributes guarded by GOBJECT define
When Cairo is built with GObject support wrapper, it provides
cairo-gobject.h that defines GType and GBoxed structures and enums.
Rico Tzschichholz [Fri, 13 Mar 2020 08:11:01 +0000 (09:11 +0100)]
codegen: Correctly access captured parameter in precondition of method
Fixes https://gitlab.gnome.org/GNOME/vala/issues/144
Rico Tzschichholz [Thu, 12 Mar 2020 23:01:09 +0000 (00:01 +0100)]
codegen: Emit postconditions before free'ing local variables
It was possible to cause segmentation-faults or use-after-free errors.
Rico Tzschichholz [Thu, 12 Mar 2020 18:19:19 +0000 (19:19 +0100)]
codegen: Reset outdated array _size_ variable after use as ref parameter
Fixes https://gitlab.gnome.org/GNOME/vala/issues/929
Rico Tzschichholz [Thu, 12 Mar 2020 18:19:19 +0000 (19:19 +0100)]
vapigen: Define "GOBJECT" corresponding to set profile of CodeContext
This is required to evaluate pre-processor directives correctly in
sourced bindings.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/933
ZUHONG TAO [Wed, 11 Mar 2020 14:59:17 +0000 (14:59 +0000)]
glib-2.0: Add binding for g_poll()
Fixes https://gitlab.gnome.org/GNOME/vala/issues/924
Rico Tzschichholz [Wed, 11 Mar 2020 11:14:48 +0000 (12:14 +0100)]
Release 0.48.1
Rico Tzschichholz [Wed, 11 Mar 2020 09:06:39 +0000 (10:06 +0100)]
codegen: Avoid symbol clashes with "va_*" from "stdarg.h"
Make a better choice for naming the local variables in
CCodeArrayModule.append_params_array()
In addition to
98ab3da89640b8b8a6c67044b4df1194672774bb
Fixes https://gitlab.gnome.org/GNOME/vala/issues/923
Rico Tzschichholz [Mon, 25 Mar 2019 13:45:08 +0000 (14:45 +0100)]
codegen: Move ObjectTypeSymbol casting to GTypeModule
Rico Tzschichholz [Mon, 25 Mar 2019 10:49:34 +0000 (11:49 +0100)]
codegen: Factor out GValueModule
Rico Tzschichholz [Mon, 25 Mar 2019 13:59:54 +0000 (14:59 +0100)]
codegen: Move GLibValue into a separate source-file
Rico Tzschichholz [Thu, 28 Mar 2019 08:00:37 +0000 (09:00 +0100)]
codegen: Cleanup GLibValue helper functions
Rico Tzschichholz [Tue, 10 Mar 2020 15:38:07 +0000 (16:38 +0100)]
tests: Extend "GLib.Value (un-)boxing" test to increase coverage
Rico Tzschichholz [Sat, 22 Feb 2020 21:46:48 +0000 (22:46 +0100)]
gtk4: Update to 3.98+
2da445f9
Rico Tzschichholz [Mon, 9 Mar 2020 10:20:20 +0000 (11:20 +0100)]
vapi: Update GIR-based bindings
Rico Tzschichholz [Sun, 8 Mar 2020 17:04:18 +0000 (18:04 +0100)]
poppler-glib: Update to 0.85
Fixes https://gitlab.gnome.org/GNOME/vala/issues/922
Rico Tzschichholz [Sun, 8 Mar 2020 16:54:39 +0000 (17:54 +0100)]
vala: Real struct-type without type_id can't be used for GObject property
It caused an invalid usage of G_TYPE_POINTER with g_param_spec_boxed().
Fixes https://gitlab.gnome.org/GNOME/vala/issues/921
Rico Tzschichholz [Sun, 8 Mar 2020 16:54:39 +0000 (17:54 +0100)]
glib-2.0: Add missing "type_id" or "has_type_id" attributes to structs
See https://gitlab.gnome.org/GNOME/vala/issues/921
Rico Tzschichholz [Sun, 8 Mar 2020 09:41:16 +0000 (10:41 +0100)]
codegen: Actually respect "delegate_target" attribute of method/parameter
Rico Tzschichholz [Sun, 8 Mar 2020 09:41:16 +0000 (10:41 +0100)]
codegen: Inherit "delegate_target" from (base-/base-interface) parameter/property/method
Rico Tzschichholz [Sun, 8 Mar 2020 09:41:16 +0000 (10:41 +0100)]
codegen: Inherit "array" attributes from (base/base-interface) property
Rico Tzschichholz [Sun, 8 Mar 2020 09:41:16 +0000 (10:41 +0100)]
codegen: Don't re-evaluate "itype" when "deleg" variable is already available
Rico Tzschichholz [Sun, 8 Mar 2020 09:41:16 +0000 (10:41 +0100)]
vala: Fix search for Parameter.base_parameter
Rico Tzschichholz [Sun, 8 Mar 2020 09:41:16 +0000 (10:41 +0100)]
glib-2.0: Memory profiling ("g_mem_*") is deprecated since 2.46
Rico Tzschichholz [Sat, 7 Mar 2020 13:59:52 +0000 (14:59 +0100)]
test: Fix "GenericAccessors" test
Rico Tzschichholz [Sat, 7 Mar 2020 09:50:21 +0000 (10:50 +0100)]
tests: Extend "GenericAccessors" test to increase coverage
Rico Tzschichholz [Sat, 7 Mar 2020 09:08:33 +0000 (10:08 +0100)]
codegen: Add destroy of parameter in vfunc of delegate property setter
The vfunc of an owned setter requires a destroy parameter. Support for
this was introduced with
1e90d53dba0eff6ec2babd8292676099308dd4f6
Fixes https://gitlab.gnome.org/GNOME/vala/issues/919
Rico Tzschichholz [Fri, 6 Mar 2020 21:47:54 +0000 (22:47 +0100)]
tests: Rerun a few tests with POSIX profile to increase coverage
Rico Tzschichholz [Fri, 6 Mar 2020 21:47:54 +0000 (22:47 +0100)]
tests: Split array tests to provide a GLib-independent test
Rico Tzschichholz [Fri, 6 Mar 2020 21:47:54 +0000 (22:47 +0100)]
codegen: Replace hard-coded "gsize" with resolved "size_t"
Rico Tzschichholz [Fri, 6 Mar 2020 21:47:54 +0000 (22:47 +0100)]
linux: Don't depend on GLib.Time when using POSIX profile
Rico Tzschichholz [Fri, 6 Mar 2020 06:49:47 +0000 (07:49 +0100)]
codewriter: Output inner interface declarations
Missing in
d79401ad13a4bc5121f5ae187547c53b6a0a7701
Fixes https://gitlab.gnome.org/GNOME/vala/issues/918
Rico Tzschichholz [Tue, 3 Mar 2020 13:55:41 +0000 (14:55 +0100)]
Release 0.48.0
Rico Tzschichholz [Tue, 3 Mar 2020 13:54:50 +0000 (14:54 +0100)]
manual: Update from wiki.gnome.org