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

Commit6783b23

Browse files
committed
Another pgindent run. Fixes enum indenting, and improves #endif
spacing. Also adds space for one-line comments.
1 parentc29797d commit6783b23

File tree

525 files changed

+2434
-2054
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

525 files changed

+2434
-2054
lines changed

‎contrib/btree_gist/btree_gist.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ tskey_cmp(const void *a, const void *b)
486486
TimestampGetDatum(((TSKEY*) (((RIX*)a)->r))->lower),
487487
TimestampGetDatum(((TSKEY*) (((RIX*)b)->r))->lower)
488488
)
489-
);
489+
);
490490
}
491491

492492
/**************************************************

‎contrib/dbase/dbf.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ typedef struct
5959
{
6060
u_chardbf_name[DBF_NAMELEN];/* field-name terminated with \0 */
6161
u_chardbf_type;/* field-type */
62-
u_chardbf_reserved[4];/* some reserved stuff */
62+
u_chardbf_reserved[4];/* some reserved stuff */
6363
u_chardbf_flen;/* field-length */
6464
u_chardbf_dec;/* number of decimal positions if type is
6565
* 'N' */
@@ -135,4 +135,5 @@ extern long get_long(u_char *cp);
135135
externvoidput_long(u_char*cp,longlval);
136136
externshortget_short(u_char*cp);
137137
externvoidput_short(u_char*cp,shortlval);
138+
138139
#endif/* _DBF_H */

‎contrib/dblink/dblink.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,5 @@ extern Datum dblink_tok(PG_FUNCTION_ARGS);
6666
* Internal declarations
6767
*/
6868
dblink_results*init_dblink_results(MemoryContextfn_mcxt);
69+
6970
#endif/* DBLINK_H */

‎contrib/lo/lo.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
*PostgreSQL type definitions for managed LargeObjects.
33
*
4-
*$Header: /cvsroot/pgsql/contrib/lo/lo.c,v 1.9 2001/10/25 05:49:19 momjian Exp $
4+
*$Header: /cvsroot/pgsql/contrib/lo/lo.c,v 1.10 2001/10/28 06:25:40 momjian Exp $
55
*
66
*/
77

@@ -33,8 +33,8 @@ typedef Oid Blob;
3333
*/
3434

3535
Blob*lo_in(char*str);/* Create from String*/
36-
char*lo_out(Blob*addr);/* Output oid as String*/
37-
Oidlo_oid(Blob*addr);/* Return oid as an oid*/
36+
char*lo_out(Blob*addr);/* Output oid as String*/
37+
Oidlo_oid(Blob*addr);/* Return oid as an oid*/
3838
Blob*lo(Oidoid);/* Return Blob based on oid */
3939
Datumlo_manage(PG_FUNCTION_ARGS);/* Trigger handler */
4040

@@ -139,7 +139,7 @@ lo_manage(PG_FUNCTION_ARGS)
139139
TupleDesctupdesc;/* Tuple Descriptor*/
140140
HeapTuplerettuple;/* Tuple to be returned*/
141141
boolisdelete;/* are we deleting?*/
142-
HeapTuplenewtuple=NULL;/* The new value for tuple*/
142+
HeapTuplenewtuple=NULL;/* The new value for tuple*/
143143
HeapTupletrigtuple;/* The original value of tuple*/
144144

145145
if (!CALLED_AS_TRIGGER(fcinfo))

‎contrib/miscutil/misc_utils.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ intunlisten(char *relname);
66
intmax(intx,inty);
77
intmin(intx,inty);
88
intactive_listeners(text*relname);
9+
910
#endif

‎contrib/pg_dumplo/pg_dumplo.h

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* -------------------------------------------------------------------------
22
* pg_dumplo
33
*
4-
* $Header: /cvsroot/pgsql/contrib/pg_dumplo/Attic/pg_dumplo.h,v 1.5 2001/10/25 05:49:19 momjian Exp $
4+
* $Header: /cvsroot/pgsql/contrib/pg_dumplo/Attic/pg_dumplo.h,v 1.6 2001/10/28 06:25:40 momjian Exp $
55
*
66
*Karel Zak 1999-2000
77
* -------------------------------------------------------------------------
@@ -64,11 +64,11 @@ typedef struct
6464

