]> git.ipfire.org Git - thirdparty/vala.git/log
thirdparty/vala.git
5 years agovala: Don't prepend "unowned" in VarType and leave that to the CodeWriter
Rico Tzschichholz [Mon, 25 Jan 2021 20:11:55 +0000 (21:11 +0100)] 
vala: Don't prepend "unowned" in VarType and leave that to the CodeWriter

5 years agocodewriter: Append new-line for nested block statements
Rico Tzschichholz [Mon, 25 Jan 2021 20:11:55 +0000 (21:11 +0100)] 
codewriter: Append new-line for nested block statements

5 years agovala: Apply stricter condition for lambda to delegate assignment
Rico Tzschichholz [Sat, 23 Jan 2021 16:29:44 +0000 (17:29 +0100)] 
vala: Apply stricter condition for lambda to delegate assignment

This moves an internal codegen error to the semantic-analyzer.

5 years agocodegen: Clean up expression casts in CCodeAssignmentModule.visit_assignment()
Rico Tzschichholz [Sat, 23 Jan 2021 16:29:44 +0000 (17:29 +0100)] 
codegen: Clean up expression casts in CCodeAssignmentModule.visit_assignment()

5 years agovala: Avoid critical when trying to use symbol_reference of ElementAccess
Ole André Vadla Ravnås [Fri, 22 Jan 2021 01:40:06 +0000 (02:40 +0100)] 
vala: Avoid critical when trying to use symbol_reference of ElementAccess

Regression of 6e7be51cb5455e9c5c721d4ba5121a6ab04673dd

5 years agotests: Add more "parser" tests to increase coverage
Rico Tzschichholz [Thu, 21 Jan 2021 16:40:02 +0000 (17:40 +0100)] 
tests: Add more "parser" tests to increase coverage

5 years agovala: Improve prototype-string of CallableType
Rico Tzschichholz [Thu, 14 Mar 2019 17:07:28 +0000 (18:07 +0100)] 
vala: Improve prototype-string of CallableType

5 years agoUpdate THANKS from git log
Rico Tzschichholz [Wed, 20 Jan 2021 12:37:04 +0000 (13:37 +0100)] 
Update THANKS from git log

5 years agovaladoc: Replace png icons with elementary's svg version
Rico Tzschichholz [Wed, 20 Jan 2021 14:27:16 +0000 (15:27 +0100)] 
valadoc: Replace png icons with elementary's svg version

These match what was introduced by 8af8158c106eaafe12a628514f74e5788274d8d2

The icons were written by Daniel Foré for valadoc.org. They were taken from
https://github.com/Valadoc/valadoc-org

5 years agovapi: Update GIR-based bindings
Rico Tzschichholz [Wed, 20 Jan 2021 08:42:32 +0000 (09:42 +0100)] 
vapi: Update GIR-based bindings

5 years agogstreamer: Update from 1.19.0+ git master
Rico Tzschichholz [Wed, 20 Jan 2021 08:42:32 +0000 (09:42 +0100)] 
gstreamer: Update from 1.19.0+ git master

5 years agogtk4: Update to 4.0.2
Rico Tzschichholz [Wed, 20 Jan 2021 08:42:32 +0000 (09:42 +0100)] 
gtk4: Update to 4.0.2

5 years agogirparser: Discover our very own array length fields
Rico Tzschichholz [Tue, 19 Jan 2021 20:56:50 +0000 (21:56 +0100)] 
girparser: Discover our very own array length fields

5 years agovala: Make Class.is_compat/is_immutable/is_singleton read-only
Rico Tzschichholz [Tue, 19 Jan 2021 20:56:50 +0000 (21:56 +0100)] 
vala: Make Class.is_compat/is_immutable/is_singleton read-only

5 years agolibvaladoc: Correctly retrieve value for Api.Class.is_compact
Rico Tzschichholz [Tue, 19 Jan 2021 20:56:50 +0000 (21:56 +0100)] 
libvaladoc: Correctly retrieve value for Api.Class.is_compact

5 years agoAdd support for 'opaque' compact classes
Simon Werbeck [Thu, 19 Mar 2020 14:20:39 +0000 (15:20 +0100)] 
Add support for 'opaque' compact classes

This change intruduces a new attribute switch [Compact (opaque = true)]
which allows to completely hide the implementation of a compact class.
This is especially useful for libraries when maintaining a stable abi.

An 'opaque' compact class exposes no struct definition in the generated
c header, only a typedef is provided. As such, certain requirements
apply for members of such classes:
- Access to instance fields must be either private or internal.
- No abstract/virtual methods or properties are allowed.

Fixes https://gitlab.gnome.org/GNOME/vala/issues/1129

5 years agogirwriter: Write instance-parameter elements
Rico Tzschichholz [Mon, 18 Jan 2021 14:38:51 +0000 (15:38 +0100)] 
girwriter: Write instance-parameter elements

Fixes https://gitlab.gnome.org/GNOME/vala/issues/1128

5 years agotests: Extend "girparser" test and use vapigen to parse generated gir
Rico Tzschichholz [Mon, 18 Jan 2021 14:38:51 +0000 (15:38 +0100)] 
tests: Extend "girparser" test and use vapigen to parse generated gir

5 years agovala: Let method representing property accessor inherit GIR.visible attribute
Rico Tzschichholz [Mon, 18 Jan 2021 14:38:51 +0000 (15:38 +0100)] 
vala: Let method representing property accessor inherit GIR.visible attribute

5 years agovala: Set this_parameter of method representing property accessor
Rico Tzschichholz [Mon, 18 Jan 2021 14:38:51 +0000 (15:38 +0100)] 
vala: Set this_parameter of method representing property accessor

5 years agotests: Add more invalid "GtkTemplate" tests to increase coverage
Rico Tzschichholz [Sun, 17 Jan 2021 12:10:13 +0000 (13:10 +0100)] 
tests: Add more invalid "GtkTemplate" tests to increase coverage

5 years agovala: Don't allow assigning GtkChild fields/properties
Rico Tzschichholz [Sat, 16 Jan 2021 16:11:14 +0000 (17:11 +0100)] 
vala: Don't allow assigning GtkChild fields/properties

These are handled exclusively by GtkBuilder

See https://gitlab.gnome.org/GNOME/vala/issues/1121

5 years agovala: GtkChild fields/properties must be declared as unowned
Rico Tzschichholz [Sat, 16 Jan 2021 09:05:30 +0000 (10:05 +0100)] 
vala: GtkChild fields/properties must be declared as unowned

The backing field won't be assigned to hold a dedicated reference.
gtk_widget_class_bind_template_child_full will make it point to the
instance owned by GtkBuilder.

This avoids doing a rogue (but safe) call of _g_object_unref0 on already
disposed child.

Fixes https://gitlab.gnome.org/GNOME/vala/issues/1121

5 years agolibvaladoc/html: Don't sort struct fields to keep their original order
Rico Tzschichholz [Fri, 15 Jan 2021 16:00:52 +0000 (17:00 +0100)] 
libvaladoc/html: Don't sort struct fields to keep their original order

This follows their special handling done in Codewriter.visit_struct().

In addition to a336d75586acb534aff55ca86425eb8f3aa45de4

5 years agolibvaladoc: Fix typos copyright year
Reuben Thomas [Thu, 14 Jan 2021 23:12:23 +0000 (23:12 +0000)] 
libvaladoc: Fix typos copyright year

5 years agoglib-2.0: Improve type of OptionEntry.flags field
Reuben Thomas [Wed, 13 Jan 2021 21:12:48 +0000 (21:12 +0000)] 
glib-2.0: Improve type of OptionEntry.flags field

5 years agoRegenerate GIR-based bindings
Rico Tzschichholz [Thu, 14 Jan 2021 16:55:34 +0000 (17:55 +0100)] 
Regenerate GIR-based bindings

5 years agogdk-pixbuf-2.0: Update to 2.42.3~
Rico Tzschichholz [Thu, 14 Jan 2021 16:55:34 +0000 (17:55 +0100)] 
gdk-pixbuf-2.0: Update to 2.42.3~

5 years agogirparser: Minor improvement to field getter detection
Rico Tzschichholz [Thu, 14 Jan 2021 16:55:34 +0000 (17:55 +0100)] 
girparser: Minor improvement to field getter detection

Allow DataType.compatible() to be called without initialized SemanticAnalyzer

Additionally report a warning if field collides with method

5 years agogirparser: Handle anonymous delegate not backed by virtual-method or signal
Rico Tzschichholz [Thu, 14 Jan 2021 16:55:34 +0000 (17:55 +0100)] 
girparser: Handle anonymous delegate not backed by virtual-method or signal

5 years agowebkit2gtk-4.0: Update to 2.31.1
Rico Tzschichholz [Tue, 12 Jan 2021 13:40:38 +0000 (14:40 +0100)] 
webkit2gtk-4.0: Update to 2.31.1

5 years agovala: Improve detection of duplicate package source files
Rico Tzschichholz [Tue, 12 Jan 2021 09:24:13 +0000 (10:24 +0100)] 
vala: Improve detection of duplicate package source files

5 years agoSync NEWS from 0.50
Rico Tzschichholz [Sun, 10 Jan 2021 16:26:32 +0000 (17:26 +0100)] 
Sync NEWS from 0.50

5 years agogio-2.0: Update to 2.67.2+46097e9b
Rico Tzschichholz [Sat, 9 Jan 2021 17:55:36 +0000 (18:55 +0100)] 
gio-2.0: Update to 2.67.2+46097e9b

5 years agogtk4: Update to 4.0.1
Rico Tzschichholz [Sat, 9 Jan 2021 17:54:56 +0000 (18:54 +0100)] 
gtk4: Update to 4.0.1

5 years agocodegen: Fix assignment of casted struct value to property
Rico Tzschichholz [Wed, 6 Jan 2021 11:19:10 +0000 (12:19 +0100)] 
codegen: Fix assignment of casted struct value to property

Usage of address-of operator requires lvalue access. Therefore use a
temporary variable to be passed to property setter.

Fixes https://gitlab.gnome.org/GNOME/vala/issues/1126

5 years agovapi: Update GIR-based bindings
Rico Tzschichholz [Mon, 4 Jan 2021 10:14:31 +0000 (11:14 +0100)] 
vapi: Update GIR-based bindings

5 years agogstreamer: Update from 1.19.0+ git master
Rico Tzschichholz [Mon, 4 Jan 2021 09:45:45 +0000 (10:45 +0100)] 
gstreamer: Update from 1.19.0+ git master

5 years agogio-2.0: Update to 2.67.1+2bd86268
Rico Tzschichholz [Sun, 3 Jan 2021 09:54:31 +0000 (10:54 +0100)] 
gio-2.0: Update to 2.67.1+2bd86268

5 years agogobject-2.0: Add new symbols from 2.68
Rico Tzschichholz [Sun, 3 Jan 2021 09:54:31 +0000 (10:54 +0100)] 
gobject-2.0: Add new symbols from 2.68

5 years agoglib-2.0: Add new symbols from 2.68
Rico Tzschichholz [Sun, 3 Jan 2021 09:54:31 +0000 (10:54 +0100)] 
glib-2.0: Add new symbols from 2.68

5 years agotests: Add "string switch" test to increase coverage
Rico Tzschichholz [Sat, 2 Jan 2021 13:12:11 +0000 (14:12 +0100)] 
tests: Add "string switch" test to increase coverage

5 years agotests: Add more "array field initializer" tests to increase coverage
Rico Tzschichholz [Fri, 1 Jan 2021 16:56:16 +0000 (17:56 +0100)] 
tests: Add more "array field initializer" tests to increase coverage

5 years agocodegen: Don't leak memory on internal value comparison of property setter
Rico Tzschichholz [Fri, 1 Jan 2021 10:10:41 +0000 (11:10 +0100)] 
codegen: Don't leak memory on internal value comparison of property setter

5 years agocodegen: Don't leak memory of already assigned out-parameter on error
Rico Tzschichholz [Thu, 31 Dec 2020 08:55:16 +0000 (09:55 +0100)] 
codegen: Don't leak memory of already assigned out-parameter on error

