]> git.ipfire.org Git - thirdparty/vala.git/log
thirdparty/vala.git
6 years agotests: Add "emit order" tests
Rico Tzschichholz [Fri, 7 Dec 2018 08:22:20 +0000 (09:22 +0100)] 
tests: Add "emit order" tests

6 years agocodegen: Emit delegate/enum typedefs to type-declaration section 7adb3a45bb8d663c0cfca55af26b7e6f7292b14a
Rico Tzschichholz [Thu, 6 Dec 2018 21:41:43 +0000 (22:41 +0100)] 
codegen: Emit delegate/enum typedefs to type-declaration section

This fixes compilation of circular dependency of delegates with enums,
structs, classes and interfaces.

Resolve interface prerequisites after writing forward declarations to
fix entagled delegate dependencies in them.

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

6 years agotests: Add "subtype cycle" tests to increase coverage
Rico Tzschichholz [Wed, 28 Nov 2018 16:48:55 +0000 (17:48 +0100)] 
tests: Add "subtype cycle" tests to increase coverage

6 years agovala: Break possible endless loop in SymbolResolver.get_type_for_struct()
Florian Brosch [Wed, 10 Sep 2014 11:07:11 +0000 (13:07 +0200)] 
vala: Break possible endless loop in SymbolResolver.get_type_for_struct()

Required to deal with invalid code containing base struct cycles.

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

6 years agocodegen: Interfaces require including "glib-object.h" 6ddab2e11032fe8e05fd290408ea13b09ed81f7b
Rico Tzschichholz [Thu, 6 Dec 2018 14:47:35 +0000 (15:47 +0100)] 
codegen: Interfaces require including "glib-object.h"

6 years agoRelease 0.43.1 bcd7a53cdd69befb674f648418cb84777e8ec456 0.43.1
Rico Tzschichholz [Thu, 6 Dec 2018 09:20:34 +0000 (10:20 +0100)] 
Release 0.43.1

6 years agovapi: Update GIR-based bindings
Rico Tzschichholz [Wed, 5 Dec 2018 07:10:58 +0000 (08:10 +0100)] 
vapi: Update GIR-based bindings

6 years agogtk+-4.0: Update to 3.94.0+8de1ba2c
Rico Tzschichholz [Wed, 5 Dec 2018 07:08:55 +0000 (08:08 +0100)] 
gtk+-4.0: Update to 3.94.0+8de1ba2c

6 years agogstreamer: Update from 1.15+ git master
Rico Tzschichholz [Wed, 5 Dec 2018 07:08:29 +0000 (08:08 +0100)] 
gstreamer: Update from 1.15+ git master

6 years agogirparser: Skip possible docs in transparent union
Rico Tzschichholz [Wed, 5 Dec 2018 06:57:36 +0000 (07:57 +0100)] 
girparser: Skip possible docs in transparent union

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

6 years agovala: Trigger understandable errors with GLib target version 77954eb8f26d96d82c61bc835a539140de8391a6 34/head
Corentin Noël [Tue, 4 Dec 2018 16:01:06 +0000 (17:01 +0100)] 
vala: Trigger understandable errors with GLib target version

6 years agogirparser: Skip "source-position" elements 743228892f209e45bedfb065fd8a7b6c2211d09c
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

6 years agovala: Use clearer error message for automatic properties in interfaces af25bc337936945cfbbe7857a1b02cb3e0bcfa24
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

6 years agocodegen: Emit initializer for enum-value into wanted declaration space b5d3e0f3fdafaf85689896b2ee64e707f1fbc0fe
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

6 years agovala: Allow null-type as intializer for static struct fields
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

6 years agovala: Report dedicated error for static field/property initializer in struct 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

6 years agovala: Admit that structs are emtpy even with a static property
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

6 years agocodegen: Mark needle parameter of internal array-contains methods as const
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

6 years agovala: Don't emit member access of assignments on static properties
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

6 years agobuild: Fix typo in --enable-debug check
Rico Tzschichholz [Wed, 28 Nov 2018 11:57:58 +0000 (12:57 +0100)] 
build: Fix typo in --enable-debug check

6 years agocodegen: Add support for delegate parameters in signals
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

6 years agovala: Make check_arguments() more verbose and don't bail on first error
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

6 years agovala: Type check for errors require an error expression
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

6 years agotests: Simplify "errors/errors" test a bit
Rico Tzschichholz [Tue, 27 Nov 2018 13:18:36 +0000 (14:18 +0100)] 
tests: Simplify "errors/errors" test a bit

6 years agovala: Add missing re-check guards for Do/For/WhileStatement and SwitchLabel
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

6 years agotests: Add and improve "foreach iterator" tests to increase coverage
Rico Tzschichholz [Tue, 27 Nov 2018 10:08:15 +0000 (11:08 +0100)] 
tests: Add and improve "foreach iterator" tests to increase coverage