6565
typedefenum
6666
{
67-
ACTION_NONE,
68-
ACTION_SHOW,
69-
ACTION_EXPORT_ATTR,
70-
ACTION_EXPORT_ALL,
71-
ACTION_IMPORT
67+
ACTION_NONE,
68+
ACTION_SHOW,
69+
ACTION_EXPORT_ATTR,
70+
ACTION_EXPORT_ALL,
71+
ACTION_IMPORT
7272
}PGLODUMP_ACTIONS;
7373

7474
externchar*progname;
@@ -78,4 +78,5 @@ extern void index_file(LODumpMaster * pgLO);
7878
externvoidload_lolist(LODumpMaster*pgLO);
7979
externvoidpglo_export(LODumpMaster*pgLO);
8080
externvoidpglo_import(LODumpMaster*pgLO);
81+
8182
#endif/* PG_DUMPLO_H */

‎contrib/pg_resetxlog/pg_resetxlog.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
2424
* Portions Copyright (c) 1994, Regents of the University of California
2525
*
26-
* $Header: /cvsroot/pgsql/contrib/pg_resetxlog/Attic/pg_resetxlog.c,v 1.8 2001/10/25 05:49:19 momjian Exp $
26+
* $Header: /cvsroot/pgsql/contrib/pg_resetxlog/Attic/pg_resetxlog.c,v 1.9 2001/10/28 06:25:41 momjian Exp $
2727
*
2828
*-------------------------------------------------------------------------
2929
*/
@@ -491,7 +491,7 @@ ReadRecordV0(XLogRecPtr *RecPtr, char *buffer)
491491
readFile=XLogFileOpen(readId,readSeg);
492492
if (readFile<0)
493493
gotonext_record_is_invalid;
494-
readOff= (uint32) (-1);/* force read to occur below */
494+
readOff= (uint32) (-1);/* force read to occur below */
495495
}
496496

497497
targetPageOff= ((RecPtr->xrecoff %XLogSegSize) /BLCKSZ)*BLCKSZ;

‎contrib/pgcrypto/blf.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,5 @@ voidblf_ecb_decrypt(blf_ctx *, uint8 *, uint32);
7979

8080
voidblf_cbc_encrypt(blf_ctx*,uint8*,uint8*,uint32);
8181
voidblf_cbc_decrypt(blf_ctx*,uint8*,uint8*,uint32);
82+
8283
#endif

‎contrib/pgcrypto/crypt-des.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -159,14 +159,14 @@ static uint8 pbox[32] = {
159159

160160
staticuint32_crypt_bits32[32]=
161161
{
162-
0x80000000,0x40000000,0x20000000,0x10000000,
163-
0x08000000,0x04000000,0x02000000,0x01000000,
164-
0x00800000,0x00400000,0x00200000,0x00100000,
165-
0x00080000,0x00040000,0x00020000,0x00010000,
166-
0x00008000,0x00004000,0x00002000,0x00001000,
167-
0x00000800,0x00000400,0x00000200,0x00000100,
168-
0x00000080,0x00000040,0x00000020,0x00000010,
169-
0x00000008,0x00000004,0x00000002,0x00000001
162+
0x80000000,0x40000000,0x20000000,0x10000000,
163+
0x08000000,0x04000000,0x02000000,0x01000000,
164+
0x00800000,0x00400000,0x00200000,0x00100000,
165+
0x00080000,0x00040000,0x00020000,0x00010000,
166+
0x00008000,0x00004000,0x00002000,0x00001000,
167+
0x00000800,0x00000400,0x00000200,0x00000100,
168+
0x00000080,0x00000040,0x00000020,0x00000010,
169+
0x00000008,0x00000004,0x00000002,0x00000001
170170
};
171171

172172
staticuint8_crypt_bits8[8]= {0x80,0x40,0x20,0x10,0x08,0x04,0x02,0x01};

‎contrib/pgcrypto/internal.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2727
* SUCH DAMAGE.
2828
*
29-
* $Id: internal.c,v 1.6 2001/10/25 05:49:19 momjian Exp $
29+
* $Id: internal.c,v 1.7 2001/10/28 06:25:41 momjian Exp $
3030
*/
3131

3232

@@ -61,7 +61,7 @@ static struct int_digest
6161
{
6262
char*name;
6363
void(*init) (PX_MD*h);
64-
}int_digest_list[]=
64+
}int_digest_list[]=
6565

6666
{
6767
{
@@ -520,7 +520,7 @@ static struct
520520
{
521521
char*name;
522522
PX_Cipher*(*load) (void);
523-
}int_ciphers[]=
523+
}int_ciphers[]=
524524

525525
{
526526
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp