Changes in / [93bcc45:8142a7e]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/lib/gen_external.py
r93bcc45 r8142a7e 86 86 ''' return a dense and preprocessed string of all c declarations implied by aubio.h 87 87 ''' 88 cpp_output = get_cpp_output(header=header, usedouble=usedouble)89 return filter_cpp_output (cpp_output)90 91 92 def get_cpp_output(header=header, usedouble=False):93 ''' find and run a C pre-processor on aubio.h '''94 88 cpp_cmd = get_preprocessor() 95 89 … … 126 120 cpp_output = [l.strip() for l in cpp_output.decode('utf8').split('\n')] 127 121 128 return cpp_output 129 130 def filter_cpp_output(cpp_raw_output): 131 ''' prepare cpp-output for parsing ''' 132 cpp_output = filter(lambda y: len(y) > 1, cpp_raw_output) 122 cpp_output = filter(lambda y: len(y) > 1, cpp_output) 133 123 cpp_output = list(filter(lambda y: not y.startswith('#'), cpp_output)) 134 124
Note: See TracChangeset
for help on using the changeset viewer.