]> git.ipfire.org Git - thirdparty/vala.git/log
thirdparty/vala.git
6 years agocodegen: Use temp-vars for ellipsis out-arguments to fix memory management 912b0332b885d4e1a74802a0e6615dbc01a896c5 35/head
Rico Tzschichholz [Sun, 23 Dec 2018 22:08:31 +0000 (23:08 +0100)] 
codegen: Use temp-vars for ellipsis out-arguments to fix memory management

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

6 years agocodegen: Use temp-var for MethodCall with out/ref arguments
Rico Tzschichholz [Wed, 26 Dec 2018 19:34:39 +0000 (20:34 +0100)] 
codegen: Use temp-var for MethodCall with out/ref arguments

Checking arguments of a MethodCall expression is required for varidic
methods where checking parameters isn't sufficient. Doing this makes
looking for out/ref parameters superfluous.

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

6 years agovala: Allow explicit interface methods to be virtual 2cea36afee72d395784b9f178beac5808edb7b5b
Rico Tzschichholz [Sat, 1 Dec 2018 14:27:08 +0000 (15:27 +0100)] 
vala: Allow explicit interface methods to be virtual

6 years agocodegen: Use properly checked implicit interface implementations
Rico Tzschichholz [Fri, 30 Nov 2018 20:26:15 +0000 (21:26 +0100)] 
codegen: Use properly checked implicit interface implementations

Collect implicit interface implementations in AST and avoid doing the same
checks twice.

This caused double vfunc assignments if an implementation is provided while
a method with the same name is available in prerequisite class.

See https://bugzilla.gnome.org/show_bug.cgi?id=536863
and https://bugzilla.gnome.org/show_bug.cgi?id=652098

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

6 years agovala: Search in all interfaces for an implementation match and don't bail early
Rico Tzschichholz [Thu, 29 Nov 2018 17:44:28 +0000 (18:44 +0100)] 
vala: Search in all interfaces for an implementation match and don't bail early

The first imcompatible method match doesn't mean there is no match for another
interface. This might mean an implementation is missing which will be covered
by the semantic check of the parent class.

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

6 years agovala: No need to look further if an implementations was found
Rico Tzschichholz [Wed, 19 Dec 2018 07:21:21 +0000 (08:21 +0100)] 
vala: No need to look further if an implementations was found

6 years agovala: Don't just guess and check for a matching base_interface_method too
Rico Tzschichholz [Thu, 29 Nov 2018 16:59:01 +0000 (17:59 +0100)] 
vala: Don't just guess and check for a matching base_interface_method too

This fixes class with multiple interfaces which require implementations of
methods with conflicting naming while the explicit interface-type reference
is not present yet.

Extend the present test-case for runtime checking. This will still silently
connect matching base-class methods as before as introduced in
e1a3ff9470763e7c6ff5a887036390bd418f4e46

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

6 years agovala: Add Method.compatible_no_error()
Rico Tzschichholz [Tue, 18 Dec 2018 20:19:35 +0000 (21:19 +0100)] 
vala: Add Method.compatible_no_error()

6 years agovala: Allow get_actual_type() to be used for expected failures
Rico Tzschichholz [Sat, 1 Dec 2018 13:13:31 +0000 (14:13 +0100)] 
vala: Allow get_actual_type() to be used for expected failures

If the passed node_reference is null there won't be any error reporting.
The resovled DataType will be an InvalidType on errors as usual.

6 years agovala: Add GenericType.get_actual_type()
Rico Tzschichholz [Wed, 5 Dec 2018 15:01:13 +0000 (16:01 +0100)] 
vala: Add GenericType.get_actual_type()

6 years agovapi: Update GIR-based bindings
Rico Tzschichholz [Tue, 18 Dec 2018 10:07:57 +0000 (11:07 +0100)] 
vapi: Update GIR-based bindings

6 years agogtk+-4.0: Update to 3.94.0+a99bd2a4
Rico Tzschichholz [Tue, 18 Dec 2018 11:36:11 +0000 (12:36 +0100)] 
gtk+-4.0: Update to 3.94.0+a99bd2a4

6 years agogtk+-3.0: Update to 3.24.2+eb821cb8
Rico Tzschichholz [Tue, 18 Dec 2018 10:06:52 +0000 (11:06 +0100)] 
gtk+-3.0: Update to 3.24.2+eb821cb8

6 years agogstreamer: Update from 1.15+ git master
Rico Tzschichholz [Tue, 18 Dec 2018 10:06:25 +0000 (11:06 +0100)] 
gstreamer: Update from 1.15+ git master

6 years agowebkitgtk-4.0: Update to 2.23.1
Rico Tzschichholz [Tue, 18 Dec 2018 10:05:04 +0000 (11:05 +0100)] 
webkitgtk-4.0: Update to 2.23.1

6 years agopoppler-glib: Update to 0.71
Rico Tzschichholz [Tue, 18 Dec 2018 10:02:14 +0000 (11:02 +0100)] 
poppler-glib: Update to 0.71

6 years agovala: Array with fixed length don't require explicit instantiation 0554ed7ad9cefe0f56e53dc00be88488dfa788bf
Rico Tzschichholz [Sun, 16 Dec 2018 19:01:19 +0000 (20:01 +0100)] 
vala: Array with fixed length don't require explicit instantiation

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

6 years agotests: Warnings and criticals should be fatal on compile time too
Rico Tzschichholz [Sun, 16 Dec 2018 19:14:53 +0000 (20:14 +0100)] 
tests: Warnings and criticals should be fatal on compile time too

6 years agotestrunner: Warnings and criticals should be fatal on compile time too
Rico Tzschichholz [Sun, 16 Dec 2018 19:13:37 +0000 (20:13 +0100)] 
testrunner: Warnings and criticals should be fatal on compile time too

6 years agoRelease 0.43.2 0.43.2
Rico Tzschichholz [Fri, 14 Dec 2018 13:37:37 +0000 (14:37 +0100)] 
Release 0.43.2

6 years agocodegen: GType classes require including "glib-object.h"
Rico Tzschichholz [Tue, 11 Dec 2018 14:16:09 +0000 (15:16 +0100)] 
codegen: GType classes require including "glib-object.h"

Move the include at a better position to cover more cases.

6 years agogobject-introspection-1.0: Pick up version attribute fixes
Rico Tzschichholz [Tue, 11 Dec 2018 13:08:20 +0000 (14:08 +0100)] 
gobject-introspection-1.0: Pick up version attribute fixes

6 years agovapi: Regenerate GIR-based bindings to fix non-standard async methods
Rico Tzschichholz [Tue, 11 Dec 2018 08:51:51 +0000 (09:51 +0100)] 
vapi: Regenerate GIR-based bindings to fix non-standard async methods

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

6 years agocodegen: Handle non-default AsyncResult parameter position
Rico Tzschichholz [Mon, 10 Dec 2018 15:07:46 +0000 (16:07 +0100)] 
codegen: Handle non-default AsyncResult parameter position

Unfortunately gdbus-codegen puts the AsyncResult parameter after possible
out-parameters therefore there is an "async_result_pos" attribute required
to handle this correctly.

Vala supposely follows the common practice to put the AsyncResult before
out-parameters by default.

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

6 years agocodegen: Always emit constants with initializer-list
Rico Tzschichholz [Sat, 8 Dec 2018 09:41:50 +0000 (10:41 +0100)] 
codegen: Always emit constants with initializer-list

generate_constant_declaration() handles both definition and declaration.

This is important when using --use-header where the actual definition
would never be written and we ended up with an "extern const ..." in the
header only.

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

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.