]>
git.ipfire.org Git - thirdparty/vala.git/log
Corentin Noël [Tue, 4 Dec 2018 16:01:06 +0000 (17:01 +0100)]
vala: Trigger understandable errors with GLib target version
Rico Tzschichholz [Mon, 3 Dec 2018 08:05:25 +0000 (09:05 +0100)]
girparser: Skip "source-position" elements
See https://gitlab.gnome.org/GNOME/gobject-introspection/merge_requests/75
Vivek Raj [Sat, 1 Dec 2018 16:10:57 +0000 (17:10 +0100)]
vala: Use clearer error message for automatic properties in interfaces
Fixes https://gitlab.gnome.org/GNOME/vala/issues/656
Rico Tzschichholz [Fri, 30 Nov 2018 15:43:42 +0000 (16:43 +0100)]
codegen: Emit initializer for enum-value into wanted declaration space
Fixes https://gitlab.gnome.org/GNOME/vala/issues/167
Rico Tzschichholz [Fri, 30 Nov 2018 17:43:05 +0000 (18:43 +0100)]
vala: Allow null-type as intializer for static struct fields
See
1a4a14d5550bb23414c0dc66e8951f4b03bd4137
Rico Tzschichholz [Thu, 29 Nov 2018 12:46:21 +0000 (13:46 +0100)]
vala: Report dedicated error for static field/property initializer in struct
This fixes criticals and doesn't rely on codegen error reporting.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/446
Rico Tzschichholz [Thu, 29 Nov 2018 10:09:51 +0000 (11:09 +0100)]
vala: Admit that structs are emtpy even with a static property
See https://gitlab.gnome.org/GNOME/vala/issues/446
Timm Bäder [Thu, 29 Oct 2015 21:09:57 +0000 (22:09 +0100)]
codegen: Mark needle parameter of internal array-contains methods as const
This will avoid some -Wdiscarded-qualifiers warnings.
Fixes https://gitlab.gnome.org/GNOME/vala/issues/504
Rico Tzschichholz [Wed, 28 Nov 2018 12:53:29 +0000 (13:53 +0100)]
vala: Don't emit member access of assignments on static properties
Fixes https://gitlab.gnome.org/GNOME/vala/issues/573
Rico Tzschichholz [Wed, 28 Nov 2018 11:57:58 +0000 (12:57 +0100)]
build: Fix typo in --enable-debug check
Rico Tzschichholz [Tue, 27 Nov 2018 22:53:56 +0000 (23:53 +0100)]
codegen: Add support for delegate parameters in signals
Fixes https://gitlab.gnome.org/GNOME/vala/issues/205
Rico Tzschichholz [Tue, 27 Nov 2018 15:11:29 +0000 (16:11 +0100)]
vala: Make check_arguments() more verbose and don't bail on first error
Fixes https://gitlab.gnome.org/GNOME/vala/issues/438
Rico Tzschichholz [Tue, 27 Nov 2018 13:24:03 +0000 (14:24 +0100)]
vala: Type check for errors require an error expression
Fixes https://gitlab.gnome.org/GNOME/vala/issues/362
Rico Tzschichholz [Tue, 27 Nov 2018 13:18:36 +0000 (14:18 +0100)]
tests: Simplify "errors/errors" test a bit
Rico Tzschichholz [Tue, 23 Oct 2018 21:12:06 +0000 (23:12 +0200)]
vala: Add missing re-check guards for Do/For/WhileStatement and SwitchLabel
Rico Tzschichholz [Tue, 27 Nov 2018 10:08:15 +0000 (11:08 +0100)]
tests: Add and improve "foreach iterator" tests to increase coverage
Rico Tzschichholz [Tue, 27 Nov 2018 09:50:12 +0000 (10:50 +0100)]
tests: Add invalid "switch" tests to increase coverage
Rico Tzschichholz [Sun, 25 Nov 2018 17:27:32 +0000 (18:27 +0100)]
codegen: Actually create method cast for base interface method as needed
Keep the fallback to base method for now.
This will silence some incompatible pointer type warnings.
Jiří Janoušek [Sun, 25 Nov 2018 14:00:34 +0000 (15:00 +0100)]
valadoc: Add --fatal-warnings command line option
To be able to treat warnings as fatal.
Rico Tzschichholz [Sun, 25 Nov 2018 15:26:22 +0000 (16:26 +0100)]
glib-2.0: Cast strcmp to GCompareFunc
This will silence some incompatible pointer type warnings.
Rico Tzschichholz [Sun, 25 Nov 2018 15:01:29 +0000 (16:01 +0100)]
build: Use dedicated PACKAGE_VALADOC_* defines
Rico Tzschichholz [Sun, 25 Nov 2018 12:55:05 +0000 (13:55 +0100)]
libvaladoc: Drop cname parameter from Api.* constructors
Rico Tzschichholz [Sun, 25 Nov 2018 12:50:42 +0000 (13:50 +0100)]
libvaladoc: Clean up Api.Field constructor
Rico Tzschichholz [Sun, 25 Nov 2018 12:46:13 +0000 (13:46 +0100)]
libvaladoc: Clean up Api.Signal constructor
Rico Tzschichholz [Sun, 25 Nov 2018 12:17:54 +0000 (13:17 +0100)]
libvaladoc: Clean up Api.TypeSymbol constructor
Rico Tzschichholz [Sat, 17 Nov 2018 20:50:28 +0000 (21:50 +0100)]
libvaladoc: Clean up Api.ErrorDomain/ErrorCode constructor
Rico Tzschichholz [Wed, 14 Nov 2018 14:54:46 +0000 (15:54 +0100)]
libvaladoc: Clean up Api.Method constructor
Rico Tzschichholz [Wed, 14 Nov 2018 14:47:24 +0000 (15:47 +0100)]
libvaladoc: Clean up Api.Struct constructor
Rico Tzschichholz [Wed, 14 Nov 2018 14:30:25 +0000 (15:30 +0100)]
libvaladoc: Clean up Api.Interface constructor
Rico Tzschichholz [Wed, 14 Nov 2018 14:18:53 +0000 (15:18 +0100)]
libvaladoc: Clean up Api.Class constructor
Rico Tzschichholz [Tue, 12 Jun 2018 12:45:47 +0000 (14:45 +0200)]
libvaladoc: Drop unused to_string() methods
Rico Tzschichholz [Tue, 12 Jun 2018 14:07:12 +0000 (16:07 +0200)]
valadoc: Drop some get_ccode_*() wrappers
Rico Tzschichholz [Tue, 12 Jun 2018 13:41:41 +0000 (15:41 +0200)]
libvaladoc: Clean up Api.Property/PropertyAccessor constructor
Rico Tzschichholz [Tue, 12 Jun 2018 13:41:41 +0000 (15:41 +0200)]
libvaladoc: Clean up Api.TypeReference constructor
Rico Tzschichholz [Fri, 16 Nov 2018 08:05:59 +0000 (09:05 +0100)]
libvaladoc: Drop PropertyAccessorType
Rico Tzschichholz [Sun, 16 Sep 2018 15:49:02 +0000 (17:49 +0200)]
libvaladoc: Drop PropertyBindingType
Rico Tzschichholz [Mon, 17 Sep 2018 10:23:52 +0000 (12:23 +0200)]
libvaladoc: Drop AttributeArgument
Rico Tzschichholz [Sun, 16 Sep 2018 14:38:11 +0000 (16:38 +0200)]
libvaladoc: Drop MethodBindingType
Rico Tzschichholz [Sun, 18 Nov 2018 13:35:05 +0000 (14:35 +0100)]
libvaladoc: Drop Api.Member
Rico Tzschichholz [Sat, 17 Nov 2018 09:11:40 +0000 (10:11 +0100)]
libvaladoc: Drop Api.Browsable
Rico Tzschichholz [Sun, 16 Sep 2018 15:06:57 +0000 (17:06 +0200)]
libvaladoc: Replace SymbolAccessibility with Vala.SymbolAccessibility
Rico Tzschichholz [Tue, 12 Jun 2018 10:46:48 +0000 (12:46 +0200)]
libvaladoc: Replace FormalParameterType with Vala.ParameterDirection
Rico Tzschichholz [Sat, 24 Nov 2018 21:43:21 +0000 (22:43 +0100)]
tests: Add default defines test for VALA_0_XX and GLIB_2_XX
Rico Tzschichholz [Sat, 24 Nov 2018 12:43:21 +0000 (13:43 +0100)]
vala: Move setting of default defines for VALA_0_XX and GLIB_2_XX to Context
This avoids duplicated code and reduces the setup burden for library users.
Also start to warn about redefinitions, especially for our default defines.
Rico Tzschichholz [Thu, 22 Nov 2018 13:58:34 +0000 (14:58 +0100)]
codegen: Don't use temp variable for stack allocated simple type assignment
Rico Tzschichholz [Thu, 22 Nov 2018 11:40:23 +0000 (12:40 +0100)]
vala: Don't replace assignments for local variables with non-null simple-types
Rico Tzschichholz [Thu, 22 Nov 2018 08:21:27 +0000 (09:21 +0100)]
codegen: Don't emit unused temp variable for element access assignments
Regression of
2bcda488725cf28b3c3c358f2c348632bb7ba232
Rico Tzschichholz [Thu, 22 Nov 2018 09:36:47 +0000 (10:36 +0100)]
tests: Extend assignment and array element access tests
Rico Tzschichholz [Thu, 22 Nov 2018 12:05:04 +0000 (13:05 +0100)]
vala: Minor clean up assignment to binary expression transformation
Rico Tzschichholz [Thu, 22 Nov 2018 11:36:21 +0000 (12:36 +0100)]
codegen: Replace if-else-tree with switch
Rico Tzschichholz [Thu, 22 Nov 2018 13:14:28 +0000 (14:14 +0100)]
build: Add --enable-debug configure option
Rico Tzschichholz [Wed, 21 Nov 2018 13:46:37 +0000 (14:46 +0100)]
codegen: Don't emit type_id for enum in non GOBJECT profile
Rico Tzschichholz [Mon, 19 Nov 2018 12:13:24 +0000 (13:13 +0100)]
codegen: Don't explicitly add glib headers, using symbols will do that
See https://gitlab.gnome.org/GNOME/vala/issues/623
Rico Tzschichholz [Wed, 21 Nov 2018 19:20:59 +0000 (20:20 +0100)]
codegen: Improve adding of delegate target type declaration
Rico Tzschichholz [Wed, 21 Nov 2018 16:14:03 +0000 (17:14 +0100)]
codegen: Add required headers for ctor/dtor of compact classes and structs
Rico Tzschichholz [Wed, 21 Nov 2018 14:33:24 +0000 (15:33 +0100)]
codegen: Add type declaration for errors and error domains as needed
Rico Tzschichholz [Wed, 21 Nov 2018 12:03:31 +0000 (13:03 +0100)]
codegen: Add type declarations required for generics as needed
Rico Tzschichholz [Wed, 21 Nov 2018 12:53:42 +0000 (13:53 +0100)]
vala: Use DataType.get_type_arguments()
Rico Tzschichholz [Wed, 21 Nov 2018 12:18:46 +0000 (13:18 +0100)]
vala: Add Delegate/Method/ObjectTypeSymbol.has_type_parameters() and use them
Rico Tzschichholz [Wed, 21 Nov 2018 16:00:19 +0000 (17:00 +0100)]
tests: Add some minimal test cases to catch insufficient headers
Rico Tzschichholz [Wed, 21 Nov 2018 13:52:48 +0000 (14:52 +0100)]
glib-2.0: Drop g_object_unref which is part of gobject-2.0
Rico Tzschichholz [Wed, 21 Nov 2018 09:33:21 +0000 (10:33 +0100)]
codegen: Add target/destroy type declarations for delegates as needed
This improves the support of POSIX profile.
Rico Tzschichholz [Wed, 21 Nov 2018 09:25:32 +0000 (10:25 +0100)]
codegen: Add profile specific delegate target/destroy types
Make sure to use them in all delegate related contexts. This improves the
support of POSIX profile.
Alistair Thomas [Mon, 25 Jun 2018 09:06:10 +0000 (10:06 +0100)]
posix: Add CommandPipe as a sub-type of FILE
A FILE opened with popen() should be closed with pclose()
This is enabled by adding CommandPipe as a sub-class of FILE
Fixes https://gitlab.gnome.org/GNOME/vala/issues/645
Rico Tzschichholz [Tue, 20 Nov 2018 15:38:31 +0000 (16:38 +0100)]
codegen: Make sure to include declarations for delegate typed parameters
So call generate_type_declaration() with all parameter types.
Rico Tzschichholz [Tue, 20 Nov 2018 12:06:15 +0000 (13:06 +0100)]
vapi: Update GIR-based bindings
Rico Tzschichholz [Tue, 20 Nov 2018 12:04:41 +0000 (13:04 +0100)]
gtk+-4.0: Update to 3.94.0+
40ae5c13
Rico Tzschichholz [Tue, 20 Nov 2018 12:03:31 +0000 (13:03 +0100)]
gdk-x11-3.0,gtk+-3.0: Update to 3.24.1+
356f1f59
Rico Tzschichholz [Tue, 20 Nov 2018 12:00:55 +0000 (13:00 +0100)]
gstreamer: Update from 1.15+ git master
Rico Tzschichholz [Tue, 20 Nov 2018 11:31:52 +0000 (12:31 +0100)]
parser: Use comment which was already retrieved in parse_declaration()
This caused to loose comment of first element of enums and error domains.
Regression of
540aa1492c342f482be6838b97f54437f3b776e4
Alistair Thomas [Mon, 19 Nov 2018 23:01:53 +0000 (23:01 +0000)]
docs: Update build instructions and move them to README.md
Updates the links for building Vala and how to bootstrap the build
Alistair Thomas [Mon, 19 Nov 2018 22:36:09 +0000 (22:36 +0000)]
docs: Use Markdown for README and move to README.md
Rico Tzschichholz [Mon, 19 Nov 2018 21:24:34 +0000 (22:24 +0100)]
gobject-2.0: Attribute all symbols with cheader_filename = "glib-object.h"
This is essential to pick up the correct header inclusion while the GLib
namespace of glib-2.0 and gobject-2.0 is merged internally.
Rico Tzschichholz [Mon, 19 Nov 2018 17:06:40 +0000 (18:06 +0100)]
testrunner: Add -Werror=strict-prototypes
Rico Tzschichholz [Mon, 19 Nov 2018 17:22:20 +0000 (18:22 +0100)]
ccode: Add void to delegate typedef declarations without parameters
Found with -Werror=strict-prototypes
Rico Tzschichholz [Mon, 19 Nov 2018 17:05:24 +0000 (18:05 +0100)]
testrunner: Pass buildsystem's CC through to valac
Rico Tzschichholz [Mon, 19 Nov 2018 13:25:14 +0000 (14:25 +0100)]
ccode: Don't allow more than one consecutive empty lines in generated code
Michael James Gratton [Thu, 21 Jun 2018 06:50:00 +0000 (16:50 +1000)]
valadoc: Adjust stylesheet to unbreak Epiphany
Fixes https://gitlab.gnome.org/GNOME/vala/issues/644
Rico Tzschichholz [Mon, 19 Nov 2018 10:58:20 +0000 (11:58 +0100)]
valadoc: Fix a few errors and warnings in stylesheet
Rico Tzschichholz [Sun, 18 Nov 2018 15:28:14 +0000 (16:28 +0100)]
codegen: Add ccode getters for GType functions of Classes and Interfaces
and use them where possible.
Rico Tzschichholz [Sun, 18 Nov 2018 19:37:38 +0000 (20:37 +0100)]
girwriter: Write glib-type attributes for Enums/Structs with type_id
Rico Tzschichholz [Sun, 18 Nov 2018 17:50:29 +0000 (18:50 +0100)]
codegen: Fix canonical string for quark of error domains
Rico Tzschichholz [Sat, 17 Nov 2018 21:21:20 +0000 (22:21 +0100)]
vala: Fix bootstrap with valac >= 0.16.1
Rico Tzschichholz [Sat, 17 Nov 2018 14:02:01 +0000 (15:02 +0100)]
vala: Compact classes don't allow private/class fields and to lock fields
This conveniently moves 2 error reports from codegen to semantic check too.
Rico Tzschichholz [Sat, 17 Nov 2018 12:51:14 +0000 (13:51 +0100)]
vala: Remove superfluous return_if_fail()
Rico Tzschichholz [Sat, 17 Nov 2018 16:22:36 +0000 (17:22 +0100)]
tests: Add "static fields" to compact class to increase coverage
Rico Tzschichholz [Sat, 17 Nov 2018 15:10:04 +0000 (16:10 +0100)]
tests: Add bug specific "lock test"
https://bugzilla.gnome.org/show_bug.cgi?id=629593
Rico Tzschichholz [Sat, 17 Nov 2018 12:49:03 +0000 (13:49 +0100)]
vala: Clean up constructor/destructor API of Class/Struct
Rico Tzschichholz [Sat, 17 Nov 2018 12:34:07 +0000 (13:34 +0100)]
genieparser: Use dedicated Class.add_constructor/destructor() methods
Corentin Noël [Fri, 16 Nov 2018 13:55:00 +0000 (14:55 +0100)]
tests: Add more GLib.Array tests
Corentin Noël [Fri, 16 Nov 2018 07:19:55 +0000 (08:19 +0100)]
codegen: Add destroy function for GLib.Array
Fixes https://gitlab.gnome.org/GNOME/vala/issues/572
Corentin Noël [Fri, 16 Nov 2018 13:55:00 +0000 (14:55 +0100)]
glib-2.0: Avoid double-free in GLib.Array if clear_func is set
Rico Tzschichholz [Fri, 16 Nov 2018 13:26:50 +0000 (14:26 +0100)]
glib-2.0: Add missing Array.set_clear_func() binding
Rico Tzschichholz [Fri, 16 Nov 2018 08:28:48 +0000 (09:28 +0100)]
valadoc: Use new to_string() methods of enumerations in InitializerBuilder
Rico Tzschichholz [Thu, 15 Nov 2018 21:44:46 +0000 (22:44 +0100)]
libvaladoc: Use Scanner.get_identifier_or_keyword() instead of outdated copy
Rico Tzschichholz [Thu, 15 Nov 2018 17:11:29 +0000 (18:11 +0100)]
vala: Use new to_string() methods of enumerations in CodeWriter
Rico Tzschichholz [Thu, 15 Nov 2018 16:37:29 +0000 (17:37 +0100)]
vala: Add AssignmentOperator.to_string()
Rico Tzschichholz [Wed, 14 Nov 2018 13:35:52 +0000 (14:35 +0100)]
vala: Add SymbolAccessibility.to_string()
Rico Tzschichholz [Thu, 15 Nov 2018 16:26:19 +0000 (17:26 +0100)]
vala: Add UnaryOperator.to_string()
Rico Tzschichholz [Thu, 15 Nov 2018 09:57:06 +0000 (10:57 +0100)]
vala: Add BinaryOperator.to_string()