Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit158129b

Browse files
committed
Improve readability of script.
1 parent5251e7b commit158129b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/tools/pgindent/pgindent

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ do
5151
line1 !~ "^struct" &&
5252
line1 !~ "^enum" &&
5353
line1 !~ "^typedef" &&
54-
line1 !~ "extern[ ][ ]*\"C\"" &&
54+
line1 !~ "^extern[ ][ ]*\"C\"" &&
5555
line1 !~ "=" &&
5656
line1 ~ ")")
5757
print "intpgindent_func_no_var_fix;";
@@ -1477,7 +1477,7 @@ do
14771477
detab -t8 -qc|
14781478
entab -t4 -qc|
14791479
# add space after comments that start on tab stops
1480-
sed's:\([^ ]\)\(/\*.*\*/\)$:\1\2:'|
1480+
sed's;\([^ ]\)\(/\*.*\*/\)$;\1\2;'|
14811481
# move trailing * in function return type
14821482
sed's;^\([A-Za-z_][^ ]*\)[ ][ ]*\*$;\1 *;'|
14831483
# remove un-needed braces around single statements

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp