Changes in python/lib/gen_external.py [50853b0:dad51ce]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/lib/gen_external.py
r50853b0 rdad51ce 31 31 'pitchyin', 32 32 'pitchyinfft', 33 'pitchyinfast',34 33 'sink', 35 34 'sink_apple_audio', … … 119 118 if i >= len(cpp_output): 120 119 break 121 if ('{' in cpp_output[i - 1]) and ( '}' not in cpp_output[i - 1]) or (';' notin cpp_output[i - 1]):120 if ('{' in cpp_output[i - 1]) and (not '}' in cpp_output[i - 1]) or (not ';' in cpp_output[i - 1]): 122 121 cpp_output[i] = cpp_output[i - 1] + ' ' + cpp_output[i] 123 122 cpp_output.pop(i - 1) … … 138 137 139 138 def get_cpp_objects_from_c_declarations(c_declarations, skip_objects=None): 140 if skip_objects isNone:139 if skip_objects == None: 141 140 skip_objects = default_skip_objects 142 141 typedefs = filter(lambda y: y.startswith('typedef struct _aubio'), c_declarations) … … 146 145 147 146 148 def get_all_func_names_from_lib(lib ):147 def get_all_func_names_from_lib(lib, depth=0): 149 148 ''' return flat string of all function used in lib 150 149 ''' 151 150 res = [] 152 for _, v in lib.items(): 151 indent = " " * depth 152 for k, v in lib.items(): 153 153 if isinstance(v, dict): 154 res += get_all_func_names_from_lib(v )154 res += get_all_func_names_from_lib(v, depth + 1) 155 155 elif isinstance(v, list): 156 156 for elem in v:
Note: See TracChangeset
for help on using the changeset viewer.