Source-Changes archive

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

CVS commit: src/usr.bin/make/unit-tests



Module Name:    src
Committed By:   rillig
Date:           Sat Dec 11 09:53:53 UTC 2021

Modified Files:
        src/usr.bin/make/unit-tests: cond-cmp-string.mk cond-func-empty.exp
            cond-func-empty.mk

Log Message:
tests/make: proofread and clean up comments for function 'empty'

This prepares a refactoring for handling the function 'empty' in
conditionals like '.if'.

The function 'empty' is fundamentally different from all other functions
since it is parsed differently and passes its result on different path
than the other functions.  Splitting up these code paths will untangle
the control flow of parsing a condition like 'empty(VARNAME)'.  It will
also remove several ARGSUSED and MAKE_ATTR_UNUSED that make the current
code smell.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/usr.bin/make/unit-tests/cond-cmp-string.mk \
    src/usr.bin/make/unit-tests/cond-func-empty.mk
cvs rdiff -u -r1.3 -r1.4 src/usr.bin/make/unit-tests/cond-func-empty.exp

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