]> git.ipfire.org Git - thirdparty/vala.git/log
thirdparty/vala.git
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 agocodegen: Add get_variable_array_length_cname() and use as possible
Rico Tzschichholz [Sun, 24 Feb 2019 20:39:47 +0000 (21:39 +0100)] 
codegen: Add get_variable_array_length_cname() and use as possible

This also replaces get_parameter_array_length_cname()

6 years agocodegen: Replace if-else-tree with switch in visit_binary_expression()
Rico Tzschichholz [Sat, 23 Feb 2019 19:19:31 +0000 (20:19 +0100)] 
codegen: Replace if-else-tree with switch in visit_binary_expression()

6 years agocodegen: Replace if-else-tree with switch in visit_unary_expression()
Rico Tzschichholz [Sat, 23 Feb 2019 19:19:31 +0000 (20:19 +0100)] 
codegen: Replace if-else-tree with switch in visit_unary_expression()

6 years agotests: TypeModule allows registering static types since 2.56
Rico Tzschichholz [Sun, 24 Feb 2019 07:27:38 +0000 (08:27 +0100)] 
tests: TypeModule allows registering static types since 2.56

This prevents fatal runtime testing.

6 years agotests: Add "custom types" struct tests to increase coverage
Rico Tzschichholz [Sat, 23 Feb 2019 19:19:31 +0000 (20:19 +0100)] 
tests: Add "custom types" struct tests to increase coverage

6 years agotests: Add "constructor chain up" generics test to increase coverage
Rico Tzschichholz [Sat, 23 Feb 2019 19:19:31 +0000 (20:19 +0100)] 
tests: Add "constructor chain up" generics test to increase coverage

6 years agotests: Add "null-terminated array" delegate test to increase coverage
Rico Tzschichholz [Sat, 23 Feb 2019 19:19:31 +0000 (20:19 +0100)] 
tests: Add "null-terminated array" delegate test to increase coverage

6 years agotests: Add "struct in array" test to increase coverage
Rico Tzschichholz [Sat, 23 Feb 2019 19:19:31 +0000 (20:19 +0100)] 
tests: Add "struct in array" test to increase coverage

6 years agotests: Add "to_string" enum test to increase coverage
Rico Tzschichholz [Sat, 23 Feb 2019 19:19:31 +0000 (20:19 +0100)] 
tests: Add "to_string" enum test to increase coverage

6 years agotests: Add "ModuleInit" test to increase coverage
Rico Tzschichholz [Sat, 23 Feb 2019 19:19:31 +0000 (20:19 +0100)] 
tests: Add "ModuleInit" test to increase coverage

6 years agocodegen: Only emit declaration of *_register_type if needed
Rico Tzschichholz [Sat, 23 Feb 2019 19:19:31 +0000 (20:19 +0100)] 
codegen: Only emit declaration of *_register_type if needed

This allows to add a test case for ModuleInit with -Werror=redundant-decls

6 years agocodegen: Allow to associate CCodeFile to actual SourceFile
Rico Tzschichholz [Sat, 23 Feb 2019 19:19:31 +0000 (20:19 +0100)] 
codegen: Allow to associate CCodeFile to actual SourceFile

6 years agocodegen: Rename to CCodeMethodCallModule.generate_enum_to_string_function()
Rico Tzschichholz [Sat, 23 Feb 2019 19:19:31 +0000 (20:19 +0100)] 
codegen: Rename to CCodeMethodCallModule.generate_enum_to_string_function()

6 years agoRelease 0.43.91 0.43.91
Rico Tzschichholz [Thu, 21 Feb 2019 14:18:48 +0000 (15:18 +0100)] 
Release 0.43.91

6 years agoglib-2.0: Add "delegate_target = false" to Log.writer_journald/_standard_streams...
Rico Tzschichholz [Thu, 21 Feb 2019 10:23:11 +0000 (11:23 +0100)] 
glib-2.0: Add "delegate_target = false" to Log.writer_journald/_standard_streams/_default

In addition to d9bab3f04f8c9713929ab1ef166472b5f8c84ee7

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 agoRevert "vala: Don't replace assignments for local variables with non-null simple...
Rico Tzschichholz [Thu, 21 Feb 2019 07:34:30 +0000 (08:34 +0100)] 
Revert "vala: Don't replace assignments for local variables with non-null simple-types"

This reverts commit e701142da4601ece5ca71cc4484728b08969c74e.

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

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 agowebkit2gtk-4.0: Update to 2.23.91
Rico Tzschichholz [Wed, 20 Feb 2019 18:40:08 +0000 (19:40 +0100)] 
webkit2gtk-4.0: Update to 2.23.91

6 years agogtk4: Update to 3.94.0+02e856f6
Rico Tzschichholz [Tue, 19 Feb 2019 14:04:51 +0000 (15:04 +0100)] 
gtk4: Update to 3.94.0+02e856f6

6 years agoatk-1.0: Adjust for upstream revert of Implementor using G_DEFINE_INTERFACE
Rico Tzschichholz [Wed, 20 Feb 2019 15:39:37 +0000 (16:39 +0100)] 
atk-1.0: Adjust for upstream revert of Implementor using G_DEFINE_INTERFACE

See https://gitlab.gnome.org/GNOME/atk/commit/96d13ae47f6f77445483ee8a0d7d6569a95f35bf

6 years agovapi: Update GIR-based bindings
Rico Tzschichholz [Sat, 16 Feb 2019 09:03:32 +0000 (10:03 +0100)] 
vapi: Update GIR-based bindings

6 years agogtk4: Update to 3.94.0+bea1a02e
Rico Tzschichholz [Sat, 16 Feb 2019 09:00:28 +0000 (10:00 +0100)] 
gtk4: Update to 3.94.0+bea1a02e

6 years agowebkit2gtk-4.0: Update to 2.23.90
Rico Tzschichholz [Sat, 16 Feb 2019 08:50:53 +0000 (09:50 +0100)] 
webkit2gtk-4.0: Update to 2.23.90

6 years agolibvaladoc: Properly support the output of async constructors
Rico Tzschichholz [Thu, 14 Feb 2019 16:35:04 +0000 (17:35 +0100)] 
libvaladoc: Properly support the output of async constructors

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

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 agovaladoc: Report warning if resources for doclet could not be copied 0ddc304d272ee4ce0c3af099632de3a61bc96223
Rico Tzschichholz [Tue, 12 Feb 2019 16:47:49 +0000 (17:47 +0100)] 
valadoc: Report warning if resources for doclet could not be copied

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

6 years agogio-unix-2.0: Add DesktopAppInfo.get_string_list() since 2.60 00efb466b5fc85f95ef2390d08289ba5322055ee
Rico Tzschichholz [Sun, 10 Feb 2019 12:26:09 +0000 (13:26 +0100)] 
gio-unix-2.0: Add DesktopAppInfo.get_string_list() since 2.60

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 agogtk4-unix-printer: Update to 3.94.0+a872c41f
Rico Tzschichholz [Sun, 10 Feb 2019 12:13:53 +0000 (13:13 +0100)] 
gtk4-unix-printer: Update to 3.94.0+a872c41f

and fix PrintJob.get_page_ranges(), Printer.get_hard_margins()

6 years agogtk4: Update to 3.94.0+a872c41f
Rico Tzschichholz [Sun, 10 Feb 2019 11:48:42 +0000 (12:48 +0100)] 
gtk4: Update to 3.94.0+a872c41f

6 years agogstreamer: Update from 1.15.1+ git master
Rico Tzschichholz [Sun, 10 Feb 2019 11:32:00 +0000 (12:32 +0100)] 
gstreamer: Update from 1.15.1+ git master

6 years agoRevert "valadoc: Update API tests" f7c386eae4a1ab15eb4a21dce540e6298d93436c
Rico Tzschichholz [Tue, 5 Feb 2019 17:28:22 +0000 (18:28 +0100)] 
Revert "valadoc: Update API tests"

This reverts commit 881333fe7a8ecf64de21633c165b0db0db2e41ff.

6 years agoRevert "valadoc: Drop duplicated code to add source files and use CodeContext API"
Rico Tzschichholz [Tue, 5 Feb 2019 15:00:33 +0000 (16:00 +0100)] 
Revert "valadoc: Drop duplicated code to add source files and use CodeContext API"

