Merged in three patches to cleanup the code by Harti.
authorMax Okumoto <okumoto@dragonflybsd.org>
Wed, 23 Feb 2005 10:02:27 +0000 (10:02 +0000)
committerMax Okumoto <okumoto@dragonflybsd.org>
Wed, 23 Feb 2005 10:02:27 +0000 (10:02 +0000)
commitfd09761e5fe53922c848d97c5c7b39b57bc0d9c2
tree4342b0680346bb0b23bbba6a007721e6cdc6781a
parent6929da34e171e9830cb8ce7f9798610121f36c2f
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
usr.bin/make/dir.c
usr.bin/make/dir.h
usr.bin/make/lst.h