6 years agotests: Add invalid "switch" 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

6 years agocodegen: Actually create method cast for base interface method as needed
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.

6 years agovaladoc: Add --fatal-warnings command line option b0c0a0ee097ed8968f77cf7b1548e916b7acd8d8
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.

6 years agoglib-2.0: Cast strcmp to GCompareFunc
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.

6 years agobuild: Use dedicated PACKAGE_VALADOC_* defines
Rico Tzschichholz [Sun, 25 Nov 2018 15:01:29 +0000 (16:01 +0100)] 
build: Use dedicated PACKAGE_VALADOC_* defines

6 years agolibvaladoc: Drop cname parameter from Api.* constructors a3298c07befd2ba6ef1e7c088787559f00a79a48
Rico Tzschichholz [Sun, 25 Nov 2018 12:55:05 +0000 (13:55 +0100)] 
libvaladoc: Drop cname parameter from Api.* constructors

6 years agolibvaladoc: Clean up Api.Field constructor
Rico Tzschichholz [Sun, 25 Nov 2018 12:50:42 +0000 (13:50 +0100)] 
libvaladoc: Clean up Api.Field constructor

6 years agolibvaladoc: Clean up Api.Signal constructor
Rico Tzschichholz [Sun, 25 Nov 2018 12:46:13 +0000 (13:46 +0100)] 
libvaladoc: Clean up Api.Signal constructor

6 years agolibvaladoc: Clean up Api.TypeSymbol constructor
Rico Tzschichholz [Sun, 25 Nov 2018 12:17:54 +0000 (13:17 +0100)] 
libvaladoc: Clean up Api.TypeSymbol constructor

6 years agolibvaladoc: Clean up Api.ErrorDomain/ErrorCode constructor
Rico Tzschichholz [Sat, 17 Nov 2018 20:50:28 +0000 (21:50 +0100)] 
libvaladoc: Clean up Api.ErrorDomain/ErrorCode constructor

6 years agolibvaladoc: Clean up Api.Method constructor
Rico Tzschichholz [Wed, 14 Nov 2018 14:54:46 +0000 (15:54 +0100)] 
libvaladoc: Clean up Api.Method constructor

6 years agolibvaladoc: Clean up Api.Struct constructor
Rico Tzschichholz [Wed, 14 Nov 2018 14:47:24 +0000 (15:47 +0100)] 
libvaladoc: Clean up Api.Struct constructor

6 years agolibvaladoc: Clean up Api.Interface constructor
Rico Tzschichholz [Wed, 14 Nov 2018 14:30:25 +0000 (15:30 +0100)] 
libvaladoc: Clean up Api.Interface constructor

6 years agolibvaladoc: Clean up Api.Class constructor
Rico Tzschichholz [Wed, 14 Nov 2018 14:18:53 +0000 (15:18 +0100)] 
libvaladoc: Clean up Api.Class constructor

6 years agolibvaladoc: Drop unused to_string() methods
Rico Tzschichholz [Tue, 12 Jun 2018 12:45:47 +0000 (14:45 +0200)] 
libvaladoc: Drop unused to_string() methods

6 years agovaladoc: Drop some get_ccode_*() wrappers
Rico Tzschichholz [Tue, 12 Jun 2018 14:07:12 +0000 (16:07 +0200)] 
valadoc: Drop some get_ccode_*() wrappers

6 years agolibvaladoc: Clean up Api.Property/PropertyAccessor constructor
Rico Tzschichholz [Tue, 12 Jun 2018 13:41:41 +0000 (15:41 +0200)] 
libvaladoc: Clean up Api.Property/PropertyAccessor constructor

6 years agolibvaladoc: Clean up Api.TypeReference constructor
Rico Tzschichholz [Tue, 12 Jun 2018 13:41:41 +0000 (15:41 +0200)] 
libvaladoc: Clean up Api.TypeReference constructor

6 years agolibvaladoc: Drop PropertyAccessorType
Rico Tzschichholz [Fri, 16 Nov 2018 08:05:59 +0000 (09:05 +0100)] 
libvaladoc: Drop PropertyAccessorType

6 years agolibvaladoc: Drop PropertyBindingType
Rico Tzschichholz [Sun, 16 Sep 2018 15:49:02 +0000 (17:49 +0200)] 
libvaladoc: Drop PropertyBindingType

6 years agolibvaladoc: Drop AttributeArgument
Rico Tzschichholz [Mon, 17 Sep 2018 10:23:52 +0000 (12:23 +0200)] 
libvaladoc: Drop AttributeArgument

6 years agolibvaladoc: Drop MethodBindingType
Rico Tzschichholz [Sun, 16 Sep 2018 14:38:11 +0000 (16:38 +0200)] 
libvaladoc: Drop MethodBindingType

