]> git.ipfire.org Git - thirdparty/vala.git/log
thirdparty/vala.git
6 years agotests: Fix try_parse() tests to not compare to already free'd memory
Rico Tzschichholz [Fri, 4 Jan 2019 19:02:18 +0000 (20:02 +0100)] 
tests: Fix try_parse() tests to not compare to already free'd memory

Found with valgrind

6 years agocodegen: Cast instance parameter for property access in object-initializer
Rico Tzschichholz [Fri, 4 Jan 2019 18:18:11 +0000 (19:18 +0100)] 
codegen: Cast instance parameter for property access in object-initializer

This will silence those incompatible-pointer-types warnings

6 years agogio-2.0: Fix File.replace_contents_bytes_async()
Jiří Janoušek [Thu, 3 Jan 2019 13:43:26 +0000 (14:43 +0100)] 
gio-2.0: Fix File.replace_contents_bytes_async()

Closes https://gitlab.gnome.org/GNOME/vala/merge_requests/37

6 years agogobject-2.0: Use correct array-length-type for returned arrays
Rico Tzschichholz [Wed, 2 Jan 2019 12:08:56 +0000 (13:08 +0100)] 
gobject-2.0: Use correct array-length-type for returned arrays

6 years agoglib-2.0: Use correct array-length-type for returned arrays
Rico Tzschichholz [Wed, 2 Jan 2019 08:33:26 +0000 (09:33 +0100)] 
glib-2.0: Use correct array-length-type for returned arrays

As usual length is returned by an implicit out-parameter where the
provided target variable must have a matching data type.

Discovered by -fstack-protector-all

See https://gitlab.gnome.org/GNOME/gitg/issues/171

6 years agovala: Report invalid instance member access to property
Rico Tzschichholz [Mon, 31 Dec 2018 13:48:08 +0000 (14:48 +0100)] 
vala: Report invalid instance member access to property

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

6 years agobuild: Don't leak libvalaccode symbols to libvaladoc
Rico Tzschichholz [Fri, 21 Dec 2018 07:28:31 +0000 (08:28 +0100)] 
build: Don't leak libvalaccode symbols to libvaladoc

6 years agocodegen: Use temp-vars for ellipsis out-arguments to fix memory management
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 agoRelease 0.42.4 0.42.4
Rico Tzschichholz [Thu, 6 Dec 2018 10:24:36 +0000 (11:24 +0100)] 
Release 0.42.4

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 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 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
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 agoglib-2.0: Add GLib.pointer aka gpointer binding
Rico Tzschichholz [Wed, 21 Nov 2018 19:20:59 +0000 (20:20 +0100)] 
glib-2.0: Add GLib.pointer aka gpointer binding

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 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 agogirparser: Skip "source-position" elements
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
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
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 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 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 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 agotests: Add default defines test for VALA_0_XX and GLIB_2_XX
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 agocodegen: Don't emit unused temp variable for element access assignments
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 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 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 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 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
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
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"
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 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 agovaladoc: Adjust stylesheet to unbreak Epiphany
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 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: 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 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
Corentin Noël [Fri, 16 Nov 2018 13:55:00 +0000 (14:55 +0100)] 
tests: Add more GLib.Array tests

6 years agocodegen: Add destroy function for GLib.Array
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

6 years agoglib-2.0: Avoid double-free in GLib.Array if clear_func is set
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

6 years agoglib-2.0: Add missing Array.set_clear_func() binding
Rico Tzschichholz [Fri, 16 Nov 2018 13:26:50 +0000 (14:26 +0100)] 
glib-2.0: Add missing Array.set_clear_func() binding

6 years agolibvaladoc: Use Scanner.get_identifier_or_keyword() instead of outdated copy
Rico Tzschichholz [Thu, 15 Nov 2018 21:44:46 +0000 (22:44 +0100)] 
libvaladoc: Use Scanner.get_identifier_or_keyword() instead of outdated copy

6 years agotests: Add enum/errordomain tests for GIR parser to increase coverage
Rico Tzschichholz [Thu, 15 Nov 2018 09:23:55 +0000 (10:23 +0100)] 
tests: Add enum/errordomain tests for GIR parser to increase coverage

6 years agodoc: Include dependencies for internal-api-docs to get reference linking
Rico Tzschichholz [Wed, 14 Nov 2018 21:17:43 +0000 (22:17 +0100)] 
doc: Include dependencies for internal-api-docs to get reference linking

6 years agovaladoc/html: Skip package dependency if target directory already exists
Rico Tzschichholz [Wed, 14 Nov 2018 21:12:54 +0000 (22:12 +0100)] 
valadoc/html: Skip package dependency if target directory already exists

Simply assume we already generated the documentation for this dependency
in a previous invocation running with --deps.

6 years agolibvaladoc: Add type_id to Api.Enum/Interface
Rico Tzschichholz [Wed, 14 Nov 2018 18:55:43 +0000 (19:55 +0100)] 
libvaladoc: Add type_id to Api.Enum/Interface

6 years agolibvaladoc: Link against private libvalaccodegen
Rico Tzschichholz [Tue, 12 Jun 2018 13:15:16 +0000 (15:15 +0200)] 
libvaladoc: Link against private libvalaccodegen

6 years agolibvaladoc: Actually assign type_id of Api.Structs
Rico Tzschichholz [Wed, 14 Nov 2018 14:44:43 +0000 (15:44 +0100)] 
libvaladoc: Actually assign type_id of Api.Structs

6 years agolibvaladoc/html: Sort symbols and members where possible
Rico Tzschichholz [Wed, 14 Nov 2018 17:44:53 +0000 (18:44 +0100)] 
libvaladoc/html: Sort symbols and members where possible

6 years agolibvaladoc: Match property signature with vala's codewriter
Rico Tzschichholz [Wed, 14 Nov 2018 13:49:22 +0000 (14:49 +0100)] 
libvaladoc: Match property signature with vala's codewriter

6 years agocodegen: Transfer ownership of compact class to DestroysInstance method
Rico Tzschichholz [Fri, 9 Nov 2018 14:21:16 +0000 (15:21 +0100)] 
codegen: Transfer ownership of compact class to DestroysInstance method

Otherwise it is impossible to call an instance method of a compact class
which is a destructor.

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

6 years agogio-2.0: Add missing File.new_build_filename()
Corentin Noël [Tue, 13 Nov 2018 05:57:36 +0000 (06:57 +0100)] 
gio-2.0: Add missing File.new_build_filename()

6 years agoglib-2.0: Replace ctype ccode-attributes with type
Rico Tzschichholz [Mon, 16 Jul 2018 19:08:22 +0000 (21:08 +0200)] 
glib-2.0: Replace ctype ccode-attributes with type

6 years agogio-2.0: Replace finish_function ccode-attributes with finish_name
Rico Tzschichholz [Mon, 16 Jul 2018 17:25:55 +0000 (19:25 +0200)] 
gio-2.0: Replace finish_function ccode-attributes with finish_name

6 years agovapi: Some random fixes on old bindings
Rico Tzschichholz [Thu, 8 Nov 2018 18:36:54 +0000 (19:36 +0100)] 
vapi: Some random fixes on old bindings

6 years agovala: Copy CCode instance_pos argument from virtual/abstract base methods
Rico Tzschichholz [Thu, 8 Nov 2018 11:48:20 +0000 (12:48 +0100)] 
vala: Copy CCode instance_pos argument from virtual/abstract base methods

https://bugzilla.gnome.org/show_bug.cgi?id=540483

6 years agovala: Add CodeNode.copy_attribute_*() helper methods
Rico Tzschichholz [Thu, 8 Nov 2018 11:45:24 +0000 (12:45 +0100)] 
vala: Add CodeNode.copy_attribute_*() helper methods

Provides an easy way to copy a specific attribute argument from another
code node if the source has it set.

6 years agotests: Avoid use of g_ptr_array_find() which requires glib >= 2.54
Rico Tzschichholz [Mon, 12 Nov 2018 09:27:45 +0000 (10:27 +0100)] 
tests: Avoid use of g_ptr_array_find() which requires glib >= 2.54

6 years agotests: Add GenericArray (GPtrArray) tests
Rico Tzschichholz [Thu, 8 Nov 2018 11:10:07 +0000 (12:10 +0100)] 
tests: Add GenericArray (GPtrArray) tests

6 years agocodegen: Fix method pointer cast if instance isn't at first position
Rico Tzschichholz [Wed, 7 Nov 2018 22:00:18 +0000 (23:00 +0100)] 
codegen: Fix method pointer cast if instance isn't at first position

By unconditionally putting the instance at first position the CCode
instance_pos attribute was not accounted for.

6 years agoRelease 0.42.3 0.42.3
Rico Tzschichholz [Wed, 7 Nov 2018 16:23:58 +0000 (17:23 +0100)] 
Release 0.42.3

6 years agogstreamer: Update from 1.15+ git master
Rico Tzschichholz [Wed, 7 Nov 2018 14:21:27 +0000 (15:21 +0100)] 
gstreamer: Update from 1.15+ git master

6 years agogio-2.0: Result of DBusMessage.get_header() is unowned
Rico Tzschichholz [Wed, 7 Nov 2018 11:15:25 +0000 (12:15 +0100)] 
gio-2.0: Result of DBusMessage.get_header() is unowned

6 years agogtk+-4.0: Update to 3.94.0+b4b30b49
Rico Tzschichholz [Wed, 7 Nov 2018 09:11:01 +0000 (10:11 +0100)] 
gtk+-4.0: Update to 3.94.0+b4b30b49

6 years agoglib-2.0: Add array length to string.skip
Alistair Thomas [Tue, 6 Nov 2018 10:51:39 +0000 (10:51 +0000)] 
glib-2.0: Add array length to string.skip

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

6 years agovala: Don't check for GLib.Variant casting in POSIX profile
Rico Tzschichholz [Tue, 6 Nov 2018 13:08:03 +0000 (14:08 +0100)] 
vala: Don't check for GLib.Variant casting in POSIX profile

6 years agocodegen: Add prototype for *_new() of abstact compact classes
Rico Tzschichholz [Mon, 5 Nov 2018 07:28:08 +0000 (08:28 +0100)] 
codegen: Add prototype for *_new() of abstact compact classes

Found with -Werror=missing-prototypes

6 years agocodegen: Don't emit *_free() of derived compact classes
Rico Tzschichholz [Sun, 4 Nov 2018 21:49:04 +0000 (22:49 +0100)] 
codegen: Don't emit *_free() of derived compact classes

Found with -Werror=missing-prototypes

6 years agocodegen: Add prototype for *_register_type() function
Rico Tzschichholz [Sun, 4 Nov 2018 19:22:22 +0000 (20:22 +0100)] 
codegen: Add prototype for *_register_type() function

Found with -Werror=missing-prototypes

6 years agocodegen: Add replacement for G_(BEGIN|END)_DECLS in non GOBJECT profile
Alistair Thomas [Sat, 3 Nov 2018 13:28:52 +0000 (14:28 +0100)] 
codegen: Add replacement for G_(BEGIN|END)_DECLS in non GOBJECT profile

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

6 years agolibvaladoc: Add "unlock" to keywords in Highligher
Rico Tzschichholz [Sat, 3 Nov 2018 13:26:47 +0000 (14:26 +0100)] 
libvaladoc: Add "unlock" to keywords in Highligher

6 years agovala: Fix TokenType.HASH.to_string()
Rico Tzschichholz [Sat, 3 Nov 2018 13:11:51 +0000 (14:11 +0100)] 
vala: Fix TokenType.HASH.to_string()

6 years agocodegen: Initialize internal temp-variables used as reference parameter
Rico Tzschichholz [Thu, 1 Nov 2018 23:03:45 +0000 (00:03 +0100)] 
codegen: Initialize internal temp-variables used as reference parameter

When casting Variant to multi-dimensional arrays the length fields are
used as out-parameters and needs to be initialized. They are not guaranteed
to be all set in _variant_get*() in this case.

Fixes tests with -Werror=maybe-uninitialized

6 years agoglib-2.0: Add binding for g_test_add()
Rico Tzschichholz [Sun, 8 Oct 2017 11:14:32 +0000 (13:14 +0200)] 
glib-2.0: Add binding for g_test_add()

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