summaryrefslogtreecommitdiff
path: root/tools/g-ir-scanner
diff options
context:
space:
mode:
authorJohan Dahlin <johan@src.gnome.org>2008-05-09 00:08:26 +0000
committerJohan Dahlin <johan@src.gnome.org>2008-05-09 00:08:26 +0000
commit5f945dae6127eb242ba5aaa91acae1365d3ad7a3 (patch)
treec7498183c6af5841fbee69cc010f68f432df9fed /tools/g-ir-scanner
parentaf9a71b6e03415bcbc82febc2a969046d9e962ae (diff)
downloadgobject-introspection-5f945dae6127eb242ba5aaa91acae1365d3ad7a3.tar.gz
Move part of the namespace prefix parsing from glibtransformer->transformer
svn path=/trunk/; revision=271
Diffstat (limited to 'tools/g-ir-scanner')
-rwxr-xr-xtools/g-ir-scanner9
1 files changed, 4 insertions, 5 deletions
diff --git a/tools/g-ir-scanner b/tools/g-ir-scanner
index 22abf403..d06ac062 100755
--- a/tools/g-ir-scanner
+++ b/tools/g-ir-scanner
@@ -119,17 +119,16 @@ def main(args):
# Transform the C symbols into AST nodes
transformer = Transformer(ss, options.namespace_name)
transformer.set_strip_prefix(options.strip_prefix)
+ for include in options.includes:
+ transformer.register_include(include)
# Transform the C AST nodes into higher level
# GLib/GObject nodes
- glibtransformer = GLibTransformer()
+ glibtransformer = GLibTransformer(transformer)
if options.library:
glibtransformer.load_library(options.library)
- for include in options.includes:
- glibtransformer.register_include(include)
- namespace = transformer.parse()
- namespace = glibtransformer.parse(namespace)
+ namespace = glibtransformer.parse()
# Write out AST
writer = Writer(namespace)