scanner: allow for functions that look like constructors but aren't
authorDan Winship <danw@gnome.org>
Sun, 27 May 2012 00:19:39 +0000 (20:19 -0400)
committerDan Winship <danw@gnome.org>
Sun, 27 May 2012 00:23:52 +0000 (20:23 -0400)
commit44cf78baf6496835abbf3c092895c2a46a2d4ef0
tree48893535ca6ae33d3d989e53b382196b2c3d30f3
parent6e25b3849692cd9afcfbb4152e7e8e213fd37917
scanner: allow for functions that look like constructors but aren't

If the scanner found a function with _new in its name, but not
prefixed by the name of a known type, it would assume that the
function was a constructor, and then complain that it couldn't figure
out what it was a constructor for, and mark it introspectable=0.

Instead, just assume that the function is not actually a constructor
in that case (unless it's explicitly tagged as such).

https://bugzilla.gnome.org/show_bug.cgi?id=676815
giscanner/maintransformer.py
tests/scanner/Foo-1.0-expected.gir
tests/scanner/foo.c
tests/scanner/foo.h