summaryrefslogtreecommitdiff
path: root/giscanner/transformer.py
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2010-09-09 15:15:12 -0400
committerColin Walters <walters@verbum.org>2010-09-09 15:15:12 -0400
commit677e0487d2296f326b68c0e55629e70e537b3c69 (patch)
tree76f822c446d7e6d670dd9a5739abf1a60f488c3b /giscanner/transformer.py
parent79e0ea087341e09e4bbbbc77479a3e91fb824446 (diff)
downloadgobject-introspection-677e0487d2296f326b68c0e55629e70e537b3c69.tar.gz
scanner: Skip functions with leading '_'
Multiple modules have '_' prefixed symbols in "public" headers meaning "don't use this in your app".
Diffstat (limited to 'giscanner/transformer.py')
-rw-r--r--giscanner/transformer.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/giscanner/transformer.py b/giscanner/transformer.py
index 328d29e8..1acc67ae 100644
--- a/giscanner/transformer.py
+++ b/giscanner/transformer.py
@@ -367,6 +367,9 @@ raise ValueError."""
return node
def _create_function(self, symbol):
+ # Drop functions that start with _ very early on here
+ if symbol.ident.startswith('_'):
+ return None
parameters = list(self._create_parameters(symbol.base_type))
return_ = self._create_return(symbol.base_type.base_type)
try: