Make caller-allocates detection work for struct aliases
authorPavel Holejsovsky <pholejs@src.gnome.org>
Sun, 9 Jan 2011 15:12:46 +0000 (16:12 +0100)
committerPavel Holejsovsky <pholejs@src.gnome.org>
Thu, 13 Jan 2011 15:28:05 +0000 (16:28 +0100)
commit8896eb04d9cb9f8792da34ae9814c7d7b97a9729
treed8d49c81ed5961929ad88b0f17f045d89e818191
parentf3f3cb62abec946f82fe44a8382a04b28d6c7313
Make caller-allocates detection work for struct aliases

Scanner tries to detect caller-allocates attribute automatically if
not explicitly specified by checking that parameter is not double-referenced
and is struct or union.  This patch adds resolving of aliases when
checking whether parameter is struct or union.

Also removes old incorrect method transformer.follow_aliases, which
was never used in current code.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=639081
giscanner/maintransformer.py
giscanner/transformer.py
tests/scanner/Regress-1.0-expected.gir
tests/scanner/regress.c
tests/scanner/regress.h