Bug 575613 - Enum stripping with common prefix, also use "_" consistently
authorColin Walters <walters@verbum.org>
Mon, 16 Mar 2009 22:25:19 +0000 (18:25 -0400)
committerColin Walters <walters@verbum.org>
Tue, 17 Mar 2009 15:10:04 +0000 (11:10 -0400)
commite9dcc3cfb985292b5ff96772b73029a32b18ff11
tree7c235feb39b547a3829c12f64972b071d93dd7fa
parent1d1cc8c35364f9da12620c1925483b61dc688718
Bug 575613 - Enum stripping with common prefix, also use "_" consistently

Some enums have members which have a common prefix which doesn't
match that of the enum name, but it also longer than the global
namespace prefix.  Instead, try stripping the common prefix first,
and only if that fails fall back to the global strip.

Also, for glib-registered enums we were using the nick, which
typically has "-" as a separator.  Replace that with "_" for
consistency between unregistered enums and registered.

utils.py:strip_common_prefix is now unused, delete.
giscanner/glibtransformer.py
giscanner/transformer.py
giscanner/utils.py
tests/scanner/foo-1.0-expected.gir
tests/scanner/foo-1.0-expected.tgir
tests/scanner/foo.h