diff options
author | Johan Dahlin <johan@src.gnome.org> | 2008-05-09 00:08:26 +0000 |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2008-05-09 00:08:26 +0000 |
commit | 5f945dae6127eb242ba5aaa91acae1365d3ad7a3 (patch) | |
tree | c7498183c6af5841fbee69cc010f68f432df9fed /tools/g-ir-scanner | |
parent | af9a71b6e03415bcbc82febc2a969046d9e962ae (diff) | |
download | gobject-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-x | tools/g-ir-scanner | 9 |
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) |