DragonFly commits List (threaded) for 2005-02
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
cvs commit: src/usr.bin/make dir.c dir.h lst.h
okumoto 2005/02/23 02:02:27 PST
DragonFly src repository
Modified files:
usr.bin/make dir.c dir.h lst.h
Log:
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
Revision Changes Path
1.32 +20 -70 src/usr.bin/make/dir.c
1.16 +2 -2 src/usr.bin/make/dir.h
1.23 +4 -0 src/usr.bin/make/lst.h
http://www.dragonflybsd.org/cvsweb/src/usr.bin/make/dir.c.diff?r1=1.31&r2=1.32&f=u
http://www.dragonflybsd.org/cvsweb/src/usr.bin/make/dir.h.diff?r1=1.15&r2=1.16&f=u
http://www.dragonflybsd.org/cvsweb/src/usr.bin/make/lst.h.diff?r1=1.22&r2=1.23&f=u
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]