From f61c178bec7d4f298c73b33372fbb0370c282e55 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Mon, 4 Jan 2010 09:13:43 +0000 Subject: Bindings: in bindings.py, parse '(in)' gobject-introspection annotation, in utils.py, use it to reverse default annotation for pointer of pointers Bindings: in bindings.py, improve regular expression for declarations Bindings: parse gobject-introspection annotation in return value documentation, add cast to C calls when parameter type is const in java binding, problem arise with const char ** arrays --- bindings/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bindings/utils.py') diff --git a/bindings/utils.py b/bindings/utils.py index e1248d92..68ce2392 100644 --- a/bindings/utils.py +++ b/bindings/utils.py @@ -128,7 +128,8 @@ def value_type(arg): return arg[2].get('value-type') def is_out(arg): - return _test_arg(arg, 'out') or arg_type(arg).endswith('**') + return _test_arg(arg, 'out') or (arg_type(arg).endswith('**') and not _test_arg(arg, 'in')) + def is_glist(arg): return re.match('GList\>', var_type(arg)) -- cgit