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

Commit59f6a57

Browse files
committed
Used modified version of indent that understands over 100 typedefs.
1 parent075cede commit59f6a57

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
structtmtm;
7575

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

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

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

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

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

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

109109
return (seconds /60);
110110
}
111111

112112
int4
113-
asseconds(TimeADT*time)
113+
asseconds(TimeADT*time)
114114
{
115115
intseconds= (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
int32int84(int64*val);
7272

7373
#ifFALSE
74-
int64*int28(int16val);
74+
int64*int28(int16val);
7575
int16int82(int64*val);
7676

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

341341
#ifFALSE
342342
int64*
343-
int28(int16val)
343+
int28(int16val)
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-
elseif ((sig_func=signal(SIGHUP,SIG_DFL))!=SIG_DFL&&
51-
sig_func!=SIG_IGN)
50+
elseif ((sig_func=signal(SIGHUP,SIG_DFL))!=SIG_DFL&&
51+
sig_func!=SIG_IGN)
5252
(*sig_func) (0);
53-
elseif ((sig_func=signal(SIGINT,SIG_DFL))!=SIG_DFL&&
54-
sig_func!=SIG_IGN)
53+
elseif ((sig_func=signal(SIGINT,SIG_DFL))!=SIG_DFL&&
54+
sig_func!=SIG_IGN)
5555
(*sig_func) (0);
56-
elseif ((sig_func=signal(SIGQUIT,SIG_DFL))!=SIG_DFL&&
57-
sig_func!=SIG_IGN)
56+
elseif ((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/0802:19:47 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/access/common/heaptuple.c,v 1.24 1997/09/0821: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
Datumvalue[],
117117
charnulls[],
118118
char*infomask,
119-
bits8*bit)
119+
bits8*bit)
120120
{
121121
bits8*bitP=0;
122122
intbitmask=0;
@@ -448,7 +448,7 @@ char *
448448
fastgetattr(HeapTupletup,
449449
intattnum,
450450
TupleDesctupleDesc,
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/0802:19:54 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/access/common/indextuple.c,v 1.18 1997/09/0821:40:24 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -29,7 +29,7 @@
2929
staticSizeIndexInfoFindDataOffset(unsigned shortt_info);
3030
staticchar*
3131
fastgetiattr(IndexTupletup,intattnum,
32-
TupleDescatt,bool*isnull);
32+
TupleDescatt,bool*isnull);
3333

3434
/* ----------------------------------------------------------------
3535
* index_ tuple interface routines
@@ -137,7 +137,7 @@ static char *
137137
fastgetiattr(IndexTupletup,
138138
intattnum,
139139
TupleDesctupleDesc,
140-
bool*isnull)
140+
bool*isnull)
141141
{
142142
registerchar*tp;/* ptr to att in tuple */
143143
registerchar*bp=NULL;/* ptr to att in tuple */
@@ -368,7 +368,7 @@ fastgetiattr(IndexTuple tup,
368368
off=SHORTALIGN(off)+sizeof(short);
369369
break;
370370
casesizeof(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(IndexTupletuple,
431431
AttrNumberattNum,
432432
TupleDesctupDesc,
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(IndexTuplesource,IndexTuple*target)
486+
CopyIndexTuple(IndexTuplesource,IndexTuple*target)
487487
{
488488
Sizesize;
489489
IndexTupleret;

‎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/0820:53:40 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/access/common/tupdesc.c,v 1.23 1997/09/0821: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
intnatts;
443443
AttrNumberattnum;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp