]> git.ipfire.org Git - thirdparty/vala.git/log
thirdparty/vala.git
6 years agoparser: Improve source-location for LocalVariable/DeclarationStatement
Rico Tzschichholz [Wed, 10 Apr 2019 12:12:21 +0000 (14:12 +0200)] 
parser: Improve source-location for LocalVariable/DeclarationStatement

6 years agoparser: Set correct end source-location for Block
Rico Tzschichholz [Wed, 10 Apr 2019 12:12:21 +0000 (14:12 +0200)] 
parser: Set correct end source-location for Block

This location was off by one token.

6 years agoRelease 0.36.19 0.36.19
Rico Tzschichholz [Mon, 15 Apr 2019 14:29:20 +0000 (16:29 +0200)] 
Release 0.36.19

6 years agocodegen: Always assign original variable when consuming instance to destroy
Rico Tzschichholz [Mon, 8 Apr 2019 08:00:19 +0000 (10:00 +0200)] 
codegen: Always assign original variable when consuming instance to destroy

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

6 years agovala: Use global CodeContext to retrieve root_symbol
Luca Bruno [Sat, 4 May 2013 13:35:04 +0000 (15:35 +0200)] 
vala: Use global CodeContext to retrieve root_symbol

6 years agopango: Fix StringBuilder parameter of scan_word()
Rico Tzschichholz [Thu, 4 Apr 2019 08:45:10 +0000 (10:45 +0200)] 
pango: Fix StringBuilder parameter of scan_word()

6 years agogstreamer-1.0: Fix TypeFind and TypeFindFactory method references
Rico Tzschichholz [Wed, 27 Mar 2019 23:02:59 +0000 (00:02 +0100)] 
gstreamer-1.0: Fix TypeFind and TypeFindFactory method references

6 years agogobject-introspection-1.0: Fix TypeInfo and TypeTag method references
Rico Tzschichholz [Wed, 27 Mar 2019 23:02:59 +0000 (00:02 +0100)] 
gobject-introspection-1.0: Fix TypeInfo and TypeTag method references

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

6 years agogirparser: Create correct output in get_default_lower_case_suffix()
Rico Tzschichholz [Wed, 27 Mar 2019 23:02:59 +0000 (00:02 +0100)] 
girparser: Create correct output in get_default_lower_case_suffix()

It must match the output of CCodeAttribute.get_default_lower_case_suffix()

Add metadata support to set lower_case_csuffix

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

6 years agotests: Add "struct (un)boxing" variant test
Rico Tzschichholz [Sun, 24 Mar 2019 17:34:29 +0000 (18:34 +0100)] 
tests: Add "struct (un)boxing" variant test

6 years agocodegen: Move implicit GValue cast for comparison to BinaryExpression
Rico Tzschichholz [Mon, 25 Mar 2019 11:46:15 +0000 (12:46 +0100)] 
codegen: Move implicit GValue cast for comparison to BinaryExpression

Handle "==" and "!=" only as it was done before.

This generates correct c-code for boxed simple-types and will perform
value-based comparisons.

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

6 years agocodegen: Resolve generics in sizeof-expression of parameter initializer
Rico Tzschichholz [Mon, 11 Mar 2019 09:31:10 +0000 (10:31 +0100)] 
codegen: Resolve generics in sizeof-expression of parameter initializer

6 years agoglib-2.0: Don't annotate dedicated GLib.assert_*() functions with [Assert]
Rico Tzschichholz [Tue, 19 Mar 2019 08:53:45 +0000 (09:53 +0100)] 
glib-2.0: Don't annotate dedicated GLib.assert_*() functions with [Assert]

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

6 years agovala: Variadic parameters are not supported for async methods
Rico Tzschichholz [Tue, 19 Mar 2019 07:09:35 +0000 (08:09 +0100)] 
vala: Variadic parameters are not supported for async methods

6 years agoparser: Implicit creation method of abstract classes must be protected
Rico Tzschichholz [Tue, 12 Mar 2019 09:18:03 +0000 (10:18 +0100)] 
parser: Implicit creation method of abstract classes must be protected

6 years agovala: Allow assignment of 0U to enum types
Rico Tzschichholz [Sun, 10 Mar 2019 17:14:09 +0000 (18:14 +0100)] 
vala: Allow assignment of 0U to enum types

Don't restrict unsigned 0 literal to flags-enums though.

6 years agoccodegen: Use unsigned default value for flags-enum
Rico Tzschichholz [Sun, 10 Mar 2019 17:14:09 +0000 (18:14 +0100)] 
ccodegen: Use unsigned default value for flags-enum

6 years agogsignal: Use guint to represent flags-enum in custom GMarshalFunc
Rico Tzschichholz [Sun, 10 Mar 2019 17:14:09 +0000 (18:14 +0100)] 
gsignal: Use guint to represent flags-enum in custom GMarshalFunc

6 years agotests: Extend "detailed signal" test to increase coverage
Rico Tzschichholz [Sun, 10 Mar 2019 17:14:09 +0000 (18:14 +0100)] 
tests: Extend "detailed signal" test to increase coverage

6 years agoMark defined constructors of abstract classes as protected
Rico Tzschichholz [Tue, 12 Mar 2019 09:06:11 +0000 (10:06 +0100)] 
Mark defined constructors of abstract classes as protected

6 years agoRelease 0.36.18 0.36.18
Rico Tzschichholz [Sun, 3 Mar 2019 19:58:50 +0000 (20:58 +0100)] 
Release 0.36.18

6 years agogirwriter: Always use get_gir_name() for TypeSymbols
Rico Tzschichholz [Wed, 27 Feb 2019 14:45:13 +0000 (15:45 +0100)] 
girwriter: Always use get_gir_name() for TypeSymbols

6 years agopoppler-glib: Update to 0.74
Rico Tzschichholz [Tue, 26 Feb 2019 21:45:02 +0000 (22:45 +0100)] 
poppler-glib: Update to 0.74

6 years agogirwriter: Support transfer-ownership="container" for arrays
Rico Tzschichholz [Tue, 26 Feb 2019 13:10:35 +0000 (14:10 +0100)] 
girwriter: Support transfer-ownership="container" for arrays

6 years agogobject-2.0: Add SignalHandler.disconnect_by_data()
Rico Tzschichholz [Mon, 25 Feb 2019 08:58:11 +0000 (09:58 +0100)] 
gobject-2.0: Add SignalHandler.disconnect_by_data()

6 years agocodegen: Respect array_length_cname attribute for global fields
Rico Tzschichholz [Sun, 24 Feb 2019 20:44:48 +0000 (21:44 +0100)] 
codegen: Respect array_length_cname attribute for global fields

6 years agotests: Add regression test for modulo operation on double and float
Rico Tzschichholz [Thu, 21 Feb 2019 07:04:03 +0000 (08:04 +0100)] 
tests: Add regression test for modulo operation on double and float

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

6 years agogirparser: Correctly set array_length_type for delegates returning an array
Rico Tzschichholz [Wed, 20 Feb 2019 22:37:46 +0000 (23:37 +0100)] 
girparser: Correctly set array_length_type for delegates returning an array

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

6 years agoclutter-1.0: Drop deprecated from Actor.pick()
Rico Tzschichholz [Thu, 14 Feb 2019 11:40:36 +0000 (12:40 +0100)] 
clutter-1.0: Drop deprecated from Actor.pick()

The signal "pick" was deprecated with 1.12, but not the virtual method.

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

6 years agovapi: Drop gdk-x11-3.0 from GIDL_BINDINGS
Rico Tzschichholz [Sun, 10 Feb 2019 18:58:46 +0000 (19:58 +0100)] 
vapi: Drop gdk-x11-3.0 from GIDL_BINDINGS

6 years agogtk+-unix-print-*.0: Fix PrintJob.get_page_ranges(), Printer.get_hard_margins()
Rico Tzschichholz [Sun, 10 Feb 2019 12:12:43 +0000 (13:12 +0100)] 
gtk+-unix-print-*.0: Fix PrintJob.get_page_ranges(), Printer.get_hard_margins()

6 years agogdk-3.0: Fix ownership of FrameClock.get_current_timings/get_timings()
Rico Tzschichholz [Wed, 30 Jan 2019 15:47:49 +0000 (16:47 +0100)] 
gdk-3.0: Fix ownership of FrameClock.get_current_timings/get_timings()

6 years agog-i: Fix return value on error in start_discriminator()
Rico Tzschichholz [Tue, 29 Jan 2019 17:22:39 +0000 (18:22 +0100)] 
g-i: Fix return value on error in start_discriminator()

6 years agovala: Parser doesn't ensure "protected" to be applied on TypeSymbol members
Rico Tzschichholz [Sat, 26 Jan 2019 20:23:22 +0000 (21:23 +0100)] 
vala: Parser doesn't ensure "protected" to be applied on TypeSymbol members

Probably ObjectTypeSymbol should be enforced.

6 years agovala: Check inferred variable_type of LocalVariables
Rico Tzschichholz [Fri, 25 Jan 2019 19:10:48 +0000 (20:10 +0100)] 
vala: Check inferred variable_type of LocalVariables

6 years agocodegen: Replace some unfortunate asserts with internal error reports
Rico Tzschichholz [Wed, 23 Jan 2019 20:36:12 +0000 (21:36 +0100)] 
codegen: Replace some unfortunate asserts with internal error reports

6 years agocodegen: Properly handle and catch inner-error of finally-block
Rico Tzschichholz [Wed, 23 Jan 2019 21:39:42 +0000 (22:39 +0100)] 
codegen: Properly handle and catch inner-error of finally-block

