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

Commit80fc96e

Browse files
committed
Standardize order of use strict and use warnings in Perl code
The standard order in PostgreSQL and other code is use strict first,but some code was uselessly inconsistent about this.
1 parentc47a240 commit80fc96e

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

‎doc/src/sgml/generate-errcodes-table.pl‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
# Generate the errcodes-table.sgml file from errcodes.txt
44
# Copyright (c) 2000-2020, PostgreSQL Global Development Group
55

6-
use warnings;
76
use strict;
7+
use warnings;
88

99
print
1010
"<!-- autogenerated from src/backend/utils/errcodes.txt, do not edit -->\n";

‎src/backend/parser/check_keywords.pl‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
# src/backend/parser/check_keywords.pl
77
# Copyright (c) 2009-2020, PostgreSQL Global Development Group
88

9-
use warnings;
109
use strict;
10+
use warnings;
1111

1212
my$gram_filename =$ARGV[0];
1313
my$kwlist_filename =$ARGV[1];

‎src/backend/storage/lmgr/generate-lwlocknames.pl‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
# Generate lwlocknames.h and lwlocknames.c from lwlocknames.txt
44
# Copyright (c) 2000-2020, PostgreSQL Global Development Group
55

6-
use warnings;
76
use strict;
7+
use warnings;
88

99
my$lastlockidx = -1;
1010
my$continue ="\n";

‎src/backend/utils/generate-errcodes.pl‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
# Generate the errcodes.h header from errcodes.txt
44
# Copyright (c) 2000-2020, PostgreSQL Global Development Group
55

6-
use warnings;
76
use strict;
7+
use warnings;
88

99
print
1010
"/* autogenerated from src/backend/utils/errcodes.txt, do not edit */\n";

‎src/pl/plpgsql/src/generate-plerrcodes.pl‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
# Generate the plerrcodes.h header from errcodes.txt
44
# Copyright (c) 2000-2020, PostgreSQL Global Development Group
55

6-
use warnings;
76
use strict;
7+
use warnings;
88

99
print
1010
"/* autogenerated from src/backend/utils/errcodes.txt, do not edit */\n";

‎src/pl/plpython/generate-spiexceptions.pl‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
# Generate the spiexceptions.h header from errcodes.txt
44
# Copyright (c) 2000-2020, PostgreSQL Global Development Group
55

6-
use warnings;
76
use strict;
7+
use warnings;
88

99
print
1010
"/* autogenerated from src/backend/utils/errcodes.txt, do not edit */\n";

‎src/pl/tcl/generate-pltclerrcodes.pl‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
# Generate the pltclerrcodes.h header from errcodes.txt
44
# Copyright (c) 2000-2020, PostgreSQL Global Development Group
55

6-
use warnings;
76
use strict;
7+
use warnings;
88

99
print
1010
"/* autogenerated from src/backend/utils/errcodes.txt, do not edit */\n";

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp