1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-11 10:01:57 +03:00

Change lcons(x, NIL) to makeList(x) where appropriate.

This commit is contained in:
Bruce Momjian
2001-01-17 17:26:45 +00:00
parent 8e9840383c
commit 5088f0748a
12 changed files with 36 additions and 35 deletions

View File

@ -11,7 +11,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.215 2001/01/15 20:36:36 tgl Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.216 2001/01/17 17:26:45 momjian Exp $
*
* HISTORY
* AUTHOR DATE MAJOR EVENT
@ -2918,7 +2918,7 @@ createdb_opt_item: LOCATION '=' Sconst
}
| LOCATION '=' DEFAULT
{
$$ = lconsi(1, makeList1((char *) NULL));
$$ = lconsi(1, makeList1(NULL));
}
| TEMPLATE '=' name
{
@ -2926,7 +2926,7 @@ createdb_opt_item: LOCATION '=' Sconst
}
| TEMPLATE '=' DEFAULT
{
$$ = lconsi(2, makeList1((char *) NULL));
$$ = lconsi(2, makeList1(NULL));
}
| ENCODING '=' Sconst
{
@ -3383,7 +3383,7 @@ simple_select: SELECT opt_distinct target_list
/* easy way to return two values. Can someone improve this? bjm */
into_clause: INTO OptTempTableName { $$ = $2; }
| /*EMPTY*/ { $$ = lcons(makeInteger(FALSE), NIL); }
| /*EMPTY*/ { $$ = makeList1(makeInteger(FALSE)); }
;
/*

View File

@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/parse_coerce.c,v 2.52 2000/12/17 04:32:29 tgl Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/parse_coerce.c,v 2.53 2001/01/17 17:26:45 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -128,7 +128,7 @@ coerce_type(ParseState *pstate, Node *node, Oid inputTypeId,
FuncCall *n = makeNode(FuncCall);
n->funcname = typeidTypeName(targetTypeId);
n->args = lcons(node, NIL);
n->args = makeList1(node);
n->agg_star = false;
n->agg_distinct = false;
@ -304,7 +304,7 @@ coerce_type_typmod(ParseState *pstate, Node *node,
cons->val.val.ival = atttypmod;
func->funcname = funcname;
func->args = lappend(lcons(node, NIL), cons);
func->args = makeList2(node, cons);
func->agg_star = false;
func->agg_distinct = false;