Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/giscanner/transformer.py
diff options
context:
space:
mode:
authorJohan Dahlin <jdahlin@litl.com>2009-02-25 17:38:39 (GMT)
committer Johan Dahlin <johan@gnome.org>2009-02-25 17:38:39 (GMT)
commitc58582c7a88a95616fa87b81517ab8a2a76af92f (patch)
treea45e6f19ce8d6fd3ba57510984a94756e0d0ce78 /giscanner/transformer.py
parenta51b8305c70fedd6d989229c3d7ed46b200718e8 (diff)
parentacf7c084c5e13de262d866b896e9b30a0739eecf (diff)
Merge commit 'origin'
Diffstat (limited to 'giscanner/transformer.py')
-rw-r--r--giscanner/transformer.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/giscanner/transformer.py b/giscanner/transformer.py
index 6f9207a..58c2fbc 100644
--- a/giscanner/transformer.py
+++ b/giscanner/transformer.py
@@ -419,7 +419,7 @@ class Transformer(object):
def _create_type(self, source_type, is_param, is_retval):
ctype = self._create_source_type(source_type)
- if ctype == 'va_list':
+ if ctype.startswith('va_list'):
raise SkipError()
# FIXME: FILE* should not be skipped, it should be handled
# properly instead
@@ -460,6 +460,10 @@ class Transformer(object):
return return_
def _create_const(self, symbol):
+ # Don't create constants for non-public things
+ # http://bugzilla.gnome.org/show_bug.cgi?id=572790
+ if not symbol.source_filename.endswith('.h'):
+ return None
name = self.remove_prefix(symbol.ident)
if symbol.const_string is None:
type_name = 'int'