From: Martin Hermant Date: Mon, 29 May 2017 22:12:32 +0000 (-0400) Subject: gen_external.py : clean preprocessor generated strings from stickin pointer notation... X-Git-Tag: 0.4.6~52^2~17 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=eea6101b8e2158afb3c40b3c8082b74b8c3e1b46;p=aubio.git gen_external.py : clean preprocessor generated strings from stickin pointer notation : ‘ void *my_func()’ => ‘void* my_func()’ --- diff --git a/python/lib/gen_external.py b/python/lib/gen_external.py index 52ab6ca1..cf2d3c20 100644 --- a/python/lib/gen_external.py +++ b/python/lib/gen_external.py @@ -121,6 +121,13 @@ def get_c_declarations(header=header, usedouble=False): else: i += 1 + # clean pointer notations + tmp = [] + for l in cpp_output: + tmp+=[ l.replace(' *','* ')] + cpp_output = tmp; + + return cpp_output def get_cpp_objects_from_c_declarations(c_declarations):