If all inner-errors are caught there is no jump-out of the current finally-
block therefore the control-flow analyzer is happy. To make this work the
surrounding inner-error must not be used or changed here.

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

6 years agocodegen: Don't apply address-of operator on literals when casting to array
Rico Tzschichholz [Sun, 20 Jan 2019 18:23:43 +0000 (19:23 +0100)] 
codegen: Don't apply address-of operator on literals when casting to array

Regression of 5f316333d6a803e4240b5cccc95a6abd2294137b

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

6 years agogirparser: Async methods don't allow out-parameters before in-parameters
Rico Tzschichholz [Sun, 21 Oct 2018 08:34:28 +0000 (10:34 +0200)] 
girparser: Async methods don't allow out-parameters before in-parameters

In vala out-parameters are always handled in the *_finish implementation
and therefore are asynchronous. Report a warning for GIR sources where
convert them to pointer-types to create usuable signatures for bindings.

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

6 years agoclutter-1.0: Fix BindingPool.override_action()
Rico Tzschichholz [Wed, 16 Jan 2019 20:12:23 +0000 (21:12 +0100)] 
clutter-1.0: Fix BindingPool.override_action()

6 years agocompiler: Report deprecated command-line option "--thread"
Rico Tzschichholz [Fri, 18 Jan 2019 13:19:54 +0000 (14:19 +0100)] 
compiler: Report deprecated command-line option "--thread"

6 years agolibsoup-2.4: Fix Message.add_*_handler() by unhiding user_data parameter
Rico Tzschichholz [Sun, 13 Jan 2019 12:36:56 +0000 (13:36 +0100)] 
libsoup-2.4: Fix Message.add_*_handler() by unhiding user_data parameter

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

6 years agocodegen: Emit struct declaration typedef before resolving its fields
Rico Tzschichholz [Thu, 10 Jan 2019 19:02:39 +0000 (20:02 +0100)] 
codegen: Emit struct declaration typedef before resolving its fields

This a regression when compiling a circular dependency of delegates with
structs.

Regression of 7adb3a45bb8d663c0cfca55af26b7e6f7292b14a

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

6 years agocodegen: Use a parameter-map for creation of delegate declaration
Rico Tzschichholz [Thu, 10 Jan 2019 08:21:54 +0000 (09:21 +0100)] 
codegen: Use a parameter-map for creation of delegate declaration

This is required to take instance_pos into account and will allow the error
parameter to be put before the target (aka instance) in delegates.

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

6 years agogobject-2.0: Minor syncing from GIR
Rico Tzschichholz [Sun, 6 Jan 2019 08:47:07 +0000 (09:47 +0100)] 
gobject-2.0: Minor syncing from GIR

6 years agogdbus: Cast instance and result of g_async_initable_new_finish() call
Rico Tzschichholz [Sat, 5 Jan 2019 23:49:14 +0000 (00:49 +0100)] 
gdbus: Cast instance and result of g_async_initable_new_finish() call

This will silence those incompatible-pointer-types warnings

6 years agosqlite3: Correct return C type of Statement.column_text & Value.to_text
Jiří Janoušek [Sat, 5 Jan 2019 16:46:42 +0000 (17:46 +0100)] 
sqlite3: Correct return C type of Statement.column_text & Value.to_text

6 years agogdbus: Properly set annotations field of GDBus*Info struct to NULL
Rico Tzschichholz [Sat, 5 Jan 2019 20:41:20 +0000 (21:41 +0100)] 
gdbus: Properly set annotations field of GDBus*Info struct to NULL

Found by -Werror=missing-field-initializers

6 years agotests: Extend "DBus errors" tests to increase coverage
Rico Tzschichholz [Sat, 5 Jan 2019 21:01:06 +0000 (22:01 +0100)] 
tests: Extend "DBus errors" tests to increase coverage

6 years agodocs: Add a basic CONTRIBUTING.md file that links to the relevant Wiki page
Alistair Thomas [Sat, 5 Jan 2019 20:41:00 +0000 (20:41 +0000)] 
docs: Add a basic CONTRIBUTING.md file that links to the relevant Wiki page

6 years agocodegen: Don't check boolean values for (in)equality in GTask API
Rico Tzschichholz [Sat, 5 Jan 2019 17:11:30 +0000 (18:11 +0100)] 
codegen: Don't check boolean values for (in)equality in GTask API

This resolves any value but 0 to true as it is suppose to be.

  /* invalid */
  if (condition == TRUE)
    do_foo ();

  /* valid */
  if (another_condition)
    do_bar ();

See https://gitlab.gnome.org/GNOME/glib/issues/1636

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 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 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 agoRelease 0.36.17 0.36.17
Rico Tzschichholz [Thu, 20 Dec 2018 15:30:11 +0000 (16:30 +0100)] 
Release 0.36.17

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

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 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 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 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 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: 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 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 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 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 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 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 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 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 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 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