Changeset 51ca615
- Timestamp:
- May 30, 2017, 5:12:55 PM (7 years ago)
- 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:
- dad51ce
- Parents:
- 6e5c03a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/lib/gen_external.py
r6e5c03a r51ca615 12 12 """ 13 13 14 skip_objects = [14 default_skip_objects = [ 15 15 # already in ext/ 16 16 'fft', … … 136 136 137 137 138 def get_cpp_objects_from_c_declarations(c_declarations): 138 def get_cpp_objects_from_c_declarations(c_declarations,skip_objects = None): 139 if skip_objects==None: 140 skip_objects = default_skip_objects 139 141 typedefs = filter(lambda y: y.startswith('typedef struct _aubio'), c_declarations) 140 142 cpp_objects = [a.split()[3][:-1] for a in typedefs] 141 return cpp_objects 143 cpp_objects_filtered = filter(lambda y: not y[6:-2] in skip_objects, cpp_objects) 144 return cpp_objects_filtered 142 145 143 146 … … 178 181 if o[:6] == 'aubio_': 179 182 shortname = o[6:-2] # without aubio_ prefix and _t suffix 180 181 if shortname in skip_objects:182 continue183 183 184 184 lib[shortname] = {'struct': [], 'new': [], 'del': [], 'do': [], 'get': [], 'set': [], 'other': []}
Note: See TracChangeset
for help on using the changeset viewer.