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

Commite5e12f6

Browse files
committed
More cleanups by "Kurt J. Lidl" <lidl@va.pubnix.com>
1 parent519496b commite5e12f6

File tree

9 files changed

+23
-38
lines changed

9 files changed

+23
-38
lines changed

‎src/backend/access/sdir.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* Copyright (c) 1994, Regents of the University of California
88
*
9-
* $Id: sdir.h,v 1.1.1.1 1996/07/09 06:21:09 scrappy Exp $
9+
* $Id: sdir.h,v 1.2 1996/07/30 07:44:57 scrappy Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -27,29 +27,29 @@ typedef enum ScanDirection {
2727

2828
/*
2929
* ScanDirectionIsValid --
30-
*True iff scandireciton is valid.
30+
*True iff scandirection is valid.
3131
*/
3232
#defineScanDirectionIsValid(direction) \
3333
((bool) (BackwardScanDirection <= direction && \
3434
direction <= ForwardScanDirection))
3535

3636
/*
3737
* ScanDirectionIsBackward --
38-
*True iff scandireciton is backward.
38+
*True iff scandirection is backward.
3939
*/
4040
#defineScanDirectionIsBackward(direction) \
4141
((bool) (direction == BackwardScanDirection))
4242

4343
/*
4444
* ScanDirectionIsNoMovement --
45-
*True iff scandireciton indicates no movement.
45+
*True iff scandirection indicates no movement.
4646
*/
4747
#defineScanDirectionIsNoMovement(direction) \
4848
((bool) (direction == NoMovementScanDirection))
4949

5050
/*
5151
* ScanDirectionIsForward --
52-
*True iff scandireciton is forward.
52+
*True iff scandirection is forward.
5353
*/
5454
#defineScanDirectionIsForward(direction) \
5555
((bool) (direction == ForwardScanDirection))

‎src/backend/executor/execMain.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
*
2727
*
2828
* IDENTIFICATION
29-
* $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.1.1.1 1996/07/09 06:21:25 scrappy Exp $
29+
* $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.2 1996/07/30 07:45:27 scrappy Exp $
3030
*
3131
*-------------------------------------------------------------------------
3232
*/
@@ -49,7 +49,7 @@ static TupleDesc InitPlan(CmdType operation, Query *parseTree,
4949
staticvoidEndPlan(Plan*plan,EState*estate);
5050
staticTupleTableSlot*ExecutePlan(EState*estate,Plan*plan,
5151
Query*parseTree,CmdTypeoperation,
52-
intnumberTuples,intdirection,
52+
intnumberTuples,ScanDirectiondirection,
5353
void (*printfunc)());
5454
staticvoidExecRetrieve(TupleTableSlot*slot,void (*printfunc)(),
5555
RelationintoRelationDesc);
@@ -153,7 +153,7 @@ ExecutorRun(QueryDesc *queryDesc, EState *estate, int feature, int count)
153153
parseTree,
154154
operation,
155155
ALL_TUPLES,
156-
EXEC_FRWD,
156+
ForwardScanDirection,
157157
destination);
158158
break;
159159
caseEXEC_FOR:
@@ -162,7 +162,7 @@ ExecutorRun(QueryDesc *queryDesc, EState *estate, int feature, int count)
162162
parseTree,
163163
operation,
164164
count,
165-
EXEC_FRWD,
165+
ForwardScanDirection,
166166
destination);
167167
break;
168168

@@ -176,7 +176,7 @@ ExecutorRun(QueryDesc *queryDesc, EState *estate, int feature, int count)
176176
parseTree,
177177
operation,
178178
count,
179-
EXEC_BKWD,
179+
BackwardScanDirection,
180180
destination);
181181
break;
182182

@@ -191,7 +191,7 @@ ExecutorRun(QueryDesc *queryDesc, EState *estate, int feature, int count)
191191
parseTree,
192192
operation,
193193
ONE_TUPLE,
194-
EXEC_FRWD,
194+
ForwardScanDirection,
195195
destination);
196196
break;
197197
default:
@@ -600,7 +600,7 @@ ExecutePlan(EState *estate,
600600
Query*parseTree,
601601
CmdTypeoperation,
602602
intnumberTuples,
603-
intdirection,
603+
ScanDirectiondirection,
604604
void (*printfunc)())
605605
{
606606
RelationintoRelationDesc;

‎src/backend/executor/execdefs.h

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,13 @@
66
*
77
* Copyright (c) 1994, Regents of the University of California
88
*
9-
* $Id: execdefs.h,v 1.1.1.1 1996/07/09 06:21:25 scrappy Exp $
9+
* $Id: execdefs.h,v 1.2 1996/07/30 07:45:29 scrappy Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
1313
#ifndefEXECDEFS_H
1414
#defineEXECDEFS_H
1515

16-
/* ----------------
17-
*executor scan direction definitions
18-
* ----------------
19-
*/
20-
#defineEXEC_FRWD1/* Scan forward */
21-
#defineEXEC_BKWD-1/* Scan backward */
22-
2316
/* ----------------
2417
*ExecutePlan() tuplecount definitions
2518
* ----------------

‎src/backend/executor/nodeMaterial.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/executor/nodeMaterial.c,v 1.1.1.1 1996/07/09 06:21:26 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/executor/nodeMaterial.c,v 1.2 1996/07/30 07:45:31 scrappy Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -79,7 +79,7 @@ ExecMaterial(Material *node)
7979
* while creating the temporary relation.
8080
* ----------------
8181
*/
82-
estate->es_direction=EXEC_FRWD;
82+
estate->es_direction=ForwardScanDirection;
8383

8484
/* ----------------
8585
* if we couldn't create the temp or current relations then

‎src/backend/executor/nodeSort.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/executor/nodeSort.c,v 1.1.1.1 1996/07/09 06:21:27 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/executor/nodeSort.c,v 1.2 1996/07/30 07:45:35 scrappy Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -138,7 +138,7 @@ ExecSort(Sort *node)
138138
* while creating the temporary relation.
139139
* ----------------
140140
*/
141-
estate->es_direction=EXEC_FRWD;
141+
estate->es_direction=ForwardScanDirection;
142142

143143
/* ----------------
144144
* if we couldn't create the temp or current relations then

‎src/backend/storage/buffer/buf_table.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/buf_table.c,v 1.1.1.1 1996/07/09 06:21:53 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/buf_table.c,v 1.2 1996/07/30 07:47:23 scrappy Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -34,8 +34,6 @@
3434

3535
staticHTAB*SharedBufHash;
3636

37-
externHTAB*ShmemInitHash();
38-
3937
typedefstructlookup {
4038
BufferTagkey;
4139
Bufferid;

‎src/backend/storage/lmgr/lock.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lock.c,v 1.1.1.1 1996/07/09 06:21:56 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lock.c,v 1.2 1996/07/30 07:47:33 scrappy Exp $
1111
*
1212
* NOTES
1313
* Outside modules can create a lock table and acquire/release
@@ -102,12 +102,6 @@ static MASKBITS_ON[MAX_LOCKTYPES];
102102
*/
103103
staticboolLockingIsDisabled;
104104

105-
/* ------------------
106-
* from storage/ipc/shmem.c
107-
* ------------------
108-
*/
109-
externHTAB*ShmemInitHash();
110-
111105
/* -------------------
112106
* map from tableId to the lock table structure
113107
* -------------------

‎src/backend/utils/builtins.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* Copyright (c) 1994, Regents of the University of California
88
*
9-
* $Id: builtins.h,v 1.1.1.1 1996/07/09 06:22:01 scrappy Exp $
9+
* $Id: builtins.h,v 1.2 1996/07/30 07:47:42 scrappy Exp $
1010
*
1111
* NOTES
1212
* This should normally only be included by fmgr.h.
@@ -228,7 +228,7 @@ extern POLYGON*rt_poly_inter();
228228
in executor/executor.h*/
229229

230230

231-
externint32pqtest();
231+
externint32pqtest(structvarlena*vlena);
232232

233233
/* arrayfuncs.c */
234234
#include"utils/array.h"

‎src/bin/psql/rlstubs.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/bin/psql/Attic/rlstubs.c,v 1.1.1.1 1996/07/09 06:22:15 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/rlstubs.c,v 1.2 1996/07/30 07:47:58 scrappy Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -18,7 +18,7 @@ readline(char *prompt)
1818
{
1919
staticcharbuf[500];
2020

21-
printf("%s");
21+
printf("%s",prompt);
2222
returnfgets(buf,500,stdin);
2323
}
2424

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp