Bug 556433 – assume direction = out for int * parameters
authorJohan Bilien <jobi@via.ecp.fr>
Wed, 15 Oct 2008 17:47:08 +0000 (17:47 +0000)
committerJohan Bilien <jobi@src.gnome.org>
Wed, 15 Oct 2008 17:47:08 +0000 (17:47 +0000)
commita658109407ab33222584b93ae00aaf135807a456
treedb70989e2d19a2647322d5f941dead3a4e0b6e26
parent85dd1cd58ef71a368f52abcb0bf8c4cc4ce0c572
Bug 556433 – assume direction = out for int * parameters

2008-10-15  Johan Bilien  <jobi@via.ecp.fr>

Bug 556433 – assume direction = out for int * parameters

* giscanner/ast.py: define a list of types for which, if passed as
reference, we assume a default direction of 'out'
* giscanner/transformer.py: if a type has type pointer to one of the
previously defined types, and no direction is set, assume out.
* tests/scanner/drawable.[ch]: added tests for guessed direction=out

svn path=/trunk/; revision=710
ChangeLog
giscanner/ast.py
giscanner/transformer.py
tests/scanner/drawable-1.0-expected.gir
tests/scanner/drawable.c
tests/scanner/drawable.h