Skip to content

Commit 075cede

Browse files
committed
Add typdefs to pgindent run.
1 parent 4f523a6 commit 075cede

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
static int32
44-
array_iterator(Oid elemtype, Oid proc, int and, ArrayType * array, Datum value)
44+
array_iterator(Oid elemtype, Oid proc, int and, ArrayType *array, Datum value)
4545
{
4646
HeapTuple typ_tuple;
4747
TypeTupleForm typ_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
return array_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
return array_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
return array_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
return array_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
return array_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
return array_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
return array_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
return array_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, int4 value)
241+
array_int4eq(ArrayType *array, int4 value)
242242
{
243243
return array_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, int4 value)
250+
array_all_int4eq(ArrayType *array, int4 value)
251251
{
252252
return array_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, int4 value)
259+
array_int4gt(ArrayType *array, int4 value)
260260
{
261261
return array_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, int4 value)
268+
array_all_int4gt(ArrayType *array, int4 value)
269269
{
270270
return array_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/08 02:19:56 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/access/common/tupdesc.c,v 1.22 1997/09/08 20: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(int natts, AttributeTupleForm * attrs)
78+
CreateTupleDesc(int natts, AttributeTupleForm *attrs)
7979
{
8080
TupleDesc desc;
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
static BlockNumber
6060
gistChooseSubtree(Relation r, IndexTuple itup, int level,
6161
GISTSTATE * giststate,
62-
GISTSTACK ** retstack, Buffer * leafbuf);
62+
GISTSTACK ** retstack, Buffer *leafbuf);
6363
static OffsetNumber
6464
gistchoose(Relation r, Page p, IndexTuple it,
6565
GISTSTATE * giststate);
@@ -78,7 +78,7 @@ void
7878
gistbuild(Relation heap,
7979
Relation index,
8080
int natts,
81-
AttrNumber * attnum,
81+
AttrNumber *attnum,
8282
IndexStrategy istrat,
8383
uint16 pint,
8484
Datum * params,
@@ -470,7 +470,7 @@ gistChooseSubtree(Relation r, IndexTuple itup, /* itup has compressed
470470
int level,
471471
GISTSTATE * giststate,
472472
GISTSTACK ** retstack /* out */ ,
473-
Buffer * leafbuf /* out */ )
473+
Buffer *leafbuf /* out */ )
474474
{
475475
Buffer buffer;
476476
BlockNumber blk;

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/08 02: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(Relation heap,
4646
Relation index,
4747
int natts,
48-
AttrNumber * attnum,
48+
AttrNumber *attnum,
4949
IndexStrategy istrat,
5050
uint16 pcount,
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/08 02: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-
static OverflowPageAddress _hash_getovfladdr(Relation rel, Buffer * metabufp);
29+
static OverflowPageAddress _hash_getovfladdr(Relation rel, Buffer *metabufp);
3030
static uint32 _hash_firstfreebit(uint32 map);
3131

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

4646
OverflowPageAddress oaddr;
@@ -100,7 +100,7 @@ _hash_addovflpage(Relation rel, Buffer * metabufp, Buffer buf)
100100
*
101101
*/
102102
static OverflowPageAddress
103-
_hash_getovfladdr(Relation rel, Buffer * metabufp)
103+
_hash_getovfladdr(Relation rel, Buffer *metabufp)
104104
{
105105
HashMetaPage metap;
106106
Buffer mapbuf = 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/08 02: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(Relation rel,
273-
Buffer * bufp,
273+
Buffer *bufp,
274274
int from_access,
275275
int to_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/08 02: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(Relation rel,
3232
int keysz,
3333
ScanKey scankey,
34-
Buffer * bufP,
34+
Buffer *bufP,
3535
HashMetaPage metap)
3636
{
3737
BlockNumber blkno;
@@ -127,7 +127,7 @@ _hash_next(IndexScanDesc scan, ScanDirection dir)
127127

128128
static void
129129
_hash_readnext(Relation rel,
130-
Buffer * bufp, Page * pagep, HashPageOpaque * opaquep)
130+
Buffer *bufp, Page * pagep, HashPageOpaque * opaquep)
131131
{
132132
BlockNumber blkno;
133133

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

147147
static void
148148
_hash_readprev(Relation rel,
149-
Buffer * bufp, Page * pagep, HashPageOpaque * opaquep)
149+
Buffer *bufp, Page * pagep, HashPageOpaque * opaquep)
150150
{
151151
BlockNumber blkno;
152152

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

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/08 02: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(Relation relation,
215215
ItemPointer tid,
216216
int dir,
217-
Buffer * b,
217+
Buffer *b,
218218
TimeQual timeQual,
219219
int nkeys,
220220
ScanKey key)
@@ -805,7 +805,7 @@ elog(DEBUG, "heap_getnext([%s,nkeys=%d],backw=%d,0x%x) called", \
805805
HeapTuple
806806
heap_getnext(HeapScanDesc scandesc,
807807
int backw,
808-
Buffer * b)
808+
Buffer *b)
809809
{
810810
register HeapScanDesc sdesc = scandesc;
811811
Buffer localb;
@@ -1033,7 +1033,7 @@ HeapTuple
10331033
heap_fetch(Relation relation,
10341034
TimeQual timeQual,
10351035
ItemPointer tid,
1036-
Buffer * b)
1036+
Buffer *b)
10371037
{
10381038
ItemId lp;
10391039
Buffer buffer;

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/08 02: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
#ifdef BTREE_VERSION_1
5757
int32 btm_level;
5858
#endif
59-
} BTMetaPageData;
59+
} BTMetaPageData;
6060

6161
#define BTPageGetMeta(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/08 02: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(Relation heap,
5757
Relation index,
5858
int natts,
59-
AttrNumber * attnum,
59+
AttrNumber *attnum,
6060
IndexStrategy istrat,
6161
uint16 pcount,
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/08 02: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
IndexScanDesc btsl_scan;
3838
struct BTScanListData *btsl_next;
39-
} BTScanListData;
39+
} BTScanListData;
4040

4141
typedef BTScanListData *BTScanList;
4242

0 commit comments

Comments
 (0)