]> git.ipfire.org Git - thirdparty/vala.git/log
thirdparty/vala.git
2 months agoUpdate expected C sources tintou/gdbus-properties
Rico Tzschichholz [Sat, 7 Aug 2021 14:43:00 +0000 (16:43 +0200)] 
Update expected C sources

2 months agogdbus: Bind properties with the GDBusProxy directly
Corentin Noël [Tue, 7 Apr 2020 21:50:55 +0000 (23:50 +0200)] 
gdbus: Bind properties with the GDBusProxy directly

2 months agocodegen: Expose some GValue conversion API for properties
Corentin Noël [Tue, 7 Apr 2020 21:50:55 +0000 (23:50 +0200)] 
codegen: Expose some GValue conversion API for properties

2 months agolibvaladoc: Do not error-out on doc:format
Corentin Noël [Fri, 2 May 2025 21:42:30 +0000 (23:42 +0200)] 
libvaladoc: Do not error-out on doc:format

This is part of the valid .gir file format, just skip it for now.

2 months agocodegen: Set and check GTask source tag
Sergey Bugaev [Sat, 26 Apr 2025 19:16:00 +0000 (22:16 +0300)] 
codegen: Set and check GTask source tag

This is the best practice when writing async code in C.

2 months agotests: Regenerate for the precondition failure change
Sergey Bugaev [Mon, 28 Apr 2025 07:39:42 +0000 (10:39 +0300)] 
tests: Regenerate for the precondition failure change

2 months agocodegen: Return default_value_on_error on precondition failures
Sergey Bugaev [Mon, 28 Apr 2025 07:37:58 +0000 (10:37 +0300)] 
codegen: Return default_value_on_error on precondition failures

This way, we get -1 for integers, G_TYPE_INVALID for GType, etc. The
returned value doesn't really matter since this is an assertion failure
in any case, but this is what's usually done in C code.

2 months agogobject-2.0: Set default_value{,_on_error} for GType
Sergey Bugaev [Mon, 28 Apr 2025 07:34:55 +0000 (10:34 +0300)] 
gobject-2.0: Set default_value{,_on_error} for GType

2 months agocodegen: Propagate default_value_on_error from parent struct
Sergey Bugaev [Mon, 28 Apr 2025 07:31:16 +0000 (10:31 +0300)] 
codegen: Propagate default_value_on_error from parent struct

Like it's already done for default_value. This in particular should
impact tests/structs/gtype-base-struct.vala when we set the default
values for GLib.Type.

3 months agolibnotify: Update to 0.8.4
Rico Tzschichholz [Fri, 25 Apr 2025 08:11:31 +0000 (10:11 +0200)] 
libnotify: Update to 0.8.4

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

3 months agolibxml-2.0: Add more fields to ParserCtxt
Corentin Noël [Thu, 10 Apr 2025 12:33:21 +0000 (14:33 +0200)] 
libxml-2.0: Add more fields to ParserCtxt

The fields are actually required when using the ParserCtxt.

3 months agogtk4: Update to 4.19.1~a9188062
Rico Tzschichholz [Thu, 24 Apr 2025 11:33:53 +0000 (13:33 +0200)] 
gtk4: Update to 4.19.1~a9188062

3 months agogsl: Deprecate gsl_linalg_cholesky_decomp in favour of gsl_linalg_cholesky_decomp1
jordangit [Fri, 21 Mar 2025 09:56:01 +0000 (09:56 +0000)] 
gsl: Deprecate gsl_linalg_cholesky_decomp in favour of gsl_linalg_cholesky_decomp1

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

3 months agoposix: add UTIME_{NOW,OMIT} constants for utimensat
Reuben Thomas [Fri, 18 Apr 2025 12:43:31 +0000 (13:43 +0100)] 
posix: add UTIME_{NOW,OMIT} constants for utimensat

3 months agoglib-2.0: allow FileUtils.open_tmp's first argument to be null
Reuben Thomas [Fri, 18 Apr 2025 12:46:42 +0000 (13:46 +0100)] 
glib-2.0: allow FileUtils.open_tmp's first argument to be null

