Skip to content

Commit 6a605cd

Browse files
committed
Adjust blank lines around PG_MODULE_MAGIC defines, for consistency
Report by Robert Haas
1 parent 5b214c5 commit 6a605cd

File tree

24 files changed

+3
-27
lines changed

24 files changed

+3
-27
lines changed

contrib/dict_int/dict_int.c

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
PG_MODULE_MAGIC;
1919

20-
2120
typedef struct
2221
{
2322
int maxlen;

contrib/earthdistance/earthdistance.c

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#define M_PI 3.14159265358979323846
1111
#endif
1212

13-
1413
PG_MODULE_MAGIC;
1514

1615
/* Earth's radius is in statute miles. */

contrib/intarray/_int_op.c

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
#include "_int.h"
88

9-
109
PG_MODULE_MAGIC;
1110

1211
PG_FUNCTION_INFO_V1(_int_different);

contrib/lo/lo.c

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
#include "libpq/be-fsstubs.h"
1313
#include "utils/rel.h"
1414

15-
1615
PG_MODULE_MAGIC;
1716

1817
#define atooid(x) ((Oid) strtoul((x), NULL, 10))

contrib/passwordcheck/passwordcheck.c

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
#include "fmgr.h"
2525
#include "libpq/md5.h"
2626

27-
2827
PG_MODULE_MAGIC;
2928

3029
/* passwords shorter than this will be rejected */

contrib/pg_buffercache/pg_buffercache_pages.c

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919

2020
PG_MODULE_MAGIC;
2121

22-
2322
/*
2423
* Record structure holding the to be exposed cache data.
2524
*/

contrib/pg_freespacemap/pg_freespacemap.c

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
#include "funcapi.h"
1212
#include "storage/freespace.h"
1313

14-
1514
PG_MODULE_MAGIC;
1615

1716
/*

contrib/pg_stat_statements/pg_stat_statements.c

-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@
7676
#include "utils/builtins.h"
7777
#include "utils/memutils.h"
7878

79-
8079
PG_MODULE_MAGIC;
8180

8281
/* Location of permanent stats file (valid when database is shut down) */

contrib/pg_trgm/trgm_op.c

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
#include "tsearch/ts_locale.h"
1212
#include "utils/memutils.h"
1313

14-
1514
PG_MODULE_MAGIC;
1615

1716
float4 trgm_limit = 0.3f;

contrib/pgrowlocks/pgrowlocks.c

-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
#include "utils/snapmgr.h"
3939
#include "utils/tqual.h"
4040

41-
4241
PG_MODULE_MAGIC;
4342

4443
PG_FUNCTION_INFO_V1(pgrowlocks);

contrib/pgstattuple/pgstattuple.c

-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
#include "utils/builtins.h"
3737
#include "utils/tqual.h"
3838

39-
4039
PG_MODULE_MAGIC;
4140

4241
PG_FUNCTION_INFO_V1(pgstattuple);

contrib/postgres_fdw/postgres_fdw.c

-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
#include "utils/lsyscache.h"
3838
#include "utils/memutils.h"
3939

40-
4140
PG_MODULE_MAGIC;
4241

4342
/* Default CPU cost to start up a foreign query. */

contrib/sslinfo/sslinfo.c

-2
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,8 @@
1818
#include <openssl/x509.h>
1919
#include <openssl/asn1.h>
2020

21-
2221
PG_MODULE_MAGIC;
2322

24-
2523
static Datum X509_NAME_field_to_text(X509_NAME *name, text *fieldName);
2624
static Datum X509_NAME_to_text(X509_NAME *name);
2725
static Datum ASN1_STRING_to_text(ASN1_STRING *str);

contrib/tcn/tcn.c

-2
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,8 @@
2323
#include "utils/rel.h"
2424
#include "utils/syscache.h"
2525

26-
2726
PG_MODULE_MAGIC;
2827

29-
3028
/*
3129
* Copy from s (for source) to r (for result), wrapping with q (quote)
3230
* characters and doubling any quote characters found.

contrib/test_decoding/test_decoding.c

-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
#include "utils/syscache.h"
3131
#include "utils/typcache.h"
3232

33-
3433
PG_MODULE_MAGIC;
3534

3635
/* These must be available to pg_dlsym() */

contrib/test_parser/test_parser.c

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
PG_MODULE_MAGIC;
1818

19-
2019
/*
2120
* types
2221
*/

contrib/test_shm_mq/test.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818

1919
#include "test_shm_mq.h"
2020

21-
PG_MODULE_MAGIC; PG_FUNCTION_INFO_V1(test_shm_mq);
21+
PG_MODULE_MAGIC;
22+
23+
PG_FUNCTION_INFO_V1(test_shm_mq);
2224
PG_FUNCTION_INFO_V1(test_shm_mq_pipelined);
2325

2426
void _PG_init(void);

contrib/uuid-ossp/uuid-ossp.c

-2
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,8 @@ do { \
108108

109109
#endif /* !HAVE_UUID_OSSP */
110110

111-
112111
PG_MODULE_MAGIC;
113112

114-
115113
PG_FUNCTION_INFO_V1(uuid_nil);
116114
PG_FUNCTION_INFO_V1(uuid_ns_dns);
117115
PG_FUNCTION_INFO_V1(uuid_ns_url);

contrib/xml2/xpath.c

-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
#include <libxml/xmlerror.h>
2424
#include <libxml/parserInternals.h>
2525

26-
2726
PG_MODULE_MAGIC;
2827

2928
/* exported for use by xslt_proc.c */

src/backend/snowball/dict_snowball.c

-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@
5858
#include "snowball/libstemmer/stem_UTF_8_swedish.h"
5959
#include "snowball/libstemmer/stem_UTF_8_turkish.h"
6060

61-
6261
PG_MODULE_MAGIC;
6362

6463
PG_FUNCTION_INFO_V1(dsnowball_init);

src/pl/plperl/plperl.c

-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ EXTERN_C void boot_PostgreSQL__InServer__SPI(pTHX_ CV *cv);
6060

6161
PG_MODULE_MAGIC;
6262

63-
6463
/**********************************************************************
6564
* Information associated with a Perl interpreter. We have one interpreter
6665
* that is used for all plperlu (untrusted) functions. For plperl (trusted)

src/tutorial/complex.c

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
#include "fmgr.h"
1313
#include "libpq/pqformat.h" /* needed for send/recv functions */
1414

15-
1615
PG_MODULE_MAGIC;
1716

1817
typedef struct Complex

src/tutorial/funcs.c

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
PG_MODULE_MAGIC;
2020

21-
2221
/* These prototypes just prevent possible warnings from gcc. */
2322

2423
int add_one(int arg);

src/tutorial/funcs_new.c

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
#include "executor/executor.h" /* for GetAttributeByName() */
1717
#include "utils/geo_decls.h" /* for point type */
1818

19-
2019
PG_MODULE_MAGIC;
2120

2221
/* These prototypes just prevent possible warnings from gcc. */

0 commit comments

Comments
 (0)