Require closing paren on line above brace to identify function
authorBruce Momjian
Sat, 3 Nov 2001 22:34:13 +0000 (22:34 +0000)
committerBruce Momjian
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 5a644aaa369df3ca832750d052e37cf79ebd698e..677a4869cc31cda11dc294c7109b2dcfaf1fb03e 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;
        }