Code cleanup inspired by recent resname bug report (doesn't fix the bug

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 88381ade63de931c84f53dc873c986d40b8c8b61
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2003-08-11T20:46:47Z
Releases: 7.4.1
Code cleanup inspired by recent resname bug report (doesn't fix the bug
yet, though).  Avoid using nth() to fetch tlist entries; provide a
common routine get_tle_by_resno() to search a tlist for a particular
resno.  This replaces a couple uses of nth() and a dozen hand-coded
search loops.  Also, replace a few uses of nth(length-1, list) with
llast().

Files