From: | Max Okumoto <okumoto@xxxxxxxxxxxxxxxxxxxxxxx> |
Date: | Thu, 16 Dec 2004 16:02:57 -0800 (PST) |
okumoto 2004/12/16 16:02:57 PST DragonFly src repository Modified files: usr.bin/make arch.c compat.c dir.c dir.h for.c job.c job.h lst.h main.c make.c make.h nonints.h parse.c suff.c targ.c var.c usr.bin/make/lst.lib lstAppend.c lstClose.c lstConcat.c lstDeQueue.c lstDestroy.c lstDupl.c lstFindFrom.c lstForEachFrom.c lstInit.c lstInsert.c lstIsAtEnd.c lstMember.c lstNext.c lstOpen.c lstRemove.c Log: Typedefs of pointers to structs are evil. Make Lst and LstNode typedef of the structs itself not of pointers to them. This will simplify constification. Taken-from: FreeBSD Author: harti Revision Changes Path 1.18 +6 -6 src/usr.bin/make/arch.c 1.18 +2 -2 src/usr.bin/make/compat.c 1.22 +20 -20 src/usr.bin/make/dir.c 1.10 +7 -7 src/usr.bin/make/dir.h 1.15 +2 -2 src/usr.bin/make/for.c 1.31 +8 -8 src/usr.bin/make/job.c 1.16 +1 -1 src/usr.bin/make/job.h 1.13 +22 -22 src/usr.bin/make/lst.h 1.35 +10 -10 src/usr.bin/make/main.c 1.15 +7 -7 src/usr.bin/make/make.c 1.13 +14 -14 src/usr.bin/make/make.h 1.20 +6 -6 src/usr.bin/make/nonints.h 1.25 +19 -19 src/usr.bin/make/parse.c 1.18 +60 -60 src/usr.bin/make/suff.c 1.16 +6 -6 src/usr.bin/make/targ.c 1.24 +3 -3 src/usr.bin/make/var.c 1.8 +3 -3 src/usr.bin/make/lst.lib/lstAppend.c 1.6 +1 -1 src/usr.bin/make/lst.lib/lstClose.c 1.8 +5 -5 src/usr.bin/make/lst.lib/lstConcat.c 1.7 +3 -3 src/usr.bin/make/lst.lib/lstDeQueue.c 1.10 +3 -3 src/usr.bin/make/lst.lib/lstDestroy.c 1.10 +4 -4 src/usr.bin/make/lst.lib/lstDupl.c 1.9 +3 -3 src/usr.bin/make/lst.lib/lstFindFrom.c 1.9 +2 -2 src/usr.bin/make/lst.lib/lstForEachFrom.c 1.7 +2 -2 src/usr.bin/make/lst.lib/lstInit.c 1.8 +2 -2 src/usr.bin/make/lst.lib/lstInsert.c 1.7 +1 -1 src/usr.bin/make/lst.lib/lstIsAtEnd.c 1.6 +3 -3 src/usr.bin/make/lst.lib/lstMember.c 1.8 +3 -3 src/usr.bin/make/lst.lib/lstNext.c 1.8 +1 -1 src/usr.bin/make/lst.lib/lstOpen.c 1.8 +1 -1 src/usr.bin/make/lst.lib/lstRemove.c http://www.dragonflybsd.org/cvsweb/src/usr.bin/make/arch.c.diff?r1=1.17&r2=1.18&f=u http://www.dragonflybsd.org/cvsweb/src/usr.bin/make/compat.c.diff?r1=1.17&r2=1.18&f=u http://www.dragonflybsd.org/cvsweb/src/usr.bin/make/dir.c.diff?r1=1.21&r2=1.22&f=u http://www.dragonflybsd.org/cvsweb/src/usr.bin/make/dir.h.diff?r1=1.9&r2=1.10&f=u http://www.dragonflybsd.org/cvsweb/src/usr.bin/make/for.c.diff?r1=1.14&r2=1.15&f=u http://www.dragonflybsd.org/cvsweb/src/usr.bin/make/job.c.diff?r1=1.30&r2=1.31&f=u http://www.dragonflybsd.org/cvsweb/src/usr.bin/make/job.h.diff?r1=1.15&r2=1.16&f=u http://www.dragonflybsd.org/cvsweb/src/usr.bin/make/lst.h.diff?r1=1.12&r2=1.13&f=u http://www.dragonflybsd.org/cvsweb/src/usr.bin/make/main.c.diff?r1=1.34&r2=1.35&f=u http://www.dragonflybsd.org/cvsweb/src/usr.bin/make/make.c.diff?r1=1.14&r2=1.15&f=u http://www.dragonflybsd.org/cvsweb/src/usr.bin/make/make.h.diff?r1=1.12&r2=1.13&f=u http://www.dragonflybsd.org/cvsweb/src/usr.bin/make/nonints.h.diff?r1=1.19&r2=1.20&f=u http://www.dragonflybsd.org/cvsweb/src/usr.bin/make/parse.c.diff?r1=1.24&r2=1.25&f=u http://www.dragonflybsd.org/cvsweb/src/usr.bin/make/suff.c.diff?r1=1.17&r2=1.18&f=u http://www.dragonflybsd.org/cvsweb/src/usr.bin/make/targ.c.diff?r1=1.15&r2=1.16&f=u http://www.dragonflybsd.org/cvsweb/src/usr.bin/make/var.c.diff?r1=1.23&r2=1.24&f=u http://www.dragonflybsd.org/cvsweb/src/usr.bin/make/lst.lib/lstAppend.c.diff?r1=1.7&r2=1.8&f=u http://www.dragonflybsd.org/cvsweb/src/usr.bin/make/lst.lib/lstClose.c.diff?r1=1.5&r2=1.6&f=u http://www.dragonflybsd.org/cvsweb/src/usr.bin/make/lst.lib/lstConcat.c.diff?r1=1.7&r2=1.8&f=u http://www.dragonflybsd.org/cvsweb/src/usr.bin/make/lst.lib/lstDeQueue.c.diff?r1=1.6&r2=1.7&f=u http://www.dragonflybsd.org/cvsweb/src/usr.bin/make/lst.lib/lstDestroy.c.diff?r1=1.9&r2=1.10&f=u http://www.dragonflybsd.org/cvsweb/src/usr.bin/make/lst.lib/lstDupl.c.diff?r1=1.9&r2=1.10&f=u http://www.dragonflybsd.org/cvsweb/src/usr.bin/make/lst.lib/lstFindFrom.c.diff?r1=1.8&r2=1.9&f=u http://www.dragonflybsd.org/cvsweb/src/usr.bin/make/lst.lib/lstForEachFrom.c.diff?r1=1.8&r2=1.9&f=u http://www.dragonflybsd.org/cvsweb/src/usr.bin/make/lst.lib/lstInit.c.diff?r1=1.6&r2=1.7&f=u http://www.dragonflybsd.org/cvsweb/src/usr.bin/make/lst.lib/lstInsert.c.diff?r1=1.7&r2=1.8&f=u http://www.dragonflybsd.org/cvsweb/src/usr.bin/make/lst.lib/lstIsAtEnd.c.diff?r1=1.6&r2=1.7&f=u http://www.dragonflybsd.org/cvsweb/src/usr.bin/make/lst.lib/lstMember.c.diff?r1=1.5&r2=1.6&f=u http://www.dragonflybsd.org/cvsweb/src/usr.bin/make/lst.lib/lstNext.c.diff?r1=1.7&r2=1.8&f=u http://www.dragonflybsd.org/cvsweb/src/usr.bin/make/lst.lib/lstOpen.c.diff?r1=1.7&r2=1.8&f=u http://www.dragonflybsd.org/cvsweb/src/usr.bin/make/lst.lib/lstRemove.c.diff?r1=1.7&r2=1.8&f=u