From: Eric S. Raymond Date: Sun, 1 Oct 2006 11:20:15 +0000 (+0000) Subject: Fix the prototype manglers. X-Git-Tag: 1.0~47 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=1a66be0b81246aea7f31fb8ca5dbbf83ede5ce16;p=ctopy.git Fix the prototype manglers. --- diff --git a/ctopy b/ctopy index 5ec2174..78d0754 100755 --- 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