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:           Wed Sep 23 07:50:59 UTC 2020

Modified Files:
        src/usr.bin/make: var.c
        src/usr.bin/make/unit-tests: cond-func-empty.mk counter-append.exp
            counter-append.mk counter.exp counter.mk

Log Message:
make(1): fix unexpected behavior in ::= variable modifier

Previously, the ::= modifier had returned an error value, which caused
the variable expression to be preserved.  This behavior was not useful
in this case; it had only been intended to be used for undefined
variables.

To fix it, distinguish between parse errors, undefined variables and
regular empty strings.


To generate a diff of this commit:
cvs rdiff -u -r1.535 -r1.536 src/usr.bin/make/var.c
cvs rdiff -u -r1.6 -r1.7 src/usr.bin/make/unit-tests/cond-func-empty.mk \
    src/usr.bin/make/unit-tests/counter.exp
cvs rdiff -u -r1.1 -r1.2 src/usr.bin/make/unit-tests/counter-append.exp \
    src/usr.bin/make/unit-tests/counter-append.mk
cvs rdiff -u -r1.2 -r1.3 src/usr.bin/make/unit-tests/counter.mk

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