This reverts commit 54ba304eddd05264cbb9eacd734914938f50c7e4.

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

6 years agogtk4: Update to 3.94.0+d2d35e52 b1fc729bece306b0e97d681ff7d29c2d9b198333
Rico Tzschichholz [Wed, 6 Feb 2019 09:03:51 +0000 (10:03 +0100)] 
gtk4: Update to 3.94.0+d2d35e52

6 years agovapi: Follow GTK upstream rename to gtk4 and gtk4-unix-print
Rico Tzschichholz [Wed, 6 Feb 2019 08:12:17 +0000 (09:12 +0100)] 
vapi: Follow GTK upstream rename to gtk4 and gtk4-unix-print

6 years agoRelease 0.43.90 08b4d2dc1d77ea4fcc889a7e0da5f630c0280ad1 0.43.90
Rico Tzschichholz [Sun, 3 Feb 2019 16:04:21 +0000 (17:04 +0100)] 
Release 0.43.90

6 years agocodegen: Pass lambda expression of variable initializer to signal connect
Rico Tzschichholz [Thu, 31 Jan 2019 19:09:07 +0000 (20:09 +0100)] 
codegen: Pass lambda expression of variable initializer to signal connect

6 years agovapi: Add goocanvas-2.0 bindings 57fa049a08a92b5c1030b17be6a50cf393fc7ed3 45/head
Rico Tzschichholz [Mon, 21 Jan 2019 09:19:22 +0000 (10:19 +0100)] 
vapi: Add goocanvas-2.0 bindings

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

6 years agovapi: Update GIR-based bindings bb6e72083003227510d84587c034c1c861dae877
Rico Tzschichholz [Wed, 30 Jan 2019 15:49:09 +0000 (16:49 +0100)] 
vapi: Update GIR-based bindings

6 years agogdk-3.0: Update to 3.24.4+a0129f55
Rico Tzschichholz [Wed, 30 Jan 2019 15:47:49 +0000 (16:47 +0100)] 
gdk-3.0: Update to 3.24.4+a0129f55

6 years agogtk+-4.0: Update to 3.94.0+a7fa1cf6
Rico Tzschichholz [Wed, 30 Jan 2019 15:46:43 +0000 (16:46 +0100)] 
gtk+-4.0: Update to 3.94.0+a7fa1cf6

6 years agogstreamer: Update from 1.15.1+
Rico Tzschichholz [Wed, 30 Jan 2019 15:46:23 +0000 (16:46 +0100)] 
gstreamer: Update from 1.15.1+

6 years agogoocanvas: Update from 1.0.0+af07af5d 3063a68b0ad62b5ed5d6c9942fcc59ac8a9e312c
Rico Tzschichholz [Mon, 21 Jan 2019 09:19:22 +0000 (10:19 +0100)] 
goocanvas: Update from 1.0.0+af07af5d

6 years agog-i: Fix return value on error in start_discriminator() 6da1f01d3d2ae93c03c42624b5e9b83b3b121f8f
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 agolibvaladoc: Don't change the size of an array in-parameter
Rico Tzschichholz [Tue, 29 Jan 2019 16:05:30 +0000 (17:05 +0100)] 
libvaladoc: Don't change the size of an array in-parameter

Avoid a possible memory issue while the resize of an array reference is
possible, the new length can't be propagated back to the caller.

Issue an warning for unexpected string lengths.

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 agoglib-2.0: Bind g_log_writer_journald/_standard_streams/_default as LogWriterFunc d9bab3f04f8c9713929ab1ef166472b5f8c84ee7
Guillaume Poirier-Morency [Fri, 14 Oct 2016 20:08:50 +0000 (16:08 -0400)] 
glib-2.0: Bind g_log_writer_journald/_standard_streams/_default as LogWriterFunc

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

6 years agocodegen: Properly handle and catch inner-error of finally-block 2e5682fd195f5109862eabc18144032175799104 47/head
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: Replace some unfortunate asserts with internal error reports a617f41413dec4da1891bfd5a1d4553465370017
Rico Tzschichholz [Wed, 23 Jan 2019 20:36:12 +0000 (21:36 +0100)] 
codegen: Replace some unfortunate asserts with internal error reports

