From eea6101b8e2158afb3c40b3c8082b74b8c3e1b46 Mon Sep 17 00:00:00 2001 From: Martin Hermant Date: Mon, 29 May 2017 18:12:32 -0400 Subject: [PATCH] =?utf8?q?gen=5Fexternal.py=20:=20clean=20preprocessor=20g?= =?utf8?q?enerated=20strings=20from=20stickin=20pointer=20notation=20:=20?= =?utf8?q?=E2=80=98=20void=20*my=5Ffunc()=E2=80=99=20=3D>=20=E2=80=98void*?= =?utf8?q?=20my=5Ffunc()=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- python/lib/gen_external.py | 7 +++++++ 1 file changed, 7 insertions(+) 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): -- 2.11.0