A few minor list-related cleanups:

Neil Conway <neilc@samurai.com>

Commit: 64a60590ba5da8026abb65a7abe8fce9e573c476
Author: Neil Conway <neilc@samurai.com>
Date: 2004-09-27T04:12:03Z
Releases: 8.0.0
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()

Files

PathChange+/−
src/backend/parser/analyze.c modified +4 −8
src/backend/utils/cache/catcache.c modified +6 −5
src/include/nodes/pg_list.h modified +3 −3