This is allowed in GLib to use a default template for the file name.

3 months agocodegen: Use g_once_init_{enter,leave}_pointer when targetting glib >= 2.80
Sergey Bugaev [Fri, 18 Apr 2025 10:43:00 +0000 (13:43 +0300)] 
codegen: Use g_once_init_{enter,leave}_pointer when targetting glib >= 2.80

See https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3577

3 months agogirwriter: Don't use instance-parameter inside function elements
Rico Tzschichholz [Tue, 8 Apr 2025 18:52:42 +0000 (20:52 +0200)] 
girwriter: Don't use instance-parameter inside function elements

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

5 months agoSync NEWS from 0.56
Rico Tzschichholz [Sun, 2 Mar 2025 18:57:16 +0000 (19:57 +0100)] 
Sync NEWS from 0.56

5 months agoci: Skip meson dist in flatpak jobs
Jordan Petridis [Sun, 2 Mar 2025 12:37:03 +0000 (14:37 +0200)] 
ci: Skip meson dist in flatpak jobs

5 months agoglib-2.0: Add Regex.escape_nul in GLib
Zhou Qiankang [Wed, 12 Feb 2025 03:30:46 +0000 (11:30 +0800)] 
glib-2.0: Add Regex.escape_nul in GLib

See: https://docs.gtk.org/glib/type_func.Regex.escape_nul.html

Signed-off-by: Zhou Qiankang <wszqkzqk@qq.com>
5 months agovapi: Regenerate for GIR-based bindings to update prefix handling
Rico Tzschichholz [Sat, 1 Mar 2025 18:24:43 +0000 (19:24 +0100)] 
vapi: Regenerate for GIR-based bindings to update prefix handling

5 months agogirparser: Respect given lower_case_cprefix metadata all the way
Rico Tzschichholz [Sat, 1 Mar 2025 18:24:43 +0000 (19:24 +0100)] 
girparser: Respect given lower_case_cprefix metadata all the way

GIR allows to define multiple prefixes in "c:identifier-prefixes".
Vala is blindly taking the first one which worked well so far, but
can go very wrong. So allow overriding this information of the
root namespace for real.

5 months agotests: Prepend $(builddir) to gir file target to increase coverage
Rico Tzschichholz [Thu, 20 Feb 2025 19:44:25 +0000 (20:44 +0100)] 
tests: Prepend $(builddir) to gir file target to increase coverage

5 months agoglib-2.0: Update RegexMatchFlags and RegexCompileFlags's binding to 2.74
Zhou Qiankang [Sun, 16 Feb 2025 03:58:21 +0000 (11:58 +0800)] 
glib-2.0: Update RegexMatchFlags and RegexCompileFlags's binding to 2.74

Signed-off-by: Zhou Qiankang <wszqkzqk@qq.com>
5 months agovaladoc: Sync gir argument handling from valacompiler.vala
Zhou Qiankang [Fri, 17 Jan 2025 14:48:39 +0000 (15:48 +0100)] 
valadoc: Sync gir argument handling from valacompiler.vala

5 months agoUpdate links to GNOME Wiki project and refer to new Vala websites
arujjval [Mon, 25 Nov 2024 14:55:31 +0000 (20:25 +0530)] 
Update links to GNOME Wiki project and refer to new Vala websites

5 months agogirparser: Handle `doc:format` element in root:repository
Rico Tzschichholz [Mon, 17 Feb 2025 17:30:20 +0000 (18:30 +0100)] 
girparser: Handle `doc:format` element in root:repository

See https://gitlab.gnome.org/GNOME/gobject-introspection/-/issues/448

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

6 months agogobject-2.0: Add TypeFlags missing values
Dawid Duma [Fri, 22 Nov 2024 16:05:07 +0000 (17:05 +0100)] 
gobject-2.0: Add TypeFlags missing values

6 months agobuild: Update gitlog-to-changelog to latest upstream
Rico Tzschichholz [Thu, 16 Jan 2025 06:54:39 +0000 (07:54 +0100)] 
build: Update gitlog-to-changelog to latest upstream