Fixes https://gitlab.gnome.org/GNOME/vala/issues/1123

5 years agoglib-2.0: Make PtrArray a subclass of GenericArray
Rico Tzschichholz [Mon, 9 Nov 2020 12:59:35 +0000 (13:59 +0100)] 
glib-2.0: Make PtrArray a subclass of GenericArray

5 years agocodegen: Support chain up to simple generics constructor
Simon Werbeck [Tue, 24 Mar 2020 15:47:18 +0000 (16:47 +0100)] 
codegen: Support chain up to simple generics constructor

This allows subclassing bindings like GLib.HashTable and GLib.Sequence
that require implicit DestroyNotify parameters to chain up.

Fixes https://gitlab.gnome.org/GNOME/vala/issues/342

5 years agocodegen: Clean up handling of type parameters in generate_cparameters()
Rico Tzschichholz [Wed, 30 Dec 2020 13:50:05 +0000 (14:50 +0100)] 
codegen: Clean up handling of type parameters in generate_cparameters()

5 years agocodegen: Drop superfluous "method_has_wrapper" helper
Rico Tzschichholz [Wed, 30 Dec 2020 13:50:05 +0000 (14:50 +0100)] 
codegen: Drop superfluous "method_has_wrapper" helper

5 years agocodegen: Use CCodeInvalidExpression instead of place holders
Rico Tzschichholz [Wed, 30 Dec 2020 13:50:05 +0000 (14:50 +0100)] 
codegen: Use CCodeInvalidExpression instead of place holders

5 years agotests: Add "array creation" tests to increase coverage
Rico Tzschichholz [Wed, 30 Dec 2020 13:50:05 +0000 (14:50 +0100)] 
tests: Add "array creation" tests to increase coverage

5 years agoSDL2_image: Add save functions
Mario Daniel Ruiz Saavedra [Thu, 17 Dec 2020 19:22:46 +0000 (19:22 +0000)] 
SDL2_image: Add save functions

Add save functions for JPG and PNG formats.

5 years agogstreamer-1.0: Fix direction of Gst.Iterator.fold() ret parameter
Chris White [Wed, 23 Dec 2020 16:14:51 +0000 (11:14 -0500)] 
gstreamer-1.0: Fix direction of Gst.Iterator.fold() ret parameter

See https://gitlab.gnome.org/GNOME/vala/issues/1014

5 years agogtk4: Update to 4.0.0+0fcf01dd
Rico Tzschichholz [Mon, 28 Dec 2020 19:38:57 +0000 (20:38 +0100)] 
gtk4: Update to 4.0.0+0fcf01dd

5 years agovala: Ownership transfer of inline-allocated array is not allowed
Rico Tzschichholz [Mon, 28 Dec 2020 17:09:04 +0000 (18:09 +0100)] 
vala: Ownership transfer of inline-allocated array is not allowed

Fixes https://gitlab.gnome.org/GNOME/vala/issues/931

5 years agogtk4: Don't rename binding for gtk_css_provider_load_from_data
Rico Tzschichholz [Tue, 22 Dec 2020 14:45:49 +0000 (15:45 +0100)] 
gtk4: Don't rename binding for gtk_css_provider_load_from_data

Fixes https://gitlab.gnome.org/GNOME/vala/issues/1117

5 years agovala: SliceExpression need to return heap-allocated or unowned references
Ulrich Küttler [Tue, 22 Dec 2020 07:59:16 +0000 (08:59 +0100)] 
vala: SliceExpression need to return heap-allocated or unowned references

Fixes https://gitlab.gnome.org/GNOME/vala/issues/1120

5 years agovala: value_type of PointerIndirection expressions must not be owned
Rico Tzschichholz [Mon, 21 Dec 2020 12:52:54 +0000 (13:52 +0100)] 
vala: value_type of PointerIndirection expressions must not be owned

A member-access making the wrong assumption of a previous copy resulted
in a double free.

Fixes https://gitlab.gnome.org/GNOME/vala/issues/1118

