Skip to content

Commit 59f6a57

Browse files
committed
Used modified version of indent that understands over 100 typedefs.
1 parent 075cede commit 59f6a57

File tree

413 files changed

+4489
-4477
lines changed

Some content is hidden

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

413 files changed

+4489
-4477
lines changed

contrib/datetime/datetime_functions.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515

1616
TimeADT *
17-
time_difference(TimeADT * time1, TimeADT * time2)
17+
time_difference(TimeADT *time1, TimeADT *time2)
1818
{
1919
TimeADT *result = (TimeADT *) palloc(sizeof(TimeADT));
2020

@@ -51,25 +51,25 @@ currentdate()
5151
}
5252

5353
int4
54-
hours(TimeADT * time)
54+
hours(TimeADT *time)
5555
{
5656
return (*time / (60 * 60));
5757
}
5858

5959
int4
60-
minutes(TimeADT * time)
60+
minutes(TimeADT *time)
6161
{
6262
return (((int) (*time / 60)) % 60);
6363
}
6464

6565
int4
66-
seconds(TimeADT * time)
66+
seconds(TimeADT *time)
6767
{
6868
return (((int) *time) % 60);
6969
}
7070

7171
int4
72-
day(DateADT * date)
72+
day(DateADT *date)
7373
{
7474
struct tm tm;
7575

@@ -80,7 +80,7 @@ day(DateADT * date)
8080
}
8181

8282
int4
83-
month(DateADT * date)
83+
month(DateADT *date)
8484
{
8585
struct tm tm;
8686

@@ -91,7 +91,7 @@ month(DateADT * date)
9191
}
9292

9393
int4
94-
year(DateADT * date)
94+
year(DateADT *date)
9595
{
9696
struct tm tm;
9797

@@ -102,15 +102,15 @@ year(DateADT * date)
102102
}
103103

104104
int4
105-
asminutes(TimeADT * time)
105+
asminutes(TimeADT *time)
106106
{
107107
int seconds = (int) *time;
108108

109109
return (seconds / 60);
110110
}
111111

