diff options
author | Johan Bilien <jobi@via.ecp.fr> | 2008-10-15 17:47:08 +0000 |
---|---|---|
committer | Johan Bilien <jobi@src.gnome.org> | 2008-10-15 17:47:08 +0000 |
commit | a658109407ab33222584b93ae00aaf135807a456 (patch) | |
tree | db70989e2d19a2647322d5f941dead3a4e0b6e26 /tests/scanner/drawable.c | |
parent | 85dd1cd58ef71a368f52abcb0bf8c4cc4ce0c572 (diff) | |
download | gobject-introspection-a658109407ab33222584b93ae00aaf135807a456.tar.gz |
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
Diffstat (limited to 'tests/scanner/drawable.c')
-rw-r--r-- | tests/scanner/drawable.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/scanner/drawable.c b/tests/scanner/drawable.c index 7dbd5fc1..2f0d5629 100644 --- a/tests/scanner/drawable.c +++ b/tests/scanner/drawable.c @@ -19,3 +19,17 @@ test_drawable_do_foo (TestDrawable *drawable, int x) { } + +void +test_drawable_get_origin (TestDrawable *drawable, int *x, int *y) +{ + *x = 0; + *y = 0; +} + +void +test_drawable_get_size (TestDrawable *drawable, guint *width, guint *height) +{ + *width = 42; + *height = 42; +} |