Bug 564016 - Include c:prefix in typelib, use it to optimize find_by_gtype
authorColin Walters <walters@verbum.org>
Thu, 12 Feb 2009 23:42:47 +0000 (18:42 -0500)
committerColin Walters <walters@verbum.org>
Tue, 17 Mar 2009 20:29:08 +0000 (16:29 -0400)
commit888566c41b4f0d73ec80307d0418ab1d44c7210c
treed144a6bcf51b7e92868de16797e164b85a5ccca1
parent5dfa997724551ed163fefc11782b7163db3be378
Bug 564016 - Include c:prefix in typelib, use it to optimize find_by_gtype

Parse the c:prefix from the .gir, include it in the header.  Armed with this
information, we can now optimize lookups of GTypes because we
have the requirement that GTypes must start with the c:prefix.  We do
fall back though if a lookup fails.
14 files changed:
girepository/girepository.c
girepository/girepository.h
girepository/girmodule.c
girepository/girmodule.h
girepository/girparser.c
girepository/gtypelib.c
girepository/gtypelib.h
tests/scanner/BarApp-1.0-expected.tgir
tests/scanner/GtkFrob-1.0-expected.tgir
tests/scanner/annotation-1.0-expected.tgir
tests/scanner/drawable-1.0-expected.tgir
tests/scanner/foo-1.0-expected.tgir
tests/scanner/utility-1.0-expected.tgir
tools/generate.c