From commit 7b08932179d0d6b017f7df01a2ddf6e096b038e3 of
https://git.savannah.gnu.org/cgit/gnulib.git/tree/build-aux/gitlog-to-changelog

9 months agosdl2: Fix missing integer type for JoystickID
Mario Daniel Ruiz Saavedra [Thu, 31 Oct 2024 14:56:39 +0000 (14:56 +0000)] 
sdl2: Fix missing integer type for JoystickID

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

10 months agoflatpak: Switch the branch from 24.08beta to 24.08
Jordan Petridis [Wed, 11 Sep 2024 16:54:26 +0000 (19:54 +0300)] 
flatpak: Switch the branch from 24.08beta to 24.08

Now that it's released and nightly rebased on it.

13 months agoflatpak: Publish the nightly sdk extension for 24.08beta
Jordan Petridis [Sun, 30 Jun 2024 17:41:47 +0000 (20:41 +0300)] 
flatpak: Publish the nightly sdk extension for 24.08beta

And stop building for 22.08

13 months agolibusb-1.0: Fix the LibUSB.HotPlugCb declaration
Ole André Vadla Ravnås [Mon, 24 Jun 2024 12:32:03 +0000 (14:32 +0200)] 
libusb-1.0: Fix the LibUSB.HotPlugCb declaration

It returns an int used to decide whether the callback should be rearmed
or deregistered.

Co-authored-by: Håvard Sørbø <havard@hsorbo.no>
13 months agolibusb-1.0: Fix the LibUSB.TransferCb declaration
Ole André Vadla Ravnås [Wed, 19 Jun 2024 07:19:24 +0000 (09:19 +0200)] 
libusb-1.0: Fix the LibUSB.TransferCb declaration

The target is part of the Transfer object, and is not passed as a
parameter.

Co-authored-by: Håvard Sørbø <havard@hsorbo.no>
13 months agogio-2.0: Improve the {Input,Output}Message bindings
Ole André Vadla Ravnås [Wed, 12 Jun 2024 14:11:41 +0000 (16:11 +0200)] 
gio-2.0: Improve the {Input,Output}Message bindings

Where some in/out fields were incorrectly typed.

Co-authored-by: Håvard Sørbø <havard@hsorbo.no>
14 months agosdl2: Fix CCode.destroy_function of SDL.RWops and usage of SDL.RWops.from_file()
Rico Tzschichholz [Tue, 4 Jun 2024 08:48:16 +0000 (10:48 +0200)] 
sdl2: Fix CCode.destroy_function of SDL.RWops and usage of SDL.RWops.from_file()

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

14 months agotests: Update property notify test for G_PARAM_EXPLICIT_NOTIFY
Rico Tzschichholz [Mon, 27 May 2024 17:02:10 +0000 (19:02 +0200)] 
tests: Update property notify test for G_PARAM_EXPLICIT_NOTIFY

GLib 2.42 is mandatory for some time.

14 months agocodegen: Fix conditional expression with only one void side
Rico Tzschichholz [Sun, 19 May 2024 17:06:12 +0000 (19:06 +0200)] 
codegen: Fix conditional expression with only one void side

Found by -pedantic-errors

14 months agotest: Avoid redeclaration of gint
Rico Tzschichholz [Sun, 19 May 2024 15:00:08 +0000 (17:00 +0200)] 
test: Avoid redeclaration of gint

In addition to e4fe55735fb3e151dd6340b6d3fb8acca38193a4

Found by -pedantic-errors

14 months agotests: Don't take the chance to conflict with C99 constant of stdbool.h
Rico Tzschichholz [Sat, 18 May 2024 14:22:02 +0000 (16:22 +0200)] 
tests: Don't take the chance to conflict with C99 constant of stdbool.h

14 months agoglib-2.0: Make FileStream.*printf() return int
Rico Tzschichholz [Sat, 18 May 2024 13:48:16 +0000 (15:48 +0200)] 
glib-2.0: Make FileStream.*printf() return int

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

