Merged in three patches to cleanup the code by Harti.
o Invent the LST_FOREACH macro for looping through a list. In
contrast to the Lst_ForEach function this macro reduces the number
of function calls per invocation by N + 1 (where N is the number
of list elements) and increases code locality thereby increasing
readability and (maybe) performance.
o Use the new LST_FOREACH macro throughout the file and replace
calls to Lst_ForEach and Lst_Find.
o Fix the prototypes by addings some constness.
Date: 2005/02/22 07:58:53
Date: 2005/02/22 08:00:06
Date: 2005/02/22 08:17:05
Author: harti
Taken-from: FreeBSD