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

Commit075cede

Browse files
committed
Add typdefs to pgindent run.
1 parent4f523a6 commit075cede

File tree

86 files changed

+520
-467
lines changed

Some content is hidden

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

86 files changed

+520
-467
lines changed

‎contrib/array/array_iterator.c

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
#include"utils/elog.h"
4242

4343
staticint32
44-
array_iterator(Oidelemtype,Oidproc,intand,ArrayType*array,Datumvalue)
44+
array_iterator(Oidelemtype,Oidproc,intand,ArrayType*array,Datumvalue)
4545
{
4646
HeapTupletyp_tuple;
4747
TypeTupleFormtyp_struct;
@@ -157,7 +157,7 @@ array_iterator(Oid elemtype, Oid proc, int and, ArrayType * array, Datum value)
157157
*/
158158

159159
int32
160-
array_texteq(ArrayType*array,char*value)
160+
array_texteq(ArrayType*array,char*value)
161161
{
162162
returnarray_iterator((Oid)25,/* text */
163163
(Oid)67,/* texteq */
@@ -166,7 +166,7 @@ array_texteq(ArrayType * array, char *value)
166166
}
167167

168168
int32
169-
array_all_texteq(ArrayType*array,char*value)
169+
array_all_texteq(ArrayType*array,char*value)
170170
{
171171
returnarray_iterator((Oid)25,/* text */
172172
(Oid)67,/* texteq */
@@ -175,7 +175,7 @@ array_all_texteq(ArrayType * array, char *value)
175175
}
176176

177177
int32
178-
array_textregexeq(ArrayType*array,char*value)
178+
array_textregexeq(ArrayType*array,char*value)
179179
{
180180
returnarray_iterator((Oid)25,/* text */
181181
(Oid)81,/* textregexeq */
@@ -184,7 +184,7 @@ array_textregexeq(ArrayType * array, char *value)
184184
}
185185

186186
int32
187-
array_all_textregexeq(ArrayType*array,char*value)
187+
array_all_textregexeq(ArrayType*array,char*value)
188188
{
189189
returnarray_iterator((Oid)25,/* text */
190190
(Oid)81,/* textregexeq */
@@ -198,7 +198,7 @@ array_all_textregexeq(ArrayType * array, char *value)
198198
*/
199199

200200
int32
201-
array_char16eq(ArrayType*array,char*value)
201+
array_char16eq(ArrayType*array,char*value)
202202
{
203203
returnarray_iterator((Oid)20,/* char16 */
204204
(Oid)490,/* char16eq */
@@ -207,7 +207,7 @@ array_char16eq(ArrayType * array, char *value)
207207
}
208208

209209
int32
210-
array_all_char16eq(ArrayType*array,char*value)
210+
array_all_char16eq(ArrayType*array,char*value)
211211
{
212212
returnarray_iterator((Oid)20,/* char16 */
213213
(Oid)490,/* char16eq */
@@ -216,7 +216,7 @@ array_all_char16eq(ArrayType * array, char *value)
216216
}
217217

218218
int32
219-
array_char16regexeq(ArrayType*array,char*value)
219+
array_char16regexeq(ArrayType*array,char*value)
220220
{
221221
returnarray_iterator((Oid)20,/* char16 */
222222
(Oid)700,/* char16regexeq */
@@ -225,7 +225,7 @@ array_char16regexeq(ArrayType * array, char *value)
225225
}
226226

227227
int32
228-
array_all_char16regexeq(ArrayType*array,char*value)
228+
array_all_char16regexeq(ArrayType*array,char*value)
229229
{
230230
returnarray_iterator((Oid)20,/* char16 */
231231
(Oid)700,/* char16regexeq */
@@ -238,7 +238,7 @@ array_all_char16regexeq(ArrayType * array, char *value)
238238
*/
239239

240240
int32
241-
array_int4eq(ArrayType*array,int4value)
241+
array_int4eq(ArrayType*array,int4value)
242242
{
243243
returnarray_iterator((Oid)23,/* int4 */
244244
(Oid)65,/* int4eq */
@@ -247,7 +247,7 @@ array_int4eq(ArrayType * array, int4 value)
247247
}
248248

249249
int32
250-
array_all_int4eq(ArrayType*array,int4value)
250+
array_all_int4eq(ArrayType*array,int4value)
251251
{
252252
returnarray_iterator((Oid)23,/* int4 */
253253
(Oid)65,/* int4eq */
@@ -256,7 +256,7 @@ array_all_int4eq(ArrayType * array, int4 value)
256256
}
257257

258258
int32
259-
array_int4gt(ArrayType*array,int4value)
259+
array_int4gt(ArrayType*array,int4value)
260260
{
261261
returnarray_iterator((Oid)23,/* int4 */
262262
(Oid)147,/* int4gt */
@@ -265,7 +265,7 @@ array_int4gt(ArrayType * array, int4 value)
265265
}
266266

267267
int32
268-
array_all_int4gt(ArrayType*array,int4value)
268+
array_all_int4gt(ArrayType*array,int4value)
269269
{
270270
returnarray_iterator((Oid)23,/* int4 */
271271
(Oid)147,/* int4gt */

‎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.21 1997/09/0802:19:56 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/access/common/tupdesc.c,v 1.22 1997/09/0820:53:40 momjian Exp $
1111
*
1212
* NOTES
1313
* some of the executor utility code such as "ExecTypeFromTL" should be
@@ -75,7 +75,7 @@ CreateTemplateTupleDesc(int natts)
7575
* ----------------------------------------------------------------
7676
*/
7777
TupleDesc
78-
CreateTupleDesc(intnatts,AttributeTupleForm*attrs)
78+
CreateTupleDesc(intnatts,AttributeTupleForm*attrs)
7979
{
8080
TupleDescdesc;
8181

‎src/backend/access/gist/gist.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ static void GISTInitBuffer(Buffer b, uint32 f);
5959
staticBlockNumber
6060
gistChooseSubtree(Relationr,IndexTupleitup,intlevel,
6161
GISTSTATE*giststate,
62-
GISTSTACK**retstack,Buffer*leafbuf);
62+
GISTSTACK**retstack,Buffer*leafbuf);
6363
staticOffsetNumber
6464
gistchoose(Relationr,Pagep,IndexTupleit,
6565
GISTSTATE*giststate);
@@ -78,7 +78,7 @@ void
7878
gistbuild(Relationheap,
7979
Relationindex,
8080
intnatts,
81-
AttrNumber*attnum,
81+
AttrNumber*attnum,
8282
IndexStrategyistrat,
8383
uint16pint,
8484
Datum*params,
@@ -470,7 +470,7 @@ gistChooseSubtree(Relation r, IndexTuple itup,/* itup has compressed
470470
intlevel,
471471
GISTSTATE*giststate,
472472
GISTSTACK**retstack/* out */ ,
473-
Buffer*leafbuf/* out */ )
473+
Buffer*leafbuf/* out */ )
474474
{
475475
Bufferbuffer;
476476
BlockNumberblk;

‎src/backend/access/hash/hash.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/hash/hash.c,v 1.14 1997/09/0802:20:10 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/access/hash/hash.c,v 1.15 1997/09/08 20:53:53 momjian Exp $
1111
*
1212
* NOTES
1313
* This file contains only the public interface routines.
@@ -45,7 +45,7 @@ void
4545
hashbuild(Relationheap,
4646
Relationindex,
4747
intnatts,
48-
AttrNumber*attnum,
48+
AttrNumber*attnum,
4949
IndexStrategyistrat,
5050
uint16pcount,
5151
Datum*params,

‎src/backend/access/hash/hashovfl.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/access/hash/hashovfl.c,v 1.11 1997/09/0802:20:17 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/access/hash/hashovfl.c,v 1.12 1997/09/08 20:53:59 momjian Exp $
1111
*
1212
* NOTES
1313
* Overflow pages look like ordinary relation pages.
@@ -26,7 +26,7 @@
2626
#include<string.h>
2727
#endif
2828

29-
staticOverflowPageAddress_hash_getovfladdr(Relationrel,Buffer*metabufp);
29+
staticOverflowPageAddress_hash_getovfladdr(Relationrel,Buffer*metabufp);
3030
staticuint32_hash_firstfreebit(uint32map);
3131

3232
/*
@@ -40,7 +40,7 @@ static uint32 _hash_firstfreebit(uint32 map);
4040
*
4141
*/
4242
Buffer
43-
_hash_addovflpage(Relationrel,Buffer*metabufp,Bufferbuf)
43+
_hash_addovflpage(Relationrel,Buffer*metabufp,Bufferbuf)
4444
{
4545

4646
OverflowPageAddressoaddr;
@@ -100,7 +100,7 @@ _hash_addovflpage(Relation rel, Buffer * metabufp, Buffer buf)
100100
*
101101
*/
102102
staticOverflowPageAddress
103-
_hash_getovfladdr(Relationrel,Buffer*metabufp)
103+
_hash_getovfladdr(Relationrel,Buffer*metabufp)
104104
{
105105
HashMetaPagemetap;
106106
Buffermapbuf=0;

‎src/backend/access/hash/hashpage.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/hash/hashpage.c,v 1.11 1997/09/0802:20:18 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/access/hash/hashpage.c,v 1.12 1997/09/08 20:54:03 momjian Exp $
1111
*
1212
* NOTES
1313
* Postgres hash pages look like ordinary relation pages. The opaque
@@ -270,7 +270,7 @@ _hash_wrtnorelbuf(Relation rel, Buffer buf)
270270

271271
Page
272272
_hash_chgbufaccess(Relationrel,
273-
Buffer*bufp,
273+
Buffer*bufp,
274274
intfrom_access,
275275
intto_access)
276276
{

‎src/backend/access/hash/hashsearch.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/access/hash/hashsearch.c,v 1.12 1997/09/0802:20:20 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/access/hash/hashsearch.c,v 1.13 1997/09/08 20:54:05 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -31,7 +31,7 @@ void
3131
_hash_search(Relationrel,
3232
intkeysz,
3333
ScanKeyscankey,
34-
Buffer*bufP,
34+
Buffer*bufP,
3535
HashMetaPagemetap)
3636
{
3737
BlockNumberblkno;
@@ -127,7 +127,7 @@ _hash_next(IndexScanDesc scan, ScanDirection dir)
127127

128128
staticvoid
129129
_hash_readnext(Relationrel,
130-
Buffer*bufp,Page*pagep,HashPageOpaque*opaquep)
130+
Buffer*bufp,Page*pagep,HashPageOpaque*opaquep)
131131
{
132132
BlockNumberblkno;
133133

@@ -146,7 +146,7 @@ _hash_readnext(Relation rel,
146146

147147
staticvoid
148148
_hash_readprev(Relationrel,
149-
Buffer*bufp,Page*pagep,HashPageOpaque*opaquep)
149+
Buffer*bufp,Page*pagep,HashPageOpaque*opaquep)
150150
{
151151
BlockNumberblkno;
152152

@@ -284,7 +284,7 @@ _hash_first(IndexScanDesc scan, ScanDirection dir)
284284
*'metabuf' is released when this returns.
285285
*/
286286
bool
287-
_hash_step(IndexScanDescscan,Buffer*bufP,ScanDirectiondir,Buffermetabuf)
287+
_hash_step(IndexScanDescscan,Buffer*bufP,ScanDirectiondir,Buffermetabuf)
288288
{
289289
Relationrel;
290290
ItemPointercurrent;

‎src/backend/access/heap/heapam.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/access/heap/heapam.c,v 1.17 1997/09/0802:20:28 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/access/heap/heapam.c,v 1.18 1997/09/08 20:54:08 momjian Exp $
1111
*
1212
*
1313
* INTERFACE ROUTINES
@@ -214,7 +214,7 @@ static HeapTuple
214214
heapgettup(Relationrelation,
215215
ItemPointertid,
216216
intdir,
217-
Buffer*b,
217+
Buffer*b,
218218
TimeQualtimeQual,
219219
intnkeys,
220220
ScanKeykey)
@@ -805,7 +805,7 @@ elog(DEBUG, "heap_getnext([%s,nkeys=%d],backw=%d,0x%x) called", \
805805
HeapTuple
806806
heap_getnext(HeapScanDescscandesc,
807807
intbackw,
808-
Buffer*b)
808+
Buffer*b)
809809
{
810810
registerHeapScanDescsdesc=scandesc;
811811
Bufferlocalb;
@@ -1033,7 +1033,7 @@ HeapTuple
10331033
heap_fetch(Relationrelation,
10341034
TimeQualtimeQual,
10351035
ItemPointertid,
1036-
Buffer*b)
1036+
Buffer*b)
10371037
{
10381038
ItemIdlp;
10391039
Bufferbuffer;

‎src/backend/access/nbtree/nbtpage.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtpage.c,v 1.11 1997/09/0802:20:49 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtpage.c,v 1.12 1997/09/08 20:54:15 momjian Exp $
1212
*
1313
*NOTES
1414
* Postgres btree pages look like ordinary relation pages.The opaque
@@ -56,7 +56,7 @@ typedef struct BTMetaPageData
5656
#ifdefBTREE_VERSION_1
5757
int32btm_level;
5858
#endif
59-
}BTMetaPageData;
59+
}BTMetaPageData;
6060

6161
#defineBTPageGetMeta(p) \
6262
((BTMetaPageData *) &((PageHeader) p)->pd_linp[0])

‎src/backend/access/nbtree/nbtree.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtree.c,v 1.21 1997/09/0802:20:50 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtree.c,v 1.22 1997/09/08 20:54:21 momjian Exp $
1212
*
1313
* NOTES
1414
* This file contains only the public interface routines.
@@ -56,7 +56,7 @@ void
5656
btbuild(Relationheap,
5757
Relationindex,
5858
intnatts,
59-
AttrNumber*attnum,
59+
AttrNumber*attnum,
6060
IndexStrategyistrat,
6161
uint16pcount,
6262
Datum*params,

‎src/backend/access/nbtree/nbtscan.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/nbtree/Attic/nbtscan.c,v 1.9 1997/09/0802:20:52 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/Attic/nbtscan.c,v 1.10 1997/09/08 20:54:24 momjian Exp $
1111
*
1212
*
1313
* NOTES
@@ -36,7 +36,7 @@ typedef struct BTScanListData
3636
{
3737
IndexScanDescbtsl_scan;
3838
structBTScanListData*btsl_next;
39-
}BTScanListData;
39+
}BTScanListData;
4040

4141
typedefBTScanListData*BTScanList;
4242

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp