Bug 552067: Ignore functions with leading _
authorColin Walters <walters@src.gnome.org>
Sun, 14 Sep 2008 19:36:43 +0000 (19:36 +0000)
committerColin Walters <walters@src.gnome.org>
Sun, 14 Sep 2008 19:36:43 +0000 (19:36 +0000)
* giscanner/glibtransformer.py: Ignore functions with
leading '_'.

svn path=/trunk/; revision=600

giscanner/glibtransformer.py

index 7437a5bd9dad9a975a878ba939af961c271ff958..216667287137a3d2c376eacd209c95caeb3bf1f6 100644 (file)
@@ -230,6 +230,8 @@ class GLibTransformer(object):
     def _parse_function(self, func):
         if func.symbol in SYMBOL_BLACKLIST:
             return
+        if func.symbol.startswith('_'):
+            return
         for regexp in SYMBOL_BLACKLIST_RE:
             if regexp.match(func.symbol):
                 return