scanner: Refactor name parsing
authorColin Walters <walters@verbum.org>
Wed, 1 Sep 2010 16:39:52 +0000 (12:39 -0400)
committerColin Walters <walters@verbum.org>
Wed, 1 Sep 2010 16:39:52 +0000 (12:39 -0400)
commitc8e227432c5072ab858f8acd93b24ffc26ed1c68
tree74e8a56e665da9d2ccc9c72068ae1f1f2ac13636
parent5d114c3832a8ac6b3897c02be420d299fb90692c
scanner: Refactor name parsing

First, merge the implementations of parsing both identifiers and
symbols, since they had more in common than they had differences.

Secondly, fix the logic for priority of --accept-unprefixed in
the presence of unprefixed includes.  The current namespace should
win.  An example of this is mutter which has unprefixed public
symbols, but also includes xlib, which has no prefix.

Third, for unprefixed namespaces, actually look at the contents
rather than just blindly returning them.  This is a bit of a hack,
but better than the alternatives.
giscanner/scannermain.py
giscanner/transformer.py