diff options
author | Jürg Billeter <j@bitron.ch> | 2009-01-05 22:30:15 +0000 |
---|---|---|
committer | Jürg Billeter <juergbi@src.gnome.org> | 2009-01-05 22:30:15 +0000 |
commit | 49023806b39bcc4ef08eacf4bf38d63dda36a8e5 (patch) | |
tree | 172cea89fb982331b5337c31bcd90cd6c25220d2 /vapigen | |
parent | e287cb4331bb9b5f1062c0538b7f389ce1ab36d2 (diff) | |
download | vala-49023806b39bcc4ef08eacf4bf38d63dda36a8e5.tar.gz |
Do not accidentally generate stacked arrays
2009-01-05 Jürg Billeter <j@bitron.ch>
* vapigen/valagidlparser.vala:
Do not accidentally generate stacked arrays
* vapi/packages/gdk-2.0/:
Fix gdk_keymap_get_entries_for_keyval, gdk_threads_add_idle, and
gdk_window_remove_filter bindings, patch by Mark Lee,
fixes bug 566679
* vapi/gdk-2.0.vapi: regenerated
svn path=/trunk/; revision=2277
Diffstat (limited to 'vapigen')
-rw-r--r-- | vapigen/valagidlparser.vala | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/vapigen/valagidlparser.vala b/vapigen/valagidlparser.vala index 708458fba..c038c2803 100644 --- a/vapigen/valagidlparser.vala +++ b/vapigen/valagidlparser.vala @@ -1536,10 +1536,12 @@ public class Vala.GIdlParser : CodeVisitor { } if (last_param != null && p.name == "n_" + last_param.name) { - // last_param is array, p is array length - last_param_type = new ArrayType (last_param_type, 1, last_param_type.source_reference); - last_param.parameter_type = last_param_type; - last_param.direction = ParameterDirection.IN; + if (!(last_param_type is ArrayType)) { + // last_param is array, p is array length + last_param_type = new ArrayType (last_param_type, 1, last_param_type.source_reference); + last_param.parameter_type = last_param_type; + last_param.direction = ParameterDirection.IN; + } // hide array length param hide_param = true; |