]> git.ipfire.org Git - thirdparty/vala.git/commit
GIR writer: Fix generation of array and delegate parameters
authorJan Hudec <bulb@ucw.cz>
Sat, 26 Sep 2009 16:00:06 +0000 (18:00 +0200)
committerJürg Billeter <j@bitron.ch>
Sun, 27 Sep 2009 13:31:53 +0000 (15:31 +0200)
commitc9f89ad3e9a6ae26cfc08cca94deef7c73421dae
treea2e9bddae5981140d06b69617035e8e76e3c7d37
parentd477db1288902ad87b702b386abc672eceecfce9
GIR writer: Fix generation of array and delegate parameters

Array and delegate parameters correspond to multiple parameters at the
C level. GObject-introspection expects them them to be written
separately, with special attributes refering to the main ones.

Since implicit output arguments must be generated for return values,
writing params and return values was combined to common methods. They
were always used together, so the main downside is the method now takes
long list of arguments to cover all the cases.

Note that only default argument positions are supported.

Signed-off-by: Jan Hudec <bulb@ucw.cz>
codegen/valagirwriter.vala