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

Commit323eaf9

Browse files
committed
Add some const decorations
These mainly help understanding the function signatures better.
1 parentf4eabaf commit323eaf9

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

‎src/backend/executor/execExpr.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3314,8 +3314,8 @@ ExprState *
33143314
ExecBuildGroupingEqual(TupleDescldesc,TupleDescrdesc,
33153315
constTupleTableSlotOps*lops,constTupleTableSlotOps*rops,
33163316
intnumCols,
3317-
AttrNumber*keyColIdx,
3318-
Oid*eqfunctions,
3317+
constAttrNumber*keyColIdx,
3318+
constOid*eqfunctions,
33193319
PlanState*parent)
33203320
{
33213321
ExprState*state=makeNode(ExprState);

‎src/backend/executor/execGrouping.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ static intTupleHashTableMatch(struct tuplehash_hash *tb, const MinimalTuple tup
5959
ExprState*
6060
execTuplesMatchPrepare(TupleDescdesc,
6161
intnumCols,
62-
AttrNumber*keyColIdx,
63-
Oid*eqOperators,
62+
constAttrNumber*keyColIdx,
63+
constOid*eqOperators,
6464
PlanState*parent)
6565
{
6666
Oid*eqFunctions= (Oid*)palloc(numCols*sizeof(Oid));
@@ -94,7 +94,7 @@ execTuplesMatchPrepare(TupleDesc desc,
9494
*/
9595
void
9696
execTuplesHashPrepare(intnumCols,
97-
Oid*eqOperators,
97+
constOid*eqOperators,
9898
Oid**eqFuncOids,
9999
FmgrInfo**hashFunctions)
100100
{
@@ -153,7 +153,7 @@ TupleHashTable
153153
BuildTupleHashTable(PlanState*parent,
154154
TupleDescinputDesc,
155155
intnumCols,AttrNumber*keyColIdx,
156-
Oid*eqfuncoids,
156+
constOid*eqfuncoids,
157157
FmgrInfo*hashfunctions,
158158
longnbuckets,Sizeadditionalsize,
159159
MemoryContexttablecxt,MemoryContexttempcxt,

‎src/include/executor/executor.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,17 +108,17 @@ extern bool execCurrentOf(CurrentOfExpr *cexpr,
108108
*/
109109
externExprState*execTuplesMatchPrepare(TupleDescdesc,
110110
intnumCols,
111-
AttrNumber*keyColIdx,
112-
Oid*eqOperators,
111+
constAttrNumber*keyColIdx,
112+
constOid*eqOperators,
113113
PlanState*parent);
114114
externvoidexecTuplesHashPrepare(intnumCols,
115-
Oid*eqOperators,
115+
constOid*eqOperators,
116116
Oid**eqFuncOids,
117117
FmgrInfo**hashFunctions);
118118
externTupleHashTableBuildTupleHashTable(PlanState*parent,
119119
TupleDescinputDesc,
120120
intnumCols,AttrNumber*keyColIdx,
121-
Oid*eqfuncoids,
121+
constOid*eqfuncoids,
122122
FmgrInfo*hashfunctions,
123123
longnbuckets,Sizeadditionalsize,
124124
MemoryContexttablecxt,
@@ -244,8 +244,8 @@ extern ExprState *ExecBuildAggTrans(AggState *aggstate, struct AggStatePerPhaseD
244244
externExprState*ExecBuildGroupingEqual(TupleDescldesc,TupleDescrdesc,
245245
constTupleTableSlotOps*lops,constTupleTableSlotOps*rops,
246246
intnumCols,
247-
AttrNumber*keyColIdx,
248-
Oid*eqfunctions,
247+
constAttrNumber*keyColIdx,
248+
constOid*eqfunctions,
249249
PlanState*parent);
250250
externProjectionInfo*ExecBuildProjectionInfo(List*targetList,
251251
ExprContext*econtext,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp