Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 173c555

Browse files
committed
Make functions static or ifdef NOT_USED. Prevent pg_version creation.
1 parent 0a1c280 commit 173c555

Some content is hidden

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

52 files changed

+173
-164
lines changed

src/backend/access/common/heaptuple.c

+3-1
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.44 1998/09/07 05:35:27 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/access/common/heaptuple.c,v 1.45 1998/10/08 18:29:10 momjian Exp $
1212
*
1313
* NOTES
1414
* The old interface functions have been converted to macros
@@ -274,6 +274,7 @@ heap_sysattrbyval(AttrNumber attno)
274274
return byval;
275275
}
276276

277+
#ifdef NOT_USED
277278
/* ----------------
278279
* heap_getsysattr
279280
* ----------------
@@ -300,6 +301,7 @@ heap_getsysattr(HeapTuple tup, Buffer b, int attnum)
300301
}
301302
return (Datum) NULL;
302303
}
304+
#endif
303305

304306
/* ----------------
305307
* nocachegetattr

src/backend/access/heap/heapam.c

+4-2
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.35 1998/09/01 04:26:51 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/access/heap/heapam.c,v 1.36 1998/10/08 18:29:12 momjian Exp $
1111
*
1212
*
1313
* INTERFACE ROUTINES
@@ -96,6 +96,8 @@
9696
#include <string.h>
9797
#endif
9898

99+
static void doinsert(Relation relation, HeapTuple tup);
100+
99101
static bool ImmediateInvalidation;
100102

101103
/* ----------------------------------------------------------------
@@ -475,7 +477,7 @@ heapgettup(Relation relation,
475477
}
476478
}
477479

478-
void
480+
static void
479481
doinsert(Relation relation, HeapTuple tup)
480482
{
481483
RelationPutHeapTupleAtEnd(relation, tup);

src/backend/access/index/genam.c

+3-5
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/access/index/genam.c,v 1.14 1998/09/01 03:21:07 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/access/index/genam.c,v 1.15 1998/10/08 18:29:14 momjian Exp $
1111
*
1212
* NOTES
1313
* many of the old access method routines have been turned into
@@ -167,9 +167,6 @@ IndexScanRestart(IndexScanDesc scan,
167167
scan->numberOfKeys * sizeof(ScanKeyData));
168168
}
169169

170-
#endif
171-
172-
#ifdef NOT_USED
173170
/* ----------------
174171
* IndexScanEnd -- End and index scan.
175172
*
@@ -192,7 +189,6 @@ IndexScanEnd(IndexScanDesc scan)
192189
pfree(scan);
193190
}
194191

195-
#endif
196192

197193
/* ----------------
198194
* IndexScanMarkPosition -- Mark current position in a scan.
@@ -274,3 +270,5 @@ IndexScanRestorePosition(IndexScanDesc scan)
274270

275271
scan->flags = 0x0; /* XXX should have a symbolic name */
276272
}
273+
#endif
274+

src/backend/access/transam/xact.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/access/transam/xact.c,v 1.24 1998/10/06 02:39:58 tgl Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/access/transam/xact.c,v 1.25 1998/10/08 18:29:15 momjian Exp $
1111
*
1212
* NOTES
1313
* Transaction aborts can now occur two ways:
@@ -262,7 +262,6 @@ SetTransactionFlushEnabled(bool state)
262262
TransactionFlushState = (state == true);
263263
}
264264

265-
#endif
266265

267266
/* --------------------------------
268267
* IsTransactionState
@@ -297,6 +296,7 @@ IsTransactionState(void)
297296
*/
298297
return false;
299298
}
299+
#endif
300300

301301
/* --------------------------------
302302
* IsAbortedTransactionBlockState

src/backend/access/transam/xid.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/access/transam/Attic/xid.c,v 1.17 1998/09/01 03:21:34 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/access/transam/Attic/xid.c,v 1.18 1998/10/08 18:29:18 momjian Exp $
1111
*
1212
* OLD COMMENTS
1313
* XXX WARNING
@@ -53,6 +53,7 @@ xidout(TransactionId transactionId)
5353

5454
}
5555

56+
#ifdef NOT_USED
5657
/* ----------------------------------------------------------------
5758
* TransactionIdIsLessThan
5859
* ----------------------------------------------------------------
@@ -62,6 +63,7 @@ TransactionIdIsLessThan(TransactionId id1, TransactionId id2)
6263
{
6364
return (bool) (id1 < id2);
6465
}
66+
#endif
6567

6668
/* ----------------------------------------------------------------
6769
* xideq

src/backend/catalog/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Makefile for catalog
55
#
66
# IDENTIFICATION
7-
# $Header: /cvsroot/pgsql/src/backend/catalog/Makefile,v 1.13 1998/08/25 04:19:14 momjian Exp $
7+
# $Header: /cvsroot/pgsql/src/backend/catalog/Makefile,v 1.14 1998/10/08 18:29:19 momjian Exp $
88
#
99
#-------------------------------------------------------------------------
1010

@@ -31,7 +31,7 @@ GLOBALBKI_SRCS= $(addprefix ../../include/catalog/, \
3131

3232
LOCALBKI_SRCS= $(addprefix ../../include/catalog/, \
3333
pg_proc.h pg_type.h pg_attribute.h pg_class.h \
34-
pg_inherits.h pg_index.h pg_version.h pg_statistic.h \
34+
pg_inherits.h pg_index.h pg_statistic.h \
3535
pg_operator.h pg_opclass.h pg_am.h pg_amop.h pg_amproc.h \
3636
pg_language.h pg_parg.h \
3737
pg_aggregate.h pg_ipl.h pg_inheritproc.h \

src/backend/commands/variable.c

+39-17
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Routines for handling of 'SET var TO',
33
* 'SHOW var' and 'RESET var' statements.
44
*
5-
* $Id: variable.c,v 1.13 1998/09/03 02:34:29 momjian Exp $
5+
* $Id: variable.c,v 1.14 1998/10/08 18:29:20 momjian Exp $
66
*
77
*/
88

@@ -19,6 +19,28 @@
1919
#include "mb/pg_wchar.h"
2020
#endif
2121

22+
static bool show_date(void);
23+
static bool reset_date(void);
24+
static bool parse_date(const char *);
25+
static bool show_timezone(void);
26+
static bool reset_timezone(void);
27+
static bool parse_timezone(const char *);
28+
static bool show_cost_heap(void);
29+
static bool reset_cost_heap(void);
30+
static bool parse_cost_heap(const char *);
31+
static bool show_cost_index(void);
32+
static bool reset_cost_index(void);
33+
static bool parse_cost_index(const char *);
34+
static bool show_r_plans(void);
35+
static bool reset_r_plans();
36+
static bool parse_r_plans(const char *);
37+
static bool reset_geqo(void);
38+
static bool show_geqo(void);
39+
static bool parse_geqo(const char *);
40+
static bool show_ksqo(void);
41+
static bool reset_ksqo(void);
42+
static bool parse_ksqo(const char *);
43+
2244
extern Cost _cpu_page_wight_;
2345
extern Cost _cpu_index_page_wight_;
2446
extern bool _use_geqo_;
@@ -128,7 +150,7 @@ get_token(char **tok, char **val, const char *str)
128150
}
129151

130152
/*-----------------------------------------------------------------------*/
131-
bool
153+
static bool
132154
parse_geqo(const char *value)
133155
{
134156
const char *rest;
@@ -175,7 +197,7 @@ parse_geqo(const char *value)
175197
return TRUE;
176198
}
177199

178-
bool
200+
static bool
179201
show_geqo()
180202
{
181203

@@ -186,7 +208,7 @@ show_geqo()
186208
return TRUE;
187209
}
188210

189-
bool
211+
static bool
190212
reset_geqo(void)
191213
{
192214

@@ -199,7 +221,7 @@ reset_geqo(void)
199221
return TRUE;
200222
}
201223

202-
bool
224+
static bool
203225
parse_r_plans(const char *value)
204226
{
205227
if (value == NULL)
@@ -219,7 +241,7 @@ parse_r_plans(const char *value)
219241
}
220242

221243
/*-----------------------------------------------------------------------*/
222-
bool
244+
static bool
223245
show_r_plans()
224246
{
225247

@@ -230,7 +252,7 @@ show_r_plans()
230252
return TRUE;
231253
}
232254

233-
bool
255+
static bool
234256
reset_r_plans()
235257
{
236258

@@ -243,7 +265,7 @@ reset_r_plans()
243265
}
244266

245267
/*-----------------------------------------------------------------------*/
246-
bool
268+
static bool
247269
parse_cost_heap(const char *value)
248270
{
249271
float32 res;
@@ -268,15 +290,15 @@ show_cost_heap()
268290
return TRUE;
269291
}
270292

271-
bool
293+
static bool
272294
reset_cost_heap()
273295
{
274296
_cpu_page_wight_ = _CPU_PAGE_WEIGHT_;
275297
return TRUE;
276298
}
277299

278300
/*-----------------------------------------------------------------------*/
279-
bool
301+
static bool
280302
parse_cost_index(const char *value)
281303
{
282304
float32 res;
@@ -301,15 +323,15 @@ show_cost_index()
301323
return TRUE;
302324
}
303325

304-
bool
326+
static bool
305327
reset_cost_index()
306328
{
307329
_cpu_index_page_wight_ = _CPU_INDEX_PAGE_WEIGHT_;
308330
return TRUE;
309331
}
310332

311333
/*-----------------------------------------------------------------------*/
312-
bool
334+
static bool
313335
parse_date(const char *value)
314336
{
315337
char *tok;
@@ -379,7 +401,7 @@ parse_date(const char *value)
379401
return TRUE;
380402
}
381403

382-
bool
404+
static bool
383405
show_date()
384406
{
385407
char buf[64];
@@ -431,7 +453,7 @@ static char tzbuf[64];
431453
* Try to save existing TZ environment variable for later use in RESET TIME ZONE.
432454
* - thomas 1997-11-10
433455
*/
434-
bool
456+
static bool
435457
parse_timezone(const char *value)
436458
{
437459
char *tok;
@@ -468,7 +490,7 @@ parse_timezone(const char *value)
468490
return TRUE;
469491
} /* parse_timezone() */
470492

471-
bool
493+
static bool
472494
show_timezone()
473495
{
474496
char *tz;
@@ -625,7 +647,7 @@ indexes when multiple ORs are specified in the where clause.
625647
See optimizer/prep/prepkeyset.c for more on this.
626648
daveh@insightdist.com 6/16/98
627649
-----------------------------------------------------------------------*/
628-
bool
650+
static bool
629651
parse_ksqo(const char *value)
630652
{
631653
if (value == NULL)
@@ -644,7 +666,7 @@ parse_ksqo(const char *value)
644666
return TRUE;
645667
}
646668

647-
bool
669+
static bool
648670
show_ksqo()
649671
{
650672

src/backend/executor/execTuples.c

+4-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*
1515
*
1616
* IDENTIFICATION
17-
* $Header: /cvsroot/pgsql/src/backend/executor/execTuples.c,v 1.20 1998/09/01 03:22:20 momjian Exp $
17+
* $Header: /cvsroot/pgsql/src/backend/executor/execTuples.c,v 1.21 1998/10/08 18:29:26 momjian Exp $
1818
*
1919
*-------------------------------------------------------------------------
2020
*/
@@ -446,7 +446,6 @@ ExecSlotPolicy(TupleTableSlot *slot) /* slot to inspect */
446446
return slot->ttc_shouldFree;
447447
}
448448

449-
#endif
450449

451450
/* --------------------------------
452451
* ExecSetSlotPolicy
@@ -468,6 +467,7 @@ ExecSetSlotPolicy(TupleTableSlot *slot, /* slot to change */
468467

469468
return old_shouldFree;
470469
}
470+
#endif
471471

472472
/* --------------------------------
473473
* ExecSlotDescriptor
@@ -638,6 +638,7 @@ ExecInitScanTupleSlot(EState *estate, CommonScanState *commonscanstate)
638638
commonscanstate->css_ScanTupleSlot = (TupleTableSlot *) slot;
639639
}
640640

641+
#ifdef NOT_USED
641642
/* ----------------
642643
* ExecInitMarkedTupleSlot
643644
* ----------------
@@ -649,6 +650,7 @@ ExecInitMarkedTupleSlot(EState *estate, MergeJoinState *mergestate)
649650
INIT_SLOT_ALLOC;
650651
mergestate->mj_MarkedTupleSlot = (TupleTableSlot *) slot;
651652
}
653+
#endif
652654

653655
/* ----------------
654656
* ExecInitOuterTupleSlot

0 commit comments

Comments
 (0)