aboutsummaryrefslogtreecommitdiff
path: root/tools/bindings_generator.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-09-05 12:38:23 -0700
committerAlon Zakai <alonzakai@gmail.com>2011-09-05 12:38:23 -0700
commita085c0e4a991901174b2110b0bcbd84960c426bf (patch)
tree682f27087985eb1e81d816ec7601c7a417d5f59a /tools/bindings_generator.py
parent3f89bd84dcfe60c9ac706a54de666f919af643cd (diff)
fix for bindings generator to use enclosing classes in return values
Diffstat (limited to 'tools/bindings_generator.py')
-rwxr-xr-xtools/bindings_generator.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/bindings_generator.py b/tools/bindings_generator.py
index 66462b6d..3da10b89 100755
--- a/tools/bindings_generator.py
+++ b/tools/bindings_generator.py
@@ -105,6 +105,8 @@ for classname, clazz in parsed.classes.iteritems():
struct['name'] = sname # Missing in CppHeaderParser
print 'zz seen struct %s in %s' % (sname, classname)
+print 'zz parents: ', parents
+
for classname, clazz in classes.iteritems():
# Various precalculations
print 'zz precalc', classname
@@ -177,6 +179,9 @@ for classname, clazz in classes.iteritems():
1/0.
# Fill in some missing stuff
+ method['returns_text'] = method['returns_text'].replace('&', '').replace('*', '')
+ if method['returns_text'] in parents:
+ method['returns_text'] = parents[method['returns_text']] + '::' + method['returns_text']
if method.get('returns_const'): method['returns_text'] = 'const ' + method['returns_text']
if method.get('returns_pointer'):
while method['returns_text'].count('*') < method['returns_pointer']: