cvs commit: src/usr.bin/make dir.c dir.h lst.h

看板DFBSD_commit作者時間21年前 (2005/02/23 18:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
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
文章代碼(AID): #1275kd00 (DFBSD_commit)