5 years agocodewriter: Wrap AddressofExpression and PointerIndirection in parens
Rico Tzschichholz [Mon, 21 Dec 2020 12:52:54 +0000 (13:52 +0100)] 
codewriter: Wrap AddressofExpression and PointerIndirection in parens

5 years agovala: Add missing TraverseVisitor.visit_addressof_expression()
Rico Tzschichholz [Mon, 21 Dec 2020 12:52:54 +0000 (13:52 +0100)] 
vala: Add missing TraverseVisitor.visit_addressof_expression()

5 years agovala: Use common visitor schema for PointerIndirection expressions
Rico Tzschichholz [Mon, 21 Dec 2020 12:52:17 +0000 (13:52 +0100)] 
vala: Use common visitor schema for PointerIndirection expressions

Not doing so breaks assumptions of the CodeWriter leading to a mangled
output.

5 years agoSDL2_ttf: Add some missing methods for the Font class
Mario Daniel Ruiz Saavedra [Wed, 16 Dec 2020 04:17:13 +0000 (23:17 -0500)] 
SDL2_ttf: Add some missing methods for the Font class

Migrate existing methods to use GLib types instead of arrays
(string16, unichar, unichar2) and fix some code style issues.

5 years agogtk4: Update to 4.0
Rico Tzschichholz [Wed, 16 Dec 2020 19:11:22 +0000 (20:11 +0100)] 
gtk4: Update to 4.0

5 years agowebkit2gtk-4.0: Update to 2.30.3
Rico Tzschichholz [Fri, 11 Dec 2020 16:50:28 +0000 (17:50 +0100)] 
webkit2gtk-4.0: Update to 2.30.3

5 years agogstreamer: Update from 1.19.0+ git master
Rico Tzschichholz [Fri, 11 Dec 2020 16:50:28 +0000 (17:50 +0100)] 
gstreamer: Update from 1.19.0+ git master

5 years agogtk4: Update to 3.99.5.1+2d3a3986
Rico Tzschichholz [Fri, 11 Dec 2020 16:50:28 +0000 (17:50 +0100)] 
gtk4: Update to 3.99.5.1+2d3a3986

5 years agogstreamer-1.0: Fix direction of GLib.Value typed parameters
Chris White [Thu, 10 Dec 2020 17:40:30 +0000 (12:40 -0500)] 
gstreamer-1.0: Fix direction of GLib.Value typed parameters

Use `out` for functions that take an uninitialized GLib.Value.
Use `ref` for functions that take a GLib.Value initialized with
a particular type.

Remove unused Gst.ControlBindingConvert

Note that the destination is nullable, but not expressly marked as such,
in gst_value_intersect, gst_value_subtract and
gst_message_parse_property_notify.

Fixes https://gitlab.gnome.org/GNOME/vala/issues/1014

5 years agovapi: Add enchant-2 bindings for Enchant 2.x
Reuben Thomas [Mon, 7 Dec 2020 21:42:47 +0000 (21:42 +0000)] 
vapi: Add enchant-2 bindings for Enchant 2.x

5 years agovala: Report an error if gio-2.0 is missing for DBus support
Rico Tzschichholz [Thu, 3 Dec 2020 18:44:06 +0000 (19:44 +0100)] 
vala: Report an error if gio-2.0 is missing for DBus support

5 years agoglib-2.0: Bind assert_cmp* functions
Christopher White [Sat, 28 Nov 2020 17:47:41 +0000 (12:47 -0500)] 
glib-2.0: Bind assert_cmp* functions

Add assert_cmpstr, assert_cmpint, assert_cmpuint, assert_cmphex,
assert_cmpfloat, assert_cmpfloat_with_epsilon and assert_cmpvariant.

Add enum GLib.CompareOperator which defines the supported operators.

  "g_assert_cmpint(foo,==,1)" translates to "assert_cmpint(foo, EQ, 1)"

Based on patch by Luca Bruno

Fixes https://gitlab.gnome.org/GNOME/vala/issues/395

5 years agovapi: Add gnu.vapi with binding for getopt_long() and some other GNU APIs
Reuben Thomas [Tue, 10 Nov 2020 18:22:08 +0000 (18:22 +0000)] 
vapi: Add gnu.vapi with binding for getopt_long() and some other GNU APIs

5 years agogtk4: Use correct cheader_include for wayland/x11 gdk backend
Rico Tzschichholz [Sat, 28 Nov 2020 08:06:45 +0000 (09:06 +0100)] 
gtk4: Use correct cheader_include for wayland/x11 gdk backend

Fixes https://gitlab.gnome.org/GNOME/vala/issues/1112

5 years agoglib-2.0: Add GLib.[S]List.is_empty() convenience methods for non-null
Rico Tzschichholz [Wed, 25 Nov 2020 12:29:51 +0000 (13:29 +0100)] 
glib-2.0: Add GLib.[S]List.is_empty() convenience methods for non-null

5 years agoSync NEWS from 0.50
Rico Tzschichholz [Thu, 19 Nov 2020 15:07:42 +0000 (16:07 +0100)] 
Sync NEWS from 0.50

5 years agomanual: Update from wiki.gnome.org
Rico Tzschichholz [Thu, 19 Nov 2020 13:35:23 +0000 (14:35 +0100)] 
manual: Update from wiki.gnome.org

5 years agogio-2.0: Update to 2.67.0+6e9ed964
Rico Tzschichholz [Thu, 19 Nov 2020 11:52:49 +0000 (12:52 +0100)] 
gio-2.0: Update to 2.67.0+6e9ed964

5 years agogstreamer: Update from 1.19.0+ git master
Rico Tzschichholz [Thu, 19 Nov 2020 11:51:59 +0000 (12:51 +0100)] 
gstreamer: Update from 1.19.0+ git master

5 years agogtk4: Update to 3.99.4+7551f85d
Rico Tzschichholz [Thu, 19 Nov 2020 11:39:17 +0000 (12:39 +0100)] 
gtk4: Update to 3.99.4+7551f85d

5 years agocodegen: Apply CCodeModifiers.PRINTF to "string_printf" (POSIX)
Rico Tzschichholz [Sun, 15 Nov 2020 15:58:15 +0000 (16:58 +0100)] 
codegen: Apply CCodeModifiers.PRINTF to "string_printf" (POSIX)

Found by clang with "posix/string-printf" test

5 years agoccode: Use __attribute__ replacements of G_GNUC_* for posix profile
Rico Tzschichholz [Sun, 15 Nov 2020 15:58:15 +0000 (16:58 +0100)] 
ccode: Use __attribute__ replacements of G_GNUC_* for posix profile

5 years agotests: Add "translated string constant" test to increase coverage
Rico Tzschichholz [Sat, 14 Nov 2020 20:31:03 +0000 (21:31 +0100)] 
tests: Add "translated string constant" test to increase coverage

5 years agotests: Add "constructor with inner error" test to increase coverage
Rico Tzschichholz [Sat, 14 Nov 2020 20:31:03 +0000 (21:31 +0100)] 
tests: Add "constructor with inner error" test to increase coverage

5 years agotests: Add string.printf() test to increase coverage
Rico Tzschichholz [Sat, 14 Nov 2020 20:31:03 +0000 (21:31 +0100)] 
tests: Add string.printf() test to increase coverage

5 years agotests: Add more "delegate" tests to increase coverage
Rico Tzschichholz [Sat, 14 Nov 2020 20:31:03 +0000 (21:31 +0100)] 
tests: Add more "delegate" tests to increase coverage

5 years agocodegen: Drop obsolete dedicated handling of property value-parameter
Rico Tzschichholz [Sat, 14 Nov 2020 20:31:03 +0000 (21:31 +0100)] 
codegen: Drop obsolete dedicated handling of property value-parameter

5 years agoRevert errornous git push
Rico Tzschichholz [Sat, 14 Nov 2020 15:13:01 +0000 (16:13 +0100)] 
Revert errornous git push

This reverts commit 9319f309dd97532a3174de995a83884739d70460.
This reverts commit 9ccdd25eaf0c57ac0cb18380b81d76a9d7113f7f.
This reverts commit 6689c356dade08a0d04a4d6f3add15a71125e925.
This reverts commit 4f560d0bb2753bed14b2f0688f2d3e686a39d6ca.

