]> thyrsus.com Git - ctopy.git/commitdiff
Fix the prototype manglers.
authorEric S. Raymond <esr@thyrsus.com>
Sun, 1 Oct 2006 11:20:15 +0000 (11:20 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Sun, 1 Oct 2006 11:20:15 +0000 (11:20 +0000)
ctopy

diff --git a/ctopy b/ctopy
index 5ec2174a5c4455340e922cb57abb7eb236b891ad..78d07542975b0ecf5e60433802a02b1068af35fa 100755 (executable)
--- a/ctopy
+++ b/ctopy
@@ -44,9 +44,9 @@ repeat_transformations = (
     # simplifying both function formal parameter lists and variable
     # declaration lines.  We'll get rid of the remaining type stuff
     # in a later pass.
-    (r"(%(type)s)\s*\*", "\1"),                        # Pointer type decls
-    (r"(%(type)s)\s*\((%(id)s)\)","\1 \2"),    # Function pointer wrappers
-    (r"(%(type)s)\s*(%(id)s)\[\]","\1 \2"),    # Array declarators
+    (r"(%(type)s)\s*\*", r"\1"),                       # Pointer type decls
+    (r"(%(type)s)\s*\((%(id)s)\)", r"\1 \2"),  # Function pointer wrappers
+    (r"(%(type)s)\s*(%(id)s)\[\]", r"\1 \2"),  # Array declarators
     ),
     (
     # What we're doing here is trying to get rid of variable