From: Bruce Momjian Date: Mon, 5 Nov 2001 05:18:43 +0000 (+0000) Subject: Improve readability of script. X-Git-Tag: REL7_2_BETA2~13 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=158129be7293d74d41755fee24e9ea6c2bd93684;p=postgresql Improve readability of script. --- diff --git a/src/tools/pgindent/pgindent b/src/tools/pgindent/pgindent index 80e116f789..f4a47811cd 100755 --- a/src/tools/pgindent/pgindent +++ b/src/tools/pgindent/pgindent @@ -51,7 +51,7 @@ do line1 !~ "^struct" && line1 !~ "^enum" && line1 !~ "^typedef" && - line1 !~ "extern[ ][ ]*\"C\"" && + line1 !~ "^extern[ ][ ]*\"C\"" && line1 !~ "=" && line1 ~ ")") print "int pgindent_func_no_var_fix;"; @@ -1477,7 +1477,7 @@ do detab -t8 -qc | entab -t4 -qc | # add space after comments that start on tab stops - sed 's:\([^ ]\)\(/\*.*\*/\)$:\1 \2:' | + sed 's;\([^ ]\)\(/\*.*\*/\)$;\1 \2;' | # move trailing * in function return type sed 's;^\([A-Za-z_][^ ]*\)[ ][ ]*\*$;\1 *;' | # remove un-needed braces around single statements