From 677e0487d2296f326b68c0e55629e70e537b3c69 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 9 Sep 2010 15:15:12 -0400 Subject: scanner: Skip functions with leading '_' Multiple modules have '_' prefixed symbols in "public" headers meaning "don't use this in your app". --- giscanner/transformer.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'giscanner') diff --git a/giscanner/transformer.py b/giscanner/transformer.py index 328d29e..1acc67a 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: -- cgit v1.2.3