6 years agovala: Both arguments of NC_() must be constant for this call to be constant
Rico Tzschichholz [Wed, 23 Jan 2019 16:35:09 +0000 (17:35 +0100)] 
vala: Both arguments of NC_() must be constant for this call to be constant

6 years agoRelease 0.43.6 0.43.6
Rico Tzschichholz [Mon, 21 Jan 2019 18:45:09 +0000 (19:45 +0100)] 
Release 0.43.6

6 years agovala: Don't tweak closure on static lambdas
Rico Tzschichholz [Mon, 21 Jan 2019 16:31:07 +0000 (17:31 +0100)] 
vala: Don't tweak closure on static lambdas

Regression of 92ba4e178723b1aa6404da556c79b08abe5eaf05

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

6 years agogst-editing-services-1.0: Fix some construtors and (un)hide symbols 345f6251c6102854a2a55ae9885a8ec89fe9bfb8 46/head
Corentin Noël [Mon, 21 Jan 2019 13:19:56 +0000 (14:19 +0100)] 
gst-editing-services-1.0: Fix some construtors and (un)hide symbols

6 years agotests: Add asynchronous "catch-error-scope" regression test 1dd63caaa083c8d2f298a763d515badf8f34524c
Rico Tzschichholz [Mon, 21 Jan 2019 15:13:45 +0000 (16:13 +0100)] 
tests: Add asynchronous "catch-error-scope" regression test

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

6 years agoRevert "codegen: Use copies of error_variable of catch-clauses for nested usage"
Rico Tzschichholz [Mon, 21 Jan 2019 15:03:14 +0000 (16:03 +0100)] 
Revert "codegen: Use copies of error_variable of catch-clauses for nested usage"

This reverts commit 765c39c73c3096dd1de984db023763ec13448ef5.

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

6 years agolibvaladoc/girimporter: Skip "source-position" elements
Rico Tzschichholz [Mon, 21 Jan 2019 14:29:41 +0000 (15:29 +0100)] 
libvaladoc/girimporter: Skip "source-position" elements

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

6 years agojavascriptcoregtk-4.0: Fix GLib.Callback parameters which can't hold target
Rico Tzschichholz [Mon, 14 Jan 2019 20:05:50 +0000 (21:05 +0100)] 
javascriptcoregtk-4.0: Fix GLib.Callback parameters which can't hold target

6 years agogenie: Support `protected` accessibility and allow explicit `public` 005acf76fcf5b466196b85bff29bdf66df9480fc
Michal Proszek [Sun, 20 Jan 2019 19:56:39 +0000 (19:56 +0000)] 
genie: Support `protected` accessibility and allow explicit `public`

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

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 agolibvaladoc: Build backing Vala.SourceFile for GIRs processed by importer 2b86cba8c92226f3b0b6b6d504217952732a0d3a
Corentin Noël [Sat, 19 Jan 2019 14:05:48 +0000 (15:05 +0100)] 
libvaladoc: Build backing Vala.SourceFile for GIRs processed by importer

This fixes criticals when reporting errors and warnings

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

6 years agoRelease 0.43.5 0.43.5
Rico Tzschichholz [Sat, 19 Jan 2019 16:17:53 +0000 (17:17 +0100)] 
Release 0.43.5

6 years agovaladoc: Specify that the "--driver" option is deprecated f7525b7ca1d9933e2da3681b63a2f60f329c6e54 43/head
Corentin Noël [Fri, 18 Jan 2019 11:46:52 +0000 (12:46 +0100)] 
valadoc: Specify that the "--driver" option is deprecated

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

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

6 years agoglib-2.0: Add Queue.clear_full() since 2.60 3f530cdf71d1a7709a1786eddf8fbe34ca963e64
Rico Tzschichholz [Thu, 17 Jan 2019 13:19:48 +0000 (14:19 +0100)] 
glib-2.0: Add Queue.clear_full() since 2.60

6 years agovapi: Update GIR-based bindings 3d35558906a373b09b83e0a5f7041ffe5de0e57b
Rico Tzschichholz [Wed, 16 Jan 2019 20:12:23 +0000 (21:12 +0100)] 
vapi: Update GIR-based bindings

