Skip to content

Commit 3136038

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 parent 3d25b4e commit 3136038

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
static A_Expr *
2704-
_copyAExpr(const A_Expr *from)
2704+
_copyA_Expr(const A_Expr *from)
27052705
{
27062706
A_Expr *newnode = makeNode(A_Expr);
27072707

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

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

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

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

27952795
return newnode;
27962796
}
27972797

27982798
static A_Indices *
2799-
_copyAIndices(const A_Indices *from)
2799+
_copyA_Indices(const A_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
case T_A_Expr:
5717-
retval = _copyAExpr(from);
5717+
retval = _copyA_Expr(from);
57185718
break;
57195719
case T_ColumnRef:
57205720
retval = _copyColumnRef(from);
@@ -5723,16 +5723,16 @@ copyObjectImpl(const void *from)
57235723
retval = _copyParamRef(from);
57245724
break;
57255725
case T_A_Const:
5726-
retval = _copyAConst(from);
5726+
retval = _copyA_Const(from);
57275727
break;
57285728
case T_FuncCall:
57295729
retval = _copyFuncCall(from);
57305730
break;
57315731
case T_A_Star:
5732-
retval = _copyAStar(from);
5732+
retval = _copyA_Star(from);
57335733
break;
57345734
case T_A_Indices:
5735-
retval = _copyAIndices(from);
5735+
retval = _copyA_Indices(from);
57365736
break;
57375737
case T_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
static bool
2380-
_equalAExpr(const A_Expr *a, const A_Expr *b)
2380+
_equalA_Expr(const A_Expr *a, const A_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
static bool
2410-
_equalAConst(const A_Const *a, const A_Const *b)
2410+
_equalA_Const(const A_Const *a, const A_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
static bool
2438-
_equalAStar(const A_Star *a, const A_Star *b)
2438+
_equalA_Star(const A_Star *a, const A_Star *b)
24392439
{
24402440
return true;
24412441
}
24422442

24432443
static bool
2444-
_equalAIndices(const A_Indices *a, const A_Indices *b)
2444+
_equalA_Indices(const A_Indices *a, const A_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
case T_A_Expr:
3713-
retval = _equalAExpr(a, b);
3713+
retval = _equalA_Expr(a, b);
37143714
break;
37153715
case T_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
case T_A_Const:
3722-
retval = _equalAConst(a, b);
3722+
retval = _equalA_Const(a, b);
37233723
break;
37243724
case T_FuncCall:
37253725
retval = _equalFuncCall(a, b);
37263726
break;
37273727
case T_A_Star:
3728-
retval = _equalAStar(a, b);
3728+
retval = _equalA_Star(a, b);
37293729
break;
37303730
case T_A_Indices:
3731-
retval = _equalAIndices(a, b);
3731+
retval = _equalA_Indices(a, b);
37323732
break;
37333733
case T_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
static void
3341-
_outAExpr(StringInfo str, const A_Expr *node)
3341+
_outA_Expr(StringInfo str, const A_Expr *node)
33423342
{
33433343
WRITE_NODE_TYPE("AEXPR");
33443344

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

34883488
static void
3489-
_outAConst(StringInfo str, const A_Const *node)
3489+
_outA_Const(StringInfo str, const A_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
case T_A_Expr:
4433-
_outAExpr(str, obj);
4433+
_outA_Expr(str, obj);
44344434
break;
44354435
case T_ColumnRef:
44364436
_outColumnRef(str, obj);
@@ -4442,7 +4442,7 @@ outNode(StringInfo str, const void *obj)
44424442
_outRawStmt(str, obj);
44434443
break;
44444444
case T_A_Const:
4445-
_outAConst(str, obj);
4445+
_outA_Const(str, obj);
44464446
break;
44474447
case T_A_Star:
44484448
_outA_Star(str, obj);

0 commit comments

Comments
 (0)