6 years agolibvaladoc: Drop Api.Member
Rico Tzschichholz [Sun, 18 Nov 2018 13:35:05 +0000 (14:35 +0100)] 
libvaladoc: Drop Api.Member

6 years agolibvaladoc: Drop Api.Browsable
Rico Tzschichholz [Sat, 17 Nov 2018 09:11:40 +0000 (10:11 +0100)] 
libvaladoc: Drop Api.Browsable

6 years agolibvaladoc: Replace SymbolAccessibility with Vala.SymbolAccessibility
Rico Tzschichholz [Sun, 16 Sep 2018 15:06:57 +0000 (17:06 +0200)] 
libvaladoc: Replace SymbolAccessibility with Vala.SymbolAccessibility

6 years agolibvaladoc: Replace FormalParameterType with Vala.ParameterDirection
Rico Tzschichholz [Tue, 12 Jun 2018 10:46:48 +0000 (12:46 +0200)] 
libvaladoc: Replace FormalParameterType with Vala.ParameterDirection

6 years agotests: Add default defines test for VALA_0_XX and GLIB_2_XX e3e098f4f389ce857e5ac9099d170869d3ff9973
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

6 years agovala: Move setting of default defines for VALA_0_XX and GLIB_2_XX to Context 3d926c1288b3ec4fd692dd1de6b91fb6c2090183
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.

6 years agocodegen: Don't use temp variable for stack allocated simple type assignment 32ffc862417be39d42a1b8eeb3d0748b3e138aff
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

6 years agovala: Don't replace assignments for local variables with non-null simple-types e701142da4601ece5ca71cc4484728b08969c74e
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

6 years agocodegen: Don't emit unused temp variable for element access assignments bccc3acdbf1d01ee85b3bcdeb6bc5b601674bca7
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

6 years agotests: Extend assignment and array element access tests
Rico Tzschichholz [Thu, 22 Nov 2018 09:36:47 +0000 (10:36 +0100)] 
tests: Extend assignment and array element access tests

6 years agovala: Minor clean up assignment to binary expression transformation
Rico Tzschichholz [Thu, 22 Nov 2018 12:05:04 +0000 (13:05 +0100)] 
vala: Minor clean up assignment to binary expression transformation

6 years agocodegen: Replace if-else-tree with switch
Rico Tzschichholz [Thu, 22 Nov 2018 11:36:21 +0000 (12:36 +0100)] 
codegen: Replace if-else-tree with switch

6 years agobuild: Add --enable-debug configure option
Rico Tzschichholz [Thu, 22 Nov 2018 13:14:28 +0000 (14:14 +0100)] 
build: Add --enable-debug configure option

6 years agocodegen: Don't emit type_id for enum in non GOBJECT profile
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

6 years agocodegen: Don't explicitly add glib headers, using symbols will do that
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

6 years agocodegen: Improve adding of delegate target type declaration
Rico Tzschichholz [Wed, 21 Nov 2018 19:20:59 +0000 (20:20 +0100)] 
codegen: Improve adding of delegate target type declaration

6 years agocodegen: Add required headers for ctor/dtor of compact classes and structs
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

6 years agocodegen: Add type declaration for errors and error domains as needed
Rico Tzschichholz [Wed, 21 Nov 2018 14:33:24 +0000 (15:33 +0100)] 
codegen: Add type declaration for errors and error domains as needed

6 years agocodegen: Add type declarations required for generics as needed
Rico Tzschichholz [Wed, 21 Nov 2018 12:03:31 +0000 (13:03 +0100)] 
codegen: Add type declarations required for generics as needed

6 years agovala: Use DataType.get_type_arguments()
Rico Tzschichholz [Wed, 21 Nov 2018 12:53:42 +0000 (13:53 +0100)] 
vala: Use DataType.get_type_arguments()

6 years agovala: Add Delegate/Method/ObjectTypeSymbol.has_type_parameters() and use them
Rico Tzschichholz [Wed, 21 Nov 2018 12:18:46 +0000 (13:18 +0100)] 
vala: Add Delegate/Method/ObjectTypeSymbol.has_type_parameters() and use them

6 years agotests: Add some minimal test cases to catch insufficient headers
Rico Tzschichholz [Wed, 21 Nov 2018 16:00:19 +0000 (17:00 +0100)] 
tests: Add some minimal test cases to catch insufficient headers

6 years agoglib-2.0: Drop g_object_unref which is part of gobject-2.0
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

6 years agocodegen: Add target/destroy type declarations for delegates as needed
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.

6 years agocodegen: Add profile specific delegate target/destroy types
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.

6 years agoposix: Add CommandPipe as a sub-type of FILE
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

6 years agocodegen: Make sure to include declarations for delegate typed parameters
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.