6 years agogtk+-4.0: Update to 3.94.0+9b15c690
Rico Tzschichholz [Wed, 16 Jan 2019 20:10:46 +0000 (21:10 +0100)] 
gtk+-4.0: Update to 3.94.0+9b15c690

6 years agogdk-3.0,gtk+-3.0: Update to 3.24.3+9c8f1478
Rico Tzschichholz [Wed, 16 Jan 2019 20:09:56 +0000 (21:09 +0100)] 
gdk-3.0,gtk+-3.0: Update to 3.24.3+9c8f1478

6 years agogstreamer: Update from 1.15+ git master
Rico Tzschichholz [Wed, 16 Jan 2019 20:08:59 +0000 (21:08 +0100)] 
gstreamer: Update from 1.15+ git master

6 years agovala: Multiple lamdba arguments in method call should all use closure scope 92ba4e178723b1aa6404da556c79b08abe5eaf05
Rico Tzschichholz [Tue, 15 Jan 2019 09:44:12 +0000 (10:44 +0100)] 
vala: Multiple lamdba arguments in method call should all use closure scope

This does not enable proper support for delegates sharing a data argument,
but allows this special case.

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

6 years agocodegen: Use get_ccode_*name/get_parameter_cexpression() for Parameters
Rico Tzschichholz [Mon, 14 Jan 2019 13:14:20 +0000 (14:14 +0100)] 
codegen: Use get_ccode_*name/get_parameter_cexpression() for Parameters

6 years agocodegen: Remove CCodeBaseModule.get_result_cexpression()
Rico Tzschichholz [Tue, 15 Jan 2019 15:00:30 +0000 (16:00 +0100)] 
codegen: Remove CCodeBaseModule.get_result_cexpression()

6 years agocodegen: Simplify get_*_cexpression() and split out get_cexpression()
Rico Tzschichholz [Tue, 15 Jan 2019 14:29:01 +0000 (15:29 +0100)] 
codegen: Simplify get_*_cexpression() and split out get_cexpression()

6 years agocodegen: Check reserved_identifiers in CCodeAttribute.get_default_name()
Rico Tzschichholz [Tue, 15 Jan 2019 12:35:52 +0000 (13:35 +0100)] 
codegen: Check reserved_identifiers in CCodeAttribute.get_default_name()

This is a step for wider usage of get_ccode_name() on variables

6 years agocodegen: Only set "sentinel" CCode attribute for node if requested
Rico Tzschichholz [Mon, 14 Jan 2019 16:27:52 +0000 (17:27 +0100)] 
codegen: Only set "sentinel" CCode attribute for node if requested

This should restrict this being set only on Method nodes.

6 years agocodegen: Don't evaluate "pos" CCode attribute early
Rico Tzschichholz [Mon, 14 Jan 2019 16:20:55 +0000 (17:20 +0100)] 
codegen: Don't evaluate "pos" CCode attribute early

6 years agocodegen: Simplify some code around get_ccode_delegate_target() invocations
Rico Tzschichholz [Mon, 14 Jan 2019 14:30:36 +0000 (15:30 +0100)] 
codegen: Simplify some code around get_ccode_delegate_target() invocations

6 years agocodegen: Handle "delegate_target" as proper CCode attribute
Rico Tzschichholz [Mon, 14 Jan 2019 14:13:25 +0000 (15:13 +0100)] 
codegen: Handle "delegate_target" as proper CCode attribute

Check if the given variable actually denotes to a delegate type which
accepts a target parameter.

6 years agocodegen: Rely on get_ccode_delegate_target() for delegate variables only
Rico Tzschichholz [Mon, 14 Jan 2019 15:40:42 +0000 (16:40 +0100)] 
codegen: Rely on get_ccode_delegate_target() for delegate variables only

6 years agocodegen: Use get_ccode_delegate_target_name() for fields
Rico Tzschichholz [Wed, 6 Jun 2018 15:22:40 +0000 (17:22 +0200)] 
codegen: Use get_ccode_delegate_target_name() for fields

Replace get_delegate_target_destroy_notify_cname (get_ccode_name (...))

6 years agocodegen: Add "destroy_notify_cname" CCode attribute
Rico Tzschichholz [Wed, 6 Jun 2018 15:14:03 +0000 (17:14 +0200)] 
codegen: Add "destroy_notify_cname" CCode attribute

and the corresponding helper get_delegate_target_destroy_notify_cname()

6 years agocodegen: Use copies of error_variable of catch-clauses for nested usage 765c39c73c3096dd1de984db023763ec13448ef5
Rico Tzschichholz [Wed, 6 Jun 2018 21:22:41 +0000 (23:22 +0200)] 
codegen: Use copies of error_variable of catch-clauses for nested usage

Calling visit_local_variable() multiple times on the same instance of a
LocalVariable causes issues.

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: Don't add data parameter for "instance_init" of compact classes 28984f31f4e18aedb85d8bfa4f72552fccf83a1a
Rico Tzschichholz [Sun, 13 Jan 2019 09:08:30 +0000 (10:08 +0100)] 
codegen: Don't add data parameter for "instance_init" of compact classes

See b5260359255637d77ebc367d26c853ac6459f67d

6 years agovala: Allow direct access to the integer constants of an error-domain f48208b4cab9f5a7da469067c4cae096082c39ba
Rico Tzschichholz [Sat, 12 Jan 2019 14:20:34 +0000 (15:20 +0100)] 
vala: Allow direct access to the integer constants of an error-domain

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

6 years agocodegen: Include "stddef.h" in CCodeBaseModule.destroy_value() (POSIX) 0d4d498261b1662d9bfa9ba6e8a97b2236ff243e
Rico Tzschichholz [Fri, 11 Jan 2019 22:28:00 +0000 (23:28 +0100)] 
codegen: Include "stddef.h" in CCodeBaseModule.destroy_value() (POSIX)

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

6 years agocodegen: Set owner for ValaDestroyNotify (POSIX)
Rico Tzschichholz [Fri, 11 Jan 2019 22:05:44 +0000 (23:05 +0100)] 
codegen: Set owner for ValaDestroyNotify (POSIX)

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

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 agovapi: Regenerate GIR-based bindings to fix non-standard error position
Rico Tzschichholz [Thu, 10 Jan 2019 10:32:13 +0000 (11:32 +0100)] 
vapi: Regenerate GIR-based bindings to fix non-standard error position

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

6 years agogirparser: Recognize error parameter before delegate target parameter
Rico Tzschichholz [Thu, 10 Jan 2019 10:24:36 +0000 (11:24 +0100)] 
girparser: Recognize error parameter before delegate target parameter

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

6 years agocodegen: Add "error_pos" CCode attribute and use it as needed
Rico Tzschichholz [Thu, 10 Jan 2019 08:55:11 +0000 (09:55 +0100)] 
codegen: Add "error_pos" CCode attribute and use it as needed

This makes it possible to use non-standard error parameter positions
within the vala source.

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

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 agogdk-pixbuf-2.0: Make PixbufSaveFunc usable
Rico Tzschichholz [Wed, 9 Jan 2019 17:35:39 +0000 (18:35 +0100)] 
gdk-pixbuf-2.0: Make PixbufSaveFunc usable

This delegates does place its target at the end, where vala expects
the error parameter. Vala does not support that at this point.

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

6 years agoatspi-2: Drop superfluous Atspi-2.0-custom.vala
Rico Tzschichholz [Wed, 9 Jan 2019 15:37:51 +0000 (16:37 +0100)] 
atspi-2: Drop superfluous Atspi-2.0-custom.vala

6 years agoatk: Drop superfluous metadata
Rico Tzschichholz [Wed, 9 Jan 2019 15:28:59 +0000 (16:28 +0100)] 
atk: Drop superfluous metadata

6 years agoatk: Don't use a custom SignalEmissionHook while it is part of gobject-2.0
Rico Tzschichholz [Wed, 9 Jan 2019 15:18:20 +0000 (16:18 +0100)] 
atk: Don't use a custom SignalEmissionHook while it is part of gobject-2.0

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

out-parameters are always handled in the *_finish implementation and
therefore are asynchronous. Report an error for occurances in source
and a warning for GIR sources where convert them to pointer-types to
create a usuable signature for bindings.

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