From 690806329d0618476357d8e7be31916505339ea0 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 3 Oct 2006 09:23:15 +0000 Subject: [PATCH] Fix a bug in declratio translation. --- ctopy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ctopy b/ctopy index 62422e7..c6ee01a 100755 --- a/ctopy +++ b/ctopy @@ -86,9 +86,9 @@ repeat_transformations = ( # Class-Vars between comma and semicolon get a following initializer (r"(\n[ \t]*)(%(class)s)(.*,\s)*(%(id)s)(\s*;)", r"\1\2\3\4 = \2()\5"), # Scalar-vars between commas in a declaration line go away. - (r"(\n[ \t]*(?:%(type)s)\s+.*)(,\s*%(id)s)(,.*);", r"\1\3"), + (r"(\n[ \t]*(?:%(type)s)\s+.*)(,\s*%(id)s)(,.*);", r"\1\3;"), # Bare class-vars between commas get an initializer - (r"(\n[ \t]*)(%(class)s)(\s+.*,)(\s*%(id)s),(.*);", r"\1\2\3\4 = \2(),\5"), + (r"(\n[ \t]*)(%(class)s)(\s+.*,)(\s*%(id)s),(.*);",r"\1\2\3\4 = \2(),\5;"), # Any declaration line not containing an initializer goes away. (r"\n[ \t]*(?:%(type)s|%(class)s)[^=;]*;", ""), ), -- 2.43.0