6 years agovapi: Update GIR-based bindings
Rico Tzschichholz [Tue, 20 Nov 2018 12:06:15 +0000 (13:06 +0100)] 
vapi: Update GIR-based bindings

6 years agogtk+-4.0: Update to 3.94.0+40ae5c13
Rico Tzschichholz [Tue, 20 Nov 2018 12:04:41 +0000 (13:04 +0100)] 
gtk+-4.0: Update to 3.94.0+40ae5c13

6 years agogdk-x11-3.0,gtk+-3.0: Update to 3.24.1+356f1f59
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

6 years agogstreamer: Update from 1.15+ git master
Rico Tzschichholz [Tue, 20 Nov 2018 12:00:55 +0000 (13:00 +0100)] 
gstreamer: Update from 1.15+ git master

6 years agoparser: Use comment which was already retrieved in parse_declaration()
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

6 years agodocs: Update build instructions and move them to README.md 2a1c951dbe5691173451b404d1ca8cea661e9916
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

6 years agodocs: Use Markdown for README and move to README.md d9a86967049de9d379487f4ab3ce91a713f21e7f
Alistair Thomas [Mon, 19 Nov 2018 22:36:09 +0000 (22:36 +0000)] 
docs: Use Markdown for README and move to README.md

6 years agogobject-2.0: Attribute all symbols with cheader_filename = "glib-object.h" 6aa412da8e16e6630814a357adbfd724d59de30d
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.

6 years agotestrunner: Add -Werror=strict-prototypes 1d94694908ed3deeb0d6a2ed3234dcfb2ebc90ba
Rico Tzschichholz [Mon, 19 Nov 2018 17:06:40 +0000 (18:06 +0100)] 
testrunner: Add -Werror=strict-prototypes

6 years agoccode: Add void to delegate typedef declarations without parameters
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

6 years agotestrunner: Pass buildsystem's CC through to valac
Rico Tzschichholz [Mon, 19 Nov 2018 17:05:24 +0000 (18:05 +0100)] 
testrunner: Pass buildsystem's CC through to valac

6 years agoccode: Don't allow more than one consecutive empty lines in generated code
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

6 years agovaladoc: Adjust stylesheet to unbreak Epiphany 2ba06ae75d4751f2d6696a688a2192d23b8536b4 8/head
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

6 years agovaladoc: Fix a few errors and warnings in stylesheet
Rico Tzschichholz [Mon, 19 Nov 2018 10:58:20 +0000 (11:58 +0100)] 
valadoc: Fix a few errors and warnings in stylesheet

6 years agocodegen: Add ccode getters for GType functions of Classes and Interfaces 7ec98fad71a7b9522442cbac8106711fba94cfac
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.

6 years agogirwriter: Write glib-type attributes for Enums/Structs with type_id
Rico Tzschichholz [Sun, 18 Nov 2018 19:37:38 +0000 (20:37 +0100)] 
girwriter: Write glib-type attributes for Enums/Structs with type_id

6 years agocodegen: Fix canonical string for quark of error domains
Rico Tzschichholz [Sun, 18 Nov 2018 17:50:29 +0000 (18:50 +0100)] 
codegen: Fix canonical string for quark of error domains

6 years agovala: Fix bootstrap with valac >= 0.16.1 3279c5831bde814f73c0182a4de8663ebc2b1ed1
Rico Tzschichholz [Sat, 17 Nov 2018 21:21:20 +0000 (22:21 +0100)] 
vala: Fix bootstrap with valac >= 0.16.1

6 years agovala: Compact classes don't allow private/class fields and to lock fields
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.

6 years agovala: Remove superfluous return_if_fail()
Rico Tzschichholz [Sat, 17 Nov 2018 12:51:14 +0000 (13:51 +0100)] 
vala: Remove superfluous return_if_fail()

6 years agotests: Add "static fields" to compact class to increase coverage
Rico Tzschichholz [Sat, 17 Nov 2018 16:22:36 +0000 (17:22 +0100)] 
tests: Add "static fields" to compact class to increase coverage

6 years agotests: Add bug specific "lock test"
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

6 years agovala: Clean up constructor/destructor API of Class/Struct
Rico Tzschichholz [Sat, 17 Nov 2018 12:49:03 +0000 (13:49 +0100)] 
vala: Clean up constructor/destructor API of Class/Struct

6 years agogenieparser: Use dedicated Class.add_constructor/destructor() methods
Rico Tzschichholz [Sat, 17 Nov 2018 12:34:07 +0000 (13:34 +0100)] 
genieparser: Use dedicated Class.add_constructor/destructor() methods

6 years agotests: Add more GLib.Array tests d85d5fda1b2aedd0dea3a144fa442962bb452fc1 29/head
Corentin Noël [Fri, 16 Nov 2018 13:55:00 +0000 (14:55 +0100)] 
tests: Add more GLib.Array tests