From 05f400942d2f3ac9a721bbfad5d58b6aa1d93cc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torsten=20Sch=C3=B6nfeld?= Date: Sun, 2 Oct 2011 17:20:45 +0200 Subject: scanner: remove backcompat copies more safely Instead of modifying the namespace while we are iterating over it, which leads to nodes not being tested, set an 'internal_skipped' property on the function and read it in the GIR writer. https://bugzilla.gnome.org/show_bug.cgi?id=660698 --- giscanner/girwriter.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'giscanner/girwriter.py') diff --git a/giscanner/girwriter.py b/giscanner/girwriter.py index c54a5389..90f7e1ed 100644 --- a/giscanner/girwriter.py +++ b/giscanner/girwriter.py @@ -173,6 +173,8 @@ and/or use gtk-doc annotations. ''') self._write_parameters(callable) def _write_function(self, func, tag_name='function'): + if func.internal_skipped: + return attrs = [] if hasattr(func, 'symbol'): attrs.append(('c:identifier', func.symbol)) -- cgit v1.2.1