112112
int4
113-
asseconds(TimeADT * time)
113+
asseconds(TimeADT *time)
114114
{
115115
int seconds = (int) *time;
116116

contrib/int8/int8.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ int64 *int48(int32 val);
7171
int32 int84(int64 * val);
7272

7373
#if FALSE
74-
int64 *int28(int16 val);
74+
int64 *int28 (int16 val);
7575
int16 int82(int64 * val);
7676

7777
#endif
@@ -340,7 +340,7 @@ int84(int64 * val)
340340

341341
#if FALSE
342342
int64 *
343-
int28(int16 val)
343+
int28 (int16 val)
344344
{
345345
int64 *result;
346346

contrib/pginterface/halt.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,17 @@ va_dcl
4444
fflush(stderr);
4545

4646
/* call one clean up function if defined */
47-
if ((sig_func = signal(SIGTERM, SIG_DFL)) != SIG_DFL &&
48-
sig_func != SIG_IGN)
47+
if ((sig_func = signal(SIGTERM, SIG_DFL)) !=SIG_DFL &&
48+
sig_func !=SIG_IGN)
4949
(*sig_func) (0);
50-
else if ((sig_func = signal(SIGHUP, SIG_DFL)) != SIG_DFL &&
51-
sig_func != SIG_IGN)
50+
else if ((sig_func = signal(SIGHUP, SIG_DFL)) !=SIG_DFL &&
51+
sig_func !=SIG_IGN)
5252
(*sig_func) (0);
53-
else if ((sig_func = signal(SIGINT, SIG_DFL)) != SIG_DFL &&
54-
sig_func != SIG_IGN)
53+
else if ((sig_func = signal(SIGINT, SIG_DFL)) !=SIG_DFL &&
54+
sig_func !=SIG_IGN)
5555
(*sig_func) (0);
56-
else if ((sig_func = signal(SIGQUIT, SIG_DFL)) != SIG_DFL &&
57-
sig_func != SIG_IGN)
56+
else if ((sig_func = signal(SIGQUIT, SIG_DFL)) !=SIG_DFL &&
57+
sig_func !=SIG_IGN)
5858
(*sig_func) (0);
5959
exit(1);
6060
}

contrib/soundex/soundex.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
char *soundex(char *instr, char *outstr);
1515

1616
text *
17-
text_soundex(text * t)
17+
text_soundex(text *t)
1818
{
1919
/* ABCDEFGHIJKLMNOPQRSTUVWXYZ */
2020
char *table = "01230120022455012623010202";

src/backend/access/common/heaptuple.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/access/common/heaptuple.c,v 1.23 1997/09/08 02:19:47 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/access/common/heaptuple.c,v 1.24 1997/09/08 21:40:18 momjian Exp $
1212
*
1313
* NOTES
1414
* The old interface functions have been converted to macros
@@ -116,7 +116,7 @@ DataFill(char *data,
116116
Datum value[],
117117
char nulls[],
118118
char *infomask,
119-
bits8 * bit)
119+
bits8 *bit)
120120
{
121121
bits8 *bitP = 0;
122122
int bitmask = 0;
@@ -448,7 +448,7 @@ char *
448448
fastgetattr(HeapTuple tup,
449449
int attnum,
450450
TupleDesc tupleDesc,
451-
bool * isnull)
451+
bool *isnull)
452452
{
453453
char *tp; /* ptr to att in tuple */
454454
bits8 *bp = NULL; /* ptr to att in tuple */

src/backend/access/common/indextuple.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/access/common/indextuple.c,v 1.17 1997/09/08 02:19:54 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/access/common/indextuple.c,v 1.18 1997/09/08 21:40:24 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -29,7 +29,7 @@
2929
static Size IndexInfoFindDataOffset(unsigned short t_info);
3030
static char *
3131
fastgetiattr(IndexTuple tup, int attnum,
32-
TupleDesc att, bool * isnull);
32+
TupleDesc att, bool *isnull);
3333

3434
/* ----------------------------------------------------------------
3535
* index_ tuple interface routines
@@ -137,7 +137,7 @@ static char *
137137
fastgetiattr(IndexTuple tup,
138138
int attnum,
139139
TupleDesc tupleDesc,
140-
bool * isnull)
140+
bool *isnull)
141141
{
142142
register char *tp; /* ptr to att in tuple */
143143
register char *bp = NULL; /* ptr to att in tuple */
@@ -368,7 +368,7 @@ fastgetiattr(IndexTuple tup,
368368
off = SHORTALIGN(off) +sizeof(short);
369369
break;
370370
case sizeof(int32):
371-
off = INTALIGN(off) + sizeof(int32);
371+
off = INTALIGN(off) +sizeof(int32);
372372
break;
373373
case -1:
374374
usecache = false;
@@ -430,7 +430,7 @@ Datum
430430
index_getattr(IndexTuple tuple,
431431
AttrNumber attNum,
432432
TupleDesc tupDesc,
433-
bool * isNullOutP)
433+
bool *isNullOutP)
434434
{
435435
Assert(attNum > 0);
436436

@@ -483,7 +483,7 @@ IndexInfoFindDataOffset(unsigned short t_info)
483483
* we assume we have space that is already palloc'ed.
484484
*/
485485
void
486-
CopyIndexTuple(IndexTuple source, IndexTuple * target)
486+
CopyIndexTuple(IndexTuple source, IndexTuple *target)
487487
{
488488
Size size;
489489
IndexTuple ret;

src/backend/access/common/tupdesc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/access/common/tupdesc.c,v 1.22 1997/09/08 20:53:40 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/access/common/tupdesc.c,v 1.23 1997/09/08 21:40:27 momjian Exp $
1111
*
1212
* NOTES
1313
* some of the executor utility code such as "ExecTypeFromTL" should be
@@ -437,7 +437,7 @@ TupleDescMakeSelfReference(TupleDesc desc,
437437
* ----------------------------------------------------------------
438438
*/
439439
TupleDesc
440-
BuildDescForRelation(List * schema, char *relname)
440+
BuildDescForRelation(List *schema, char *relname)
441441
{
442442
int natts;
443443
AttrNumber attnum;

0 commit comments

Comments
 (0)