A few minor list-related cleanups:
authorNeil Conway <neilc@samurai.com>
Mon, 27 Sep 2004 04:12:03 +0000 (04:12 +0000)
committerNeil Conway <neilc@samurai.com>
Mon, 27 Sep 2004 04:12:03 +0000 (04:12 +0000)
commit64a60590ba5da8026abb65a7abe8fce9e573c476
treefbb640591745e267977b99289e25e6ef4694fb08
parent0ed07d49d5b5aed54da02b9dfa87856ba09af859
A few minor list-related cleanups:

(1) Replace while loop with the new forboth() construct in
parser/analyze.c

(2) Replace lcons() with lappend() in SearchCatCacheList(). Since these
now have the same performance, there is no reason to prefer lcons() in
this case, and using lappend() leads to cleaner code.

(3) Improve the name of the second parameter to for_each_cell()
src/backend/parser/analyze.c
src/backend/utils/cache/catcache.c
src/include/nodes/pg_list.h