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

Commit983ec2c

Browse files
committed
Make parser functions static where possible.
1 parentb704426 commit983ec2c

File tree

3 files changed

+13
-22
lines changed

3 files changed

+13
-22
lines changed

‎src/backend/executor/execQual.c

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/executor/execQual.c,v 1.19 1997/09/27 14:37:10 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/executor/execQual.c,v 1.20 1997/11/26 03:54:00 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -70,24 +70,19 @@ intexecConstLen;
7070

7171
/* static functions decls */
7272
staticDatumExecEvalAggreg(Aggreg*agg,ExprContext*econtext,bool*isNull);
73-
staticDatum
74-
ExecEvalArrayRef(ArrayRef*arrayRef,ExprContext*econtext,
73+
staticDatumExecEvalArrayRef(ArrayRef*arrayRef,ExprContext*econtext,
7574
bool*isNull,bool*isDone);
7675
staticDatumExecEvalAnd(Expr*andExpr,ExprContext*econtext,bool*isNull);
77-
staticDatum
78-
ExecEvalFunc(Expr*funcClause,ExprContext*econtext,
76+
staticDatumExecEvalFunc(Expr*funcClause,ExprContext*econtext,
7977
bool*isNull,bool*isDone);
80-
staticvoid
81-
ExecEvalFuncArgs(FunctionCachePtrfcache,ExprContext*econtext,
78+
staticvoidExecEvalFuncArgs(FunctionCachePtrfcache,ExprContext*econtext,
8279
List*argList,DatumargV[],bool*argIsDone);
8380
staticDatumExecEvalNot(Expr*notclause,ExprContext*econtext,bool*isNull);
84-
staticDatum
85-
ExecEvalOper(Expr*opClause,ExprContext*econtext,
81+
staticDatumExecEvalOper(Expr*opClause,ExprContext*econtext,
8682
bool*isNull);
8783
staticDatumExecEvalOr(Expr*orExpr,ExprContext*econtext,bool*isNull);
8884
staticDatumExecEvalVar(Var*variable,ExprContext*econtext,bool*isNull);
89-
staticDatum
90-
ExecMakeFunctionResult(Node*node,List*arguments,
85+
staticDatumExecMakeFunctionResult(Node*node,List*arguments,
9186
ExprContext*econtext,bool*isNull,bool*isDone);
9287
staticboolExecQualClause(Node*clause,ExprContext*econtext);
9388

@@ -506,10 +501,7 @@ ExecEvalParam(Param *expression, ExprContext *econtext, bool *isNull)
506501
*to use this. Ex: overpaid(EMP) might call GetAttributeByNum().
507502
* ----------------
508503
*/
509-
/*
510-
* This gets called from external functions, so don't make it static
511-
* or remove it
512-
*/
504+
/* static but gets called from external functions */
513505
char*
514506
GetAttributeByNum(TupleTableSlot*slot,
515507
AttrNumberattrno,

‎src/backend/utils/time/tqual.c

Lines changed: 3 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/utils/time/tqual.c,v 1.12 1997/11/26 03:42:58 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/time/tqual.c,v 1.13 1997/11/26 03:54:18 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -24,8 +24,6 @@
2424
#include"utils/palloc.h"
2525
#include"utils/tqual.h"
2626

27-
staticboolheapisoverride(void);
28-
2927
externboolPostgresIsInitialized;
3028

3129
/*
@@ -51,7 +49,8 @@ setheapoverride(bool on)
5149
}
5250
}
5351

54-
staticbool
52+
/* static, but called in debug macro */
53+
bool
5554
heapisoverride()
5655
{
5756
if (!TransactionIdIsValid(HeapSpecialTransactionId))

‎src/include/executor/executor.h

Lines changed: 3 additions & 3 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: executor.h,v 1.15 1997/11/20 23:23:39 momjian Exp $
9+
* $Id: executor.h,v 1.16 1997/11/26 03:54:23 momjian Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -79,8 +79,8 @@ ExecEvalParam(Param *expression, ExprContext *econtext,
7979
bool*isNull);
8080

8181
/* stop here */
82-
externchar*
83-
GetAttributeByNum(TupleTableSlot*slot,AttrNumberattrno,bool*isNull);
82+
externchar*GetAttributeByNum(TupleTableSlot*slot,AttrNumberattrno,
83+
bool*isNull);
8484
externchar*
8585
GetAttributeByName(TupleTableSlot*slot,char*attname,bool*isNull);
8686
externDatum

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp