Skip to content

Commit 80fc96e

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 parent c47a240 commit 80fc96e

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy