gen_external.py : fix wrong in longname in lib generation
authorMartin Hermant <martin.hermant@gmail.com>
Mon, 29 May 2017 22:17:15 +0000 (18:17 -0400)
committerMartin Hermant <martin.hermant@gmail.com>
Mon, 29 May 2017 22:17:15 +0000 (18:17 -0400)
python/lib/gen_external.py

index cf2d3c2..1a81cc2 100644 (file)
@@ -150,7 +150,7 @@ def analyze_c_declarations(cpp_objects, c_declarations):
         if shortname in skip_objects:
             continue
         lib[shortname] = {'struct': [], 'new': [], 'del': [], 'do': [], 'get': [], 'set': [], 'other': []}
-        lib[shortname]['longname'] = o
+        lib[shortname]['longname'] = longname
         lib[shortname]['shortname'] = shortname
         valid_funcname_part = ['_'+longname,longname+'_']