gen_external.py : clean preprocessor generated strings from stickin pointer notation...
authorMartin Hermant <martin.hermant@gmail.com>
Mon, 29 May 2017 22:12:32 +0000 (18:12 -0400)
committerMartin Hermant <martin.hermant@gmail.com>
Mon, 29 May 2017 22:12:32 +0000 (18:12 -0400)
python/lib/gen_external.py

index 52ab6ca..cf2d3c2 100644 (file)
@@ -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):