Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/usr.bin/make



Module Name:    src
Committed By:   rillig
Date:           Fri May 24 23:02:46 UTC 2024

Modified Files:
        src/usr.bin/make: main.c test-variants.mk var.c
        src/usr.bin/make/unit-tests: Makefile

Log Message:
make: in -DCLEANUP mode, free variables and their values

The variables in the 3 scopes must be freed before the scopes themselves
are freed by Targ_End.

The test opt-m-include-dir creates a directory of the form '*.tmp', thus
it must be removed before attempting to only remove regular files of
this name.

POSIX requires setenv to copy the passed name and value, so there is no
need to keep that memory allocated any longer.


To generate a diff of this commit:
cvs rdiff -u -r1.616 -r1.617 src/usr.bin/make/main.c
cvs rdiff -u -r1.6 -r1.7 src/usr.bin/make/test-variants.mk
cvs rdiff -u -r1.1109 -r1.1110 src/usr.bin/make/var.c
cvs rdiff -u -r1.344 -r1.345 src/usr.bin/make/unit-tests/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index