Changeset b1f93c4


Ignore:
Timestamp:
May 30, 2017, 12:23:37 AM (7 years ago)
Author:
Martin Hermant <martin.hermant@gmail.com>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master
Children:
6cbf34b
Parents:
415e360
Message:

gen_external.py : fix func_name to long_name resolving (example : aubio_pitch was getting functions like aubio_pitchyin)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/lib/gen_external.py

    r415e360 rb1f93c4  
    153153        lib[shortname]['longname'] = longname
    154154        lib[shortname]['shortname'] = shortname
    155         valid_funcname_part = ['_'+longname,longname+'_']
    156155
    157156        for fn in c_declarations:
     
    161160            else:
    162161                raise NameError('Warning : error while parsing : unexpected line %s' % fn)
    163             if any(x in func_name for x in valid_funcname_part):
     162            if func_name.startswith(longname + '_') or func_name.endswith(longname):
    164163                # print "found", shortname, "in", fn
    165164                if 'typedef struct ' in fn:
Note: See TracChangeset for help on using the changeset viewer.