diff options
Diffstat (limited to 'src/backend/nodes/copyfuncs.c')
-rw-r--r-- | src/backend/nodes/copyfuncs.c | 518 |
1 files changed, 259 insertions, 259 deletions
diff --git a/src/backend/nodes/copyfuncs.c b/src/backend/nodes/copyfuncs.c index c70a5bdf388..7178b529a2e 100644 --- a/src/backend/nodes/copyfuncs.c +++ b/src/backend/nodes/copyfuncs.c @@ -72,7 +72,7 @@ * _copyPlannedStmt */ static PlannedStmt * -_copyPlannedStmt(PlannedStmt *from) +_copyPlannedStmt(const PlannedStmt *from) { PlannedStmt *newnode = makeNode(PlannedStmt); @@ -103,7 +103,7 @@ _copyPlannedStmt(PlannedStmt *from) * all the copy functions for classes which inherit from Plan. */ static void -CopyPlanFields(Plan *from, Plan *newnode) +CopyPlanFields(const Plan *from, Plan *newnode) { COPY_SCALAR_FIELD(startup_cost); COPY_SCALAR_FIELD(total_cost); @@ -122,7 +122,7 @@ CopyPlanFields(Plan *from, Plan *newnode) * _copyPlan */ static Plan * -_copyPlan(Plan *from) +_copyPlan(const Plan *from) { Plan *newnode = makeNode(Plan); @@ -139,14 +139,14 @@ _copyPlan(Plan *from) * _copyResult */ static Result * -_copyResult(Result *from) +_copyResult(const Result *from) { Result *newnode = makeNode(Result); /* * copy node superclass fields */ - CopyPlanFields((Plan *) from, (Plan *) newnode); + CopyPlanFields((const Plan *) from, (Plan *) newnode); /* * copy remainder of node @@ -160,14 +160,14 @@ _copyResult(Result *from) * _copyModifyTable */ static ModifyTable * -_copyModifyTable(ModifyTable *from) +_copyModifyTable(const ModifyTable *from) { ModifyTable *newnode = makeNode(ModifyTable); /* * copy node superclass fields */ - CopyPlanFields((Plan *) from, (Plan *) newnode); + CopyPlanFields((const Plan *) from, (Plan *) newnode); /* * copy remainder of node @@ -188,14 +188,14 @@ _copyModifyTable(ModifyTable *from) * _copyAppend */ static Append * -_copyAppend(Append *from) +_copyAppend(const Append *from) { Append *newnode = makeNode(Append); /* * copy node superclass fields */ - CopyPlanFields((Plan *) from, (Plan *) newnode); + CopyPlanFields((const Plan *) from, (Plan *) newnode); /* * copy remainder of node @@ -209,14 +209,14 @@ _copyAppend(Append *from) * _copyMergeAppend */ static MergeAppend * -_copyMergeAppend(MergeAppend *from) +_copyMergeAppend(const MergeAppend *from) { MergeAppend *newnode = makeNode(MergeAppend); /* * copy node superclass fields */ - CopyPlanFields((Plan *) from, (Plan *) newnode); + CopyPlanFields((const Plan *) from, (Plan *) newnode); /* * copy remainder of node @@ -235,14 +235,14 @@ _copyMergeAppend(MergeAppend *from) * _copyRecursiveUnion */ static RecursiveUnion * -_copyRecursiveUnion(RecursiveUnion *from) +_copyRecursiveUnion(const RecursiveUnion *from) { RecursiveUnion *newnode = makeNode(RecursiveUnion); /* * copy node superclass fields */ - CopyPlanFields((Plan *) from, (Plan *) newnode); + CopyPlanFields((const Plan *) from, (Plan *) newnode); /* * copy remainder of node @@ -263,14 +263,14 @@ _copyRecursiveUnion(RecursiveUnion *from) * _copyBitmapAnd */ static BitmapAnd * -_copyBitmapAnd(BitmapAnd *from) +_copyBitmapAnd(const BitmapAnd *from) { BitmapAnd *newnode = makeNode(BitmapAnd); /* * copy node superclass fields */ - CopyPlanFields((Plan *) from, (Plan *) newnode); + CopyPlanFields((const Plan *) from, (Plan *) newnode); /* * copy remainder of node @@ -284,14 +284,14 @@ _copyBitmapAnd(BitmapAnd *from) * _copyBitmapOr */ static BitmapOr * -_copyBitmapOr(BitmapOr *from) +_copyBitmapOr(const BitmapOr *from) { BitmapOr *newnode = makeNode(BitmapOr); /* * copy node superclass fields */ - CopyPlanFields((Plan *) from, (Plan *) newnode); + CopyPlanFields((const Plan *) from, (Plan *) newnode); /* * copy remainder of node @@ -309,9 +309,9 @@ _copyBitmapOr(BitmapOr *from) * all the copy functions for classes which inherit from Scan. */ static void -CopyScanFields(Scan *from, Scan *newnode) +CopyScanFields(const Scan *from, Scan *newnode) { - CopyPlanFields((Plan *) from, (Plan *) newnode); + CopyPlanFields((const Plan *) from, (Plan *) newnode); COPY_SCALAR_FIELD(scanrelid); } @@ -320,14 +320,14 @@ CopyScanFields(Scan *from, Scan *newnode) * _copyScan */ static Scan * -_copyScan(Scan *from) +_copyScan(const Scan *from) { Scan *newnode = makeNode(Scan); /* * copy node superclass fields */ - CopyScanFields((Scan *) from, (Scan *) newnode); + CopyScanFields((const Scan *) from, (Scan *) newnode); return newnode; } @@ -336,14 +336,14 @@ _copyScan(Scan *from) * _copySeqScan */ static SeqScan * -_copySeqScan(SeqScan *from) +_copySeqScan(const SeqScan *from) { SeqScan *newnode = makeNode(SeqScan); /* * copy node superclass fields */ - CopyScanFields((Scan *) from, (Scan *) newnode); + CopyScanFields((const Scan *) from, (Scan *) newnode); return newnode; } @@ -352,14 +352,14 @@ _copySeqScan(SeqScan *from) * _copyIndexScan */ static IndexScan * -_copyIndexScan(IndexScan *from) +_copyIndexScan(const IndexScan *from) { IndexScan *newnode = makeNode(IndexScan); /* * copy node superclass fields */ - CopyScanFields((Scan *) from, (Scan *) newnode); + CopyScanFields((const Scan *) from, (Scan *) newnode); /* * copy remainder of node @@ -378,14 +378,14 @@ _copyIndexScan(IndexScan *from) * _copyIndexOnlyScan */ static IndexOnlyScan * -_copyIndexOnlyScan(IndexOnlyScan *from) +_copyIndexOnlyScan(const IndexOnlyScan *from) { IndexOnlyScan *newnode = makeNode(IndexOnlyScan); /* * copy node superclass fields */ - CopyScanFields((Scan *) from, (Scan *) newnode); + CopyScanFields((const Scan *) from, (Scan *) newnode); /* * copy remainder of node @@ -403,14 +403,14 @@ _copyIndexOnlyScan(IndexOnlyScan *from) * _copyBitmapIndexScan */ static BitmapIndexScan * -_copyBitmapIndexScan(BitmapIndexScan *from) +_copyBitmapIndexScan(const BitmapIndexScan *from) { BitmapIndexScan *newnode = makeNode(BitmapIndexScan); /* * copy node superclass fields */ - CopyScanFields((Scan *) from, (Scan *) newnode); + CopyScanFields((const Scan *) from, (Scan *) newnode); /* * copy remainder of node @@ -426,14 +426,14 @@ _copyBitmapIndexScan(BitmapIndexScan *from) * _copyBitmapHeapScan */ static BitmapHeapScan * -_copyBitmapHeapScan(BitmapHeapScan *from) +_copyBitmapHeapScan(const BitmapHeapScan *from) { BitmapHeapScan *newnode = makeNode(BitmapHeapScan); /* * copy node superclass fields */ - CopyScanFields((Scan *) from, (Scan *) newnode); + CopyScanFields((const Scan *) from, (Scan *) newnode); /* * copy remainder of node @@ -447,14 +447,14 @@ _copyBitmapHeapScan(BitmapHeapScan *from) * _copyTidScan */ static TidScan * -_copyTidScan(TidScan *from) +_copyTidScan(const TidScan *from) { TidScan *newnode = makeNode(TidScan); /* * copy node superclass fields */ - CopyScanFields((Scan *) from, (Scan *) newnode); + CopyScanFields((const Scan *) from, (Scan *) newnode); /* * copy remainder of node @@ -468,14 +468,14 @@ _copyTidScan(TidScan *from) * _copySubqueryScan */ static SubqueryScan * -_copySubqueryScan(SubqueryScan *from) +_copySubqueryScan(const SubqueryScan *from) { SubqueryScan *newnode = makeNode(SubqueryScan); /* * copy node superclass fields */ - CopyScanFields((Scan *) from, (Scan *) newnode); + CopyScanFields((const Scan *) from, (Scan *) newnode); /* * copy remainder of node @@ -489,14 +489,14 @@ _copySubqueryScan(SubqueryScan *from) * _copyFunctionScan */ static FunctionScan * -_copyFunctionScan(FunctionScan *from) +_copyFunctionScan(const FunctionScan *from) { FunctionScan *newnode = makeNode(FunctionScan); /* * copy node superclass fields */ - CopyScanFields((Scan *) from, (Scan *) newnode); + CopyScanFields((const Scan *) from, (Scan *) newnode); /* * copy remainder of node @@ -514,14 +514,14 @@ _copyFunctionScan(FunctionScan *from) * _copyValuesScan */ static ValuesScan * -_copyValuesScan(ValuesScan *from) +_copyValuesScan(const ValuesScan *from) { ValuesScan *newnode = makeNode(ValuesScan); /* * copy node superclass fields */ - CopyScanFields((Scan *) from, (Scan *) newnode); + CopyScanFields((const Scan *) from, (Scan *) newnode); /* * copy remainder of node @@ -535,14 +535,14 @@ _copyValuesScan(ValuesScan *from) * _copyCteScan */ static CteScan * -_copyCteScan(CteScan *from) +_copyCteScan(const CteScan *from) { CteScan *newnode = makeNode(CteScan); /* * copy node superclass fields */ - CopyScanFields((Scan *) from, (Scan *) newnode); + CopyScanFields((const Scan *) from, (Scan *) newnode); /* * copy remainder of node @@ -557,14 +557,14 @@ _copyCteScan(CteScan *from) * _copyWorkTableScan */ static WorkTableScan * -_copyWorkTableScan(WorkTableScan *from) +_copyWorkTableScan(const WorkTableScan *from) { WorkTableScan *newnode = makeNode(WorkTableScan); /* * copy node superclass fields */ - CopyScanFields((Scan *) from, (Scan *) newnode); + CopyScanFields((const Scan *) from, (Scan *) newnode); /* * copy remainder of node @@ -578,14 +578,14 @@ _copyWorkTableScan(WorkTableScan *from) * _copyForeignScan */ static ForeignScan * -_copyForeignScan(ForeignScan *from) +_copyForeignScan(const ForeignScan *from) { ForeignScan *newnode = makeNode(ForeignScan); /* * copy node superclass fields */ - CopyScanFields((Scan *) from, (Scan *) newnode); + CopyScanFields((const Scan *) from, (Scan *) newnode); /* * copy remainder of node @@ -600,7 +600,7 @@ _copyForeignScan(ForeignScan *from) * _copyFdwPlan */ static FdwPlan * -_copyFdwPlan(FdwPlan *from) +_copyFdwPlan(const FdwPlan *from) { FdwPlan *newnode = makeNode(FdwPlan); @@ -618,9 +618,9 @@ _copyFdwPlan(FdwPlan *from) * all the copy functions for classes which inherit from Join. */ static void -CopyJoinFields(Join *from, Join *newnode) +CopyJoinFields(const Join *from, Join *newnode) { - CopyPlanFields((Plan *) from, (Plan *) newnode); + CopyPlanFields((const Plan *) from, (Plan *) newnode); COPY_SCALAR_FIELD(jointype); COPY_NODE_FIELD(joinqual); @@ -631,7 +631,7 @@ CopyJoinFields(Join *from, Join *newnode) * _copyJoin */ static Join * -_copyJoin(Join *from) +_copyJoin(const Join *from) { Join *newnode = makeNode(Join); @@ -648,14 +648,14 @@ _copyJoin(Join *from) * _copyNestLoop */ static NestLoop * -_copyNestLoop(NestLoop *from) +_copyNestLoop(const NestLoop *from) { NestLoop *newnode = makeNode(NestLoop); /* * copy node superclass fields */ - CopyJoinFields((Join *) from, (Join *) newnode); + CopyJoinFields((const Join *) from, (Join *) newnode); /* * copy remainder of node @@ -670,7 +670,7 @@ _copyNestLoop(NestLoop *from) * _copyMergeJoin */ static MergeJoin * -_copyMergeJoin(MergeJoin *from) +_copyMergeJoin(const MergeJoin *from) { MergeJoin *newnode = makeNode(MergeJoin); int numCols; @@ -678,7 +678,7 @@ _copyMergeJoin(MergeJoin *from) /* * copy node superclass fields */ - CopyJoinFields((Join *) from, (Join *) newnode); + CopyJoinFields((const Join *) from, (Join *) newnode); /* * copy remainder of node @@ -697,14 +697,14 @@ _copyMergeJoin(MergeJoin *from) * _copyHashJoin */ static HashJoin * -_copyHashJoin(HashJoin *from) +_copyHashJoin(const HashJoin *from) { HashJoin *newnode = makeNode(HashJoin); /* * copy node superclass fields */ - CopyJoinFields((Join *) from, (Join *) newnode); + CopyJoinFields((const Join *) from, (Join *) newnode); /* * copy remainder of node @@ -719,14 +719,14 @@ _copyHashJoin(HashJoin *from) * _copyMaterial */ static Material * -_copyMaterial(Material *from) +_copyMaterial(const Material *from) { Material *newnode = makeNode(Material); /* * copy node superclass fields */ - CopyPlanFields((Plan *) from, (Plan *) newnode); + CopyPlanFields((const Plan *) from, (Plan *) newnode); return newnode; } @@ -736,14 +736,14 @@ _copyMaterial(Material *from) * _copySort */ static Sort * -_copySort(Sort *from) +_copySort(const Sort *from) { Sort *newnode = makeNode(Sort); /* * copy node superclass fields */ - CopyPlanFields((Plan *) from, (Plan *) newnode); + CopyPlanFields((const Plan *) from, (Plan *) newnode); COPY_SCALAR_FIELD(numCols); COPY_POINTER_FIELD(sortColIdx, from->numCols * sizeof(AttrNumber)); @@ -759,11 +759,11 @@ _copySort(Sort *from) * _copyGroup */ static Group * -_copyGroup(Group *from) +_copyGroup(const Group *from) { Group *newnode = makeNode(Group); - CopyPlanFields((Plan *) from, (Plan *) newnode); + CopyPlanFields((const Plan *) from, (Plan *) newnode); COPY_SCALAR_FIELD(numCols); COPY_POINTER_FIELD(grpColIdx, from->numCols * sizeof(AttrNumber)); @@ -776,11 +776,11 @@ _copyGroup(Group *from) * _copyAgg */ static Agg * -_copyAgg(Agg *from) +_copyAgg(const Agg *from) { Agg *newnode = makeNode(Agg); - CopyPlanFields((Plan *) from, (Plan *) newnode); + CopyPlanFields((const Plan *) from, (Plan *) newnode); COPY_SCALAR_FIELD(aggstrategy); COPY_SCALAR_FIELD(numCols); @@ -798,11 +798,11 @@ _copyAgg(Agg *from) * _copyWindowAgg */ static WindowAgg * -_copyWindowAgg(WindowAgg *from) +_copyWindowAgg(const WindowAgg *from) { WindowAgg *newnode = makeNode(WindowAgg); - CopyPlanFields((Plan *) from, (Plan *) newnode); + CopyPlanFields((const Plan *) from, (Plan *) newnode); COPY_SCALAR_FIELD(winref); COPY_SCALAR_FIELD(partNumCols); @@ -828,14 +828,14 @@ _copyWindowAgg(WindowAgg *from) * _copyUnique */ static Unique * -_copyUnique(Unique *from) +_copyUnique(const Unique *from) { Unique *newnode = makeNode(Unique); /* * copy node superclass fields */ - CopyPlanFields((Plan *) from, (Plan *) newnode); + CopyPlanFields((const Plan *) from, (Plan *) newnode); /* * copy remainder of node @@ -851,14 +851,14 @@ _copyUnique(Unique *from) * _copyHash */ static Hash * -_copyHash(Hash *from) +_copyHash(const Hash *from) { Hash *newnode = makeNode(Hash); /* * copy node superclass fields */ - CopyPlanFields((Plan *) from, (Plan *) newnode); + CopyPlanFields((const Plan *) from, (Plan *) newnode); /* * copy remainder of node @@ -876,14 +876,14 @@ _copyHash(Hash *from) * _copySetOp */ static SetOp * -_copySetOp(SetOp *from) +_copySetOp(const SetOp *from) { SetOp *newnode = makeNode(SetOp); /* * copy node superclass fields */ - CopyPlanFields((Plan *) from, (Plan *) newnode); + CopyPlanFields((const Plan *) from, (Plan *) newnode); /* * copy remainder of node @@ -904,14 +904,14 @@ _copySetOp(SetOp *from) * _copyLockRows */ static LockRows * -_copyLockRows(LockRows *from) +_copyLockRows(const LockRows *from) { LockRows *newnode = makeNode(LockRows); /* * copy node superclass fields */ - CopyPlanFields((Plan *) from, (Plan *) newnode); + CopyPlanFields((const Plan *) from, (Plan *) newnode); /* * copy remainder of node @@ -926,14 +926,14 @@ _copyLockRows(LockRows *from) * _copyLimit */ static Limit * -_copyLimit(Limit *from) +_copyLimit(const Limit *from) { Limit *newnode = makeNode(Limit); /* * copy node superclass fields */ - CopyPlanFields((Plan *) from, (Plan *) newnode); + CopyPlanFields((const Plan *) from, (Plan *) newnode); /* * copy remainder of node @@ -948,7 +948,7 @@ _copyLimit(Limit *from) * _copyNestLoopParam */ static NestLoopParam * -_copyNestLoopParam(NestLoopParam *from) +_copyNestLoopParam(const NestLoopParam *from) { NestLoopParam *newnode = makeNode(NestLoopParam); @@ -962,7 +962,7 @@ _copyNestLoopParam(NestLoopParam *from) * _copyPlanRowMark */ static PlanRowMark * -_copyPlanRowMark(PlanRowMark *from) +_copyPlanRowMark(const PlanRowMark *from) { PlanRowMark *newnode = makeNode(PlanRowMark); @@ -980,7 +980,7 @@ _copyPlanRowMark(PlanRowMark *from) * _copyPlanInvalItem */ static PlanInvalItem * -_copyPlanInvalItem(PlanInvalItem *from) +_copyPlanInvalItem(const PlanInvalItem *from) { PlanInvalItem *newnode = makeNode(PlanInvalItem); @@ -999,7 +999,7 @@ _copyPlanInvalItem(PlanInvalItem *from) * _copyAlias */ static Alias * -_copyAlias(Alias *from) +_copyAlias(const Alias *from) { Alias *newnode = makeNode(Alias); @@ -1013,7 +1013,7 @@ _copyAlias(Alias *from) * _copyRangeVar */ static RangeVar * -_copyRangeVar(RangeVar *from) +_copyRangeVar(const RangeVar *from) { RangeVar *newnode = makeNode(RangeVar); @@ -1032,7 +1032,7 @@ _copyRangeVar(RangeVar *from) * _copyIntoClause */ static IntoClause * -_copyIntoClause(IntoClause *from) +_copyIntoClause(const IntoClause *from) { IntoClause *newnode = makeNode(IntoClause); @@ -1057,7 +1057,7 @@ _copyIntoClause(IntoClause *from) * _copyVar */ static Var * -_copyVar(Var *from) +_copyVar(const Var *from) { Var *newnode = makeNode(Var); @@ -1078,7 +1078,7 @@ _copyVar(Var *from) * _copyConst */ static Const * -_copyConst(Const *from) +_copyConst(const Const *from) { Const *newnode = makeNode(Const); @@ -1116,7 +1116,7 @@ _copyConst(Const *from) * _copyParam */ static Param * -_copyParam(Param *from) +_copyParam(const Param *from) { Param *newnode = makeNode(Param); @@ -1134,7 +1134,7 @@ _copyParam(Param *from) * _copyAggref */ static Aggref * -_copyAggref(Aggref *from) +_copyAggref(const Aggref *from) { Aggref *newnode = makeNode(Aggref); @@ -1156,7 +1156,7 @@ _copyAggref(Aggref *from) * _copyWindowFunc */ static WindowFunc * -_copyWindowFunc(WindowFunc *from) +_copyWindowFunc(const WindowFunc *from) { WindowFunc *newnode = makeNode(WindowFunc); @@ -1177,7 +1177,7 @@ _copyWindowFunc(WindowFunc *from) * _copyArrayRef */ static ArrayRef * -_copyArrayRef(ArrayRef *from) +_copyArrayRef(const ArrayRef *from) { ArrayRef *newnode = makeNode(ArrayRef); @@ -1197,7 +1197,7 @@ _copyArrayRef(ArrayRef *from) * _copyFuncExpr */ static FuncExpr * -_copyFuncExpr(FuncExpr *from) +_copyFuncExpr(const FuncExpr *from) { FuncExpr *newnode = makeNode(FuncExpr); @@ -1217,7 +1217,7 @@ _copyFuncExpr(FuncExpr *from) * _copyNamedArgExpr * */ static NamedArgExpr * -_copyNamedArgExpr(NamedArgExpr *from) +_copyNamedArgExpr(const NamedArgExpr *from) { NamedArgExpr *newnode = makeNode(NamedArgExpr); @@ -1233,7 +1233,7 @@ _copyNamedArgExpr(NamedArgExpr *from) * _copyOpExpr */ static OpExpr * -_copyOpExpr(OpExpr *from) +_copyOpExpr(const OpExpr *from) { OpExpr *newnode = makeNode(OpExpr); @@ -1253,7 +1253,7 @@ _copyOpExpr(OpExpr *from) * _copyDistinctExpr (same as OpExpr) */ static DistinctExpr * -_copyDistinctExpr(DistinctExpr *from) +_copyDistinctExpr(const DistinctExpr *from) { DistinctExpr *newnode = makeNode(DistinctExpr); @@ -1273,7 +1273,7 @@ _copyDistinctExpr(DistinctExpr *from) * _copyNullIfExpr (same as OpExpr) */ static NullIfExpr * -_copyNullIfExpr(NullIfExpr *from) +_copyNullIfExpr(const NullIfExpr *from) { NullIfExpr *newnode = makeNode(NullIfExpr); @@ -1293,7 +1293,7 @@ _copyNullIfExpr(NullIfExpr *from) * _copyScalarArrayOpExpr */ static ScalarArrayOpExpr * -_copyScalarArrayOpExpr(ScalarArrayOpExpr *from) +_copyScalarArrayOpExpr(const ScalarArrayOpExpr *from) { ScalarArrayOpExpr *newnode = makeNode(ScalarArrayOpExpr); @@ -1311,7 +1311,7 @@ _copyScalarArrayOpExpr(ScalarArrayOpExpr *from) * _copyBoolExpr */ static BoolExpr * -_copyBoolExpr(BoolExpr *from) +_copyBoolExpr(const BoolExpr *from) { BoolExpr *newnode = makeNode(BoolExpr); @@ -1326,7 +1326,7 @@ _copyBoolExpr(BoolExpr *from) * _copySubLink */ static SubLink * -_copySubLink(SubLink *from) +_copySubLink(const SubLink *from) { SubLink *newnode = makeNode(SubLink); @@ -1343,7 +1343,7 @@ _copySubLink(SubLink *from) * _copySubPlan */ static SubPlan * -_copySubPlan(SubPlan *from) +_copySubPlan(const SubPlan *from) { SubPlan *newnode = makeNode(SubPlan); @@ -1370,7 +1370,7 @@ _copySubPlan(SubPlan *from) * _copyAlternativeSubPlan */ static AlternativeSubPlan * -_copyAlternativeSubPlan(AlternativeSubPlan *from) +_copyAlternativeSubPlan(const AlternativeSubPlan *from) { AlternativeSubPlan *newnode = makeNode(AlternativeSubPlan); @@ -1383,7 +1383,7 @@ _copyAlternativeSubPlan(AlternativeSubPlan *from) * _copyFieldSelect */ static FieldSelect * -_copyFieldSelect(FieldSelect *from) +_copyFieldSelect(const FieldSelect *from) { FieldSelect *newnode = makeNode(FieldSelect); @@ -1400,7 +1400,7 @@ _copyFieldSelect(FieldSelect *from) * _copyFieldStore */ static FieldStore * -_copyFieldStore(FieldStore *from) +_copyFieldStore(const FieldStore *from) { FieldStore *newnode = makeNode(FieldStore); @@ -1416,7 +1416,7 @@ _copyFieldStore(FieldStore *from) * _copyRelabelType */ static RelabelType * -_copyRelabelType(RelabelType *from) +_copyRelabelType(const RelabelType *from) { RelabelType *newnode = makeNode(RelabelType); @@ -1434,7 +1434,7 @@ _copyRelabelType(RelabelType *from) * _copyCoerceViaIO */ static CoerceViaIO * -_copyCoerceViaIO(CoerceViaIO *from) +_copyCoerceViaIO(const CoerceViaIO *from) { CoerceViaIO *newnode = makeNode(CoerceViaIO); @@ -1451,7 +1451,7 @@ _copyCoerceViaIO(CoerceViaIO *from) * _copyArrayCoerceExpr */ static ArrayCoerceExpr * -_copyArrayCoerceExpr(ArrayCoerceExpr *from) +_copyArrayCoerceExpr(const ArrayCoerceExpr *from) { ArrayCoerceExpr *newnode = makeNode(ArrayCoerceExpr); @@ -1471,7 +1471,7 @@ _copyArrayCoerceExpr(ArrayCoerceExpr *from) * _copyConvertRowtypeExpr */ static ConvertRowtypeExpr * -_copyConvertRowtypeExpr(ConvertRowtypeExpr *from) +_copyConvertRowtypeExpr(const ConvertRowtypeExpr *from) { ConvertRowtypeExpr *newnode = makeNode(ConvertRowtypeExpr); @@ -1487,7 +1487,7 @@ _copyConvertRowtypeExpr(ConvertRowtypeExpr *from) * _copyCollateExpr */ static CollateExpr * -_copyCollateExpr(CollateExpr *from) +_copyCollateExpr(const CollateExpr *from) { CollateExpr *newnode = makeNode(CollateExpr); @@ -1502,7 +1502,7 @@ _copyCollateExpr(CollateExpr *from) * _copyCaseExpr */ static CaseExpr * -_copyCaseExpr(CaseExpr *from) +_copyCaseExpr(const CaseExpr *from) { CaseExpr *newnode = makeNode(CaseExpr); @@ -1520,7 +1520,7 @@ _copyCaseExpr(CaseExpr *from) * _copyCaseWhen */ static CaseWhen * -_copyCaseWhen(CaseWhen *from) +_copyCaseWhen(const CaseWhen *from) { CaseWhen *newnode = makeNode(CaseWhen); @@ -1535,7 +1535,7 @@ _copyCaseWhen(CaseWhen *from) * _copyCaseTestExpr */ static CaseTestExpr * -_copyCaseTestExpr(CaseTestExpr *from) +_copyCaseTestExpr(const CaseTestExpr *from) { CaseTestExpr *newnode = makeNode(CaseTestExpr); @@ -1550,7 +1550,7 @@ _copyCaseTestExpr(CaseTestExpr *from) * _copyArrayExpr */ static ArrayExpr * -_copyArrayExpr(ArrayExpr *from) +_copyArrayExpr(const ArrayExpr *from) { ArrayExpr *newnode = makeNode(ArrayExpr); @@ -1568,7 +1568,7 @@ _copyArrayExpr(ArrayExpr *from) * _copyRowExpr */ static RowExpr * -_copyRowExpr(RowExpr *from) +_copyRowExpr(const RowExpr *from) { RowExpr *newnode = makeNode(RowExpr); @@ -1585,7 +1585,7 @@ _copyRowExpr(RowExpr *from) * _copyRowCompareExpr */ static RowCompareExpr * -_copyRowCompareExpr(RowCompareExpr *from) +_copyRowCompareExpr(const RowCompareExpr *from) { RowCompareExpr *newnode = makeNode(RowCompareExpr); @@ -1603,7 +1603,7 @@ _copyRowCompareExpr(RowCompareExpr *from) * _copyCoalesceExpr */ static CoalesceExpr * -_copyCoalesceExpr(CoalesceExpr *from) +_copyCoalesceExpr(const CoalesceExpr *from) { CoalesceExpr *newnode = makeNode(CoalesceExpr); @@ -1619,7 +1619,7 @@ _copyCoalesceExpr(CoalesceExpr *from) * _copyMinMaxExpr */ static MinMaxExpr * -_copyMinMaxExpr(MinMaxExpr *from) +_copyMinMaxExpr(const MinMaxExpr *from) { MinMaxExpr *newnode = makeNode(MinMaxExpr); @@ -1637,7 +1637,7 @@ _copyMinMaxExpr(MinMaxExpr *from) * _copyXmlExpr */ static XmlExpr * -_copyXmlExpr(XmlExpr *from) +_copyXmlExpr(const XmlExpr *from) { XmlExpr *newnode = makeNode(XmlExpr); @@ -1658,7 +1658,7 @@ _copyXmlExpr(XmlExpr *from) * _copyNullTest */ static NullTest * -_copyNullTest(NullTest *from) +_copyNullTest(const NullTest *from) { NullTest *newnode = makeNode(NullTest); @@ -1673,7 +1673,7 @@ _copyNullTest(NullTest *from) * _copyBooleanTest */ static BooleanTest * -_copyBooleanTest(BooleanTest *from) +_copyBooleanTest(const BooleanTest *from) { BooleanTest *newnode = makeNode(BooleanTest); @@ -1687,7 +1687,7 @@ _copyBooleanTest(BooleanTest *from) * _copyCoerceToDomain */ static CoerceToDomain * -_copyCoerceToDomain(CoerceToDomain *from) +_copyCoerceToDomain(const CoerceToDomain *from) { CoerceToDomain *newnode = makeNode(CoerceToDomain); @@ -1705,7 +1705,7 @@ _copyCoerceToDomain(CoerceToDomain *from) * _copyCoerceToDomainValue */ static CoerceToDomainValue * -_copyCoerceToDomainValue(CoerceToDomainValue *from) +_copyCoerceToDomainValue(const CoerceToDomainValue *from) { CoerceToDomainValue *newnode = makeNode(CoerceToDomainValue); @@ -1721,7 +1721,7 @@ _copyCoerceToDomainValue(CoerceToDomainValue *from) * _copySetToDefault */ static SetToDefault * -_copySetToDefault(SetToDefault *from) +_copySetToDefault(const SetToDefault *from) { SetToDefault *newnode = makeNode(SetToDefault); @@ -1737,7 +1737,7 @@ _copySetToDefault(SetToDefault *from) * _copyCurrentOfExpr */ static CurrentOfExpr * -_copyCurrentOfExpr(CurrentOfExpr *from) +_copyCurrentOfExpr(const CurrentOfExpr *from) { CurrentOfExpr *newnode = makeNode(CurrentOfExpr); @@ -1752,7 +1752,7 @@ _copyCurrentOfExpr(CurrentOfExpr *from) * _copyTargetEntry */ static TargetEntry * -_copyTargetEntry(TargetEntry *from) +_copyTargetEntry(const TargetEntry *from) { TargetEntry *newnode = makeNode(TargetEntry); @@ -1771,7 +1771,7 @@ _copyTargetEntry(TargetEntry *from) * _copyRangeTblRef */ static RangeTblRef * -_copyRangeTblRef(RangeTblRef *from) +_copyRangeTblRef(const RangeTblRef *from) { RangeTblRef *newnode = makeNode(RangeTblRef); @@ -1784,7 +1784,7 @@ _copyRangeTblRef(RangeTblRef *from) * _copyJoinExpr */ static JoinExpr * -_copyJoinExpr(JoinExpr *from) +_copyJoinExpr(const JoinExpr *from) { JoinExpr *newnode = makeNode(JoinExpr); @@ -1804,7 +1804,7 @@ _copyJoinExpr(JoinExpr *from) * _copyFromExpr */ static FromExpr * -_copyFromExpr(FromExpr *from) +_copyFromExpr(const FromExpr *from) { FromExpr *newnode = makeNode(FromExpr); @@ -1826,7 +1826,7 @@ _copyFromExpr(FromExpr *from) * _copyPathKey */ static PathKey * -_copyPathKey(PathKey *from) +_copyPathKey(const PathKey *from) { PathKey *newnode = makeNode(PathKey); @@ -1843,7 +1843,7 @@ _copyPathKey(PathKey *from) * _copyRestrictInfo */ static RestrictInfo * -_copyRestrictInfo(RestrictInfo *from) +_copyRestrictInfo(const RestrictInfo *from) { RestrictInfo *newnode = makeNode(RestrictInfo); @@ -1883,7 +1883,7 @@ _copyRestrictInfo(RestrictInfo *from) * _copyPlaceHolderVar */ static PlaceHolderVar * -_copyPlaceHolderVar(PlaceHolderVar *from) +_copyPlaceHolderVar(const PlaceHolderVar *from) { PlaceHolderVar *newnode = makeNode(PlaceHolderVar); @@ -1899,7 +1899,7 @@ _copyPlaceHolderVar(PlaceHolderVar *from) * _copySpecialJoinInfo */ static SpecialJoinInfo * -_copySpecialJoinInfo(SpecialJoinInfo *from) +_copySpecialJoinInfo(const SpecialJoinInfo *from) { SpecialJoinInfo *newnode = makeNode(SpecialJoinInfo); @@ -1919,7 +1919,7 @@ _copySpecialJoinInfo(SpecialJoinInfo *from) * _copyAppendRelInfo */ static AppendRelInfo * -_copyAppendRelInfo(AppendRelInfo *from) +_copyAppendRelInfo(const AppendRelInfo *from) { AppendRelInfo *newnode = makeNode(AppendRelInfo); @@ -1937,7 +1937,7 @@ _copyAppendRelInfo(AppendRelInfo *from) * _copyPlaceHolderInfo */ static PlaceHolderInfo * -_copyPlaceHolderInfo(PlaceHolderInfo *from) +_copyPlaceHolderInfo(const PlaceHolderInfo *from) { PlaceHolderInfo *newnode = makeNode(PlaceHolderInfo); @@ -1957,7 +1957,7 @@ _copyPlaceHolderInfo(PlaceHolderInfo *from) */ static RangeTblEntry * -_copyRangeTblEntry(RangeTblEntry *from) +_copyRangeTblEntry(const RangeTblEntry *from) { RangeTblEntry *newnode = makeNode(RangeTblEntry); @@ -1992,7 +1992,7 @@ _copyRangeTblEntry(RangeTblEntry *from) } static SortGroupClause * -_copySortGroupClause(SortGroupClause *from) +_copySortGroupClause(const SortGroupClause *from) { SortGroupClause *newnode = makeNode(SortGroupClause); @@ -2006,7 +2006,7 @@ _copySortGroupClause(SortGroupClause *from) } static WindowClause * -_copyWindowClause(WindowClause *from) +_copyWindowClause(const WindowClause *from) { WindowClause *newnode = makeNode(WindowClause); @@ -2024,7 +2024,7 @@ _copyWindowClause(WindowClause *from) } static RowMarkClause * -_copyRowMarkClause(RowMarkClause *from) +_copyRowMarkClause(const RowMarkClause *from) { RowMarkClause *newnode = makeNode(RowMarkClause); @@ -2037,7 +2037,7 @@ _copyRowMarkClause(RowMarkClause *from) } static WithClause * -_copyWithClause(WithClause *from) +_copyWithClause(const WithClause *from) { WithClause *newnode = makeNode(WithClause); @@ -2049,7 +2049,7 @@ _copyWithClause(WithClause *from) } static CommonTableExpr * -_copyCommonTableExpr(CommonTableExpr *from) +_copyCommonTableExpr(const CommonTableExpr *from) { CommonTableExpr *newnode = makeNode(CommonTableExpr); @@ -2068,7 +2068,7 @@ _copyCommonTableExpr(CommonTableExpr *from) } static A_Expr * -_copyAExpr(A_Expr *from) +_copyAExpr(const A_Expr *from) { A_Expr *newnode = makeNode(A_Expr); @@ -2082,7 +2082,7 @@ _copyAExpr(A_Expr *from) } static ColumnRef * -_copyColumnRef(ColumnRef *from) +_copyColumnRef(const ColumnRef *from) { ColumnRef *newnode = makeNode(ColumnRef); @@ -2093,7 +2093,7 @@ _copyColumnRef(ColumnRef *from) } static ParamRef * -_copyParamRef(ParamRef *from) +_copyParamRef(const ParamRef *from) { ParamRef *newnode = makeNode(ParamRef); @@ -2104,7 +2104,7 @@ _copyParamRef(ParamRef *from) } static A_Const * -_copyAConst(A_Const *from) +_copyAConst(const A_Const *from) { A_Const *newnode = makeNode(A_Const); @@ -2135,7 +2135,7 @@ _copyAConst(A_Const *from) } static FuncCall * -_copyFuncCall(FuncCall *from) +_copyFuncCall(const FuncCall *from) { FuncCall *newnode = makeNode(FuncCall); @@ -2152,7 +2152,7 @@ _copyFuncCall(FuncCall *from) } static A_Star * -_copyAStar(A_Star *from) +_copyAStar(const A_Star *from) { A_Star *newnode = makeNode(A_Star); @@ -2160,7 +2160,7 @@ _copyAStar(A_Star *from) } static A_Indices * -_copyAIndices(A_Indices *from) +_copyAIndices(const A_Indices *from) { A_Indices *newnode = makeNode(A_Indices); @@ -2171,7 +2171,7 @@ _copyAIndices(A_Indices *from) } static A_Indirection * -_copyA_Indirection(A_Indirection *from) +_copyA_Indirection(const A_Indirection *from) { A_Indirection *newnode = makeNode(A_Indirection); @@ -2182,7 +2182,7 @@ _copyA_Indirection(A_Indirection *from) } static A_ArrayExpr * -_copyA_ArrayExpr(A_ArrayExpr *from) +_copyA_ArrayExpr(const A_ArrayExpr *from) { A_ArrayExpr *newnode = makeNode(A_ArrayExpr); @@ -2193,7 +2193,7 @@ _copyA_ArrayExpr(A_ArrayExpr *from) } static ResTarget * -_copyResTarget(ResTarget *from) +_copyResTarget(const ResTarget *from) { ResTarget *newnode = makeNode(ResTarget); @@ -2206,7 +2206,7 @@ _copyResTarget(ResTarget *from) } static TypeName * -_copyTypeName(TypeName *from) +_copyTypeName(const TypeName *from) { TypeName *newnode = makeNode(TypeName); @@ -2223,7 +2223,7 @@ _copyTypeName(TypeName *from) } static SortBy * -_copySortBy(SortBy *from) +_copySortBy(const SortBy *from) { SortBy *newnode = makeNode(SortBy); @@ -2237,7 +2237,7 @@ _copySortBy(SortBy *from) } static WindowDef * -_copyWindowDef(WindowDef *from) +_copyWindowDef(const WindowDef *from) { WindowDef *newnode = makeNode(WindowDef); @@ -2254,7 +2254,7 @@ _copyWindowDef(WindowDef *from) } static RangeSubselect * -_copyRangeSubselect(RangeSubselect *from) +_copyRangeSubselect(const RangeSubselect *from) { RangeSubselect *newnode = makeNode(RangeSubselect); @@ -2265,7 +2265,7 @@ _copyRangeSubselect(RangeSubselect *from) } static RangeFunction * -_copyRangeFunction(RangeFunction *from) +_copyRangeFunction(const RangeFunction *from) { RangeFunction *newnode = makeNode(RangeFunction); @@ -2277,7 +2277,7 @@ _copyRangeFunction(RangeFunction *from) } static TypeCast * -_copyTypeCast(TypeCast *from) +_copyTypeCast(const TypeCast *from) { TypeCast *newnode = makeNode(TypeCast); @@ -2289,7 +2289,7 @@ _copyTypeCast(TypeCast *from) } static CollateClause * -_copyCollateClause(CollateClause *from) +_copyCollateClause(const CollateClause *from) { CollateClause *newnode = makeNode(CollateClause); @@ -2301,7 +2301,7 @@ _copyCollateClause(CollateClause *from) } static IndexElem * -_copyIndexElem(IndexElem *from) +_copyIndexElem(const IndexElem *from) { IndexElem *newnode = makeNode(IndexElem); @@ -2317,7 +2317,7 @@ _copyIndexElem(IndexElem *from) } static ColumnDef * -_copyColumnDef(ColumnDef *from) +_copyColumnDef(const ColumnDef *from) { ColumnDef *newnode = makeNode(ColumnDef); @@ -2339,7 +2339,7 @@ _copyColumnDef(ColumnDef *from) } static Constraint * -_copyConstraint(Constraint *from) +_copyConstraint(const Constraint *from) { Constraint *newnode = makeNode(Constraint); @@ -2370,7 +2370,7 @@ _copyConstraint(Constraint *from) } static DefElem * -_copyDefElem(DefElem *from) +_copyDefElem(const DefElem *from) { DefElem *newnode = makeNode(DefElem); @@ -2383,7 +2383,7 @@ _copyDefElem(DefElem *from) } static LockingClause * -_copyLockingClause(LockingClause *from) +_copyLockingClause(const LockingClause *from) { LockingClause *newnode = makeNode(LockingClause); @@ -2395,7 +2395,7 @@ _copyLockingClause(LockingClause *from) } static XmlSerialize * -_copyXmlSerialize(XmlSerialize *from) +_copyXmlSerialize(const XmlSerialize *from) { XmlSerialize *newnode = makeNode(XmlSerialize); @@ -2408,7 +2408,7 @@ _copyXmlSerialize(XmlSerialize *from) } static Query * -_copyQuery(Query *from) +_copyQuery(const Query *from) { Query *newnode = makeNode(Query); @@ -2445,7 +2445,7 @@ _copyQuery(Query *from) } static InsertStmt * -_copyInsertStmt(InsertStmt *from) +_copyInsertStmt(const InsertStmt *from) { InsertStmt *newnode = makeNode(InsertStmt); @@ -2459,7 +2459,7 @@ _copyInsertStmt(InsertStmt *from) } static DeleteStmt * -_copyDeleteStmt(DeleteStmt *from) +_copyDeleteStmt(const DeleteStmt *from) { DeleteStmt *newnode = makeNode(DeleteStmt); @@ -2473,7 +2473,7 @@ _copyDeleteStmt(DeleteStmt *from) } static UpdateStmt * -_copyUpdateStmt(UpdateStmt *from) +_copyUpdateStmt(const UpdateStmt *from) { UpdateStmt *newnode = makeNode(UpdateStmt); @@ -2488,7 +2488,7 @@ _copyUpdateStmt(UpdateStmt *from) } static SelectStmt * -_copySelectStmt(SelectStmt *from) +_copySelectStmt(const SelectStmt *from) { SelectStmt *newnode = makeNode(SelectStmt); @@ -2515,7 +2515,7 @@ _copySelectStmt(SelectStmt *from) } static SetOperationStmt * -_copySetOperationStmt(SetOperationStmt *from) +_copySetOperationStmt(const SetOperationStmt *from) { SetOperationStmt *newnode = makeNode(SetOperationStmt); @@ -2532,7 +2532,7 @@ _copySetOperationStmt(SetOperationStmt *from) } static AlterTableStmt * -_copyAlterTableStmt(AlterTableStmt *from) +_copyAlterTableStmt(const AlterTableStmt *from) { AlterTableStmt *newnode = makeNode(AlterTableStmt); @@ -2544,7 +2544,7 @@ _copyAlterTableStmt(AlterTableStmt *from) } static AlterTableCmd * -_copyAlterTableCmd(AlterTableCmd *from) +_copyAlterTableCmd(const AlterTableCmd *from) { AlterTableCmd *newnode = makeNode(AlterTableCmd); @@ -2558,7 +2558,7 @@ _copyAlterTableCmd(AlterTableCmd *from) } static AlterDomainStmt * -_copyAlterDomainStmt(AlterDomainStmt *from) +_copyAlterDomainStmt(const AlterDomainStmt *from) { AlterDomainStmt *newnode = makeNode(AlterDomainStmt); @@ -2572,7 +2572,7 @@ _copyAlterDomainStmt(AlterDomainStmt *from) } static GrantStmt * -_copyGrantStmt(GrantStmt *from) +_copyGrantStmt(const GrantStmt *from) { GrantStmt *newnode = makeNode(GrantStmt); @@ -2589,7 +2589,7 @@ _copyGrantStmt(GrantStmt *from) } static PrivGrantee * -_copyPrivGrantee(PrivGrantee *from) +_copyPrivGrantee(const PrivGrantee *from) { PrivGrantee *newnode = makeNode(PrivGrantee); @@ -2599,7 +2599,7 @@ _copyPrivGrantee(PrivGrantee *from) } static FuncWithArgs * -_copyFuncWithArgs(FuncWithArgs *from) +_copyFuncWithArgs(const FuncWithArgs *from) { FuncWithArgs *newnode = makeNode(FuncWithArgs); @@ -2610,7 +2610,7 @@ _copyFuncWithArgs(FuncWithArgs *from) } static AccessPriv * -_copyAccessPriv(AccessPriv *from) +_copyAccessPriv(const AccessPriv *from) { AccessPriv *newnode = makeNode(AccessPriv); @@ -2621,7 +2621,7 @@ _copyAccessPriv(AccessPriv *from) } static GrantRoleStmt * -_copyGrantRoleStmt(GrantRoleStmt *from) +_copyGrantRoleStmt(const GrantRoleStmt *from) { GrantRoleStmt *newnode = makeNode(GrantRoleStmt); @@ -2636,7 +2636,7 @@ _copyGrantRoleStmt(GrantRoleStmt *from) } static AlterDefaultPrivilegesStmt * -_copyAlterDefaultPrivilegesStmt(AlterDefaultPrivilegesStmt *from) +_copyAlterDefaultPrivilegesStmt(const AlterDefaultPrivilegesStmt *from) { AlterDefaultPrivilegesStmt *newnode = makeNode(AlterDefaultPrivilegesStmt); @@ -2647,7 +2647,7 @@ _copyAlterDefaultPrivilegesStmt(AlterDefaultPrivilegesStmt *from) } static DeclareCursorStmt * -_copyDeclareCursorStmt(DeclareCursorStmt *from) +_copyDeclareCursorStmt(const DeclareCursorStmt *from) { DeclareCursorStmt *newnode = makeNode(DeclareCursorStmt); @@ -2659,7 +2659,7 @@ _copyDeclareCursorStmt(DeclareCursorStmt *from) } static ClosePortalStmt * -_copyClosePortalStmt(ClosePortalStmt *from) +_copyClosePortalStmt(const ClosePortalStmt *from) { ClosePortalStmt *newnode = makeNode(ClosePortalStmt); @@ -2669,7 +2669,7 @@ _copyClosePortalStmt(ClosePortalStmt *from) } static ClusterStmt * -_copyClusterStmt(ClusterStmt *from) +_copyClusterStmt(const ClusterStmt *from) { ClusterStmt *newnode = makeNode(ClusterStmt); @@ -2681,7 +2681,7 @@ _copyClusterStmt(ClusterStmt *from) } static CopyStmt * -_copyCopyStmt(CopyStmt *from) +_copyCopyStmt(const CopyStmt *from) { CopyStmt *newnode = makeNode(CopyStmt); @@ -2702,7 +2702,7 @@ _copyCopyStmt(CopyStmt *from) * copy functions for classes which inherit from CreateStmt. */ static void -CopyCreateStmtFields(CreateStmt *from, CreateStmt *newnode) +CopyCreateStmtFields(const CreateStmt *from, CreateStmt *newnode) { COPY_NODE_FIELD(relation); COPY_NODE_FIELD(tableElts); @@ -2716,7 +2716,7 @@ CopyCreateStmtFields(CreateStmt *from, CreateStmt *newnode) } static CreateStmt * -_copyCreateStmt(CreateStmt *from) +_copyCreateStmt(const CreateStmt *from) { CreateStmt *newnode = makeNode(CreateStmt); @@ -2726,7 +2726,7 @@ _copyCreateStmt(CreateStmt *from) } static InhRelation * -_copyInhRelation(InhRelation *from) +_copyInhRelation(const InhRelation *from) { InhRelation *newnode = makeNode(InhRelation); @@ -2737,7 +2737,7 @@ _copyInhRelation(InhRelation *from) } static DefineStmt * -_copyDefineStmt(DefineStmt *from) +_copyDefineStmt(const DefineStmt *from) { DefineStmt *newnode = makeNode(DefineStmt); @@ -2751,7 +2751,7 @@ _copyDefineStmt(DefineStmt *from) } static DropStmt * -_copyDropStmt(DropStmt *from) +_copyDropStmt(const DropStmt *from) { DropStmt *newnode = makeNode(DropStmt); @@ -2765,7 +2765,7 @@ _copyDropStmt(DropStmt *from) } static TruncateStmt * -_copyTruncateStmt(TruncateStmt *from) +_copyTruncateStmt(const TruncateStmt *from) { TruncateStmt *newnode = makeNode(TruncateStmt); @@ -2777,7 +2777,7 @@ _copyTruncateStmt(TruncateStmt *from) } static CommentStmt * -_copyCommentStmt(CommentStmt *from) +_copyCommentStmt(const CommentStmt *from) { CommentStmt *newnode = makeNode(CommentStmt); @@ -2790,7 +2790,7 @@ _copyCommentStmt(CommentStmt *from) } static SecLabelStmt * -_copySecLabelStmt(SecLabelStmt *from) +_copySecLabelStmt(const SecLabelStmt *from) { SecLabelStmt *newnode = makeNode(SecLabelStmt); @@ -2804,7 +2804,7 @@ _copySecLabelStmt(SecLabelStmt *from) } static FetchStmt * -_copyFetchStmt(FetchStmt *from) +_copyFetchStmt(const FetchStmt *from) { FetchStmt *newnode = makeNode(FetchStmt); @@ -2817,7 +2817,7 @@ _copyFetchStmt(FetchStmt *from) } static IndexStmt * -_copyIndexStmt(IndexStmt *from) +_copyIndexStmt(const IndexStmt *from) { IndexStmt *newnode = makeNode(IndexStmt); @@ -2842,7 +2842,7 @@ _copyIndexStmt(IndexStmt *from) } static CreateFunctionStmt * -_copyCreateFunctionStmt(CreateFunctionStmt *from) +_copyCreateFunctionStmt(const CreateFunctionStmt *from) { CreateFunctionStmt *newnode = makeNode(CreateFunctionStmt); @@ -2857,7 +2857,7 @@ _copyCreateFunctionStmt(CreateFunctionStmt *from) } static FunctionParameter * -_copyFunctionParameter(FunctionParameter *from) +_copyFunctionParameter(const FunctionParameter *from) { FunctionParameter *newnode = makeNode(FunctionParameter); @@ -2870,7 +2870,7 @@ _copyFunctionParameter(FunctionParameter *from) } static AlterFunctionStmt * -_copyAlterFunctionStmt(AlterFunctionStmt *from) +_copyAlterFunctionStmt(const AlterFunctionStmt *from) { AlterFunctionStmt *newnode = makeNode(AlterFunctionStmt); @@ -2881,7 +2881,7 @@ _copyAlterFunctionStmt(AlterFunctionStmt *from) } static DoStmt * -_copyDoStmt(DoStmt *from) +_copyDoStmt(const DoStmt *from) { DoStmt *newnode = makeNode(DoStmt); @@ -2891,7 +2891,7 @@ _copyDoStmt(DoStmt *from) } static RenameStmt * -_copyRenameStmt(RenameStmt *from) +_copyRenameStmt(const RenameStmt *from) { RenameStmt *newnode = makeNode(RenameStmt); @@ -2907,7 +2907,7 @@ _copyRenameStmt(RenameStmt *from) } static AlterObjectSchemaStmt * -_copyAlterObjectSchemaStmt(AlterObjectSchemaStmt *from) +_copyAlterObjectSchemaStmt(const AlterObjectSchemaStmt *from) { AlterObjectSchemaStmt *newnode = makeNode(AlterObjectSchemaStmt); @@ -2922,7 +2922,7 @@ _copyAlterObjectSchemaStmt(AlterObjectSchemaStmt *from) } static AlterOwnerStmt * -_copyAlterOwnerStmt(AlterOwnerStmt *from) +_copyAlterOwnerStmt(const AlterOwnerStmt *from) { AlterOwnerStmt *newnode = makeNode(AlterOwnerStmt); @@ -2937,7 +2937,7 @@ _copyAlterOwnerStmt(AlterOwnerStmt *from) } static RuleStmt * -_copyRuleStmt(RuleStmt *from) +_copyRuleStmt(const RuleStmt *from) { RuleStmt *newnode = makeNode(RuleStmt); @@ -2953,7 +2953,7 @@ _copyRuleStmt(RuleStmt *from) } static NotifyStmt * -_copyNotifyStmt(NotifyStmt *from) +_copyNotifyStmt(const NotifyStmt *from) { NotifyStmt *newnode = makeNode(NotifyStmt); @@ -2964,7 +2964,7 @@ _copyNotifyStmt(NotifyStmt *from) } static ListenStmt * -_copyListenStmt(ListenStmt *from) +_copyListenStmt(const ListenStmt *from) { ListenStmt *newnode = makeNode(ListenStmt); @@ -2974,7 +2974,7 @@ _copyListenStmt(ListenStmt *from) } static UnlistenStmt * -_copyUnlistenStmt(UnlistenStmt *from) +_copyUnlistenStmt(const UnlistenStmt *from) { UnlistenStmt *newnode = makeNode(UnlistenStmt); @@ -2984,7 +2984,7 @@ _copyUnlistenStmt(UnlistenStmt *from) } static TransactionStmt * -_copyTransactionStmt(TransactionStmt *from) +_copyTransactionStmt(const TransactionStmt *from) { TransactionStmt *newnode = makeNode(TransactionStmt); @@ -2996,7 +2996,7 @@ _copyTransactionStmt(TransactionStmt *from) } static CompositeTypeStmt * -_copyCompositeTypeStmt(CompositeTypeStmt *from) +_copyCompositeTypeStmt(const CompositeTypeStmt *from) { CompositeTypeStmt *newnode = makeNode(CompositeTypeStmt); @@ -3007,7 +3007,7 @@ _copyCompositeTypeStmt(CompositeTypeStmt *from) } static CreateEnumStmt * -_copyCreateEnumStmt(CreateEnumStmt *from) +_copyCreateEnumStmt(const CreateEnumStmt *from) { CreateEnumStmt *newnode = makeNode(CreateEnumStmt); @@ -3018,7 +3018,7 @@ _copyCreateEnumStmt(CreateEnumStmt *from) } static CreateRangeStmt * -_copyCreateRangeStmt(CreateRangeStmt *from) +_copyCreateRangeStmt(const CreateRangeStmt *from) { CreateRangeStmt *newnode = makeNode(CreateRangeStmt); @@ -3029,7 +3029,7 @@ _copyCreateRangeStmt(CreateRangeStmt *from) } static AlterEnumStmt * -_copyAlterEnumStmt(AlterEnumStmt *from) +_copyAlterEnumStmt(const AlterEnumStmt *from) { AlterEnumStmt *newnode = makeNode(AlterEnumStmt); @@ -3042,7 +3042,7 @@ _copyAlterEnumStmt(AlterEnumStmt *from) } static ViewStmt * -_copyViewStmt(ViewStmt *from) +_copyViewStmt(const ViewStmt *from) { ViewStmt *newnode = makeNode(ViewStmt); @@ -3055,7 +3055,7 @@ _copyViewStmt(ViewStmt *from) } static LoadStmt * -_copyLoadStmt(LoadStmt *from) +_copyLoadStmt(const LoadStmt *from) { LoadStmt *newnode = makeNode(LoadStmt); @@ -3065,7 +3065,7 @@ _copyLoadStmt(LoadStmt *from) } static CreateDomainStmt * -_copyCreateDomainStmt(CreateDomainStmt *from) +_copyCreateDomainStmt(const CreateDomainStmt *from) { CreateDomainStmt *newnode = makeNode(CreateDomainStmt); @@ -3078,7 +3078,7 @@ _copyCreateDomainStmt(CreateDomainStmt *from) } static CreateOpClassStmt * -_copyCreateOpClassStmt(CreateOpClassStmt *from) +_copyCreateOpClassStmt(const CreateOpClassStmt *from) { CreateOpClassStmt *newnode = makeNode(CreateOpClassStmt); @@ -3093,7 +3093,7 @@ _copyCreateOpClassStmt(CreateOpClassStmt *from) } static CreateOpClassItem * -_copyCreateOpClassItem(CreateOpClassItem *from) +_copyCreateOpClassItem(const CreateOpClassItem *from) { CreateOpClassItem *newnode = makeNode(CreateOpClassItem); @@ -3109,7 +3109,7 @@ _copyCreateOpClassItem(CreateOpClassItem *from) } static CreateOpFamilyStmt * -_copyCreateOpFamilyStmt(CreateOpFamilyStmt *from) +_copyCreateOpFamilyStmt(const CreateOpFamilyStmt *from) { CreateOpFamilyStmt *newnode = makeNode(CreateOpFamilyStmt); @@ -3120,7 +3120,7 @@ _copyCreateOpFamilyStmt(CreateOpFamilyStmt *from) } static AlterOpFamilyStmt * -_copyAlterOpFamilyStmt(AlterOpFamilyStmt *from) +_copyAlterOpFamilyStmt(const AlterOpFamilyStmt *from) { AlterOpFamilyStmt *newnode = makeNode(AlterOpFamilyStmt); @@ -3133,7 +3133,7 @@ _copyAlterOpFamilyStmt(AlterOpFamilyStmt *from) } static CreatedbStmt * -_copyCreatedbStmt(CreatedbStmt *from) +_copyCreatedbStmt(const CreatedbStmt *from) { CreatedbStmt *newnode = makeNode(CreatedbStmt); @@ -3144,7 +3144,7 @@ _copyCreatedbStmt(CreatedbStmt *from) } static AlterDatabaseStmt * -_copyAlterDatabaseStmt(AlterDatabaseStmt *from) +_copyAlterDatabaseStmt(const AlterDatabaseStmt *from) { AlterDatabaseStmt *newnode = makeNode(AlterDatabaseStmt); @@ -3155,7 +3155,7 @@ _copyAlterDatabaseStmt(AlterDatabaseStmt *from) } static AlterDatabaseSetStmt * -_copyAlterDatabaseSetStmt(AlterDatabaseSetStmt *from) +_copyAlterDatabaseSetStmt(const AlterDatabaseSetStmt *from) { AlterDatabaseSetStmt *newnode = makeNode(AlterDatabaseSetStmt); @@ -3166,7 +3166,7 @@ _copyAlterDatabaseSetStmt(AlterDatabaseSetStmt *from) } static DropdbStmt * -_copyDropdbStmt(DropdbStmt *from) +_copyDropdbStmt(const DropdbStmt *from) { DropdbStmt *newnode = makeNode(DropdbStmt); @@ -3177,7 +3177,7 @@ _copyDropdbStmt(DropdbStmt *from) } static VacuumStmt * -_copyVacuumStmt(VacuumStmt *from) +_copyVacuumStmt(const VacuumStmt *from) { VacuumStmt *newnode = makeNode(VacuumStmt); @@ -3191,7 +3191,7 @@ _copyVacuumStmt(VacuumStmt *from) } static ExplainStmt * -_copyExplainStmt(ExplainStmt *from) +_copyExplainStmt(const ExplainStmt *from) { ExplainStmt *newnode = makeNode(ExplainStmt); @@ -3202,7 +3202,7 @@ _copyExplainStmt(ExplainStmt *from) } static CreateSeqStmt * -_copyCreateSeqStmt(CreateSeqStmt *from) +_copyCreateSeqStmt(const CreateSeqStmt *from) { CreateSeqStmt *newnode = makeNode(CreateSeqStmt); @@ -3214,7 +3214,7 @@ _copyCreateSeqStmt(CreateSeqStmt *from) } static AlterSeqStmt * -_copyAlterSeqStmt(AlterSeqStmt *from) +_copyAlterSeqStmt(const AlterSeqStmt *from) { AlterSeqStmt *newnode = makeNode(AlterSeqStmt); @@ -3225,7 +3225,7 @@ _copyAlterSeqStmt(AlterSeqStmt *from) } static VariableSetStmt * -_copyVariableSetStmt(VariableSetStmt *from) +_copyVariableSetStmt(const VariableSetStmt *from) { VariableSetStmt *newnode = makeNode(VariableSetStmt); @@ -3238,7 +3238,7 @@ _copyVariableSetStmt(VariableSetStmt *from) } static VariableShowStmt * -_copyVariableShowStmt(VariableShowStmt *from) +_copyVariableShowStmt(const VariableShowStmt *from) { VariableShowStmt *newnode = makeNode(VariableShowStmt); @@ -3248,7 +3248,7 @@ _copyVariableShowStmt(VariableShowStmt *from) } static DiscardStmt * -_copyDiscardStmt(DiscardStmt *from) +_copyDiscardStmt(const DiscardStmt *from) { DiscardStmt *newnode = makeNode(DiscardStmt); @@ -3258,7 +3258,7 @@ _copyDiscardStmt(DiscardStmt *from) } static CreateTableSpaceStmt * -_copyCreateTableSpaceStmt(CreateTableSpaceStmt *from) +_copyCreateTableSpaceStmt(const CreateTableSpaceStmt *from) { CreateTableSpaceStmt *newnode = makeNode(CreateTableSpaceStmt); @@ -3270,7 +3270,7 @@ _copyCreateTableSpaceStmt(CreateTableSpaceStmt *from) } static DropTableSpaceStmt * -_copyDropTableSpaceStmt(DropTableSpaceStmt *from) +_copyDropTableSpaceStmt(const DropTableSpaceStmt *from) { DropTableSpaceStmt *newnode = makeNode(DropTableSpaceStmt); @@ -3281,7 +3281,7 @@ _copyDropTableSpaceStmt(DropTableSpaceStmt *from) } static AlterTableSpaceOptionsStmt * -_copyAlterTableSpaceOptionsStmt(AlterTableSpaceOptionsStmt *from) +_copyAlterTableSpaceOptionsStmt(const AlterTableSpaceOptionsStmt *from) { AlterTableSpaceOptionsStmt *newnode = makeNode(AlterTableSpaceOptionsStmt); @@ -3293,7 +3293,7 @@ _copyAlterTableSpaceOptionsStmt(AlterTableSpaceOptionsStmt *from) } static CreateExtensionStmt * -_copyCreateExtensionStmt(CreateExtensionStmt *from) +_copyCreateExtensionStmt(const CreateExtensionStmt *from) { CreateExtensionStmt *newnode = makeNode(CreateExtensionStmt); @@ -3305,7 +3305,7 @@ _copyCreateExtensionStmt(CreateExtensionStmt *from) } static AlterExtensionStmt * -_copyAlterExtensionStmt(AlterExtensionStmt *from) +_copyAlterExtensionStmt(const AlterExtensionStmt *from) { AlterExtensionStmt *newnode = makeNode(AlterExtensionStmt); @@ -3316,7 +3316,7 @@ _copyAlterExtensionStmt(AlterExtensionStmt *from) } static AlterExtensionContentsStmt * -_copyAlterExtensionContentsStmt(AlterExtensionContentsStmt *from) +_copyAlterExtensionContentsStmt(const AlterExtensionContentsStmt *from) { AlterExtensionContentsStmt *newnode = makeNode(AlterExtensionContentsStmt); @@ -3330,7 +3330,7 @@ _copyAlterExtensionContentsStmt(AlterExtensionContentsStmt *from) } static CreateFdwStmt * -_copyCreateFdwStmt(CreateFdwStmt *from) +_copyCreateFdwStmt(const CreateFdwStmt *from) { CreateFdwStmt *newnode = makeNode(CreateFdwStmt); @@ -3342,7 +3342,7 @@ _copyCreateFdwStmt(CreateFdwStmt *from) } static AlterFdwStmt * -_copyAlterFdwStmt(AlterFdwStmt *from) +_copyAlterFdwStmt(const AlterFdwStmt *from) { AlterFdwStmt *newnode = makeNode(AlterFdwStmt); @@ -3354,7 +3354,7 @@ _copyAlterFdwStmt(AlterFdwStmt *from) } static CreateForeignServerStmt * -_copyCreateForeignServerStmt(CreateForeignServerStmt *from) +_copyCreateForeignServerStmt(const CreateForeignServerStmt *from) { CreateForeignServerStmt *newnode = makeNode(CreateForeignServerStmt); @@ -3368,7 +3368,7 @@ _copyCreateForeignServerStmt(CreateForeignServerStmt *from) } static AlterForeignServerStmt * -_copyAlterForeignServerStmt(AlterForeignServerStmt *from) +_copyAlterForeignServerStmt(const AlterForeignServerStmt *from) { AlterForeignServerStmt *newnode = makeNode(AlterForeignServerStmt); @@ -3381,7 +3381,7 @@ _copyAlterForeignServerStmt(AlterForeignServerStmt *from) } static CreateUserMappingStmt * -_copyCreateUserMappingStmt(CreateUserMappingStmt *from) +_copyCreateUserMappingStmt(const CreateUserMappingStmt *from) { CreateUserMappingStmt *newnode = makeNode(CreateUserMappingStmt); @@ -3393,7 +3393,7 @@ _copyCreateUserMappingStmt(CreateUserMappingStmt *from) } static AlterUserMappingStmt * -_copyAlterUserMappingStmt(AlterUserMappingStmt *from) +_copyAlterUserMappingStmt(const AlterUserMappingStmt *from) { AlterUserMappingStmt *newnode = makeNode(AlterUserMappingStmt); @@ -3405,7 +3405,7 @@ _copyAlterUserMappingStmt(AlterUserMappingStmt *from) } static DropUserMappingStmt * -_copyDropUserMappingStmt(DropUserMappingStmt *from) +_copyDropUserMappingStmt(const DropUserMappingStmt *from) { DropUserMappingStmt *newnode = makeNode(DropUserMappingStmt); @@ -3417,11 +3417,11 @@ _copyDropUserMappingStmt(DropUserMappingStmt *from) } static CreateForeignTableStmt * -_copyCreateForeignTableStmt(CreateForeignTableStmt *from) +_copyCreateForeignTableStmt(const CreateForeignTableStmt *from) { CreateForeignTableStmt *newnode = makeNode(CreateForeignTableStmt); - CopyCreateStmtFields((CreateStmt *) from, (CreateStmt *) newnode); + CopyCreateStmtFields((const CreateStmt *) from, (CreateStmt *) newnode); COPY_STRING_FIELD(servername); COPY_NODE_FIELD(options); @@ -3430,7 +3430,7 @@ _copyCreateForeignTableStmt(CreateForeignTableStmt *from) } static CreateTrigStmt * -_copyCreateTrigStmt(CreateTrigStmt *from) +_copyCreateTrigStmt(const CreateTrigStmt *from) { CreateTrigStmt *newnode = makeNode(CreateTrigStmt); @@ -3452,7 +3452,7 @@ _copyCreateTrigStmt(CreateTrigStmt *from) } static CreatePLangStmt * -_copyCreatePLangStmt(CreatePLangStmt *from) +_copyCreatePLangStmt(const CreatePLangStmt *from) { CreatePLangStmt *newnode = makeNode(CreatePLangStmt); @@ -3467,7 +3467,7 @@ _copyCreatePLangStmt(CreatePLangStmt *from) } static CreateRoleStmt * -_copyCreateRoleStmt(CreateRoleStmt *from) +_copyCreateRoleStmt(const CreateRoleStmt *from) { CreateRoleStmt *newnode = makeNode(CreateRoleStmt); @@ -3479,7 +3479,7 @@ _copyCreateRoleStmt(CreateRoleStmt *from) } static AlterRoleStmt * -_copyAlterRoleStmt(AlterRoleStmt *from) +_copyAlterRoleStmt(const AlterRoleStmt *from) { AlterRoleStmt *newnode = makeNode(AlterRoleStmt); @@ -3491,7 +3491,7 @@ _copyAlterRoleStmt(AlterRoleStmt *from) } static AlterRoleSetStmt * -_copyAlterRoleSetStmt(AlterRoleSetStmt *from) +_copyAlterRoleSetStmt(const AlterRoleSetStmt *from) { AlterRoleSetStmt *newnode = makeNode(AlterRoleSetStmt); @@ -3503,7 +3503,7 @@ _copyAlterRoleSetStmt(AlterRoleSetStmt *from) } static DropRoleStmt * -_copyDropRoleStmt(DropRoleStmt *from) +_copyDropRoleStmt(const DropRoleStmt *from) { DropRoleStmt *newnode = makeNode(DropRoleStmt); @@ -3514,7 +3514,7 @@ _copyDropRoleStmt(DropRoleStmt *from) } static LockStmt * -_copyLockStmt(LockStmt *from) +_copyLockStmt(const LockStmt *from) { LockStmt *newnode = makeNode(LockStmt); @@ -3526,7 +3526,7 @@ _copyLockStmt(LockStmt *from) } static ConstraintsSetStmt * -_copyConstraintsSetStmt(ConstraintsSetStmt *from) +_copyConstraintsSetStmt(const ConstraintsSetStmt *from) { ConstraintsSetStmt *newnode = makeNode(ConstraintsSetStmt); @@ -3537,7 +3537,7 @@ _copyConstraintsSetStmt(ConstraintsSetStmt *from) } static ReindexStmt * -_copyReindexStmt(ReindexStmt *from) +_copyReindexStmt(const ReindexStmt *from) { ReindexStmt *newnode = makeNode(ReindexStmt); @@ -3551,7 +3551,7 @@ _copyReindexStmt(ReindexStmt *from) } static CreateSchemaStmt * -_copyCreateSchemaStmt(CreateSchemaStmt *from) +_copyCreateSchemaStmt(const CreateSchemaStmt *from) { CreateSchemaStmt *newnode = makeNode(CreateSchemaStmt); @@ -3563,7 +3563,7 @@ _copyCreateSchemaStmt(CreateSchemaStmt *from) } static CreateConversionStmt * -_copyCreateConversionStmt(CreateConversionStmt *from) +_copyCreateConversionStmt(const CreateConversionStmt *from) { CreateConversionStmt *newnode = makeNode(CreateConversionStmt); @@ -3577,7 +3577,7 @@ _copyCreateConversionStmt(CreateConversionStmt *from) } static CreateCastStmt * -_copyCreateCastStmt(CreateCastStmt *from) +_copyCreateCastStmt(const CreateCastStmt *from) { CreateCastStmt *newnode = makeNode(CreateCastStmt); @@ -3591,7 +3591,7 @@ _copyCreateCastStmt(CreateCastStmt *from) } static PrepareStmt * -_copyPrepareStmt(PrepareStmt *from) +_copyPrepareStmt(const PrepareStmt *from) { PrepareStmt *newnode = makeNode(PrepareStmt); @@ -3603,7 +3603,7 @@ _copyPrepareStmt(PrepareStmt *from) } static ExecuteStmt * -_copyExecuteStmt(ExecuteStmt *from) +_copyExecuteStmt(const ExecuteStmt *from) { ExecuteStmt *newnode = makeNode(ExecuteStmt); @@ -3615,7 +3615,7 @@ _copyExecuteStmt(ExecuteStmt *from) } static DeallocateStmt * -_copyDeallocateStmt(DeallocateStmt *from) +_copyDeallocateStmt(const DeallocateStmt *from) { DeallocateStmt *newnode = makeNode(DeallocateStmt); @@ -3625,7 +3625,7 @@ _copyDeallocateStmt(DeallocateStmt *from) } static DropOwnedStmt * -_copyDropOwnedStmt(DropOwnedStmt *from) +_copyDropOwnedStmt(const DropOwnedStmt *from) { DropOwnedStmt *newnode = makeNode(DropOwnedStmt); @@ -3636,7 +3636,7 @@ _copyDropOwnedStmt(DropOwnedStmt *from) } static ReassignOwnedStmt * -_copyReassignOwnedStmt(ReassignOwnedStmt *from) +_copyReassignOwnedStmt(const ReassignOwnedStmt *from) { ReassignOwnedStmt *newnode = makeNode(ReassignOwnedStmt); @@ -3647,7 +3647,7 @@ _copyReassignOwnedStmt(ReassignOwnedStmt *from) } static AlterTSDictionaryStmt * -_copyAlterTSDictionaryStmt(AlterTSDictionaryStmt *from) +_copyAlterTSDictionaryStmt(const AlterTSDictionaryStmt *from) { AlterTSDictionaryStmt *newnode = makeNode(AlterTSDictionaryStmt); @@ -3658,7 +3658,7 @@ _copyAlterTSDictionaryStmt(AlterTSDictionaryStmt *from) } static AlterTSConfigurationStmt * -_copyAlterTSConfigurationStmt(AlterTSConfigurationStmt *from) +_copyAlterTSConfigurationStmt(const AlterTSConfigurationStmt *from) { AlterTSConfigurationStmt *newnode = makeNode(AlterTSConfigurationStmt); @@ -3687,7 +3687,7 @@ _copyAlterTSConfigurationStmt(AlterTSConfigurationStmt *from) lfirst(new) = copyObject(lfirst(old)); static List * -_copyList(List *from) +_copyList(const List *from) { List *new; ListCell *curr_old; @@ -3719,7 +3719,7 @@ _copyList(List *from) * **************************************************************** */ static Value * -_copyValue(Value *from) +_copyValue(const Value *from) { Value *newnode = makeNode(Value); @@ -3754,7 +3754,7 @@ _copyValue(Value *from) * substructure is copied too, recursively. */ void * -copyObject(void *from) +copyObject(const void *from) { void *retval; @@ -4460,7 +4460,7 @@ copyObject(void *from) default: elog(ERROR, "unrecognized node type: %d", (int) nodeTag(from)); - retval = from; /* keep compiler quiet */ + retval = 0; /* keep compiler quiet */ break; } |