aboutsummaryrefslogtreecommitdiff
path: root/src/backend/nodes/copyfuncs.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2001-01-17 17:26:45 +0000
committerBruce Momjian <bruce@momjian.us>2001-01-17 17:26:45 +0000
commit5088f0748a39c3f480d9a9c1b34c2a25d3011611 (patch)
tree3deddd5a01380ac4b5afc59f7e7bc8bad4e1eb64 /src/backend/nodes/copyfuncs.c
parent8e9840383c94ee9da264b7b29d85cf2ce4866449 (diff)
downloadpostgresql-5088f0748a39c3f480d9a9c1b34c2a25d3011611.tar.gz
postgresql-5088f0748a39c3f480d9a9c1b34c2a25d3011611.zip
Change lcons(x, NIL) to makeList(x) where appropriate.
Diffstat (limited to 'src/backend/nodes/copyfuncs.c')
-rw-r--r--src/backend/nodes/copyfuncs.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/backend/nodes/copyfuncs.c b/src/backend/nodes/copyfuncs.c
index 89574db471e..025d11e9607 100644
--- a/src/backend/nodes/copyfuncs.c
+++ b/src/backend/nodes/copyfuncs.c
@@ -15,7 +15,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.136 2001/01/05 06:34:17 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.137 2001/01/17 17:26:44 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -58,11 +58,11 @@ listCopy(List *list)
if (list == NIL)
return NIL;
- newlist = nl = lcons(lfirst(list), NIL);
+ newlist = nl = makeList1(lfirst(list));
foreach(l, lnext(list))
{
- lnext(nl) = lcons(lfirst(l), NIL);
+ lnext(nl) = makeList1(lfirst(l));
nl = lnext(nl);
}
return newlist;
@@ -2745,12 +2745,12 @@ copyObject(void *from)
/* rather ugly coding for speed... */
/* Note the input list cannot be NIL if we got here. */
- nl = lcons(copyObject(lfirst(list)), NIL);
+ nl = makeList1(copyObject(lfirst(list)));
retval = nl;
foreach(l, lnext(list))
{
- lnext(nl) = lcons(copyObject(lfirst(l)), NIL);
+ lnext(nl) = makeList1(copyObject(lfirst(l)));
nl = lnext(nl);
}
}