14 months agogirwriter: Write default-value of properties
Rico Tzschichholz [Sat, 18 May 2024 13:45:53 +0000 (15:45 +0200)] 
girwriter: Write default-value of properties

14 months agocodegen: Use correct ctype for result variable in methods in more cases
Rico Tzschichholz [Mon, 6 May 2024 12:20:21 +0000 (14:20 +0200)] 
codegen: Use correct ctype for result variable in methods in more cases

15 months agoglib-2.0: Add missing CCode.array_null_terminated attributes to IConv.iconv()
Rico Tzschichholz [Thu, 2 May 2024 08:05:26 +0000 (10:05 +0200)] 
glib-2.0: Add missing CCode.array_null_terminated attributes to IConv.iconv()

15 months agoflatpak: Update dependencies
Lorenz Wildberg [Thu, 25 Apr 2024 15:57:59 +0000 (17:57 +0200)] 
flatpak: Update dependencies

15 months agoglib-2.0: Fix the binding of `get_console_charset`
Zhou Qiankang [Thu, 25 Apr 2024 16:53:53 +0000 (00:53 +0800)] 
glib-2.0: Fix the binding of `get_console_charset`

The parameters of `g_get_console_charset` is `const char**`, the same as `g_get_charset`, is a NUL terminated UTF-8 string.

15 months agodocs: Update build dependencies
Rico Tzschichholz [Thu, 25 Apr 2024 13:20:44 +0000 (15:20 +0200)] 
docs: Update build dependencies

15 months agobuild: Drop obsolete references to xsltproc
Rico Tzschichholz [Thu, 25 Apr 2024 13:18:41 +0000 (15:18 +0200)] 
build: Drop obsolete references to xsltproc

15 months agodocs: Bump vala version references in README.md
Rico Tzschichholz [Thu, 25 Apr 2024 13:11:46 +0000 (15:11 +0200)] 
docs: Bump vala version references in README.md

15 months agovala, libvaladoc: Fix color support detection in log reporting
Zhou Qiankang [Thu, 25 Apr 2024 09:45:47 +0000 (17:45 +0800)] 
vala, libvaladoc: Fix color support detection in log reporting

Use `GLib.Log.writer_supports_color` to replace vala's implementation `is_atty`

15 months agovapi: Pass --girdir $GIRDIR to vapigen
Rico Tzschichholz [Tue, 23 Apr 2024 13:19:20 +0000 (15:19 +0200)] 
vapi: Pass --girdir $GIRDIR to vapigen

Otherwise only vala's installation prefix is used to resolve dependencies
for the given gir file.

15 months agovala: Don't allow inheritance of compact class from non-compact class master
Rico Tzschichholz [Mon, 22 Apr 2024 17:53:14 +0000 (19:53 +0200)] 
vala: Don't allow inheritance of compact class from non-compact class

15 months agogstreamer-1.0: Skip ParamSpecArray and ParamSpecFraction
Rico Tzschichholz [Mon, 22 Apr 2024 17:53:14 +0000 (19:53 +0200)] 
gstreamer-1.0: Skip ParamSpecArray and ParamSpecFraction

15 months agoglib-2.0: Improve binding of g_strfreev()
Rico Tzschichholz [Sun, 21 Apr 2024 14:29:03 +0000 (16:29 +0200)] 
glib-2.0: Improve binding of g_strfreev()

15 months agovala: Unify check of type-parameters in GenericSymbol types
Rico Tzschichholz [Sun, 21 Apr 2024 11:36:29 +0000 (13:36 +0200)] 
vala: Unify check of type-parameters in GenericSymbol types

15 months agognu: fix to just-introduced binding for relocate
Reuben Thomas [Sat, 20 Apr 2024 17:35:29 +0000 (19:35 +0200)] 
gnu: fix to just-introduced binding for relocate

15 months agognu: add binding for 'relocate' APIs
Reuben Thomas [Fri, 19 Apr 2024 15:49:08 +0000 (17:49 +0200)] 
gnu: add binding for 'relocate' APIs

15 months agoSync NEWS from 0.56
Rico Tzschichholz [Fri, 19 Apr 2024 11:09:49 +0000 (13:09 +0200)] 
Sync NEWS from 0.56

15 months agognu: add binding for flock(2) and its constants
Reuben Thomas [Sat, 6 Apr 2024 13:01:27 +0000 (15:01 +0200)] 
gnu: add binding for flock(2) and its constants

15 months agovala: Inherit important attributes for Property backing field
Rico Tzschichholz [Tue, 16 Apr 2024 11:01:23 +0000 (13:01 +0200)] 
vala: Inherit important attributes for Property backing field

15 months agocodegen: Only handle null-terminated array as such if there is no length given
Rico Tzschichholz [Tue, 16 Apr 2024 11:01:23 +0000 (13:01 +0200)] 
codegen: Only handle null-terminated array as such if there is no length given

15 months agocodegen: Refactor and cache parameter in loop
Rico Tzschichholz [Tue, 16 Apr 2024 11:01:23 +0000 (13:01 +0200)] 
codegen: Refactor and cache parameter in loop

15 months agovala: Report invalid type in property assignment attempt
Rico Tzschichholz [Mon, 15 Apr 2024 06:40:05 +0000 (08:40 +0200)] 
vala: Report invalid type in property assignment attempt

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

15 months agovala: Point to the invalid initializer on error
Rico Tzschichholz [Mon, 15 Apr 2024 06:38:39 +0000 (08:38 +0200)] 
vala: Point to the invalid initializer on error

16 months agoglib-2.0: Add SPACING_MARK, deprecate COMBINING_MARK
Reuben Thomas [Fri, 5 Apr 2024 13:16:18 +0000 (14:16 +0100)] 
glib-2.0: Add SPACING_MARK, deprecate COMBINING_MARK

16 months agoglib-2.0: Avoid unnecessary copying operations in FileStream.read_line()
Zhou Qiankang [Mon, 1 Apr 2024 09:02:42 +0000 (17:02 +0800)] 
glib-2.0: Avoid unnecessary copying operations in FileStream.read_line()

16 months agocodegen: Properly pass through a null-terminated out argument
Rico Tzschichholz [Mon, 25 Mar 2024 14:34:52 +0000 (15:34 +0100)] 
codegen: Properly pass through a null-terminated out argument

16 months agocodegen: Update array length variable passed to null-terminated ref parameter
Rico Tzschichholz [Mon, 25 Mar 2024 14:34:52 +0000 (15:34 +0100)] 
codegen: Update array length variable passed to null-terminated ref parameter

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

16 months agovala, codegen: Add `o` modifier to regex literal
Zhou Qiankang [Tue, 12 Mar 2024 06:38:08 +0000 (14:38 +0800)] 
vala, codegen: Add `o` modifier to regex literal

Use compile flag `G_REGEX_OPTIMIZE` to make use of JIT optimization

16 months agovapi: Regenerate for GIDL-based bindings to pick up gid_t/uid_t fix
Rico Tzschichholz [Fri, 22 Mar 2024 09:51:47 +0000 (10:51 +0100)] 
vapi: Regenerate for GIDL-based bindings to pick up gid_t/uid_t fix

16 months agovapi: Regenerate for GIR-based bindings to pick up pid_t/uid_t fix
Rico Tzschichholz [Fri, 22 Mar 2024 09:36:17 +0000 (10:36 +0100)] 
vapi: Regenerate for GIR-based bindings to pick up pid_t/uid_t fix

16 months agotests: Extend off_t/time_t test cases to increase coverage
Rico Tzschichholz [Fri, 22 Mar 2024 09:31:16 +0000 (10:31 +0100)] 
tests: Extend off_t/time_t test cases to increase coverage

16 months agogirparser: Recognize usage of dev_t/gid_t/pid_t/uid_t/socklen_t and don't rely on...
Rico Tzschichholz [Mon, 18 Mar 2024 15:23:24 +0000 (16:23 +0100)] 
girparser: Recognize usage of dev_t/gid_t/pid_t/uid_t/socklen_t and don't rely on given GIR type

16 months agoparser: Turn `static const` declaration warning into an error
Rico Tzschichholz [Mon, 18 Mar 2024 11:19:00 +0000 (12:19 +0100)] 
parser: Turn `static const` declaration warning into an error

16 months agoparser: Perform proper checks of symbol modifiers
Rico Tzschichholz [Mon, 18 Mar 2024 11:12:14 +0000 (12:12 +0100)] 
parser: Perform proper checks of symbol modifiers

16 months agoparser: Perform proper checks of member modifiers
Rico Tzschichholz [Sat, 16 Mar 2024 00:02:06 +0000 (01:02 +0100)] 
parser: Perform proper checks of member modifiers

16 months agovala: Correctly use Path.build_path()
Simon McVittie [Tue, 19 Mar 2024 02:13:52 +0000 (02:13 +0000)] 
vala: Correctly use Path.build_path()

The first argument to Path.build_path() is a separator, and for it to be
practically useful, at least two subsequent arguments are needed.

Also to find GIR XML in /usr/share we should make the second argument be
an absolute path.

16 months agoparser: Allow declaration of static nested methods (local functions)
Rico Tzschichholz [Fri, 15 Mar 2024 13:14:56 +0000 (14:14 +0100)] 
parser: Allow declaration of static nested methods (local functions)

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

16 months agotests: Add -Werror=null-dereference flag
Rico Tzschichholz [Thu, 14 Mar 2024 15:07:03 +0000 (16:07 +0100)] 
tests: Add -Werror=null-dereference flag

16 months agocodegen: Add missing initializers for private fields of GSourceFuncs
Rico Tzschichholz [Thu, 14 Mar 2024 09:41:24 +0000 (10:41 +0100)] 
codegen: Add missing initializers for private fields of GSourceFuncs

Found by -Werror=missing-field-initializers

16 months agoSync NEWS from 0.56
Rico Tzschichholz [Thu, 14 Mar 2024 09:09:30 +0000 (10:09 +0100)] 
Sync NEWS from 0.56

16 months agogirparser: Recognize usage of off_t and don't rely on given GIR type
Rico Tzschichholz [Wed, 13 Mar 2024 07:46:56 +0000 (08:46 +0100)] 
girparser: Recognize usage of off_t and don't rely on given GIR type

16 months agovapi: Regenerate for GIR-based bindings to pick up time_t fix (long vs time_t)
Rico Tzschichholz [Wed, 13 Mar 2024 07:39:17 +0000 (08:39 +0100)] 
vapi: Regenerate for GIR-based bindings to pick up time_t fix (long vs time_t)

16 months agogirparser: Recognize usage of time_t and don't rely on given GIR type
Rico Tzschichholz [Wed, 13 Mar 2024 07:35:42 +0000 (08:35 +0100)] 
girparser: Recognize usage of time_t and don't rely on given GIR type

16 months agogtk4: Preserve compatibility with < 4.14
Rico Tzschichholz [Thu, 7 Mar 2024 16:56:05 +0000 (17:56 +0100)] 
gtk4: Preserve compatibility with < 4.14

Don't prefer new accessor methods for Calendar.day/month/year

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

17 months agogio-2.0: Restore ApplicationCommandLine.print*_literal() to not require 2.80 API
Rico Tzschichholz [Thu, 7 Mar 2024 07:53:03 +0000 (08:53 +0100)] 
gio-2.0: Restore ApplicationCommandLine.print*_literal() to not require 2.80 API

17 months agogmodule-2.0: Do not mark `Module.open` as deprecated
Zhou Qiankang [Wed, 6 Mar 2024 09:41:50 +0000 (17:41 +0800)] 
gmodule-2.0: Do not mark `Module.open` as deprecated

17 months agoSync NEWS from 0.56
Rico Tzschichholz [Mon, 4 Mar 2024 11:42:32 +0000 (12:42 +0100)] 
Sync NEWS from 0.56

17 months agogio-2.0: Fix pointer-sign errors of some uint8[]-typed paramters
Rico Tzschichholz [Sun, 3 Mar 2024 15:47:51 +0000 (16:47 +0100)] 
gio-2.0: Fix pointer-sign errors of some uint8[]-typed paramters

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

17 months agogirparser: Don't discard explictly given ctype of parameters
Rico Tzschichholz [Sun, 3 Mar 2024 15:53:35 +0000 (16:53 +0100)] 
girparser: Don't discard explictly given ctype of parameters

17 months agotests: Add -Werror=pointer-sign flag
Rico Tzschichholz [Sun, 3 Mar 2024 11:31:10 +0000 (12:31 +0100)] 
tests: Add -Werror=pointer-sign flag

17 months agocodegen: Don't use pre-assigned *_parent_iface field if an instance is given
Rico Tzschichholz [Sat, 24 Feb 2024 15:59:23 +0000 (16:59 +0100)] 
codegen: Don't use pre-assigned *_parent_iface field if an instance is given

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

17 months agogtk4: Update to 4.13.9~f46fb7c6
Rico Tzschichholz [Thu, 22 Feb 2024 17:41:48 +0000 (18:41 +0100)] 
gtk4: Update to 4.13.9~f46fb7c6

17 months agogio-2.0,gmodule-2.0: Update from 2.79.x git
Rico Tzschichholz [Thu, 22 Feb 2024 18:16:03 +0000 (19:16 +0100)] 
gio-2.0,gmodule-2.0: Update from 2.79.x git

17 months agovala: Follow the logic of GIrParser.locate_gir() to find gir files
Rico Tzschichholz [Wed, 21 Feb 2024 10:49:10 +0000 (11:49 +0100)] 
vala: Follow the logic of GIrParser.locate_gir() to find gir files

This adds the abilitiy to retrieve GI_GIRDIR from the enviroment,
e.g. while passed to ./configure

See https://gitlab.gnome.org/GNOME/gobject-introspection/merge_requests/258

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

17 months agovala: Add CodeContext.pkg_config_variable() helper
Rico Tzschichholz [Mon, 5 Feb 2024 14:53:27 +0000 (15:53 +0100)] 
vala: Add CodeContext.pkg_config_variable() helper

17 months agogirparser: Issue a warning for `record` inside `transparent union`
Rico Tzschichholz [Tue, 20 Feb 2024 12:06:17 +0000 (13:06 +0100)] 
girparser: Issue a warning for `record` inside `transparent union`

This prevents aborting on a fatal error

17 months agolibvaladoc: Fix build with graphviz >= 10.0.1
Sudhanshu Tiwari [Thu, 15 Feb 2024 10:09:14 +0000 (15:39 +0530)] 
libvaladoc: Fix build with graphviz >= 10.0.1

Replaced TRUE with 1

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

18 months agov4l2: Fix FrameivalEnum.stepwise type mismatch with v4l2_frmivalenum
Sahil Shadwal [Sun, 28 Jan 2024 18:08:32 +0000 (23:38 +0530)] 
v4l2: Fix FrameivalEnum.stepwise type mismatch with v4l2_frmivalenum

Thanks to Pacer Ecks

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

18 months agocodegen: Emit diagnostic pragmas for GCC 14, Clang 16 compatibility
Florian Weimer [Fri, 19 Jan 2024 11:44:23 +0000 (12:44 +0100)] 
codegen: Emit diagnostic pragmas for GCC 14, Clang 16 compatibility

GCC 14 refuses to compile C sources with certain type errors, to
provide prompt feedback to programmers about mistakes.
Vala does not have the required information for const qualifiers
of parameters and return values which leads to incompatible-pointer
warnings/errors.

As a stop-gap measure, this commit introduces pragmata to turn the
relevant GCC/Clang diagnostics into warnings.  For experimentation,
this can be avoided at C compilation time by defining VALA_STRICT_C.

Clang 16 is broadly similar, except that it is not possible to
turn the errors into warnings using #pragma.  They have to be disabled
completely.  In Clang 16 and 17, -Wincompatible-pointer-types is not
an error yet, but that is likely to change in future Clang versions,
so this commit disables this warning, too.  Another error,
-Wincompatible-function-pointer-types has been split from that,
and needs to be disabled.

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