diff options
author | Colin Walters <walters@verbum.org> | 2013-02-24 03:55:18 -0500 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2013-02-24 10:32:49 -0500 |
commit | 0b013d3cdd26d4a5f048e4df2cc17ffe177bdb21 (patch) | |
tree | 1bc26eb9660ff1ef6ae8362d23755828b8193a89 /giscanner/ast.py | |
parent | 4e39be9319dd48caca02da8aff5979a0855a2992 (diff) | |
download | gobject-introspection-0b013d3cdd26d4a5f048e4df2cc17ffe177bdb21.tar.gz |
scanner: internals cleanup: Key more things off Namespace
The .gir format has a weird legacy where stuff like the includes are
outside of the <namespace>. But conceptually they're tied together,
so let's start reflecting this in the code.
This way we can just pass around and look at a Namespace object
instead of a 4-tuple of (namespace, includes, c_includes, pkg_config).
https://bugzilla.gnome.org/show_bug.cgi?id=694593
Diffstat (limited to 'giscanner/ast.py')
-rw-r--r-- | giscanner/ast.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/giscanner/ast.py b/giscanner/ast.py index 09616f65..d9f23539 100644 --- a/giscanner/ast.py +++ b/giscanner/ast.py @@ -372,6 +372,7 @@ class Namespace(object): self.type_names = {} # Maps from GTName -> node self.ctypes = {} # Maps from CType -> node self.symbols = {} # Maps from function symbols -> Function + self.includes = set() # Include def type_from_name(self, name, ctype=None): """Backwards compatibility method for older .gir files, which |