Rework types to be more closely based on GITypeTag. Parse more bits. Write
authorColin Walters <walters@verbum.org>
Tue, 19 Aug 2008 21:20:14 +0000 (21:20 +0000)
committerColin Walters <walters@src.gnome.org>
Tue, 19 Aug 2008 21:20:14 +0000 (21:20 +0000)
commit43ae21545983485663cf1eb50ddd4e4853c31a18
tree471ef5d0336c585d1b00f7906e1eb2be9a333470
parent36e76d4f757cd9f7690890de9c28b389777588f7
Rework types to be more closely based on GITypeTag. Parse more bits. Write

2008-08-19  Colin Walters  <walters@verbum.org>

* giscanner/ast.py: Rework types to be more closely
based on GITypeTag.
* giscanner/girparser.py: Parse more bits.
* giscanner/girwriter.py: Write sequences in a new
way that specifies container type.
* giscanner/glibast.py: Adjust for ast.py changes,
add 'ctype' property to GLibObject and GLibInterface
so we can look things up by it later.
* gicanner/transformer.py: Names is new class holding
the various namespaces we manage.  Do not confuse
with Namespace which is toplevel XML node effectively.
Rework all type resolution to go through
_resolve_type_name_1.
* giscanner/glibtransformer.py: Raise UnknownTypeError
instead of ValueError for cleanliness.  Add Unresolved
class to mark types whose parent we haven't seen yet.
Use new Names object from transformer.py.
Correctly look up parent=.
Fix type validation to handle sequences.
* tests/scanner/Foo-expected.gir: Update for sequence
work, int instead of int32.
* tools/g-ir-scanner: Add --noclosure option
* gir/Makefile.am: Use --noclosure by default for
GLib/GObject.

svn path=/trunk/; revision=401
ChangeLog