summaryrefslogtreecommitdiff
path: root/giscanner/utils.py
diff options
context:
space:
mode:
authorJohan Dahlin <johan@gnome.org>2008-08-18 18:01:21 +0000
committerJohan Dahlin <johan@src.gnome.org>2008-08-18 18:01:21 +0000
commit7e63a6289afb7d9162b47853fdbce63a5ef337db (patch)
treeabfb7a3bbe0abc195a4aec05906db15491e604e6 /giscanner/utils.py
parent4fd557392dfe9c3ff65e2e600f8801df05a9859c (diff)
downloadgobject-introspection-7e63a6289afb7d9162b47853fdbce63a5ef337db.tar.gz
Set ctype of enums Improve enum parsing for enums without a GType. Make
2008-08-18 Johan Dahlin <johan@gnome.org> * gir/Makefile.am: * giscanner/girparser.py: Set ctype of enums * giscanner/transformer.py: Improve enum parsing for enums without a GType. Make flags/enum references to other girs work * giscanner/utils.py: Simplify this a bit * tests/scanner/Makefile.am: * tests/scanner/foo-object.h: * tests/scanner/utility-expected.gir: * tests/scanner/utility.h: Add a new test for external enum references svn path=/trunk/; revision=397
Diffstat (limited to 'giscanner/utils.py')
-rw-r--r--giscanner/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/giscanner/utils.py b/giscanner/utils.py
index bc702910..a41d3d64 100644
--- a/giscanner/utils.py
+++ b/giscanner/utils.py
@@ -48,8 +48,8 @@ def extract_libtool(libname):
def strip_common_prefix(first, second):
- first_underscore = to_underscores(first)
- for i, c in enumerate(first_underscore.upper()):
+ second = second.replace('_', '')
+ for i, c in enumerate(first.upper()):
if c != second[i]:
break
return second[i:]