Make parser functions static where possible.
This commit is contained in:
parent
b704426618
commit
983ec2cb4b
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/executor/execQual.c,v 1.19 1997/09/27 14:37:10 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/backend/executor/execQual.c,v 1.20 1997/11/26 03:54:00 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -70,24 +70,19 @@ int execConstLen;
|
|||||||
|
|
||||||
/* static functions decls */
|
/* static functions decls */
|
||||||
static Datum ExecEvalAggreg(Aggreg *agg, ExprContext *econtext, bool *isNull);
|
static Datum ExecEvalAggreg(Aggreg *agg, ExprContext *econtext, bool *isNull);
|
||||||
static Datum
|
static Datum ExecEvalArrayRef(ArrayRef *arrayRef, ExprContext *econtext,
|
||||||
ExecEvalArrayRef(ArrayRef *arrayRef, ExprContext *econtext,
|
|
||||||
bool *isNull, bool *isDone);
|
bool *isNull, bool *isDone);
|
||||||
static Datum ExecEvalAnd(Expr *andExpr, ExprContext *econtext, bool *isNull);
|
static Datum ExecEvalAnd(Expr *andExpr, ExprContext *econtext, bool *isNull);
|
||||||
static Datum
|
static Datum ExecEvalFunc(Expr *funcClause, ExprContext *econtext,
|
||||||
ExecEvalFunc(Expr *funcClause, ExprContext *econtext,
|
|
||||||
bool *isNull, bool *isDone);
|
bool *isNull, bool *isDone);
|
||||||
static void
|
static void ExecEvalFuncArgs(FunctionCachePtr fcache, ExprContext *econtext,
|
||||||
ExecEvalFuncArgs(FunctionCachePtr fcache, ExprContext *econtext,
|
|
||||||
List *argList, Datum argV[], bool *argIsDone);
|
List *argList, Datum argV[], bool *argIsDone);
|
||||||
static Datum ExecEvalNot(Expr *notclause, ExprContext *econtext, bool *isNull);
|
static Datum ExecEvalNot(Expr *notclause, ExprContext *econtext, bool *isNull);
|
||||||
static Datum
|
static Datum ExecEvalOper(Expr *opClause, ExprContext *econtext,
|
||||||
ExecEvalOper(Expr *opClause, ExprContext *econtext,
|
|
||||||
bool *isNull);
|
bool *isNull);
|
||||||
static Datum ExecEvalOr(Expr *orExpr, ExprContext *econtext, bool *isNull);
|
static Datum ExecEvalOr(Expr *orExpr, ExprContext *econtext, bool *isNull);
|
||||||
static Datum ExecEvalVar(Var *variable, ExprContext *econtext, bool *isNull);
|
static Datum ExecEvalVar(Var *variable, ExprContext *econtext, bool *isNull);
|
||||||
static Datum
|
static Datum ExecMakeFunctionResult(Node *node, List *arguments,
|
||||||
ExecMakeFunctionResult(Node *node, List *arguments,
|
|
||||||
ExprContext *econtext, bool *isNull, bool *isDone);
|
ExprContext *econtext, bool *isNull, bool *isDone);
|
||||||
static bool ExecQualClause(Node *clause, ExprContext *econtext);
|
static bool ExecQualClause(Node *clause, ExprContext *econtext);
|
||||||
|
|
||||||
@ -506,10 +501,7 @@ ExecEvalParam(Param *expression, ExprContext *econtext, bool *isNull)
|
|||||||
* to use this. Ex: overpaid(EMP) might call GetAttributeByNum().
|
* to use this. Ex: overpaid(EMP) might call GetAttributeByNum().
|
||||||
* ----------------
|
* ----------------
|
||||||
*/
|
*/
|
||||||
/*
|
/* static but gets called from external functions */
|
||||||
* This gets called from external functions, so don't make it static
|
|
||||||
* or remove it
|
|
||||||
*/
|
|
||||||
char *
|
char *
|
||||||
GetAttributeByNum(TupleTableSlot *slot,
|
GetAttributeByNum(TupleTableSlot *slot,
|
||||||
AttrNumber attrno,
|
AttrNumber attrno,
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/utils/time/tqual.c,v 1.12 1997/11/26 03:42:58 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/backend/utils/time/tqual.c,v 1.13 1997/11/26 03:54:18 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -24,8 +24,6 @@
|
|||||||
#include "utils/palloc.h"
|
#include "utils/palloc.h"
|
||||||
#include "utils/tqual.h"
|
#include "utils/tqual.h"
|
||||||
|
|
||||||
static bool heapisoverride(void);
|
|
||||||
|
|
||||||
extern bool PostgresIsInitialized;
|
extern bool PostgresIsInitialized;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -51,7 +49,8 @@ setheapoverride(bool on)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool
|
/* static, but called in debug macro */
|
||||||
|
bool
|
||||||
heapisoverride()
|
heapisoverride()
|
||||||
{
|
{
|
||||||
if (!TransactionIdIsValid(HeapSpecialTransactionId))
|
if (!TransactionIdIsValid(HeapSpecialTransactionId))
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
*
|
*
|
||||||
* Copyright (c) 1994, Regents of the University of California
|
* Copyright (c) 1994, Regents of the University of California
|
||||||
*
|
*
|
||||||
* $Id: executor.h,v 1.15 1997/11/20 23:23:39 momjian Exp $
|
* $Id: executor.h,v 1.16 1997/11/26 03:54:23 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -79,8 +79,8 @@ ExecEvalParam(Param *expression, ExprContext *econtext,
|
|||||||
bool *isNull);
|
bool *isNull);
|
||||||
|
|
||||||
/* stop here */
|
/* stop here */
|
||||||
extern char *
|
extern char *GetAttributeByNum(TupleTableSlot *slot, AttrNumber attrno,
|
||||||
GetAttributeByNum(TupleTableSlot *slot, AttrNumber attrno, bool *isNull);
|
bool *isNull);
|
||||||
extern char *
|
extern char *
|
||||||
GetAttributeByName(TupleTableSlot *slot, char *attname, bool *isNull);
|
GetAttributeByName(TupleTableSlot *slot, char *attname, bool *isNull);
|
||||||
extern Datum
|
extern Datum
|
||||||
|
Loading…
x
Reference in New Issue
Block a user