OSDN Git Service

Require closing paren on line above brace to identify function
authorBruce Momjian <bruce@momjian.us>
Sat, 3 Nov 2001 22:34:13 +0000 (22:34 +0000)
committerBruce Momjian <bruce@momjian.us>
Sat, 3 Nov 2001 22:34:13 +0000 (22:34 +0000)
difinition, just for formatting workaround, per Tom's discovery.

src/tools/pgindent/pgindent

index 5a644aa..677a486 100755 (executable)
@@ -51,8 +51,9 @@ do
                            line1 !~ "^struct" &&
                            line1 !~ "^enum" &&
                            line1 !~ "^typedef" &&
-                           line1 !~ "\"C\"" &&
-                           line1 !~ "=" )
+                           line1 !~ "extern[   ][      ]*\"C\"" &&
+                           line1 !~ "=" &&
+                           line1 ~ ")")
                                print "int      pgindent_func_no_var_fix;";
                        line1 = line2;
                }