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

Commit6a605cd

Browse files
committed
Adjust blank lines around PG_MODULE_MAGIC defines, for consistency
Report by Robert Haas
1 parent5b214c5 commit6a605cd

File tree

24 files changed

+3
-27
lines changed

24 files changed

+3
-27
lines changed

‎contrib/dict_int/dict_int.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
PG_MODULE_MAGIC;
1919

20-
2120
typedefstruct
2221
{
2322
intmaxlen;

‎contrib/earthdistance/earthdistance.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#defineM_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

Lines changed: 0 additions & 1 deletion
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

Lines changed: 0 additions & 1 deletion
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
#defineatooid(x) ((Oid) strtoul((x), NULL, 10))

‎contrib/passwordcheck/passwordcheck.c

Lines changed: 0 additions & 1 deletion
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

Lines changed: 0 additions & 1 deletion
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

Lines changed: 0 additions & 1 deletion
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

Lines changed: 0 additions & 1 deletion
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

Lines changed: 0 additions & 1 deletion
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
float4trgm_limit=0.3f;

‎contrib/pgrowlocks/pgrowlocks.c

Lines changed: 0 additions & 1 deletion
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

Lines changed: 0 additions & 1 deletion
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

Lines changed: 0 additions & 1 deletion
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

Lines changed: 0 additions & 2 deletions
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
staticDatumX509_NAME_field_to_text(X509_NAME*name,text*fieldName);
2624
staticDatumX509_NAME_to_text(X509_NAME*name);
2725
staticDatumASN1_STRING_to_text(ASN1_STRING*str);

‎contrib/tcn/tcn.c

Lines changed: 0 additions & 2 deletions
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

Lines changed: 0 additions & 1 deletion
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

Lines changed: 0 additions & 1 deletion
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

Lines changed: 3 additions & 1 deletion
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

Lines changed: 0 additions & 2 deletions
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

Lines changed: 0 additions & 1 deletion
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

Lines changed: 0 additions & 1 deletion
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

Lines changed: 0 additions & 1 deletion
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

Lines changed: 0 additions & 1 deletion
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
typedefstructComplex

‎src/tutorial/funcs.c

Lines changed: 0 additions & 1 deletion
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
intadd_one(intarg);

‎src/tutorial/funcs_new.c

Lines changed: 0 additions & 1 deletion
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)

[8]ページ先頭

©2009-2025 Movatter.jp