cvs commit: src/usr.bin/make Makefile arch.c compat.c cond.c dir.c
for.c job.c lst.h main.c make.c make.h nonints.h parse.c suff.c
targ.c var.c src/usr.bin/make/lst.lib lstConcat.c lstDestroy.c
lstDupl.c lstInit.c
Hartmut Brandt
harti at FreeBSD.org
Thu Dec 16 08:14:17 PST 2004
harti 2004-12-16 16:14:16 UTC
FreeBSD src repository
Modified files:
usr.bin/make Makefile arch.c compat.c cond.c dir.c
for.c job.c lst.h main.c make.c make.h
nonints.h parse.c suff.c targ.c var.c
usr.bin/make/lst.lib lstConcat.c lstDestroy.c lstDupl.c
Removed files:
usr.bin/make/lst.lib lstInit.c
Log:
Instead of dynamically allocating list heads allocated them statically
now that their size is only two pointers. This eliminates a lot of calls
to Lst_Init and from there to malloc together with many calls to
Lst_Destroy (in places where the list is obviously empty). This also
reduces the chance to leave a list uninitilized so we can remove more
NULL pointer checks and probably eliminates a couple of memory leaks.
Revision Changes Path
1.40 +1 -1 src/usr.bin/make/Makefile
1.42 +12 -16 src/usr.bin/make/arch.c
1.43 +10 -10 src/usr.bin/make/compat.c
1.33 +2 -2 src/usr.bin/make/cond.c
1.44 +21 -21 src/usr.bin/make/dir.c
1.28 +12 -9 src/usr.bin/make/for.c
1.69 +37 -35 src/usr.bin/make/job.c
1.26 +10 -4 src/usr.bin/make/lst.h
1.19 +1 -0 src/usr.bin/make/lst.lib/lstConcat.c
1.20 +3 -13 src/usr.bin/make/lst.lib/lstDestroy.c
1.20 +7 -23 src/usr.bin/make/lst.lib/lstDupl.c
1.15 +0 -76 src/usr.bin/make/lst.lib/lstInit.c (dead)
1.108 +50 -41 src/usr.bin/make/main.c
1.31 +35 -38 src/usr.bin/make/make.c
1.28 +24 -19 src/usr.bin/make/make.h
1.27 +2 -2 src/usr.bin/make/nonints.h
1.66 +90 -116 src/usr.bin/make/parse.c
1.38 +178 -187 src/usr.bin/make/suff.c
1.33 +25 -28 src/usr.bin/make/targ.c
1.57 +10 -10 src/usr.bin/make/var.c
More information about the cvs-src
mailing list