5 years agoDEBUG
Rico Tzschichholz [Sat, 14 Nov 2020 07:19:23 +0000 (08:19 +0100)] 
DEBUG

5 years agovala: More copying of dedicated data-type instances for code-nodes
Rico Tzschichholz [Fri, 13 Nov 2020 21:51:53 +0000 (22:51 +0100)] 
vala: More copying of dedicated data-type instances for code-nodes

5 years agovala: Require a valid DataType instance for every TargetValue
Rico Tzschichholz [Fri, 13 Nov 2020 20:59:12 +0000 (21:59 +0100)] 
vala: Require a valid DataType instance for every TargetValue

5 years agocodegen: Use Expression.target_type/value_type in visit_cast_expression()
Rico Tzschichholz [Sat, 14 Nov 2020 11:23:24 +0000 (12:23 +0100)] 
codegen: Use Expression.target_type/value_type in visit_cast_expression()

CastExpression.type_reference is meant to hold the actual target type.

5 years agocodegen: Improve GValueModule.visit_cast_expression()
Rico Tzschichholz [Fri, 13 Nov 2020 16:15:37 +0000 (17:15 +0100)] 
codegen: Improve GValueModule.visit_cast_expression()

Re-use the result of the GValue-getter invocation

5 years agovala: Properly restore SemanticAnalyzer.current_symbol to its original value
Rico Tzschichholz [Sat, 14 Nov 2020 14:55:10 +0000 (15:55 +0100)] 
vala: Properly restore SemanticAnalyzer.current_symbol to its original value

5 years agovala: Make sure parent_symbol for special async parameters is available
Rico Tzschichholz [Fri, 13 Nov 2020 22:55:14 +0000 (23:55 +0100)] 
vala: Make sure parent_symbol for special async parameters is available

5 years agovala: Cache async parameter lists of coroutine methods
Rico Tzschichholz [Fri, 13 Nov 2020 22:53:15 +0000 (23:53 +0100)] 
vala: Cache async parameter lists of coroutine methods

5 years agolinux: Add missing struct in cname for Spi.IocTransfer
Arne Hoch [Fri, 13 Nov 2020 12:15:29 +0000 (12:15 +0000)] 
linux: Add missing struct in cname for Spi.IocTransfer

There is no typedef, so "struct spi_ioc_transfer" needs to be used.

5 years agovapigen: Avoid superfluous cast
Rico Tzschichholz [Wed, 11 Nov 2020 16:04:32 +0000 (17:04 +0100)] 
vapigen: Avoid superfluous cast

5 years agovala: Add support for type narrowing
Rico Tzschichholz [Wed, 11 Nov 2020 16:04:32 +0000 (17:04 +0100)] 
vala: Add support for type narrowing

This causes type of given variable to be narrowed for the correspoding
child block of an if-statement.

Foo foo = ...;
if (foo is Bar) {
    // foo represents a non-null Bar instance inside this block
}

This makes conditional-expressions behaving similar.

... = (foo is Bar) ? "foo is instance of Bar here" : "...";

Fixes https://gitlab.gnome.org/GNOME/vala/issues/894

5 years agoposix: Add POSIX, GNU and BSD Regex APIs
Reuben Thomas [Thu, 29 Oct 2020 09:46:28 +0000 (09:46 +0000)] 
posix: Add POSIX, GNU and BSD Regex APIs

The POSIX and GNU APIs are closely related in GNU’s implementation, so it
makes sense to put them here. GNU regex also provides the old BSD APIs,
which are just a couple of function calls, so provide them too.

5 years agoposix: Add freopen binding, as FILE.reopen()
Reuben Thomas [Mon, 2 Nov 2020 22:04:56 +0000 (22:04 +0000)] 
posix: Add freopen binding, as FILE.reopen()

5 years agoglib-2.0: Improve GenericArray.length property
Rico Tzschichholz [Mon, 9 Nov 2020 14:23:51 +0000 (15:23 +0100)] 
glib-2.0: Improve GenericArray.length property