Disable array auto-detection for out-annotated parameters
authorOwen Taylor <otaylor@src.gnome.org>
Tue, 16 Dec 2008 04:20:50 +0000 (04:20 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Tue, 16 Dec 2008 04:20:50 +0000 (04:20 +0000)
commitaa8bf8d82c96d7151017c8b7e721fb4454645597
tree0e0214a1cc0a8832cd8afd8696a934f405328fdb
parent6ae11e8edbd5ca6783fb6166b2b921fac06ebdc3
Disable array auto-detection for out-annotated parameters

If we have a parameter annotated as (out), then having a ctype of
'char **' (or similar) doesn't necessarily indicate an array.

* giscanner/transformer.py: Skip array-detection logic for
  (out)-annotated parameters.
* tests/scanner/annotation.h tests/scanner/annotation.c
  tests/scanner/annotation-1.0-expected.gir
  tests/scanner/annotation-1.0-expected.tgir: Add a test for
  an (out) string parameter.

http://bugzilla.gnome.org/show_bug.cgi?id=563934

svn path=/trunk/; revision=994
ChangeLog
giscanner/transformer.py
tests/scanner/annotation-1.0-expected.gir
tests/scanner/annotation-1.0-expected.tgir
tests/scanner/annotation.c
tests/scanner/annotation.h