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

Commit3136038

Browse files
committed
Rename some node support functions for consistency
Some node function names didn't match their node type names exactly.Fix those for consistency.Discussion:https://www.postgresql.org/message-id/flat/c1097590-a6a4-486a-64b1-e1f9cc0533ce@enterprisedb.com
1 parent3d25b4e commit3136038

File tree

3 files changed

+20
-20
lines changed

3 files changed

+20
-20
lines changed

‎src/backend/nodes/copyfuncs.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2701,7 +2701,7 @@ _copyCommonTableExpr(const CommonTableExpr *from)
27012701
}
27022702

27032703
staticA_Expr*
2704-
_copyAExpr(constA_Expr*from)
2704+
_copyA_Expr(constA_Expr*from)
27052705
{
27062706
A_Expr*newnode=makeNode(A_Expr);
27072707

@@ -2737,7 +2737,7 @@ _copyParamRef(const ParamRef *from)
27372737
}
27382738

27392739
staticA_Const*
2740-
_copyAConst(constA_Const*from)
2740+
_copyA_Const(constA_Const*from)
27412741
{
27422742
A_Const*newnode=makeNode(A_Const);
27432743

@@ -2788,15 +2788,15 @@ _copyFuncCall(const FuncCall *from)
27882788
}
27892789

27902790
staticA_Star*
2791-
_copyAStar(constA_Star*from)
2791+
_copyA_Star(constA_Star*from)
27922792
{
27932793
A_Star*newnode=makeNode(A_Star);
27942794

27952795
returnnewnode;
27962796
}
27972797

27982798
staticA_Indices*
2799-
_copyAIndices(constA_Indices*from)
2799+
_copyA_Indices(constA_Indices*from)
28002800
{
28012801
A_Indices*newnode=makeNode(A_Indices);
28022802

@@ -5714,7 +5714,7 @@ copyObjectImpl(const void *from)
57145714
retval=_copyDropSubscriptionStmt(from);
57155715
break;
57165716
caseT_A_Expr:
5717-
retval=_copyAExpr(from);
5717+
retval=_copyA_Expr(from);
57185718
break;
57195719
caseT_ColumnRef:
57205720
retval=_copyColumnRef(from);
@@ -5723,16 +5723,16 @@ copyObjectImpl(const void *from)
57235723
retval=_copyParamRef(from);
57245724
break;
57255725
caseT_A_Const:
5726-
retval=_copyAConst(from);
5726+
retval=_copyA_Const(from);
57275727
break;
57285728
caseT_FuncCall:
57295729
retval=_copyFuncCall(from);
57305730
break;
57315731
caseT_A_Star:
5732-
retval=_copyAStar(from);
5732+
retval=_copyA_Star(from);
57335733
break;
57345734
caseT_A_Indices:
5735-
retval=_copyAIndices(from);
5735+
retval=_copyA_Indices(from);
57365736
break;
57375737
caseT_A_Indirection:
57385738
retval=_copyA_Indirection(from);

‎src/backend/nodes/equalfuncs.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2377,7 +2377,7 @@ _equalAlterPolicyStmt(const AlterPolicyStmt *a, const AlterPolicyStmt *b)
23772377
}
23782378

23792379
staticbool
2380-
_equalAExpr(constA_Expr*a,constA_Expr*b)
2380+
_equalA_Expr(constA_Expr*a,constA_Expr*b)
23812381
{
23822382
COMPARE_SCALAR_FIELD(kind);
23832383
COMPARE_NODE_FIELD(name);
@@ -2407,7 +2407,7 @@ _equalParamRef(const ParamRef *a, const ParamRef *b)
24072407
}
24082408

24092409
staticbool
2410-
_equalAConst(constA_Const*a,constA_Const*b)
2410+
_equalA_Const(constA_Const*a,constA_Const*b)
24112411
{
24122412
if (!equal(&a->val,&b->val))/* hack for in-line Value field */
24132413
return false;
@@ -2435,13 +2435,13 @@ _equalFuncCall(const FuncCall *a, const FuncCall *b)
24352435
}
24362436

24372437
staticbool
2438-
_equalAStar(constA_Star*a,constA_Star*b)
2438+
_equalA_Star(constA_Star*a,constA_Star*b)
24392439
{
24402440
return true;
24412441
}
24422442

24432443
staticbool
2444-
_equalAIndices(constA_Indices*a,constA_Indices*b)
2444+
_equalA_Indices(constA_Indices*a,constA_Indices*b)
24452445
{
24462446
COMPARE_SCALAR_FIELD(is_slice);
24472447
COMPARE_NODE_FIELD(lidx);
@@ -3710,7 +3710,7 @@ equal(const void *a, const void *b)
37103710
retval=_equalDropSubscriptionStmt(a,b);
37113711
break;
37123712
caseT_A_Expr:
3713-
retval=_equalAExpr(a,b);
3713+
retval=_equalA_Expr(a,b);
37143714
break;
37153715
caseT_ColumnRef:
37163716
retval=_equalColumnRef(a,b);
@@ -3719,16 +3719,16 @@ equal(const void *a, const void *b)
37193719
retval=_equalParamRef(a,b);
37203720
break;
37213721
caseT_A_Const:
3722-
retval=_equalAConst(a,b);
3722+
retval=_equalA_Const(a,b);
37233723
break;
37243724
caseT_FuncCall:
37253725
retval=_equalFuncCall(a,b);
37263726
break;
37273727
caseT_A_Star:
3728-
retval=_equalAStar(a,b);
3728+
retval=_equalA_Star(a,b);
37293729
break;
37303730
caseT_A_Indices:
3731-
retval=_equalAIndices(a,b);
3731+
retval=_equalA_Indices(a,b);
37323732
break;
37333733
caseT_A_Indirection:
37343734
retval=_equalA_Indirection(a,b);

‎src/backend/nodes/outfuncs.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3338,7 +3338,7 @@ _outTableSampleClause(StringInfo str, const TableSampleClause *node)
33383338
}
33393339

33403340
staticvoid
3341-
_outAExpr(StringInfostr,constA_Expr*node)
3341+
_outA_Expr(StringInfostr,constA_Expr*node)
33423342
{
33433343
WRITE_NODE_TYPE("AEXPR");
33443344

@@ -3486,7 +3486,7 @@ _outRawStmt(StringInfo str, const RawStmt *node)
34863486
}
34873487

34883488
staticvoid
3489-
_outAConst(StringInfostr,constA_Const*node)
3489+
_outA_Const(StringInfostr,constA_Const*node)
34903490
{
34913491
WRITE_NODE_TYPE("A_CONST");
34923492

@@ -4430,7 +4430,7 @@ outNode(StringInfo str, const void *obj)
44304430
_outTableSampleClause(str,obj);
44314431
break;
44324432
caseT_A_Expr:
4433-
_outAExpr(str,obj);
4433+
_outA_Expr(str,obj);
44344434
break;
44354435
caseT_ColumnRef:
44364436
_outColumnRef(str,obj);
@@ -4442,7 +4442,7 @@ outNode(StringInfo str, const void *obj)
44424442
_outRawStmt(str,obj);
44434443
break;
44444444
caseT_A_Const:
4445-
_outAConst(str,obj);
4445+
_outA_Const(str,obj);
44464446
break;
44474447
caseT_A_Star:
44484448
_outA_Star(str,obj);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp