]> git.ipfire.org Git - thirdparty/vala.git/commit
Add further support for params arrays 98ab3da89640b8b8a6c67044b4df1194672774bb 84/head
authorRico Tzschichholz <ricotz@ubuntu.com>
Wed, 15 Jan 2020 14:52:49 +0000 (15:52 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Wed, 15 Jan 2020 14:52:49 +0000 (15:52 +0100)
commit98ab3da89640b8b8a6c67044b4df1194672774bb
treedf8c01f363a605cc9fed4ae6df8d09bb4fc81f6d
parent8021ad3876ede6b19a8e075ab0f0a23a999d0b50
Add further support for params arrays

This brings support for params-arrays in normal vala source code.

The parameter is a null-terminated array which is represented as variadic
parameter in generated C.

This feature is considered experimental for now.

Fixes https://gitlab.gnome.org/GNOME/vala/issues/128
12 files changed:
codegen/valaccodearraymodule.vala
codegen/valaccodebasemodule.vala
codegen/valaccodemethodmodule.vala
codegen/valagirwriter.vala
tests/Makefile.am
tests/asynchronous/params-array-invalid.test [new file with mode: 0644]
tests/methods/params-array.vala [new file with mode: 0644]
tests/semantic/params-array-multiple.test [new file with mode: 0644]
tests/semantic/params-array-struct-length.test [new file with mode: 0644]
vala/valamethod.vala
vala/valamethodcall.vala
vala/valascope.vala